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

[SAVer] Use more robust realpath rather than prefixing the cwd path.

parent 30fefc19
No related branches found
No related tags found
No related merge requests found
...@@ -112,8 +112,8 @@ let answer_saver limit config task env prover dataset_csv = ...@@ -112,8 +112,8 @@ let answer_saver limit config task env prover dataset_csv =
| _ -> failwith "Unsupported by SAVer.") | _ -> failwith "Unsupported by SAVer.")
| _ -> failwith "Unsupported by SAVer." | _ -> failwith "Unsupported by SAVer."
in in
let svm_file = Filename.concat (Caml.Sys.getcwd ()) svm_filename in let svm_file = Unix.realpath svm_filename in
let dataset_file = Filename.concat (Caml.Sys.getcwd ()) dataset_filename in let dataset_file = Unix.realpath dataset_filename in
let command = Re__Core.replace_string svm ~by:svm_file command in let command = Re__Core.replace_string svm ~by:svm_file command in
let command = Re__Core.replace_string dataset ~by:dataset_file command in let command = Re__Core.replace_string dataset ~by:dataset_file command in
let command = Re__Core.replace_string epsilon ~by:eps command in let command = Re__Core.replace_string epsilon ~by:eps command in
...@@ -154,10 +154,11 @@ let answer_saver limit config task env prover dataset_csv = ...@@ -154,10 +154,11 @@ let answer_saver limit config task env prover dataset_csv =
= Int.of_string (Re__Core.Group.get g 2) = Int.of_string (Re__Core.Group.get g 2)
then Call_provers.Valid then Call_provers.Valid
else Call_provers.Invalid else Call_provers.Invalid
| None -> Call_provers.HighFailure | None -> Call_provers.HighFailure)
| _ ->
(* Any other answer than HighFailure should never happen as we do not (* Any other answer than HighFailure should never happen as we do not
define anything in SAVer's driver. *)) define anything in SAVer's driver. *)
| _ -> assert false assert false
in in
answer answer
......
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