Skip to content
Snippets Groups Projects
Commit 62cbb102 authored by Hans-Peter Deifel's avatar Hans-Peter Deifel :turtle:
Browse files

coalg: Make 'graph' subcommand more cli-friendly

- Read only one formula, we also only generate one graph
- Don't print a prompt or the satisfiability result

This allows to redirect the output graph to a file or directly to dot.
parent c4503f4f
No related branches found
No related tags found
No related merge requests found
...@@ -188,7 +188,11 @@ let choiceNNF () = ...@@ -188,7 +188,11 @@ let choiceNNF () =
with End_of_file -> () with End_of_file -> ()
let choiceGraph () = let choiceGraph () =
choiceSat (); let sorts = (FE.sortTableFromString Sys.argv.(2)) in
let input = read_line () in
let (tbox, f) = CoAlgFormula.importQuery input in
ignore(CoAlgReasoner.isSat sorts nomTable tbox f);
print_endline (CM.graphToDot ()) print_endline (CM.graphToDot ())
let choiceVerify () = let choiceVerify () =
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment