MCPcopy Index your code
hub / github.com/Rust-API/Rust-API-Bypass-Checker / solve_expression

Method solve_expression

src/analysis/z3_solver.rs:95–101  ·  view source on GitHub ↗

Solve a Z3 ast without changing the internal state of the solver

(&self, expression: &Z3Expression)

Source from the content-addressed store, hash-verified

93
94 /// Solve a Z3 ast without changing the internal state of the solver
95 pub fn solve_expression(&self, expression: &Z3Expression) -> SmtResult {
96 self.set_backtrack_position();
97 self.assert(expression);
98 let result = self.solve();
99 self.backtrack();
100 result
101 }
102
103 /// Add a constraint into the solver
104 pub fn assert(&self, expression: &Z3Expression) {

Callers 3

check_within_rangeMethod · 0.80
solve_conditionMethod · 0.80

Calls 4

assertMethod · 0.80
solveMethod · 0.80
backtrackMethod · 0.80

Tested by

no test coverage detected