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

A tentative first empty schema.

parent 1f3400ef
No related branches found
No related tags found
No related merge requests found
main.ml 0 → 100644
(**************************************************************************)
(* *)
(* This file is part of Caisar. *)
(* *)
(**************************************************************************)
let () =
(* Parse command-line using the Arg standard library module.
A typical command-line is the following:
./caisar -onnx [filename] -solver [solvername] -prop [filename]
*)
(* Build a [Solver.t] and a [Solver.model]. *)
(* Build a [Property.t]. *)
(* Call [Solver.solve]. *)
Format.printf "Please do something useful.@."
(**************************************************************************)
(* *)
(* This file is part of Caisar. *)
(* *)
(**************************************************************************)
type var =
| Input of string
| Output of string
type t =
| Ge of var * float
| Le of float * var
| And of t * t
| Or of t * t
let property_of_string s =
ignore s;
None
let pretty fmt t =
ignore (fmt, t)
(**************************************************************************)
(* *)
(* This file is part of Caisar. *)
(* *)
(**************************************************************************)
(** A property. *)
type t
(** [property_of_string s] builds a property out of [s], if possible. *)
val property_of_string: string -> t option
(** [pretty property] pretty prints [property]. *)
val pretty: Format.formatter -> t -> unit
(**************************************************************************)
(* *)
(* This file is part of Caisar. *)
(* *)
(**************************************************************************)
type t =
| Pyrat
| Marabou
type model =
| Onnx of string
| Nnet of string
let solve solver model property =
(* Build the required command-line. *)
(* Execute the command-line just built. *)
ignore (solver, model, property)
(**************************************************************************)
(* *)
(* This file is part of Caisar. *)
(* *)
(**************************************************************************)
(** Supported solvers. *)
type t =
| Pyrat
| Marabou
(** Supported model format. *)
type model =
| Onnx of string
| Nnet of string
(** [solve solver model property] runs [solver] on [property] for [model]. *)
val solve: t -> model -> Property.t -> unit
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