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

Method test_ite_children

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

Source from the content-addressed store, hash-verified

2884 assert e.decl().name() == "not"
2885
2886 def test_ite_children(self):
2887 x = Int("x")
2888 p = Bool("p")
2889 e = If(p, x, IntVal(0))
2890 assert e.num_args() == 3
2891 assert e.decl().name() == "if"
2892
2893 def test_distinct_children(self):
2894 x, y, z = Ints("x y z")

Callers

nothing calls this directly

Calls 7

IntFunction · 0.90
BoolFunction · 0.90
IfFunction · 0.90
IntValFunction · 0.90
declMethod · 0.80
num_argsMethod · 0.45
nameMethod · 0.45

Tested by

no test coverage detected