shithub: gefs

Download patch

ref: d04b0098fc3982cb64e170895992389488ef8d9a
parent: bf2b4ed8e73e635d7417dbd8c41720d21fa7fa1b
author: Ori Bernstein <ori@eigenstate.org>
date: Thu Nov 9 00:06:34 EST 2023

dump: show some more useful info for trees

--- a/dump.c
+++ b/dump.c
@@ -141,7 +141,7 @@
 			if(unpacktree(&t, v->v, v->nv) == nil)
 				n = fmtprint(fmt, "corrupt tree");
 			else
-				n = fmtprint(fmt, "<tree>");
+				n = fmtprint(fmt, "<tree [pred=%lld, succ=%lld, nref=%d, nlbl=%d]>", t.pred, t.succ, t.nref, t.nlbl);
 			break;
 		default:
 			n = fmtprint(fmt, "?? unknown op %d", op);