Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upICE in CompilerContext::appendInlineAssembly()::(anonymous class)::operator()(const std::__cxx11::string &) [Invalid assembly generated by code generator] #8368
Comments
|
I was unable to reproduce this with the given compiler version and contract. Do I need to use any specific flags when compiling? |
|
Hmm. Try adding --optimize, or solfuzzer? |
|
It looks like the backslashes are not properly escaped and I would say this is still the case. |
|
I can reproduce on a more recent solc:
Use the file https://github.com/agroce/afl-compiler-fuzzer/blob/master/example.sol
...
|
|
Using your provided file I can reproduce it as well now. Thanks! |
|
Another test case for this issue if that helps
|
Description
The attached contract (which does not work well just copied from here, but is shown to give an overview of what it looks like):
produces:
when compiled with solc (optimization not needed)
On master, using AFL fuzzing. Another discovery using https://github.com/agroce/afl-compiler-fuzzer, again with more mutation operators
Environment
Steps to Reproduce
Above shows pretty clearly, I think.