-- in.cue --
root: {
	a: {
		$id: "sequenced"
		seq: 2 // terminate at t2
		val: "foo"
		out: string
	}
	b: {
		$id: "sequenced"
		seq: 3 // terminate at t3
		val: "bar"
		out: string
	}
	c: {
		$id: "sequenced"
		seq: 1 // terminate at t1
		val: "baz"
		out: string
	}
	d: {
		$id: "valToOut"
		out: a.out + b.out + c.out
	}
}
-- out/run/errors --
-- out/run/t0 --
graph TD
  t0("root.a [Ready]")
  t1("root.b [Ready]")
  t2("root.c [Ready]")
  t3("root.d [Waiting]")
  t3-->t0
  t3-->t1
  t3-->t2

-- out/run/t1 --
graph TD
  t0("root.a [Running]")
  t1("root.b [Running]")
  t2("root.c [Terminated]")
  t3("root.d [Waiting]")
  t3-->t0
  t3-->t1
  t3-->t2

-- out/run/t1/value --
{
	$id: "sequenced"
	seq: 1
	val: "baz"
	out: "baz"
}
-- out/run/t2 --
graph TD
  t0("root.a [Terminated]")
  t1("root.b [Running]")
  t2("root.c [Terminated]")
  t3("root.d [Waiting]")
  t3-->t0
  t3-->t1
  t3-->t2

-- out/run/t2/value --
{
	$id: "sequenced"
	seq: 2
	val: "foo"
	out: "foo"
}
-- out/run/t3 --
graph TD
  t0("root.a [Terminated]")
  t1("root.b [Terminated]")
  t2("root.c [Terminated]")
  t3("root.d [Ready]")
  t3-->t0
  t3-->t1
  t3-->t2

-- out/run/t3/value --
{
	$id: "sequenced"
	seq: 3
	val: "bar"
	out: "bar"
}
-- out/run/t4 --
graph TD
  t0("root.a [Terminated]")
  t1("root.b [Terminated]")
  t2("root.c [Terminated]")
  t3("root.d [Terminated]")
  t3-->t0
  t3-->t1
  t3-->t2

-- out/run/t4/value --
{
	$id: "valToOut"
	out: "foobarbaz"
}
-- out/run-v3/t1/stats --
Leaks:  0
Freed:  20
Reused: 10
Allocs: 10
Retain: 0

Unifications: 20
Conjuncts:    25
Disjuncts:    0
ResolveDep:   3

NumCloseIDs: 1
-- diff/-out/run-v3/t1/stats<==>+out/run/t1/stats --
diff old new
--- old
+++ new
@@ -1,9 +1,12 @@
 Leaks:  0
 Freed:  20
-Reused: 16
-Allocs: 4
+Reused: 10
+Allocs: 10
 Retain: 0
 
 Unifications: 20
-Conjuncts:    29
-Disjuncts:    20
+Conjuncts:    25
+Disjuncts:    0
+ResolveDep:   3
+
+NumCloseIDs: 1
-- out/run/t1/stats --
Leaks:  0
Freed:  20
Reused: 16
Allocs: 4
Retain: 0

Unifications: 20
Conjuncts:    29
Disjuncts:    20
-- out/run-v3/t2/stats --
Leaks:  0
Freed:  20
Reused: 20
Allocs: 0
Retain: 0

Unifications: 20
Conjuncts:    30
Disjuncts:    0
ResolveDep:   3

NumCloseIDs: 2
-- diff/-out/run-v3/t2/stats<==>+out/run/t2/stats --
diff old new
--- old
+++ new
@@ -5,5 +5,8 @@
 Retain: 0
 
 Unifications: 20
-Conjuncts:    34
-Disjuncts:    20
+Conjuncts:    30
+Disjuncts:    0
+ResolveDep:   3
+
+NumCloseIDs: 2
-- out/run/t2/stats --
Leaks:  0
Freed:  20
Reused: 20
Allocs: 0
Retain: 0

Unifications: 20
Conjuncts:    34
Disjuncts:    20
-- out/run-v3/t3/stats --
Leaks:  0
Freed:  20
Reused: 20
Allocs: 0
Retain: 0

Unifications: 20
Conjuncts:    35
Disjuncts:    0
ResolveDep:   3

NumCloseIDs: 3
-- diff/-out/run-v3/t3/stats<==>+out/run/t3/stats --
diff old new
--- old
+++ new
@@ -6,4 +6,7 @@
 
 Unifications: 20
 Conjuncts:    35
-Disjuncts:    20
+Disjuncts:    0
+ResolveDep:   3
+
+NumCloseIDs: 3
-- out/run/t3/stats --
Leaks:  0
Freed:  20
Reused: 20
Allocs: 0
Retain: 0

Unifications: 20
Conjuncts:    35
Disjuncts:    20
-- out/run-v3/t4/stats --
Leaks:  0
Freed:  0
Reused: 0
Allocs: 0
Retain: 0

Unifications: 0
Conjuncts:    0
Disjuncts:    0
ResolveDep:   3
-- diff/-out/run-v3/t4/stats<==>+out/run/t4/stats --
diff old new
--- old
+++ new
@@ -7,3 +7,4 @@
 Unifications: 0
 Conjuncts:    0
 Disjuncts:    0
+ResolveDep:   3
-- out/run/t4/stats --
Leaks:  0
Freed:  0
Reused: 0
Allocs: 0
Retain: 0

Unifications: 0
Conjuncts:    0
Disjuncts:    0
-- out/run-v3/stats/totals --
Leaks:  0
Freed:  60
Reused: 50
Allocs: 10
Retain: 0

Unifications: 60
Conjuncts:    90
Disjuncts:    0
ResolveDep:   12

NumCloseIDs: 6
-- diff/-out/run-v3/stats/totals<==>+out/run/stats/totals --
diff old new
--- old
+++ new
@@ -1,9 +1,12 @@
 Leaks:  0
 Freed:  60
-Reused: 56
-Allocs: 4
+Reused: 50
+Allocs: 10
 Retain: 0
 
 Unifications: 60
-Conjuncts:    98
-Disjuncts:    60
+Conjuncts:    90
+Disjuncts:    0
+ResolveDep:   12
+
+NumCloseIDs: 6
-- out/run/stats/totals --
Leaks:  0
Freed:  60
Reused: 56
Allocs: 4
Retain: 0

Unifications: 60
Conjuncts:    98
Disjuncts:    60
