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

Method decl

lean_py/z3/core.py:352–355  ·  view source on GitHub ↗

Return the function declaration for this expression.

(self)

Source from the content-addressed store, hash-verified

350 return [_child_expr(c, self, i) for i, c in enumerate(_ast_children(self._ast))]
351
352 def decl(self) -> FuncDeclRef:
353 """Return the function declaration for this expression."""
354 name = _ast_decl_name(self._ast)
355 return FuncDeclRef(name, (), self._sort)
356
357 def sexpr(self) -> str:
358 """Return S-expression representation."""

Callers 13

test_binop_declMethod · 0.80
test_comparison_declMethod · 0.80
test_unop_childrenMethod · 0.80
test_not_childrenMethod · 0.80
test_ite_childrenMethod · 0.80
test_and_childrenMethod · 0.80
test_or_childrenMethod · 0.80
test_app_childrenMethod · 0.80
test_select_childrenMethod · 0.80
test_store_childrenMethod · 0.80

Calls 2

_ast_decl_nameFunction · 0.85
FuncDeclRefClass · 0.85

Tested by 13

test_binop_declMethod · 0.64
test_comparison_declMethod · 0.64
test_unop_childrenMethod · 0.64
test_not_childrenMethod · 0.64
test_ite_childrenMethod · 0.64
test_and_childrenMethod · 0.64
test_or_childrenMethod · 0.64
test_app_childrenMethod · 0.64
test_select_childrenMethod · 0.64
test_store_childrenMethod · 0.64