Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
ProofScriptParser
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
24
Issues
24
List
Boards
Labels
Milestones
Merge Requests
4
Merge Requests
4
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
sarah.grebing
ProofScriptParser
Commits
dbf27dc2
Commit
dbf27dc2
authored
Aug 22, 2017
by
Sarah Grebing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed some of the failing test cases
parent
a745eb0d
Pipeline
#13017
failed with stage
in 2 minutes and 52 seconds
Changes
5
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
5 additions
and
5 deletions
+5
-5
src/main/java/edu/kit/formal/psdb/interpreter/Interpreter.java
...ain/java/edu/kit/formal/psdb/interpreter/Interpreter.java
+1
-1
src/test/java/edu/kit/formal/psdb/interpreter/ControlFlowVisitorTest.java
...u/kit/formal/psdb/interpreter/ControlFlowVisitorTest.java
+1
-1
src/test/java/edu/kit/formal/psdb/interpreter/InterpreterTest.java
...java/edu/kit/formal/psdb/interpreter/InterpreterTest.java
+1
-1
src/test/java/edu/kit/formal/psdb/interpreter/KeYInterpreterTest.java
...a/edu/kit/formal/psdb/interpreter/KeYInterpreterTest.java
+1
-1
src/test/java/edu/kit/formal/psdb/interpreter/KeyMatcherDerivableTest.java
.../kit/formal/psdb/interpreter/KeyMatcherDerivableTest.java
+1
-1
No files found.
src/main/java/edu/kit/formal/psdb/interpreter/Interpreter.java
View file @
dbf27dc2
...
...
@@ -333,7 +333,7 @@ public class Interpreter<T> extends DefaultASTVisitor<Object>
*/
private
VariableAssignment
evaluateMatchInGoal
(
Expression
matchExpression
,
GoalNode
<
T
>
goal
)
{
enterScope
(
matchExpression
);
System
.
out
.
println
(
"Goal to match "
+
goal
.
toCellTextForKeYData
());
//
System.out.println("Goal to match " + goal.toCellTextForKeYData());
MatchEvaluator
mEval
=
new
MatchEvaluator
(
goal
.
getAssignments
(),
goal
,
matcherApi
);
mEval
.
getEntryListeners
().
addAll
(
entryListeners
);
mEval
.
getExitListeners
().
addAll
(
exitListeners
);
...
...
src/test/java/edu/kit/formal/psdb/interpreter/ControlFlowVisitorTest.java
View file @
dbf27dc2
...
...
@@ -18,7 +18,7 @@ import java.util.List;
public
class
ControlFlowVisitorTest
{
@Test
public
void
test
()
throws
IOException
{
ScriptLanguageParser
a
=
Facade
.
getParser
(
CharStreams
.
fromStream
(
getClass
().
getResourceAsStream
(
"/edu/kit/formal/interpreter/simple1.txt"
)));
ScriptLanguageParser
a
=
Facade
.
getParser
(
CharStreams
.
fromStream
(
getClass
().
getResourceAsStream
(
"/edu/kit/formal/
psdb/
interpreter/simple1.txt"
)));
List
<
ProofScript
>
scripts
=
(
List
<
ProofScript
>)
a
.
start
().
accept
(
new
TransformAst
());
ProofScript
s
=
scripts
.
get
(
0
);
ControlFlowVisitor
pfv
=
new
ControlFlowVisitor
(
new
DefaultLookup
());
...
...
src/test/java/edu/kit/formal/psdb/interpreter/InterpreterTest.java
View file @
dbf27dc2
...
...
@@ -54,7 +54,7 @@ public class InterpreterTest {
defaultLookup
.
getBuilders
().
add
(
new
AssertionCommand
());
defaultLookup
.
getBuilders
().
add
(
new
AssertionEqCommand
());
ProofScriptHandler
scriptHandler
=
new
ProofScriptHandler
(
scripts
);
scriptHandler
.
getSearchPath
().
add
(
new
File
(
"src/test/resources/edu/kit/formal/interpreter/"
));
scriptHandler
.
getSearchPath
().
add
(
new
File
(
"src/test/resources/edu/kit/formal/
psdb/
interpreter/"
));
defaultLookup
.
getBuilders
().
add
(
scriptHandler
);
return
defaultLookup
;
}
...
...
src/test/java/edu/kit/formal/psdb/interpreter/KeYInterpreterTest.java
View file @
dbf27dc2
...
...
@@ -36,7 +36,7 @@ public class KeYInterpreterTest {
@Test
public
void
testIsClosable
()
throws
IOException
,
ProblemLoaderException
{
facade
.
loadKeyFileSync
(
new
File
(
"src/test/resources/edu/kit/formal/interpreter/contraposition/contraposition.key"
));
facade
.
loadKeyFileSync
(
new
File
(
"src/test/resources/edu/kit/formal/
psdb/
interpreter/contraposition/contraposition.key"
));
Interpreter
<
KeyData
>
i
=
execute
(
getClass
().
getResourceAsStream
(
"contraposition/testIsClosable.kps"
));
List
<
GoalNode
<
KeyData
>>
goals
=
i
.
getCurrentState
().
getGoals
();
Assert
.
assertEquals
(
2
,
goals
.
size
());
...
...
src/test/java/edu/kit/formal/psdb/interpreter/KeyMatcherDerivableTest.java
View file @
dbf27dc2
...
...
@@ -18,7 +18,7 @@ public class KeyMatcherDerivableTest {
@Test
public
void
derivable_test_1
()
throws
Exception
{
KeYProofFacade
f
=
new
KeYProofFacade
();
f
.
loadKeyFile
(
new
File
(
"src/test/resources/edu/kit/formal
/parser/derivable_test_1.key"
));
f
.
loadKeyFile
Sync
(
new
File
(
"src/test/resources/edu/kit/formal/psdb
/parser/derivable_test_1.key"
));
Proof
proof
=
f
.
getProof
();
Goal
g
=
proof
.
getGoal
(
proof
.
root
());
...
...
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