pub fn inject_gas_counter(module: Module, rules: &Set) -> Result<Module, Module>
Expand description

Injects gas counter.

Can only fail if encounters operation forbidden by gas rules, in this case it returns error with the original module.