Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
tiamo
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
4
Issues
4
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Maximilien COLANGE
tiamo
Commits
69e9cde3
Commit
69e9cde3
authored
Feb 29, 2016
by
Maximilien Colange
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update test compiled test to match the new interface.
parent
5de75d0f
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
8 deletions
+12
-8
tests/compiled.ml
tests/compiled.ml
+12
-8
No files found.
tests/compiled.ml
View file @
69e9cde3
...
...
@@ -12,11 +12,15 @@ struct
type
state
=
int
type
ta
=
{
clocks
:
Varcontext
.
VarContext
.
t
;
init
:
state
;
clocks
:
string
array
;
}
let
clocks
t
=
t
.
clocks
(* /!\ clocks are numbered from 1 to nb_clocks *)
let
nb_clocks
t
=
(
Array
.
length
t
.
clocks
)
let
string_of_clock
t
c
=
assert
(
c
>=
1
&&
c
<=
(
nb_clocks
t
));
t
.
clocks
.
(
c
-
1
)
let
initial_state
t
=
t
.
init
...
...
@@ -37,18 +41,18 @@ struct
let
rate_of_state
_
_
=
1
let
lubounds
t
s
=
Array
.
make
(
Varcontext
.
VarContext
.
size
t
.
clocks
)
10
,
Array
.
make
(
Varcontext
.
VarContext
.
size
t
.
clocks
)
10
Array
.
make
(
nb_clocks
t
)
10
,
Array
.
make
(
nb_clocks
t
)
10
let
global_mbounds
t
=
Array
.
make
(
Varcontext
.
VarContext
.
size
t
.
clocks
)
10
Array
.
make
(
nb_clocks
t
)
10
let
model
=
let
cl
=
Varcontext
.
VarContext
.
create
()
in
let
_
=
Varcontext
.
VarContext
.
add
cl
"c0"
in
()
;
let
cl
=
Array
.
make
1
""
in
cl
.
(
0
)
<-
"c0"
;
{
clocks
=
cl
;
init
=
0
;
clocks
=
cl
;
}
let
string_of_state
_
_
=
"state"
...
...
Write
Preview
Markdown
is supported
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