#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*/ printf(char *, double, double);
main() {
  double a, b;
  double ca, sb;
  ca = a * a * a;
  sb = b * b;
  for (a = -100000; a <= 100000; ++a) {
    sb = 100000 - ca;
    printf("Solution : a: %lf b: %lf\n", ca, sb);
  }
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
movl   $0x0,-0x4(%rbp)
movsd  -0x10(%rbp),%xmm0
mulsd  -0x10(%rbp),%xmm0
mulsd  -0x10(%rbp),%xmm0
movsd  %xmm0,-0x20(%rbp)
movsd  -0x18(%rbp),%xmm0
mulsd  -0x18(%rbp),%xmm0
movsd  %xmm0,-0x28(%rbp)
movsd  0xeb6(%rip),%xmm0
movsd  %xmm0,-0x10(%rbp)
movsd  0xeb1(%rip),%xmm0
ucomisd -0x10(%rbp),%xmm0
jb     11a1 <main+0x91>
movsd  0xe9e(%rip),%xmm0
subsd  -0x20(%rbp),%xmm0
movsd  %xmm0,-0x28(%rbp)
movsd  -0x20(%rbp),%xmm0
movsd  -0x28(%rbp),%xmm1
lea    0xe93(%rip),%rdi
call   1030 <printf@plt>
movsd  0xe7e(%rip),%xmm0
addsd  -0x10(%rbp),%xmm0
movsd  %xmm0,-0x10(%rbp)
jmp    114f <main+0x3f>
mov    -0x4(%rbp),%eax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %rbx
push   %rax
mov    $0x30d41,%ebp
lea    0xee9(%rip),%rbx
nop
mov    %rbx,%rdi
movsd  0xed5(%rip),%xmm1
call   1030 <printf@plt>
add    $0xffffffff,%ebp
jne    1120 <main+0x10>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %rbp
ret

LLVM IR (-O0):
@.str = [26 x i8] c"Solution : a: %lf b: %lf\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca double
%3 = alloca double
%4 = alloca double
%5 = alloca double
store i32 0, i32* %1
%6 = load double, double* %2
%7 = load double, double* %2
%8 = fmul double %6, %7
%9 = load double, double* %2
%10 = fmul double %8, %9
store double %10, double* %4
%11 = load double, double* %3
%12 = load double, double* %3
%13 = fmul double %11, %12
store double %13, double* %5
store double -1.000000e+05, double* %2
br label %14
14: ; preds = %23, %0
%15 = load double, double* %2
%16 = fcmp ole double %15, 1.000000e+05
br i1 %16, label %17, label %26
17: ; preds = %14
%18 = load double, double* %4
%19 = fsub double 1.000000e+05, %18
store double %19, double* %5
%20 = load double, double* %4
%21 = load double, double* %5
%22 = call i32 @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str, i64 0, i64 0), double %20, double %21)
br label %23
23: ; preds = %17
%24 = load double, double* %2
%25 = fadd double %24, 1.000000e+00
store double %25, double* %2
br label %14
26: ; preds = %14
%27 = load i32, i32* %1
ret i32 %27
}

LLVM IR (-O2):
@.str = [26 x i8] c"Solution : a: %lf b: %lf\0A\00"
define i32 @main() {
br label %1
1: ; preds = %0, %1
%2 = phi i32 [ -100000, %0 ], [ %4, %1 ]
%3 = tail call i32 @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str, i64 0, i64 0), double undef, double 0x7FF8000000000000)
%4 = add nsw i32 %2, 1
%5 = icmp eq i32 %4, 100001
br i1 %5, label %6, label %1
6: ; preds = %1
ret i32 0
}