#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 exp(double);
double sqrt(int);
int q8(int st) {
  double a = 80.26, b = -0.00107, c = 0.03009, d = -0.1185, q8;
  q8 = (a * exp((b * st) + (c * sqrt(st)))) + (d * st);
}


x86 assembly (clang, -O0):
<q8>:
push   %rbp
mov    %rsp,%rbp
sub    $0x50,%rsp
mov    %edi,-0x8(%rbp)
movsd  0xee5(%rip),%xmm0
movsd  %xmm0,-0x10(%rbp)
movsd  0xed0(%rip),%xmm0
movsd  %xmm0,-0x18(%rbp)
movsd  0xebb(%rip),%xmm0
movsd  %xmm0,-0x20(%rbp)
movsd  0xea6(%rip),%xmm0
movsd  %xmm0,-0x28(%rbp)
movsd  -0x10(%rbp),%xmm0
movsd  %xmm0,-0x38(%rbp)
movsd  -0x18(%rbp),%xmm0
movsd  %xmm0,-0x40(%rbp)
cvtsi2sdl -0x8(%rbp),%xmm0
movsd  %xmm0,-0x48(%rbp)
movsd  -0x20(%rbp),%xmm0
movsd  %xmm0,-0x50(%rbp)
mov    -0x8(%rbp),%edi
call   1040 <sqrt@plt>
movsd  -0x50(%rbp),%xmm1
movsd  -0x48(%rbp),%xmm2
movaps %xmm0,%xmm3
movsd  -0x40(%rbp),%xmm0
mulsd  %xmm3,%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
call   1030 <exp@plt>
movaps %xmm0,%xmm2
movsd  -0x38(%rbp),%xmm0
movsd  -0x28(%rbp),%xmm1
cvtsi2sdl -0x8(%rbp),%xmm3
mulsd  %xmm3,%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x30(%rbp)
mov    -0x4(%rbp),%eax
add    $0x50,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<q8>:
push   %rax
cvtsi2sd %edi,%xmm0
movsd  %xmm0,(%rsp)
call   1040 <sqrt@plt>
movsd  (%rsp),%xmm1
mulsd  0xec4(%rip),%xmm0
mulsd  0xec4(%rip),%xmm1
addsd  %xmm0,%xmm1
ucomisd 0xec0(%rip),%xmm1
ja     1162 <q8+0x42>
movsd  0xebe(%rip),%xmm0
ucomisd %xmm1,%xmm0
ja     1162 <q8+0x42>
pop    %rcx
ret
movapd %xmm1,%xmm0
call   1030 <exp@plt>
pop    %rcx
ret

LLVM IR (-O0):
define i32 @q8(i32 %0) {
%2 = alloca i32
%3 = alloca i32
%4 = alloca double
%5 = alloca double
%6 = alloca double
%7 = alloca double
%8 = alloca double
store i32 %0, i32* %3
store double 8.026000e+01, double* %4
store double -1.070000e-03, double* %5
store double 3.009000e-02, double* %6
store double -1.185000e-01, double* %7
%9 = load double, double* %4
%10 = load double, double* %5
%11 = load i32, i32* %3
%12 = sitofp i32 %11 to double
%13 = load double, double* %6
%14 = load i32, i32* %3
%15 = call double @sqrt(i32 %14)
%16 = fmul double %13, %15
%17 = call double @llvm.fmuladd.f64(double %10, double %12, double %16)
%18 = call double @exp(double %17)
%19 = load double, double* %7
%20 = load i32, i32* %3
%21 = sitofp i32 %20 to double
%22 = fmul double %19, %21
%23 = call double @llvm.fmuladd.f64(double %9, double %18, double %22)
store double %23, double* %8
%24 = load i32, i32* %2
ret i32 %24
}

LLVM IR (-O2):
define i32 @q8(i32 %0) {
%2 = sitofp i32 %0 to double
%3 = tail call double @sqrt(i32 %0)
%4 = fmul double %3, 3.009000e-02
%5 = tail call double @llvm.fmuladd.f64(double %2, double -1.070000e-03, double %4)
%6 = fcmp olt double %5, -7.450000e+02
%7 = fcmp ogt double %5, 7.090000e+02
%8 = or i1 %7, %6
br i1 %8, label %9, label %11
9: ; preds = %1
%10 = tail call double @exp(double %5)
br label %11
11: ; preds = %1, %9
ret i32 undef
}