#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 Box1(double, double, double, double, double);
double Box2(double, double, double, double, double);
double Box3(double, double, double, double, double);
double C(double, double, double, double, double);
double IK(double, double, double, double, double, double, double, double);
double Rr(double, double, double, double, double, double);
double Tri(double, double, double, double, double);
double nlo1(double *vars) {
  double s = vars[0], s1 = vars[1], s2 = vars[2], t1 = vars[3], t2 = vars[4],
         np1 = vars[5], np2 = vars[6], EE = vars[7];
  double a, b1, b2, b3, tr, rr, cc, ik;
  b1 = Box1(s, s1, s2, t1, t2);
  b2 = Box2(s, s1, s2, t1, t2);
  b3 = Box3(s, s1, s2, t1, t2);
  tr = Tri(s, s1, s2, t1, t2);
  rr = Rr(s, s1, s2, t1, t2, EE);
  cc = C(s, s1, s2, t1, t2);
  ik = IK(s, s1, s2, t1, t2, EE, np1, np2);
  a = (b1 + b2 + b3 + tr + rr + cc + ik) / 4.;
  return a;
}


x86 assembly (clang, -O0):
<nlo1>:
push   %rbp
mov    %rsp,%rbp
sub    $0x90,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rax
movsd  (%rax),%xmm0
movsd  %xmm0,-0x10(%rbp)
mov    -0x8(%rbp),%rax
movsd  0x8(%rax),%xmm0
movsd  %xmm0,-0x18(%rbp)
mov    -0x8(%rbp),%rax
movsd  0x10(%rax),%xmm0
movsd  %xmm0,-0x20(%rbp)
mov    -0x8(%rbp),%rax
movsd  0x18(%rax),%xmm0
movsd  %xmm0,-0x28(%rbp)
mov    -0x8(%rbp),%rax
movsd  0x20(%rax),%xmm0
movsd  %xmm0,-0x30(%rbp)
mov    -0x8(%rbp),%rax
movsd  0x28(%rax),%xmm0
movsd  %xmm0,-0x38(%rbp)
mov    -0x8(%rbp),%rax
movsd  0x30(%rax),%xmm0
movsd  %xmm0,-0x40(%rbp)
mov    -0x8(%rbp),%rax
movsd  0x38(%rax),%xmm0
movsd  %xmm0,-0x48(%rbp)
movsd  -0x10(%rbp),%xmm0
movsd  -0x18(%rbp),%xmm1
movsd  -0x20(%rbp),%xmm2
movsd  -0x28(%rbp),%xmm3
movsd  -0x30(%rbp),%xmm4
call   1080 <Box1@plt>
movsd  %xmm0,-0x58(%rbp)
movsd  -0x10(%rbp),%xmm0
movsd  -0x18(%rbp),%xmm1
movsd  -0x20(%rbp),%xmm2
movsd  -0x28(%rbp),%xmm3
movsd  -0x30(%rbp),%xmm4
call   1040 <Box2@plt>
movsd  %xmm0,-0x60(%rbp)
movsd  -0x10(%rbp),%xmm0
movsd  -0x18(%rbp),%xmm1
movsd  -0x20(%rbp),%xmm2
movsd  -0x28(%rbp),%xmm3
movsd  -0x30(%rbp),%xmm4
call   1090 <Box3@plt>
movsd  %xmm0,-0x68(%rbp)
movsd  -0x10(%rbp),%xmm0
movsd  -0x18(%rbp),%xmm1
movsd  -0x20(%rbp),%xmm2
movsd  -0x28(%rbp),%xmm3
movsd  -0x30(%rbp),%xmm4
call   1070 <Tri@plt>
movsd  %xmm0,-0x70(%rbp)
movsd  -0x10(%rbp),%xmm0
movsd  -0x18(%rbp),%xmm1
movsd  -0x20(%rbp),%xmm2
movsd  -0x28(%rbp),%xmm3
movsd  -0x30(%rbp),%xmm4
movsd  -0x48(%rbp),%xmm5
call   1050 <Rr@plt>
movsd  %xmm0,-0x78(%rbp)
movsd  -0x10(%rbp),%xmm0
movsd  -0x18(%rbp),%xmm1
movsd  -0x20(%rbp),%xmm2
movsd  -0x28(%rbp),%xmm3
movsd  -0x30(%rbp),%xmm4
call   1060 <C@plt>
movsd  %xmm0,-0x80(%rbp)
movsd  -0x10(%rbp),%xmm0
movsd  -0x18(%rbp),%xmm1
movsd  -0x20(%rbp),%xmm2
movsd  -0x28(%rbp),%xmm3
movsd  -0x30(%rbp),%xmm4
movsd  -0x48(%rbp),%xmm5
movsd  -0x38(%rbp),%xmm6
movsd  -0x40(%rbp),%xmm7
call   1030 <IK@plt>
movsd  %xmm0,-0x88(%rbp)
ff
movsd  -0x58(%rbp),%xmm0
addsd  -0x60(%rbp),%xmm0
addsd  -0x68(%rbp),%xmm0
addsd  -0x70(%rbp),%xmm0
addsd  -0x78(%rbp),%xmm0
addsd  -0x80(%rbp),%xmm0
addsd  -0x88(%rbp),%xmm0
ff
movsd  0xcd8(%rip),%xmm1
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x50(%rbp)
movsd  -0x50(%rbp),%xmm0
add    $0x90,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<nlo1>:
sub    $0x78,%rsp
movsd  (%rdi),%xmm5
movsd  %xmm5,0x28(%rsp)
movsd  0x8(%rdi),%xmm1
movsd  %xmm1,0x20(%rsp)
movsd  0x10(%rdi),%xmm2
movsd  %xmm2,0x18(%rsp)
movsd  0x18(%rdi),%xmm3
movsd  %xmm3,0x10(%rsp)
movsd  0x20(%rdi),%xmm4
movsd  %xmm4,0x8(%rsp)
movsd  0x28(%rdi),%xmm0
movsd  %xmm0,0x70(%rsp)
movsd  0x30(%rdi),%xmm0
movsd  %xmm0,0x68(%rsp)
movsd  0x38(%rdi),%xmm0
movsd  %xmm0,0x30(%rsp)
movaps %xmm5,%xmm0
call   1080 <Box1@plt>
movsd  %xmm0,0x60(%rsp)
movsd  0x28(%rsp),%xmm0
movsd  0x20(%rsp),%xmm1
movsd  0x18(%rsp),%xmm2
movsd  0x10(%rsp),%xmm3
movsd  0x8(%rsp),%xmm4
call   1040 <Box2@plt>
movsd  %xmm0,0x58(%rsp)
movsd  0x28(%rsp),%xmm0
movsd  0x20(%rsp),%xmm1
movsd  0x18(%rsp),%xmm2
movsd  0x10(%rsp),%xmm3
movsd  0x8(%rsp),%xmm4
call   1090 <Box3@plt>
movsd  %xmm0,0x50(%rsp)
movsd  0x28(%rsp),%xmm0
movsd  0x20(%rsp),%xmm1
movsd  0x18(%rsp),%xmm2
movsd  0x10(%rsp),%xmm3
movsd  0x8(%rsp),%xmm4
call   1070 <Tri@plt>
movsd  %xmm0,0x48(%rsp)
movsd  0x28(%rsp),%xmm0
movsd  0x20(%rsp),%xmm1
movsd  0x18(%rsp),%xmm2
movsd  0x10(%rsp),%xmm3
movsd  0x8(%rsp),%xmm4
movsd  0x30(%rsp),%xmm5
call   1050 <Rr@plt>
movsd  %xmm0,0x40(%rsp)
movsd  0x28(%rsp),%xmm0
movsd  0x20(%rsp),%xmm1
movsd  0x18(%rsp),%xmm2
movsd  0x10(%rsp),%xmm3
movsd  0x8(%rsp),%xmm4
call   1060 <C@plt>
movsd  %xmm0,0x38(%rsp)
movsd  0x28(%rsp),%xmm0
movsd  0x20(%rsp),%xmm1
movsd  0x18(%rsp),%xmm2
movsd  0x10(%rsp),%xmm3
movsd  0x8(%rsp),%xmm4
movsd  0x30(%rsp),%xmm5
movsd  0x70(%rsp),%xmm6
movsd  0x68(%rsp),%xmm7
call   1030 <IK@plt>
movsd  0x58(%rsp),%xmm1
addsd  0x60(%rsp),%xmm1
addsd  0x50(%rsp),%xmm1
addsd  0x48(%rsp),%xmm1
addsd  0x40(%rsp),%xmm1
addsd  0x38(%rsp),%xmm1
addsd  %xmm1,%xmm0
mulsd  0xcef(%rip),%xmm0
add    $0x78,%rsp
ret

