Exports are not used
It seems like the compiler completely ignores the exports section, leading to quite a lot of functions missing in my code. This is because they actually have the same function body and LLVM (or the linker, not sure) deduplicates them. However that single remaining function is then exported with both names to the user. wasm2cil does not look at the export section at all it seems and simply exports all functions with their internal name, leading to one or more of my functions missing each.
I kind of hacked something together. It's not clean, but I guess I can open a PR for it later. I have some other PRs coming up too.
During development, I often run things in this "mode", ignoring the exports section and pretending that everything is exported with its internal name.
But yes, to actually use wasm2cil, that behavior is incorrect.