Skip to content
Snippets Groups Projects
Commit 4164c8e1 authored by Thorsten Wißmann's avatar Thorsten Wißmann :guitar:
Browse files

Also show parent nodes in debugger

parent 5f972559
No related branches found
No related tags found
No related merge requests found
...@@ -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 () =
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment