int main(void) {
  int i, j, count;
  i = 0;
  for (;;) {
    put_num(i++);
    if (i > 5) {
      break;
    }
  }
  print("\n");
  i = collatz();
  print_num(i);
  print(" > 1000\n");
  for (i = 0; i < 10; ++i) {
    if (i & 1) {
      continue;
    }
    put_num(i);
  }
  print("\n");
  i = 1;
loop_head:
  put_num(i);
  i = i * 2;
  if (i > 1000)
    goto loop_tail;
  goto loop_head;
loop_tail:
  print("\n");
  j = 1;
  goto first_time;
  for (; j < 100;) {
    if (count > 30) {
      print("\n");
      j += 1;
    first_time:
      i = j, count = 1;
      print("j = ");
      print_num(j);
      print(": ");
      continue;
    }
    i = (i + j) % 121;
    count++;
    print_num(i);
    print(",");
    if (i == 0 && count == j) {
      print("\nsqrt of 121 = ");
      print_num(j);
      print("\n");
      break;
    }
  }
  for (i = 1; i < 100; ++i)
    for (j = 1; j < 100; ++j)
      for (count = 1; count < 100; ++count)
        if (i * i + j * j == count * count)
          do {
            put_num(i);
            put_num(j);
            put_num(count);
            print("\n");
            goto end_of_3_nested_for;
          } while (0);
end_of_3_nested_for:
  return_nothing();
  goto NULL;
  print("\"goto NULL;\" failed\n");
NULL:
  goto define;
  print("\"goto define;\" failed\n");
define:
  goto include;
  print("\"goto include;\" failed\n");
include:
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x0,-0x8(%rbp)
mov    -0x8(%rbp),%edi
mov    %edi,%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
mov    $0x0,%al
call   1070 <put_num@plt>
cmpl   $0x5,-0x8(%rbp)
jle    1187 <main+0x37>
jmp    118c <main+0x3c>
jmp    1166 <main+0x16>
lea    0xe74(%rip),%rdi
mov    $0x0,%al
call   1050 <print@plt>
mov    $0x0,%al
call   1030 <collatz@plt>
mov    %eax,-0x8(%rbp)
mov    -0x8(%rbp),%edi
mov    $0x0,%al
call   1060 <print_num@plt>
lea    0xe4b(%rip),%rdi
mov    $0x0,%al
call   1050 <print@plt>
movl   $0x0,-0x8(%rbp)
cmpl   $0xa,-0x8(%rbp)
jge    11f9 <main+0xa9>
mov    -0x8(%rbp),%eax
and    $0x1,%eax
cmp    $0x0,%eax
je     11e1 <main+0x91>
jmp    11eb <main+0x9b>
mov    -0x8(%rbp),%edi
mov    $0x0,%al
call   1070 <put_num@plt>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    11c3 <main+0x73>
lea    0xe07(%rip),%rdi
mov    $0x0,%al
call   1050 <print@plt>
movl   $0x1,-0x8(%rbp)
mov    -0x8(%rbp),%edi
mov    $0x0,%al
call   1070 <put_num@plt>
mov    -0x8(%rbp),%eax
shl    $0x1,%eax
mov    %eax,-0x8(%rbp)
cmpl   $0x3e8,-0x8(%rbp)
jle    1233 <main+0xe3>
jmp    1238 <main+0xe8>
jmp    120e <main+0xbe>
lea    0xdc8(%rip),%rdi
mov    $0x0,%al
call   1050 <print@plt>
movl   $0x1,-0xc(%rbp)
jmp    127d <main+0x12d>
cmpl   $0x64,-0xc(%rbp)
jge    132d <main+0x1dd>
cmpl   $0x1e,-0x10(%rbp)
jle    12b5 <main+0x165>
lea    0xd9a(%rip),%rdi
mov    $0x0,%al
call   1050 <print@plt>
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
mov    -0xc(%rbp),%eax
mov    %eax,-0x8(%rbp)
movl   $0x1,-0x10(%rbp)
lea    0xd78(%rip),%rdi
mov    $0x0,%al
call   1050 <print@plt>
mov    -0xc(%rbp),%edi
mov    $0x0,%al
call   1060 <print_num@plt>
lea    0xd65(%rip),%rdi
mov    $0x0,%al
call   1050 <print@plt>
jmp    1252 <main+0x102>
mov    -0x8(%rbp),%eax
add    -0xc(%rbp),%eax
mov    $0x79,%ecx
cltd
idiv   %ecx
mov    %edx,-0x8(%rbp)
mov    -0x10(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x10(%rbp)
mov    -0x8(%rbp),%edi
mov    $0x0,%al
call   1060 <print_num@plt>
lea    0xd31(%rip),%rdi
mov    $0x0,%al
call   1050 <print@plt>
cmpl   $0x0,-0x8(%rbp)
jne    1328 <main+0x1d8>
mov    -0x10(%rbp),%eax
cmp    -0xc(%rbp),%eax
jne    1328 <main+0x1d8>
lea    0xd0f(%rip),%rdi
mov    $0x0,%al
call   1050 <print@plt>
mov    -0xc(%rbp),%edi
mov    $0x0,%al
call   1060 <print_num@plt>
lea    0xceb(%rip),%rdi
mov    $0x0,%al
call   1050 <print@plt>
jmp    132d <main+0x1dd>
jmp    1252 <main+0x102>
movl   $0x1,-0x8(%rbp)
cmpl   $0x64,-0x8(%rbp)
jge    13ee <main+0x29e>
movl   $0x1,-0xc(%rbp)
cmpl   $0x64,-0xc(%rbp)
jge    13db <main+0x28b>
movl   $0x1,-0x10(%rbp)
cmpl   $0x64,-0x10(%rbp)
jge    13c8 <main+0x278>
mov    -0x8(%rbp),%eax
imul   -0x8(%rbp),%eax
mov    -0xc(%rbp),%ecx
imul   -0xc(%rbp),%ecx
add    %ecx,%eax
mov    -0x10(%rbp),%ecx
imul   -0x10(%rbp),%ecx
cmp    %ecx,%eax
jne    13b5 <main+0x265>
jmp    1384 <main+0x234>
mov    -0x8(%rbp),%edi
mov    $0x0,%al
call   1070 <put_num@plt>
mov    -0xc(%rbp),%edi
mov    $0x0,%al
call   1070 <put_num@plt>
mov    -0x10(%rbp),%edi
mov    $0x0,%al
call   1070 <put_num@plt>
lea    0xc5e(%rip),%rdi
mov    $0x0,%al
call   1050 <print@plt>
jmp    13f3 <main+0x2a3>
jmp    13ba <main+0x26a>
mov    -0x10(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x10(%rbp)
jmp    1356 <main+0x206>
jmp    13cd <main+0x27d>
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    1345 <main+0x1f5>
jmp    13e0 <main+0x290>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    1334 <main+0x1e4>
jmp    13f3 <main+0x2a3>
mov    $0x0,%al
call   1040 <return_nothing@plt>
jmp    13ff <main+0x2af>
jmp    1404 <main+0x2b4>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
push   %rax
xor    %edi,%edi
xor    %eax,%eax
call   1070 <put_num@plt>
mov    $0x1,%r13d
mov    $0x1,%edi
xor    %eax,%eax
call   1070 <put_num@plt>
mov    $0x2,%edi
xor    %eax,%eax
call   1070 <put_num@plt>
mov    $0x3,%edi
xor    %eax,%eax
call   1070 <put_num@plt>
mov    $0x4,%edi
xor    %eax,%eax
call   1070 <put_num@plt>
mov    $0x5,%edi
xor    %eax,%eax
call   1070 <put_num@plt>
lea    0xe5a(%rip),%rbx
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <print@plt>
xor    %eax,%eax
call   1030 <collatz@plt>
mov    %eax,%edi
xor    %eax,%eax
call   1060 <print_num@plt>
lea    0xe32(%rip),%rdi
xor    %eax,%eax
call   1050 <print@plt>
xor    %edi,%edi
xor    %eax,%eax
call   1070 <put_num@plt>
mov    $0x2,%edi
xor    %eax,%eax
call   1070 <put_num@plt>
mov    $0x4,%edi
xor    %eax,%eax
call   1070 <put_num@plt>
mov    $0x6,%edi
xor    %eax,%eax
call   1070 <put_num@plt>
mov    $0x8,%edi
xor    %eax,%eax
call   1070 <put_num@plt>
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <print@plt>
mov    $0x1,%edi
xor    %eax,%eax
call   1070 <put_num@plt>
mov    $0x2,%edi
xor    %eax,%eax
call   1070 <put_num@plt>
mov    $0x4,%edi
xor    %eax,%eax
call   1070 <put_num@plt>
mov    $0x8,%edi
xor    %eax,%eax
call   1070 <put_num@plt>
mov    $0x10,%edi
xor    %eax,%eax
call   1070 <put_num@plt>
mov    $0x20,%edi
xor    %eax,%eax
call   1070 <put_num@plt>
mov    $0x40,%edi
xor    %eax,%eax
call   1070 <put_num@plt>
mov    $0x80,%edi
xor    %eax,%eax
call   1070 <put_num@plt>
mov    $0x100,%edi
xor    %eax,%eax
call   1070 <put_num@plt>
mov    $0x200,%edi
xor    %eax,%eax
call   1070 <put_num@plt>
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <print@plt>
lea    0xd68(%rip),%rdi
xor    %eax,%eax
call   1050 <print@plt>
mov    $0x1,%edi
xor    %eax,%eax
call   1060 <print_num@plt>
lea    0xd53(%rip),%rdi
xor    %eax,%eax
call   1050 <print@plt>
lea    0xd48(%rip),%rbx
mov    $0x1,%ebp
xor    %eax,%eax
mov    %ebp,%r14d
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
cmp    $0xffffffe2,%eax
je     1330 <main+0x1e0>
mov    %eax,%r15d
add    %ebp,%r14d
movslq %r14d,%r14
imul   $0x43b3d5b,%r14,%rax
mov    %rax,%rcx
shr    $0x3f,%rcx
sar    $0x21,%rax
add    %ecx,%eax
imul   $0x79,%eax,%r12d
mov    %r14d,%edi
sub    %r12d,%edi
xor    %eax,%eax
call   1060 <print_num@plt>
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <print@plt>
lea    -0x1(%r15),%eax
sub    %r12d,%r14d
jne    12e0 <main+0x190>
cmp    %r15d,%r13d
jne    12e0 <main+0x190>
jmp    1375 <main+0x225>
nopl   (%rax)
lea    0xcd0(%rip),%rdi
xor    %eax,%eax
call   1050 <print@plt>
add    $0x1,%ebp
lea    0xcc1(%rip),%rdi
xor    %eax,%eax
call   1050 <print@plt>
mov    %ebp,%edi
xor    %eax,%eax
call   1060 <print_num@plt>
lea    0xcaf(%rip),%rdi
xor    %eax,%eax
call   1050 <print@plt>
add    $0xffffffff,%r13d
cmp    $0x64,%ebp
jne    12ce <main+0x17e>
jmp    139a <main+0x24a>
lea    0xc97(%rip),%rdi
xor    %eax,%eax
call   1050 <print@plt>
mov    %ebp,%edi
xor    %eax,%eax
call   1060 <print_num@plt>
lea    0xc74(%rip),%rdi
xor    %eax,%eax
call   1050 <print@plt>
mov    $0x1,%edi
mov    %edi,%eax
imul   %edi,%eax
mov    $0x1,%ebx
mov    %ebx,%ecx
imul   %ebx,%ecx
add    %eax,%ecx
mov    $0x3,%edx
cs nopw 0x0(%rax,%rax,1)
nop
lea    -0x2(%rdx),%ebp
mov    %ebp,%esi
imul   %ebp,%esi
cmp    %esi,%ecx
je     13fd <main+0x2ad>
lea    -0x1(%rdx),%ebp
mov    %ebp,%esi
imul   %ebp,%esi
cmp    %esi,%ecx
je     13fd <main+0x2ad>
mov    %edx,%esi
imul   %edx,%esi
cmp    %esi,%ecx
je     13fb <main+0x2ab>
add    $0x3,%edx
cmp    $0x66,%edx
jne    13c0 <main+0x270>
add    $0x1,%ebx
cmp    $0x64,%ebx
jne    13a9 <main+0x259>
add    $0x1,%edi
cmp    $0x64,%edi
jne    139f <main+0x24f>
jmp    1424 <main+0x2d4>
mov    %edx,%ebp
xor    %eax,%eax
call   1070 <put_num@plt>
mov    %ebx,%edi
xor    %eax,%eax
call   1070 <put_num@plt>
mov    %ebp,%edi
xor    %eax,%eax
call   1070 <put_num@plt>
lea    0xbea(%rip),%rdi
xor    %eax,%eax
call   1050 <print@plt>
xor    %eax,%eax
call   1040 <return_nothing@plt>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [2 x i8] c"\0A\00"
@.str.1 = [9 x i8] c" > 1000\0A\00"
@.str.2 = [5 x i8] c"j = \00"
@.str.3 = [3 x i8] c": \00"
@.str.4 = [2 x i8] c",\00"
@.str.5 = [16 x i8] c"\0Asqrt of 121 = \00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
store i32 0, i32* %1
store i32 0, i32* %2
br label %5
5: ; preds = %12, %0
%6 = load i32, i32* %2
%7 = add nsw i32 %6, 1
store i32 %7, i32* %2
%8 = call i32 (i32, ...) bitcast (i32 (...)* @put_num to i32 (i32, ...)*)(i32 %6)
%9 = load i32, i32* %2
%10 = icmp sgt i32 %9, 5
br i1 %10, label %11, label %12
11: ; preds = %5
br label %13
12: ; preds = %5
br label %5
13: ; preds = %11
%14 = call i32 (i8*, ...) bitcast (i32 (...)* @print to i32 (i8*, ...)*)(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%15 = call i32 (...) @collatz()
store i32 %15, i32* %2
%16 = load i32, i32* %2
%17 = call i32 (i32, ...) bitcast (i32 (...)* @print_num to i32 (i32, ...)*)(i32 %16)
%18 = call i32 (i8*, ...) bitcast (i32 (...)* @print to i32 (i8*, ...)*)(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.1, i64 0, i64 0))
store i32 0, i32* %2
br label %19
19: ; preds = %30, %13
%20 = load i32, i32* %2
%21 = icmp slt i32 %20, 10
br i1 %21, label %22, label %33
22: ; preds = %19
%23 = load i32, i32* %2
%24 = and i32 %23, 1
%25 = icmp ne i32 %24, 0
br i1 %25, label %26, label %27
26: ; preds = %22
br label %30
27: ; preds = %22
%28 = load i32, i32* %2
%29 = call i32 (i32, ...) bitcast (i32 (...)* @put_num to i32 (i32, ...)*)(i32 %28)
br label %30
30: ; preds = %27, %26
%31 = load i32, i32* %2
%32 = add nsw i32 %31, 1
store i32 %32, i32* %2
br label %19
33: ; preds = %19
%34 = call i32 (i8*, ...) bitcast (i32 (...)* @print to i32 (i8*, ...)*)(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
store i32 1, i32* %2
br label %35
35: ; preds = %43, %33
%36 = load i32, i32* %2
%37 = call i32 (i32, ...) bitcast (i32 (...)* @put_num to i32 (i32, ...)*)(i32 %36)
%38 = load i32, i32* %2
%39 = mul nsw i32 %38, 2
store i32 %39, i32* %2
%40 = load i32, i32* %2
%41 = icmp sgt i32 %40, 1000
br i1 %41, label %42, label %43
42: ; preds = %35
br label %44
43: ; preds = %35
br label %35
44: ; preds = %42
%45 = call i32 (i8*, ...) bitcast (i32 (...)* @print to i32 (i8*, ...)*)(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
store i32 1, i32* %3
br label %57
46: ; No predecessors!
br label %47
47: ; preds = %84, %57, %46
%48 = load i32, i32* %3
%49 = icmp slt i32 %48, 100
br i1 %49, label %50, label %85
50: ; preds = %47
%51 = load i32, i32* %4
%52 = icmp sgt i32 %51, 30
br i1 %52, label %53, label %63
53: ; preds = %50
%54 = call i32 (i8*, ...) bitcast (i32 (...)* @print to i32 (i8*, ...)*)(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%55 = load i32, i32* %3
%56 = add nsw i32 %55, 1
store i32 %56, i32* %3
br label %57
57: ; preds = %53, %44
%58 = load i32, i32* %3
store i32 %58, i32* %2
store i32 1, i32* %4
%59 = call i32 (i8*, ...) bitcast (i32 (...)* @print to i32 (i8*, ...)*)(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0))
%60 = load i32, i32* %3
%61 = call i32 (i32, ...) bitcast (i32 (...)* @print_num to i32 (i32, ...)*)(i32 %60)
%62 = call i32 (i8*, ...) bitcast (i32 (...)* @print to i32 (i8*, ...)*)(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0))
br label %47
63: ; preds = %50
%64 = load i32, i32* %2
%65 = load i32, i32* %3
%66 = add nsw i32 %64, %65
%67 = srem i32 %66, 121
store i32 %67, i32* %2
%68 = load i32, i32* %4
%69 = add nsw i32 %68, 1
store i32 %69, i32* %4
%70 = load i32, i32* %2
%71 = call i32 (i32, ...) bitcast (i32 (...)* @print_num to i32 (i32, ...)*)(i32 %70)
%72 = call i32 (i8*, ...) bitcast (i32 (...)* @print to i32 (i8*, ...)*)(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0))
%73 = load i32, i32* %2
%74 = icmp eq i32 %73, 0
br i1 %74, label %75, label %84
75: ; preds = %63
%76 = load i32, i32* %4
%77 = load i32, i32* %3
%78 = icmp eq i32 %76, %77
br i1 %78, label %79, label %84
79: ; preds = %75
%80 = call i32 (i8*, ...) bitcast (i32 (...)* @print to i32 (i8*, ...)*)(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.5, i64 0, i64 0))
%81 = load i32, i32* %3
%82 = call i32 (i32, ...) bitcast (i32 (...)* @print_num to i32 (i32, ...)*)(i32 %81)
%83 = call i32 (i8*, ...) bitcast (i32 (...)* @print to i32 (i8*, ...)*)(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
br label %85
84: ; preds = %75, %63
br label %47
85: ; preds = %79, %47
store i32 1, i32* %2
br label %86
86: ; preds = %128, %85
%87 = load i32, i32* %2
%88 = icmp slt i32 %87, 100
br i1 %88, label %89, label %131
89: ; preds = %86
store i32 1, i32* %3
br label %90
90: ; preds = %124, %89
%91 = load i32, i32* %3
%92 = icmp slt i32 %91, 100
br i1 %92, label %93, label %127
93: ; preds = %90
store i32 1, i32* %4
br label %94
94: ; preds = %120, %93
%95 = load i32, i32* %4
%96 = icmp slt i32 %95, 100
br i1 %96, label %97, label %123
97: ; preds = %94
%98 = load i32, i32* %2
%99 = load i32, i32* %2
%100 = mul nsw i32 %98, %99
%101 = load i32, i32* %3
%102 = load i32, i32* %3
%103 = mul nsw i32 %101, %102
%104 = add nsw i32 %100, %103
%105 = load i32, i32* %4
%106 = load i32, i32* %4
%107 = mul nsw i32 %105, %106
%108 = icmp eq i32 %104, %107
br i1 %108, label %109, label %119
109: ; preds = %97
br label %110
110: ; preds = %109
%111 = load i32, i32* %2
%112 = call i32 (i32, ...) bitcast (i32 (...)* @put_num to i32 (i32, ...)*)(i32 %111)
%113 = load i32, i32* %3
%114 = call i32 (i32, ...) bitcast (i32 (...)* @put_num to i32 (i32, ...)*)(i32 %113)
%115 = load i32, i32* %4
%116 = call i32 (i32, ...) bitcast (i32 (...)* @put_num to i32 (i32, ...)*)(i32 %115)
%117 = call i32 (i8*, ...) bitcast (i32 (...)* @print to i32 (i8*, ...)*)(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
br label %132
118: ; No predecessors!
br label %119
119: ; preds = %118, %97
br label %120
120: ; preds = %119
%121 = load i32, i32* %4
%122 = add nsw i32 %121, 1
store i32 %122, i32* %4
br label %94
123: ; preds = %94
br label %124
124: ; preds = %123
%125 = load i32, i32* %3
%126 = add nsw i32 %125, 1
store i32 %126, i32* %3
br label %90
127: ; preds = %90
br label %128
128: ; preds = %127
%129 = load i32, i32* %2
%130 = add nsw i32 %129, 1
store i32 %130, i32* %2
br label %86
131: ; preds = %86
br label %132
132: ; preds = %131, %110
%133 = call i32 (...) @return_nothing()
br label %134
134: ; preds = %132
br label %135
135: ; preds = %134
br label %136
136: ; preds = %135
ret i32 0
}

LLVM IR (-O2):
@.str = [2 x i8] c"\0A\00"
@.str.1 = [9 x i8] c" > 1000\0A\00"
@.str.2 = [5 x i8] c"j = \00"
@.str.3 = [3 x i8] c": \00"
@.str.4 = [2 x i8] c",\00"
@.str.5 = [16 x i8] c"\0Asqrt of 121 = \00"
define i32 @main() {
%1 = tail call i32 (i32, ...) bitcast (i32 (...)* @put_num to i32 (i32, ...)*)(i32 0)
%2 = tail call i32 (i32, ...) bitcast (i32 (...)* @put_num to i32 (i32, ...)*)(i32 1)
%3 = tail call i32 (i32, ...) bitcast (i32 (...)* @put_num to i32 (i32, ...)*)(i32 2)
%4 = tail call i32 (i32, ...) bitcast (i32 (...)* @put_num to i32 (i32, ...)*)(i32 3)
%5 = tail call i32 (i32, ...) bitcast (i32 (...)* @put_num to i32 (i32, ...)*)(i32 4)
%6 = tail call i32 (i32, ...) bitcast (i32 (...)* @put_num to i32 (i32, ...)*)(i32 5)
%7 = tail call i32 (i8*, ...) bitcast (i32 (...)* @print to i32 (i8*, ...)*)(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%8 = tail call i32 (...) @collatz()
%9 = tail call i32 (i32, ...) bitcast (i32 (...)* @print_num to i32 (i32, ...)*)(i32 %8)
%10 = tail call i32 (i8*, ...) bitcast (i32 (...)* @print to i32 (i8*, ...)*)(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.1, i64 0, i64 0))
%11 = tail call i32 (i32, ...) bitcast (i32 (...)* @put_num to i32 (i32, ...)*)(i32 0)
%12 = tail call i32 (i32, ...) bitcast (i32 (...)* @put_num to i32 (i32, ...)*)(i32 2)
%13 = tail call i32 (i32, ...) bitcast (i32 (...)* @put_num to i32 (i32, ...)*)(i32 4)
%14 = tail call i32 (i32, ...) bitcast (i32 (...)* @put_num to i32 (i32, ...)*)(i32 6)
%15 = tail call i32 (i32, ...) bitcast (i32 (...)* @put_num to i32 (i32, ...)*)(i32 8)
%16 = tail call i32 (i8*, ...) bitcast (i32 (...)* @print to i32 (i8*, ...)*)(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%17 = tail call i32 (i32, ...) bitcast (i32 (...)* @put_num to i32 (i32, ...)*)(i32 1)
%18 = tail call i32 (i32, ...) bitcast (i32 (...)* @put_num to i32 (i32, ...)*)(i32 2)
%19 = tail call i32 (i32, ...) bitcast (i32 (...)* @put_num to i32 (i32, ...)*)(i32 4)
%20 = tail call i32 (i32, ...) bitcast (i32 (...)* @put_num to i32 (i32, ...)*)(i32 8)
%21 = tail call i32 (i32, ...) bitcast (i32 (...)* @put_num to i32 (i32, ...)*)(i32 16)
%22 = tail call i32 (i32, ...) bitcast (i32 (...)* @put_num to i32 (i32, ...)*)(i32 32)
%23 = tail call i32 (i32, ...) bitcast (i32 (...)* @put_num to i32 (i32, ...)*)(i32 64)
%24 = tail call i32 (i32, ...) bitcast (i32 (...)* @put_num to i32 (i32, ...)*)(i32 128)
%25 = tail call i32 (i32, ...) bitcast (i32 (...)* @put_num to i32 (i32, ...)*)(i32 256)
%26 = tail call i32 (i32, ...) bitcast (i32 (...)* @put_num to i32 (i32, ...)*)(i32 512)
%27 = tail call i32 (i8*, ...) bitcast (i32 (...)* @print to i32 (i8*, ...)*)(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%28 = tail call i32 (i8*, ...) bitcast (i32 (...)* @print to i32 (i8*, ...)*)(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0))
%29 = tail call i32 (i32, ...) bitcast (i32 (...)* @print_num to i32 (i32, ...)*)(i32 1)
%30 = tail call i32 (i8*, ...) bitcast (i32 (...)* @print to i32 (i8*, ...)*)(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0))
br label %42
31: ; preds = %44, %42
%32 = phi i32 [ %43, %42 ], [ %46, %44 ]
%33 = phi i32 [ 1, %42 ], [ %47, %44 ]
%34 = icmp eq i32 %33, 31
br i1 %34, label %35, label %44
35: ; preds = %31
%36 = tail call i32 (i8*, ...) bitcast (i32 (...)* @print to i32 (i8*, ...)*)(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%37 = add nuw nsw i32 %43, 1
%38 = tail call i32 (i8*, ...) bitcast (i32 (...)* @print to i32 (i8*, ...)*)(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0))
%39 = tail call i32 (i32, ...) bitcast (i32 (...)* @print_num to i32 (i32, ...)*)(i32 %37)
%40 = tail call i32 (i8*, ...) bitcast (i32 (...)* @print to i32 (i8*, ...)*)(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0))
%41 = icmp eq i32 %37, 100
br i1 %41, label %57, label %42
42: ; preds = %0, %35
%43 = phi i32 [ 1, %0 ], [ %37, %35 ]
br label %31
44: ; preds = %31
%45 = add nsw i32 %32, %43
%46 = srem i32 %45, 121
%47 = add nuw nsw i32 %33, 1
%48 = tail call i32 (i32, ...) bitcast (i32 (...)* @print_num to i32 (i32, ...)*)(i32 %46)
%49 = tail call i32 (i8*, ...) bitcast (i32 (...)* @print to i32 (i8*, ...)*)(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0))
%50 = icmp eq i32 %46, 0
%51 = icmp eq i32 %47, %43
%52 = select i1 %50, i1 %51, i1 false
br i1 %52, label %53, label %31
53: ; preds = %44
%54 = tail call i32 (i8*, ...) bitcast (i32 (...)* @print to i32 (i8*, ...)*)(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.5, i64 0, i64 0))
%55 = tail call i32 (i32, ...) bitcast (i32 (...)* @print_num to i32 (i32, ...)*)(i32 %43)
%56 = tail call i32 (i8*, ...) bitcast (i32 (...)* @print to i32 (i8*, ...)*)(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
br label %57
57: ; preds = %35, %53
br label %58
58: ; preds = %57, %89
%59 = phi i32 [ %90, %89 ], [ 1, %57 ]
%60 = mul nsw i32 %59, %59
br label %61
61: ; preds = %58, %86
%62 = phi i32 [ 1, %58 ], [ %87, %86 ]
%63 = mul nsw i32 %62, %62
%64 = add nuw nsw i32 %63, %60
br label %65
65: ; preds = %83, %61
%66 = phi i32 [ 1, %61 ], [ %84, %83 ]
%67 = mul nuw nsw i32 %66, %66
%68 = icmp eq i32 %64, %67
br i1 %68, label %69, label %75
69: ; preds = %79, %75, %65
%70 = phi i32 [ %66, %65 ], [ %76, %75 ], [ %80, %79 ]
%71 = tail call i32 (i32, ...) bitcast (i32 (...)* @put_num to i32 (i32, ...)*)(i32 %59)
%72 = tail call i32 (i32, ...) bitcast (i32 (...)* @put_num to i32 (i32, ...)*)(i32 %62)
%73 = tail call i32 (i32, ...) bitcast (i32 (...)* @put_num to i32 (i32, ...)*)(i32 %70)
%74 = tail call i32 (i8*, ...) bitcast (i32 (...)* @print to i32 (i8*, ...)*)(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
br label %92
75: ; preds = %65
%76 = add nuw nsw i32 %66, 1
%77 = mul nuw nsw i32 %76, %76
%78 = icmp eq i32 %64, %77
br i1 %78, label %69, label %79
79: ; preds = %75
%80 = add nuw nsw i32 %66, 2
%81 = mul nuw nsw i32 %80, %80
%82 = icmp eq i32 %64, %81
br i1 %82, label %69, label %83
83: ; preds = %79
%84 = add nuw nsw i32 %66, 3
%85 = icmp eq i32 %84, 100
br i1 %85, label %86, label %65
86: ; preds = %83
%87 = add nuw nsw i32 %62, 1
%88 = icmp eq i32 %87, 100
br i1 %88, label %89, label %61
89: ; preds = %86
%90 = add nuw nsw i32 %59, 1
%91 = icmp eq i32 %90, 100
br i1 %91, label %92, label %58
92: ; preds = %89, %69
%93 = tail call i32 (...) @return_nothing()
ret i32 0
}