def gc.isz

bend-osdev-gf@0.1.1.0 · proof_tab_cases.bend:1051

import bend-osdev-gf@0.1.1.0/proof_tab_cases.bend as ProofTabCases
import Base
import bend-osdev-gf@0.1.1.0/gf.bend as G

1051def gc.isz(+a: U32) -> {U32.is_eq(G.Gf8.elt(a), 0) == G.Gf8.is_zero(a) : Bool}:
1052  match a:
1053    case U32{WCon{+b0, WCon{+b1, WCon{+b2, WCon{+b3, WCon{+b4, WCon{+b5, WCon{+b6, WCon{+b7, +r}}}}}}}}}:
1054      %Equal.sym(U32, G.Gf8.elt(U32{WCon{b0, WCon{b1, WCon{b2, WCon{b3, WCon{b4, WCon{b5, WCon{b6, WCon{b7, r}}}}}}}}}), G.Gf8Bits.to(G.Gf8Bits{b0, b1, b2, b3, b4, b5, b6, b7}), gc.elt_bits(b0, b1, b2, b3, b4, b5, b6, b7, r)) : {U32.is_eq(_, 0) == G.Gf8Bits.is_zero(G.Gf8Bits{b0, b1, b2, b3, b4, b5, b6, b7}) : Bool}
1055      gc.isz.bits(b0, b1, b2, b3, b4, b5, b6, b7)

Uses (12)

Used by (1)