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

Function union_paths

src/analysis/numerical/interval_domain.rs:468–483  ·  view source on GitHub ↗
(
    lhs: &IntervalAbstractDomain<Type>,
    rhs: &IntervalAbstractDomain<Type>,
)

Source from the content-addressed store, hash-verified

466}
467
468fn union_paths<Type>(
469 lhs: &IntervalAbstractDomain<Type>,
470 rhs: &IntervalAbstractDomain<Type>,
471) -> Vec<Rc<Path>>
472where
473 Type: NumericalDomainType,
474 IntervalAbstractDomain<Type>: GetDomainType,
475{
476 let mut paths: Vec<Rc<Path>> = lhs.intervals.keys().cloned().collect();
477 for path in rhs.intervals.keys() {
478 if !paths.contains(path) {
479 paths.push(path.clone());
480 }
481 }
482 paths
483}
484
485fn interval_leq(lhs: &Interval, rhs: &Interval) -> bool {
486 lhs.is_bottom()

Callers 3

widening_withMethod · 0.85
joinMethod · 0.85
meetMethod · 0.85

Calls 2

pushMethod · 0.80
containsMethod · 0.45

Tested by

no test coverage detected