The use of opcode kinda just spread from _gen_is_valid where it make sense because it deals with enums and sum tags. In most cases it might be better named instruction_bv but that seems wordy. A name that might seem reasonable is assembled_inst but that creates confusion with asm_adt. So I think its reasonable - opcode means the argument must be a bitvector.
The use of opcode kinda just spread from
_gen_is_valid
where it make sense because it deals with enums and sum tags. In most cases it might be better namedinstruction_bv
but that seems wordy. A name that might seem reasonable isassembled_inst
but that creates confusion withasm_adt
. So I think its reasonable -opcode
means the argument must be a bitvector.