LLVM IR (-O0):
define double @nlo1(double* %0) {
%2 = alloca double*
%3 = alloca double
%4 = alloca double
%5 = alloca double
%6 = alloca double
%7 = alloca double
%8 = alloca double
%9 = alloca double
%10 = alloca double
%11 = alloca double
%12 = alloca double
%13 = alloca double
%14 = alloca double
%15 = alloca double
%16 = alloca double
%17 = alloca double
%18 = alloca double
store double* %0, double** %2
%19 = load double*, double** %2
%20 = getelementptr inbounds double, double* %19, i64 0
%21 = load double, double* %20
store double %21, double* %3
%22 = load double*, double** %2
%23 = getelementptr inbounds double, double* %22, i64 1
%24 = load double, double* %23
store double %24, double* %4
%25 = load double*, double** %2
%26 = getelementptr inbounds double, double* %25, i64 2
%27 = load double, double* %26
store double %27, double* %5
%28 = load double*, double** %2
%29 = getelementptr inbounds double, double* %28, i64 3
%30 = load double, double* %29
store double %30, double* %6
%31 = load double*, double** %2
%32 = getelementptr inbounds double, double* %31, i64 4
%33 = load double, double* %32
store double %33, double* %7
%34 = load double*, double** %2
%35 = getelementptr inbounds double, double* %34, i64 5
%36 = load double, double* %35
store double %36, double* %8
%37 = load double*, double** %2
%38 = getelementptr inbounds double, double* %37, i64 6
%39 = load double, double* %38
store double %39, double* %9
%40 = load double*, double** %2
%41 = getelementptr inbounds double, double* %40, i64 7
%42 = load double, double* %41
store double %42, double* %10
%43 = load double, double* %3
%44 = load double, double* %4
%45 = load double, double* %5
%46 = load double, double* %6
%47 = load double, double* %7
%48 = call double @Box1(double %43, double %44, double %45, double %46, double %47)
store double %48, double* %12
%49 = load double, double* %3
%50 = load double, double* %4
%51 = load double, double* %5
%52 = load double, double* %6
%53 = load double, double* %7
%54 = call double @Box2(double %49, double %50, double %51, double %52, double %53)
store double %54, double* %13
%55 = load double, double* %3
%56 = load double, double* %4
%57 = load double, double* %5
%58 = load double, double* %6
%59 = load double, double* %7
%60 = call double @Box3(double %55, double %56, double %57, double %58, double %59)
store double %60, double* %14
%61 = load double, double* %3
%62 = load double, double* %4
%63 = load double, double* %5
%64 = load double, double* %6
%65 = load double, double* %7
%66 = call double @Tri(double %61, double %62, double %63, double %64, double %65)
store double %66, double* %15
%67 = load double, double* %3
%68 = load double, double* %4
%69 = load double, double* %5
%70 = load double, double* %6
%71 = load double, double* %7
%72 = load double, double* %10
%73 = call double @Rr(double %67, double %68, double %69, double %70, double %71, double %72)
store double %73, double* %16
%74 = load double, double* %3
%75 = load double, double* %4
%76 = load double, double* %5
%77 = load double, double* %6
%78 = load double, double* %7
%79 = call double @C(double %74, double %75, double %76, double %77, double %78)
store double %79, double* %17
%80 = load double, double* %3
%81 = load double, double* %4
%82 = load double, double* %5
%83 = load double, double* %6
%84 = load double, double* %7
%85 = load double, double* %10
%86 = load double, double* %8
%87 = load double, double* %9
%88 = call double @IK(double %80, double %81, double %82, double %83, double %84, double %85, double %86, double %87)
store double %88, double* %18
%89 = load double, double* %12
%90 = load double, double* %13
%91 = fadd double %89, %90
%92 = load double, double* %14
%93 = fadd double %91, %92
%94 = load double, double* %15
%95 = fadd double %93, %94
%96 = load double, double* %16
%97 = fadd double %95, %96
%98 = load double, double* %17
%99 = fadd double %97, %98
%100 = load double, double* %18
%101 = fadd double %99, %100
%102 = fdiv double %101, 4.000000e+00
store double %102, double* %11
%103 = load double, double* %11
ret double %103
}

