Skip to main content

expr_simplify

Function expr_simplify 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn expr_simplify(handle: *mut Expr) -> *mut Expr
👎Deprecated since 0.1.6:

Please use the handle-based rssn_expr_simplify instead.

Expand description

Simplifies an Expr and returns a handle to the new, simplified expression.

The caller is responsible for freeing the returned handle using expr_free.

§Safety

This function is unsafe because it dereferences raw pointers as part of the FFI boundary. The caller must ensure:

  1. All pointer arguments are valid and point to initialized memory.
  2. The memory layout of passed structures matches the expected C-ABI layout.
  3. Any pointers returned by this function are managed according to the API’s ownership rules.