* This creates a new scope where the definitions both inside and outside of the loop are accounted for.
*
* Additionally, it will mark references to variables at the beginning of the inner body of the loop as being uses of variables defined at the end of the loop.
* @return static
*/
publicfunctionmergeInnerLoopScope(
VariableTrackingLoopScope$inner_loop_scope,
VariableGraph$graph
):VariableTrackingScope{
$result=clone($this);
// TODO: Can this be optimized for common use cases?
// TODO: Track continue and break separately - May require a more complicated graph