fn or_eliminate(bits: usize, e: &il::Expression) -> bool {
            let mask: u64 = (1 << (bits as u64)) - 1;

            match e {
                il::Expression::Constant(c) => {
                    c.value_u64().map(|v| v & mask == 0).unwrap_or(false)
                }
                _ => false,
            }
        }
// Returns true if this side of an or statement can be safely eliminated
Returns true if this side of an or statement can be safely eliminated
Returns true if this side of an or statement can be safely eliminated
fn or_eliminate(bits: usize, e: &il::Expression) -> bool {
            let mask: u64 = (1 << (bits as u64)) - 1;
            match e {
                il::Expression::Constant(c) => {
                    c.value_u64().map(|v| v & mask == 0).unwrap_or(false)
                }
                _ => false,
            }
        }
fn or_eliminate ( bits : usize , e : & il :: Expression ) -> bool { let mask : u64 = ( 1 << ( bits as u64 ) ) - 1 ; match e { il :: Expression :: Constant ( c ) => { c . value_u64 ( ) . map ( | v | v & mask == 0 ) . unwrap_or ( false ) } _ => false , } }
Returns true if this side of an or statement can be safely eliminated
Returns true if this side of an or statement can be safely eliminated
bits
usize
e
&il::Expression