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
c16fd631
Commit
c16fd631
authored
11 years ago
by
Thorsten Wißmann
Browse files
Options
Downloads
Patches
Plain Diff
Many benchmark bugfixes and optimizations
parent
6ff93163
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
CoAlgFormula.ml
+10
-2
10 additions, 2 deletions
CoAlgFormula.ml
coalgcompare.ml
+6
-6
6 additions, 6 deletions
coalgcompare.ml
with
16 additions
and
8 deletions
CoAlgFormula.ml
+
10
−
2
View file @
c16fd631
...
...
@@ -156,12 +156,20 @@ let rec exportFormula_buffer sb f =
prio
4
f1
|
ALLOWS
(
s
,
f1
)
->
Buffer
.
add_string
sb
"<{"
;
Buffer
.
add_string
sb
(
Str
.
concat
" "
(
L
.
map
string_of_int
s
));
Buffer
.
add_string
sb
(
match
s
with
|
[]
->
" "
|
_
->
(
Str
.
concat
" "
(
L
.
map
string_of_int
s
))
);
Buffer
.
add_string
sb
"}>"
;
prio
4
f1
|
ENFORCES
(
s
,
f1
)
->
Buffer
.
add_string
sb
"[{"
;
Buffer
.
add_string
sb
(
Str
.
concat
" "
(
L
.
map
string_of_int
s
));
Buffer
.
add_string
sb
(
match
s
with
|
[]
->
" "
|
_
->
(
Str
.
concat
" "
(
L
.
map
string_of_int
s
))
);
Buffer
.
add_string
sb
"}]"
;
prio
4
f1
|
MIN
(
n
,
s
,
f1
)
->
...
...
This diff is collapsed.
Click to expand it.
coalgcompare.ml
+
6
−
6
View file @
c16fd631
...
...
@@ -26,7 +26,7 @@ type testresults =
list
))
let
debugMsg
str
=
pr
int
_endline
(
":: "
^
str
)
pr
err
_endline
(
":: "
^
str
)
(* generates the int range from i to j (including) *)
let
(
--
)
i
j
=
...
...
@@ -161,9 +161,9 @@ let doTestK () : testresults =
lPPP A list of pairs (p->p->p, n), e.g. (.+., 1).
*)
let
timeout
=
300
in
(* 5 minutes *)
let
lF
=
List
.
map
(
fun
p
->
(
C
.
AP
(
string_of_int
p
)
,
1
))
(
0
--
10
)
in
let
lF
=
List
.
map
(
fun
p
->
(
C
.
AP
(
"p"
^
(
string_of_int
p
)
)
,
1
))
(
0
--
3
)
in
let
lFF
=
[(
C
.
const_not
,
1
)]
in
let
lFFF
=
[(
C
.
const_and
,
1
)
;
(
C
.
const_or
,
1
)]
in
let
lFFF
=
[(
C
.
const_and
,
1
)
]
in
(* Warning: This forbids disjunctions! *)
let
lPFF
=
[(
C
.
const_ex
,
1
);
(
C
.
const_ax
,
1
)]
in
(* role names *)
let
lP
:
(
string
*
int
)
list
=
List
.
map
(
fun
p
->
(
string_of_int
p
,
1
))
(
0
--
10
)
in
...
...
@@ -215,9 +215,9 @@ let doGenCL aglist sizelist : unit =
lFP A list of pairs (f->p, n), e.g. (?., 1).
lPPP A list of pairs (p->p->p, n), e.g. (.+., 1).
*)
let
lF
=
List
.
map
(
fun
p
->
(
C
.
AP
(
string_of_int
p
)
,
1
))
(
0
--
10
)
in
let
lF
=
List
.
map
(
fun
p
->
(
C
.
AP
(
"p"
^
(
string_of_int
p
)
)
,
1
))
(
1
--
3
)
in
let
lFF
=
[(
C
.
const_not
,
1
)]
in
let
lFFF
=
[(
C
.
const_and
,
1
)
;
(
C
.
const_or
,
1
)]
in
let
lFFF
=
[(
C
.
const_and
,
1
)
]
in
(* Warning: This forbids disjunctions! *)
let
lPFF
=
[(
C
.
const_enforces
,
1
);
(
C
.
const_allows
,
1
)]
in
(* role names *)
let
lP
=
List
.
map
(
fun
p
->
(
p
,
1
))
(
TList
.
powerset
aglist
)
in
...
...
@@ -234,7 +234,7 @@ let _ =
let
argidx
=
ref
(
1
)
in
let
fail
str
=
(
prerr_endline
str
;
printUsage
()
)
in
let
getarg
()
=
if
!
argidx
>=
Array
.
length
Sys
.
argv
then
(
fail
"Error: Missing argument"
)
else
()
;
if
!
argidx
>=
Array
.
length
Sys
.
argv
then
(
fail
"Error: Missing argument
"
)
else
()
;
let
str
=
Sys
.
argv
.
(
!
argidx
)
in
argidx
:=
1
+
!
argidx
;
str
...
...
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