[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 12 from proof wlar-erase-worker-helper (previous step)

wlar[n] = wl-entry(m0, stat0), err = EIO, vtblpnum = vtblpnum0, vtblpnum0 = n, vtblpnum1 = 0, wlar0 = wlar, vtblpnum0 < # wlar, n < # wlar, ubi-io-erase-pre(vtblpnum, apebs) ⊦ [fail_or_success#(; ; err); if err = ESUCCESS then apebs[vtblpnum] := mkpeb(empty, empty, mkempbuf(LEB_SIZE), 0, false) else {choose apeb with ubi-io-peb-inv(apeb) ∧ ¬ apeb.bad ∧ ¬ apeb.vidhdr.valid? in apebs[vtblpnum] := apeb or skip}; wlar[vtblpnum0].ec := wlar[vtblpnum0].ec + 1; if err = ESUCCESS then aubi_io_write_echdr#(vtblpnum0, aechdr(wlar[vtblpnum0].ec); apebs; err) else debug#("ubi: erase of PEB " + vtblpnum0.toString + " failed"); vtblpnum1 := vtblpnum1 + 1; while err ≠ ESUCCESS ∧ vtblpnum1 ≤ UBI_ERASE_RETRIES do {wlar[vtblpnum0].ec := wlar[vtblpnum0].ec + 1; aubi_io_sync_erase#(vtblpnum0; apebs; err); if err = ESUCCESS then aubi_io_write_echdr#(vtblpnum0, aechdr(wlar[vtblpnum0].ec); apebs; err) else debug#("ubi: erase of PEB " + vtblpnum0.toString + " failed"); vtblpnum1 := vtblpnum1 + 1}; if err = ESUCCESS then wlar[vtblpnum0] := wl-entry(wlar[vtblpnum0].ec, free) else {aubi_io_markbad#(vtblpnum0; apebs; err); if err = ESUCCESS then wlar[vtblpnum0] := wl-entry(wlar[vtblpnum0].ec, erroneous) else debug#("ubi: marking PEB " + vtblpnum0.toString + " as bad failed")}] ∃ m, stat. m ≠ 0 ∧ m ≤ UBI_ERASE_RETRIES + 1 ∧ wlar = wlar0[n, wl-entry(m0 + m, stat)]

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Used simplifier rules: ⊦ m < n → n ≠ 0; (s)%f: ⊦ m < n → n ≠ 0; (forward) from specification nat-basic%c: ⊦ m + n = n + m; from specification nat-basic%a: ⊦ (m + n0) + n1 = m + n0 + n1; from specification nat-basic% ⊦ ubi-io-erase-pre(n, apebs) ↔ n < # apebs ∧ ¬ apebs[n].bad; (s)