franck44 / evm-dis

An EVM bytecode disassembler/assembler
Apache License 2.0
29 stars 6 forks source link

Make computation of number of arguments of opcode clearer #9

Open franck44 opened 9 months ago

franck44 commented 9 months ago

At the moment, the arguments of an instruction, e.g. PUSH1' are aseq`. In practice it must be of even length. This is an important assumption in the computation of the instruction following a given instruction:

To do

Add a constraint that the args in Instruction must have even length. This may be added to the IsValid() predicate.