NLAlib.Ops.writes_call_bin
Library · theorem
A functional operation of two cells (scalar arithmetic): the value is computed, and the written cell holds it.
NLAlib.Ops.writes_call_bin {Op Tst K : Type} {md : Ops.Mode} {I : Ops.Interp Op Tst K}
{τ : Ops.Tape K} {ρ : Ops.Env} {m : Ops.Mem K} {o : Op} {g : K → K → Option K}
{adm : List ℕ → List (ℕ × ℕ) → List (ℕ × ℕ) → Prop} (hI : I.IsFn md o (Ops.BlockFn.bin g) adm)
{ins outs : List Ops.Operand} {x y z : ℕ × ℕ} {u v w : K}
(ha : Ops.Operand.evalList ρ ins = some [x, y]) (hb : Ops.Operand.evalList ρ outs = some [z])
(hadm : adm [] [x, y] [z]) (hx : m.store.get x.1 x.2 = some u) (hy : m.store.get y.1 y.2 = some v)
(hg : g u v = some w) (hpre : md.Needs (m.Live [x, y, z] ∧ z.2 < m.store.len z.1)) :
Ops.Writes md I τ (Ops.Stmt.call o [] ins outs) ρ (Ops.Store.inBlock z.1 z.2 1)
(fun m' ↦ m'.pos = m.pos ∧ m'.store.get z.1 z.2 = some w) mImport NLAlib.Ops.Logic.Writes.