Skip to content

Commit

Permalink
finished copy proofs
Browse files Browse the repository at this point in the history
Signed-off-by: isubasinghe <[email protected]>
  • Loading branch information
isubasinghe committed Mar 28, 2024
1 parent 486334d commit c17d782
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 160 deletions.
34 changes: 20 additions & 14 deletions copy_spec.py
Original file line number Diff line number Diff line change
Expand Up @@ -1042,6 +1042,12 @@ def truthy() -> source.ExprVarT[source.ProgVarName]:
),
"tmp.rx_return_inner_inner": source.Ghost(
precondition=conjs(
# eq(
# arg(copied_ghost),
# u64(0),
# ),
# eq(arg(mux_addr_ghost), u64(0)),
# eq(arg(cli_addr_ghost), u64(0)),
common_mem_wf(arg(Mem)),
neg(ring_empty_spec(
mem_acc(
Expand Down Expand Up @@ -1079,18 +1085,18 @@ def truthy() -> source.ExprVarT[source.ProgVarName]:
),
postcondition=conjs(
common_mem_wf(Mem),
eq(
copied_ghost,
u64(1)
),
eq(
mux_addr_ghost,
u64(0)
),
eq(
cli_addr_ghost,
u64(0)
)
# eq(
# copied_ghost,
# u64(1)
# ),
# eq(
# mux_addr_ghost,
# u64(0)
# ),
# eq(
# cli_addr_ghost,
# u64(0)
# )
),
loop_invariants={
},
Expand Down Expand Up @@ -2187,10 +2193,10 @@ def truthy() -> source.ExprVarT[source.ProgVarName]:
precondition=conjs(),
postcondition=conjs(),
loop_invariants={
lh('43'): conjs()
lh('23'): conjs()
},
loop_iterations={
lh('43'): source.empty_loop_ghost
lh('23'): source.empty_loop_ghost
}
),
"tmp.rx_return": source.Ghost(
Expand Down
Loading

0 comments on commit c17d782

Please sign in to comment.