Skip to content
Snippets Groups Projects
Commit 29d19a81 authored by Julien Girard-Satabin's avatar Julien Girard-Satabin
Browse files

[SAVer] Modified comment.

parent f5793dfd
No related branches found
No related tags found
No related merge requests found
...@@ -7,8 +7,8 @@ ...@@ -7,8 +7,8 @@
open Why3 open Why3
open Base open Base
(* -- Support for the NNet and ONNX neural network formats, as well as SVM under (* Support for several model formats: - NNet and ONNX for neural networks, - OVO
the .ovo format *) for for SVM *)
type nnshape = { type nnshape = {
nb_inputs : int; nb_inputs : int;
...@@ -57,7 +57,8 @@ let register_svm nb_inputs nb_outputs filename env = ...@@ -57,7 +57,8 @@ let register_svm nb_inputs nb_outputs filename env =
let ls_svm_apply = let ls_svm_apply =
Term.create_fsymbol Term.create_fsymbol
(Ident.id_fresh "svm_apply") (Ident.id_fresh "svm_apply")
[] (Ty.ty_func asarray_input_type asarray_input_type) []
(Ty.ty_func asarray_input_type asarray_input_type)
in in
Why3.Term.Hls.add loaded_svms ls_svm_apply Why3.Term.Hls.add loaded_svms ls_svm_apply
{ filename; nb_inputs; nb_outputs; ty_data = asarray_input_type }; { filename; nb_inputs; nb_outputs; ty_data = asarray_input_type };
......
...@@ -87,7 +87,7 @@ let answer_saver limit config task env prover dataset_csv = ...@@ -87,7 +87,7 @@ let answer_saver limit config task env prover dataset_csv =
let svm_filename = let svm_filename =
match Language.lookup_loaded_svms svm_app_sym with match Language.lookup_loaded_svms svm_app_sym with
| Some t -> t.filename | Some t -> t.filename
| None -> failwith "Svm file not found in environment." | None -> failwith "SVM file not found in environment."
in in
(eps, svm_filename) (eps, svm_filename)
else failwith "Wrong predicate found." else failwith "Wrong predicate found."
...@@ -136,9 +136,8 @@ let answer_saver limit config task env prover dataset_csv = ...@@ -136,9 +136,8 @@ let answer_saver limit config task env prover dataset_csv =
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 (* Any other answer than HighFailure should never happen as we do not
* never happen as we do not define define anything in SAVer's driver *))
* 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