When I run the decompiler on a simple haskell wasm program I get:
0003931: error: unexpected opcode: 0x12
Steps to reproduce:
- obtain ghc with a wasm backend
echo 'main = putStrLn "hello world"' > hello.hs
wasm32-wasi-ghc hello.hs -o hello.wasm
- decompile:
wasm-decompile hello.wasm
Note: I get this error on 1.0.37 and the ghc version obtained with nix.