Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
cool
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Hans-Peter Deifel
cool
Commits
4164c8e1
Commit
4164c8e1
authored
10 years ago
by
Thorsten Wißmann
Browse files
Options
Downloads
Patches
Plain Diff
Also show parent nodes in debugger
parent
5f972559
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/lib/CoAlgMisc.ml
+8
-0
8 additions, 0 deletions
src/lib/CoAlgMisc.ml
with
8 additions
and
0 deletions
src/lib/CoAlgMisc.ml
+
8
−
0
View file @
4164c8e1
...
@@ -683,6 +683,9 @@ let coreToString core =
...
@@ -683,6 +683,9 @@ let coreToString core =
let
children
=
let
children
=
List
.
map
(
fun
(
st
:
state
)
->
string_of_int
st
.
idx
)
core
.
childrenC
List
.
map
(
fun
(
st
:
state
)
->
string_of_int
st
.
idx
)
core
.
childrenC
in
in
let
parents
=
List
.
map
(
fun
(
st
,_:
state
*
int
)
->
string_of_int
st
.
idx
)
core
.
parentsC
in
"Core "
^
(
string_of_int
core
.
idx
)
^
" {
\n
"
^
"Core "
^
(
string_of_int
core
.
idx
)
^
" {
\n
"
^
" Status: "
^
(
nodeStatusToString
core
.
statusC
)
^
"
\n
"
^
" Status: "
^
(
nodeStatusToString
core
.
statusC
)
^
"
\n
"
^
" "
^
bsetToString
core
.
sortC
core
.
bsC
^
"
\n
"
^
" "
^
bsetToString
core
.
sortC
core
.
bsC
^
"
\n
"
^
...
@@ -690,6 +693,7 @@ let coreToString core =
...
@@ -690,6 +693,7 @@ let coreToString core =
"
\n
"
constraints
)
^
" }
\n
"
^
"
\n
"
constraints
)
^
" }
\n
"
^
" Children: { "
^
(
String
.
concat
" Children: { "
^
(
String
.
concat
", "
children
)
^
" }
\n
"
^
", "
children
)
^
" }
\n
"
^
" Parents: { "
^
(
String
.
concat
", "
parents
)
^
" }
\n
"
^
"}"
"}"
let
stateToString
(
state
:
state
)
:
string
=
let
stateToString
(
state
:
state
)
:
string
=
...
@@ -707,6 +711,9 @@ let stateToString (state:state): string =
...
@@ -707,6 +711,9 @@ let stateToString (state:state): string =
let
conclusionList
=
let
conclusionList
=
List
.
map
(
fun
x
->
"{"
^
String
.
concat
", "
x
^
"}"
)
conclusionList
List
.
map
(
fun
x
->
"{"
^
String
.
concat
", "
x
^
"}"
)
conclusionList
in
in
let
parents
=
List
.
map
(
fun
(
co
:
core
)
->
string_of_int
co
.
idx
)
state
.
parentsS
in
"State "
^
(
string_of_int
state
.
idx
)
^
" {
\n
"
^
"State "
^
(
string_of_int
state
.
idx
)
^
" {
\n
"
^
" Status: "
^
(
nodeStatusToString
state
.
statusS
)
^
"
\n
"
^
" Status: "
^
(
nodeStatusToString
state
.
statusS
)
^
"
\n
"
^
" "
^
bsetToString
state
.
sortS
state
.
bsS
^
"
\n
"
^
" "
^
bsetToString
state
.
sortS
state
.
bsS
^
"
\n
"
^
...
@@ -714,6 +721,7 @@ let stateToString (state:state): string =
...
@@ -714,6 +721,7 @@ let stateToString (state:state): string =
"
\n
"
constraints
)
^
" }
\n
"
^
"
\n
"
constraints
)
^
" }
\n
"
^
" Children: { "
^
(
String
.
concat
" Children: { "
^
(
String
.
concat
"
\n
"
conclusionList
)
^
" }
\n
"
^
"
\n
"
conclusionList
)
^
" }
\n
"
^
" Parents: { "
^
(
String
.
concat
", "
parents
)
^
" }
\n
"
^
"}"
"}"
let
queuePrettyStatus
()
=
let
queuePrettyStatus
()
=
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment