Solve a Z3 ast without changing the internal state of the solver
(&self, expression: &Z3Expression)
| 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) { |
no test coverage detected