Skip to content

Commit 169e2ce

Browse files
committed
No need to match and unroll comparison operator type in LoopUnrolling
It should always be int.
1 parent 95e136b commit 169e2ce

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/util/loopUnrolling.ml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -260,8 +260,8 @@ let findLoopVarAndGoal loopStatement func (op, exp1, exp2) =
260260
end;
261261
| _ -> None
262262

263-
let getLoopVar loopStatement func = function (* TODO: unrolltype? *)
264-
| BinOp (op, exp1, exp2, TInt _) when isCompare op -> findLoopVarAndGoal loopStatement func (op, exp1, exp2)
263+
let getLoopVar loopStatement func = function
264+
| BinOp (op, exp1, exp2, _) when isCompare op -> findLoopVarAndGoal loopStatement func (op, exp1, exp2)
265265
| _ -> None
266266

267267
let getsPointedAt var func =

0 commit comments

Comments
 (0)