Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
monticore
EmbeddedMontiArc
generators
EMAM2Cpp
Commits
d59625aa
Commit
d59625aa
authored
Oct 05, 2020
by
Jan Philipp Haller
Browse files
Activated Debug Log output,
new version: 0.4.1
parent
a02f4670
Pipeline
#338632
failed with stage
in 34 seconds
Changes
2
Pipelines
1
Show whitespace changes
Inline
Side-by-side
pom.xml
View file @
d59625aa
...
...
@@ -10,7 +10,7 @@
<groupId>
de.monticore.lang.monticar
</groupId>
<artifactId>
embedded-montiarc-math-generator
</artifactId>
<version>
0.4.
0
-SNAPSHOT
</version>
<version>
0.4.
1
-SNAPSHOT
</version>
<!-- == PROJECT DEPENDENCIES ============================================= -->
...
...
src/main/java/de/monticore/lang/monticar/generator/optimization/MathInformationRegister.java
View file @
d59625aa
...
...
@@ -90,9 +90,9 @@ public class MathInformationRegister {
int
result
=
0
;
if
(
mathValueSymbol
!=
null
)
{
String
numberString
=
mathValueSymbol
.
getType
().
getDimensions
().
get
(
dimension
).
getTextualRepresentation
();
//
Log.info(name, "Name:");
//
Log.info(mathValueSymbol.getType().getDimensions().get(0).getTextualRepresentation(), "getAmount");
//
Log.info(mathValueSymbol.getType().getDimensions().get(1).getTextualRepresentation(), "getAmount");
Log
.
info
(
name
,
"Name:"
);
Log
.
info
(
mathValueSymbol
.
getType
().
getDimensions
().
get
(
0
).
getTextualRepresentation
(),
"getAmount"
);
Log
.
info
(
mathValueSymbol
.
getType
().
getDimensions
().
get
(
1
).
getTextualRepresentation
(),
"getAmount"
);
try
{
result
=
Integer
.
valueOf
(
numberString
);
}
catch
(
Exception
ex
)
{
...
...
@@ -102,9 +102,9 @@ public class MathInformationRegister {
Variable
var
=
getVariable
(
name
);
if
(
var
!=
null
)
{
try
{
//
Log.info(name, "Name:");
//
Log.info(var.getDimensionalInformation().get(0), "getAmount");
//
Log.info(var.getDimensionalInformation().get(1), "getAmount");
Log
.
info
(
name
,
"Name:"
);
Log
.
info
(
var
.
getDimensionalInformation
().
get
(
0
),
"getAmount"
);
Log
.
info
(
var
.
getDimensionalInformation
().
get
(
1
),
"getAmount"
);
result
=
Integer
.
valueOf
(
var
.
getDimensionalInformation
().
get
(
dimension
));
}
catch
(
Exception
ex
)
{
...
...
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