Skip to content

Commit

Permalink
Adding get_requires() to Python bindings (#1019)
Browse files Browse the repository at this point in the history
This is a requirement from the Math Proof Generation Team of $Piˆ2$ to
get easy access to the Pattern of a requires clause.

This PR must be merged before this [PyK
PR](runtimeverification/pyk#1056) that will
properly expose this binding to the Pi2 project.
  • Loading branch information
Robertorosmaninho authored Apr 2, 2024
1 parent e2f583a commit 283b97b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion bindings/python/ast.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,8 @@ void bind_ast(py::module_ &m) {
py::arg("is_claim") = false)
.def_property_readonly("is_claim", &kore_axiom_declaration::is_claim)
.def("add_pattern", &kore_axiom_declaration::add_pattern)
.def_property_readonly("pattern", &kore_axiom_declaration::get_pattern);
.def_property_readonly("pattern", &kore_axiom_declaration::get_pattern)
.def_property_readonly("requires", &kore_axiom_declaration::get_requires);

py::class_<
kore_module_import_declaration,
Expand Down

0 comments on commit 283b97b

Please sign in to comment.