Skip to content
GitLab
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
ac1f906b
Commit
ac1f906b
authored
Sep 18, 2017
by
Sudeep Kanav
Browse files
YELLOW
refs 2413
parent
0632140f
Changes
1
Hide whitespace changes
Inline
Side-by-side
org.fortiss.af3.tools/trunk/src/org/fortiss/af3/tools/nusmv/run/NuSMVRunner.java
View file @
ac1f906b
...
...
@@ -57,6 +57,7 @@ import org.fortiss.af3.tools.base.UnknownLanguageFragmentException;
import
org.fortiss.af3.tools.nusmv.model.NuSMVFile
;
import
org.fortiss.af3.tools.nusmv.model.NuSMVModelFactory
;
import
org.fortiss.af3.tools.nusmv.model.NuSMVSpecialFeaturesUtils
;
import
org.fortiss.af3.tools.nusmv.model.constraints.Invar
;
import
org.fortiss.af3.tools.nusmv.model.module.LocalVariable
;
import
org.fortiss.af3.tools.nusmv.model.module.Module
;
import
org.fortiss.af3.tools.nusmv.model.run.NuSMVResult
;
...
...
@@ -69,7 +70,7 @@ import org.fortiss.af3.tools.nusmv.textgen.NuSMVTextGenerator;
* @author ratiu
* @author $Author: ratiu $
* @version $Rev: 1270 $
* @ConQAT.Rating YELLOW Hash:
7DAE3E622AA25B577595693293ECA3F4
* @ConQAT.Rating YELLOW Hash:
FED7F13ECF50B8742441C104430E7005
*/
public
class
NuSMVRunner
extends
ToolRunnerBase
<
NuSMVFile
,
NuSMVResult
>
{
...
...
@@ -234,9 +235,9 @@ public class NuSMVRunner extends ToolRunnerBase<NuSMVFile, NuSMVResult> {
if
(
lv
.
getType
()
instanceof
EnumerationType
)
{
EnumerationType
et
=
(
EnumerationType
)
lv
.
getType
();
if
(
et
.
getValues
().
contains
(
"FAKE_VALUE"
))
{
mainModule
.
get
Invar
s
()
.
add
(
createInvar
(
notEqual
(
createVar
(
lv
.
getName
()),
createVar
(
"FAKE_VALUE"
)))
);
Invar
i
=
createInvar
(
notEqual
(
createVar
(
lv
.
getName
()),
createVar
(
"FAKE_VALUE"
)));
mainModule
.
getInvars
().
add
(
i
);
}
}
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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