Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
cool
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Hans-Peter Deifel
cool
Commits
9631d5b7
Commit
9631d5b7
authored
8 years ago
by
Kristin Braun
Browse files
Options
Downloads
Patches
Plain Diff
added nom2fix method
parent
7eb41195
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/coalg/coalg.ml
+16
-1
16 additions, 1 deletion
src/coalg/coalg.ml
with
16 additions
and
1 deletion
src/coalg/coalg.ml
+
16
−
1
View file @
9631d5b7
...
...
@@ -46,7 +46,7 @@ let _ =
let
printUsage
()
=
print_endline
"Usage:
\"
alc <task> <functor> [<flags>]
\"
where"
;
print_endline
" <task> in { sat print verify nnf prov (is »not.(sat ¬f)«) }"
;
print_endline
" <task> in { sat print verify nnf prov (is »not.(sat ¬f)«)
nom2fix
}"
;
print_endline
" <functor> in { MultiModalK (or equivalently K)"
;
print_endline
" MultiModalKD (or equivalently KD)"
;
print_endline
" Monotone"
;
...
...
@@ -154,6 +154,20 @@ let choicePrint () =
done
with
End_of_file
->
()
let
choiceNom2fix
()
=
try
while
true
do
let
input
=
read_line
()
in
if
not
(
GenAndComp
.
isEmptyString
input
)
then
let
f
=
CoAlgFormula
.
importFormula
input
in
let
str
=
CoAlgFormula
.
exportFormula
f
in
incr
counter
;
print_string
(
"
\n
Formula "
^
(
string_of_int
!
counter
)
^
": "
^
str
^
"
\n
"
);
flush
stdout
;
else
()
done
with
End_of_file
->
()
let
choiceNNF
()
=
try
while
true
do
...
...
@@ -223,4 +237,5 @@ let _ =
|
"nnf"
->
choiceNNF
()
|
"verify"
->
choiceVerify
()
|
"graph"
->
choiceGraph
()
|
"nom2fix"
->
choiceNom2fix
()
|
_
->
printUsage
()
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment