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
a3ca4e80
Commit
a3ca4e80
authored
11 months ago
by
Jan Gruteser
Browse files
Options
Downloads
Patches
Plain Diff
add trace file path to log
parent
1b3178f1
No related branches found
No related tags found
No related merge requests found
Pipeline
#139121
passed
11 months ago
Stage: test
Stage: deploy
Changes
2
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/main/java/de/tlc4b/TLC4B.java
+1
-0
1 addition, 0 deletions
src/main/java/de/tlc4b/TLC4B.java
src/main/java/de/tlc4b/tlc/TLCResults.java
+13
-1
13 additions, 1 deletion
src/main/java/de/tlc4b/tlc/TLCResults.java
with
14 additions
and
1 deletion
src/main/java/de/tlc4b/TLC4B.java
+
1
−
0
View file @
a3ca4e80
...
...
@@ -162,6 +162,7 @@ public class TLC4B {
String
trace
=
results
.
getTrace
();
String
tracefileName
=
machineFileNameWithoutFileExtension
+
".tla.trace"
;
traceFile
=
createFile
(
mainfile
.
getParentFile
(),
tracefileName
,
trace
,
false
);
results
.
addTraceFilePath
(
traceFile
.
getAbsolutePath
());
println
(
"Trace file '"
+
traceFile
.
getAbsolutePath
()
+
"' created."
);
}
...
...
This diff is collapsed.
Click to expand it.
src/main/java/de/tlc4b/tlc/TLCResults.java
+
13
−
1
View file @
a3ca4e80
...
...
@@ -27,7 +27,7 @@ public class TLCResults implements ToolGlobals {
private
final
ArrayList
<
String
>
violatedAssertions
=
new
ArrayList
<>();
private
int
lengthOfTrace
;
private
String
traceString
;
private
String
traceString
,
traceFile
;
private
int
numberOfDistinctStates
;
private
int
numberOfTransitions
;
...
...
@@ -42,6 +42,18 @@ public class TLCResults implements ToolGlobals {
return
lengthOfTrace
>
0
;
}
public
void
addTraceFilePath
(
final
String
traceFile
)
{
this
.
traceFile
=
traceFile
;
}
public
String
getTraceFilePath
()
{
if
(
this
.
hasTrace
()
&&
this
.
traceFile
!=
null
)
{
return
this
.
traceFile
;
}
else
{
return
null
;
}
}
public
LinkedHashMap
<
String
,
Long
>
getOperationCount
()
{
return
operationsCount
;
}
...
...
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
register
or
sign in
to comment