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


x86 assembly (clang, -O0):
<LinearADR_Decay_DiracIC_r>:
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    11a2 <LinearADR_Decay_DiracIC_r+0x92>
mov    -0x30(%rbp),%rax
movslq -0x3c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mulsd  -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_r+0x59>
mov    -0x40(%rbp),%eax
add    $0x50,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<LinearADR_Decay_DiracIC_r>:
push   %rbp
push   %r14
push   %rbx
sub    $0x10,%rsp
mov    %r9,%r14
mov    %r8,%rbx
mov    %edx,%ebp
movsd  0x50(%rsi),%xmm1
movapd %xmm1,(%rsp)
call   1030 <LinearADR_Decay_DiracIC@plt>
movapd (%rsp),%xmm3
test   %ebp,%ebp
jle    12ab <LinearADR_Decay_DiracIC_r+0x19b>
mov    %ebp,%ecx
cmp    $0x4,%ebp
jb     115d <LinearADR_Decay_DiracIC_r+0x4d>
lea    (%rbx,%rcx,8),%rdx
cmp    %r14,%rdx
jbe    1200 <LinearADR_Decay_DiracIC_r+0xf0>
lea    (%r14,%rcx,8),%rdx
cmp    %rbx,%rdx
jbe    1200 <LinearADR_Decay_DiracIC_r+0xf0>
xor    %edx,%edx
mov    %rdx,%rsi
not    %rsi
add    %rcx,%rsi
mov    %rcx,%rdi
and    $0x3,%rdi
je     1199 <LinearADR_Decay_DiracIC_r+0x89>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
movsd  (%rbx,%rdx,8),%xmm0
mulsd  %xmm3,%xmm0
movsd  %xmm0,(%r14,%rdx,8)
add    $0x1,%rdx
add    $0xffffffffffffffff,%rdi
jne    1180 <LinearADR_Decay_DiracIC_r+0x70>
cmp    $0x3,%rsi
jb     12ab <LinearADR_Decay_DiracIC_r+0x19b>
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
movsd  (%rbx,%rdx,8),%xmm0
mulsd  %xmm3,%xmm0
movsd  %xmm0,(%r14,%rdx,8)
movsd  0x8(%rbx,%rdx,8),%xmm0
mulsd  %xmm3,%xmm0
movsd  %xmm0,0x8(%r14,%rdx,8)
movsd  0x10(%rbx,%rdx,8),%xmm0
mulsd  %xmm3,%xmm0
movsd  %xmm0,0x10(%r14,%rdx,8)
movsd  0x18(%rbx,%rdx,8),%xmm0
mulsd  %xmm3,%xmm0
movsd  %xmm0,0x18(%r14,%rdx,8)
add    $0x4,%rdx
cmp    %rdx,%rcx
jne    11b0 <LinearADR_Decay_DiracIC_r+0xa0>
jmp    12ab <LinearADR_Decay_DiracIC_r+0x19b>
mov    %ecx,%edx
and    $0xfffffffc,%edx
movapd %xmm3,%xmm0
unpcklpd %xmm3,%xmm0
lea    -0x4(%rdx),%rsi
mov    %rsi,%rbp
shr    $0x2,%rbp
add    $0x1,%rbp
test   %rsi,%rsi
je     12b4 <LinearADR_Decay_DiracIC_r+0x1a4>
mov    %rbp,%rdi
and    $0xfffffffffffffffe,%rdi
xor    %esi,%esi
xchg   %ax,%ax
movupd (%rbx,%rsi,8),%xmm1
movupd 0x10(%rbx,%rsi,8),%xmm2
mulpd  %xmm0,%xmm1
mulpd  %xmm0,%xmm2
movupd %xmm1,(%r14,%rsi,8)
movupd %xmm2,0x10(%r14,%rsi,8)
movupd 0x20(%rbx,%rsi,8),%xmm1
movupd 0x30(%rbx,%rsi,8),%xmm2
mulpd  %xmm0,%xmm1
mulpd  %xmm0,%xmm2
movupd %xmm1,0x20(%r14,%rsi,8)
movupd %xmm2,0x30(%r14,%rsi,8)
add    $0x8,%rsi
add    $0xfffffffffffffffe,%rdi
jne    1230 <LinearADR_Decay_DiracIC_r+0x120>
test   $0x1,%bpl
je     12a2 <LinearADR_Decay_DiracIC_r+0x192>
movupd (%rbx,%rsi,8),%xmm1
movupd 0x10(%rbx,%rsi,8),%xmm2
mulpd  %xmm0,%xmm1
mulpd  %xmm0,%xmm2
movupd %xmm1,(%r14,%rsi,8)
movupd %xmm2,0x10(%r14,%rsi,8)
cmp    %rcx,%rdx
jne    115f <LinearADR_Decay_DiracIC_r+0x4f>
add    $0x10,%rsp
pop    %rbx
pop    %r14
pop    %rbp
ret
xor    %esi,%esi
test   $0x1,%bpl
jne    1282 <LinearADR_Decay_DiracIC_r+0x172>
jmp    12a2 <LinearADR_Decay_DiracIC_r+0x192>

