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
2775c3be
Commit
2775c3be
authored
Oct 26, 2017
by
Sudeep Kanav
Browse files
YELLOW
refs 2248
parent
04d386a4
Changes
1
Hide whitespace changes
Inline
Side-by-side
org.fortiss.af3.expression/trunk/src/org/fortiss/af3/expression/generator/nusmv/ArrayToStructureExpressions.java
View file @
2775c3be
...
...
@@ -55,7 +55,7 @@ import org.fortiss.tooling.kernel.utils.EcoreUtils;
* @author aravantinos
* @author $Author$
* @version $Rev$
* @ConQAT.Rating
RED
Hash:
DCDC38E4D4141E33634A3AEEE5A69135
* @ConQAT.Rating
YELLOW
Hash:
BDBC60B35F472E29B4CD3727907E060D
*/
// Small step transformation changing the expressions and references to variables
public
class
ArrayToStructureExpressions
extends
CacheSupportedTransformationBase
{
...
...
@@ -73,8 +73,7 @@ public class ArrayToStructureExpressions extends CacheSupportedTransformationBas
}
else
if
(
c
instanceof
FunctionCall
&&
isArrayAccess
((
FunctionCall
)
c
))
{
FunctionCall
f
=
EcoreUtils
.
copy
((
FunctionCall
)
c
);
((
PredefinedFunction
)
f
.
getFunction
()).
setOperator
(
EOperator
.
MEMBER
);
// TODO(HP,14)
// Getting the referred index.
// The {@link PredefinedFunction} member takes 2 arguments.
ITerm
arg1
=
f
.
getArguments
().
get
(
1
);
if
(
arg1
instanceof
IntConst
)
{
Var
v
=
TermsFactory
.
eINSTANCE
.
createVar
();
...
...
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