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
65615828
Commit
65615828
authored
Aug 28, 2018
by
Sarah Grebing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Possible bugfix for missing afterstatement
parent
7483d913
Pipeline
#26676
passed with stages
in 2 minutes and 46 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
4 deletions
+11
-4
rt/src/main/java/edu/kit/iti/formal/psdbg/interpreter/dbg/StateWrapper.java
...du/kit/iti/formal/psdbg/interpreter/dbg/StateWrapper.java
+11
-4
No files found.
rt/src/main/java/edu/kit/iti/formal/psdbg/interpreter/dbg/StateWrapper.java
View file @
65615828
...
...
@@ -5,10 +5,7 @@ import edu.kit.iti.formal.psdbg.interpreter.Interpreter;
import
edu.kit.iti.formal.psdbg.interpreter.data.State
;
import
edu.kit.iti.formal.psdbg.parser.DefaultASTVisitor
;
import
edu.kit.iti.formal.psdbg.parser.Visitor
;
import
edu.kit.iti.formal.psdbg.parser.ast.ASTNode
;
import
edu.kit.iti.formal.psdbg.parser.ast.CallStatement
;
import
edu.kit.iti.formal.psdbg.parser.ast.ProofScript
;
import
edu.kit.iti.formal.psdbg.parser.ast.Statements
;
import
edu.kit.iti.formal.psdbg.parser.ast.*
;
import
lombok.Getter
;
import
lombok.Setter
;
import
org.apache.logging.log4j.LogManager
;
...
...
@@ -101,6 +98,16 @@ public class StateWrapper<T> implements InterpreterObserver<T> {
private
void
completeLastNode
(
@Nonnull
ASTNode
node
)
{
assert
lastNode
!=
null
;
//SaG:Fix for last node missing at foreach statement
if
(!
lastNode
.
getStatement
().
equals
(
node
)){
List
<
PTreeNode
<
T
>>
contextNodes
=
lastNode
.
getContextNodes
();
for
(
PTreeNode
<
T
>
cNode:
contextNodes
)
{
if
(
cNode
.
getStatement
().
equals
(
node
)){
lastNode
=
cNode
;
break
;
}
}
}
lastNode
.
setStateAfterStmt
(
getInterpreterStateCopy
());
if
(
node
.
equals
(
peekContext
()))
{
popContext
();
...
...
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