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 27, 2024
1 parent f3dba75 commit b7f4cc8
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 @@ -421,6 +421,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 b7f4cc8

Please sign in to comment.