MCPcopy
hub / github.com/google/mangle / isInSameSCC

Function isInSameSCC

analysis/temporal.go:208–217  ·  view source on GitHub ↗

isInSameSCC checks if two predicates are in the same strongly connected component.

(pred1, pred2 ast.PredicateSym, sccs []Nodeset)

Source from the content-addressed store, hash-verified

206
207// isInSameSCC checks if two predicates are in the same strongly connected component.
208func 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}

Callers 1

CheckTemporalRecursionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected