Return true if `op` is the Switch for a while loop.
(op)
| 148 | |
| 149 | |
| 150 | def IsLoopSwitch(op): |
| 151 | """Return true if `op` is the Switch for a while loop.""" |
| 152 | if IsSwitch(op): |
| 153 | ctxt = op._get_control_flow_context() # pylint: disable=protected-access |
| 154 | return ctxt is not None and ctxt.IsWhileContext() and not IsCondSwitch(op) |
| 155 | return False |
| 156 | |
| 157 | |
| 158 | def IsLoopMerge(op): |
nothing calls this directly
no test coverage detected