#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*/ printf(char *, ...);
int /*<<< orphan*/ puts(char *);
int main(void) {
  int pontos_tnt = 13627;
  int pontos_tro = 13651;
  while (pontos_tro > pontos_tnt) {
    puts("oficio");
    pontos_tnt += 10;
  }
  for (int i = 1; i < 10; ++i) {
    printf("%d %s %s muita gente\n", i, (i == 1) ? "Nicole" : "Nicoles",
           (i == 1) ? "incomoda" : "incomodam");
    printf("%d Nicoles ", i + 1);
    for (int j = 0; j < (i + 1); ++j) {
      printf("incomodam ");
    }
    printf("muito maaaiss\n");
  }
  char a = 'A';
  while (1) {
    printf("%c\n", a);
    a++;
    if (a == 'K')
      break;
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x353b,-0x8(%rbp)
movl   $0x3553,-0xc(%rbp)
mov    -0xc(%rbp),%eax
cmp    -0x8(%rbp),%eax
jle    1163 <main+0x43>
lea    0xeb0(%rip),%rdi
call   1030 <puts@plt>
mov    -0x8(%rbp),%eax
add    $0xa,%eax
mov    %eax,-0x8(%rbp)
jmp    113d <main+0x1d>
movl   $0x1,-0x10(%rbp)
cmpl   $0xa,-0x10(%rbp)
jge    1219 <main+0xf9>
mov    -0x10(%rbp),%esi
mov    -0x10(%rbp),%ecx
lea    0xea3(%rip),%rdx
lea    0xe95(%rip),%rax
cmp    $0x1,%ecx
cmove  %rax,%rdx
mov    -0x10(%rbp),%edi
lea    0xe9c(%rip),%rcx
lea    0xe8c(%rip),%rax
cmp    $0x1,%edi
cmove  %rax,%rcx
lea    0xe59(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x10(%rbp),%esi
add    $0x1,%esi
lea    0xe7d(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movl   $0x0,-0x14(%rbp)
mov    -0x14(%rbp),%eax
mov    -0x10(%rbp),%ecx
add    $0x1,%ecx
cmp    %ecx,%eax
jge    11fd <main+0xdd>
lea    0xe63(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    11d0 <main+0xb0>
lea    0xe52(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x10(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x10(%rbp)
jmp    116a <main+0x4a>
movb   $0x41,-0x15(%rbp)
movsbl -0x15(%rbp),%esi
lea    0xe3d(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x15(%rbp),%al
add    $0x1,%al
mov    %al,-0x15(%rbp)
movsbl -0x15(%rbp),%eax
cmp    $0x4b,%eax
jne    1249 <main+0x129>
jmp    124e <main+0x12e>
jmp    121d <main+0xfd>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
push   %rax
lea    0xece(%rip),%rbx
mov    %rbx,%rdi
call   1030 <puts@plt>
mov    %rbx,%rdi
call   1030 <puts@plt>
mov    %rbx,%rdi
call   1030 <puts@plt>
mov    $0x1,%r13d
mov    $0x2,%r14d
lea    0xee2(%rip),%r15
lea    0xee7(%rip),%rbx
lea    0xeef(%rip),%r12
nopl   0x0(%rax,%rax,1)
cmp    $0x1,%r13d
lea    0xea9(%rip),%rdx
lea    0xe9b(%rip),%rax
cmove  %rax,%rdx
lea    0xea8(%rip),%rcx
lea    0xe98(%rip),%rax
cmove  %rax,%rcx
lea    0xe68(%rip),%rdi
mov    %r13d,%esi
xor    %eax,%eax
call   1040 <printf@plt>
add    $0x1,%r13d
mov    %r15,%rdi
mov    %r13d,%esi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %r14d,%ebp
nopl   (%rax)
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
add    $0xffffffff,%ebp
jne    11c0 <main+0xa0>
mov    %r12,%rdi
call   1030 <puts@plt>
add    $0x1,%r14d
cmp    $0xb,%r14d
jne    1170 <main+0x50>
lea    0xe6e(%rip),%rbx
mov    %rbx,%rdi
mov    $0x41,%esi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %rbx,%rdi
mov    $0x42,%esi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %rbx,%rdi
mov    $0x43,%esi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %rbx,%rdi
mov    $0x44,%esi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %rbx,%rdi
mov    $0x45,%esi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %rbx,%rdi
mov    $0x46,%esi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %rbx,%rdi
mov    $0x47,%esi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %rbx,%rdi
mov    $0x48,%esi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %rbx,%rdi
mov    $0x49,%esi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %rbx,%rdi
mov    $0x4a,%esi
xor    %eax,%eax
call   1040 <printf@plt>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [7 x i8] c"oficio\00"
@.str.1 = [22 x i8] c"%d %s %s muita gente\0A\00"
@.str.2 = [7 x i8] c"Nicole\00"
@.str.3 = [8 x i8] c"Nicoles\00"
@.str.4 = [9 x i8] c"incomoda\00"
@.str.5 = [10 x i8] c"incomodam\00"
@.str.6 = [12 x i8] c"%d Nicoles \00"
@.str.7 = [11 x i8] c"incomodam \00"
@.str.8 = [15 x i8] c"muito maaaiss\0A\00"
@.str.9 = [4 x i8] c"%c\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
%6 = alloca i8
store i32 0, i32* %1
store i32 13627, i32* %2
store i32 13651, i32* %3
br label %7
7: ; preds = %11, %0
%8 = load i32, i32* %3
%9 = load i32, i32* %2
%10 = icmp sgt i32 %8, %9
br i1 %10, label %11, label %15
11: ; preds = %7
%12 = call i32 @puts(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0))
%13 = load i32, i32* %2
%14 = add nsw i32 %13, 10
store i32 %14, i32* %2
br label %7
15: ; preds = %7
store i32 1, i32* %4
br label %16
16: ; preds = %45, %15
%17 = load i32, i32* %4
%18 = icmp slt i32 %17, 10
br i1 %18, label %19, label %48
19: ; preds = %16
%20 = load i32, i32* %4
%21 = load i32, i32* %4
%22 = icmp eq i32 %21, 1
%23 = zext i1 %22 to i64
%24 = select i1 %22, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.3, i64 0, i64 0)
%25 = load i32, i32* %4
%26 = icmp eq i32 %25, 1
%27 = zext i1 %26 to i64
%28 = select i1 %26, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.5, i64 0, i64 0)
%29 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.1, i64 0, i64 0), i32 %20, i8* %24, i8* %28)
%30 = load i32, i32* %4
%31 = add nsw i32 %30, 1
%32 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.6, i64 0, i64 0), i32 %31)
store i32 0, i32* %5
br label %33
33: ; preds = %40, %19
%34 = load i32, i32* %5
%35 = load i32, i32* %4
%36 = add nsw i32 %35, 1
%37 = icmp slt i32 %34, %36
br i1 %37, label %38, label %43
38: ; preds = %33
%39 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.7, i64 0, i64 0))
br label %40
40: ; preds = %38
%41 = load i32, i32* %5
%42 = add nsw i32 %41, 1
store i32 %42, i32* %5
br label %33
43: ; preds = %33
%44 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.8, i64 0, i64 0))
br label %45
45: ; preds = %43
%46 = load i32, i32* %4
%47 = add nsw i32 %46, 1
store i32 %47, i32* %4
br label %16
48: ; preds = %16
store i8 65, i8* %6
br label %49
49: ; preds = %48, %59
%50 = load i8, i8* %6
%51 = sext i8 %50 to i32
%52 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.9, i64 0, i64 0), i32 %51)
%53 = load i8, i8* %6
%54 = add i8 %53, 1
store i8 %54, i8* %6
%55 = load i8, i8* %6
%56 = sext i8 %55 to i32
%57 = icmp eq i32 %56, 75
br i1 %57, label %58, label %59
58: ; preds = %49
br label %60
59: ; preds = %49
br label %49
60: ; preds = %58
ret i32 0
}

