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

Seg fault in rewrite #376

Closed
mbbarbosa opened this issue May 12, 2023 · 4 comments
Closed

Seg fault in rewrite #376

mbbarbosa opened this issue May 12, 2023 · 4 comments

Comments

@mbbarbosa
Copy link
Contributor

mbbarbosa commented May 12, 2023

The following proof causes a seg fault.

require import AllCore IntDiv List.
from Jasmin require import JModel.

lemma SAR_sem10 (a : W16.t) : a |>> W8.of_int 10 = W16.of_int (to_sint a %/ 2^10).
+ have H : all (fun i => let a = W16.of_int i in
                                     a |>> W8.of_int 10 = W16.of_int (to_sint a %/ 2^10)) (iota_ 0 W16.modulus); last first.
   rewrite allP in H => /=; move : (H (to_uint a)) => /=.
   rewrite mem_iota /=;have := (W16.to_uint_cmp a) => /= /#.
rewrite -iotaredE /=.
@fdupress
Copy link
Member

fdupress commented May 12, 2023

Can't look now, but will likely need some detail from opam list to reproduce (compiler version, in particular).

And the Jasmin eclib version/commit hash as well, just to make sure we cover everything.

@mbbarbosa
Copy link
Contributor Author

ocaml 4.14.1 The OCaml compiler (virtual package)
ocaml-base-compiler 4.14.1 Official release 4.14.1

Jasmin commit: 470ac5f6f923efffbc0021edf718aa30a2d0f0db

@strub
Copy link
Member

strub commented Sep 26, 2024

This is the reduction of iotared that is causing a stack overflow. The reduction engine is not tail-call.

@strub
Copy link
Member

strub commented Sep 26, 2024

Superseded by #629

@strub strub closed this as completed Sep 26, 2024
@strub strub closed this as not planned Won't fix, can't repro, duplicate, stale Sep 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants