pub fn verify_units(
    units: Vec<AnnotatedCompiledUnit>
) -> (Vec<AnnotatedCompiledUnit>, Diagnostics)