#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*/ puts(char *);
int main() {
  int i;
  for (i = 0; i < 30; i++) {
    if (i < 10) {
      puts("Nie będę biegał na przerwie po korytarzu");
    } else if (i < 20) {
      puts("Nie będę używał brzydkich wyrazów");
    } else {
      puts("Nie będę pluł na inne dzieci");
    }
  }
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x0,-0x8(%rbp)
cmpl   $0x1e,-0x8(%rbp)
jge    118a <main+0x7a>
cmpl   $0xa,-0x8(%rbp)
jge    114b <main+0x3b>
lea    0xebf(%rip),%rdi
call   1030 <puts@plt>
jmp    1177 <main+0x67>
cmpl   $0x14,-0x8(%rbp)
jge    1166 <main+0x56>
lea    0xed0(%rip),%rdi
call   1030 <puts@plt>
jmp    1172 <main+0x62>
lea    0xee6(%rip),%rdi
call   1030 <puts@plt>
jmp    1177 <main+0x67>
jmp    117c <main+0x6c>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    1126 <main+0x16>
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r15
push   %r14
push   %r12
push   %rbx
push   %rax
xor    %ebx,%ebx
lea    0xf0b(%rip),%r14
lea    0xf2b(%rip),%r15
lea    0xed1(%rip),%r12
nop
cmp    $0x14,%ebx
mov    %r15,%rdi
cmovb  %r14,%rdi
cmp    $0xa,%ebx
cmovb  %r12,%rdi
call   1030 <puts@plt>
add    $0x1,%ebx
cmp    $0x1e,%ebx
jne    1130 <main+0x20>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
@.str = [44 x i8] c"Nie b\C4\99d\C4\99 biega\C5\82 na przerwie po korytarzu\00"
@.str.1 = [39 x i8] c"Nie b\C4\99d\C4\99 u\C5\BCywa\C5\82 brzydkich wyraz\C3\B3w\00"
@.str.2 = [32 x i8] c"Nie b\C4\99d\C4\99 plu\C5\82 na inne dzieci\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
store i32 0, i32* %1
store i32 0, i32* %2
br label %3
3: ; preds = %20, %0
%4 = load i32, i32* %2
%5 = icmp slt i32 %4, 30
br i1 %5, label %6, label %23
6: ; preds = %3
%7 = load i32, i32* %2
%8 = icmp slt i32 %7, 10
br i1 %8, label %9, label %11
9: ; preds = %6
%10 = call i32 @puts(i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str, i64 0, i64 0))
br label %19
11: ; preds = %6
%12 = load i32, i32* %2
%13 = icmp slt i32 %12, 20
br i1 %13, label %14, label %16
14: ; preds = %11
%15 = call i32 @puts(i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.1, i64 0, i64 0))
br label %18
16: ; preds = %11
%17 = call i32 @puts(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.2, i64 0, i64 0))
br label %18
18: ; preds = %16, %14
br label %19
19: ; preds = %18, %9
br label %20
20: ; preds = %19
%21 = load i32, i32* %2
%22 = add nsw i32 %21, 1
store i32 %22, i32* %2
br label %3
23: ; preds = %3
%24 = load i32, i32* %1
ret i32 %24
}

LLVM IR (-O2):
@.str = [44 x i8] c"Nie b\C4\99d\C4\99 biega\C5\82 na przerwie po korytarzu\00"
@.str.1 = [39 x i8] c"Nie b\C4\99d\C4\99 u\C5\BCywa\C5\82 brzydkich wyraz\C3\B3w\00"
@.str.2 = [32 x i8] c"Nie b\C4\99d\C4\99 plu\C5\82 na inne dzieci\00"
define i32 @main() {
br label %1
1: ; preds = %0, %1
%2 = phi i32 [ 0, %0 ], [ %8, %1 ]
%3 = icmp ult i32 %2, 10
%4 = icmp ult i32 %2, 20
%5 = select i1 %4, i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.2, i64 0, i64 0)
%6 = select i1 %3, i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str, i64 0, i64 0), i8* %5
%7 = tail call i32 @puts(i8* dereferenceable(1) %6)
%8 = add nuw nsw i32 %2, 1
%9 = icmp eq i32 %8, 30
br i1 %9, label %10, label %1
10: ; preds = %1
ret i32 0
}