Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Restrict unrolling to loops that are nested within less than 4 loops #1595

Merged
merged 4 commits into from
Oct 11, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Cram tests: do not unroll empty loops even if unrolling factor is man…
…ually set
  • Loading branch information
karoliineh committed Oct 10, 2024
commit eb1fdedaff59992c966b8f5dfa2044891da1a220
16 changes: 0 additions & 16 deletions tests/regression/55-loop-unrolling/08-bad.t
Original file line number Diff line number Diff line change
@@ -1,18 +1,11 @@
$ goblint --set lib.activated '[]' --set exp.unrolling-factor 1 --enable justcil --set dbg.justcil-printer clean 08-bad.c
[Info] unrolling loop at 08-bad.c:9:7-9:23 with factor 1
[Info] unrolling loop at 08-bad.c:15:8-15:24 with factor 1
int main(void)
{
int m ;

{
{
goto switch_default;
{
if (! 0) {
goto loop_end;
}
loop_continue_0: /* CIL Label */ ;
switch_default: /* CIL Label */
{
while (1) {
Expand All @@ -23,16 +16,9 @@
}
while_break: /* CIL Label */ ;
}
loop_end: /* CIL Label */ ;
}
switch_break: /* CIL Label */ ;
}
goto lab;
{
if (! 0) {
goto loop_end___0;
}
loop_continue_0___0: /* CIL Label */ ;
lab:
{
while (1) {
Expand All @@ -43,8 +29,6 @@
}
while_break___0: /* CIL Label */ ;
}
loop_end___0: /* CIL Label */ ;
}
return (0);
}
}
Loading