Skip to content

Commit

Permalink
Do not unroll loops in goblint stub functions
Browse files Browse the repository at this point in the history
  • Loading branch information
karoliineh committed Sep 28, 2024
1 parent da52931 commit 31c474c
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/util/loopUnrolling.ml
Original file line number Diff line number Diff line change
Expand Up @@ -468,6 +468,8 @@ class loopUnrollingVisitor(func, totalLoops) = object
end

let unroll_loops fd totalLoops =
Cil.populateLabelAlphaTable fd;
let thisVisitor = new loopUnrollingVisitor(fd, totalLoops) in
ignore (visitCilFunction thisVisitor fd)
if not (Cil.hasAttribute "goblint_stub" fd.svar.vattr) then (
Cil.populateLabelAlphaTable fd;
let thisVisitor = new loopUnrollingVisitor(fd, totalLoops) in
ignore (visitCilFunction thisVisitor fd)
)

0 comments on commit 31c474c

Please sign in to comment.