#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 LinearADR_Decay_DiracIC(int *, double *, int, double, double *, double *);
int LinearADR_Decay_DiracIC_dr(int *iwork, double *rwork, int nPoints, double T,
                               double *x, double *u, double *dr) {
  int i, iret;
  double c = rwork[10];
  iret = LinearADR_Decay_DiracIC(iwork, rwork, nPoints, T, x, u);
  for (i = 0; i < nPoints; i++) {
    dr[i] = c;
  }
  return iret;
}


x86 assembly (clang, -O0):
<LinearADR_Decay_DiracIC_dr>:
push   %rbp
mov    %rsp,%rbp
sub    $0x50,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %edx,-0x14(%rbp)
movsd  %xmm0,-0x20(%rbp)
mov    %rcx,-0x28(%rbp)
mov    %r8,-0x30(%rbp)
mov    %r9,-0x38(%rbp)
mov    -0x10(%rbp),%rax
movsd  0x50(%rax),%xmm0
movsd  %xmm0,-0x48(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
mov    -0x14(%rbp),%edx
movsd  -0x20(%rbp),%xmm0
mov    -0x28(%rbp),%rcx
mov    -0x30(%rbp),%r8
call   1030 <LinearADR_Decay_DiracIC@plt>
mov    %eax,-0x40(%rbp)
movl   $0x0,-0x3c(%rbp)
mov    -0x3c(%rbp),%eax
cmp    -0x14(%rbp),%eax
jge    1195 <LinearADR_Decay_DiracIC_dr+0x85>
movsd  -0x48(%rbp),%xmm0
mov    -0x38(%rbp),%rax
movslq -0x3c(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x3c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x3c(%rbp)
jmp    1169 <LinearADR_Decay_DiracIC_dr+0x59>
mov    -0x40(%rbp),%eax
add    $0x50,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<LinearADR_Decay_DiracIC_dr>:
push   %rbp
push   %rbx
sub    $0x18,%rsp
mov    %r9,%rbx
mov    %edx,%ebp
movsd  0x50(%rsi),%xmm1
movaps %xmm1,(%rsp)
call   1030 <LinearADR_Decay_DiracIC@plt>
movaps (%rsp),%xmm1
test   %ebp,%ebp
jle    123e <LinearADR_Decay_DiracIC_dr+0x12e>
mov    %ebp,%ecx
cmp    $0x4,%ebp
jae    1143 <LinearADR_Decay_DiracIC_dr+0x33>
xor    %edx,%edx
jmp    1230 <LinearADR_Decay_DiracIC_dr+0x120>
mov    %ecx,%edx
and    $0xfffffffc,%edx
movaps %xmm1,%xmm0
movlhps %xmm1,%xmm0
lea    -0x4(%rdx),%rbp
mov    %rbp,%rdi
shr    $0x2,%rdi
add    $0x1,%rdi
mov    %edi,%esi
and    $0x7,%esi
cmp    $0x1c,%rbp
jae    116f <LinearADR_Decay_DiracIC_dr+0x5f>
xor    %ebp,%ebp
jmp    11f1 <LinearADR_Decay_DiracIC_dr+0xe1>
and    $0xfffffffffffffff8,%rdi
xor    %ebp,%ebp
cs nopw 0x0(%rax,%rax,1)
nop
movups %xmm0,(%rbx,%rbp,8)
movups %xmm0,0x10(%rbx,%rbp,8)
movups %xmm0,0x20(%rbx,%rbp,8)
movups %xmm0,0x30(%rbx,%rbp,8)
movups %xmm0,0x40(%rbx,%rbp,8)
movups %xmm0,0x50(%rbx,%rbp,8)
movups %xmm0,0x60(%rbx,%rbp,8)
movups %xmm0,0x70(%rbx,%rbp,8)
movups %xmm0,0x80(%rbx,%rbp,8)
movups %xmm0,0x90(%rbx,%rbp,8)
movups %xmm0,0xa0(%rbx,%rbp,8)
movups %xmm0,0xb0(%rbx,%rbp,8)
movups %xmm0,0xc0(%rbx,%rbp,8)
movups %xmm0,0xd0(%rbx,%rbp,8)
movups %xmm0,0xe0(%rbx,%rbp,8)
movups %xmm0,0xf0(%rbx,%rbp,8)
add    $0x20,%rbp
add    $0xfffffffffffffff8,%rdi
jne    1180 <LinearADR_Decay_DiracIC_dr+0x70>
test   %rsi,%rsi
je     1222 <LinearADR_Decay_DiracIC_dr+0x112>
lea    (%rbx,%rbp,8),%rdi
add    $0x10,%rdi
shl    $0x5,%rsi
xor    %ebp,%ebp
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
movups %xmm0,-0x10(%rdi,%rbp,1)
movups %xmm0,(%rdi,%rbp,1)
add    $0x20,%rbp
cmp    %rbp,%rsi
jne    1210 <LinearADR_Decay_DiracIC_dr+0x100>
cmp    %rcx,%rdx
je     123e <LinearADR_Decay_DiracIC_dr+0x12e>
nopw   0x0(%rax,%rax,1)
movsd  %xmm1,(%rbx,%rdx,8)
add    $0x1,%rdx
cmp    %rdx,%rcx
jne    1230 <LinearADR_Decay_DiracIC_dr+0x120>
add    $0x18,%rsp
pop    %rbx
pop    %rbp
ret

LLVM IR (-O0):
define i32 @LinearADR_Decay_DiracIC_dr(i32* %0, double* %1, i32 %2, double %3, double* %4, double* %5, double* %6) {
%8 = alloca i32*
%9 = alloca double*
%10 = alloca i32
%11 = alloca double
%12 = alloca double*
%13 = alloca double*
%14 = alloca double*
%15 = alloca i32
%16 = alloca i32
%17 = alloca double
store i32* %0, i32** %8
store double* %1, double** %9
store i32 %2, i32* %10
store double %3, double* %11
store double* %4, double** %12
store double* %5, double** %13
store double* %6, double** %14
%18 = load double*, double** %9
%19 = getelementptr inbounds double, double* %18, i64 10
%20 = load double, double* %19
store double %20, double* %17
%21 = load i32*, i32** %8
%22 = load double*, double** %9
%23 = load i32, i32* %10
%24 = load double, double* %11
%25 = load double*, double** %12
%26 = load double*, double** %13
%27 = call i32 @LinearADR_Decay_DiracIC(i32* %21, double* %22, i32 %23, double %24, double* %25, double* %26)
store i32 %27, i32* %16
store i32 0, i32* %15
br label %28
28: ; preds = %38, %7
%29 = load i32, i32* %15
%30 = load i32, i32* %10
%31 = icmp slt i32 %29, %30
br i1 %31, label %32, label %41
32: ; preds = %28
%33 = load double, double* %17
%34 = load double*, double** %14
%35 = load i32, i32* %15
%36 = sext i32 %35 to i64
%37 = getelementptr inbounds double, double* %34, i64 %36
store double %33, double* %37
br label %38
38: ; preds = %32
%39 = load i32, i32* %15
%40 = add nsw i32 %39, 1
store i32 %40, i32* %15
br label %28
41: ; preds = %28
%42 = load i32, i32* %16
ret i32 %42
}

LLVM IR (-O2):
define i32 @LinearADR_Decay_DiracIC_dr(i32* %0, double* %1, i32 %2, double %3, double* %4, double* %5, double* nocapture writeonly %6) {
%8 = getelementptr inbounds double, double* %1, i64 10
%9 = load double, double* %8
%10 = tail call i32 @LinearADR_Decay_DiracIC(i32* %0, double* %1, i32 %2, double %3, double* %4, double* %5)
%11 = icmp sgt i32 %2, 0
br i1 %11, label %12, label %95
12: ; preds = %7
%13 = zext i32 %2 to i64
%14 = icmp ult i32 %2, 4
br i1 %14, label %88, label %15
15: ; preds = %12
%16 = and i64 %13, 4294967292
%17 = insertelement <2 x double> poison, double %9, i64 0
%18 = shufflevector <2 x double> %17, <2 x double> poison, <2 x i32> zeroinitializer
%19 = insertelement <2 x double> poison, double %9, i64 0
%20 = shufflevector <2 x double> %19, <2 x double> poison, <2 x i32> zeroinitializer
%21 = add nsw i64 %16, -4
%22 = lshr exact i64 %21, 2
%23 = add nuw nsw i64 %22, 1
%24 = and i64 %23, 7
%25 = icmp ult i64 %21, 28
br i1 %25, label %73, label %26
26: ; preds = %15
%27 = and i64 %23, 9223372036854775800
br label %28
28: ; preds = %28, %26
%29 = phi i64 [ 0, %26 ], [ %70, %28 ]
%30 = phi i64 [ 0, %26 ], [ %71, %28 ]
%31 = getelementptr inbounds double, double* %6, i64 %29
%32 = bitcast double* %31 to <2 x double>*
store <2 x double> %18, <2 x double>* %32
%33 = getelementptr inbounds double, double* %31, i64 2
%34 = bitcast double* %33 to <2 x double>*
store <2 x double> %20, <2 x double>* %34
%35 = or i64 %29, 4
%36 = getelementptr inbounds double, double* %6, i64 %35
%37 = bitcast double* %36 to <2 x double>*
store <2 x double> %18, <2 x double>* %37
%38 = getelementptr inbounds double, double* %36, i64 2
%39 = bitcast double* %38 to <2 x double>*
store <2 x double> %20, <2 x double>* %39
%40 = or i64 %29, 8
%41 = getelementptr inbounds double, double* %6, i64 %40
%42 = bitcast double* %41 to <2 x double>*
store <2 x double> %18, <2 x double>* %42
%43 = getelementptr inbounds double, double* %41, i64 2
%44 = bitcast double* %43 to <2 x double>*
store <2 x double> %20, <2 x double>* %44
%45 = or i64 %29, 12
%46 = getelementptr inbounds double, double* %6, i64 %45
%47 = bitcast double* %46 to <2 x double>*
store <2 x double> %18, <2 x double>* %47
%48 = getelementptr inbounds double, double* %46, i64 2
%49 = bitcast double* %48 to <2 x double>*
store <2 x double> %20, <2 x double>* %49
%50 = or i64 %29, 16
%51 = getelementptr inbounds double, double* %6, i64 %50
%52 = bitcast double* %51 to <2 x double>*
store <2 x double> %18, <2 x double>* %52
%53 = getelementptr inbounds double, double* %51, i64 2
%54 = bitcast double* %53 to <2 x double>*
store <2 x double> %20, <2 x double>* %54
%55 = or i64 %29, 20
%56 = getelementptr inbounds double, double* %6, i64 %55
%57 = bitcast double* %56 to <2 x double>*
store <2 x double> %18, <2 x double>* %57
%58 = getelementptr inbounds double, double* %56, i64 2
%59 = bitcast double* %58 to <2 x double>*
store <2 x double> %20, <2 x double>* %59
%60 = or i64 %29, 24
%61 = getelementptr inbounds double, double* %6, i64 %60
%62 = bitcast double* %61 to <2 x double>*
store <2 x double> %18, <2 x double>* %62
%63 = getelementptr inbounds double, double* %61, i64 2
%64 = bitcast double* %63 to <2 x double>*
store <2 x double> %20, <2 x double>* %64
%65 = or i64 %29, 28
%66 = getelementptr inbounds double, double* %6, i64 %65
%67 = bitcast double* %66 to <2 x double>*
store <2 x double> %18, <2 x double>* %67
%68 = getelementptr inbounds double, double* %66, i64 2
%69 = bitcast double* %68 to <2 x double>*
store <2 x double> %20, <2 x double>* %69
%70 = add nuw i64 %29, 32
%71 = add i64 %30, 8
%72 = icmp eq i64 %71, %27
br i1 %72, label %73, label %28
73: ; preds = %28, %15
%74 = phi i64 [ 0, %15 ], [ %70, %28 ]
%75 = icmp eq i64 %24, 0
br i1 %75, label %86, label %76
76: ; preds = %73, %76
%77 = phi i64 [ %83, %76 ], [ %74, %73 ]
%78 = phi i64 [ %84, %76 ], [ 0, %73 ]
%79 = getelementptr inbounds double, double* %6, i64 %77
%80 = bitcast double* %79 to <2 x double>*
store <2 x double> %18, <2 x double>* %80
%81 = getelementptr inbounds double, double* %79, i64 2
%82 = bitcast double* %81 to <2 x double>*
store <2 x double> %20, <2 x double>* %82
%83 = add nuw i64 %77, 4
%84 = add i64 %78, 1
%85 = icmp eq i64 %84, %24
br i1 %85, label %86, label %76
86: ; preds = %76, %73
%87 = icmp eq i64 %16, %13
br i1 %87, label %95, label %88
88: ; preds = %12, %86
%89 = phi i64 [ 0, %12 ], [ %16, %86 ]
br label %90
90: ; preds = %88, %90
%91 = phi i64 [ %93, %90 ], [ %89, %88 ]
%92 = getelementptr inbounds double, double* %6, i64 %91
store double %9, double* %92
%93 = add nuw nsw i64 %91, 1
%94 = icmp eq i64 %93, %13
br i1 %94, label %95, label %90
95: ; preds = %90, %86, %7
ret i32 %10
}