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

Function join_interval

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

Source from the content-addressed store, hash-verified

489}
490
491fn join_interval(lhs: &Interval, rhs: &Interval) -> Interval {
492 if lhs.is_bottom() {
493 rhs.clone()
494 } else if rhs.is_bottom() {
495 lhs.clone()
496 } else {
497 Interval::new(
498 lhs.low.clone().min(rhs.low.clone()),
499 lhs.high.clone().max(rhs.high.clone()),
500 )
501 }
502}
503
504fn meet_interval(lhs: &Interval, rhs: &Interval) -> Interval {
505 if lhs.is_bottom() || rhs.is_bottom() {

Callers 1

joinMethod · 0.85

Calls 1

is_bottomMethod · 0.45

Tested by

no test coverage detected