Skip to content

Commit

Permalink
Merge pull request #1583 from goblint/loopUnroll-stubs
Browse files Browse the repository at this point in the history
Do not unroll loops in stub functions
  • Loading branch information
karoliineh authored Sep 30, 2024
2 parents 1f2bb69 + 31c474c commit 060004c
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 @@ -470,6 +470,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 060004c

Please sign in to comment.