#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*/ print_int(int);
int /*<<< orphan*/ putchar(char);
int main() {
  int i;
  for (i = 1; i <= 100; i++) {
    int done = 0;
    if (i % 3 == 0) {
      putchar('F');
      putchar('i');
      putchar('z');
      putchar('z');
      done = 1;
    }
    if (i % 5 == 0) {
      putchar('B');
      putchar('u');
      putchar('z');
      putchar('z');
      done = 1;
    }
    if (!done)
      print_int(i);
    putchar('\n');
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x1,-0x8(%rbp)
cmpl   $0x64,-0x8(%rbp)
jg     11f7 <main+0xd7>
movl   $0x0,-0xc(%rbp)
mov    -0x8(%rbp),%eax
mov    $0x3,%ecx
cltd
idiv   %ecx
cmp    $0x0,%edx
jne    118a <main+0x6a>
mov    $0x46,%edi
call   1030 <putchar@plt>
mov    $0x69,%edi
call   1030 <putchar@plt>
mov    $0x7a,%edi
call   1030 <putchar@plt>
mov    $0x7a,%edi
call   1030 <putchar@plt>
movl   $0x1,-0xc(%rbp)
mov    -0x8(%rbp),%eax
mov    $0x5,%ecx
cltd
idiv   %ecx
cmp    $0x0,%edx
jne    11cd <main+0xad>
mov    $0x42,%edi
call   1030 <putchar@plt>
mov    $0x75,%edi
call   1030 <putchar@plt>
mov    $0x7a,%edi
call   1030 <putchar@plt>
mov    $0x7a,%edi
call   1030 <putchar@plt>
movl   $0x1,-0xc(%rbp)
cmpl   $0x0,-0xc(%rbp)
jne    11df <main+0xbf>
mov    -0x8(%rbp),%edi
call   1040 <print_int@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    1136 <main+0x16>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %rbx
push   %rax
mov    $0x1,%ebx
jmp    116a <main+0x4a>
nopw   0x0(%rax,%rax,1)
mov    $0x42,%edi
call   1030 <putchar@plt>
mov    $0x75,%edi
call   1030 <putchar@plt>
mov    $0x7a,%edi
call   1030 <putchar@plt>
mov    $0x7a,%edi
call   1030 <putchar@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
add    $0x1,%ebx
cmp    $0x65,%ebx
je     11d2 <main+0xb2>
movzbl %bl,%eax
imul   $0xcd,%eax,%ecx
shr    $0xa,%ecx
lea    (%rcx,%rcx,4),%ebp
neg    %ebp
imul   $0xab,%eax,%ecx
shr    $0x9,%ecx
lea    (%rcx,%rcx,2),%ecx
neg    %ecx
add    %cl,%al
je     11a0 <main+0x80>
add    %bl,%bpl
je     1130 <main+0x10>
mov    %ebx,%edi
call   1040 <print_int@plt>
jmp    1158 <main+0x38>
nopl   0x0(%rax,%rax,1)
mov    $0x46,%edi
call   1030 <putchar@plt>
mov    $0x69,%edi
call   1030 <putchar@plt>
mov    $0x7a,%edi
call   1030 <putchar@plt>
mov    $0x7a,%edi
call   1030 <putchar@plt>
add    %bl,%bpl
jne    1158 <main+0x38>
jmp    1130 <main+0x10>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %rbp
ret

LLVM IR (-O0):
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
store i32 0, i32* %1
store i32 1, i32* %2
br label %4
4: ; preds = %33, %0
%5 = load i32, i32* %2
%6 = icmp sle i32 %5, 100
br i1 %6, label %7, label %36
7: ; preds = %4
store i32 0, i32* %3
%8 = load i32, i32* %2
%9 = srem i32 %8, 3
%10 = icmp eq i32 %9, 0
br i1 %10, label %11, label %16
11: ; preds = %7
%12 = call i32 @putchar(i8 signext 70)
%13 = call i32 @putchar(i8 signext 105)
%14 = call i32 @putchar(i8 signext 122)
%15 = call i32 @putchar(i8 signext 122)
store i32 1, i32* %3
br label %16
16: ; preds = %11, %7
%17 = load i32, i32* %2
%18 = srem i32 %17, 5
%19 = icmp eq i32 %18, 0
br i1 %19, label %20, label %25
20: ; preds = %16
%21 = call i32 @putchar(i8 signext 66)
%22 = call i32 @putchar(i8 signext 117)
%23 = call i32 @putchar(i8 signext 122)
%24 = call i32 @putchar(i8 signext 122)
store i32 1, i32* %3
br label %25
25: ; preds = %20, %16
%26 = load i32, i32* %3
%27 = icmp ne i32 %26, 0
br i1 %27, label %31, label %28
28: ; preds = %25
%29 = load i32, i32* %2
%30 = call i32 @print_int(i32 %29)
br label %31
31: ; preds = %28, %25
%32 = call i32 @putchar(i8 signext 10)
br label %33
33: ; preds = %31
%34 = load i32, i32* %2
%35 = add nsw i32 %34, 1
store i32 %35, i32* %2
br label %4
36: ; preds = %4
ret i32 0
}

LLVM IR (-O2):
define i32 @main() {
br label %1
1: ; preds = %0, %23
%2 = phi i32 [ 1, %0 ], [ %25, %23 ]
%3 = trunc i32 %2 to i8
%4 = urem i8 %3, 3
%5 = icmp eq i8 %4, 0
br i1 %5, label %6, label %13
6: ; preds = %1
%7 = tail call i32 @putchar(i8 signext 70)
%8 = tail call i32 @putchar(i8 signext 105)
%9 = tail call i32 @putchar(i8 signext 122)
%10 = tail call i32 @putchar(i8 signext 122)
%11 = urem i8 %3, 5
%12 = icmp eq i8 %11, 0
br i1 %12, label %16, label %23
13: ; preds = %1
%14 = urem i8 %3, 5
%15 = icmp eq i8 %14, 0
br i1 %15, label %16, label %21
16: ; preds = %13, %6
%17 = tail call i32 @putchar(i8 signext 66)
%18 = tail call i32 @putchar(i8 signext 117)
%19 = tail call i32 @putchar(i8 signext 122)
%20 = tail call i32 @putchar(i8 signext 122)
br label %23
21: ; preds = %13
%22 = tail call i32 @print_int(i32 %2)
br label %23
23: ; preds = %6, %16, %21
%24 = tail call i32 @putchar(i8 signext 10)
%25 = add nuw nsw i32 %2, 1
%26 = icmp eq i32 %25, 101
br i1 %26, label %27, label %1
27: ; preds = %23
ret i32 0
}