Open abc767234318 opened 7 hours ago
I think you need to use a function name like %my_func
instead of a function name like u1:0
.
I think you need to use a function name like
%my_func
instead of a function name likeu1:0
.
The names of these functions are randomly generated, and they are named using numbers to facilitate subsequent analysis. In addition, other clif files I generated were named in a similar way and did not encounter this error.
At https://github.com/bytecodealliance/wasmtime/blob/5af89308dc0229ca404cd7000eec694201022e2d/cranelift/reader/src/parser.rs#L2731 the code for parsing ; print
directives expects a Token::Name
for the name of the function. %my_func
is tokenized as Token::Name
. u1:0
is not tokenized as Token::Name
however. Only tokens that start with %
.
I constructed a clif file.
multi_func21_fail_to_find_function.zip
I used the following command to run it.
But I got the following error:
On line 872 I specify the name of the function to run: And the definition of
u1:0
is on line 764.