LLVM IR (-O2):
@.str = [7 x i8] c"oficio\00"
@.str.1 = [22 x i8] c"%d %s %s muita gente\0A\00"
@.str.2 = [7 x i8] c"Nicole\00"
@.str.3 = [8 x i8] c"Nicoles\00"
@.str.4 = [9 x i8] c"incomoda\00"
@.str.5 = [10 x i8] c"incomodam\00"
@.str.6 = [12 x i8] c"%d Nicoles \00"
@.str.7 = [11 x i8] c"incomodam \00"
@.str.9 = [4 x i8] c"%c\0A\00"
@str = [14 x i8] c"muito maaaiss\00"
define i32 @main() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0))
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0))
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0))
br label %4
4: ; preds = %0, %13
%5 = phi i32 [ 2, %0 ], [ %15, %13 ]
%6 = phi i32 [ 1, %0 ], [ %11, %13 ]
%7 = icmp eq i32 %6, 1
%8 = select i1 %7, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.3, i64 0, i64 0)
%9 = select i1 %7, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.5, i64 0, i64 0)
%10 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([22 x i8], [22 x i8]* @.str.1, i64 0, i64 0), i32 %6, i8* %8, i8* %9)
%11 = add nuw nsw i32 %6, 1
%12 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @.str.6, i64 0, i64 0), i32 %11)
br label %28
13: ; preds = %28
%14 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([14 x i8], [14 x i8]* @str, i64 0, i64 0))
%15 = add nuw nsw i32 %5, 1
%16 = icmp eq i32 %15, 11
br i1 %16, label %17, label %4
17: ; preds = %13
%18 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.9, i64 0, i64 0), i32 65)
%19 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.9, i64 0, i64 0), i32 66)
%20 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.9, i64 0, i64 0), i32 67)
%21 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.9, i64 0, i64 0), i32 68)
%22 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.9, i64 0, i64 0), i32 69)
%23 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.9, i64 0, i64 0), i32 70)
%24 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.9, i64 0, i64 0), i32 71)
%25 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.9, i64 0, i64 0), i32 72)
%26 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.9, i64 0, i64 0), i32 73)
%27 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.9, i64 0, i64 0), i32 74)
ret i32 0
28: ; preds = %4, %28
%29 = phi i32 [ 0, %4 ], [ %31, %28 ]
%30 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @.str.7, i64 0, i64 0))
%31 = add nuw nsw i32 %29, 1
%32 = icmp eq i32 %31, %5
br i1 %32, label %13, label %28
}