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
54462912
Commit
54462912
authored
Jan 16, 2018
by
Sarah Grebing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Quantifier Matching Still one bug
parent
a222dbe0
Pipeline
#16897
failed with stages
in 117 minutes and 10 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
matcher/src/main/java/edu/kit/iti/formal/psdbg/termmatcher/MatcherImpl.java
...ava/edu/kit/iti/formal/psdbg/termmatcher/MatcherImpl.java
+2
-1
ui/src/main/resources/edu/kit/iti/formal/psdbg/examples/java/quicksort/script.kps
...u/kit/iti/formal/psdbg/examples/java/quicksort/script.kps
+1
-1
No files found.
matcher/src/main/java/edu/kit/iti/formal/psdbg/termmatcher/MatcherImpl.java
View file @
54462912
...
...
@@ -441,6 +441,7 @@ class MatcherImpl extends MatchPatternDualVisitor<Matchings, MatchPath> {
if
(
toMatch
.
boundVars
().
size
()
!=
ctx
.
boundVars
.
size
())
{
return
NO_MATCH
;
}
Matchings
match
=
EMPTY_MATCH
;
for
(
int
i
=
0
;
i
<
ctx
.
boundVars
.
size
();
i
++)
{
...
...
@@ -448,7 +449,7 @@ class MatcherImpl extends MatchPatternDualVisitor<Matchings, MatchPath> {
QuantifiableVariable
qv
=
toMatch
.
boundVars
().
get
(
i
);
if
(
qfPattern
.
getType
()
==
MatchPatternLexer
.
DONTCARE
)
{
match
=
reduceConform
(
match
,
EMPTY_MATCH
);
match
=
reduceConform
(
match
,
Matchings
.
singleton
(
qfPattern
.
getText
(),
new
MatchPath
.
MPQuantifiableVarible
(
peek
,
qv
,
i
))
);
continue
;
}
if
(
qfPattern
.
getType
()
==
MatchPatternLexer
.
SID
)
{
...
...
ui/src/main/resources/edu/kit/iti/formal/psdbg/examples/java/quicksort/script.kps
View file @
54462912
...
...
@@ -13,7 +13,7 @@ script split_from_quicksort_nice() {
cases{
case match `==> seqDef(_,_,_) = seqDef(_, _, _)`:
auto;
case match `==> \exists
...`: //hier sollten bessere branchnamen hin
case match `==> \exists
iv (\exists jv _)`: //this should match
instantiate var=`iv` with=`i_0`;
instantiate var=`jv` with=`j_0`;
auto;
...
...
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