Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
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
2 changes: 1 addition & 1 deletion dune-project
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
dune-site
markdown
(pcre2 (>= 8))
(why3 (and (>= 1.8.0) (< 1.9)))
(why3 (and (>= 1.9.0) (< 1.10)))
yojson
(zarith (>= 1.10))
))
2 changes: 1 addition & 1 deletion easycrypt.opam
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ depends: [
"dune-site"
"markdown"
"pcre2" {>= "8"}
"why3" {>= "1.8.0" & < "1.9"}
"why3" {>= "1.9.0" & < "1.10"}
"yojson"
"zarith" {>= "1.10"}
"odoc" {with-doc}
Expand Down
32 changes: 18 additions & 14 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 6 additions & 1 deletion flake.nix
Original file line number Diff line number Diff line change
@@ -1,12 +1,17 @@
{
inputs = {
opam-nix.url = "github:tweag/opam-nix";
opam-nix.inputs.opam-repository.follows = "opam-repository";

flake-utils.url = "github:numtide/flake-utils";

stable.url = "github:nixos/nixpkgs/24.05";
stable.url = "github:nixos/nixpkgs/26.05";
nixpkgs.follows = "opam-nix/nixpkgs";

opam-repository = {
url = "github:ocaml/opam-repository/d84cf31c7dc731a040a072ad455a629ac0909e30";
flake = false;
};
};

outputs = { self, flake-utils, opam-nix, nixpkgs, ... }@inputs:
Expand Down
7 changes: 5 additions & 2 deletions src/ecSmt.ml
Original file line number Diff line number Diff line change
Expand Up @@ -705,10 +705,13 @@ and trans_form ((genv, lenv) as env : tenv * lenv) (fp : form) =
| Flocal _ -> trans_app env fp []
| Fop _ -> trans_app env fp []

(* Special case for `%r` *)
(* Special case for `%r`. An integer literal is never negative
([f_int] builds the opposite of a non-negative literal), and
why3 real constants carry their sign apart from the mantissa. *)
| Fapp({ f_node = Fop (p, [])}, [{f_node = Fint n}])
when p_equal p CI_Real.p_real_of_int ->
WTerm.t_real_const (BI.to_why3 n)
assert (0 <= BI.sign n);
WTerm.t_real_const ~is_neg:false (BI.to_why3 n)

| Fapp (f,args) -> trans_app env f (List.map (trans_form env) args)

Expand Down
Loading