isInSameSCC checks if two predicates are in the same strongly connected component.
(pred1, pred2 ast.PredicateSym, sccs []Nodeset)
| 206 | |
| 207 | // isInSameSCC checks if two predicates are in the same strongly connected component. |
| 208 | func isInSameSCC(pred1, pred2 ast.PredicateSym, sccs []Nodeset) bool { |
| 209 | for _, scc := range sccs { |
| 210 | _, has1 := scc[pred1] |
| 211 | _, has2 := scc[pred2] |
| 212 | if has1 && has2 { |
| 213 | return true |
| 214 | } |
| 215 | } |
| 216 | return false |
| 217 | } |
no outgoing calls
no test coverage detected