Skip to content
Snippets Groups Projects
Commit 427a1c78 authored by Michele Alberti's avatar Michele Alberti
Browse files

Push memory limit to 4GB by default.

parent 6594a120
No related branches found
No related tags found
No related merge requests found
......@@ -11,8 +11,17 @@ let () = Language.register_nnet_support ()
let create_env loadpath =
let config = Autodetection.autodetect ~debug:true () in
let stdlib = Dirs.Sites.stdlib in
let open Why3 in
let config =
let main = Whyconf.get_main config in
let dft_memlimit = 4000 (* 4 GB *) in
let main =
Whyconf.(
set_limits main (timelimit main) dft_memlimit (running_provers_max main))
in
Whyconf.set_main config main
in
let stdlib = Dirs.Sites.stdlib in
( Env.create_env
(loadpath @ stdlib @ Whyconf.loadpath (Whyconf.get_main config)),
config )
......
File mode changed from 100644 to 100755
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment