#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 */
double fabs(float);
int /*<<< orphan*/ printf(char *, ...);
int main(void) {
  float x, y, a, b, c, d, e, f, dx, dy;
  int i;
  x = 1;
  y = 0.1;
  i = 0;
  printf("Iter.\t  x\t\ty\t\tdx\t\tdy\n");
  do {
    a = (2 * x + y);
    b = x;
    c = (3 * y * y);
    d = (1 + 6 * x * y);
    e = (x * x + x * y - 10);
    f = (y + 3 * x * y * y - 57);
    ;
    dx = (b * f - e * d) / (b * c - a * d);
    dy = (c * e - a * f) / (b * c - a * d);
    x -= dx;
    y -= dy;
    printf("%d\t%f\t%f\t%f\t%f\n", i, x, y, dx, dy);
    i++;
  } while ((fabs(dx) > fabs(dy)) ? fabs(dx) : fabs(dy) >= 0.000005);
  printf("\n\nThe solutions are: x = %f & y = %f .\n", x, y);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
movl   $0x0,-0x4(%rbp)
movss  0xecd(%rip),%xmm0
movss  %xmm0,-0x8(%rbp)
movss  0xebc(%rip),%xmm0
movss  %xmm0,-0xc(%rbp)
movl   $0x0,-0x30(%rbp)
lea    0xec9(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movss  -0x8(%rbp),%xmm0
movss  -0xc(%rbp),%xmm1
addss  %xmm0,%xmm0
addss  %xmm1,%xmm0
movss  %xmm0,-0x10(%rbp)
movss  -0x8(%rbp),%xmm0
movss  %xmm0,-0x14(%rbp)
movss  0xe85(%rip),%xmm0
mulss  -0xc(%rbp),%xmm0
mulss  -0xc(%rbp),%xmm0
movss  %xmm0,-0x18(%rbp)
movss  0xe76(%rip),%xmm0
mulss  -0x8(%rbp),%xmm0
movss  -0xc(%rbp),%xmm1
mulss  %xmm1,%xmm0
movss  0xe50(%rip),%xmm1
addss  %xmm1,%xmm0
movss  %xmm0,-0x1c(%rbp)
movss  -0x8(%rbp),%xmm0
movss  -0x8(%rbp),%xmm2
movss  -0x8(%rbp),%xmm1
mulss  -0xc(%rbp),%xmm1
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
movss  0xe2f(%rip),%xmm1
subss  %xmm1,%xmm0
movss  %xmm0,-0x20(%rbp)
movss  -0xc(%rbp),%xmm1
movss  0xe15(%rip),%xmm0
mulss  -0x8(%rbp),%xmm0
mulss  -0xc(%rbp),%xmm0
movss  -0xc(%rbp),%xmm2
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
movss  0xdf2(%rip),%xmm1
subss  %xmm1,%xmm0
movss  %xmm0,-0x24(%rbp)
movss  -0x14(%rbp),%xmm0
movss  -0x24(%rbp),%xmm2
movss  -0x20(%rbp),%xmm1
mulss  -0x1c(%rbp),%xmm1
movd   %xmm1,%eax
xor    $0x80000000,%eax
movd   %eax,%xmm1
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
movss  -0x14(%rbp),%xmm1
movss  -0x18(%rbp),%xmm3
movss  -0x10(%rbp),%xmm2
mulss  -0x1c(%rbp),%xmm2
movd   %xmm2,%eax
xor    $0x80000000,%eax
movd   %eax,%xmm2
mulss  %xmm3,%xmm1
addss  %xmm2,%xmm1
divss  %xmm1,%xmm0
movss  %xmm0,-0x28(%rbp)
movss  -0x18(%rbp),%xmm0
movss  -0x20(%rbp),%xmm2
movss  -0x10(%rbp),%xmm1
mulss  -0x24(%rbp),%xmm1
movd   %xmm1,%eax
xor    $0x80000000,%eax
movd   %eax,%xmm1
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
movss  -0x14(%rbp),%xmm1
movss  -0x18(%rbp),%xmm3
movss  -0x10(%rbp),%xmm2
mulss  -0x1c(%rbp),%xmm2
movd   %xmm2,%eax
xor    $0x80000000,%eax
movd   %eax,%xmm2
mulss  %xmm3,%xmm1
addss  %xmm2,%xmm1
divss  %xmm1,%xmm0
movss  %xmm0,-0x2c(%rbp)
movss  -0x28(%rbp),%xmm1
movss  -0x8(%rbp),%xmm0
subss  %xmm1,%xmm0
movss  %xmm0,-0x8(%rbp)
movss  -0x2c(%rbp),%xmm1
movss  -0xc(%rbp),%xmm0
subss  %xmm1,%xmm0
movss  %xmm0,-0xc(%rbp)
mov    -0x30(%rbp),%esi
movss  -0x8(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
movss  -0xc(%rbp),%xmm1
cvtss2sd %xmm1,%xmm1
movss  -0x28(%rbp),%xmm2
cvtss2sd %xmm2,%xmm2
movss  -0x2c(%rbp),%xmm3
cvtss2sd %xmm3,%xmm3
lea    0xd0d(%rip),%rdi
mov    $0x4,%al
call   1030 <printf@plt>
mov    -0x30(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x30(%rbp)
movss  -0x28(%rbp),%xmm0
call   1040 <fabs@plt>
movsd  %xmm0,-0x38(%rbp)
movss  -0x2c(%rbp),%xmm0
call   1040 <fabs@plt>
movaps %xmm0,%xmm1
movsd  -0x38(%rbp),%xmm0
ucomisd %xmm1,%xmm0
jbe    1378 <main+0x258>
movss  -0x28(%rbp),%xmm0
call   1040 <fabs@plt>
movsd  %xmm0,-0x40(%rbp)
jmp    139f <main+0x27f>
movss  -0x2c(%rbp),%xmm0
call   1040 <fabs@plt>
movsd  0xc8e(%rip),%xmm1
ucomisd %xmm1,%xmm0
setae  %al
and    $0x1,%al
movzbl %al,%eax
cvtsi2sd %eax,%xmm0
movsd  %xmm0,-0x40(%rbp)
movsd  -0x40(%rbp),%xmm0
xorps  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jne    115e <main+0x3e>
jp     115e <main+0x3e>
movss  -0x8(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
movss  -0xc(%rbp),%xmm1
cvtss2sd %xmm1,%xmm1
lea    0xc76(%rip),%rdi
mov    $0x2,%al
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r14
push   %rbx
sub    $0x58,%rsp
lea    0xf52(%rip),%rdi
call   1030 <puts@plt>
movaps 0xeb6(%rip),%xmm7
xor    %ebx,%ebx
lea    0xf05(%rip),%r14
jmp    11a0 <main+0x70>
cs nopw 0x0(%rax,%rax,1)
nop
movapd 0x40(%rsp),%xmm0
call   1050 <fabs@plt>
movapd %xmm0,%xmm1
movsd  0xec9(%rip),%xmm0
cmplesd %xmm1,%xmm0
movsd  0xec4(%rip),%xmm1
andpd  %xmm1,%xmm0
movaps 0x20(%rsp),%xmm7
add    $0x1,%ebx
ucomisd 0xeb8(%rip),%xmm0
jne    11a0 <main+0x70>
jnp    12ce <main+0x19e>
movaps %xmm7,%xmm3
shufps $0x55,%xmm7,%xmm3
movaps %xmm7,%xmm1
movss  0xe7e(%rip),%xmm6
mulss  %xmm6,%xmm1
movaps %xmm7,%xmm0
mulss  %xmm1,%xmm0
movaps %xmm3,%xmm2
movaps %xmm7,%xmm4
mulss  %xmm3,%xmm4
movaps %xmm3,%xmm5
mulss  %xmm3,%xmm0
addss  %xmm3,%xmm3
addss  %xmm7,%xmm3
mulss  0xe56(%rip),%xmm2
mulss  %xmm7,%xmm2
addss  0xe4e(%rip),%xmm2
mulss  %xmm6,%xmm5
mulss  %xmm7,%xmm5
shufps $0xd4,%xmm7,%xmm5
shufps $0x52,%xmm7,%xmm5
movaps %xmm7,%xmm6
shufps $0x51,%xmm7,%xmm6
mulps  %xmm5,%xmm6
unpcklps %xmm7,%xmm4
addps  %xmm6,%xmm4
addps  0xdff(%rip),%xmm4
movaps %xmm3,%xmm5
unpcklps %xmm4,%xmm5
xorps  0xe02(%rip),%xmm3
mulss  %xmm2,%xmm3
addss  %xmm3,%xmm0
shufps $0xd4,%xmm4,%xmm2
shufps $0x52,%xmm4,%xmm2
mulps  %xmm5,%xmm2
movaps %xmm7,%xmm5
mulss  %xmm1,%xmm5
mulps  %xmm4,%xmm5
subps  %xmm2,%xmm5
shufps $0x0,%xmm0,%xmm0
divps  %xmm0,%xmm5
movaps %xmm5,0x40(%rsp)
subps  %xmm5,%xmm7
movaps %xmm7,%xmm0
shufps $0x55,%xmm7,%xmm0
cvtss2sd %xmm0,%xmm0
movaps %xmm7,0x20(%rsp)
xorps  %xmm1,%xmm1
cvtss2sd %xmm7,%xmm1
movaps %xmm5,%xmm2
shufps $0x55,%xmm5,%xmm2
movaps %xmm2,0x30(%rsp)
cvtss2sd %xmm2,%xmm2
xorps  %xmm3,%xmm3
cvtss2sd %xmm5,%xmm3
mov    %r14,%rdi
mov    %ebx,%esi
movsd  %xmm0,0x10(%rsp)
movsd  %xmm1,0x8(%rsp)
mov    $0x4,%al
call   1040 <printf@plt>
movaps 0x30(%rsp),%xmm0
call   1050 <fabs@plt>
movsd  %xmm0,0x18(%rsp)
movapd 0x40(%rsp),%xmm0
call   1050 <fabs@plt>
movsd  0x18(%rsp),%xmm1
ucomisd %xmm0,%xmm1
jbe    1160 <main+0x30>
movapd 0x30(%rsp),%xmm0
call   1050 <fabs@plt>
jmp    1188 <main+0x58>
lea    0xd93(%rip),%rdi
movsd  0x10(%rsp),%xmm0
movsd  0x8(%rsp),%xmm1
mov    $0x2,%al
call   1040 <printf@plt>
xor    %eax,%eax
add    $0x58,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
@.str = [22 x i8] c"Iter.\09 x\09\09y\09\09dx\09\09dy\0A\00"
@.str.1 = [16 x i8] c"%d\09%f\09%f\09%f\09%f\0A\00"
@.str.2 = [40 x i8] c"\0A\0AThe solutions are: x = %f & y = %f .\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca float
%3 = alloca float
%4 = alloca float
%5 = alloca float
%6 = alloca float
%7 = alloca float
%8 = alloca float
%9 = alloca float
%10 = alloca float
%11 = alloca float
%12 = alloca i32
store i32 0, i32* %1
store float 1.000000e+00, float* %2
store float 0x3FB99999A0000000, float* %3
store i32 0, i32* %12
%13 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str, i64 0, i64 0))
br label %14
14: ; preds = %105, %0
%15 = load float, float* %2
%16 = load float, float* %3
%17 = call float @llvm.fmuladd.f32(float 2.000000e+00, float %15, float %16)
store float %17, float* %4
%18 = load float, float* %2
store float %18, float* %5
%19 = load float, float* %3
%20 = fmul float 3.000000e+00, %19
%21 = load float, float* %3
%22 = fmul float %20, %21
store float %22, float* %6
%23 = load float, float* %2
%24 = fmul float 6.000000e+00, %23
%25 = load float, float* %3
%26 = call float @llvm.fmuladd.f32(float %24, float %25, float 1.000000e+00)
store float %26, float* %7
%27 = load float, float* %2
%28 = load float, float* %2
%29 = load float, float* %2
%30 = load float, float* %3
%31 = fmul float %29, %30
%32 = call float @llvm.fmuladd.f32(float %27, float %28, float %31)
%33 = fsub float %32, 1.000000e+01
store float %33, float* %8
%34 = load float, float* %3
%35 = load float, float* %2
%36 = fmul float 3.000000e+00, %35
%37 = load float, float* %3
%38 = fmul float %36, %37
%39 = load float, float* %3
%40 = call float @llvm.fmuladd.f32(float %38, float %39, float %34)
%41 = fsub float %40, 5.700000e+01
store float %41, float* %9
%42 = load float, float* %5
%43 = load float, float* %9
%44 = load float, float* %8
%45 = load float, float* %7
%46 = fmul float %44, %45
%47 = fneg float %46
%48 = call float @llvm.fmuladd.f32(float %42, float %43, float %47)
%49 = load float, float* %5
%50 = load float, float* %6
%51 = load float, float* %4
%52 = load float, float* %7
%53 = fmul float %51, %52
%54 = fneg float %53
%55 = call float @llvm.fmuladd.f32(float %49, float %50, float %54)
%56 = fdiv float %48, %55
store float %56, float* %10
%57 = load float, float* %6
%58 = load float, float* %8
%59 = load float, float* %4
%60 = load float, float* %9
%61 = fmul float %59, %60
%62 = fneg float %61
%63 = call float @llvm.fmuladd.f32(float %57, float %58, float %62)
%64 = load float, float* %5
%65 = load float, float* %6
%66 = load float, float* %4
%67 = load float, float* %7
%68 = fmul float %66, %67
%69 = fneg float %68
%70 = call float @llvm.fmuladd.f32(float %64, float %65, float %69)
%71 = fdiv float %63, %70
store float %71, float* %11
%72 = load float, float* %10
%73 = load float, float* %2
%74 = fsub float %73, %72
store float %74, float* %2
%75 = load float, float* %11
%76 = load float, float* %3
%77 = fsub float %76, %75
store float %77, float* %3
%78 = load i32, i32* %12
%79 = load float, float* %2
%80 = fpext float %79 to double
%81 = load float, float* %3
%82 = fpext float %81 to double
%83 = load float, float* %10
%84 = fpext float %83 to double
%85 = load float, float* %11
%86 = fpext float %85 to double
%87 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.1, i64 0, i64 0), i32 %78, double %80, double %82, double %84, double %86)
%88 = load i32, i32* %12
%89 = add nsw i32 %88, 1
store i32 %89, i32* %12
br label %90
90: ; preds = %14
%91 = load float, float* %10
%92 = call double @fabs(float %91)
%93 = load float, float* %11
%94 = call double @fabs(float %93)
%95 = fcmp ogt double %92, %94
br i1 %95, label %96, label %99
96: ; preds = %90
%97 = load float, float* %10
%98 = call double @fabs(float %97)
br label %105
99: ; preds = %90
%100 = load float, float* %11
%101 = call double @fabs(float %100)
%102 = fcmp oge double %101, 5.000000e-06
%103 = zext i1 %102 to i32
%104 = sitofp i32 %103 to double
br label %105
105: ; preds = %99, %96
%106 = phi double [ %98, %96 ], [ %104, %99 ]
%107 = fcmp une double %106, 0.000000e+00
br i1 %107, label %14, label %108
108: ; preds = %105
%109 = load float, float* %2
%110 = fpext float %109 to double
%111 = load float, float* %3
%112 = fpext float %111 to double
%113 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.2, i64 0, i64 0), double %110, double %112)
ret i32 0
}

LLVM IR (-O2):
@.str.1 = [16 x i8] c"%d\09%f\09%f\09%f\09%f\0A\00"
@.str.2 = [40 x i8] c"\0A\0AThe solutions are: x = %f & y = %f .\0A\00"
@str = [21 x i8] c"Iter.\09 x\09\09y\09\09dx\09\09dy\00"
define i32 @main() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([21 x i8], [21 x i8]* @str, i64 0, i64 0))
br label %2
2: ; preds = %57, %0
%3 = phi i32 [ 0, %0 ], [ %47, %57 ]
%4 = phi <2 x float> [ <float 0x3FB99999A0000000, float 1.000000e+00>, %0 ], [ %37, %57 ]
%5 = extractelement <2 x float> %4, i64 0
%6 = extractelement <2 x float> %4, i64 1
%7 = tail call float @llvm.fmuladd.f32(float %6, float 2.000000e+00, float %5)
%8 = fmul float %5, 3.000000e+00
%9 = fmul float %5, %8
%10 = fmul float %6, 6.000000e+00
%11 = tail call float @llvm.fmuladd.f32(float %10, float %5, float 1.000000e+00)
%12 = fmul float %5, %6
%13 = fmul float %6, 3.000000e+00
%14 = fmul float %5, %13
%15 = shufflevector <2 x float> %4, <2 x float> undef, <2 x i32> <i32 1, i32 undef>
%16 = insertelement <2 x float> %15, float %14, i64 1
%17 = shufflevector <2 x float> %15, <2 x float> %4, <2 x i32> <i32 0, i32 2>
%18 = insertelement <2 x float> poison, float %12, i64 0
%19 = shufflevector <2 x float> %18, <2 x float> %4, <2 x i32> <i32 0, i32 2>
%20 = call <2 x float> @llvm.fmuladd.v2f32(<2 x float> %16, <2 x float> %17, <2 x float> %19)
%21 = fadd <2 x float> %20, <float -1.000000e+01, float -5.700000e+01>
%22 = insertelement <2 x float> poison, float %7, i64 0
%23 = shufflevector <2 x float> %22, <2 x float> %21, <2 x i32> <i32 0, i32 2>
%24 = fneg <2 x float> %23
%25 = extractelement <2 x float> %24, i64 0
%26 = fmul float %11, %25
%27 = tail call float @llvm.fmuladd.f32(float %6, float %9, float %26)
%28 = extractelement <2 x float> %21, i64 1
%29 = insertelement <2 x float> poison, float %28, i64 0
%30 = insertelement <2 x float> %29, float %11, i64 1
%31 = fmul <2 x float> %30, %24
%32 = insertelement <2 x float> %4, float %9, i64 0
%33 = call <2 x float> @llvm.fmuladd.v2f32(<2 x float> %32, <2 x float> %21, <2 x float> %31)
%34 = insertelement <2 x float> poison, float %27, i64 0
%35 = shufflevector <2 x float> %34, <2 x float> poison, <2 x i32> zeroinitializer
%36 = fdiv <2 x float> %33, %35
%37 = fsub <2 x float> %4, %36
%38 = extractelement <2 x float> %37, i64 1
%39 = fpext float %38 to double
%40 = extractelement <2 x float> %37, i64 0
%41 = fpext float %40 to double
%42 = extractelement <2 x float> %36, i64 1
%43 = fpext float %42 to double
%44 = extractelement <2 x float> %36, i64 0
%45 = fpext float %44 to double
%46 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @.str.1, i64 0, i64 0), i32 %3, double %39, double %41, double %43, double %45)
%47 = add nuw nsw i32 %3, 1
%48 = tail call double @fabs(float %42)
%49 = tail call double @fabs(float %44)
%50 = fcmp ogt double %48, %49
br i1 %50, label %51, label %53
51: ; preds = %2
%52 = tail call double @fabs(float %42)
br label %57
53: ; preds = %2
%54 = tail call double @fabs(float %44)
%55 = fcmp oge double %54, 5.000000e-06
%56 = uitofp i1 %55 to double
br label %57
57: ; preds = %53, %51
%58 = phi double [ %52, %51 ], [ %56, %53 ]
%59 = fcmp une double %58, 0.000000e+00
br i1 %59, label %2, label %60
60: ; preds = %57
%61 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([40 x i8], [40 x i8]* @.str.2, i64 0, i64 0), double %39, double %41)
ret i32 0
}