MCPcopy Create free account
hub / github.com/BasisResearch/lean.py / test_bv2int_unsigned

Method test_bv2int_unsigned

tests/test_z3_semantic.py:656–658  ·  view source on GitHub ↗

BV2Int(0xFF, 8) = 255 (unsigned).

(self, kernel)

Source from the content-addressed store, hash-verified

654 assert _try_prove(UGT(BitVecVal(255, 8), BitVecVal(0, 8)))
655
656 def test_bv2int_unsigned(self, kernel):
657 """BV2Int(0xFF, 8) = 255 (unsigned)."""
658 assert _try_prove(BV2Int(BitVecVal(0xFF, 8)) == IntVal(255))
659
660
661# ===================================================================

Callers

nothing calls this directly

Calls 4

_try_proveFunction · 0.90
BV2IntFunction · 0.90
BitVecValFunction · 0.90
IntValFunction · 0.90

Tested by

no test coverage detected