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

Method num_args

lean_py/z3/core.py:337–339  ·  view source on GitHub ↗

Number of arguments (children) of this expression.

(self)

Source from the content-addressed store, hash-verified

335 raise TypeError("Symbolic expressions cannot be cast to concrete Boolean values")
336
337 def num_args(self) -> int:
338 """Number of arguments (children) of this expression."""
339 return len(_ast_children(self._ast))
340
341 def arg(self, i: int) -> ExprRef:
342 """Return the i-th argument of this expression."""

Callers 13

test_binop_num_argsMethod · 0.45
test_unop_childrenMethod · 0.45
test_not_childrenMethod · 0.45
test_ite_childrenMethod · 0.45
test_and_childrenMethod · 0.45
test_or_childrenMethod · 0.45
test_app_childrenMethod · 0.45
test_select_childrenMethod · 0.45

Calls 1

_ast_childrenFunction · 0.85

Tested by 13

test_binop_num_argsMethod · 0.36
test_unop_childrenMethod · 0.36
test_not_childrenMethod · 0.36
test_ite_childrenMethod · 0.36
test_and_childrenMethod · 0.36
test_or_childrenMethod · 0.36
test_app_childrenMethod · 0.36
test_select_childrenMethod · 0.36