-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Extract the iSL decision procedure to OCaml
Decision procedure: name cleanup
- Loading branch information
Showing
4 changed files
with
329 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
open Exenum | ||
open Printer | ||
open UIML.Formulas | ||
open Sys | ||
open Char | ||
open UIML.DecisionProcedure | ||
open UIML.Datatypes | ||
open Stringconversion | ||
open Modal_expressions_parser | ||
|
||
|
||
|
||
let nb_args = Array.length Sys.argv | ||
|
||
let form = if nb_args = 2 then (Sys.argv.(1)) else "T" | ||
|
||
let usage_string = | ||
"isl_dec φ: decides the provability of the modal formula φ in iSL.\n" | ||
|
||
let print_decision = function | ||
| Coq_inl _ -> "Probable" | ||
| _ -> "Not provable" | ||
|
||
let () = | ||
if nb_args = 2 then form |> eval |> coq_Provable_dec [] |> | ||
print_decision |> print_string |> print_newline | ||
else print_string usage_string |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters