We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9bfe815 commit a2f43a2Copy full SHA for a2f43a2
1 file changed
src/util/loopUnrolling.ml
@@ -264,11 +264,8 @@ let fixedLoopSize loopStatement func =
264
None
265
else
266
constBefore var loopStatement func >>= fun start ->
267
- let diff =
268
- match assignmentDifference (loopBody loopStatement) var with
269
- | Some d -> d
270
- | None -> Z.one (* When we find a fixed loop and its start, but cannot detect the increment within the loop, we assume the increment is 1 *)
271
- in
+ (* When we find a fixed loop and its start, but cannot detect the increment within the loop, we assume the increment is 1 *)
+ let diff = Option.value (assignmentDifference (loopBody loopStatement) var) ~default:Z.one in
272
Logs.debug "comparison: ";
273
Pretty.fprint stderr (dn_exp () comparison) ~width:max_int;
274
Logs.debug "";
0 commit comments