#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*/ Fdouble(double);
int /*<<< orphan*/ Ffloat(float);
int main(int argc, char const *argv[]) {
  for (int i = 1; i < 111; i += 10) {
    float f = i + 0.333;
    Ffloat(f);
    Ffloat(-f);
    double d = i + 0.333;
    Fdouble(d);
    Fdouble(-d);
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movl   $0x1,-0x14(%rbp)
cmpl   $0x6f,-0x14(%rbp)
jge    11d1 <main+0xb1>
cvtsi2sdl -0x14(%rbp),%xmm0
movsd  0xeac(%rip),%xmm1
addsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,-0x18(%rbp)
movss  -0x18(%rbp),%xmm0
call   1040 <Ffloat@plt>
movss  -0x18(%rbp),%xmm0
movd   %xmm0,%eax
xor    $0x80000000,%eax
movd   %eax,%xmm0
call   1040 <Ffloat@plt>
cvtsi2sdl -0x14(%rbp),%xmm0
movsd  0xe71(%rip),%xmm1
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x20(%rbp)
movsd  -0x20(%rbp),%xmm0
call   1030 <Fdouble@plt>
movsd  -0x20(%rbp),%xmm0
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
call   1030 <Fdouble@plt>
mov    -0x14(%rbp),%eax
add    $0xa,%eax
mov    %eax,-0x14(%rbp)
jmp    113d <main+0x1d>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
sub    $0x30,%rsp
movsd  0xed3(%rip),%xmm0
mov    $0xfffffff7,%ebx
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
movsd  %xmm0,0x8(%rsp)
addsd  0xeba(%rip),%xmm0
movapd %xmm0,0x10(%rsp)
cvtsd2ss %xmm0,%xmm0
movaps %xmm0,0x20(%rsp)
call   1040 <Ffloat@plt>
movaps 0x20(%rsp),%xmm0
xorps  0xeb2(%rip),%xmm0
call   1040 <Ffloat@plt>
movaps 0x10(%rsp),%xmm0
call   1030 <Fdouble@plt>
movaps 0x10(%rsp),%xmm0
xorps  0xea7(%rip),%xmm0
call   1030 <Fdouble@plt>
movsd  0x8(%rsp),%xmm0
addsd  0xe74(%rip),%xmm0
add    $0xa,%ebx
cmp    $0x65,%ebx
jb     1140 <main+0x20>
xor    %eax,%eax
add    $0x30,%rsp
pop    %rbx
ret

LLVM IR (-O0):
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i32
%7 = alloca float
%8 = alloca double
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
store i32 1, i32* %6
br label %9
9: ; preds = %30, %2
%10 = load i32, i32* %6
%11 = icmp slt i32 %10, 111
br i1 %11, label %12, label %33
12: ; preds = %9
%13 = load i32, i32* %6
%14 = sitofp i32 %13 to double
%15 = fadd double %14, 3.330000e-01
%16 = fptrunc double %15 to float
store float %16, float* %7
%17 = load float, float* %7
%18 = call i32 @Ffloat(float %17)
%19 = load float, float* %7
%20 = fneg float %19
%21 = call i32 @Ffloat(float %20)
%22 = load i32, i32* %6
%23 = sitofp i32 %22 to double
%24 = fadd double %23, 3.330000e-01
store double %24, double* %8
%25 = load double, double* %8
%26 = call i32 @Fdouble(double %25)
%27 = load double, double* %8
%28 = fneg double %27
%29 = call i32 @Fdouble(double %28)
br label %30
30: ; preds = %12
%31 = load i32, i32* %6
%32 = add nsw i32 %31, 10
store i32 %32, i32* %6
br label %9
33: ; preds = %9
ret i32 0
}

LLVM IR (-O2):
define i32 @main(i32 %0, i8** nocapture readnone %1) {
br label %4
3: ; preds = %4
ret i32 0
4: ; preds = %2, %4
%5 = phi i32 [ 1, %2 ], [ %15, %4 ]
%6 = sitofp i32 %5 to double
%7 = fadd double %6, 3.330000e-01
%8 = fptrunc double %7 to float
%9 = tail call i32 @Ffloat(float %8)
%10 = fneg float %8
%11 = tail call i32 @Ffloat(float %10)
%12 = tail call i32 @Fdouble(double %7)
%13 = fneg double %7
%14 = tail call i32 @Fdouble(double %13)
%15 = add nuw nsw i32 %5, 10
%16 = icmp ult i32 %5, 101
br i1 %16, label %4, label %3
}