Class: Z3::Solver
Overview
Extension to the Z3::Solver class to add tracked assertions
Instance Method Summary collapse
-
#assert_as(ast, name)
Assert an expression and track it with a name for unsat core analysis.
Instance Method Details
#assert_as(ast, name)
This method returns an undefined value.
Assert an expression and track it with a name for unsat core analysis
This method extends Z3::Solver to support named assertions, which is useful for debugging when a set of constraints is unsatisfiable. The name appears in the unsat core, helping identify which constraints conflict.
63 64 65 66 67 68 |
# File 'lib/udb/z3.rb', line 63 def assert_as(ast, name) reset_model! Z3::LowLevel.solver_assert_and_track( self, ast, Z3::Bool(name)) end |