Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
af3
AF3
Commits
568f6808
Commit
568f6808
authored
Oct 26, 2017
by
Hernan Ponce de Leon
Browse files
GREEN
parent
412c7c4e
Changes
1
Hide whitespace changes
Inline
Side-by-side
org.fortiss.af3.expression/trunk/src/org/fortiss/af3/expression/generator/nusmv/RemoveStructureFromExpression.java
View file @
568f6808
...
...
@@ -47,7 +47,7 @@ import org.fortiss.pragmatictransformation.service.IPragmaticTransformation;
*
* @author $Author$
* @version $Rev$
* @ConQAT.Rating
YELLOW
Hash:
93B8CC43028DCA8847E2EFD690059AC0
* @ConQAT.Rating
GREEN
Hash:
F9216496DF6E5B5360E3A5969C0DD319
*/
public
class
RemoveStructureFromExpression
extends
CacheSupportedTransformationBase
{
...
...
@@ -71,9 +71,8 @@ public class RemoveStructureFromExpression extends CacheSupportedTransformationB
return
toBeIteratedAgain
?
c
:
null
;
}
else
if
(
c
instanceof
FunctionCall
&&
isStructureAccess
((
FunctionCall
)
c
))
{
FunctionCall
fc
=
(
FunctionCall
)
c
;
Var
lhs
;
Var
arg2
=
(
Var
)
fc
.
getArguments
().
get
(
1
);
// Structure access function call has 2 arguments.
Var
arg2
=
(
Var
)
fc
.
getArguments
().
get
(
1
);
ITerm
arg1
=
fc
.
getArguments
().
get
(
0
);
if
(
arg1
instanceof
FunctionCall
)
{
...
...
@@ -101,7 +100,7 @@ public class RemoveStructureFromExpression extends CacheSupportedTransformationB
return
rE
;
}
lhs
=
Var
lhs
=
(
Var
)((
arg1
instanceof
Var
)
?
arg1
:
deferredTransformation
.
buildTransformation
(
arg1
));
...
...
Write
Preview
Supports
Markdown
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