#define NULL ((void *)0)
typedef unsigned long size_t; // Customize by platform.
typedef long intptr_t;
typedef unsigned long uintptr_t;
typedef long scalar_t__; // Either arithmetic or pointer type.
/* By default, we understand bool (as a convenience). */
typedef int bool;
#define false 0
#define true 1

/* Forward declarations */

/* Type definitions */

/* Variables and functions */
int /*<<< orphan*/ printn(int);
int /*<<< orphan*/ putchar(char);
void main() {
  int i;
  for (i = 0; i < 32; i++) {
    if (i > 8 && i < 20)
      printn(i);
  }
  putchar('\n');
  for (i = 0; i < 32; i++) {
    if (i == 8 || i == 16 || i == 24)
      printn(i);
  }
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
cmpl   $0x20,-0x4(%rbp)
jge    1168 <main+0x48>
cmpl   $0x8,-0x4(%rbp)
jle    1155 <main+0x35>
cmpl   $0x14,-0x4(%rbp)
jge    1155 <main+0x35>
mov    -0x4(%rbp),%edi
call   1030 <printn@plt>
jmp    115a <main+0x3a>
mov    -0x4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x4(%rbp)
jmp    112f <main+0xf>
mov    $0xa,%edi
call   1040 <putchar@plt>
movl   $0x0,-0x4(%rbp)
cmpl   $0x20,-0x4(%rbp)
jge    11bc <main+0x9c>
cmpl   $0x8,-0x4(%rbp)
je     11a1 <main+0x81>
cmpl   $0x10,-0x4(%rbp)
je     11a1 <main+0x81>
cmpl   $0x18,-0x4(%rbp)
jne    11a9 <main+0x89>
mov    -0x4(%rbp),%edi
call   1030 <printn@plt>
jmp    11ae <main+0x8e>
mov    -0x4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x4(%rbp)
jmp    1179 <main+0x59>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
mov    $0xfffffff7,%ebx
jmp    1138 <main+0x18>
nopl   0x0(%rax,%rax,1)
add    $0x1,%ebx
cmp    $0x17,%ebx
je     1147 <main+0x27>
cmp    $0xa,%ebx
ja     1130 <main+0x10>
lea    0x9(%rbx),%edi
call   1030 <printn@plt>
jmp    1130 <main+0x10>
mov    $0xa,%edi
call   1040 <putchar@plt>
xor    %ebx,%ebx
jmp    116f <main+0x4f>
cs nopw 0x0(%rax,%rax,1)
nop
mov    %ebx,%edi
call   1030 <printn@plt>
add    $0x1,%ebx
cmp    $0x20,%ebx
je     1182 <main+0x62>
cmp    $0x10,%ebx
je     1160 <main+0x40>
mov    %ebx,%eax
and    $0x7fffffef,%eax
cmp    $0x8,%eax
jne    1167 <main+0x47>
jmp    1160 <main+0x40>
pop    %rbx
ret

LLVM IR (-O0):
define void @main() {
%1 = alloca i32
store i32 0, i32* %1
br label %2
2: ; preds = %15, %0
%3 = load i32, i32* %1
%4 = icmp slt i32 %3, 32
br i1 %4, label %5, label %18
5: ; preds = %2
%6 = load i32, i32* %1
%7 = icmp sgt i32 %6, 8
br i1 %7, label %8, label %14
8: ; preds = %5
%9 = load i32, i32* %1
%10 = icmp slt i32 %9, 20
br i1 %10, label %11, label %14
11: ; preds = %8
%12 = load i32, i32* %1
%13 = call i32 @printn(i32 %12)
br label %14
14: ; preds = %11, %8, %5
br label %15
15: ; preds = %14
%16 = load i32, i32* %1
%17 = add nsw i32 %16, 1
store i32 %17, i32* %1
br label %2
18: ; preds = %2
%19 = call i32 @putchar(i8 signext 10)
store i32 0, i32* %1
br label %20
20: ; preds = %36, %18
%21 = load i32, i32* %1
%22 = icmp slt i32 %21, 32
br i1 %22, label %23, label %39
23: ; preds = %20
%24 = load i32, i32* %1
%25 = icmp eq i32 %24, 8
br i1 %25, label %32, label %26
26: ; preds = %23
%27 = load i32, i32* %1
%28 = icmp eq i32 %27, 16
br i1 %28, label %32, label %29
29: ; preds = %26
%30 = load i32, i32* %1
%31 = icmp eq i32 %30, 24
br i1 %31, label %32, label %35
32: ; preds = %29, %26, %23
%33 = load i32, i32* %1
%34 = call i32 @printn(i32 %33)
br label %35
35: ; preds = %32, %29
br label %36
36: ; preds = %35
%37 = load i32, i32* %1
%38 = add nsw i32 %37, 1
store i32 %38, i32* %1
br label %20
39: ; preds = %20
ret void
}

LLVM IR (-O2):
define void @main() {
br label %1
1: ; preds = %0, %7
%2 = phi i32 [ 0, %0 ], [ %8, %7 ]
%3 = add nsw i32 %2, -9
%4 = icmp ult i32 %3, 11
br i1 %4, label %5, label %7
5: ; preds = %1
%6 = tail call i32 @printn(i32 %2)
br label %7
7: ; preds = %1, %5
%8 = add nuw nsw i32 %2, 1
%9 = icmp eq i32 %8, 32
br i1 %9, label %10, label %1
10: ; preds = %7
%11 = tail call i32 @putchar(i8 signext 10)
br label %12
12: ; preds = %10, %20
%13 = phi i32 [ 0, %10 ], [ %21, %20 ]
%14 = icmp eq i32 %13, 16
%15 = and i32 %13, 2147483631
%16 = icmp eq i32 %15, 8
%17 = or i1 %14, %16
br i1 %17, label %18, label %20
18: ; preds = %12
%19 = tail call i32 @printn(i32 %13)
br label %20
20: ; preds = %18, %12
%21 = add nuw nsw i32 %13, 1
%22 = icmp eq i32 %21, 32
br i1 %22, label %23, label %12
23: ; preds = %20
ret void
}