#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(double, double);
int main() {
  double S, S0, S1, E, E0, E1;
  while (1) {
    E1 = E0;
    E0 = E;
    E = float_interval(-1.0, 1.0);
    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    $0x90,%rsp
movl   $0x0,-0x4(%rbp)
movsd  -0x30(%rbp),%xmm0
movsd  %xmm0,-0x38(%rbp)
movsd  -0x28(%rbp),%xmm0
movsd  %xmm0,-0x30(%rbp)
movsd  0xeea(%rip),%xmm0
movsd  0xeea(%rip),%xmm1
call   1030 <float_interval@plt>
movsd  %xmm0,-0x28(%rbp)
movsd  -0x18(%rbp),%xmm0
movsd  %xmm0,-0x20(%rbp)
movsd  -0x10(%rbp),%xmm0
movsd  %xmm0,-0x18(%rbp)
movsd  -0x28(%rbp),%xmm1
movsd  0xeaf(%rip),%xmm0
mulsd  -0x30(%rbp),%xmm0
movsd  %xmm0,-0x88(%rbp)
ff
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
mov    %rax,-0x80(%rbp)
movq   %rax,%xmm0
movsd  0xe77(%rip),%xmm2
mulsd  %xmm2,%xmm1
movsd  %xmm1,-0x78(%rbp)
addsd  %xmm0,%xmm1
movsd  %xmm1,-0x70(%rbp)
movsd  -0x38(%rbp),%xmm0
movsd  0xe50(%rip),%xmm2
mulsd  %xmm2,%xmm0
movsd  %xmm0,-0x68(%rbp)
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x60(%rbp)
movsd  -0x18(%rbp),%xmm1
movsd  0xe29(%rip),%xmm2
mulsd  %xmm2,%xmm1
movsd  %xmm1,-0x58(%rbp)
addsd  %xmm0,%xmm1
movsd  %xmm1,-0x50(%rbp)
movsd  -0x20(%rbp),%xmm0
movsd  0xe02(%rip),%xmm2
mulsd  %xmm2,%xmm0
movsd  %xmm0,-0x48(%rbp)
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x40(%rbp)
movsd  %xmm0,-0x10(%rbp)
jmp    1122 <main+0x12>

x86 assembly (clang, -O2):
<main>:
push   %rax
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
movsd  0xed8(%rip),%xmm0
movsd  0xed8(%rip),%xmm1
call   1030 <float_interval@plt>
jmp    1120 <main+0x10>

LLVM IR (-O0):
define i32 @main() {
%1 = alloca i32
%2 = alloca double
%3 = alloca double
%4 = alloca double
%5 = alloca double
%6 = alloca double
%7 = alloca double
store i32 0, i32* %1
br label %8
8: ; preds = %0, %8
%9 = load double, double* %6
store double %9, double* %7
%10 = load double, double* %5
store double %10, double* %6
%11 = call double @float_interval(double -1.000000e+00, double 1.000000e+00)
store double %11, double* %5
%12 = load double, double* %3
store double %12, double* %4
%13 = load double, double* %2
store double %13, double* %3
%14 = load double, double* %5
%15 = load double, double* %6
%16 = fmul double 1.300000e+00, %15
%17 = fneg double %16
%18 = call double @llvm.fmuladd.f64(double 0x3FE6666666666666, double %14, double %17)
%19 = load double, double* %7
%20 = call double @llvm.fmuladd.f64(double 1.100000e+00, double %19, double %18)
%21 = load double, double* %3
%22 = call double @llvm.fmuladd.f64(double 1.400000e+00, double %21, double %20)
%23 = load double, double* %4
%24 = call double @llvm.fmuladd.f64(double 0xBFE6666666666666, double %23, double %22)
store double %24, double* %2
br label %8
}

LLVM IR (-O2):
define i32 @main() {
br label %1
1: ; preds = %1, %0
%2 = tail call double @float_interval(double -1.000000e+00, double 1.000000e+00)
br label %1
}