[Imprint][Data Privacy Statement][E-Mail]



View long theorem info. View the proof. Back to main index. View the specification. View theorem base summary, View theorem base listing, the used properties by spec, the dependency list, the symbol table,

Proof step 7 from proof delta-atomic-leb-change (previous step)

wlar[n1] = wl-entry(m1, stat0), wlar[n] = wl-entry(m0, stat), wlar0 = wlar, n ≠ n1, n1 < # wlar, n < # wlar, v ∈ vols ∧ m < # vols[v] ∧ vols[v][m] = ⌜n1⌝ ∨ v = VTBL_VOLID ∧ m = VTBL_LNUM ∧ vtblpnum = n1 ⊦ [ubi_atomic_leb_change#(v, m, n, n0, buf, EB_PAGE_SIZE; vols, wlar, q, bflipset, vtblpnum, sqnum, apebs; err)] ( sum-of-differences(ecs(wlar).max, ecs(wlar)) = sum-of-differences(ecs(wlar0).max, ecs(wlar0)) ∧ ecs(wlar) = ecs(wlar0) ∧ (err = ESUCCESS → wlar[n].ec = m0 ∧ wlar[n1].ec = m1))

Heuristic nonrecursive calls applied rule call right

And obtained the following new goals

Rule argument

pos: right 1

Additional information

Used simplifier rules: ubi_atomic_leb_change# (VOLID, LNUM, TO, N, BUF, PAGESIZE ; VOLS, WLARRAY, ERASEQ, BFLIPSET, VTBLPNUM, SQNUM, APEBS ; ERR ) {ERR := ESUCCESS; N := datasize(BUF, N); let M = ? in {ubi_next_sqnum#(; SQNUM; M); let AVHDR = avidhdr(VOLID, LNUM, M, N, 0) in {if N ≠ 0 then AVHDR.checksum := checksum(BUF, N); aubi_io_write_vidhdr#(TO, AVHDR; APEBS; ERR); if ERR = ESUCCESS then if N > 0 then aubi_io_write_data_wl# (TO, align↑(N, PAGESIZE), BUF; APEBS; ERR); if ERR = ESUCCESS then {if VOLID = VTBL_VOLID ∧ LNUM = VTBL_LNUM then {ubi_wl_put_peb# (VTBL_VOLID × VTBL_LNUM, VTBLPNUM ; WLARRAY, ERASEQ); BFLIPSET := BFLIPSET -- VTBLPNUM; VTBLPNUM := TO} else {if VOLS[VOLID][LNUM] ≠ unmapped then let PNUM = VOLS[VOLID][LNUM].pnum in {ubi_wl_put_peb# (VOLID × LNUM, PNUM; WLARRAY, ERASEQ); BFLIPSET := BFLIPSET -- PNUM}; VOLS[VOLID][LNUM] := ⌜TO⌝ }; WLARRAY[TO].status := used} else ubi_wl_put_peb#(none, TO; WLARRAY, ERASEQ)}} };