Skip to content

Commit d03e63d

Browse files
committed
Upgrade to why3 1.8
1 parent d9c058a commit d03e63d

File tree

4 files changed

+9
-9
lines changed

4 files changed

+9
-9
lines changed

dune-project

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
dune-site
2222
(ocaml-inifiles (>= 1.2))
2323
(pcre (>= 7))
24-
(why3 (and (>= 1.7.0) (< 1.8)))
24+
(why3 (and (>= 1.8.0) (< 1.9)))
2525
yojson
2626
(zarith (>= 1.10))
2727
))

easycrypt.opam

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ depends: [
99
"dune-site"
1010
"ocaml-inifiles" {>= "1.2"}
1111
"pcre" {>= "7"}
12-
"why3" {>= "1.7.0" & < "1.8"}
12+
"why3" {>= "1.8.0" & < "1.9"}
1313
"yojson"
1414
"zarith" {>= "1.10"}
1515
"odoc" {with-doc}

src/ecCoq.ml

+2-2
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ let run_batch ~(script : string) ~(coqenv : coqenv) (task : WTask.task) =
3737
let config = Why3.Whyconf.get_main coqenv.config in
3838
let config_mem = Why3.Whyconf.memlimit config in
3939
let config_time = Why3.Whyconf.timelimit config in
40-
let limit =
40+
let limits =
4141
Why3.Call_provers.{
4242
limit_time = config_time;
4343
limit_steps = 0;
@@ -50,7 +50,7 @@ let run_batch ~(script : string) ~(coqenv : coqenv) (task : WTask.task) =
5050
let call =
5151
Why3.Driver.prove_task_prepared
5252
~old:script ~inplace:true
53-
~command ~limit ~config coqenv.driver task
53+
~command ~limits ~config coqenv.driver task
5454
in call_prover_task ~coqenv call
5555

5656
(* -------------------------------------------------------------------- *)

src/ecProvers.ml

+5-5
Original file line numberDiff line numberDiff line change
@@ -513,17 +513,17 @@ let run_prover
513513
let pc =
514514
let command = pr.Whyconf.command in
515515

516-
let limit = { Call_provers.empty_limit with
516+
let limits = { Call_provers.empty_limits with
517517
Call_provers.limit_time =
518-
let limit = pi.pr_timelimit * pi.pr_cpufactor in
519-
if limit <= 0 then 0. else float_of_int limit;
518+
let limits = pi.pr_timelimit * pi.pr_cpufactor in
519+
if limits <= 0 then 0. else float_of_int limits;
520520
} in
521521

522522
let rec doit gcdone =
523523
try
524524
Driver.prove_task
525525
~config:(Config.main ())
526-
~command ~limit dr task
526+
~command ~limits dr task
527527
with Unix.Unix_error (Unix.ENOMEM, "fork", _) when not gcdone ->
528528
Gc.compact (); doit true
529529
in
@@ -618,7 +618,7 @@ let execute_task ?(notify : notify option) (pi : prover_infos) task =
618618
let fmt = Format.formatter_of_buffer buf in
619619
Format.fprintf fmt "prover %s disproved this goal." prover;
620620
Buffer.contents buf)));
621-
| (CP.Failure _ | CP.HighFailure) as answer->
621+
| (CP.Failure _ | CP.HighFailure _) as answer->
622622
notify |> oiter (fun notify -> notify `Warning (lazy (
623623
let buf = Buffer.create 0 in
624624
let fmt = Format.formatter_of_buffer buf in

0 commit comments

Comments
 (0)