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

Method leq

src/analysis/numerical/interval_domain.rs:178–196  ·  view source on GitHub ↗
(&self, other: &Self)

Source from the content-addressed store, hash-verified

176 IntervalAbstractDomain<Type>: GetDomainType,
177{
178 pub fn leq(&self, other: &Self) -> bool {
179 if self.is_bottom() || other.is_top() {
180 return true;
181 }
182 if other.is_bottom() {
183 return self.is_bottom();
184 }
185 for (path, itv) in &self.intervals {
186 if !interval_leq(itv, &other.var2itv(path)) {
187 return false;
188 }
189 }
190 for (path, other_itv) in &other.intervals {
191 if !self.intervals.contains_key(path) && !other_itv.is_top() {
192 return false;
193 }
194 }
195 true
196 }
197
198 pub fn rename(&mut self, old_path: &Rc<Path>, new_path: &Rc<Path>) {
199 if self.contains(old_path) {

Callers

nothing calls this directly

Calls 5

interval_leqFunction · 0.85
var2itvMethod · 0.80
contains_keyMethod · 0.80
is_bottomMethod · 0.45
is_topMethod · 0.45

Tested by

no test coverage detected