Take transitive closures when searching for `opti` atoms in disjunction elimination. Filter out undirected `opti` atoms.