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
9c2018ff
Commit
9c2018ff
authored
11 years ago
by
Thorsten Wißmann
Browse files
Options
Downloads
Patches
Plain Diff
Add genericK
parent
123bbbec
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
coalgcompare.ml
+24
-0
24 additions, 0 deletions
coalgcompare.ml
with
24 additions
and
0 deletions
coalgcompare.ml
+
24
−
0
View file @
9c2018ff
...
@@ -226,6 +226,28 @@ let doTestK (tboxsizes:int list) (szlist:int list) : testresults =
...
@@ -226,6 +226,28 @@ let doTestK (tboxsizes:int list) (szlist:int list) : testresults =
)
(
TList
.
prod
szlist
tboxsizes
)
in
)
(
TList
.
prod
szlist
tboxsizes
)
in
runTests
solvs
formulas
timeout
runTests
solvs
formulas
timeout
let
doTestGenericK
()
:
testresults
=
let
solvs
=
[(
solvFact
,
"fact"
);
(
solvCool
"K"
,
"cool"
)]
in
let
timeout
=
!
ptimeout
in
(* 5 minutes *)
let
formulas
=
ref
[]
in
let
counter
=
ref
0
in
let
s1
=
0
in
(
try
while
true
do
let
input
=
read_line
()
in
if
not
(
GenAndComp
.
isEmptyString
input
)
then
let
(
tbox
,
f
)
=
CoAlgFormula
.
importQuery
input
in
incr
counter
;
let
test
=
(
"line"
^
(
string_of_int
!
counter
)
,
(
tbox
,
f
))
in
formulas
:=
test
::
(
!
formulas
)
else
()
done
with
End_of_file
->
()
);
let
formulas
=
List
.
rev
!
formulas
in
runTests
solvs
formulas
timeout
let
printRawData
((
rn
,
results
)
:
testresults
)
:
unit
=
let
printRawData
((
rn
,
results
)
:
testresults
)
:
unit
=
let
doubler
l
=
List
.
fold_right
(
fun
a
b
->
(
a
^
"_state"
)
::
(
a
^
"_time"
)
::
b
)
l
[]
in
let
doubler
l
=
List
.
fold_right
(
fun
a
b
->
(
a
^
"_state"
)
::
(
a
^
"_time"
)
::
b
)
l
[]
in
print_endline
(
String
.
concat
";"
(
"formula"
::
doubler
rn
))
;
print_endline
(
String
.
concat
";"
(
"formula"
::
doubler
rn
))
;
...
@@ -298,6 +320,8 @@ let _ =
...
@@ -298,6 +320,8 @@ let _ =
let
tboxsizes
=
intlist_of_string
(
getarg
()
)
in
let
tboxsizes
=
intlist_of_string
(
getarg
()
)
in
let
szlist
=
intlist_of_string
(
getarg
()
)
in
let
szlist
=
intlist_of_string
(
getarg
()
)
in
printRawData
(
doTestK
tboxsizes
szlist
)
printRawData
(
doTestK
tboxsizes
szlist
)
|
"genericK"
->
printRawData
(
doTestGenericK
()
)
|
"CL1"
->
let
sz
=
(
5000
--
5080
)
in
|
"CL1"
->
let
sz
=
(
5000
--
5080
)
in
let
ats
(
str
,
f
)
=
(
str
,
([]
,
(
0
,
f
)))
in
(* add tbox and sort *)
let
ats
(
str
,
f
)
=
(
str
,
([]
,
(
0
,
f
)))
in
(* add tbox and sort *)
printRawData
(
doTestCL
(
List
.
map
ats
(
TList
.
zip
(
List
.
map
string_of_int
sz
)
(
doGenCL
[
1
;
2
;
3
;
4
;
5
]
sz
))))
printRawData
(
doTestCL
(
List
.
map
ats
(
TList
.
zip
(
List
.
map
string_of_int
sz
)
(
doGenCL
[
1
;
2
;
3
;
4
;
5
]
sz
))))
...
...
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