#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*/ assert(int);
double exp(double);
double gbs(int, double, double, double, double, double, double);
double Executive(int fCall, double S, double X, double T, double r, double b,
                 double v, double lambda) {
  assert(((S) == (S)) && (S) >= 0.000001 && (S) <= 1000000000000.0);
  assert(((X) == (X)) && (X) >= 0.000001 && (X) <= 1000000000000.0);
  assert(((T) == (T)) && (T) >= (1.0 / (253.0 * 24.0)) && (T) <= (20.0));
  return exp(-lambda * T) * gbs(fCall, S, X, T, r, b, v);
}


x86 assembly (clang, -O0):
<Executive>:
push   %rbp
mov    %rsp,%rbp
sub    $0x50,%rsp
mov    %edi,-0x4(%rbp)
movsd  %xmm0,-0x10(%rbp)
movsd  %xmm1,-0x18(%rbp)
movsd  %xmm2,-0x20(%rbp)
movsd  %xmm3,-0x28(%rbp)
movsd  %xmm4,-0x30(%rbp)
movsd  %xmm5,-0x38(%rbp)
movsd  %xmm6,-0x40(%rbp)
movsd  -0x10(%rbp),%xmm0
xor    %eax,%eax
ucomisd -0x10(%rbp),%xmm0
mov    %al,-0x41(%rbp)
jne    11a8 <Executive+0x78>
jp     11a8 <Executive+0x78>
movsd  -0x10(%rbp),%xmm0
xor    %eax,%eax
movsd  0xe78(%rip),%xmm1
ucomisd %xmm1,%xmm0
mov    %al,-0x41(%rbp)
jb     11a8 <Executive+0x78>
movsd  0xe6b(%rip),%xmm0
ucomisd -0x10(%rbp),%xmm0
setae  %al
mov    %al,-0x41(%rbp)
mov    -0x41(%rbp),%al
and    $0x1,%al
movzbl %al,%edi
call   1030 <assert@plt>
movsd  -0x18(%rbp),%xmm0
xor    %eax,%eax
ucomisd -0x18(%rbp),%xmm0
mov    %al,-0x42(%rbp)
jne    11ff <Executive+0xcf>
jp     11ff <Executive+0xcf>
movsd  -0x18(%rbp),%xmm0
xor    %eax,%eax
movsd  0xe21(%rip),%xmm1
ucomisd %xmm1,%xmm0
mov    %al,-0x42(%rbp)
jb     11ff <Executive+0xcf>
movsd  0xe14(%rip),%xmm0
ucomisd -0x18(%rbp),%xmm0
setae  %al
mov    %al,-0x42(%rbp)
mov    -0x42(%rbp),%al
and    $0x1,%al
movzbl %al,%edi
call   1030 <assert@plt>
movsd  -0x20(%rbp),%xmm0
xor    %eax,%eax
ucomisd -0x20(%rbp),%xmm0
mov    %al,-0x43(%rbp)
jne    1256 <Executive+0x126>
jp     1256 <Executive+0x126>
movsd  -0x20(%rbp),%xmm0
xor    %eax,%eax
movsd  0xdda(%rip),%xmm1
ucomisd %xmm1,%xmm0
mov    %al,-0x43(%rbp)
jb     1256 <Executive+0x126>
movsd  0xdcd(%rip),%xmm0
ucomisd -0x20(%rbp),%xmm0
setae  %al
mov    %al,-0x43(%rbp)
mov    -0x43(%rbp),%al
and    $0x1,%al
movzbl %al,%edi
call   1030 <assert@plt>
movsd  -0x40(%rbp),%xmm0
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  -0x20(%rbp),%xmm0
call   1040 <exp@plt>
movsd  %xmm0,-0x50(%rbp)
mov    -0x4(%rbp),%edi
movsd  -0x10(%rbp),%xmm0
movsd  -0x18(%rbp),%xmm1
movsd  -0x20(%rbp),%xmm2
movsd  -0x28(%rbp),%xmm3
movsd  -0x30(%rbp),%xmm4
movsd  -0x38(%rbp),%xmm5
call   1050 <gbs@plt>
movaps %xmm0,%xmm1
movsd  -0x50(%rbp),%xmm0
mulsd  %xmm1,%xmm0
add    $0x50,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<Executive>:
push   %rbx
sub    $0x40,%rsp
movsd  %xmm0,0x20(%rsp)
ucomisd %xmm0,%xmm0
setnp  %al
ucomisd 0xeb6(%rip),%xmm0
setae  %cl
and    %al,%cl
movsd  0xeb1(%rip),%xmm7
ucomisd %xmm0,%xmm7
movaps %xmm6,0x10(%rsp)
movsd  %xmm5,0x38(%rsp)
movsd  %xmm4,0x30(%rsp)
movsd  %xmm3,0x28(%rsp)
movsd  %xmm2,(%rsp)
movsd  %xmm1,0x8(%rsp)
mov    %edi,%ebx
setae  %al
and    %cl,%al
movzbl %al,%edi
call   1030 <assert@plt>
movsd  0x8(%rsp),%xmm0
ucomisd %xmm0,%xmm0
setnp  %al
ucomisd 0xe5f(%rip),%xmm0
setae  %cl
and    %al,%cl
movsd  0xe5a(%rip),%xmm1
ucomisd %xmm0,%xmm1
setae  %al
and    %cl,%al
movzbl %al,%edi
call   1030 <assert@plt>
movsd  (%rsp),%xmm1
ucomisd %xmm1,%xmm1
setnp  %al
ucomisd 0xe3d(%rip),%xmm1
setae  %cl
and    %al,%cl
movsd  0xe38(%rip),%xmm0
ucomisd %xmm1,%xmm0
setae  %al
and    %cl,%al
movzbl %al,%edi
call   1030 <assert@plt>
movapd 0x10(%rsp),%xmm0
xorpd  0xe21(%rip),%xmm0
mulsd  (%rsp),%xmm0
call   1040 <exp@plt>
movsd  %xmm0,0x10(%rsp)
mov    %ebx,%edi
movsd  0x20(%rsp),%xmm0
movsd  0x8(%rsp),%xmm1
movsd  (%rsp),%xmm2
movsd  0x28(%rsp),%xmm3
movsd  0x30(%rsp),%xmm4
movsd  0x38(%rsp),%xmm5
call   1050 <gbs@plt>
mulsd  0x10(%rsp),%xmm0
add    $0x40,%rsp
pop    %rbx
ret

