IEnumerable <SourcePath> getTrustedBoogieAxioms() { OrderPreservingSet <SourcePath> result = new OrderPreservingSet <SourcePath>(); AnnotationScanner anns = new AnnotationScanner(basmInput); foreach (string[] annotation in anns.getAnnotations(AddBoogieAxiomAnnotation)) { string module = annotation[1]; SourcePath trustedPath = new SourcePath(Path.Combine( BuildEngine.theEngine.getSrcRoot(), BuildEngine.VerveTrustedSpecDir, module + BoogieVerb.BPL_EXTN)); result.Add(trustedPath); } return(result); }
public static bool needs_symdiff(BuildObject basm) { AnnotationScanner annotations = new AnnotationScanner(basm); bool symdiff = false; foreach (string[] ann in annotations.getAnnotations(BasmEnableSymdiffAnnotation)) { if (ann.Length != 2 || !ann[1].Equals("true")) { throw new SourceConfigurationError("Expected " + BasmEnableSymdiffAnnotation + " to have argument 'true'."); } symdiff = true; } return symdiff; }
public static bool needs_symdiff(BuildObject basm) { AnnotationScanner annotations = new AnnotationScanner(basm); bool symdiff = false; foreach (string[] ann in annotations.getAnnotations(BasmEnableSymdiffAnnotation)) { if (ann.Length != 2 || !ann[1].Equals("true")) { throw new SourceConfigurationError("Expected " + BasmEnableSymdiffAnnotation + " to have argument 'true'."); } symdiff = true; } return(symdiff); }
private IEnumerable<SourcePath> getTrustedBoogieAxioms() { OrderPreservingSet<SourcePath> result = new OrderPreservingSet<SourcePath>(); AnnotationScanner anns = new AnnotationScanner(basmInput); foreach (string[] annotation in anns.getAnnotations(AddBoogieAxiomAnnotation)) { string module = annotation[1]; SourcePath trustedPath = new SourcePath(Path.Combine( BuildEngine.theEngine.getSrcRoot(), BuildEngine.VerveTrustedSpecDir, module + BoogieVerb.BPL_EXTN)); result.Add(trustedPath); } return result; }