#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 */
scalar_t__ printf(char *, int);
int puts(char *);
int main(void) {
  int i = 1;
  while ((!(i % 15)  ? puts("Fizzbuzz")
          : !(i % 3) ? puts("Fizz")
          : !(i % 5) ? puts("Buzz")
                     : printf("%d\n", i) >= 0) &&
         (++i <= 100))
    ;
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x1,-0x8(%rbp)
mov    -0x8(%rbp),%eax
mov    $0xf,%ecx
cltd
idiv   %ecx
cmp    $0x0,%edx
jne    116b <main+0x4b>
lea    0xeaf(%rip),%rdi
call   1030 <puts@plt>
mov    %eax,%ecx
xor    %eax,%eax
cmp    $0x0,%ecx
mov    %al,-0x9(%rbp)
jne    11f6 <main+0xd6>
jmp    1208 <main+0xe8>
mov    -0x8(%rbp),%eax
mov    $0x3,%ecx
cltd
idiv   %ecx
cmp    $0x0,%edx
jne    11a0 <main+0x80>
lea    0xe83(%rip),%rdi
call   1030 <puts@plt>
mov    %eax,%ecx
xor    %eax,%eax
cmp    $0x0,%ecx
mov    %al,-0x9(%rbp)
jne    11f6 <main+0xd6>
jmp    1208 <main+0xe8>
mov    -0x8(%rbp),%eax
mov    $0x5,%ecx
cltd
idiv   %ecx
cmp    $0x0,%edx
jne    11d5 <main+0xb5>
lea    0xe53(%rip),%rdi
call   1030 <puts@plt>
mov    %eax,%ecx
xor    %eax,%eax
cmp    $0x0,%ecx
mov    %al,-0x9(%rbp)
jne    11f6 <main+0xd6>
jmp    1208 <main+0xe8>
mov    -0x8(%rbp),%esi
lea    0xe34(%rip),%rdi
call   1040 <printf@plt>
mov    %rax,%rcx
xor    %eax,%eax
cmp    $0x0,%rcx
mov    %al,-0x9(%rbp)
jl     1208 <main+0xe8>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
cmp    $0x64,%eax
setle  %al
mov    %al,-0x9(%rbp)
mov    -0x9(%rbp),%al
test   $0x1,%al
jne    1218 <main+0xf8>
jmp    121d <main+0xfd>
jmp    1136 <main+0x16>
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
mov    $0x1,%ebx
mov    $0xffffffff,%ebp
mov    $0xcccccccd,%r12d
mov    $0xaaaaaaab,%r15d
lea    0xeb8(%rip),%r14
lea    0xec4(%rip),%r13
jmp    1177 <main+0x57>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
mov    %r14,%rdi
call   1030 <puts@plt>
test   %eax,%eax
je     11e2 <main+0xc2>
add    $0x1,%ebx
add    $0xffffffff,%ebp
cmp    $0x65,%ebx
je     11e2 <main+0xc2>
movzbl %bl,%eax
imul   $0x89,%eax,%eax
shr    $0xb,%eax
lea    (%rax,%rax,4),%eax
lea    (%rax,%rax,2),%eax
add    %bpl,%al
je     1160 <main+0x40>
mov    %ebx,%eax
mov    %rax,%rcx
imul   %r15,%rcx
shr    $0x21,%rcx
lea    (%rcx,%rcx,2),%ecx
add    %ebp,%ecx
je     11d0 <main+0xb0>
imul   %r12,%rax
shr    $0x22,%rax
lea    (%rax,%rax,4),%eax
add    %ebp,%eax
je     11d9 <main+0xb9>
mov    %r13,%rdi
mov    %ebx,%esi
call   1040 <printf@plt>
test   %rax,%rax
jns    116c <main+0x4c>
jmp    11e2 <main+0xc2>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
lea    0xe32(%rip),%rdi
jmp    1163 <main+0x43>
lea    0xe2e(%rip),%rdi
jmp    1163 <main+0x43>
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() {
%1 = alloca i32
%2 = alloca i32
store i32 0, i32* %1
store i32 1, i32* %2
br label %3
3: ; preds = %34, %0
%4 = load i32, i32* %2
%5 = srem i32 %4, 15
%6 = icmp ne i32 %5, 0
br i1 %6, label %10, label %7
7: ; preds = %3
%8 = call i32 @puts(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0))
%9 = icmp ne i32 %8, 0
br i1 %9, label %28, label %32
10: ; preds = %3
%11 = load i32, i32* %2
%12 = srem i32 %11, 3
%13 = icmp ne i32 %12, 0
br i1 %13, label %17, label %14
14: ; preds = %10
%15 = call i32 @puts(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0))
%16 = icmp ne i32 %15, 0
br i1 %16, label %28, label %32
17: ; preds = %10
%18 = load i32, i32* %2
%19 = srem i32 %18, 5
%20 = icmp ne i32 %19, 0
br i1 %20, label %24, label %21
21: ; preds = %17
%22 = call i32 @puts(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0))
%23 = icmp ne i32 %22, 0
br i1 %23, label %28, label %32
24: ; preds = %17
%25 = load i32, i32* %2
%26 = call i64 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0), i32 %25)
%27 = icmp sge i64 %26, 0
br i1 %27, label %28, label %32
28: ; preds = %24, %21, %14, %7
%29 = load i32, i32* %2
%30 = add nsw i32 %29, 1
store i32 %30, i32* %2
%31 = icmp sle i32 %30, 100
br label %32
32: ; preds = %28, %24, %21, %14, %7
%33 = phi i1 [ false, %24 ], [ false, %21 ], [ false, %14 ], [ false, %7 ], [ %31, %28 ]
br i1 %33, label %34, label %35
34: ; preds = %32
br label %3
35: ; preds = %32
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() {
br label %1
1: ; preds = %24, %0
%2 = phi i32 [ 1, %0 ], [ %25, %24 ]
%3 = trunc i32 %2 to i8
%4 = urem i8 %3, 15
%5 = icmp eq i8 %4, 0
br i1 %5, label %6, label %9
6: ; preds = %1
%7 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0))
%8 = icmp eq i32 %7, 0
br i1 %8, label %27, label %24
9: ; preds = %1
%10 = urem i32 %2, 3
%11 = icmp eq i32 %10, 0
br i1 %11, label %12, label %15
12: ; preds = %9
%13 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0))
%14 = icmp eq i32 %13, 0
br i1 %14, label %27, label %24
15: ; preds = %9
%16 = urem i32 %2, 5
%17 = icmp eq i32 %16, 0
br i1 %17, label %18, label %21
18: ; preds = %15
%19 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0))
%20 = icmp eq i32 %19, 0
br i1 %20, label %27, label %24
21: ; preds = %15
%22 = tail call i64 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0), i32 %2)
%23 = icmp sgt i64 %22, -1
br i1 %23, label %24, label %27
24: ; preds = %21, %18, %12, %6
%25 = add nuw nsw i32 %2, 1
%26 = icmp eq i32 %25, 101
br i1 %26, label %27, label %1
27: ; preds = %6, %12, %18, %21, %24
ret i32 0
}