Skip to content

Commit b7f4cc8

Browse files
committed
Do not unroll loops in goblint stub functions
1 parent f3dba75 commit b7f4cc8

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/util/loopUnrolling.ml

+5-3
Original file line numberDiff line numberDiff line change
@@ -421,6 +421,8 @@ class loopUnrollingVisitor(func, totalLoops) = object
421421
end
422422

423423
let unroll_loops fd totalLoops =
424-
Cil.populateLabelAlphaTable fd;
425-
let thisVisitor = new loopUnrollingVisitor(fd, totalLoops) in
426-
ignore (visitCilFunction thisVisitor fd)
424+
if not (Cil.hasAttribute "goblint_stub" fd.svar.vattr) then (
425+
Cil.populateLabelAlphaTable fd;
426+
let thisVisitor = new loopUnrollingVisitor(fd, totalLoops) in
427+
ignore (visitCilFunction thisVisitor fd)
428+
)

0 commit comments

Comments
 (0)