src/HOL/Tools/Sledgehammer/sledgehammer_commands.ML
changeset 68563 05fb05f94686
parent 67405 e9ab4ad7bd15
child 69593 3dda49e08b9d
--- a/src/HOL/Tools/Sledgehammer/sledgehammer_commands.ML	Sun Jul 01 20:29:23 2018 +0100
+++ b/src/HOL/Tools/Sledgehammer/sledgehammer_commands.ML	Mon Jul 02 10:02:44 2018 +0200
@@ -175,7 +175,9 @@
 
 (* The first ATP of the list is used by Auto Sledgehammer. *)
 fun default_provers_param_value mode ctxt =
-  [cvc4N, z3N, spassN, eN, vampireN, veritN, e_sineN]
+  [cvc4N] @
+  (if is_vampire_noncommercial_license_accepted () = SOME false then [] else [vampireN]) @
+  [z3N, eN, spassN, veritN, e_sineN]
   |> map_filter (remotify_prover_if_not_installed ctxt)
   (* In "try" mode, leave at least one thread to another slow tool (e.g. Nitpick) *)
   |> take (Multithreading.max_threads () - (if mode = Try then 1 else 0))