#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 float_interval(int, int);
int main(int N) {
  double S, S0, S1, E, E0, E1;
  int i, j;
  S = 0.0;
  S0 = 0.0;
  S1 = 0.0;
  E = 0.125;
  E0 = -0.25;
  E1 = 0.5;
  N = 20;
  for (i = 1; i < N; i++) {
    E = float_interval(-1, 1);
    E1 = E0;
    E0 = E;
    S1 = S0;
    S0 = S;
    S = 0.7 * E - 1.3 * E0 + 1.1 * E1 + 1.4 * S0 - 0.7 * S1;
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x10(%rbp)
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x18(%rbp)
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x20(%rbp)
movsd  0xece(%rip),%xmm0
movsd  %xmm0,-0x28(%rbp)
movsd  0xeb9(%rip),%xmm0
movsd  %xmm0,-0x30(%rbp)
movsd  0xea4(%rip),%xmm0
movsd  %xmm0,-0x38(%rbp)
movl   $0x14,-0x8(%rbp)
movl   $0x1,-0x3c(%rbp)
mov    -0x3c(%rbp),%eax
cmp    -0x8(%rbp),%eax
jge    1242 <main+0x132>
mov    $0xffffffff,%edi
mov    $0x1,%esi
call   1030 <float_interval@plt>
movsd  %xmm0,-0x28(%rbp)
movsd  -0x30(%rbp),%xmm0
movsd  %xmm0,-0x38(%rbp)
movsd  -0x28(%rbp),%xmm0
movsd  %xmm0,-0x30(%rbp)
movsd  -0x18(%rbp),%xmm0
movsd  %xmm0,-0x20(%rbp)
movsd  -0x10(%rbp),%xmm0
movsd  %xmm0,-0x18(%rbp)
movsd  -0x28(%rbp),%xmm1
movsd  0xe74(%rip),%xmm0
mulsd  -0x30(%rbp),%xmm0
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
movsd  0xe48(%rip),%xmm2
mulsd  %xmm2,%xmm1
addsd  %xmm0,%xmm1
movsd  -0x38(%rbp),%xmm0
movsd  0xe2b(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  -0x18(%rbp),%xmm1
movsd  0xe0e(%rip),%xmm2
mulsd  %xmm2,%xmm1
addsd  %xmm0,%xmm1
movsd  -0x20(%rbp),%xmm0
movsd  0xdf1(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x10(%rbp)
mov    -0x3c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x3c(%rbp)
jmp    116f <main+0x5f>
xor    %eax,%eax
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
mov    $0xffffffff,%edi
mov    $0x1,%esi
call   1030 <float_interval@plt>
mov    $0xffffffff,%edi
mov    $0x1,%esi
call   1030 <float_interval@plt>
mov    $0xffffffff,%edi
mov    $0x1,%esi
call   1030 <float_interval@plt>
mov    $0xffffffff,%edi
mov    $0x1,%esi
call   1030 <float_interval@plt>
mov    $0xffffffff,%edi
mov    $0x1,%esi
call   1030 <float_interval@plt>
mov    $0xffffffff,%edi
mov    $0x1,%esi
call   1030 <float_interval@plt>
mov    $0xffffffff,%edi
mov    $0x1,%esi
call   1030 <float_interval@plt>
mov    $0xffffffff,%edi
mov    $0x1,%esi
call   1030 <float_interval@plt>
mov    $0xffffffff,%edi
mov    $0x1,%esi
call   1030 <float_interval@plt>
mov    $0xffffffff,%edi
mov    $0x1,%esi
call   1030 <float_interval@plt>
mov    $0xffffffff,%edi
mov    $0x1,%esi
call   1030 <float_interval@plt>
mov    $0xffffffff,%edi
mov    $0x1,%esi
call   1030 <float_interval@plt>
mov    $0xffffffff,%edi
mov    $0x1,%esi
call   1030 <float_interval@plt>
mov    $0xffffffff,%edi
mov    $0x1,%esi
call   1030 <float_interval@plt>
mov    $0xffffffff,%edi
mov    $0x1,%esi
call   1030 <float_interval@plt>
mov    $0xffffffff,%edi
mov    $0x1,%esi
call   1030 <float_interval@plt>
mov    $0xffffffff,%edi
mov    $0x1,%esi
call   1030 <float_interval@plt>
mov    $0xffffffff,%edi
mov    $0x1,%esi
call   1030 <float_interval@plt>
mov    $0xffffffff,%edi
mov    $0x1,%esi
call   1030 <float_interval@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
define i32 @main(i32 %0) {
%2 = alloca i32
%3 = alloca i32
%4 = alloca double
%5 = alloca double
%6 = alloca double
%7 = alloca double
%8 = alloca double
%9 = alloca double
%10 = alloca i32
%11 = alloca i32
store i32 0, i32* %2
store i32 %0, i32* %3
store double 0.000000e+00, double* %4
store double 0.000000e+00, double* %5
store double 0.000000e+00, double* %6
store double 1.250000e-01, double* %7
store double -2.500000e-01, double* %8
store double 5.000000e-01, double* %9
store i32 20, i32* %3
store i32 1, i32* %10
br label %12
12: ; preds = %33, %1
%13 = load i32, i32* %10
%14 = load i32, i32* %3
%15 = icmp slt i32 %13, %14
br i1 %15, label %16, label %36
16: ; preds = %12
%17 = call double @float_interval(i32 -1, i32 1)
store double %17, double* %7
%18 = load double, double* %8
store double %18, double* %9
%19 = load double, double* %7
store double %19, double* %8
%20 = load double, double* %5
store double %20, double* %6
%21 = load double, double* %4
store double %21, double* %5
%22 = load double, double* %7
%23 = load double, double* %8
%24 = fmul double 1.300000e+00, %23
%25 = fneg double %24
%26 = call double @llvm.fmuladd.f64(double 0x3FE6666666666666, double %22, double %25)
%27 = load double, double* %9
%28 = call double @llvm.fmuladd.f64(double 1.100000e+00, double %27, double %26)
%29 = load double, double* %5
%30 = call double @llvm.fmuladd.f64(double 1.400000e+00, double %29, double %28)
%31 = load double, double* %6
%32 = call double @llvm.fmuladd.f64(double 0xBFE6666666666666, double %31, double %30)
store double %32, double* %4
br label %33
33: ; preds = %16
%34 = load i32, i32* %10
%35 = add nsw i32 %34, 1
store i32 %35, i32* %10
br label %12
36: ; preds = %12
ret i32 0
}

LLVM IR (-O2):
define i32 @main(i32 %0) {
%2 = tail call double @float_interval(i32 -1, i32 1)
%3 = tail call double @float_interval(i32 -1, i32 1)
%4 = tail call double @float_interval(i32 -1, i32 1)
%5 = tail call double @float_interval(i32 -1, i32 1)
%6 = tail call double @float_interval(i32 -1, i32 1)
%7 = tail call double @float_interval(i32 -1, i32 1)
%8 = tail call double @float_interval(i32 -1, i32 1)
%9 = tail call double @float_interval(i32 -1, i32 1)
%10 = tail call double @float_interval(i32 -1, i32 1)
%11 = tail call double @float_interval(i32 -1, i32 1)
%12 = tail call double @float_interval(i32 -1, i32 1)
%13 = tail call double @float_interval(i32 -1, i32 1)
%14 = tail call double @float_interval(i32 -1, i32 1)
%15 = tail call double @float_interval(i32 -1, i32 1)
%16 = tail call double @float_interval(i32 -1, i32 1)
%17 = tail call double @float_interval(i32 -1, i32 1)
%18 = tail call double @float_interval(i32 -1, i32 1)
%19 = tail call double @float_interval(i32 -1, i32 1)
%20 = tail call double @float_interval(i32 -1, i32 1)
ret i32 0
}