#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 n;
  for (n = 0; n <= 100; ((!(n % 15))  ? puts("fizzbuzz")
                         : (!(n % 3)) ? puts("fizz")
                         : (!(n % 5)) ? puts("buzz")
                                      : printf("%i\n", n)),
      n++)
    ;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x0,-0x8(%rbp)
cmpl   $0x64,-0x8(%rbp)
jg     11e3 <main+0xc3>
jmp    1145 <main+0x25>
mov    -0x8(%rbp),%eax
mov    $0xf,%ecx
cltd
idiv   %ecx
cmp    $0x0,%edx
jne    116a <main+0x4a>
lea    0xea0(%rip),%rdi
call   1030 <puts@plt>
jmp    11d5 <main+0xb5>
mov    -0x8(%rbp),%eax
mov    $0x3,%ecx
cltd
idiv   %ecx
cmp    $0x0,%edx
jne    1192 <main+0x72>
lea    0xe84(%rip),%rdi
call   1030 <puts@plt>
mov    %eax,-0xc(%rbp)
jmp    11d2 <main+0xb2>
mov    -0x8(%rbp),%eax
mov    $0x5,%ecx
cltd
idiv   %ecx
cmp    $0x0,%edx
jne    11ba <main+0x9a>
lea    0xe57(%rip),%rdi
call   1030 <puts@plt>
mov    %eax,-0x10(%rbp)
jmp    11cc <main+0xac>
mov    -0x8(%rbp),%esi
lea    0xe4a(%rip),%rdi
call   1040 <printf@plt>
mov    %eax,-0x10(%rbp)
mov    -0x10(%rbp),%eax
mov    %eax,-0xc(%rbp)
mov    -0xc(%rbp),%eax
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    1136 <main+0x16>
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
xor    %ebx,%ebx
lea    0xece(%rip),%r14
lea    0xed0(%rip),%r15
lea    0xec4(%rip),%r12
lea    0xec7(%rip),%r13
jmp    1160 <main+0x40>
nopl   0x0(%rax)
mov    %r14,%rdi
call   1030 <puts@plt>
add    $0x1,%ebx
cmp    $0x65,%ebx
je     11ba <main+0x9a>
movzbl %bl,%eax
imul   $0x89,%eax,%ecx
shr    $0xb,%ecx
mov    %ecx,%edx
shl    $0x4,%edx
sub    %edx,%ecx
add    %al,%cl
je     1150 <main+0x30>
imul   $0xab,%eax,%ecx
shr    $0x9,%ecx
lea    (%rcx,%rcx,2),%ecx
neg    %ecx
add    %bl,%cl
je     11b0 <main+0x90>
imul   $0xcd,%eax,%eax
shr    $0xa,%eax
lea    (%rax,%rax,4),%eax
neg    %eax
add    %bl,%al
je     11b5 <main+0x95>
mov    %r13,%rdi
mov    %ebx,%esi
call   1040 <printf@plt>
jmp    1158 <main+0x38>
nopw   0x0(%rax,%rax,1)
mov    %r15,%rdi
jmp    1153 <main+0x33>
mov    %r12,%rdi
jmp    1153 <main+0x33>
xor    %eax,%eax
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
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"%i\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
store i32 0, i32* %1
store i32 0, i32* %2
br label %3
3: ; preds = %32, %0
%4 = load i32, i32* %2
%5 = icmp sle i32 %4, 100
br i1 %5, label %6, label %36
6: ; preds = %3
br label %7
7: ; preds = %6
%8 = load i32, i32* %2
%9 = srem i32 %8, 15
%10 = icmp ne i32 %9, 0
br i1 %10, label %13, label %11
11: ; preds = %7
%12 = call i32 @puts(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0))
br label %32
13: ; preds = %7
%14 = load i32, i32* %2
%15 = srem i32 %14, 3
%16 = icmp ne i32 %15, 0
br i1 %16, label %19, label %17
17: ; preds = %13
%18 = call i32 @puts(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0))
br label %30
19: ; preds = %13
%20 = load i32, i32* %2
%21 = srem i32 %20, 5
%22 = icmp ne i32 %21, 0
br i1 %22, label %25, label %23
23: ; preds = %19
%24 = call i32 @puts(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0))
br label %28
25: ; preds = %19
%26 = load i32, i32* %2
%27 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0), i32 %26)
br label %28
28: ; preds = %25, %23
%29 = phi i32 [ %24, %23 ], [ %27, %25 ]
br label %30
30: ; preds = %28, %17
%31 = phi i32 [ %18, %17 ], [ %29, %28 ]
br label %32
32: ; preds = %30, %11
%33 = phi i32 [ %12, %11 ], [ %31, %30 ]
%34 = load i32, i32* %2
%35 = add nsw i32 %34, 1
store i32 %35, i32* %2
br label %3
36: ; preds = %3
%37 = load i32, i32* %1
ret i32 %37
}

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"%i\0A\00"
define i32 @main() {
br label %1
1: ; preds = %0, %20
%2 = phi i32 [ 0, %0 ], [ %21, %20 ]
%3 = trunc i32 %2 to i8
%4 = urem i8 %3, 15
%5 = icmp eq i8 %4, 0
br i1 %5, label %6, label %8
6: ; preds = %1
%7 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0))
br label %20
8: ; preds = %1
%9 = urem i8 %3, 3
%10 = icmp eq i8 %9, 0
br i1 %10, label %11, label %13
11: ; preds = %8
%12 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0))
br label %20
13: ; preds = %8
%14 = urem i8 %3, 5
%15 = icmp eq i8 %14, 0
br i1 %15, label %16, label %18
16: ; preds = %13
%17 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0))
br label %20
18: ; preds = %13
%19 = tail call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0), i32 %2)
br label %20
20: ; preds = %11, %18, %16, %6
%21 = add nuw nsw i32 %2, 1
%22 = icmp eq i32 %21, 101
br i1 %22, label %23, label %1
23: ; preds = %20
ret i32 0
}