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
1ec44203
Commit
1ec44203
authored
Apr 04, 2016
by
Maximilien Colange
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix inconsistencies in array printing.
parent
87cad902
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
5 deletions
+7
-5
src/uppaalta.ml
src/uppaalta.ml
+7
-5
No files found.
src/uppaalta.ml
View file @
1ec44203
...
...
@@ -205,15 +205,17 @@ struct
(
function
|
Constant
c
->
sprintf
"%d"
c
|
Array
(
aid
,
indices
)
->
List
.
fold_left
(
fun
s
x
->
s
^
(
string_of_exp
x
))
(
VarContext
.
array_of_index
ta
.
vars
aid
)
indices
let
arrayName
=
VarContext
.
array_of_index
ta
.
vars
aid
in
List
.
fold_left
(
fun
s
x
->
s
^
"["
^
(
string_of_exp
x
)
^
"]"
)
arrayName
indices
|
ConstArray
(
aid
,
indices
)
->
List
.
fold_left
(
fun
s
x
->
s
^
(
string_of_exp
x
))
(
VarContext
.
array_of_index
ta
.
constants
aid
)
indices
|
Variable
(
id
)
->
VarContext
.
var_of_index
ta
.
vars
id
|
ConstVariable
(
id
)
->
VarContext
.
var_of_index
ta
.
constants
id
|
Clock
(
id
)
->
VarContext
.
var_of_index
ta
.
clocks
id
let
arrayName
=
VarContext
.
array_of_index
ta
.
constants
aid
in
List
.
fold_left
(
fun
s
x
->
s
^
"["
^
(
string_of_exp
x
)
^
"]"
)
arrayName
indices
|
ClockArray
(
aid
,
indices
)
->
let
arrayName
=
VarContext
.
array_of_index
ta
.
clocks
aid
in
List
.
fold_left
(
fun
s
x
->
s
^
"["
^
(
string_of_exp
x
)
^
"]"
)
arrayName
indices
|
Variable
(
id
)
->
VarContext
.
var_of_index
ta
.
vars
id
|
ConstVariable
(
id
)
->
VarContext
.
var_of_index
ta
.
constants
id
|
Clock
(
id
)
->
VarContext
.
var_of_index
ta
.
clocks
id
|
Product
(
e1
,
e2
)
->
sprintf
"%s * %s"
(
string_of_exp
e1
)
(
string_of_exp
e2
)
...
...
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