#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_call(double, double, double, double, double, double);
extern double Executive_call(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));
  assert(((r) == (r)) && (r) >= 0.0 && (r) <= 1000.0);
  assert(((b) == (b)) && (b) >= -1000.0 && (b) <= 1000.0);
  assert(((v) == (v)) && (v) >= 0.0000001 && v <= 100.99999);
  return exp(-lambda * T) * gbs_call(S, X, T, r, b, v);
}


x86 assembly (clang, -O0):
<Executive_call>:
push   %rbp
mov    %rsp,%rbp
sub    $0x50,%rsp
movsd  %xmm0,-0x8(%rbp)
movsd  %xmm1,-0x10(%rbp)
movsd  %xmm2,-0x18(%rbp)
movsd  %xmm3,-0x20(%rbp)
movsd  %xmm4,-0x28(%rbp)
movsd  %xmm5,-0x30(%rbp)
movsd  %xmm6,-0x38(%rbp)
movsd  -0x8(%rbp),%xmm0
xor    %eax,%eax
ucomisd -0x8(%rbp),%xmm0
mov    %al,-0x39(%rbp)
jne    11a5 <Executive_call+0x75>
jp     11a5 <Executive_call+0x75>
movsd  -0x8(%rbp),%xmm0
xor    %eax,%eax
movsd  0xe7b(%rip),%xmm1
ucomisd %xmm1,%xmm0
mov    %al,-0x39(%rbp)
jb     11a5 <Executive_call+0x75>
movsd  0xe6e(%rip),%xmm0
ucomisd -0x8(%rbp),%xmm0
setae  %al
mov    %al,-0x39(%rbp)
mov    -0x39(%rbp),%al
and    $0x1,%al
movzbl %al,%edi
call   1040 <assert@plt>
movsd  -0x10(%rbp),%xmm0
xor    %eax,%eax
ucomisd -0x10(%rbp),%xmm0
mov    %al,-0x3a(%rbp)
jne    11fc <Executive_call+0xcc>
jp     11fc <Executive_call+0xcc>
movsd  -0x10(%rbp),%xmm0
xor    %eax,%eax
movsd  0xe24(%rip),%xmm1
ucomisd %xmm1,%xmm0
mov    %al,-0x3a(%rbp)
jb     11fc <Executive_call+0xcc>
movsd  0xe17(%rip),%xmm0
ucomisd -0x10(%rbp),%xmm0
setae  %al
mov    %al,-0x3a(%rbp)
mov    -0x3a(%rbp),%al
and    $0x1,%al
movzbl %al,%edi
call   1040 <assert@plt>
movsd  -0x18(%rbp),%xmm0
xor    %eax,%eax
ucomisd -0x18(%rbp),%xmm0
mov    %al,-0x3b(%rbp)
jne    1253 <Executive_call+0x123>
jp     1253 <Executive_call+0x123>
movsd  -0x18(%rbp),%xmm0
xor    %eax,%eax
movsd  0xddd(%rip),%xmm1
ucomisd %xmm1,%xmm0
mov    %al,-0x3b(%rbp)
jb     1253 <Executive_call+0x123>
movsd  0xdd0(%rip),%xmm0
ucomisd -0x18(%rbp),%xmm0
setae  %al
mov    %al,-0x3b(%rbp)
mov    -0x3b(%rbp),%al
and    $0x1,%al
movzbl %al,%edi
call   1040 <assert@plt>
movsd  -0x20(%rbp),%xmm0
xor    %eax,%eax
ucomisd -0x20(%rbp),%xmm0
mov    %al,-0x3c(%rbp)
jne    12a5 <Executive_call+0x175>
jp     12a5 <Executive_call+0x175>
movsd  -0x20(%rbp),%xmm0
xor    %eax,%eax
xorps  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
mov    %al,-0x3c(%rbp)
jb     12a5 <Executive_call+0x175>
movsd  0xd86(%rip),%xmm0
ucomisd -0x20(%rbp),%xmm0
setae  %al
mov    %al,-0x3c(%rbp)
mov    -0x3c(%rbp),%al
and    $0x1,%al
movzbl %al,%edi
call   1040 <assert@plt>
movsd  -0x28(%rbp),%xmm0
xor    %eax,%eax
ucomisd -0x28(%rbp),%xmm0
mov    %al,-0x3d(%rbp)
jne    12fc <Executive_call+0x1cc>
jp     12fc <Executive_call+0x1cc>
movsd  -0x28(%rbp),%xmm0
xor    %eax,%eax
movsd  0xd4c(%rip),%xmm1
ucomisd %xmm1,%xmm0
mov    %al,-0x3d(%rbp)
jb     12fc <Executive_call+0x1cc>
movsd  0xd2f(%rip),%xmm0
ucomisd -0x28(%rbp),%xmm0
setae  %al
mov    %al,-0x3d(%rbp)
mov    -0x3d(%rbp),%al
and    $0x1,%al
movzbl %al,%edi
call   1040 <assert@plt>
movsd  -0x30(%rbp),%xmm0
xor    %eax,%eax
ucomisd -0x30(%rbp),%xmm0
mov    %al,-0x3e(%rbp)
jne    1353 <Executive_call+0x223>
jp     1353 <Executive_call+0x223>
movsd  -0x30(%rbp),%xmm0
xor    %eax,%eax
movsd  0xcfd(%rip),%xmm1
ucomisd %xmm1,%xmm0
mov    %al,-0x3e(%rbp)
jb     1353 <Executive_call+0x223>
movsd  0xcf0(%rip),%xmm0
ucomisd -0x30(%rbp),%xmm0
setae  %al
mov    %al,-0x3e(%rbp)
mov    -0x3e(%rbp),%al
and    $0x1,%al
movzbl %al,%edi
call   1040 <assert@plt>
movsd  -0x38(%rbp),%xmm0
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  -0x18(%rbp),%xmm0
call   1050 <exp@plt>
movsd  %xmm0,-0x48(%rbp)
movsd  -0x8(%rbp),%xmm0
movsd  -0x10(%rbp),%xmm1
movsd  -0x18(%rbp),%xmm2
movsd  -0x20(%rbp),%xmm3
movsd  -0x28(%rbp),%xmm4
movsd  -0x30(%rbp),%xmm5
call   1030 <gbs_call@plt>
movaps %xmm0,%xmm1
movsd  -0x48(%rbp),%xmm0
mulsd  %xmm1,%xmm0
add    $0x50,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<Executive_call>:
sub    $0x48,%rsp
movsd  %xmm0,0x40(%rsp)
ucomisd %xmm0,%xmm0
setnp  %al
ucomisd 0xeb7(%rip),%xmm0
setae  %cl
and    %al,%cl
movsd  0xeb2(%rip),%xmm7
ucomisd %xmm0,%xmm7
movaps %xmm6,0x30(%rsp)
movsd  %xmm5,0x20(%rsp)
movsd  %xmm4,0x10(%rsp)
movsd  %xmm3,0x18(%rsp)
movsd  %xmm2,0x8(%rsp)
movsd  %xmm1,0x28(%rsp)
setae  %al
and    %cl,%al
movzbl %al,%edi
call   1040 <assert@plt>
movsd  0x28(%rsp),%xmm0
ucomisd %xmm0,%xmm0
setnp  %al
ucomisd 0xe61(%rip),%xmm0
setae  %cl
and    %al,%cl
movsd  0xe5c(%rip),%xmm1
ucomisd %xmm0,%xmm1
setae  %al
and    %cl,%al
movzbl %al,%edi
call   1040 <assert@plt>
movsd  0x8(%rsp),%xmm1
ucomisd %xmm1,%xmm1
setnp  %al
ucomisd 0xe3e(%rip),%xmm1
setae  %cl
and    %al,%cl
movsd  0xe39(%rip),%xmm0
ucomisd %xmm1,%xmm0
setae  %al
and    %cl,%al
movzbl %al,%edi
call   1040 <assert@plt>
xorpd  %xmm0,%xmm0
movsd  0x18(%rsp),%xmm1
ucomisd %xmm0,%xmm1
setae  %al
movsd  0xe17(%rip),%xmm0
ucomisd %xmm1,%xmm0
setae  %cl
and    %al,%cl
movzbl %cl,%edi
call   1040 <assert@plt>
movsd  0x10(%rsp),%xmm0
ucomisd %xmm0,%xmm0
setnp  %al
ucomisd 0xdf9(%rip),%xmm0
setae  %cl
and    %al,%cl
movsd  0xde4(%rip),%xmm1
ucomisd %xmm0,%xmm1
setae  %al
and    %cl,%al
movzbl %al,%edi
call   1040 <assert@plt>
movsd  0x20(%rsp),%xmm1
ucomisd %xmm1,%xmm1
setnp  %al
ucomisd 0xdce(%rip),%xmm1
setae  %cl
and    %al,%cl
movsd  0xdc9(%rip),%xmm0
ucomisd %xmm1,%xmm0
setae  %al
and    %cl,%al
movzbl %al,%edi
call   1040 <assert@plt>
movapd 0x30(%rsp),%xmm0
xorpd  0xdb2(%rip),%xmm0
mulsd  0x8(%rsp),%xmm0
call   1050 <exp@plt>
movsd  %xmm0,0x30(%rsp)
movsd  0x40(%rsp),%xmm0
movsd  0x28(%rsp),%xmm1
movsd  0x8(%rsp),%xmm2
movsd  0x18(%rsp),%xmm3
movsd  0x10(%rsp),%xmm4
movsd  0x20(%rsp),%xmm5
call   1030 <gbs_call@plt>
mulsd  0x30(%rsp),%xmm0
add    $0x48,%rsp
ret

