Skip to content

Commit

Permalink
Add support for nop (#2034)
Browse files Browse the repository at this point in the history
  • Loading branch information
JasonGross authored Mar 7, 2025
1 parent efc121c commit cd21d34
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Assembly/Symbolic.v
Original file line number Diff line number Diff line change
Expand Up @@ -4386,6 +4386,9 @@ Definition SymexNormalInstruction {opts : symbolic_options_computed_opt} {descr:
rsp' <- Symeval (s:=stack_addr_size) (add stack_addr_size@(rsp', PreARG ((Z.of_N s/8)%Z)));
_ <- SetOperand rsp rsp';
SetOperand dst v

| nop, [] => ret tt

| _, _ => err (error.unimplemented_instruction instr)
end
| Some prefix => err (error.unimplemented_prefix instr) end
Expand Down
2 changes: 2 additions & 0 deletions src/Assembly/WithBedrock/Semantics.v
Original file line number Diff line number Diff line change
Expand Up @@ -369,6 +369,8 @@ Definition DenoteNormalInstruction (st : machine_state) (instr : NormalInstructi
st <- SetOperand stack_addr_size s st rsp rsp';
SetOperand sa s st dst v

| nop, [] => Some st

| ret, _ => None (* not sure what to do with this ret, maybe exlude it? *)

| adc, _
Expand Down

0 comments on commit cd21d34

Please sign in to comment.