LLVM IR (-O0):
define double @Executive(i32 %0, double %1, double %2, double %3, double %4, double %5, double %6, double %7) {
%9 = alloca i32
%10 = alloca double
%11 = alloca double
%12 = alloca double
%13 = alloca double
%14 = alloca double
%15 = alloca double
%16 = alloca double
store i32 %0, i32* %9
store double %1, double* %10
store double %2, double* %11
store double %3, double* %12
store double %4, double* %13
store double %5, double* %14
store double %6, double* %15
store double %7, double* %16
%17 = load double, double* %10
%18 = load double, double* %10
%19 = fcmp oeq double %17, %18
br i1 %19, label %20, label %26
20: ; preds = %8
%21 = load double, double* %10
%22 = fcmp oge double %21, 0x3EB0C6F7A0B5ED8D
br i1 %22, label %23, label %26
23: ; preds = %20
%24 = load double, double* %10
%25 = fcmp ole double %24, 1.000000e+12
br label %26
26: ; preds = %23, %20, %8
%27 = phi i1 [ false, %20 ], [ false, %8 ], [ %25, %23 ]
%28 = zext i1 %27 to i32
%29 = call i32 @assert(i32 %28)
%30 = load double, double* %11
%31 = load double, double* %11
%32 = fcmp oeq double %30, %31
br i1 %32, label %33, label %39
33: ; preds = %26
%34 = load double, double* %11
%35 = fcmp oge double %34, 0x3EB0C6F7A0B5ED8D
br i1 %35, label %36, label %39
36: ; preds = %33
%37 = load double, double* %11
%38 = fcmp ole double %37, 1.000000e+12
br label %39
39: ; preds = %36, %33, %26
%40 = phi i1 [ false, %33 ], [ false, %26 ], [ %38, %36 ]
%41 = zext i1 %40 to i32
%42 = call i32 @assert(i32 %41)
%43 = load double, double* %12
%44 = load double, double* %12
%45 = fcmp oeq double %43, %44
br i1 %45, label %46, label %52
46: ; preds = %39
%47 = load double, double* %12
%48 = fcmp oge double %47, 0x3F2596179C29D2CE
br i1 %48, label %49, label %52
49: ; preds = %46
%50 = load double, double* %12
%51 = fcmp ole double %50, 2.000000e+01
br label %52
52: ; preds = %49, %46, %39
%53 = phi i1 [ false, %46 ], [ false, %39 ], [ %51, %49 ]
%54 = zext i1 %53 to i32
%55 = call i32 @assert(i32 %54)
%56 = load double, double* %16
%57 = fneg double %56
%58 = load double, double* %12
%59 = fmul double %57, %58
%60 = call double @exp(double %59)
%61 = load i32, i32* %9
%62 = load double, double* %10
%63 = load double, double* %11
%64 = load double, double* %12
%65 = load double, double* %13
%66 = load double, double* %14
%67 = load double, double* %15
%68 = call double @gbs(i32 %61, double %62, double %63, double %64, double %65, double %66, double %67)
%69 = fmul double %60, %68
ret double %69
}

LLVM IR (-O2):
define double @Executive(i32 %0, double %1, double %2, double %3, double %4, double %5, double %6, double %7) {
%9 = fcmp ord double %1, 0.000000e+00
%10 = fcmp oge double %1, 0x3EB0C6F7A0B5ED8D
%11 = and i1 %9, %10
%12 = fcmp ole double %1, 1.000000e+12
%13 = and i1 %12, %11
%14 = zext i1 %13 to i32
%15 = tail call i32 @assert(i32 %14)
%16 = fcmp ord double %2, 0.000000e+00
%17 = fcmp oge double %2, 0x3EB0C6F7A0B5ED8D
%18 = and i1 %16, %17
%19 = fcmp ole double %2, 1.000000e+12
%20 = and i1 %19, %18
%21 = zext i1 %20 to i32
%22 = tail call i32 @assert(i32 %21)
%23 = fcmp ord double %3, 0.000000e+00
%24 = fcmp oge double %3, 0x3F2596179C29D2CE
%25 = and i1 %23, %24
%26 = fcmp ole double %3, 2.000000e+01
%27 = and i1 %26, %25
%28 = zext i1 %27 to i32
%29 = tail call i32 @assert(i32 %28)
%30 = fneg double %7
%31 = fmul double %30, %3
%32 = tail call double @exp(double %31)
%33 = tail call double @gbs(i32 %0, double %1, double %2, double %3, double %4, double %5, double %6)
%34 = fmul double %32, %33
ret double %34
}