LLVM IR (-O2):
define double @nlo1(double* nocapture %0) {
%2 = load double, double* %0
%3 = getelementptr inbounds double, double* %0, i64 1
%4 = load double, double* %3
%5 = getelementptr inbounds double, double* %0, i64 2
%6 = load double, double* %5
%7 = getelementptr inbounds double, double* %0, i64 3
%8 = load double, double* %7
%9 = getelementptr inbounds double, double* %0, i64 4
%10 = load double, double* %9
%11 = getelementptr inbounds double, double* %0, i64 5
%12 = load double, double* %11
%13 = getelementptr inbounds double, double* %0, i64 6
%14 = load double, double* %13
%15 = getelementptr inbounds double, double* %0, i64 7
%16 = load double, double* %15
%17 = tail call double @Box1(double %2, double %4, double %6, double %8, double %10)
%18 = tail call double @Box2(double %2, double %4, double %6, double %8, double %10)
%19 = tail call double @Box3(double %2, double %4, double %6, double %8, double %10)
%20 = tail call double @Tri(double %2, double %4, double %6, double %8, double %10)
%21 = tail call double @Rr(double %2, double %4, double %6, double %8, double %10, double %16)
%22 = tail call double @C(double %2, double %4, double %6, double %8, double %10)
%23 = tail call double @IK(double %2, double %4, double %6, double %8, double %10, double %16, double %12, double %14)
%24 = fadd double %17, %18
%25 = fadd double %24, %19
%26 = fadd double %25, %20
%27 = fadd double %26, %21
%28 = fadd double %27, %22
%29 = fadd double %28, %23
%30 = fmul double %29, 2.500000e-01
ret double %30
}