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

cfold tactic on bdep branch #676

Open
bacelar opened this issue Dec 27, 2024 · 1 comment
Open

cfold tactic on bdep branch #676

bacelar opened this issue Dec 27, 2024 · 1 comment
Assignees
Labels

Comments

@bacelar
Copy link

bacelar commented Dec 27, 2024

The extended cfold tactic on the bdep branch appears too eager in carrying out its work. A faulty example is the following:

module M = {
 proc f(): int = {
   var t, x, y;
   x <- 1;
   y <- 0;
   t <- 2;
   (* 1 0 2 *)
   x <- y;
   y <- t;
   t <- 3;
   (* 0 2 3 *)
   return x;
  }
}.
hoare f_h:
  M.f: true ==> res = 0.
proof.
proc.
(* auto => />. (*This works as expected*) *)
cfold 1; auto => />. (* but not this one! *)
@strub
Copy link
Member

strub commented Jan 6, 2025

cfold in bdep was made in a hurry. I'll have a look.

@strub strub added the bug label Jan 6, 2025
@strub strub self-assigned this Jan 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants