summaryrefslogtreecommitdiff
path: root/contrib/dp
diff options
context:
space:
mode:
authorGravatar Samuel Mimram <smimram@debian.org>2007-02-13 13:48:12 +0000
committerGravatar Samuel Mimram <smimram@debian.org>2007-02-13 13:48:12 +0000
commit55ce117e8083477593cf1ff2e51a3641c7973830 (patch)
treea82defb4105f175c71b0d13cae42831ce608c4d6 /contrib/dp
parent208a0f7bfa5249f9795e6e225f309cbe715c0fad (diff)
Imported Upstream version 8.1+dfsgupstream/8.1+dfsg
Diffstat (limited to 'contrib/dp')
-rw-r--r--contrib/dp/dp.ml15
1 files changed, 7 insertions, 8 deletions
diff --git a/contrib/dp/dp.ml b/contrib/dp/dp.ml
index af684e6e..131dd029 100644
--- a/contrib/dp/dp.ml
+++ b/contrib/dp/dp.ml
@@ -639,8 +639,8 @@ let remove_files = List.iter (fun f -> try Sys.remove f with _ -> ())
let sprintf = Format.sprintf
let call_simplify fwhy =
- if Sys.command (sprintf "why --simplify %s" fwhy) <> 0 then
- anomaly ("call to why --simplify " ^ fwhy ^ " failed; please report");
+ let cmd = sprintf "why --simplify %s" fwhy in
+ if Sys.command cmd <> 0 then error ("Call to " ^ cmd ^ " failed");
let fsx = Filename.chop_suffix fwhy ".why" ^ "_why.sx" in
let cmd =
sprintf "timeout 10 Simplify %s > out 2>&1 && grep -q -w Valid out" fsx
@@ -652,8 +652,7 @@ let call_simplify fwhy =
let call_zenon fwhy =
let cmd = sprintf "why --no-prelude --no-zenon-prelude --zenon %s" fwhy in
- if Sys.command cmd <> 0 then
- anomaly ("call to " ^ cmd ^ " failed; please report");
+ if Sys.command cmd <> 0 then error ("call to " ^ cmd ^ " failed");
let fznn = Filename.chop_suffix fwhy ".why" ^ "_why.znn" in
let cmd =
sprintf "timeout 10 zenon %s > out 2>&1 && grep -q PROOF-FOUND out" fznn
@@ -669,8 +668,8 @@ let call_zenon fwhy =
r
let call_cvcl fwhy =
- if Sys.command (sprintf "why --cvcl %s" fwhy) <> 0 then
- anomaly ("call to why --cvcl " ^ fwhy ^ " failed; please report");
+ let cmd = sprintf "why --cvcl %s" fwhy in
+ if Sys.command cmd <> 0 then error ("call to " ^ cmd ^ " failed");
let fcvc = Filename.chop_suffix fwhy ".why" ^ "_why.cvc" in
let cmd =
sprintf "timeout 10 cvcl < %s > out 2>&1 && grep -q -w Valid out" fcvc
@@ -681,8 +680,8 @@ let call_cvcl fwhy =
r
let call_harvey fwhy =
- if Sys.command (sprintf "why --harvey %s" fwhy) <> 0 then
- anomaly ("call to why --harvey " ^ fwhy ^ " failed; please report");
+ let cmd = sprintf "why --harvey %s" fwhy in
+ if Sys.command cmd <> 0 then error ("call to " ^ cmd ^ " failed");
let frv = Filename.chop_suffix fwhy ".why" ^ "_why.rv" in
let out = Sys.command (sprintf "rvc -e -t %s > /dev/null 2>&1" frv) in
if out <> 0 then anomaly ("call to rvc -e -t " ^ frv ^ " failed");