#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 exp(int);
int /*<<< orphan*/ printf(char *, double);
void pijJC69(double pij[2], double t) {
  if (t < -0.01)
    printf("\nt = %.5f in pijJC69", t);
  if (t < 1e-100) {
    pij[0] = 1;
    pij[1] = 0;
  } else {
    pij[0] = (1. + 3 * exp(-4 * t / 3.)) / 4;
    pij[1] = (1 - pij[0]) / 3;
  }
}


x86 assembly (clang, -O0):
<pijJC69>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
movsd  %xmm0,-0x10(%rbp)
movsd  0xec7(%rip),%xmm0
ucomisd -0x10(%rbp),%xmm0
jbe    1155 <pijJC69+0x35>
movsd  -0x10(%rbp),%xmm0
lea    0xee0(%rip),%rdi
call   1030 <printf@plt>
movsd  0xeab(%rip),%xmm0
ucomisd -0x10(%rbp),%xmm0
jbe    1189 <pijJC69+0x69>
mov    -0x8(%rbp),%rax
movsd  0xea4(%rip),%xmm0
movsd  %xmm0,(%rax)
mov    -0x8(%rbp),%rax
xorps  %xmm0,%xmm0
movsd  %xmm0,0x8(%rax)
jmp    11f7 <pijJC69+0xd7>
movsd  0xe97(%rip),%xmm0
mulsd  -0x10(%rbp),%xmm0
movsd  0xe72(%rip),%xmm1
divsd  %xmm1,%xmm0
cvttsd2si %xmm0,%edi
call   1040 <exp@plt>
imul   $0x3,%eax,%eax
cvtsi2sd %eax,%xmm1
movsd  0xe5e(%rip),%xmm0
addsd  %xmm1,%xmm0
movsd  0xe5a(%rip),%xmm1
divsd  %xmm1,%xmm0
mov    -0x8(%rbp),%rax
movsd  %xmm0,(%rax)
mov    -0x8(%rbp),%rax
movsd  0xe3a(%rip),%xmm0
subsd  (%rax),%xmm0
movsd  0xe26(%rip),%xmm1
divsd  %xmm1,%xmm0
mov    -0x8(%rbp),%rax
movsd  %xmm0,0x8(%rax)
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<pijJC69>:
push   %rbx
sub    $0x10,%rsp
mov    %rdi,%rbx
movsd  0xed0(%rip),%xmm1
ucomisd %xmm0,%xmm1
jbe    114e <pijJC69+0x2e>
lea    0xef3(%rip),%rdi
movsd  %xmm0,0x8(%rsp)
call   1030 <printf@plt>
movsd  0x8(%rsp),%xmm0
movsd  0xeb2(%rip),%xmm1
ucomisd %xmm0,%xmm1
jbe    116f <pijJC69+0x4f>
movabs $0x3ff0000000000000,%rax
mov    %rax,(%rbx)
xorpd  %xmm0,%xmm0
jmp    11b6 <pijJC69+0x96>
mulsd  0xe99(%rip),%xmm0
divsd  0xe99(%rip),%xmm0
cvttsd2si %xmm0,%edi
call   1040 <exp@plt>
lea    (%rax,%rax,2),%eax
xorps  %xmm1,%xmm1
cvtsi2sd %eax,%xmm1
movsd  0xe86(%rip),%xmm0
addsd  %xmm0,%xmm1
mulsd  0xe82(%rip),%xmm1
movsd  %xmm1,(%rbx)
subsd  %xmm1,%xmm0
divsd  0xe62(%rip),%xmm0
movsd  %xmm0,0x8(%rbx)
add    $0x10,%rsp
pop    %rbx
ret

LLVM IR (-O0):
@.str = [21 x i8] c"\0At = %.5f in pijJC69\00"
define void @pijJC69(double* %0, double %1) {
%3 = alloca double*
%4 = alloca double
store double* %0, double** %3
store double %1, double* %4
%5 = load double, double* %4
%6 = fcmp olt double %5, -1.000000e-02
br i1 %6, label %7, label %10
7: ; preds = %2
%8 = load double, double* %4
%9 = call i32 @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str, i64 0, i64 0), double %8)
br label %10
10: ; preds = %7, %2
%11 = load double, double* %4
%12 = fcmp olt double %11, 1.000000e-100
br i1 %12, label %13, label %18
13: ; preds = %10
%14 = load double*, double** %3
%15 = getelementptr inbounds double, double* %14, i64 0
store double 1.000000e+00, double* %15
%16 = load double*, double** %3
%17 = getelementptr inbounds double, double* %16, i64 1
store double 0.000000e+00, double* %17
br label %37
18: ; preds = %10
%19 = load double, double* %4
%20 = fmul double -4.000000e+00, %19
%21 = fdiv double %20, 3.000000e+00
%22 = fptosi double %21 to i32
%23 = call i32 @exp(i32 %22)
%24 = mul nsw i32 3, %23
%25 = sitofp i32 %24 to double
%26 = fadd double 1.000000e+00, %25
%27 = fdiv double %26, 4.000000e+00
%28 = load double*, double** %3
%29 = getelementptr inbounds double, double* %28, i64 0
store double %27, double* %29
%30 = load double*, double** %3
%31 = getelementptr inbounds double, double* %30, i64 0
%32 = load double, double* %31
%33 = fsub double 1.000000e+00, %32
%34 = fdiv double %33, 3.000000e+00
%35 = load double*, double** %3
%36 = getelementptr inbounds double, double* %35, i64 1
store double %34, double* %36
br label %37
37: ; preds = %18, %13
ret void
}

LLVM IR (-O2):
@.str = [21 x i8] c"\0At = %.5f in pijJC69\00"
define void @pijJC69(double* nocapture writeonly %0, double %1) {
%3 = fcmp olt double %1, -1.000000e-02
br i1 %3, label %4, label %6
4: ; preds = %2
%5 = tail call i32 @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str, i64 0, i64 0), double %1)
br label %6
6: ; preds = %4, %2
%7 = fcmp olt double %1, 1.000000e-100
br i1 %7, label %8, label %9
8: ; preds = %6
store double 1.000000e+00, double* %0
br label %20
9: ; preds = %6
%10 = fmul double %1, -4.000000e+00
%11 = fdiv double %10, 3.000000e+00
%12 = fptosi double %11 to i32
%13 = tail call i32 @exp(i32 %12)
%14 = mul nsw i32 %13, 3
%15 = sitofp i32 %14 to double
%16 = fadd double %15, 1.000000e+00
%17 = fmul double %16, 2.500000e-01
store double %17, double* %0
%18 = fsub double 1.000000e+00, %17
%19 = fdiv double %18, 3.000000e+00
br label %20
20: ; preds = %9, %8
%21 = phi double [ 0.000000e+00, %8 ], [ %19, %9 ]
%22 = getelementptr inbounds double, double* %0, i64 1
store double %21, double* %22
ret void
}