Mlsem_system.Analyzermodule Diagnostic : sig ... endDiagnostics reported by analyze and get_unreachable.
val analyze : Ast.t -> Annot.Annot.t -> Diagnostic.t list * Visited.tanalyze e a reports the diagnostics raised by the annotated expression e, together with the sub-expressions of e that a covers. The annotation must already have been type-checked, since the analysis reads the types cached in it.
val get_unreachable : Visited.t -> Ast.t -> Diagnostic.t listget_unreachable visited e reports the sub-expressions of e that are not in visited, i.e. that no annotation covers (as Diagnostic.kind.Unreachable). A same expression may be analyzed under several annotations (typically once per signature of a definition); visited must then be the union of the sets returned by the corresponding calls to analyze, otherwise the parts that only some of them reached are wrongly reported as unreachable.