#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 */
unsigned int UINT_MAX;
int /*<<< orphan*/ printf(char *);
int main(int argc, char *argv[]) {
  for (unsigned int i = 0; i < UINT_MAX; i++)
    for (unsigned int j = 0; j < UINT_MAX; j++)
      for (unsigned int k = 0; k < UINT_MAX; k++)
        printf("testing\n");
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movl   $0x0,-0x14(%rbp)
mov    -0x14(%rbp),%eax
mov    0x2eb1(%rip),%rcx
cmp    (%rcx),%eax
jae    11b1 <main+0xa1>
movl   $0x0,-0x18(%rbp)
mov    -0x18(%rbp),%eax
mov    0x2e98(%rip),%rcx
cmp    (%rcx),%eax
jae    119e <main+0x8e>
movl   $0x0,-0x1c(%rbp)
mov    -0x1c(%rbp),%eax
mov    0x2e7f(%rip),%rcx
cmp    (%rcx),%eax
jae    118b <main+0x7b>
lea    0xe88(%rip),%rdi
call   1030 <printf@plt>
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
jmp    115f <main+0x4f>
jmp    1190 <main+0x80>
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
jmp    1146 <main+0x36>
jmp    11a3 <main+0x93>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    112d <main+0x1d>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r12
push   %rbx
mov    0x2ec9(%rip),%r14
cmpl   $0x0,(%r14)
je     1174 <main+0x64>
xor    %r15d,%r15d
lea    0xed1(%rip),%rbx
nop
xor    %r12d,%r12d
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
xor    %ebp,%ebp
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
mov    %rbx,%rdi
call   1030 <puts@plt>
add    $0x1,%ebp
mov    (%r14),%eax
cmp    %eax,%ebp
jb     1150 <main+0x40>
add    $0x1,%r12d
cmp    %eax,%r12d
jb     1140 <main+0x30>
add    $0x1,%r15d
cmp    %eax,%r15d
jb     1130 <main+0x20>
xor    %eax,%eax
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@UINT_MAX = global i32 0
@.str = [9 x i8] c"testing\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
store i32 0, i32* %6
br label %9
9: ; preds = %33, %2
%10 = load i32, i32* %6
%11 = load i32, i32* @UINT_MAX
%12 = icmp ult i32 %10, %11
br i1 %12, label %13, label %36
13: ; preds = %9
store i32 0, i32* %7
br label %14
14: ; preds = %29, %13
%15 = load i32, i32* %7
%16 = load i32, i32* @UINT_MAX
%17 = icmp ult i32 %15, %16
br i1 %17, label %18, label %32
18: ; preds = %14
store i32 0, i32* %8
br label %19
19: ; preds = %25, %18
%20 = load i32, i32* %8
%21 = load i32, i32* @UINT_MAX
%22 = icmp ult i32 %20, %21
br i1 %22, label %23, label %28
23: ; preds = %19
%24 = call i32 @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0))
br label %25
25: ; preds = %23
%26 = load i32, i32* %8
%27 = add i32 %26, 1
store i32 %27, i32* %8
br label %19
28: ; preds = %19
br label %29
29: ; preds = %28
%30 = load i32, i32* %7
%31 = add i32 %30, 1
store i32 %31, i32* %7
br label %14
32: ; preds = %14
br label %33
33: ; preds = %32
%34 = load i32, i32* %6
%35 = add i32 %34, 1
store i32 %35, i32* %6
br label %9
36: ; preds = %9
ret i32 0
}

LLVM IR (-O2):
@UINT_MAX = global i32 0
@str = [8 x i8] c"testing\00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = load i32, i32* @UINT_MAX
%4 = icmp eq i32 %3, 0
br i1 %4, label %7, label %5
5: ; preds = %2, %10
%6 = phi i32 [ %11, %10 ], [ 0, %2 ]
br label %8
7: ; preds = %10, %2
ret i32 0
8: ; preds = %13, %5
%9 = phi i32 [ %14, %13 ], [ 0, %5 ]
br label %16
10: ; preds = %13
%11 = add nuw i32 %6, 1
%12 = icmp ult i32 %11, %20
br i1 %12, label %5, label %7
13: ; preds = %16
%14 = add nuw i32 %9, 1
%15 = icmp ult i32 %14, %20
br i1 %15, label %8, label %10
16: ; preds = %8, %16
%17 = phi i32 [ %19, %16 ], [ 0, %8 ]
%18 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @str, i64 0, i64 0))
%19 = add nuw i32 %17, 1
%20 = load i32, i32* @UINT_MAX
%21 = icmp ult i32 %19, %20
br i1 %21, label %16, label %13
}