Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
sarah.grebing
ProofScriptParser
Commits
7b854843
Commit
7b854843
authored
Jun 25, 2018
by
Sarah Grebing
Browse files
Framework for Testcases for proof tree
parent
14adebe7
Pipeline
#23136
passed with stages
in 3 minutes and 22 seconds
Changes
4
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
rt/src/main/java/edu/kit/iti/formal/psdbg/interpreter/data/GoalNode.java
View file @
7b854843
...
...
@@ -35,7 +35,11 @@ public class GoalNode<T> {
private
int
id
=
super
.
hashCode
();
public
GoalNode
(
T
data
)
{
this
(
null
,
new
VariableAssignment
(),
data
,
false
);
this
.
assignments
=
new
VariableAssignment
();
this
.
parent
=
null
;
this
.
data
=
data
;
this
.
isClosed
=
false
;
// this(null, new VariableAssignment(), data, false);
}
public
GoalNode
(
@Nonnull
GoalNode
<
T
>
parent
,
T
data
,
boolean
isClosed
)
{
...
...
ui/src/test/java/edu/kit/iti/formal/psdbg/gui/controls/ProofTreeTest.java
View file @
7b854843
...
...
@@ -32,17 +32,19 @@ public class ProofTreeTest {
@Before
public
void
setUp
()
throws
Exception
{
facade
=
new
KeYProofFacade
();
scripts
=
Facade
.
getAST
(
CharStreams
.
fromStream
(
new
FileInputStream
(
"/home/sarah/Documents/KIT_Mitarbeiter/ProofScriptingLanguage/rt-key/src/test/resources/edu/kit/iti/formal/psdbg/interpreter/contraposition/proofTreeScript.kps"
)));
}
}
@Test
public
void
testScriptTree
()
throws
IOException
,
ProblemLoaderException
{
facade
.
loadKeyFileSync
(
new
File
(
"/home/sarah/Documents/KIT_Mitarbeiter/ProofScriptingLanguage/rt-key/src/test/resources/edu/kit/iti/formal/psdbg/interpreter/contraposition/contraposition.key"
));
File
keyProblem
=
new
File
(
getClass
().
getResource
(
"contraposition.key"
).
getFile
());
facade
.
loadKeyFileSync
(
keyProblem
);
scripts
=
Facade
.
getAST
(
CharStreams
.
fromStream
(
getClass
().
getResourceAsStream
(
"proofTreeScript.kps"
)));
InterpreterBuilder
ib
=
facade
.
buildInterpreter
();
i
=
ib
.
build
();
DebuggerFramework
<
KeyData
>
df
=
new
DebuggerFramework
<>(
i
,
scripts
.
get
(
0
),
null
);
i
.
interpret
(
scripts
.
get
(
0
));
ScriptTreeTransformation
treeScriptCreation
=
new
ScriptTreeTransformation
(
df
.
getPtreeManager
(),
facade
.
getProof
(),
facade
.
getProof
().
root
());
treeScriptCreation
.
create
(
facade
.
getProof
());
PTreeNode
startNode
=
df
.
getPtreeManager
().
getStartNode
();
...
...
ui/src/test/resources/edu/kit/iti/formal/psdbg/gui/controls/contraposition.key
0 → 100644
View file @
7b854843
// This file is part of KeY - Integrated Deductive Software Design
//
// Copyright (C) 2001-2011 Universitaet Karlsruhe (TH), Germany
// Universitaet Koblenz-Landau, Germany
// Chalmers University of Technology, Sweden
// Copyright (C) 2011-2013 Karlsruhe Institute of Technology, Germany
// Technical University Darmstadt, Germany
// Chalmers University of Technology, Sweden
//
// The KeY system is protected by the GNU General
// Public License. See LICENSE.TXT for details.
//
// Input file for KeY standalone prover version 0.497
\sorts {
s;
}
\predicates {
p;
q;
}
\problem {
(p -> q) -> !q -> !p
}
ui/src/test/resources/edu/kit/iti/formal/psdbg/gui/controls/proofTreeScript.kps
0 → 100644
View file @
7b854843
script full(){
impRight;
impRight;
impLeft;
cases {
case match `!q ==> p`:
notLeft;
notRight;
closeAntec;
case match `q==>!p`:
notLeft;
closeAntec;
}
}
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment