#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);
int /*<<< orphan*/ puts(char *);
int main(int argc, char *argv[]) {
  int i;
  for (i = 1; i <= 100; i++) {
    if (i % 0003 == 0 && i % 5 == 0)
      puts("FizzBuzz");
    if (i % 3 == 0 && i % 0x5 != 'A' - 'A')
      puts("Fizz");
    if (i % 3 != 0 && i % 5 == 0)
      ;
    puts("Buzz");
    if (i % 3 != 0 && i % 5 != 00)
      printf("%d\n", i);
  }
  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   $0x1,-0x14(%rbp)
cmpl   $0x64,-0x14(%rbp)
jg     1232 <main+0x112>
mov    -0x14(%rbp),%eax
mov    $0x3,%ecx
cltd
idiv   %ecx
cmp    $0x0,%edx
jne    117b <main+0x5b>
mov    -0x14(%rbp),%eax
mov    $0x5,%ecx
cltd
idiv   %ecx
cmp    $0x0,%edx
jne    117b <main+0x5b>
lea    0xe8a(%rip),%rdi
call   1030 <puts@plt>
mov    -0x14(%rbp),%eax
mov    $0x3,%ecx
cltd
idiv   %ecx
cmp    $0x0,%edx
jne    11af <main+0x8f>
mov    -0x14(%rbp),%eax
mov    $0x5,%ecx
cltd
idiv   %ecx
cmp    $0x0,%edx
je     11af <main+0x8f>
lea    0xe5f(%rip),%rdi
call   1030 <puts@plt>
mov    -0x14(%rbp),%eax
mov    $0x3,%ecx
cltd
idiv   %ecx
cmp    $0x0,%edx
je     11dc <main+0xbc>
mov    -0x14(%rbp),%eax
mov    $0x5,%ecx
cltd
idiv   %ecx
cmp    $0x0,%edx
jne    11dc <main+0xbc>
jmp    11dc <main+0xbc>
lea    0xe21(%rip),%rdi
call   1030 <puts@plt>
mov    -0x14(%rbp),%eax
mov    $0x3,%ecx
cltd
idiv   %ecx
cmp    $0x0,%edx
je     121f <main+0xff>
mov    -0x14(%rbp),%eax
mov    $0x5,%ecx
cltd
idiv   %ecx
cmp    $0x0,%edx
je     121f <main+0xff>
mov    -0x14(%rbp),%esi
lea    0xdf4(%rip),%rdi
call   1040 <printf@plt>
jmp    1224 <main+0x104>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    113d <main+0x1d>
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
mov    $0x1,%ebx
lea    0xecd(%rip),%r15
lea    0xed0(%rip),%r12
lea    0xec4(%rip),%r13
jmp    1158 <main+0x38>
nopw   0x0(%rax,%rax,1)
add    $0x1,%ebx
cmp    $0x65,%ebx
je     11c1 <main+0xa1>
movzbl %bl,%eax
imul   $0xcd,%eax,%ecx
shr    $0xa,%ecx
lea    (%rcx,%rcx,4),%ecx
imul   $0xab,%eax,%eax
shr    $0x9,%eax
lea    (%rax,%rax,2),%eax
mov    %ebx,%r14d
sub    %eax,%r14d
mov    %ebx,%ebp
sub    %ecx,%ebp
mov    %r14d,%eax
or     %bpl,%al
jne    1191 <main+0x71>
lea    0xe74(%rip),%rdi
call   1030 <puts@plt>
test   %r14b,%r14b
jne    11a3 <main+0x83>
test   %bpl,%bpl
je     11a3 <main+0x83>
mov    %r13,%rdi
call   1030 <puts@plt>
mov    %r15,%rdi
call   1030 <puts@plt>
test   %r14b,%r14b
je     1150 <main+0x30>
test   %bpl,%bpl
je     1150 <main+0x30>
mov    %r12,%rdi
mov    %ebx,%esi
call   1040 <printf@plt>
jmp    1150 <main+0x30>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [9 x i8] c"FizzBuzz\00"
@.str.1 = [5 x i8] c"Fizz\00"
@.str.2 = [5 x i8] c"Buzz\00"
@.str.3 = [4 x i8] c"%d\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i32
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
store i32 1, i32* %6
br label %7
7: ; preds = %52, %2
%8 = load i32, i32* %6
%9 = icmp sle i32 %8, 100
br i1 %9, label %10, label %55
10: ; preds = %7
%11 = load i32, i32* %6
%12 = srem i32 %11, 3
%13 = icmp eq i32 %12, 0
br i1 %13, label %14, label %20
14: ; preds = %10
%15 = load i32, i32* %6
%16 = srem i32 %15, 5
%17 = icmp eq i32 %16, 0
br i1 %17, label %18, label %20
18: ; preds = %14
%19 = call i32 @puts(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0))
br label %20
20: ; preds = %18, %14, %10
%21 = load i32, i32* %6
%22 = srem i32 %21, 3
%23 = icmp eq i32 %22, 0
br i1 %23, label %24, label %30
24: ; preds = %20
%25 = load i32, i32* %6
%26 = srem i32 %25, 5
%27 = icmp ne i32 %26, 0
br i1 %27, label %28, label %30
28: ; preds = %24
%29 = call i32 @puts(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0))
br label %30
30: ; preds = %28, %24, %20
%31 = load i32, i32* %6
%32 = srem i32 %31, 3
%33 = icmp ne i32 %32, 0
br i1 %33, label %34, label %39
34: ; preds = %30
%35 = load i32, i32* %6
%36 = srem i32 %35, 5
%37 = icmp eq i32 %36, 0
br i1 %37, label %38, label %39
38: ; preds = %34
br label %39
39: ; preds = %38, %34, %30
%40 = call i32 @puts(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0))
%41 = load i32, i32* %6
%42 = srem i32 %41, 3
%43 = icmp ne i32 %42, 0
br i1 %43, label %44, label %51
44: ; preds = %39
%45 = load i32, i32* %6
%46 = srem i32 %45, 5
%47 = icmp ne i32 %46, 0
br i1 %47, label %48, label %51
48: ; preds = %44
%49 = load i32, i32* %6
%50 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0), i32 %49)
br label %51
51: ; preds = %48, %44, %39
br label %52
52: ; preds = %51
%53 = load i32, i32* %6
%54 = add nsw i32 %53, 1
store i32 %54, i32* %6
br label %7
55: ; preds = %7
ret i32 0
}

LLVM IR (-O2):
@.str = [9 x i8] c"FizzBuzz\00"
@.str.1 = [5 x i8] c"Fizz\00"
@.str.2 = [5 x i8] c"Buzz\00"
@.str.3 = [4 x i8] c"%d\0A\00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
br label %3
3: ; preds = %2, %24
%4 = phi i32 [ 1, %2 ], [ %25, %24 ]
%5 = trunc i32 %4 to i8
%6 = urem i8 %5, 3
%7 = icmp eq i8 %6, 0
%8 = urem i8 %5, 5
%9 = icmp eq i8 %8, 0
%10 = or i8 %6, %8
%11 = icmp eq i8 %10, 0
br i1 %11, label %12, label %14
12: ; preds = %3
%13 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0))
br label %14
14: ; preds = %12, %3
%15 = xor i1 %7, true
%16 = select i1 %15, i1 true, i1 %9
br i1 %16, label %19, label %17
17: ; preds = %14
%18 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0))
br label %19
19: ; preds = %17, %14
%20 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0))
%21 = or i1 %7, %9
br i1 %21, label %24, label %22
22: ; preds = %19
%23 = tail call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0), i32 %4)
br label %24
24: ; preds = %19, %22
%25 = add nuw nsw i32 %4, 1
%26 = icmp eq i32 %25, 101
br i1 %26, label %27, label %3
27: ; preds = %24
ret i32 0
}