#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*/ ZowiTone(int, int, int, int);
void S_love() {
  for (int i = 700; i < 900; i = i * 1.02) {
    ZowiTone(10, i, 20, 4);
  }
  for (int i = 900; i > 650; i = i / 1.01) {
    ZowiTone(10, i, 20, 4);
  }
}


x86 assembly (clang, -O0):
<S_love>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x2bc,-0x4(%rbp)
cmpl   $0x384,-0x4(%rbp)
jge    1160 <S_love+0x50>
mov    -0x4(%rbp),%esi
mov    $0xa,%edi
mov    $0x14,%edx
mov    $0x4,%ecx
call   1030 <ZowiTone@plt>
cvtsi2sdl -0x4(%rbp),%xmm0
movsd  0xeb8(%rip),%xmm1
mulsd  %xmm1,%xmm0
cvttsd2si %xmm0,%eax
mov    %eax,-0x4(%rbp)
jmp    111f <S_love+0xf>
movl   $0x384,-0x8(%rbp)
cmpl   $0x28a,-0x8(%rbp)
jle    11a8 <S_love+0x98>
mov    -0x8(%rbp),%esi
mov    $0xa,%edi
mov    $0x14,%edx
mov    $0x4,%ecx
call   1030 <ZowiTone@plt>
cvtsi2sdl -0x8(%rbp),%xmm0
movsd  0xe68(%rip),%xmm1
divsd  %xmm1,%xmm0
cvttsd2si %xmm0,%eax
mov    %eax,-0x8(%rbp)
jmp    1167 <S_love+0x57>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<S_love>:
push   %rbx
mov    $0xa,%edi
mov    $0x2bc,%esi
mov    $0x14,%edx
mov    $0x4,%ecx
call   1030 <ZowiTone@plt>
mov    $0xa,%edi
mov    $0x2ca,%esi
mov    $0x14,%edx
mov    $0x4,%ecx
call   1030 <ZowiTone@plt>
mov    $0xa,%edi
mov    $0x2d8,%esi
mov    $0x14,%edx
mov    $0x4,%ecx
call   1030 <ZowiTone@plt>
mov    $0xa,%edi
mov    $0x2e6,%esi
mov    $0x14,%edx
mov    $0x4,%ecx
call   1030 <ZowiTone@plt>
mov    $0xa,%edi
mov    $0x2f4,%esi
mov    $0x14,%edx
mov    $0x4,%ecx
call   1030 <ZowiTone@plt>
mov    $0xa,%edi
mov    $0x303,%esi
mov    $0x14,%edx
mov    $0x4,%ecx
call   1030 <ZowiTone@plt>
mov    $0xa,%edi
mov    $0x312,%esi
mov    $0x14,%edx
mov    $0x4,%ecx
call   1030 <ZowiTone@plt>
mov    $0xa,%edi
mov    $0x321,%esi
mov    $0x14,%edx
mov    $0x4,%ecx
call   1030 <ZowiTone@plt>
mov    $0xa,%edi
mov    $0x331,%esi
mov    $0x14,%edx
mov    $0x4,%ecx
call   1030 <ZowiTone@plt>
mov    $0xa,%edi
mov    $0x341,%esi
mov    $0x14,%edx
mov    $0x4,%ecx
call   1030 <ZowiTone@plt>
mov    $0xa,%edi
mov    $0x351,%esi
mov    $0x14,%edx
mov    $0x4,%ecx
call   1030 <ZowiTone@plt>
mov    $0xa,%edi
mov    $0x361,%esi
mov    $0x14,%edx
mov    $0x4,%ecx
call   1030 <ZowiTone@plt>
mov    $0xa,%edi
mov    $0x372,%esi
mov    $0x14,%edx
mov    $0x4,%ecx
call   1030 <ZowiTone@plt>
mov    $0xa,%edi
mov    $0x383,%esi
mov    $0x14,%edx
mov    $0x4,%ecx
call   1030 <ZowiTone@plt>
mov    $0x384,%ebx
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
mov    $0xa,%edi
mov    %ebx,%esi
mov    $0x14,%edx
mov    $0x4,%ecx
call   1030 <ZowiTone@plt>
xorps  %xmm0,%xmm0
cvtsi2sd %ebx,%xmm0
divsd  0xd5b(%rip),%xmm0
cvttsd2si %xmm0,%ebx
cmp    $0x28a,%ebx
jg     1280 <S_love+0x170>
pop    %rbx
ret

LLVM IR (-O0):
define void @S_love() {
%1 = alloca i32
%2 = alloca i32
store i32 700, i32* %1
br label %3
3: ; preds = %9, %0
%4 = load i32, i32* %1
%5 = icmp slt i32 %4, 900
br i1 %5, label %6, label %14
6: ; preds = %3
%7 = load i32, i32* %1
%8 = call i32 @ZowiTone(i32 10, i32 %7, i32 20, i32 4)
br label %9
9: ; preds = %6
%10 = load i32, i32* %1
%11 = sitofp i32 %10 to double
%12 = fmul double %11, 1.020000e+00
%13 = fptosi double %12 to i32
store i32 %13, i32* %1
br label %3
14: ; preds = %3
store i32 900, i32* %2
br label %15
15: ; preds = %21, %14
%16 = load i32, i32* %2
%17 = icmp sgt i32 %16, 650
br i1 %17, label %18, label %26
18: ; preds = %15
%19 = load i32, i32* %2
%20 = call i32 @ZowiTone(i32 10, i32 %19, i32 20, i32 4)
br label %21
21: ; preds = %18
%22 = load i32, i32* %2
%23 = sitofp i32 %22 to double
%24 = fdiv double %23, 1.010000e+00
%25 = fptosi double %24 to i32
store i32 %25, i32* %2
br label %15
26: ; preds = %15
ret void
}

LLVM IR (-O2):
define void @S_love() {
%1 = tail call i32 @ZowiTone(i32 10, i32 700, i32 20, i32 4)
%2 = tail call i32 @ZowiTone(i32 10, i32 714, i32 20, i32 4)
%3 = tail call i32 @ZowiTone(i32 10, i32 728, i32 20, i32 4)
%4 = tail call i32 @ZowiTone(i32 10, i32 742, i32 20, i32 4)
%5 = tail call i32 @ZowiTone(i32 10, i32 756, i32 20, i32 4)
%6 = tail call i32 @ZowiTone(i32 10, i32 771, i32 20, i32 4)
%7 = tail call i32 @ZowiTone(i32 10, i32 786, i32 20, i32 4)
%8 = tail call i32 @ZowiTone(i32 10, i32 801, i32 20, i32 4)
%9 = tail call i32 @ZowiTone(i32 10, i32 817, i32 20, i32 4)
%10 = tail call i32 @ZowiTone(i32 10, i32 833, i32 20, i32 4)
%11 = tail call i32 @ZowiTone(i32 10, i32 849, i32 20, i32 4)
%12 = tail call i32 @ZowiTone(i32 10, i32 865, i32 20, i32 4)
%13 = tail call i32 @ZowiTone(i32 10, i32 882, i32 20, i32 4)
%14 = tail call i32 @ZowiTone(i32 10, i32 899, i32 20, i32 4)
br label %16
15: ; preds = %16
ret void
16: ; preds = %0, %16
%17 = phi i32 [ %21, %16 ], [ 900, %0 ]
%18 = tail call i32 @ZowiTone(i32 10, i32 %17, i32 20, i32 4)
%19 = sitofp i32 %17 to double
%20 = fdiv double %19, 1.010000e+00
%21 = fptosi double %20 to i32
%22 = icmp sgt i32 %21, 650
br i1 %22, label %16, label %15
}