#name: resolved self-reference cycles with disjunctions #evalPartial -- in.cue -- a: b & {x: 1} | {y: 1} // {x:1,y:3,z:2} | {y:1} b: {x: 2} | c & {z: 2} // {x:2} | {x:1,y:3,z:2} c: a & {y: 3} | {z: 3} // {x:1,y:3,z:2} | {z:3} -- out/compile -- --- in.cue { a: ((〈0;b〉 & { x: 1 })|{ y: 1 }) b: ({ x: 2 }|(〈0;c〉 & { z: 2 })) c: ((〈0;a〉 & { y: 3 })|{ z: 3 }) } -- out/eval/stats -- Leaks: 0 Freed: 43 Reused: 32 Allocs: 11 Retain: 0 Unifications: 25 Conjuncts: 64 Disjuncts: 43 -- out/eval -- (struct){ a: (struct){ |((struct){ x: (int){ 1 } z: (int){ 2 } y: (int){ 3 } }, (struct){ y: (int){ 1 } }) } b: (struct){ |((struct){ x: (int){ 2 } }, (struct){ z: (int){ 2 } y: (int){ 3 } x: (int){ 1 } }) } c: (struct){ |((struct){ y: (int){ 3 } x: (int){ 1 } z: (int){ 2 } }, (struct){ z: (int){ 3 } }) } }