Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
sarah.grebing
ProofScriptParser
Commits
ffd9f954
Commit
ffd9f954
authored
Nov 08, 2017
by
Sarah Grebing
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/master'
parents
70d8749a
4f5643da
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
2 deletions
+15
-2
rt-key/src/main/java/edu/kit/iti/formal/psdbg/LabelFactory.java
.../src/main/java/edu/kit/iti/formal/psdbg/LabelFactory.java
+15
-2
No files found.
rt-key/src/main/java/edu/kit/iti/formal/psdbg/LabelFactory.java
View file @
ffd9f954
...
...
@@ -3,6 +3,7 @@ package edu.kit.iti.formal.psdbg;
import
de.uka.ilkd.key.proof.Goal
;
import
de.uka.ilkd.key.proof.Node
;
import
de.uka.ilkd.key.proof.Proof
;
import
lombok.val
;
import
org.apache.commons.lang.ArrayUtils
;
import
org.key_project.util.collection.ImmutableList
;
...
...
@@ -23,7 +24,6 @@ public class LabelFactory {
public
static
String
RANGE_SEPARATOR
=
" -- "
;
/**
* Create Label for goalview according to function that is passed.
* The following functions can be given:
...
...
@@ -58,7 +58,20 @@ public class LabelFactory {
}
public
static
String
getBranchingLabel
(
Node
node
)
{
return
constructLabel
(
node
,
n
->
n
.
getNodeInfo
().
getBranchLabel
());
StringBuilder
sb
=
new
StringBuilder
();
while
(
node
!=
null
)
{
val
p
=
node
.
parent
();
if
(
p
!=
null
&&
p
.
childrenCount
()
!=
1
)
{
val
branchLabel
=
node
.
getNodeInfo
().
getBranchLabel
();
sb
.
append
(
branchLabel
!=
null
&&
!
branchLabel
.
isEmpty
()
?
branchLabel
:
"#"
+
p
.
getChildNr
(
node
))
.
append
(
SEPARATOR
);
}
node
=
p
;
}
sb
.
append
(
"$$"
);
return
sb
.
toString
();
}
public
static
String
getNameLabel
(
Node
node
)
{
...
...
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