Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
ProofScriptParser
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
24
Issues
24
List
Boards
Labels
Service Desk
Milestones
Merge Requests
4
Merge Requests
4
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
sarah.grebing
ProofScriptParser
Commits
44cbd4c5
Commit
44cbd4c5
authored
Feb 05, 2019
by
Sarah Grebing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed one testcase and updated key version
parent
5c27d73f
Pipeline
#39615
passed with stages
in 3 minutes and 5 seconds
Changes
5
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
8 additions
and
6 deletions
+8
-6
keydeps/lib/components/key.core.jar
keydeps/lib/components/key.core.jar
+0
-0
keydeps/lib/components/key.ui.jar
keydeps/lib/components/key.ui.jar
+0
-0
keydeps/lib/components/key.util.jar
keydeps/lib/components/key.util.jar
+0
-0
rt-key/src/main/java/edu/kit/iti/formal/psdbg/interpreter/KeyEvaluator.java
...va/edu/kit/iti/formal/psdbg/interpreter/KeyEvaluator.java
+5
-3
rt-key/src/test/java/edu/kit/iti/formal/psdbg/interpreter/ExecuteTest.java
...ava/edu/kit/iti/formal/psdbg/interpreter/ExecuteTest.java
+3
-3
No files found.
keydeps/lib/components/key.core.jar
View file @
44cbd4c5
No preview for this file type
keydeps/lib/components/key.ui.jar
View file @
44cbd4c5
No preview for this file type
keydeps/lib/components/key.util.jar
View file @
44cbd4c5
No preview for this file type
rt-key/src/main/java/edu/kit/iti/formal/psdbg/interpreter/KeyEvaluator.java
View file @
44cbd4c5
...
...
@@ -44,11 +44,13 @@ public class KeyEvaluator extends Evaluator<KeyData> {
while
(
m
.
find
())
{
String
name
=
m
.
group
().
substring
(
1
);
// remove trailing '?'
Expression
t
=
expr
.
getSubstitution
().
get
(
m
.
group
());
//either evalute the substitent or find ?X in the
System
.
out
.
println
(
"t = "
+
t
);
//either evalu
a
te the substitent or find ?X in the
String
newVal
=
""
;
if
(
t
!=
null
)
if
(
t
!=
null
)
{
newVal
=
((
Value
)
t
.
accept
(
this
)).
getData
().
toString
();
m
.
appendReplacement
(
newTerm
,
newVal
);
}
else
// newVal = state.getValue(new Variable(name)).getData().toString();
m
.
appendReplacement
(
newTerm
,
newVal
);
...
...
rt-key/src/test/java/edu/kit/iti/formal/psdbg/interpreter/ExecuteTest.java
View file @
44cbd4c5
...
...
@@ -92,11 +92,11 @@ public class ExecuteTest {
}
//with current version not working anymore...
@Test
public
void
testInstantiate
()
throws
IOException
,
ParseException
,
ParserException
{
File
proof
=
new
File
(
"
/home/sarah/Documents/KIT_Mitarbeiter/ProofScriptingLanguage
/bigIntProof/compareMagnitude_openCases.key.proof"
);
File
script
=
new
File
(
"
/home/sarah/Documents/KIT_Mitarbeiter/ProofScriptingLanguage
/bigIntProof/instAll.kps"
);
File
proof
=
new
File
(
"
..
/bigIntProof/compareMagnitude_openCases.key.proof"
);
File
script
=
new
File
(
"
..
/bigIntProof/instAll.kps"
);
Assume
.
assumeTrue
(
proof
.
exists
());
//
Execute
exec
=
create
(
proof
.
getAbsolutePath
(),
"-s"
,
script
.
getAbsolutePath
());
Interpreter
<
KeyData
>
i
=
exec
.
run
();
...
...
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