Skip to main content

try_const_fold

Function try_const_fold 

Source
pub(crate) fn try_const_fold(
    inst: &InstData,
    inputs: &[AbsValue],
    interner: &mut Interner<U256Idx, U256, FbBuildHasher<32>>,
    code_len: usize,
) -> Option<AbsValue>
Expand description

Try to constant-fold an instruction.

code_len is the length of the bytecode (for CODESIZE).