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

Method inverse_implies_not

src/analysis/memory/symbolic_value.rs:930–938  ·  view source on GitHub ↗

Returns true if "!self => !other" is known at compile time to be true. Returning false does not imply the implication is false, just that we do not know.

(&self, other: &Rc<SymbolicValue>)

Source from the content-addressed store, hash-verified

928 /// Returns true if "!self => !other" is known at compile time to be true.
929 /// Returning false does not imply the implication is false, just that we do not know.
930 fn inverse_implies_not(&self, other: &Rc<SymbolicValue>) -> bool {
931 if self == other {
932 return true;
933 }
934 if let Expression::And { left, right } = &other.expression {
935 return self.inverse_implies_not(left) || self.implies_not(right);
936 }
937 false
938 }
939
940 /// True if the set of concrete values that correspond to this domain is empty.
941 fn is_bottom(&self) -> bool {

Callers 2

inverse_impliesMethod · 0.80
orMethod · 0.80

Calls 1

implies_notMethod · 0.80

Tested by

no test coverage detected