Skip to content

Commit d33ecef

Browse files
Exposing llvm_pattern_matching_failure_event to Python Bindings (#1148)
We missed this feature while implementing the new step event; we now need to add it so the Pi2 MPG Team can handle it on the Python side. A subsequent K PR will also be necessary to correctly expose this feature.
1 parent 79677a5 commit d33ecef

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

bindings/python/ast.cpp

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -418,6 +418,14 @@ void bind_proof_trace(py::module_ &m) {
418418
.def_property_readonly(
419419
"check_result", &llvm_side_condition_end_event::get_result);
420420

421+
py::class_<
422+
llvm_pattern_matching_failure_event,
423+
std::shared_ptr<llvm_pattern_matching_failure_event>>(
424+
proof_trace, "llvm_pattern_matching_failure_event", step_event)
425+
.def_property_readonly(
426+
"function_name",
427+
&llvm_pattern_matching_failure_event::get_function_name);
428+
421429
py::class_<llvm_function_event, std::shared_ptr<llvm_function_event>>(
422430
proof_trace, "llvm_function_event", step_event)
423431
.def_property_readonly("name", &llvm_function_event::get_name)

0 commit comments

Comments
 (0)