package codept-lib
Module Solver.MakeSource
Create a solver using the environment module Envt for name resolution and dependendy tracking and the parameter module Param
Parameters
module Envt : Stage.envtmodule Param : Stage.parammodule Eval : Stage.outliner with type envt := Envt.tSignature
eval ~learn {resolved; envt; rest} unit try to compute the signature of unit, and if successful add the unit to the resolved list. Otherwise, the unit is added to the unresolved list. The learn parameter determines, if the environment is updated when the unit is fully resolved
val resolve_split_dependencies :
Envt.t ->
Unit.s list Unit.pair ->
(Unit.r list Unit.pair, [> `Mli of state | `Ml of Unit.r list * state ])
resultResolve mli unit first, then use the new environment to resolve ml units
Resolve current aliases
expose current blocker on an on_going element
Add approximation to make cycle resolvable, possibly adding spurious dependencies. Drop intermediary units that are deemed non-resolvable
Compare if two states would lead to the same result for the solver (weak equality?).