Skip to content

Commit

Permalink
add num_recursive_calls to FFI
Browse files Browse the repository at this point in the history
  • Loading branch information
camoy committed Jun 16, 2024
1 parent 01a7723 commit 5d92a86
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/ffi.rs
Original file line number Diff line number Diff line change
Expand Up @@ -254,6 +254,13 @@ pub unsafe extern "C" fn print_bdd(bdd: *mut BddPtr<'static>) -> *const c_char {
p
}

#[no_mangle]
#[allow(clippy::missing_safety_doc)]
pub unsafe extern "C" fn bdd_num_recursive_calls(builder: *mut RsddBddBuilder) -> usize {
let builder = robdd_builder_from_ptr(builder);
builder.num_recursive_calls()
}

#[no_mangle]
#[allow(clippy::missing_safety_doc)]
pub unsafe extern "C" fn bdd_wmc(
Expand Down

0 comments on commit 5d92a86

Please sign in to comment.