MCPcopy Create free account
hub / github.com/GaijinEntertainment/daScript / mergeExit

Function mergeExit

src/ast/ast_lint.cpp:179–182  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

177 return a > b ? a : b;
178 }
179 static void mergeExit ( SuperCount & out, int lo, int hi ) {
180 if ( !out.hasExits ) { out.hasExits = true; out.exitLo = lo; out.exitHi = hi; }
181 else { out.exitLo = (lo < out.exitLo) ? lo : out.exitLo; out.exitHi = safeMax(hi, out.exitHi); }
182 }
183 // CFG-agnostic scan: any matching super call anywhere in this subtree?
184 // Used at loop boundaries to defend against paths that countSuperCalls collapses
185 // via break/continue/goto (those terminate dead() and erase prefix super counts on

Callers 1

countSuperCallsFunction · 0.85

Calls 1

safeMaxFunction · 0.85

Tested by

no test coverage detected