Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
tlc4b
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
general
stups
tlc4b
Commits
6d042348
Commit
6d042348
authored
Jun 24, 2013
by
hansen
Browse files
Options
Downloads
Patches
Plain Diff
Fixed a bug in the trace file.
parent
22e3a442
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/main/java/de/b2tla/tlc/TLCOutputInfo.java
+10
-1
10 additions, 1 deletion
src/main/java/de/b2tla/tlc/TLCOutputInfo.java
with
10 additions
and
1 deletion
src/main/java/de/b2tla/tlc/TLCOutputInfo.java
+
10
−
1
View file @
6d042348
...
...
@@ -15,6 +15,7 @@ public class TLCOutputInfo {
Hashtable
<
String
,
String
>
namesMapping
;
Hashtable
<
String
,
BType
>
typesTable
;
Set
<
String
>
constants
;
boolean
constantSetup
=
false
;
public
String
getBName
(
String
tlaName
){
return
namesMapping
.
get
(
tlaName
);
...
...
@@ -28,12 +29,16 @@ public class TLCOutputInfo {
return
typesTable
;
}
public
void
setConstantSetup
(){
this
.
constantSetup
=
true
;
}
public
boolean
isAConstant
(
String
tlaName
){
return
constants
.
contains
(
getBName
(
tlaName
));
}
public
boolean
hasConstants
(){
return
constants
.
size
()>
0
;
return
constants
.
size
()>
0
||
constantSetup
;
}
public
TLCOutputInfo
(
MachineContext
machineContext
,
Renamer
renamer
,
...
...
@@ -43,6 +48,10 @@ public class TLCOutputInfo {
typesTable
=
new
Hashtable
<
String
,
BType
>();
constants
=
machineContext
.
getConstants
().
keySet
();
if
(
machineContext
.
getConstantsMachineClause
()
!=
null
){
this
.
constantSetup
=
true
;
}
LinkedHashMap
<
String
,
Node
>
identifiers
=
new
LinkedHashMap
<
String
,
Node
>();
identifiers
.
putAll
(
machineContext
.
getConstants
());
identifiers
.
putAll
(
machineContext
.
getVariables
());
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
sign in
to comment