LLVM IR (-O0):
define i32 @LinearADR_Decay_DiracIC_r(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 = %44, %7
%29 = load i32, i32* %15
%30 = load i32, i32* %10
%31 = icmp slt i32 %29, %30
br i1 %31, label %32, label %47
32: ; preds = %28
%33 = load double*, double** %13
%34 = load i32, i32* %15
%35 = sext i32 %34 to i64
%36 = getelementptr inbounds double, double* %33, i64 %35
%37 = load double, double* %36
%38 = load double, double* %17
%39 = fmul double %37, %38
%40 = load double*, double** %14
%41 = load i32, i32* %15
%42 = sext i32 %41 to i64
%43 = getelementptr inbounds double, double* %40, i64 %42
store double %39, double* %43
br label %44
44: ; preds = %32
%45 = load i32, i32* %15
%46 = add nsw i32 %45, 1
store i32 %46, i32* %15
br label %28
47: ; preds = %28
%48 = load i32, i32* %16
ret i32 %48
}

LLVM IR (-O2):
define i32 @LinearADR_Decay_DiracIC_r(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 %125
12: ; preds = %7
%13 = zext i32 %2 to i64
%14 = icmp ult i32 %2, 4
br i1 %14, label %83, label %15
15: ; preds = %12
%16 = getelementptr double, double* %6, i64 %13
%17 = getelementptr double, double* %5, i64 %13
%18 = icmp ugt double* %17, %6
%19 = icmp ugt double* %16, %5
%20 = and i1 %18, %19
br i1 %20, label %83, label %21
21: ; preds = %15
%22 = and i64 %13, 4294967292
%23 = insertelement <2 x double> poison, double %9, i64 0
%24 = shufflevector <2 x double> %23, <2 x double> poison, <2 x i32> zeroinitializer
%25 = insertelement <2 x double> poison, double %9, i64 0
%26 = shufflevector <2 x double> %25, <2 x double> poison, <2 x i32> zeroinitializer
%27 = add nsw i64 %22, -4
%28 = lshr exact i64 %27, 2
%29 = add nuw nsw i64 %28, 1
%30 = and i64 %29, 1
%31 = icmp eq i64 %27, 0
br i1 %31, label %65, label %32
32: ; preds = %21
%33 = and i64 %29, 9223372036854775806
br label %34
34: ; preds = %34, %32
%35 = phi i64 [ 0, %32 ], [ %62, %34 ]
%36 = phi i64 [ 0, %32 ], [ %63, %34 ]
%37 = getelementptr inbounds double, double* %5, i64 %35
%38 = bitcast double* %37 to <2 x double>*
%39 = load <2 x double>, <2 x double>* %38
%40 = getelementptr inbounds double, double* %37, i64 2
%41 = bitcast double* %40 to <2 x double>*
%42 = load <2 x double>, <2 x double>* %41
%43 = fmul <2 x double> %24, %39
%44 = fmul <2 x double> %26, %42
%45 = getelementptr inbounds double, double* %6, i64 %35
%46 = bitcast double* %45 to <2 x double>*
store <2 x double> %43, <2 x double>* %46
%47 = getelementptr inbounds double, double* %45, i64 2
%48 = bitcast double* %47 to <2 x double>*
store <2 x double> %44, <2 x double>* %48
%49 = or i64 %35, 4
%50 = getelementptr inbounds double, double* %5, i64 %49
%51 = bitcast double* %50 to <2 x double>*
%52 = load <2 x double>, <2 x double>* %51
%53 = getelementptr inbounds double, double* %50, i64 2
%54 = bitcast double* %53 to <2 x double>*
%55 = load <2 x double>, <2 x double>* %54
%56 = fmul <2 x double> %24, %52
%57 = fmul <2 x double> %26, %55
%58 = getelementptr inbounds double, double* %6, i64 %49
%59 = bitcast double* %58 to <2 x double>*
store <2 x double> %56, <2 x double>* %59
%60 = getelementptr inbounds double, double* %58, i64 2
%61 = bitcast double* %60 to <2 x double>*
store <2 x double> %57, <2 x double>* %61
%62 = add nuw i64 %35, 8
%63 = add i64 %36, 2
%64 = icmp eq i64 %63, %33
br i1 %64, label %65, label %34
65: ; preds = %34, %21
%66 = phi i64 [ 0, %21 ], [ %62, %34 ]
%67 = icmp eq i64 %30, 0
br i1 %67, label %81, label %68
68: ; preds = %65
%69 = getelementptr inbounds double, double* %5, i64 %66
%70 = bitcast double* %69 to <2 x double>*
%71 = load <2 x double>, <2 x double>* %70
%72 = getelementptr inbounds double, double* %69, i64 2
%73 = bitcast double* %72 to <2 x double>*
%74 = load <2 x double>, <2 x double>* %73
%75 = fmul <2 x double> %24, %71
%76 = fmul <2 x double> %26, %74
%77 = getelementptr inbounds double, double* %6, i64 %66
%78 = bitcast double* %77 to <2 x double>*
store <2 x double> %75, <2 x double>* %78
%79 = getelementptr inbounds double, double* %77, i64 2
%80 = bitcast double* %79 to <2 x double>*
store <2 x double> %76, <2 x double>* %80
br label %81
81: ; preds = %65, %68
%82 = icmp eq i64 %22, %13
br i1 %82, label %125, label %83
83: ; preds = %15, %12, %81
%84 = phi i64 [ 0, %15 ], [ 0, %12 ], [ %22, %81 ]
%85 = xor i64 %84, -1
%86 = add nsw i64 %85, %13
%87 = and i64 %13, 3
%88 = icmp eq i64 %87, 0
br i1 %88, label %99, label %89
89: ; preds = %83, %89
%90 = phi i64 [ %96, %89 ], [ %84, %83 ]
%91 = phi i64 [ %97, %89 ], [ 0, %83 ]
%92 = getelementptr inbounds double, double* %5, i64 %90
%93 = load double, double* %92
%94 = fmul double %9, %93
%95 = getelementptr inbounds double, double* %6, i64 %90
store double %94, double* %95
%96 = add nuw nsw i64 %90, 1
%97 = add i64 %91, 1
%98 = icmp eq i64 %97, %87
br i1 %98, label %99, label %89
99: ; preds = %89, %83
%100 = phi i64 [ %84, %83 ], [ %96, %89 ]
%101 = icmp ult i64 %86, 3
br i1 %101, label %125, label %102
102: ; preds = %99, %102
%103 = phi i64 [ %123, %102 ], [ %100, %99 ]
%104 = getelementptr inbounds double, double* %5, i64 %103
%105 = load double, double* %104
%106 = fmul double %9, %105
%107 = getelementptr inbounds double, double* %6, i64 %103
store double %106, double* %107
%108 = add nuw nsw i64 %103, 1
%109 = getelementptr inbounds double, double* %5, i64 %108
%110 = load double, double* %109
%111 = fmul double %9, %110
%112 = getelementptr inbounds double, double* %6, i64 %108
store double %111, double* %112
%113 = add nuw nsw i64 %103, 2
%114 = getelementptr inbounds double, double* %5, i64 %113
%115 = load double, double* %114
%116 = fmul double %9, %115
%117 = getelementptr inbounds double, double* %6, i64 %113
store double %116, double* %117
%118 = add nuw nsw i64 %103, 3
%119 = getelementptr inbounds double, double* %5, i64 %118
%120 = load double, double* %119
%121 = fmul double %9, %120
%122 = getelementptr inbounds double, double* %6, i64 %118
store double %121, double* %122
%123 = add nuw nsw i64 %103, 4
%124 = icmp eq i64 %123, %13
br i1 %124, label %125, label %102
125: ; preds = %99, %102, %81, %7
ret i32 %10
}