#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*/ eplb(double *, double *, int *, double *, int, double,
                        double);
void eppInf(double *x, double *c, int *iter_step, double *v, int n, double rho,
            double c0) {
  int i, steps;
  eplb(x, c, &steps, v, n, rho, c0);
  for (i = 0; i < n; i++) {
    x[i] = v[i] - x[i];
  }
  iter_step[0] = steps;
  iter_step[1] = 0;
}


x86 assembly (clang, -O0):
<eppInf>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
mov    %r8d,-0x24(%rbp)
movsd  %xmm0,-0x30(%rbp)
movsd  %xmm1,-0x38(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
mov    -0x20(%rbp),%rcx
mov    -0x24(%rbp),%r8d
movsd  -0x30(%rbp),%xmm0
movsd  -0x38(%rbp),%xmm1
lea    -0x40(%rbp),%rdx
call   1030 <eplb@plt>
movl   $0x0,-0x3c(%rbp)
mov    -0x3c(%rbp),%eax
cmp    -0x24(%rbp),%eax
jge    11a1 <eppInf+0x91>
mov    -0x20(%rbp),%rax
movslq -0x3c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x8(%rbp),%rax
movslq -0x3c(%rbp),%rcx
subsd  (%rax,%rcx,8),%xmm0
mov    -0x8(%rbp),%rax
movslq -0x3c(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x3c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x3c(%rbp)
jmp    1160 <eppInf+0x50>
mov    -0x40(%rbp),%ecx
mov    -0x18(%rbp),%rax
mov    %ecx,(%rax)
mov    -0x18(%rbp),%rax
movl   $0x0,0x4(%rax)
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<eppInf>:
push   %rbp
push   %r15
push   %r14
push   %rbx
push   %rax
mov    %r8d,%ebp
mov    %rcx,%r15
mov    %rdx,%r14
mov    %rdi,%rbx
lea    0x4(%rsp),%rdx
call   1030 <eplb@plt>
test   %ebp,%ebp
jle    12bd <eppInf+0x1ad>
mov    %ebp,%eax
cmp    $0x4,%ebp
jb     1156 <eppInf+0x46>
lea    (%r15,%rax,8),%rcx
cmp    %rbx,%rcx
jbe    11f7 <eppInf+0xe7>
lea    (%rbx,%rax,8),%rcx
cmp    %r15,%rcx
jbe    11f7 <eppInf+0xe7>
xor    %ecx,%ecx
mov    %rcx,%rdx
not    %rdx
add    %rax,%rdx
mov    %rax,%rsi
and    $0x3,%rsi
je     118a <eppInf+0x7a>
nopw   0x0(%rax,%rax,1)
movsd  (%r15,%rcx,8),%xmm0
subsd  (%rbx,%rcx,8),%xmm0
movsd  %xmm0,(%rbx,%rcx,8)
add    $0x1,%rcx
add    $0xffffffffffffffff,%rsi
jne    1170 <eppInf+0x60>
cmp    $0x3,%rdx
jb     12bd <eppInf+0x1ad>
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
movsd  (%r15,%rcx,8),%xmm0
subsd  (%rbx,%rcx,8),%xmm0
movsd  %xmm0,(%rbx,%rcx,8)
movsd  0x8(%r15,%rcx,8),%xmm0
subsd  0x8(%rbx,%rcx,8),%xmm0
movsd  %xmm0,0x8(%rbx,%rcx,8)
movsd  0x10(%r15,%rcx,8),%xmm0
subsd  0x10(%rbx,%rcx,8),%xmm0
movsd  %xmm0,0x10(%rbx,%rcx,8)
movsd  0x18(%r15,%rcx,8),%xmm0
subsd  0x18(%rbx,%rcx,8),%xmm0
movsd  %xmm0,0x18(%rbx,%rcx,8)
add    $0x4,%rcx
cmp    %rcx,%rax
jne    11a0 <eppInf+0x90>
jmp    12bd <eppInf+0x1ad>
mov    %eax,%ecx
and    $0xfffffffc,%ecx
lea    -0x4(%rcx),%rdx
mov    %rdx,%rsi
shr    $0x2,%rsi
add    $0x1,%rsi
test   %rdx,%rdx
je     12d7 <eppInf+0x1c7>
mov    %rsi,%rdi
and    $0xfffffffffffffffe,%rdi
xor    %edx,%edx
nopl   (%rax)
movupd (%r15,%rdx,8),%xmm0
movupd 0x10(%r15,%rdx,8),%xmm1
movupd (%rbx,%rdx,8),%xmm2
subpd  %xmm2,%xmm0
movupd 0x10(%rbx,%rdx,8),%xmm2
subpd  %xmm2,%xmm1
movupd 0x20(%rbx,%rdx,8),%xmm2
movupd 0x30(%rbx,%rdx,8),%xmm3
movupd %xmm0,(%rbx,%rdx,8)
movupd %xmm1,0x10(%rbx,%rdx,8)
movupd 0x20(%r15,%rdx,8),%xmm0
subpd  %xmm2,%xmm0
movupd 0x30(%r15,%rdx,8),%xmm1
subpd  %xmm3,%xmm1
movupd %xmm0,0x20(%rbx,%rdx,8)
movupd %xmm1,0x30(%rbx,%rdx,8)
add    $0x8,%rdx
add    $0xfffffffffffffffe,%rdi
jne    1220 <eppInf+0x110>
test   $0x1,%sil
je     12b4 <eppInf+0x1a4>
movupd (%r15,%rdx,8),%xmm0
movupd 0x10(%r15,%rdx,8),%xmm1
movupd (%rbx,%rdx,8),%xmm2
subpd  %xmm2,%xmm0
movupd 0x10(%rbx,%rdx,8),%xmm2
subpd  %xmm2,%xmm1
movupd %xmm0,(%rbx,%rdx,8)
movupd %xmm1,0x10(%rbx,%rdx,8)
cmp    %rax,%rcx
jne    1158 <eppInf+0x48>
mov    0x4(%rsp),%eax
mov    %eax,(%r14)
movl   $0x0,0x4(%r14)
add    $0x8,%rsp
pop    %rbx
pop    %r14
pop    %r15
pop    %rbp
ret
xor    %edx,%edx
test   $0x1,%sil
jne    1289 <eppInf+0x179>
jmp    12b4 <eppInf+0x1a4>

LLVM IR (-O0):
define void @eppInf(double* %0, double* %1, i32* %2, double* %3, i32 %4, double %5, double %6) {
%8 = alloca double*
%9 = alloca double*
%10 = alloca i32*
%11 = alloca double*
%12 = alloca i32
%13 = alloca double
%14 = alloca double
%15 = alloca i32
%16 = alloca i32
store double* %0, double** %8
store double* %1, double** %9
store i32* %2, i32** %10
store double* %3, double** %11
store i32 %4, i32* %12
store double %5, double* %13
store double %6, double* %14
%17 = load double*, double** %8
%18 = load double*, double** %9
%19 = load double*, double** %11
%20 = load i32, i32* %12
%21 = load double, double* %13
%22 = load double, double* %14
%23 = call i32 @eplb(double* %17, double* %18, i32* %16, double* %19, i32 %20, double %21, double %22)
store i32 0, i32* %15
br label %24
24: ; preds = %44, %7
%25 = load i32, i32* %15
%26 = load i32, i32* %12
%27 = icmp slt i32 %25, %26
br i1 %27, label %28, label %47
28: ; preds = %24
%29 = load double*, double** %11
%30 = load i32, i32* %15
%31 = sext i32 %30 to i64
%32 = getelementptr inbounds double, double* %29, i64 %31
%33 = load double, double* %32
%34 = load double*, double** %8
%35 = load i32, i32* %15
%36 = sext i32 %35 to i64
%37 = getelementptr inbounds double, double* %34, i64 %36
%38 = load double, double* %37
%39 = fsub double %33, %38
%40 = load double*, double** %8
%41 = load i32, i32* %15
%42 = sext i32 %41 to i64
%43 = getelementptr inbounds double, double* %40, i64 %42
store double %39, double* %43
br label %44
44: ; preds = %28
%45 = load i32, i32* %15
%46 = add nsw i32 %45, 1
store i32 %46, i32* %15
br label %24
47: ; preds = %24
%48 = load i32, i32* %16
%49 = load i32*, i32** %10
%50 = getelementptr inbounds i32, i32* %49, i64 0
store i32 %48, i32* %50
%51 = load i32*, i32** %10
%52 = getelementptr inbounds i32, i32* %51, i64 1
store i32 0, i32* %52
ret void
}

LLVM IR (-O2):
define void @eppInf(double* %0, double* %1, i32* nocapture writeonly %2, double* %3, i32 %4, double %5, double %6) {
%8 = alloca i32
%9 = bitcast i32* %8 to i8*
%10 = call i32 @eplb(double* %0, double* %1, i32* %8, double* %3, i32 %4, double %5, double %6)
%11 = icmp sgt i32 %4, 0
br i1 %11, label %12, label %138
12: ; preds = %7
%13 = zext i32 %4 to i64
%14 = icmp ult i32 %4, 4
br i1 %14, label %91, label %15
15: ; preds = %12
%16 = getelementptr double, double* %0, i64 %13
%17 = getelementptr double, double* %3, i64 %13
%18 = icmp ugt double* %17, %0
%19 = icmp ugt double* %16, %3
%20 = and i1 %18, %19
br i1 %20, label %91, label %21
21: ; preds = %15
%22 = and i64 %13, 4294967292
%23 = add nsw i64 %22, -4
%24 = lshr exact i64 %23, 2
%25 = add nuw nsw i64 %24, 1
%26 = and i64 %25, 1
%27 = icmp eq i64 %23, 0
br i1 %27, label %69, label %28
28: ; preds = %21
%29 = and i64 %25, 9223372036854775806
br label %30
30: ; preds = %30, %28
%31 = phi i64 [ 0, %28 ], [ %66, %30 ]
%32 = phi i64 [ 0, %28 ], [ %67, %30 ]
%33 = getelementptr inbounds double, double* %3, i64 %31
%34 = bitcast double* %33 to <2 x double>*
%35 = load <2 x double>, <2 x double>* %34
%36 = getelementptr inbounds double, double* %33, i64 2
%37 = bitcast double* %36 to <2 x double>*
%38 = load <2 x double>, <2 x double>* %37
%39 = getelementptr inbounds double, double* %0, i64 %31
%40 = bitcast double* %39 to <2 x double>*
%41 = load <2 x double>, <2 x double>* %40
%42 = getelementptr inbounds double, double* %39, i64 2
%43 = bitcast double* %42 to <2 x double>*
%44 = load <2 x double>, <2 x double>* %43
%45 = fsub <2 x double> %35, %41
%46 = fsub <2 x double> %38, %44
%47 = bitcast double* %39 to <2 x double>*
store <2 x double> %45, <2 x double>* %47
%48 = bitcast double* %42 to <2 x double>*
store <2 x double> %46, <2 x double>* %48
%49 = or i64 %31, 4
%50 = getelementptr inbounds double, double* %3, i64 %49
%51 = bitcast double* %50 to <2 x double>*
%52 = load <2 x double>, <2 x double>* %51
%53 = getelementptr inbounds double, double* %50, i64 2
%54 = bitcast double* %53 to <2 x double>*
%55 = load <2 x double>, <2 x double>* %54
%56 = getelementptr inbounds double, double* %0, i64 %49
%57 = bitcast double* %56 to <2 x double>*
%58 = load <2 x double>, <2 x double>* %57
%59 = getelementptr inbounds double, double* %56, i64 2
%60 = bitcast double* %59 to <2 x double>*
%61 = load <2 x double>, <2 x double>* %60
%62 = fsub <2 x double> %52, %58
%63 = fsub <2 x double> %55, %61
%64 = bitcast double* %56 to <2 x double>*
store <2 x double> %62, <2 x double>* %64
%65 = bitcast double* %59 to <2 x double>*
store <2 x double> %63, <2 x double>* %65
%66 = add nuw i64 %31, 8
%67 = add i64 %32, 2
%68 = icmp eq i64 %67, %29
br i1 %68, label %69, label %30
69: ; preds = %30, %21
%70 = phi i64 [ 0, %21 ], [ %66, %30 ]
%71 = icmp eq i64 %26, 0
br i1 %71, label %89, label %72
72: ; preds = %69
%73 = getelementptr inbounds double, double* %3, i64 %70
%74 = bitcast double* %73 to <2 x double>*
%75 = load <2 x double>, <2 x double>* %74
%76 = getelementptr inbounds double, double* %73, i64 2
%77 = bitcast double* %76 to <2 x double>*
%78 = load <2 x double>, <2 x double>* %77
%79 = getelementptr inbounds double, double* %0, i64 %70
%80 = bitcast double* %79 to <2 x double>*
%81 = load <2 x double>, <2 x double>* %80
%82 = getelementptr inbounds double, double* %79, i64 2
%83 = bitcast double* %82 to <2 x double>*
%84 = load <2 x double>, <2 x double>* %83
%85 = fsub <2 x double> %75, %81
%86 = fsub <2 x double> %78, %84
%87 = bitcast double* %79 to <2 x double>*
store <2 x double> %85, <2 x double>* %87
%88 = bitcast double* %82 to <2 x double>*
store <2 x double> %86, <2 x double>* %88
br label %89
89: ; preds = %69, %72
%90 = icmp eq i64 %22, %13
br i1 %90, label %138, label %91
91: ; preds = %15, %12, %89
%92 = phi i64 [ 0, %15 ], [ 0, %12 ], [ %22, %89 ]
%93 = xor i64 %92, -1
%94 = add nsw i64 %93, %13
%95 = and i64 %13, 3
%96 = icmp eq i64 %95, 0
br i1 %96, label %108, label %97
97: ; preds = %91, %97
%98 = phi i64 [ %105, %97 ], [ %92, %91 ]
%99 = phi i64 [ %106, %97 ], [ 0, %91 ]
%100 = getelementptr inbounds double, double* %3, i64 %98
%101 = load double, double* %100
%102 = getelementptr inbounds double, double* %0, i64 %98
%103 = load double, double* %102
%104 = fsub double %101, %103
store double %104, double* %102
%105 = add nuw nsw i64 %98, 1
%106 = add i64 %99, 1
%107 = icmp eq i64 %106, %95
br i1 %107, label %108, label %97
108: ; preds = %97, %91
%109 = phi i64 [ %92, %91 ], [ %105, %97 ]
%110 = icmp ult i64 %94, 3
br i1 %110, label %138, label %111
111: ; preds = %108, %111
%112 = phi i64 [ %136, %111 ], [ %109, %108 ]
%113 = getelementptr inbounds double, double* %3, i64 %112
%114 = load double, double* %113
%115 = getelementptr inbounds double, double* %0, i64 %112
%116 = load double, double* %115
%117 = fsub double %114, %116
store double %117, double* %115
%118 = add nuw nsw i64 %112, 1
%119 = getelementptr inbounds double, double* %3, i64 %118
%120 = load double, double* %119
%121 = getelementptr inbounds double, double* %0, i64 %118
%122 = load double, double* %121
%123 = fsub double %120, %122
store double %123, double* %121
%124 = add nuw nsw i64 %112, 2
%125 = getelementptr inbounds double, double* %3, i64 %124
%126 = load double, double* %125
%127 = getelementptr inbounds double, double* %0, i64 %124
%128 = load double, double* %127
%129 = fsub double %126, %128
store double %129, double* %127
%130 = add nuw nsw i64 %112, 3
%131 = getelementptr inbounds double, double* %3, i64 %130
%132 = load double, double* %131
%133 = getelementptr inbounds double, double* %0, i64 %130
%134 = load double, double* %133
%135 = fsub double %132, %134
store double %135, double* %133
%136 = add nuw nsw i64 %112, 4
%137 = icmp eq i64 %136, %13
br i1 %137, label %138, label %111
138: ; preds = %108, %111, %89, %7
%139 = load i32, i32* %8
store i32 %139, i32* %2
%140 = getelementptr inbounds i32, i32* %2, i64 1
store i32 0, i32* %140
ret void
}