Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
sarah.grebing
ProofScriptParser
Commits
49085499
Commit
49085499
authored
Jul 07, 2018
by
Sarah Grebing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bugfix for handling post mortem states
parent
d963c3eb
Pipeline
#23718
passed with stages
in 2 minutes and 43 seconds
Changes
2
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
4 deletions
+11
-4
lang/src/main/java/edu/kit/iti/formal/psdbg/parser/ast/Statements.java
.../java/edu/kit/iti/formal/psdbg/parser/ast/Statements.java
+3
-1
ui/src/main/java/edu/kit/iti/formal/psdbg/gui/controller/DebuggerMain.java
...edu/kit/iti/formal/psdbg/gui/controller/DebuggerMain.java
+8
-3
No files found.
lang/src/main/java/edu/kit/iti/formal/psdbg/parser/ast/Statements.java
View file @
49085499
...
...
@@ -47,7 +47,9 @@ public class Statements extends ASTNode<ScriptLanguageParser.StmtListContext>
@Override
public
ASTNode
[]
getChildren
()
{
return
(
ASTNode
[])
toArray
();
Object
[]
arr
=
toArray
();
return
toArray
(
new
ASTNode
[
arr
.
length
]);
//return (ASTNode[]) toArray();
}
public
Statements
(
Statements
body
)
{
...
...
ui/src/main/java/edu/kit/iti/formal/psdbg/gui/controller/DebuggerMain.java
View file @
49085499
...
...
@@ -189,7 +189,7 @@ public class DebuggerMain implements Initializable {
.
filter
(
it
->
Objects
.
equals
(
fna
.
childOrMe
(
it
.
getStatement
()),
it
.
getStatement
()))
.
collect
(
Collectors
.
toList
());
System
.
out
.
println
(
result
);
LOGGER
.
info
(
result
);
for
(
PTreeNode
<
KeyData
>
statePointerToPostMortem
:
result
)
{
...
...
@@ -213,13 +213,18 @@ public class DebuggerMain implements Initializable {
if
(
stateAfterStmt
.
getSelectedGoalNode
()
!=
null
)
{
im
.
setSelectedGoalNodeToShow
(
stateAfterStmt
.
getSelectedGoalNode
());
}
else
{
if
(
goals
.
size
()
>
0
)
{
im
.
setSelectedGoalNodeToShow
(
goals
.
get
(
0
));
}
else
{
im
.
setSelectedGoalNodeToShow
(
stateBeforeStmt
.
getSelectedGoalNode
());
statusBar
.
publishMessage
(
"This goal node was closed by the selected mutator."
);
}
}
inspectionViewsController
.
newPostMortemInspector
(
im
)
.
dock
(
dockStation
,
DockPos
.
CENTER
,
getActiveInspectorDock
());
}
else
{
statusBar
.
publishErrorMessage
(
"There is no post mortem state to show to this node, because this node was not executed."
);
statusBar
.
publishErrorMessage
(
"There is no post mortem state to show to this node, because this node was not executed
or is a selector statement
."
);
}
}
}
...
...
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