Skip to content

Commit

Permalink
Use incr in CilCfg.countLoopsVisitor
Browse files Browse the repository at this point in the history
  • Loading branch information
sim642 committed Jan 24, 2024
1 parent 9a5d2e3 commit 96a57a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/util/cilCfg.ml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ class countLoopsVisitor(count) = object
inherit nopCilVisitor

method! vstmt stmt = match stmt.skind with
| Loop _ -> count := !count + 1; DoChildren
| Loop _ -> incr count; DoChildren
| _ -> DoChildren

end
Expand Down

0 comments on commit 96a57a2

Please sign in to comment.