Esempio n. 1
0
 def getDependencySet(self):
     deps = depend.DependencySet()
     if self.option_a:
         deps = depend.parallel(self.option_a.getDependencySet(), deps)
     if self.option_b:
         deps = depend.parallel(self.option_b.getDependencySet(), deps)
     cond_deps = depend.DependencySet(self.cond.getDependencies())
     return depend.joinDependencies(cond_deps, deps)
Esempio n. 2
0
 def getDependencySet(self):
     deps = depend.DependencySet()
     for b in self.branches:
         deps = depend.parallel(b.getDependencySet(), deps)
     return depend.DependencySet(deps.reads | self.arg.getDependencies(), deps.writes)