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


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xeca(%rip),%rax
mov    %rax,-0x10(%rbp)
movl   $0x1,-0x14(%rbp)
mov    -0x14(%rbp),%eax
mov    $0x3,%ecx
cltd
idiv   %ecx
cmp    $0x0,%edx
je     118d <main+0x6d>
mov    -0x14(%rbp),%eax
mov    $0x5,%ecx
cltd
idiv   %ecx
cmp    $0x0,%edx
je     118d <main+0x6d>
mov    -0x14(%rbp),%esi
lea    0xea1(%rip),%rdi
call   1040 <printf@plt>
mov    %eax,%ecx
xor    %eax,%eax
cmp    $0x0,%ecx
mov    %al,-0x15(%rbp)
jne    11fd <main+0xdd>
jmp    120f <main+0xef>
mov    -0x10(%rbp),%rax
mov    %rax,-0x20(%rbp)
mov    -0x14(%rbp),%eax
mov    $0xf,%ecx
cltd
idiv   %ecx
cmp    $0x0,%edx
jne    11b6 <main+0x96>
mov    $0xa,%eax
mov    %eax,-0x24(%rbp)
jmp    11da <main+0xba>
mov    -0x14(%rbp),%eax
mov    $0x3,%ecx
cltd
idiv   %ecx
cmp    $0x0,%edx
setne  %dl
xor    $0xff,%dl
mov    $0x5,%eax
xor    %ecx,%ecx
test   $0x1,%dl
cmovne %ecx,%eax
mov    %eax,-0x24(%rbp)
mov    -0x20(%rbp),%rdi
mov    -0x24(%rbp),%eax
cltq
add    %rax,%rdi
call   1030 <puts@plt>
mov    %rax,%rcx
xor    %eax,%eax
cmp    $0x0,%rcx
mov    %al,-0x15(%rbp)
jl     120f <main+0xef>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
cmp    $0x64,%eax
setle  %al
mov    %al,-0x15(%rbp)
mov    -0x15(%rbp),%al
test   $0x1,%al
jne    121f <main+0xff>
jmp    1224 <main+0x104>
jmp    1141 <main+0x21>
xor    %eax,%eax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r12
push   %rbx
mov    $0x1,%ebx
mov    $0xff,%bpl
mov    $0xa,%r15d
lea    0xec3(%rip),%r12
lea    0xed0(%rip),%r14
jmp    118c <main+0x6c>
cs nopw 0x0(%rax,%rax,1)
imul   $0x89,%ecx,%ecx
shr    $0xb,%ecx
lea    (%rcx,%rcx,4),%ecx
lea    (%rcx,%rcx,2),%ecx
add    %bpl,%cl
xor    %edx,%edx
test   %al,%al
setne  %dl
test   %cl,%cl
lea    (%rdx,%rdx,4),%rdi
cmove  %r15,%rdi
add    %r12,%rdi
call   1030 <puts@plt>
test   %rax,%rax
js     11bf <main+0x9f>
add    $0x1,%ebx
add    $0xff,%bpl
cmp    $0x65,%ebx
je     11bf <main+0x9f>
movzbl %bl,%ecx
imul   $0xab,%ecx,%eax
shr    $0x9,%eax
lea    (%rax,%rax,2),%eax
add    %bpl,%al
je     1150 <main+0x30>
imul   $0xcd,%ecx,%edx
shr    $0xa,%edx
lea    (%rdx,%rdx,4),%edx
add    %bpl,%dl
je     1150 <main+0x30>
mov    %r14,%rdi
mov    %ebx,%esi
call   1040 <printf@plt>
test   %eax,%eax
jne    1180 <main+0x60>
xor    %eax,%eax
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [20 x i8] c"Fizz\00Buzz\00Fizzbuzz\00\00"
@.str.1 = [4 x i8] c"%d\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i8*
%3 = alloca i32
store i32 0, i32* %1
store i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str, i64 0, i64 0), i8** %2
store i32 1, i32* %3
br label %4
4: ; preds = %41, %0
%5 = load i32, i32* %3
%6 = srem i32 %5, 3
%7 = icmp ne i32 %6, 0
br i1 %7, label %8, label %16
8: ; preds = %4
%9 = load i32, i32* %3
%10 = srem i32 %9, 5
%11 = icmp ne i32 %10, 0
br i1 %11, label %12, label %16
12: ; preds = %8
%13 = load i32, i32* %3
%14 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 %13)
%15 = icmp ne i32 %14, 0
br i1 %15, label %35, label %39
16: ; preds = %8, %4
%17 = load i8*, i8** %2
%18 = load i32, i32* %3
%19 = srem i32 %18, 15
%20 = icmp ne i32 %19, 0
br i1 %20, label %22, label %21
21: ; preds = %16
br label %29
22: ; preds = %16
%23 = load i32, i32* %3
%24 = srem i32 %23, 3
%25 = icmp ne i32 %24, 0
%26 = xor i1 %25, true
%27 = zext i1 %26 to i64
%28 = select i1 %26, i32 0, i32 5
br label %29
29: ; preds = %22, %21
%30 = phi i32 [ 10, %21 ], [ %28, %22 ]
%31 = sext i32 %30 to i64
%32 = getelementptr inbounds i8, i8* %17, i64 %31
%33 = call i64 @puts(i8* %32)
%34 = icmp sge i64 %33, 0
br i1 %34, label %35, label %39
35: ; preds = %29, %12
%36 = load i32, i32* %3
%37 = add nsw i32 %36, 1
store i32 %37, i32* %3
%38 = icmp sle i32 %37, 100
br label %39
39: ; preds = %35, %29, %12
%40 = phi i1 [ false, %29 ], [ false, %12 ], [ %38, %35 ]
br i1 %40, label %41, label %42
41: ; preds = %39
br label %4
42: ; preds = %39
ret i32 0
}

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