LLVM IR (-O0):
define double @Executive_call(double %0, double %1, double %2, double %3, double %4, double %5, double %6) {
%8 = alloca double
%9 = alloca double
%10 = alloca double
%11 = alloca double
%12 = alloca double
%13 = alloca double
%14 = alloca double
store double %0, double* %8
store double %1, double* %9
store double %2, double* %10
store double %3, double* %11
store double %4, double* %12
store double %5, double* %13
store double %6, double* %14
%15 = load double, double* %8
%16 = load double, double* %8
%17 = fcmp oeq double %15, %16
br i1 %17, label %18, label %24
18: ; preds = %7
%19 = load double, double* %8
%20 = fcmp oge double %19, 0x3EB0C6F7A0B5ED8D
br i1 %20, label %21, label %24
21: ; preds = %18
%22 = load double, double* %8
%23 = fcmp ole double %22, 1.000000e+12
br label %24
24: ; preds = %21, %18, %7
%25 = phi i1 [ false, %18 ], [ false, %7 ], [ %23, %21 ]
%26 = zext i1 %25 to i32
%27 = call i32 @assert(i32 %26)
%28 = load double, double* %9
%29 = load double, double* %9
%30 = fcmp oeq double %28, %29
br i1 %30, label %31, label %37
31: ; preds = %24
%32 = load double, double* %9
%33 = fcmp oge double %32, 0x3EB0C6F7A0B5ED8D
br i1 %33, label %34, label %37
34: ; preds = %31
%35 = load double, double* %9
%36 = fcmp ole double %35, 1.000000e+12
br label %37
37: ; preds = %34, %31, %24
%38 = phi i1 [ false, %31 ], [ false, %24 ], [ %36, %34 ]
%39 = zext i1 %38 to i32
%40 = call i32 @assert(i32 %39)
%41 = load double, double* %10
%42 = load double, double* %10
%43 = fcmp oeq double %41, %42
br i1 %43, label %44, label %50
44: ; preds = %37
%45 = load double, double* %10
%46 = fcmp oge double %45, 0x3F2596179C29D2CE
br i1 %46, label %47, label %50
47: ; preds = %44
%48 = load double, double* %10
%49 = fcmp ole double %48, 2.000000e+01
br label %50
50: ; preds = %47, %44, %37
%51 = phi i1 [ false, %44 ], [ false, %37 ], [ %49, %47 ]
%52 = zext i1 %51 to i32
%53 = call i32 @assert(i32 %52)
%54 = load double, double* %11
%55 = load double, double* %11
%56 = fcmp oeq double %54, %55
br i1 %56, label %57, label %63
57: ; preds = %50
%58 = load double, double* %11
%59 = fcmp oge double %58, 0.000000e+00
br i1 %59, label %60, label %63
60: ; preds = %57
%61 = load double, double* %11
%62 = fcmp ole double %61, 1.000000e+03
br label %63
63: ; preds = %60, %57, %50
%64 = phi i1 [ false, %57 ], [ false, %50 ], [ %62, %60 ]
%65 = zext i1 %64 to i32
%66 = call i32 @assert(i32 %65)
%67 = load double, double* %12
%68 = load double, double* %12
%69 = fcmp oeq double %67, %68
br i1 %69, label %70, label %76
70: ; preds = %63
%71 = load double, double* %12
%72 = fcmp oge double %71, -1.000000e+03
br i1 %72, label %73, label %76
73: ; preds = %70
%74 = load double, double* %12
%75 = fcmp ole double %74, 1.000000e+03
br label %76
76: ; preds = %73, %70, %63
%77 = phi i1 [ false, %70 ], [ false, %63 ], [ %75, %73 ]
%78 = zext i1 %77 to i32
%79 = call i32 @assert(i32 %78)
%80 = load double, double* %13
%81 = load double, double* %13
%82 = fcmp oeq double %80, %81
br i1 %82, label %83, label %89
83: ; preds = %76
%84 = load double, double* %13
%85 = fcmp oge double %84, 0x3E7AD7F29ABCAF48
br i1 %85, label %86, label %89
86: ; preds = %83
%87 = load double, double* %13
%88 = fcmp ole double %87, 0x40593FFFD60E94EE
br label %89
89: ; preds = %86, %83, %76
%90 = phi i1 [ false, %83 ], [ false, %76 ], [ %88, %86 ]
%91 = zext i1 %90 to i32
%92 = call i32 @assert(i32 %91)
%93 = load double, double* %14
%94 = fneg double %93
%95 = load double, double* %10
%96 = fmul double %94, %95
%97 = call double @exp(double %96)
%98 = load double, double* %8
%99 = load double, double* %9
%100 = load double, double* %10
%101 = load double, double* %11
%102 = load double, double* %12
%103 = load double, double* %13
%104 = call double @gbs_call(double %98, double %99, double %100, double %101, double %102, double %103)
%105 = fmul double %97, %104
ret double %105
}

