There might be some ideas for things that can be improved in: https://github.com/sola-st/wasm-type-prediction/blob/a69a0310324fb1a695cee6d97e9db61d638df0ef/implementation/2-extraction/src/dwarf/util.rs