law tko3

lawful-bytes@0.1.1.0 · proof_fast_word.bend:47

import lawful-bytes@0.1.1.0/proof_fast_word.bend as ProofFastWord
import Base
import lawful-words@0.1.0.0/defs.bend as W

47# The k = 3 test of the or of two flag words.
48law tko3:
49  for +v1: U32
50  for +v2: U32
51  {U32.is_zero(U32.and(U32.or(W.zb(v1), W.zb(v2)), 8421504)) == Bool.and(Bool.and(U32.is_ne(W.byte(v1, 0n), 0), Bool.and(U32.is_ne(W.byte(v1, 1n), 0), Bool.and(U32.is_ne(W.byte(v1, 2n), 0), True{}))), Bool.and(U32.is_ne(W.byte(v2, 0n), 0), Bool.and(U32.is_ne(W.byte(v2, 1n), 0), Bool.and(U32.is_ne(W.byte(v2, 2n), 0), True{})))) : Bool}

Uses (11)

Used by (1)