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)
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)