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
3068712a
Commit
3068712a
authored
11 years ago
by
Thorsten Wißmann
Browse files
Options
Downloads
Patches
Plain Diff
Add coalgcompare subroutine genCL
parent
7993e0bf
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
CoolUtils.ml
+1
-0
1 addition, 0 deletions
CoolUtils.ml
CoolUtils.mli
+2
-0
2 additions, 0 deletions
CoolUtils.mli
coalgcompare.ml
+11
-0
11 additions, 0 deletions
coalgcompare.ml
with
14 additions
and
0 deletions
CoolUtils.ml
+
1
−
0
View file @
3068712a
...
...
@@ -42,3 +42,4 @@ let cl_set_agents arr = ignore (
agents
:=
TArray
.
uniq
!
agents
)
let
intlist_of_string
str
=
List
.
map
int_of_string
(
Str
.
split
(
Str
.
regexp
"[
\t
,]+"
)
str
)
This diff is collapsed.
Click to expand it.
CoolUtils.mli
+
2
−
0
View file @
3068712a
...
...
@@ -18,3 +18,5 @@ end
val
cl_get_agents
:
unit
->
int
array
val
cl_set_agents
:
int
array
->
unit
val
intlist_of_string
:
string
->
int
list
This diff is collapsed.
Click to expand it.
coalgcompare.ml
+
11
−
0
View file @
3068712a
...
...
@@ -231,9 +231,20 @@ let doGenCL aglist sizelist : unit =
List
.
iter
(
fun
sz
->
printformula
(
genF
sz
))
sizelist
let
_
=
let
argidx
=
ref
(
1
)
in
let
fail
str
=
raise
(
CoAlgFormula
.
CoAlgException
(
str
))
in
let
getarg
()
=
if
!
argidx
>=
Array
.
length
Sys
.
argv
then
fail
"Missing argument"
else
()
;
let
str
=
Sys
.
argv
.
(
!
argidx
)
in
argidx
:=
1
+
!
argidx
;
str
in
if
Array
.
length
Sys
.
argv
<
2
then
printUsage
()
else
match
Sys
.
argv
.
(
1
)
with
|
"K"
->
printRawData
(
doTestK
()
)
|
"genCL"
->
let
p1
=
getarg
()
in
let
p2
=
getarg
()
in
doGenCL
(
intlist_of_string
p1
)
(
intlist_of_string
p2
)
|
_
->
raise
(
CoAlgFormula
.
CoAlgException
(
"Unknown Logic name »"
^
(
Sys
.
argv
.
(
1
))
^
"«"
))
...
...
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