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

Function meet_interval

src/analysis/numerical/interval_domain.rs:504–513  ·  view source on GitHub ↗
(lhs: &Interval, rhs: &Interval)

Source from the content-addressed store, hash-verified

502}
503
504fn meet_interval(lhs: &Interval, rhs: &Interval) -> Interval {
505 if lhs.is_bottom() || rhs.is_bottom() {
506 Interval::bottom()
507 } else {
508 Interval::new(
509 lhs.low.clone().max(rhs.low.clone()),
510 lhs.high.clone().min(rhs.high.clone()),
511 )
512 }
513}
514
515fn widen_interval(old: &Interval, new: &Interval) -> Interval {
516 if old.is_bottom() {

Callers 2

meetMethod · 0.85
refine_path_intervalMethod · 0.85

Calls 1

is_bottomMethod · 0.45

Tested by

no test coverage detected