Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Software
COOL
Commits
f222439b
Commit
f222439b
authored
Feb 02, 2022
by
Simon Prucker
Browse files
onestep decision implemented based on flag
parent
b90164e6
Pipeline
#13318
waiting for manual action with stages
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
src/exes/coalg/coalg.ml
View file @
f222439b
...
...
@@ -16,6 +16,9 @@ module FE = FunctorParsing
open
CoolUtils
let
a_list_functor_tableau_onestep
=
[
"K"
,
"ot"
;
"CL"
,
"t"
;
"GML"
,
"o"
;
"PML"
,
""
]
(* A partial function mapping nominals to their sorts. *)
let
nomTable
name
=
assert
(
CoAlgFormula
.
isNominal
name
);
...
...
@@ -177,8 +180,18 @@ let printUsage name =
let
counter
=
ref
0
exception
Not_Implemented
of
string
let
check_implementation
logic
onestep
=
match
(
List
.
assoc
logic
a_list_functor_tableau_onestep
)
with
|
"ot"
|
"to"
->
onestep
|
"o"
->
let
_
=
(
print_endline
"
\n
Only onestep implementation available"
)
in
true
|
"t"
->
let
_
=
(
print_endline
"
\n
Only tableau implementation available"
)
in
false
|
_
->
raise
(
Not_Implemented
(
logic
^
"is not implemented!"
))
let
choiceSat
opts
=
let
verb
=
opts
.
verbose
in
let
onestep
=
check_implementation
Sys
.
argv
.
(
2
)
opts
.
onestep
in
let
sorts
=
(
FE
.
sortTableFromString
Sys
.
argv
.
(
2
))
in
(* test if GML or PML occurs in sort table *)
...
...
@@ -199,7 +212,7 @@ let choiceSat opts =
incr
counter
;
print_string
(
"
\n
Formula "
^
(
string_of_int
!
counter
)
^
": "
);
flush
stdout
;
printRes
(
Reasoner
.
isSat
~
verbose
:
verb
opts
.
fragment
opts
.
game_solver
opts
.
prop_rate
sorts
nomTable
tbox
f
)
printRes
(
Reasoner
.
isSat
~
onestep
:
onestep
~
verbose
:
verb
opts
.
fragment
opts
.
game_solver
opts
.
prop_rate
sorts
nomTable
tbox
f
)
else
()
done
with
End_of_file
->
()
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment