#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*/ acos(double);
int /*<<< orphan*/ atan2(double, double);
int /*<<< orphan*/ printf(char *, int /*<<< orphan*/, int /*<<< orphan*/);
main() {
  double valor = 0;
  do {
    printf("%lf %lf\n", acos(valor), atan2(valor, 1.0));
    valor += 0.1;
  } while (valor <= 1.0);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x10(%rbp)
movsd  -0x10(%rbp),%xmm0
call   1050 <acos@plt>
mov    %eax,-0x14(%rbp)
movsd  -0x10(%rbp),%xmm0
movsd  0xea7(%rip),%xmm1
call   1030 <atan2@plt>
mov    -0x14(%rbp),%esi
mov    %eax,%edx
lea    0xe9e(%rip),%rdi
call   1040 <printf@plt>
movsd  0xe81(%rip),%xmm0
addsd  -0x10(%rbp),%xmm0
movsd  %xmm0,-0x10(%rbp)
movsd  0xe77(%rip),%xmm0
ucomisd -0x10(%rbp),%xmm0
jae    1147 <main+0x17>
mov    -0x4(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %rbx
push   %rax
xorps  %xmm0,%xmm0
call   1050 <acos@plt>
mov    %eax,%ebp
movsd  0xebb(%rip),%xmm1
xorps  %xmm0,%xmm0
call   1030 <atan2@plt>
lea    0xf04(%rip),%rbx
mov    %rbx,%rdi
mov    %ebp,%esi
mov    %eax,%edx
call   1040 <printf@plt>
movsd  0xea0(%rip),%xmm0
call   1050 <acos@plt>
mov    %eax,%ebp
movsd  0xe91(%rip),%xmm0
movsd  0xe81(%rip),%xmm1
call   1030 <atan2@plt>
mov    %rbx,%rdi
mov    %ebp,%esi
mov    %eax,%edx
call   1040 <printf@plt>
movsd  0xe78(%rip),%xmm0
call   1050 <acos@plt>
mov    %eax,%ebp
movsd  0xe69(%rip),%xmm0
movsd  0xe51(%rip),%xmm1
call   1030 <atan2@plt>
mov    %rbx,%rdi
mov    %ebp,%esi
mov    %eax,%edx
call   1040 <printf@plt>
movsd  0xe50(%rip),%xmm0
call   1050 <acos@plt>
mov    %eax,%ebp
movsd  0xe41(%rip),%xmm0
movsd  0xe21(%rip),%xmm1
call   1030 <atan2@plt>
mov    %rbx,%rdi
mov    %ebp,%esi
mov    %eax,%edx
call   1040 <printf@plt>
movsd  0xe28(%rip),%xmm0
call   1050 <acos@plt>
mov    %eax,%ebp
movsd  0xe19(%rip),%xmm0
movsd  0xdf1(%rip),%xmm1
call   1030 <atan2@plt>
mov    %rbx,%rdi
mov    %ebp,%esi
mov    %eax,%edx
call   1040 <printf@plt>
movsd  0xe00(%rip),%xmm0
call   1050 <acos@plt>
mov    %eax,%ebp
movsd  0xdf1(%rip),%xmm0
movsd  0xdc1(%rip),%xmm1
call   1030 <atan2@plt>
mov    %rbx,%rdi
mov    %ebp,%esi
mov    %eax,%edx
call   1040 <printf@plt>
movsd  0xdd8(%rip),%xmm0
call   1050 <acos@plt>
mov    %eax,%ebp
movsd  0xdc9(%rip),%xmm0
movsd  0xd91(%rip),%xmm1
call   1030 <atan2@plt>
mov    %rbx,%rdi
mov    %ebp,%esi
mov    %eax,%edx
call   1040 <printf@plt>
movsd  0xdb0(%rip),%xmm0
call   1050 <acos@plt>
mov    %eax,%ebp
movsd  0xda1(%rip),%xmm0
movsd  0xd61(%rip),%xmm1
call   1030 <atan2@plt>
mov    %rbx,%rdi
mov    %ebp,%esi
mov    %eax,%edx
call   1040 <printf@plt>
movsd  0xd88(%rip),%xmm0
call   1050 <acos@plt>
mov    %eax,%ebp
movsd  0xd79(%rip),%xmm0
movsd  0xd31(%rip),%xmm1
call   1030 <atan2@plt>
mov    %rbx,%rdi
mov    %ebp,%esi
mov    %eax,%edx
call   1040 <printf@plt>
movsd  0xd60(%rip),%xmm0
call   1050 <acos@plt>
mov    %eax,%ebp
movsd  0xd51(%rip),%xmm0
movsd  0xd01(%rip),%xmm1
call   1030 <atan2@plt>
mov    %rbx,%rdi
mov    %ebp,%esi
mov    %eax,%edx
call   1040 <printf@plt>
movsd  0xd38(%rip),%xmm0
call   1050 <acos@plt>
mov    %eax,%ebp
movsd  0xd29(%rip),%xmm0
movsd  0xcd1(%rip),%xmm1
call   1030 <atan2@plt>
mov    %rbx,%rdi
mov    %ebp,%esi
mov    %eax,%edx
call   1040 <printf@plt>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %rbp
ret

LLVM IR (-O0):
@.str = [9 x i8] c"%lf %lf\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca double
store i32 0, i32* %1
store double 0.000000e+00, double* %2
br label %3
3: ; preds = %11, %0
%4 = load double, double* %2
%5 = call i32 @acos(double %4)
%6 = load double, double* %2
%7 = call i32 @atan2(double %6, double 1.000000e+00)
%8 = call i32 @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), i32 %5, i32 %7)
%9 = load double, double* %2
%10 = fadd double %9, 1.000000e-01
store double %10, double* %2
br label %11
11: ; preds = %3
%12 = load double, double* %2
%13 = fcmp ole double %12, 1.000000e+00
br i1 %13, label %3, label %14
14: ; preds = %11
%15 = load i32, i32* %1
ret i32 %15
}

LLVM IR (-O2):
@.str = [9 x i8] c"%lf %lf\0A\00"
define i32 @main() {
%1 = tail call i32 @acos(double 0.000000e+00)
%2 = tail call i32 @atan2(double 0.000000e+00, double 1.000000e+00)
%3 = tail call i32 @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), i32 %1, i32 %2)
%4 = tail call i32 @acos(double 1.000000e-01)
%5 = tail call i32 @atan2(double 1.000000e-01, double 1.000000e+00)
%6 = tail call i32 @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), i32 %4, i32 %5)
%7 = tail call i32 @acos(double 2.000000e-01)
%8 = tail call i32 @atan2(double 2.000000e-01, double 1.000000e+00)
%9 = tail call i32 @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), i32 %7, i32 %8)
%10 = tail call i32 @acos(double 0x3FD3333333333334)
%11 = tail call i32 @atan2(double 0x3FD3333333333334, double 1.000000e+00)
%12 = tail call i32 @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), i32 %10, i32 %11)
%13 = tail call i32 @acos(double 4.000000e-01)
%14 = tail call i32 @atan2(double 4.000000e-01, double 1.000000e+00)
%15 = tail call i32 @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), i32 %13, i32 %14)
%16 = tail call i32 @acos(double 5.000000e-01)
%17 = tail call i32 @atan2(double 5.000000e-01, double 1.000000e+00)
%18 = tail call i32 @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), i32 %16, i32 %17)
%19 = tail call i32 @acos(double 6.000000e-01)
%20 = tail call i32 @atan2(double 6.000000e-01, double 1.000000e+00)
%21 = tail call i32 @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), i32 %19, i32 %20)
%22 = tail call i32 @acos(double 0x3FE6666666666666)
%23 = tail call i32 @atan2(double 0x3FE6666666666666, double 1.000000e+00)
%24 = tail call i32 @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), i32 %22, i32 %23)
%25 = tail call i32 @acos(double 0x3FE9999999999999)
%26 = tail call i32 @atan2(double 0x3FE9999999999999, double 1.000000e+00)
%27 = tail call i32 @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), i32 %25, i32 %26)
%28 = tail call i32 @acos(double 0x3FECCCCCCCCCCCCC)
%29 = tail call i32 @atan2(double 0x3FECCCCCCCCCCCCC, double 1.000000e+00)
%30 = tail call i32 @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), i32 %28, i32 %29)
%31 = tail call i32 @acos(double 0x3FEFFFFFFFFFFFFF)
%32 = tail call i32 @atan2(double 0x3FEFFFFFFFFFFFFF, double 1.000000e+00)
%33 = tail call i32 @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), i32 %31, i32 %32)
ret i32 0
}