| # buf1 = EB_PAGE_SIZE, pebs[m0] = mkpeb(buf0, m1, false), m0 < # pebs, mtd-cons(pebs), EB_PAGE_SIZE ≤ PEB_SIZE, err = ESUCCESS → buf1 = subarray(buf0, 0, EB_PAGE_SIZE), err = ESUCCESS ∨ ⌊err⌋ ⊦ ⟪if err = ESUCCESS then if buf1 = emptypage then aehdr := empty else let ehdr = ? in {decode_echeader#(EB_PAGE_SIZE, buf1; ehdr; err); if err = ESUCCESS then aehdr := aechdr(ehdr.ec)}⟫ true |
# buf1 = EB_PAGE_SIZE, pebs[m0] = mkpeb(buf0, m1, false), err = ESUCCESS, m0 < # pebs, mtd-cons(pebs), EB_PAGE_SIZE ≤ PEB_SIZE, err = ESUCCESS → buf1 = subarray(buf0, 0, EB_PAGE_SIZE), err = ESUCCESS ∨ ⌊err⌋ ⊦ ⟪if buf1 = emptypage then aehdr := empty else let ehdr = ? in {decode_echeader#(EB_PAGE_SIZE, buf1; ehdr; err); if err = ESUCCESS then aehdr := aechdr(ehdr.ec)}⟫ true
# buf1 = EB_PAGE_SIZE, pebs[m0] = mkpeb(buf0, m1, false), m0 < # pebs, mtd-cons(pebs), EB_PAGE_SIZE ≤ PEB_SIZE, err = ESUCCESS → buf1 = subarray(buf0, 0, EB_PAGE_SIZE), err = ESUCCESS ∨ ⌊err⌋ ⊦ ⟪skip⟫ true, err = ESUCCESS