internal/core/adt: do not finalize before arcs are processed
Before this change, a node with a shared value might
be marked as finalized before all checks were completed.
With the new closedness algorithm this had the
consequence that, for such nodes, finalizeShared would
not be called, which, in turn, meant that that node
would be missing conjunct markers relevant for the
closedness algorithm.
This bug could be the cause of other related issues that
had yet to be exposed.
Signed-off-by: Marcel van Lohuizen <mpvl@gmail.com>
Change-Id: Ibcd2218c4048009bac37485dcc5d4085140f8756
Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/1211563
Unity-Result: CUE porcuepine <cue.porcuepine@gmail.com>
TryBot-Result: CUEcueckoo <cueckoo@cuelang.org>
Reviewed-by: Daniel Martí <mvdan@mvdan.cc>