Skip to content

Commit

Permalink
Correctly extract dummy instr_info to 1 (one)
Browse files Browse the repository at this point in the history
Fixes #224
  • Loading branch information
vbgl authored and bgregoir committed Aug 31, 2022
1 parent 8c18e43 commit 370a83f
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@
([PR #216](https://github.com/jasmin-lang/jasmin/pull/216);
fixes [#200](https://github.com/jasmin-lang/jasmin/issues/200)).

- Do not spuriously warn about missing “iinfo”
([PR #225](https://github.com/jasmin-lang/jasmin/pull/225);
fixes [#224](https://github.com/jasmin-lang/jasmin/issues/224)).

## New features

- Fill an array with “random” data using `p = #randombytes(p);`
Expand Down
6 changes: 6 additions & 0 deletions compiler/tests/success/bug_224.jazz
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
export
fn main(reg u64 x) {
while {
x -= 1;
} (x > 0)
}
2 changes: 1 addition & 1 deletion proofs/lang/extraction.v
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ Extract Constant expr.VarInfo.t => "Location.t".
Extract Constant expr.VarInfo.witness => "Location._dummy".
Extract Constant expr.var_info => "Location.t".
Extract Constant expr.InstrInfo.t => "Stdlib.Int.t".
Extract Constant expr.InstrInfo.witness => "(-1)".
Extract Constant expr.InstrInfo.witness => "1".
Extract Constant expr.instr_info => "Stdlib.Int.t".

Cd "lang/ocaml".
Expand Down

0 comments on commit 370a83f

Please sign in to comment.