def gc.isz.bits

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

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

1032def gc.isz.bits(+b0: Bool, +b1: Bool, +b2: Bool, +b3: Bool, +b4: Bool, +b5: Bool, +b6: Bool, +b7: Bool) -> {U32.is_eq(G.Gf8Bits.to(G.Gf8Bits{b0, b1, b2, b3, b4, b5, b6, b7}), 0) == G.Gf8Bits.is_zero(G.Gf8Bits{b0, b1, b2, b3, b4, b5, b6, b7}) : Bool}:
1033  match b5 b6 b7:
1034    case True{} True{} True{}:
1035      gc.isz.bits.s111(b0, b1, b2, b3, b4)
1036    case True{} True{} False{}:
1037      gc.isz.bits.s011(b0, b1, b2, b3, b4)
1038    case True{} False{} True{}:
1039      gc.isz.bits.s101(b0, b1, b2, b3, b4)
1040    case True{} False{} False{}:
1041      gc.isz.bits.s001(b0, b1, b2, b3, b4)
1042    case False{} True{} True{}:
1043      gc.isz.bits.s110(b0, b1, b2, b3, b4)
1044    case False{} True{} False{}:
1045      gc.isz.bits.s010(b0, b1, b2, b3, b4)
1046    case False{} False{} True{}:
1047      gc.isz.bits.s100(b0, b1, b2, b3, b4)
1048    case False{} False{} False{}:
1049      gc.isz.bits.s000(b0, b1, b2, b3, b4)

Uses (13)

Used by (1)