MCPcopy Index your code
hub / github.com/Rust-API/Rust-API-Bypass-Checker / is_zero

Method is_zero

src/analysis/memory/expression.rs:312–317  ·  view source on GitHub ↗

Determines if the given expression is the compile time constant 0u128.

(&self)

Source from the content-addressed store, hash-verified

310
311 /// Determines if the given expression is the compile time constant 0u128.
312 pub fn is_zero(&self) -> bool {
313 if let Expression::CompileTimeConstant(ConstantValue::Int(val)) = self {
314 return *val == 0;
315 }
316 false
317 }
318
319 /// Adds any heap blocks found in the associated expression to the given set.
320 pub fn record_heap_blocks(&self, result: &mut HashSet<Rc<SymbolicValue>>) {

Callers 4

orMethod · 0.45
pointer_nullness_ofMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected