Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Attach more precise meta-data to variables introduced at compile-time #753

Merged
merged 4 commits into from
Mar 15, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Proper var info in add-array-init
  • Loading branch information
vbgl committed Mar 13, 2024
commit 25e1d9712a0373ae1e1b6eb7c892f8c92816e108
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,10 @@
([PR #751](https://github.com/jasmin-lang/jasmin/pull/751);
fixes [#750](https://github.com/jasmin-lang/jasmin/issues/750)).

- Attach more precise meta-data to variables introduced at compile-time
([PR #753](https://github.com/jasmin-lang/jasmin/pull/753);
fixes [#718](https://github.com/jasmin-lang/jasmin/issues/718)).

## Other changes

- Pretty-printing of Jasmin programs is more precise
Expand Down
4 changes: 2 additions & 2 deletions proofs/compiler/arm_stack_zeroization_proof.v
Original file line number Diff line number Diff line change
Expand Up @@ -811,7 +811,7 @@ Proof.
have hlinear: [elaborate
is_linear_of lp fn
(lc
++ stack_zero_loop (mk_var_i (vid rspn)) lbl ws_align ws stk_max
++ stack_zero_loop (vid rspn) lbl ws_align ws stk_max
++ [::])].
+ by rewrite cats0; exists lfd.
subst top.
Expand All @@ -823,7 +823,7 @@ Proof.
have hlinear: [elaborate
is_linear_of lp fn
(lc
++ stack_zero_unrolled (mk_var_i (vid rspn)) ws_align ws stk_max
++ stack_zero_unrolled (vid rspn) ws_align ws stk_max
++ [::])].
+ by rewrite cats0; exists lfd.
have := stack_zero_unrolledP
Expand Down
2 changes: 1 addition & 1 deletion proofs/compiler/array_init.v
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ Definition add_init_aux ii x c :=
match x.(vtype) with
| sarr n =>
if ~~ is_ptr x then
let x := VarI x dummy_var_info in
let x := VarI x (var_info_of_ii ii) in
MkI ii (Cassgn (Lvar x) AT_none (sarr n) (Parr_init n)) :: c
else c
| _ => c
Expand Down