Skip to content

Commit cd21d34

Browse files
authored
Add support for nop (#2034)
1 parent efc121c commit cd21d34

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

src/Assembly/Symbolic.v

+3
Original file line numberDiff line numberDiff line change
@@ -4386,6 +4386,9 @@ Definition SymexNormalInstruction {opts : symbolic_options_computed_opt} {descr:
43864386
rsp' <- Symeval (s:=stack_addr_size) (add stack_addr_size@(rsp', PreARG ((Z.of_N s/8)%Z)));
43874387
_ <- SetOperand rsp rsp';
43884388
SetOperand dst v
4389+
4390+
| nop, [] => ret tt
4391+
43894392
| _, _ => err (error.unimplemented_instruction instr)
43904393
end
43914394
| Some prefix => err (error.unimplemented_prefix instr) end

src/Assembly/WithBedrock/Semantics.v

+2
Original file line numberDiff line numberDiff line change
@@ -369,6 +369,8 @@ Definition DenoteNormalInstruction (st : machine_state) (instr : NormalInstructi
369369
st <- SetOperand stack_addr_size s st rsp rsp';
370370
SetOperand sa s st dst v
371371

372+
| nop, [] => Some st
373+
372374
| ret, _ => None (* not sure what to do with this ret, maybe exlude it? *)
373375

374376
| adc, _

0 commit comments

Comments
 (0)