Ejemplo n.º 1
0
        public override IEnumerable <BuildObject> getDependencies(out DependencyDisposition ddisp)
        {
            HashSet <BuildObject> result = DafnyExtensions.getForestDependencies(getRoots(), out ddisp);

            result.Add(getExecutable());
            result.UnionWith(getExtraDependencies());
            return(result);
        }
Ejemplo n.º 2
0
        protected virtual IEnumerable <SourcePath> getAllDafnyModules(out DependencyDisposition ddisp)
        {
            HashSet <BuildObject> result = DafnyExtensions.getForestDependencies(getRoots(), out ddisp);
            //- now we assert that all Dafny inputs are actually SourcePaths.
            HashSet <SourcePath> rc = new HashSet <SourcePath>();

            foreach (BuildObject obj in result)
            {
                if (obj.getExtension().EndsWith(DafnyVerifyOneVerb.DAFNY_EXTN))
                {
                    rc.Add((SourcePath)obj);
                }
                else
                {
                    Util.Assert(obj.getExtension().EndsWith(TransitiveDepsVerb.TDEP_EXTN));
                    //- discard it.
                }
            }
            return(rc);
        }
Ejemplo n.º 3
0
 public override IEnumerable <IVerb> getVerbs()
 {
     return(DafnyExtensions.getForestVerbs(getRoots()));
 }