LLVM IR (-O2):
define double @Executive_call(double %0, double %1, double %2, double %3, double %4, double %5, double %6) {
%8 = fcmp ord double %0, 0.000000e+00
%9 = fcmp oge double %0, 0x3EB0C6F7A0B5ED8D
%10 = and i1 %8, %9
%11 = fcmp ole double %0, 1.000000e+12
%12 = and i1 %11, %10
%13 = zext i1 %12 to i32
%14 = tail call i32 @assert(i32 %13)
%15 = fcmp ord double %1, 0.000000e+00
%16 = fcmp oge double %1, 0x3EB0C6F7A0B5ED8D
%17 = and i1 %15, %16
%18 = fcmp ole double %1, 1.000000e+12
%19 = and i1 %18, %17
%20 = zext i1 %19 to i32
%21 = tail call i32 @assert(i32 %20)
%22 = fcmp ord double %2, 0.000000e+00
%23 = fcmp oge double %2, 0x3F2596179C29D2CE
%24 = and i1 %22, %23
%25 = fcmp ole double %2, 2.000000e+01
%26 = and i1 %25, %24
%27 = zext i1 %26 to i32
%28 = tail call i32 @assert(i32 %27)
%29 = fcmp oge double %3, 0.000000e+00
%30 = fcmp ole double %3, 1.000000e+03
%31 = and i1 %29, %30
%32 = zext i1 %31 to i32
%33 = tail call i32 @assert(i32 %32)
%34 = fcmp ord double %4, 0.000000e+00
%35 = fcmp oge double %4, -1.000000e+03
%36 = and i1 %34, %35
%37 = fcmp ole double %4, 1.000000e+03
%38 = and i1 %37, %36
%39 = zext i1 %38 to i32
%40 = tail call i32 @assert(i32 %39)
%41 = fcmp ord double %5, 0.000000e+00
%42 = fcmp oge double %5, 0x3E7AD7F29ABCAF48
%43 = and i1 %41, %42
%44 = fcmp ole double %5, 0x40593FFFD60E94EE
%45 = and i1 %44, %43
%46 = zext i1 %45 to i32
%47 = tail call i32 @assert(i32 %46)
%48 = fneg double %6
%49 = fmul double %48, %2
%50 = tail call double @exp(double %49)
%51 = tail call double @gbs_call(double %0, double %1, double %2, double %3, double %4, double %5)
%52 = fmul double %50, %51
ret double %52
}