#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_char(char);
int /*<<< orphan*/ print_int(int);
int /*<<< orphan*/ print_string(char *);
int main() {
  char fizz[] = "Fizz";
  char buzz[] = "Buzz";
  int i = 0;
  for (i = 1; i <= 30; i++) {
    if (i % 3 == 0) {
      if (i % 5 == 0) {
        print_int(i);
        print_char(':');
        print_char(' ');
        print_string(fizz);
        print_string(buzz);
        print_char('\n');
      } else {
        print_int(i);
        print_char(':');
        print_char(' ');
        print_string(fizz);
        print_char('\n');
      }
    } else if (i % 5 == 0) {
      print_int(i);
      print_char(':');
      print_char(' ');
      print_string(buzz);
      print_char('\n');
    } else {
      print_int(i);
      print_char('\n');
    }
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
mov    0xebb(%rip),%eax
mov    %eax,-0x9(%rbp)
mov    0xeb6(%rip),%al
mov    %al,-0x5(%rbp)
mov    0xeae(%rip),%eax
mov    %eax,-0xe(%rbp)
mov    0xea9(%rip),%al
mov    %al,-0xa(%rbp)
movl   $0x0,-0x14(%rbp)
movl   $0x1,-0x14(%rbp)
cmpl   $0x1e,-0x14(%rbp)
jg     1286 <main+0x156>
mov    -0x14(%rbp),%eax
mov    $0x3,%ecx
cltd
idiv   %ecx
cmp    $0x0,%edx
jne    1214 <main+0xe4>
mov    -0x14(%rbp),%eax
mov    $0x5,%ecx
cltd
idiv   %ecx
cmp    $0x0,%edx
jne    11e0 <main+0xb0>
mov    -0x14(%rbp),%edi
call   1040 <print_int@plt>
mov    $0x3a,%edi
call   1050 <print_char@plt>
mov    $0x20,%edi
call   1050 <print_char@plt>
lea    -0x9(%rbp),%rdi
call   1030 <print_string@plt>
lea    -0xe(%rbp),%rdi
call   1030 <print_string@plt>
mov    $0xa,%edi
call   1050 <print_char@plt>
jmp    120f <main+0xdf>
mov    -0x14(%rbp),%edi
call   1040 <print_int@plt>
mov    $0x3a,%edi
call   1050 <print_char@plt>
mov    $0x20,%edi
call   1050 <print_char@plt>
lea    -0x9(%rbp),%rdi
call   1030 <print_string@plt>
mov    $0xa,%edi
call   1050 <print_char@plt>
jmp    1273 <main+0x143>
mov    -0x14(%rbp),%eax
mov    $0x5,%ecx
cltd
idiv   %ecx
cmp    $0x0,%edx
jne    125c <main+0x12c>
mov    -0x14(%rbp),%edi
call   1040 <print_int@plt>
mov    $0x3a,%edi
call   1050 <print_char@plt>
mov    $0x20,%edi
call   1050 <print_char@plt>
lea    -0xe(%rbp),%rdi
call   1030 <print_string@plt>
mov    $0xa,%edi
call   1050 <print_char@plt>
jmp    126e <main+0x13e>
mov    -0x14(%rbp),%edi
call   1040 <print_int@plt>
mov    $0xa,%edi
call   1050 <print_char@plt>
jmp    1273 <main+0x143>
jmp    1278 <main+0x148>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    1171 <main+0x41>
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
sub    $0x18,%rsp
movb   $0x0,0x14(%rsp)
movl   $0x7a7a6946,0x10(%rsp)
7a
movb   $0x0,0xc(%rsp)
movl   $0x7a7a7542,0x8(%rsp)
7a
mov    $0x1,%r13d
lea    0x10(%rsp),%r14
lea    0x8(%rsp),%r15
jmp    118c <main+0x5c>
nopw   0x0(%rax,%rax,1)
mov    %r15,%rdi
call   1030 <print_string@plt>
mov    $0xa,%edi
call   1050 <print_char@plt>
add    $0x1,%r13d
cmp    $0x1f,%r13d
je     120a <main+0xda>
movzbl %r13b,%ebp
imul   $0xcd,%ebp,%eax
shr    $0xa,%eax
lea    (%rax,%rax,4),%eax
imul   $0xab,%ebp,%ecx
shr    $0x9,%ecx
lea    (%rcx,%rcx,2),%ebx
neg    %ebx
mov    %r13d,%r12d
sub    %eax,%r12d
mov    %r13d,%edi
call   1040 <print_int@plt>
add    %bl,%bpl
je     11e0 <main+0xb0>
test   %r12b,%r12b
jne    1178 <main+0x48>
mov    $0x3a,%edi
call   1050 <print_char@plt>
mov    $0x20,%edi
call   1050 <print_char@plt>
jmp    1170 <main+0x40>
nopl   0x0(%rax,%rax,1)
mov    $0x3a,%edi
call   1050 <print_char@plt>
mov    $0x20,%edi
call   1050 <print_char@plt>
mov    %r14,%rdi
call   1030 <print_string@plt>
test   %r12b,%r12b
jne    1178 <main+0x48>
jmp    1170 <main+0x40>
xor    %eax,%eax
add    $0x18,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

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

LLVM IR (-O2):
@__const.main.fizz = [5 x i8] c"Fizz\00"
@__const.main.buzz = [5 x i8] c"Buzz\00"
define i32 @main() {
%1 = alloca [5 x i8]
%2 = alloca [5 x i8]
%3 = getelementptr inbounds [5 x i8], [5 x i8]* %1, i64 0, i64 0
%4 = getelementptr inbounds [5 x i8], [5 x i8]* %2, i64 0, i64 0
br label %5
5: ; preds = %0, %23
%6 = phi i32 [ 1, %0 ], [ %25, %23 ]
%7 = trunc i32 %6 to i8
%8 = urem i8 %7, 3
%9 = icmp eq i8 %8, 0
%10 = urem i8 %7, 5
%11 = icmp eq i8 %10, 0
%12 = call i32 @print_int(i32 %6)
br i1 %9, label %13, label %17
13: ; preds = %5
%14 = call i32 @print_char(i8 signext 58)
%15 = call i32 @print_char(i8 signext 32)
%16 = call i32 @print_string(i8* %3)
br i1 %11, label %21, label %23
17: ; preds = %5
br i1 %11, label %18, label %23
18: ; preds = %17
%19 = call i32 @print_char(i8 signext 58)
%20 = call i32 @print_char(i8 signext 32)
br label %21
21: ; preds = %13, %18
%22 = call i32 @print_string(i8* %4)
br label %23
23: ; preds = %21, %17, %13
%24 = call i32 @print_char(i8 signext 10)
%25 = add nuw nsw i32 %6, 1
%26 = icmp eq i32 %25, 31
br i1 %26, label %27, label %5
27: ; preds = %23
ret i32 0
}