(&mut self, conds: LinearConstraintSystem)
| 353 | } |
| 354 | |
| 355 | pub fn add_constraints(&mut self, conds: LinearConstraintSystem) { |
| 356 | if self.is_bottom() { |
| 357 | return; |
| 358 | } |
| 359 | if conds.is_false() { |
| 360 | self.set_to_bottom(); |
| 361 | return; |
| 362 | } |
| 363 | for cst in &conds { |
| 364 | self.add_constraint(cst); |
| 365 | if self.is_bottom() { |
| 366 | return; |
| 367 | } |
| 368 | } |
| 369 | } |
| 370 | |
| 371 | fn add_constraint(&mut self, cst: &LinearConstraint) { |
| 372 | if cst.is_contradiction() { |
no test coverage detected