MCPcopy Create free account
hub / github.com/Rust-API/Rust-API-Bypass-Checker / add_constraints

Method add_constraints

src/analysis/numerical/interval_domain.rs:355–369  ·  view source on GitHub ↗
(&mut self, conds: LinearConstraintSystem)

Source from the content-addressed store, hash-verified

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() {

Calls 4

is_falseMethod · 0.80
set_to_bottomMethod · 0.80
add_constraintMethod · 0.80
is_bottomMethod · 0.45

Tested by

no test coverage detected