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

Method test_ite_bool_condition

tests/test_z3_ported.py:1065–1068  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1063 assert is_int(result)
1064
1065 def test_ite_bool_condition(self):
1066 a = Bool("a")
1067 result = If(a, IntVal(1), IntVal(0))
1068 assert isinstance(result._ast, IteNode)
1069
1070 def test_abs_via_ite(self, kernel):
1071 """Abs(x) == If(x >= 0, x, -x)."""

Callers

nothing calls this directly

Calls 3

BoolFunction · 0.90
IfFunction · 0.90
IntValFunction · 0.90

Tested by

no test coverage detected