Skip to content

Commit 7b32eac

Browse files
committed
spotless
1 parent 98cc1f0 commit 7b32eac

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

cast/src/main/java/com/ibm/wala/cast/ir/toSource/LoopHelper.java

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -255,13 +255,14 @@ private static boolean isDoLoop(PrunedCFG<SSAInstruction, ISSABasicBlock> cfg, L
255255
&& bb != loop.getLoopHeader()
256256
&& bb != loop.getLoopControl());
257257
for (ISSABasicBlock bb : loop.getAllBlocks()) {
258-
if (// bb is not the loop test itself
259-
!bb.equals(loop.getLoopControl())
258+
if ( // bb is not the loop test itself
259+
!bb.equals(loop.getLoopControl())
260260
// bb is not the loop header itself
261261
&& !bb.equals(loop.getLoopHeader())
262262
// there is a path within the loop body from bb to the loop test
263263
// i.e. bb is before the loop test, or at least can be
264-
&& DFS.getReachableNodes(loopBodyCFG, Collections.singleton(bb)).contains(loop.getLoopControl())
264+
&& DFS.getReachableNodes(loopBodyCFG, Collections.singleton(bb))
265+
.contains(loop.getLoopControl())
265266
// there is a path from bb to the header without going through the test
266267
// i.e. bb has an edge for which we'll use a continue
267268
&& !Collections.disjoint(

0 commit comments

Comments
 (0)