[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,

Theorem atomic-leb-change

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)}} }