thread 'main' panicked at src/generator/emitters.rs:1476:9:
internal error: entered unreachable code
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
Seems like the current logic of the tool requires at least one instrument location to not panic.
Change the i32.add to call 0 and there will be no panic.
Consider the following
app.wasm
runned with the following script:
This results in a panic in curr_instr_type:
Seems like the current logic of the tool requires at least one instrument location to not panic.
Change the
i32.add
tocall 0
and there will be no panic.