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
518466c2
Commit
518466c2
authored
Jan 26, 2018
by
Sarah Grebing
Browse files
removed comments in examples scripts
parent
e35d6ac7
Pipeline
#17348
passed with stages
in 10 minutes
Changes
7
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
ui/src/main/java/edu/kit/iti/formal/psdbg/examples/JavaExample.java
View file @
518466c2
...
...
@@ -15,9 +15,12 @@ import java.nio.charset.Charset;
public
class
JavaExample
extends
Example
{
private
URL
projectFile
;
public
void
setJavaFile
(
URL
javaFile
)
{
this
.
javaFile
=
javaFile
;
}
//public void setProjectFile(URL projectFile){this.projectFile = projectFile;}
protected
URL
javaFile
;
...
...
ui/src/main/java/edu/kit/iti/formal/psdbg/examples/lulu/bigIntProof/BigIntExample.java
0 → 100644
View file @
518466c2
package
edu.kit.iti.formal.psdbg.examples.lulu.bigIntProof
;
import
edu.kit.iti.formal.psdbg.examples.JavaExample
;
public
class
BigIntExample
extends
JavaExample
{
public
BigIntExample
()
{
}
}
ui/src/main/java/edu/kit/iti/formal/psdbg/gui/controller/InteractiveModeController.java
View file @
518466c2
...
...
@@ -6,15 +6,12 @@ import de.uka.ilkd.key.control.DefaultUserInterfaceControl;
import
de.uka.ilkd.key.java.Services
;
import
de.uka.ilkd.key.logic.Sequent
;
import
de.uka.ilkd.key.logic.SequentFormula
;
import
de.uka.ilkd.key.logic.Term
;
import
de.uka.ilkd.key.logic.op.SchemaVariable
;
import
de.uka.ilkd.key.macros.scripts.EngineState
;
import
de.uka.ilkd.key.macros.scripts.RuleCommand
;
import
de.uka.ilkd.key.macros.scripts.ScriptException
;
import
de.uka.ilkd.key.proof.Goal
;
import
de.uka.ilkd.key.proof.Node
;
import
de.uka.ilkd.key.proof.Proof
;
import
de.uka.ilkd.key.rule.inst.InstantiationEntry
;
import
edu.kit.iti.formal.psdbg.LabelFactory
;
import
edu.kit.iti.formal.psdbg.RuleCommandHelper
;
import
edu.kit.iti.formal.psdbg.gui.controls.ScriptArea
;
...
...
@@ -41,11 +38,13 @@ import lombok.val;
import
org.apache.logging.log4j.LogManager
;
import
org.apache.logging.log4j.Logger
;
import
org.key_project.util.collection.ImmutableList
;
import
org.key_project.util.collection.ImmutableMapEntry
;
import
recoder.util.Debug
;
import
java.math.BigInteger
;
import
java.util.*
;
import
java.util.ArrayList
;
import
java.util.HashMap
;
import
java.util.List
;
import
java.util.Map
;
import
java.util.stream.Collectors
;
@Getter
...
...
@@ -171,6 +170,7 @@ public class InteractiveModeController {
int
occ
=
rch
.
getOccurence
(
tap
.
getApp
());
Parameters
callp
=
new
Parameters
();
// callp.put(new Variable("formula"), new TermLiteral(sfTerm));
callp
.
put
(
new
Variable
(
"formula"
),
new
TermLiteral
(
sfTerm
));
callp
.
put
(
new
Variable
(
"occ"
),
new
IntegerLiteral
(
BigInteger
.
valueOf
(
occ
)));
callp
.
put
(
new
Variable
(
"on"
),
new
TermLiteral
(
onTerm
));
...
...
@@ -289,6 +289,9 @@ public class InteractiveModeController {
map
.
put
(
"#2"
,
call
.
getCommand
());
EngineState
estate
=
new
EngineState
(
g
.
proof
());
estate
.
setGoal
(
g
);
// System.out.println("on = " + map.get("on"));
// System.out.println("formula = " +map.get("formula"));
// System.out.println("occ = " + map.get("occ"));
RuleCommand
.
Parameters
cc
=
c
.
evaluateArguments
(
estate
,
map
);
//reflection exception
AbstractUserInterfaceControl
uiControl
=
new
DefaultUserInterfaceControl
();
...
...
ui/src/main/java/edu/kit/iti/formal/psdbg/gui/controls/TacletContextMenu.java
View file @
518466c2
...
...
@@ -346,7 +346,6 @@ public class TacletContextMenu extends ContextMenu {
pos.getPosInOccurrence());*/
//System.out.println("event = [" + event + "]");
Events
.
fire
(
new
Events
.
TacletApplicationEvent
(
event
,
pos
.
getPosInOccurrence
(),
goal
));
}
...
...
ui/src/main/resources/edu/kit/iti/formal/psdbg/examples/contraposition/script.kps
View file @
518466c2
...
...
@@ -9,6 +9,7 @@ script interactive(){
impRight;
impRight;
impLeft;
}
script interactive_with_match(){
...
...
ui/src/main/resources/edu/kit/iti/formal/psdbg/examples/fol/script.kps
View file @
518466c2
...
...
@@ -12,25 +12,3 @@ script main() {
close;
}
script main1() {
impRight;
//instantiate var=`x` with=`c`;
//allLeft formula=`\forall` with=`a`;
//allLeft on=`\forall s x; f(f(x)) = f(x)` inst_t=`c`;
}
script proj() {
impRight;
eqSymm formula = `f(c) = f(f(f(c)))`;
instantiate var=`x` with=`f(f(c))`;
//allLeft on =`\forall s x; f(f(x)) = f(x)` inst_t=`f(f(c))`;
allLeft on =`\forall s x; f(f(x)) = f(x)` inst_t=`c`;
//applyEqRigid;
//applyEq formula=`f(f(f(c))) = f(c)` occ=`f(f(c))`;
//applyEq formula=`f(f(f(c))) = f(c)` occ=4;
applyEq on=`f(f(c))` formula=`f(f(f(c))) = f(c)` ;
close;
//close formula=`f(f(c))=f(c)`;
}
\ No newline at end of file
website/docs/index.md
View file @
518466c2
...
...
@@ -208,18 +208,18 @@ interactive rule applications.
<h2>
Downloads
</h2>
<ul>
<li>
PSDBG -
<strong>
Version 1.0.1
b
-FM
</strong>
<a
href=
"../psdbg_releases/psdbg-1.0.1
b
-fm.jar"
>
psdbg-1.0.1
b
-fm.jar
</a>
<li>
PSDBG -
<strong>
Version 1.0.1
c
-FM
</strong>
<a
href=
"../psdbg_releases/psdbg-1.0.1
c
-fm.jar"
>
psdbg-1.0.1
c
-fm.jar
</a>
<br>
Special Version for the tool paper at Formal Methods 2018.
Including examples and all dependencies.
<br>
<!--
Requires Java version 1.8.0_1
2
1 or higher
-->
Requires Java version 1.8.0_1
1
1 or higher
; Not working with Java 9, because of depdendencies.
<br>
<a
href=
"https://www.gnu.org/licenses/gpl-3.0.txt"
>
License: GPLv3
</a>
<a
href=
"thirdparty.txt"
>
Third Party Licenses
</a>
<br>
Executable with
<code>
java -jar psdbg-1.0.1
b
-fm.jar
</code>
Executable with
<code>
java -jar psdbg-1.0.1
c
-fm.jar
</code>
</li>
</ul>
...
...
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