; LLVM IR from stan-dev/math :: lib/sundials_6.1.1/benchmarks/nvector (test_nvector_performance)

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

@print_time = external dso_local global i32, align 4
@nextra = external dso_local global i32, align 4
@.str = external hidden unnamed_addr constant [38 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [15 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local i32 @Test_N_VLinearSum(ptr noundef %0, i64 noundef %1, i32 noundef %2) #0 {
  %4 = alloca ptr, align 8
  %5 = alloca i64, align 8
  %6 = alloca i32, align 4
  %7 = alloca double, align 8
  %8 = alloca double, align 8
  %9 = alloca ptr, align 8
  %10 = alloca double, align 8
  %11 = alloca double, align 8
  %12 = alloca double, align 8
  %13 = alloca double, align 8
  %14 = alloca double, align 8
  %15 = alloca double, align 8
  %16 = alloca i32, align 4
  %17 = alloca ptr, align 8
  %18 = alloca ptr, align 8
  store ptr %0, ptr %4, align 8, !tbaa !5
  store i64 %1, ptr %5, align 8, !tbaa !9
  store i32 %2, ptr %6, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #6
  %19 = load i32, ptr %6, align 4, !tbaa !11
  %20 = load i32, ptr @nextra, align 4, !tbaa !11
  %21 = add nsw i32 %19, %20
  %22 = sext i32 %21 to i64
  %23 = mul i64 %22, 8
  %24 = call noalias ptr @malloc(i64 noundef %23) #7
  store ptr %24, ptr %9, align 8, !tbaa !5
  %25 = load ptr, ptr %4, align 8, !tbaa !5
  %26 = call ptr @N_VClone(ptr noundef %25)
  store ptr %26, ptr %17, align 8, !tbaa !5
  %27 = load ptr, ptr %4, align 8, !tbaa !5
  %28 = call ptr @N_VClone(ptr noundef %27)
  store ptr %28, ptr %18, align 8, !tbaa !5
  store i32 0, ptr %16, align 4, !tbaa !11
  br label %29

29:                                               ; preds = %53, %3
  %30 = load i32, ptr %16, align 4, !tbaa !11
  %31 = load i32, ptr %6, align 4, !tbaa !11
  %32 = load i32, ptr @nextra, align 4, !tbaa !11
  %33 = add nsw i32 %31, %32
  %34 = icmp slt i32 %30, %33
  br i1 %34, label %35, label %56

35:                                               ; preds = %29
  %36 = load ptr, ptr %4, align 8, !tbaa !5
  %37 = load i64, ptr %5, align 8, !tbaa !9
  call void @N_VRand(ptr noundef %36, i64 noundef %37, double noundef -1.000000e+00, double noundef 1.000000e+00)
  %38 = load ptr, ptr %17, align 8, !tbaa !5
  %39 = load i64, ptr %5, align 8, !tbaa !9
  call void @N_VRand(ptr noundef %38, i64 noundef %39, double noundef -1.000000e+00, double noundef 1.000000e+00)
  call void (...) @ClearCache()
  %40 = call double @get_time()
  store double %40, ptr %7, align 8, !tbaa !13
  %41 = load ptr, ptr %4, align 8, !tbaa !5
  %42 = load ptr, ptr %17, align 8, !tbaa !5
  %43 = load ptr, ptr %17, align 8, !tbaa !5
  call void @N_VLinearSum(double noundef 1.000000e+00, ptr noundef %41, double noundef 1.000000e+00, ptr noundef %42, ptr noundef %43)
  %44 = load ptr, ptr %4, align 8, !tbaa !5
  call void @sync_device(ptr noundef %44)
  %45 = call double @get_time()
  store double %45, ptr %8, align 8, !tbaa !13
  %46 = load double, ptr %8, align 8, !tbaa !13
  %47 = load double, ptr %7, align 8, !tbaa !13
  %48 = fsub double %46, %47
  %49 = load ptr, ptr %9, align 8, !tbaa !5
  %50 = load i32, ptr %16, align 4, !tbaa !11
  %51 = sext i32 %50 to i64
  %52 = getelementptr inbounds double, ptr %49, i64 %51
  store double %48, ptr %52, align 8, !tbaa !13
  br label %53

53:                                               ; preds = %35
  %54 = load i32, ptr %16, align 4, !tbaa !11
  %55 = add nsw i32 %54, 1
  store i32 %55, ptr %16, align 4, !tbaa !11
  br label %29, !llvm.loop !15

56:                                               ; preds = %29
  %57 = load ptr, ptr %4, align 8, !tbaa !5
  %58 = load ptr, ptr %9, align 8, !tbaa !5
  %59 = load i32, ptr @nextra, align 4, !tbaa !11
  %60 = load i32, ptr %6, align 4, !tbaa !11
  call void @time_stats(ptr noundef %57, ptr noundef %58, i32 noundef %59, i32 noundef %60, ptr noundef %10, ptr noundef %11, ptr noundef %12, ptr noundef %13)
  %61 = load i32, ptr @print_time, align 4, !tbaa !11
  %62 = icmp ne i32 %61, 0
  br i1 %62, label %63, label %69

63:                                               ; preds = %56
  %64 = load double, ptr %10, align 8, !tbaa !13
  %65 = load double, ptr %11, align 8, !tbaa !13
  %66 = load double, ptr %12, align 8, !tbaa !13
  %67 = load double, ptr %13, align 8, !tbaa !13
  %68 = call i32 (ptr, ...) @printf(ptr noundef @.str, ptr noundef @.str.1, double noundef %64, double noundef %65, double noundef %66, double noundef %67)
  br label %69

69:                                               ; preds = %63, %56
  store i32 0, ptr %16, align 4, !tbaa !11
  br label %70

70:                                               ; preds = %94, %69
  %71 = load i32, ptr %16, align 4, !tbaa !11
  %72 = load i32, ptr %6, align 4, !tbaa !11
  %73 = load i32, ptr @nextra, align 4, !tbaa !11
  %74 = add nsw i32 %72, %73
  %75 = icmp slt i32 %71, %74
  br i1 %75, label %76, label %97

76:                                               ; preds = %70
  %77 = load ptr, ptr %4, align 8, !tbaa !5
  %78 = load i64, ptr %5, align 8, !tbaa !9
  call void @N_VRand(ptr noundef %77, i64 noundef %78, double noundef -1.000000e+00, double noundef 1.000000e+00)
  %79 = load ptr, ptr %17, align 8, !tbaa !5
  %80 = load i64, ptr %5, align 8, !tbaa !9
  call void @N_VRand(ptr noundef %79, i64 noundef %80, double noundef -1.000000e+00, double noundef 1.000000e+00)
  call void (...) @ClearCache()
  %81 = call double @get_time()
  store double %81, ptr %7, align 8, !tbaa !13
  %82 = load ptr, ptr %4, align 8, !tbaa !5
  %83 = load ptr, ptr %17, align 8, !tbaa !5
  %84 = load ptr, ptr %17, align 8, !tbaa !5
  call void @N_VLinearSum(double noundef -1.000000e+00, ptr noundef %82, double noundef 1.000000e+00, ptr noundef %83, ptr noundef %84)
  %85 = load ptr, ptr %4, align 8, !tbaa !5
  call void @sync_device(ptr noundef %85)
  %86 = call double @get_time()
  store double %86, ptr %8, align 8, !tbaa !13
  %87 = load double, ptr %8, align 8, !tbaa !13
  %88 = load double, ptr %7, align 8, !tbaa !13
  %89 = fsub double %87, %88
  %90 = load ptr, ptr %9, align 8, !tbaa !5
  %91 = load i32, ptr %16, align 4, !tbaa !11
  %92 = sext i32 %91 to i64
  %93 = getelementptr inbounds double, ptr %90, i64 %92
  store double %89, ptr %93, align 8, !tbaa !13
  br label %94

94:                                               ; preds = %76
  %95 = load i32, ptr %16, align 4, !tbaa !11
  %96 = add nsw i32 %95, 1
  store i32 %96, ptr %16, align 4, !tbaa !11
  br label %70, !llvm.loop !17

97:                                               ; preds = %70
  %98 = load ptr, ptr %4, align 8, !tbaa !5
  %99 = load ptr, ptr %9, align 8, !tbaa !5
  %100 = load i32, ptr @nextra, align 4, !tbaa !11
  %101 = load i32, ptr %6, align 4, !tbaa !11
  call void @time_stats(ptr noundef %98, ptr noundef %99, i32 noundef %100, i32 noundef %101, ptr noundef %10, ptr noundef %11, ptr noundef %12, ptr noundef %13)
  %102 = load i32, ptr @print_time, align 4, !tbaa !11
  %103 = icmp ne i32 %102, 0
  br i1 %103, label %104, label %110

104:                                              ; preds = %97
  %105 = load double, ptr %10, align 8, !tbaa !13
  %106 = load double, ptr %11, align 8, !tbaa !13
  %107 = load double, ptr %12, align 8, !tbaa !13
  %108 = load double, ptr %13, align 8, !tbaa !13
  %109 = call i32 (ptr, ...) @printf(ptr noundef @.str, ptr noundef @.str.2, double noundef %105, double noundef %106, double noundef %107, double noundef %108)
  br label %110

110:                                              ; preds = %104, %97
  store i32 0, ptr %16, align 4, !tbaa !11
  br label %111

111:                                              ; preds = %140, %110
  %112 = load i32, ptr %16, align 4, !tbaa !11
  %113 = load i32, ptr %6, align 4, !tbaa !11
  %114 = load i32, ptr @nextra, align 4, !tbaa !11
  %115 = add nsw i32 %113, %114
  %116 = icmp slt i32 %112, %115
  br i1 %116, label %117, label %143

117:                                              ; preds = %111
  %118 = load ptr, ptr %4, align 8, !tbaa !5
  %119 = load i64, ptr %5, align 8, !tbaa !9
  call void @N_VRand(ptr noundef %118, i64 noundef %119, double noundef -1.000000e+00, double noundef 1.000000e+00)
  %120 = load ptr, ptr %17, align 8, !tbaa !5
  %121 = load i64, ptr %5, align 8, !tbaa !9
  call void @N_VRand(ptr noundef %120, i64 noundef %121, double noundef -1.000000e+00, double noundef 1.000000e+00)
  %122 = call i32 @rand() #6
  %123 = sitofp i32 %122 to double
  %124 = fdiv double %123, 0x41DFFFFFFFC00000
  %125 = fadd double %124, 1.000000e+00
  store double %125, ptr %14, align 8, !tbaa !13
  call void (...) @ClearCache()
  %126 = call double @get_time()
  store double %126, ptr %7, align 8, !tbaa !13
  %127 = load double, ptr %14, align 8, !tbaa !13
  %128 = load ptr, ptr %4, align 8, !tbaa !5
  %129 = load ptr, ptr %17, align 8, !tbaa !5
  %130 = load ptr, ptr %17, align 8, !tbaa !5
  call void @N_VLinearSum(double noundef %127, ptr noundef %128, double noundef 1.000000e+00, ptr noundef %129, ptr noundef %130)
  %131 = load ptr, ptr %4, align 8, !tbaa !5
  call void @sync_device(ptr noundef %131)
  %132 = call double @get_time()
  store double %132, ptr %8, align 8, !tbaa !13
  %133 = load double, ptr %8, align 8, !tbaa !13
  %134 = load double, ptr %7, align 8, !tbaa !13
  %135 = fsub double %133, %134
  %136 = load ptr, ptr %9, align 8, !tbaa !5
  %137 = load i32, ptr %16, align 4, !tbaa !11
  %138 = sext i32 %137 to i64
  %139 = getelementptr inbounds double, ptr %136, i64 %138
  store double %135, ptr %139, align 8, !tbaa !13
  br label %140

140:                                              ; preds = %117
  %141 = load i32, ptr %16, align 4, !tbaa !11
  %142 = add nsw i32 %141, 1
  store i32 %142, ptr %16, align 4, !tbaa !11
  br label %111, !llvm.loop !18

143:                                              ; preds = %111
  %144 = load ptr, ptr %4, align 8, !tbaa !5
  %145 = load ptr, ptr %9, align 8, !tbaa !5
  %146 = load i32, ptr @nextra, align 4, !tbaa !11
  %147 = load i32, ptr %6, align 4, !tbaa !11
  call void @time_stats(ptr noundef %144, ptr noundef %145, i32 noundef %146, i32 noundef %147, ptr noundef %10, ptr noundef %11, ptr noundef %12, ptr noundef %13)
  %148 = load i32, ptr @print_time, align 4, !tbaa !11
  %149 = icmp ne i32 %148, 0
  br i1 %149, label %150, label %156

150:                                              ; preds = %143
  %151 = load double, ptr %10, align 8, !tbaa !13
  %152 = load double, ptr %11, align 8, !tbaa !13
  %153 = load double, ptr %12, align 8, !tbaa !13
  %154 = load double, ptr %13, align 8, !tbaa !13
  %155 = call i32 (ptr, ...) @printf(ptr noundef @.str, ptr noundef @.str.3, double noundef %151, double noundef %152, double noundef %153, double noundef %154)
  br label %156

156:                                              ; preds = %150, %143
  store i32 0, ptr %16, align 4, !tbaa !11
  br label %157

157:                                              ; preds = %181, %156
  %158 = load i32, ptr %16, align 4, !tbaa !11
  %159 = load i32, ptr %6, align 4, !tbaa !11
  %160 = load i32, ptr @nextra, align 4, !tbaa !11
  %161 = add nsw i32 %159, %160
  %162 = icmp slt i32 %158, %161
  br i1 %162, label %163, label %184

163:                                              ; preds = %157
  %164 = load ptr, ptr %4, align 8, !tbaa !5
  %165 = load i64, ptr %5, align 8, !tbaa !9
  call void @N_VRand(ptr noundef %164, i64 noundef %165, double noundef -1.000000e+00, double noundef 1.000000e+00)
  %166 = load ptr, ptr %17, align 8, !tbaa !5
  %167 = load i64, ptr %5, align 8, !tbaa !9
  call void @N_VRand(ptr noundef %166, i64 noundef %167, double noundef -1.000000e+00, double noundef 1.000000e+00)
  call void (...) @ClearCache()
  %168 = call double @get_time()
  store double %168, ptr %7, align 8, !tbaa !13
  %169 = load ptr, ptr %4, align 8, !tbaa !5
  %170 = load ptr, ptr %17, align 8, !tbaa !5
  %171 = load ptr, ptr %4, align 8, !tbaa !5
  call void @N_VLinearSum(double noundef 1.000000e+00, ptr noundef %169, double noundef 1.000000e+00, ptr noundef %170, ptr noundef %171)
  %172 = load ptr, ptr %4, align 8, !tbaa !5
  call void @sync_device(ptr noundef %172)
  %173 = call double @get_time()
  store double %173, ptr %8, align 8, !tbaa !13
  %174 = load double, ptr %8, align 8, !tbaa !13
  %175 = load double, ptr %7, align 8, !tbaa !13
  %176 = fsub double %174, %175
  %177 = load ptr, ptr %9, align 8, !tbaa !5
  %178 = load i32, ptr %16, align 4, !tbaa !11
  %179 = sext i32 %178 to i64
  %180 = getelementptr inbounds double, ptr %177, i64 %179
  store double %176, ptr %180, align 8, !tbaa !13
  br label %181

181:                                              ; preds = %163
  %182 = load i32, ptr %16, align 4, !tbaa !11
  %183 = add nsw i32 %182, 1
  store i32 %183, ptr %16, align 4, !tbaa !11
  br label %157, !llvm.loop !19

184:                                              ; preds = %157
  %185 = load ptr, ptr %4, align 8, !tbaa !5
  %186 = load ptr, ptr %9, align 8, !tbaa !5
  %187 = load i32, ptr @nextra, align 4, !tbaa !11
  %188 = load i32, ptr %6, align 4, !tbaa !11
  call void @time_stats(ptr noundef %185, ptr noundef %186, i32 noundef %187, i32 noundef %188, ptr noundef %10, ptr noundef %11, ptr noundef %12, ptr noundef %13)
  %189 = load i32, ptr @print_time, align 4, !tbaa !11
  %190 = icmp ne i32 %189, 0
  br i1 %190, label %191, label %197

191:                                              ; preds = %184
  %192 = load double, ptr %10, align 8, !tbaa !13
  %193 = load double, ptr %11, align 8, !tbaa !13
  %194 = load double, ptr %12, align 8, !tbaa !13
  %195 = load double, ptr %13, align 8, !tbaa !13
  %196 = call i32 (ptr, ...) @printf(ptr noundef @.str, ptr noundef @.str.4, double noundef %192, double noundef %193, double noundef %194, double noundef %195)
  br label %197

197:                                              ; preds = %191, %184
  store i32 0, ptr %16, align 4, !tbaa !11
  br label %198

198:                                              ; preds = %222, %197
  %199 = load i32, ptr %16, align 4, !tbaa !11
  %200 = load i32, ptr %6, align 4, !tbaa !11
  %201 = load i32, ptr @nextra, align 4, !tbaa !11
  %202 = add nsw i32 %200, %201
  %203 = icmp slt i32 %199, %202
  br i1 %203, label %204, label %225

204:                                              ; preds = %198
  %205 = load ptr, ptr %4, align 8, !tbaa !5
  %206 = load i64, ptr %5, align 8, !tbaa !9
  call void @N_VRand(ptr noundef %205, i64 noundef %206, double noundef -1.000000e+00, double noundef 1.000000e+00)
  %207 = load ptr, ptr %17, align 8, !tbaa !5
  %208 = load i64, ptr %5, align 8, !tbaa !9
  call void @N_VRand(ptr noundef %207, i64 noundef %208, double noundef -1.000000e+00, double noundef 1.000000e+00)
  call void (...) @ClearCache()
  %209 = call double @get_time()
  store double %209, ptr %7, align 8, !tbaa !13
  %210 = load ptr, ptr %4, align 8, !tbaa !5
  %211 = load ptr, ptr %17, align 8, !tbaa !5
  %212 = load ptr, ptr %4, align 8, !tbaa !5
  call void @N_VLinearSum(double noundef 1.000000e+00, ptr noundef %210, double noundef -1.000000e+00, ptr noundef %211, ptr noundef %212)
  %213 = load ptr, ptr %4, align 8, !tbaa !5
  call void @sync_device(ptr noundef %213)
  %214 = call double @get_time()
  store double %214, ptr %8, align 8, !tbaa !13
  %215 = load double, ptr %8, align 8, !tbaa !13
  %216 = load double, ptr %7, align 8, !tbaa !13
  %217 = fsub double %215, %216
  %218 = load ptr, ptr %9, align 8, !tbaa !5
  %219 = load i32, ptr %16, align 4, !tbaa !11
  %220 = sext i32 %219 to i64
  %221 = getelementptr inbounds double, ptr %218, i64 %220
  store double %217, ptr %221, align 8, !tbaa !13
  br label %222

222:                                              ; preds = %204
  %223 = load i32, ptr %16, align 4, !tbaa !11
  %224 = add nsw i32 %223, 1
  store i32 %224, ptr %16, align 4, !tbaa !11
  br label %198, !llvm.loop !20

225:                                              ; preds = %198
  %226 = load ptr, ptr %4, align 8, !tbaa !5
  %227 = load ptr, ptr %9, align 8, !tbaa !5
  %228 = load i32, ptr @nextra, align 4, !tbaa !11
  %229 = load i32, ptr %6, align 4, !tbaa !11
  call void @time_stats(ptr noundef %226, ptr noundef %227, i32 noundef %228, i32 noundef %229, ptr noundef %10, ptr noundef %11, ptr noundef %12, ptr noundef %13)
  %230 = load i32, ptr @print_time, align 4, !tbaa !11
  %231 = icmp ne i32 %230, 0
  br i1 %231, label %232, label %238

232:                                              ; preds = %225
  %233 = load double, ptr %10, align 8, !tbaa !13
  %234 = load double, ptr %11, align 8, !tbaa !13
  %235 = load double, ptr %12, align 8, !tbaa !13
  %236 = load double, ptr %13, align 8, !tbaa !13
  %237 = call i32 (ptr, ...) @printf(ptr noundef @.str, ptr noundef @.str.5, double noundef %233, double noundef %234, double noundef %235, double noundef %236)
  br label %238

238:                                              ; preds = %232, %225
  store i32 0, ptr %16, align 4, !tbaa !11
  br label %239

239:                                              ; preds = %268, %238
  %240 = load i32, ptr %16, align 4, !tbaa !11
  %241 = load i32, ptr %6, align 4, !tbaa !11
  %242 = load i32, ptr @nextra, align 4, !tbaa !11
  %243 = add nsw i32 %241, %242
  %244 = icmp slt i32 %240, %243
  br i1 %244, label %245, label %271

245:                                              ; preds = %239
  %246 = load ptr, ptr %4, align 8, !tbaa !5
  %247 = load i64, ptr %5, align 8, !tbaa !9
  call void @N_VRand(ptr noundef %246, i64 noundef %247, double noundef -1.000000e+00, double noundef 1.000000e+00)
  %248 = load ptr, ptr %17, align 8, !tbaa !5
  %249 = load i64, ptr %5, align 8, !tbaa !9
  call void @N_VRand(ptr noundef %248, i64 noundef %249, double noundef -1.000000e+00, double noundef 1.000000e+00)
  %250 = call i32 @rand() #6
  %251 = sitofp i32 %250 to double
  %252 = fdiv double %251, 0x41DFFFFFFFC00000
  %253 = fadd double %252, 1.000000e+00
  store double %253, ptr %15, align 8, !tbaa !13
  call void (...) @ClearCache()
  %254 = call double @get_time()
  store double %254, ptr %7, align 8, !tbaa !13
  %255 = load ptr, ptr %4, align 8, !tbaa !5
  %256 = load double, ptr %15, align 8, !tbaa !13
  %257 = load ptr, ptr %17, align 8, !tbaa !5
  %258 = load ptr, ptr %4, align 8, !tbaa !5
  call void @N_VLinearSum(double noundef 1.000000e+00, ptr noundef %255, double noundef %256, ptr noundef %257, ptr noundef %258)
  %259 = load ptr, ptr %4, align 8, !tbaa !5
  call void @sync_device(ptr noundef %259)
  %260 = call double @get_time()
  store double %260, ptr %8, align 8, !tbaa !13
  %261 = load double, ptr %8, align 8, !tbaa !13
  %262 = load double, ptr %7, align 8, !tbaa !13
  %263 = fsub double %261, %262
  %264 = load ptr, ptr %9, align 8, !tbaa !5
  %265 = load i32, ptr %16, align 4, !tbaa !11
  %266 = sext i32 %265 to i64
  %267 = getelementptr inbounds double, ptr %264, i64 %266
  store double %263, ptr %267, align 8, !tbaa !13
  br label %268

268:                                              ; preds = %245
  %269 = load i32, ptr %16, align 4, !tbaa !11
  %270 = add nsw i32 %269, 1
  store i32 %270, ptr %16, align 4, !tbaa !11
  br label %239, !llvm.loop !21

271:                                              ; preds = %239
  %272 = load ptr, ptr %4, align 8, !tbaa !5
  %273 = load ptr, ptr %9, align 8, !tbaa !5
  %274 = load i32, ptr @nextra, align 4, !tbaa !11
  %275 = load i32, ptr %6, align 4, !tbaa !11
  call void @time_stats(ptr noundef %272, ptr noundef %273, i32 noundef %274, i32 noundef %275, ptr noundef %10, ptr noundef %11, ptr noundef %12, ptr noundef %13)
  %276 = load i32, ptr @print_time, align 4, !tbaa !11
  %277 = icmp ne i32 %276, 0
  br i1 %277, label %278, label %284

278:                                              ; preds = %271
  %279 = load double, ptr %10, align 8, !tbaa !13
  %280 = load double, ptr %11, align 8, !tbaa !13
  %281 = load double, ptr %12, align 8, !tbaa !13
  %282 = load double, ptr %13, align 8, !tbaa !13
  %283 = call i32 (ptr, ...) @printf(ptr noundef @.str, ptr noundef @.str.6, double noundef %279, double noundef %280, double noundef %281, double noundef %282)
  br label %284

284:                                              ; preds = %278, %271
  store i32 0, ptr %16, align 4, !tbaa !11
  br label %285

285:                                              ; preds = %310, %284
  %286 = load i32, ptr %16, align 4, !tbaa !11
  %287 = load i32, ptr %6, align 4, !tbaa !11
  %288 = load i32, ptr @nextra, align 4, !tbaa !11
  %289 = add nsw i32 %287, %288
  %290 = icmp slt i32 %286, %289
  br i1 %290, label %291, label %313

291:                                              ; preds = %285
  %292 = load ptr, ptr %4, align 8, !tbaa !5
  %293 = load i64, ptr %5, align 8, !tbaa !9
  call void @N_VRand(ptr noundef %292, i64 noundef %293, double noundef -1.000000e+00, double noundef 1.000000e+00)
  %294 = load ptr, ptr %17, align 8, !tbaa !5
  %295 = load i64, ptr %5, align 8, !tbaa !9
  call void @N_VRand(ptr noundef %294, i64 noundef %295, double noundef -1.000000e+00, double noundef 1.000000e+00)
  %296 = load ptr, ptr %18, align 8, !tbaa !5
  call void @N_VConst(double noundef 0.000000e+00, ptr noundef %296)
  call void (...) @ClearCache()
  %297 = call double @get_time()
  store double %297, ptr %7, align 8, !tbaa !13
  %298 = load ptr, ptr %4, align 8, !tbaa !5
  %299 = load ptr, ptr %17, align 8, !tbaa !5
  %300 = load ptr, ptr %18, align 8, !tbaa !5
  call void @N_VLinearSum(double noundef 1.000000e+00, ptr noundef %298, double noundef 1.000000e+00, ptr noundef %299, ptr noundef %300)
  %301 = load ptr, ptr %4, align 8, !tbaa !5
  call void @sync_device(ptr noundef %301)
  %302 = call double @get_time()
  store double %302, ptr %8, align 8, !tbaa !13
  %303 = load double, ptr %8, align 8, !tbaa !13
  %304 = load double, ptr %7, align 8, !tbaa !13
  %305 = fsub double %303, %304
  %306 = load ptr, ptr %9, align 8, !tbaa !5
  %307 = load i32, ptr %16, align 4, !tbaa !11
  %308 = sext i32 %307 to i64
  %309 = getelementptr inbounds double, ptr %306, i64 %308
  store double %305, ptr %309, align 8, !tbaa !13
  br label %310

310:                                              ; preds = %291
  %311 = load i32, ptr %16, align 4, !tbaa !11
  %312 = add nsw i32 %311, 1
  store i32 %312, ptr %16, align 4, !tbaa !11
  br label %285, !llvm.loop !22

313:                                              ; preds = %285
  %314 = load ptr, ptr %4, align 8, !tbaa !5
  %315 = load ptr, ptr %9, align 8, !tbaa !5
  %316 = load i32, ptr @nextra, align 4, !tbaa !11
  %317 = load i32, ptr %6, align 4, !tbaa !11
  call void @time_stats(ptr noundef %314, ptr noundef %315, i32 noundef %316, i32 noundef %317, ptr noundef %10, ptr noundef %11, ptr noundef %12, ptr noundef %13)
  %318 = load i32, ptr @print_time, align 4, !tbaa !11
  %319 = icmp ne i32 %318, 0
  br i1 %319, label %320, label %326

320:                                              ; preds = %313
  %321 = load double, ptr %10, align 8, !tbaa !13
  %322 = load double, ptr %11, align 8, !tbaa !13
  %323 = load double, ptr %12, align 8, !tbaa !13
  %324 = load double, ptr %13, align 8, !tbaa !13
  %325 = call i32 (ptr, ...) @printf(ptr noundef @.str, ptr noundef @.str.7, double noundef %321, double noundef %322, double noundef %323, double noundef %324)
  br label %326

326:                                              ; preds = %320, %313
  store i32 0, ptr %16, align 4, !tbaa !11
  br label %327

327:                                              ; preds = %352, %326
  %328 = load i32, ptr %16, align 4, !tbaa !11
  %329 = load i32, ptr %6, align 4, !tbaa !11
  %330 = load i32, ptr @nextra, align 4, !tbaa !11
  %331 = add nsw i32 %329, %330
  %332 = icmp slt i32 %328, %331
  br i1 %332, label %333, label %355

333:                                              ; preds = %327
  %334 = load ptr, ptr %4, align 8, !tbaa !5
  %335 = load i64, ptr %5, align 8, !tbaa !9
  call void @N_VRand(ptr noundef %334, i64 noundef %335, double noundef -1.000000e+00, double noundef 1.000000e+00)
  %336 = load ptr, ptr %17, align 8, !tbaa !5
  %337 = load i64, ptr %5, align 8, !tbaa !9
  call void @N_VRand(ptr noundef %336, i64 noundef %337, double noundef -1.000000e+00, double noundef 1.000000e+00)
  %338 = load ptr, ptr %18, align 8, !tbaa !5
  call void @N_VConst(double noundef 0.000000e+00, ptr noundef %338)
  call void (...) @ClearCache()
  %339 = call double @get_time()
  store double %339, ptr %7, align 8, !tbaa !13
  %340 = load ptr, ptr %4, align 8, !tbaa !5
  %341 = load ptr, ptr %17, align 8, !tbaa !5
  %342 = load ptr, ptr %18, align 8, !tbaa !5
  call void @N_VLinearSum(double noundef 1.000000e+00, ptr noundef %340, double noundef -1.000000e+00, ptr noundef %341, ptr noundef %342)
  %343 = load ptr, ptr %4, align 8, !tbaa !5
  call void @sync_device(ptr noundef %343)
  %344 = call double @get_time()
  store double %344, ptr %8, align 8, !tbaa !13
  %345 = load double, ptr %8, align 8, !tbaa !13
  %346 = load double, ptr %7, align 8, !tbaa !13
  %347 = fsub double %345, %346
  %348 = load ptr, ptr %9, align 8, !tbaa !5
  %349 = load i32, ptr %16, align 4, !tbaa !11
  %350 = sext i32 %349 to i64
  %351 = getelementptr inbounds double, ptr %348, i64 %350
  store double %347, ptr %351, align 8, !tbaa !13
  br label %352

352:                                              ; preds = %333
  %353 = load i32, ptr %16, align 4, !tbaa !11
  %354 = add nsw i32 %353, 1
  store i32 %354, ptr %16, align 4, !tbaa !11
  br label %327, !llvm.loop !23

355:                                              ; preds = %327
  %356 = load ptr, ptr %4, align 8, !tbaa !5
  %357 = load ptr, ptr %9, align 8, !tbaa !5
  %358 = load i32, ptr @nextra, align 4, !tbaa !11
  %359 = load i32, ptr %6, align 4, !tbaa !11
  call void @time_stats(ptr noundef %356, ptr noundef %357, i32 noundef %358, i32 noundef %359, ptr noundef %10, ptr noundef %11, ptr noundef %12, ptr noundef %13)
  %360 = load i32, ptr @print_time, align 4, !tbaa !11
  %361 = icmp ne i32 %360, 0
  br i1 %361, label %362, label %368

362:                                              ; preds = %355
  %363 = load double, ptr %10, align 8, !tbaa !13
  %364 = load double, ptr %11, align 8, !tbaa !13
  %365 = load double, ptr %12, align 8, !tbaa !13
  %366 = load double, ptr %13, align 8, !tbaa !13
  %367 = call i32 (ptr, ...) @printf(ptr noundef @.str, ptr noundef @.str.8, double noundef %363, double noundef %364, double noundef %365, double noundef %366)
  br label %368

368:                                              ; preds = %362, %355
  store i32 0, ptr %16, align 4, !tbaa !11
  br label %369

369:                                              ; preds = %394, %368
  %370 = load i32, ptr %16, align 4, !tbaa !11
  %371 = load i32, ptr %6, align 4, !tbaa !11
  %372 = load i32, ptr @nextra, align 4, !tbaa !11
  %373 = add nsw i32 %371, %372
  %374 = icmp slt i32 %370, %373
  br i1 %374, label %375, label %397

375:                                              ; preds = %369
  %376 = load ptr, ptr %4, align 8, !tbaa !5
  %377 = load i64, ptr %5, align 8, !tbaa !9
  call void @N_VRand(ptr noundef %376, i64 noundef %377, double noundef -1.000000e+00, double noundef 1.000000e+00)
  %378 = load ptr, ptr %17, align 8, !tbaa !5
  %379 = load i64, ptr %5, align 8, !tbaa !9
  call void @N_VRand(ptr noundef %378, i64 noundef %379, double noundef -1.000000e+00, double noundef 1.000000e+00)
  %380 = load ptr, ptr %18, align 8, !tbaa !5
  call void @N_VConst(double noundef 0.000000e+00, ptr noundef %380)
  call void (...) @ClearCache()
  %381 = call double @get_time()
  store double %381, ptr %7, align 8, !tbaa !13
  %382 = load ptr, ptr %4, align 8, !tbaa !5
  %383 = load ptr, ptr %17, align 8, !tbaa !5
  %384 = load ptr, ptr %18, align 8, !tbaa !5
  call void @N_VLinearSum(double noundef -1.000000e+00, ptr noundef %382, double noundef 1.000000e+00, ptr noundef %383, ptr noundef %384)
  %385 = load ptr, ptr %4, align 8, !tbaa !5
  call void @sync_device(ptr noundef %385)
  %386 = call double @get_time()
  store double %386, ptr %8, align 8, !tbaa !13
  %387 = load double, ptr %8, align 8, !tbaa !13
  %388 = load double, ptr %7, align 8, !tbaa !13
  %389 = fsub double %387, %388
  %390 = load ptr, ptr %9, align 8, !tbaa !5
  %391 = load i32, ptr %16, align 4, !tbaa !11
  %392 = sext i32 %391 to i64
  %393 = getelementptr inbounds double, ptr %390, i64 %392
  store double %389, ptr %393, align 8, !tbaa !13
  br label %394

394:                                              ; preds = %375
  %395 = load i32, ptr %16, align 4, !tbaa !11
  %396 = add nsw i32 %395, 1
  store i32 %396, ptr %16, align 4, !tbaa !11
  br label %369, !llvm.loop !24

397:                                              ; preds = %369
  %398 = load ptr, ptr %4, align 8, !tbaa !5
  %399 = load ptr, ptr %9, align 8, !tbaa !5
  %400 = load i32, ptr @nextra, align 4, !tbaa !11
  %401 = load i32, ptr %6, align 4, !tbaa !11
  call void @time_stats(ptr noundef %398, ptr noundef %399, i32 noundef %400, i32 noundef %401, ptr noundef %10, ptr noundef %11, ptr noundef %12, ptr noundef %13)
  %402 = load i32, ptr @print_time, align 4, !tbaa !11
  %403 = icmp ne i32 %402, 0
  br i1 %403, label %404, label %410

404:                                              ; preds = %397
  %405 = load double, ptr %10, align 8, !tbaa !13
  %406 = load double, ptr %11, align 8, !tbaa !13
  %407 = load double, ptr %12, align 8, !tbaa !13
  %408 = load double, ptr %13, align 8, !tbaa !13
  %409 = call i32 (ptr, ...) @printf(ptr noundef @.str, ptr noundef @.str.9, double noundef %405, double noundef %406, double noundef %407, double noundef %408)
  br label %410

410:                                              ; preds = %404, %397
  store i32 0, ptr %16, align 4, !tbaa !11
  br label %411

411:                                              ; preds = %441, %410
  %412 = load i32, ptr %16, align 4, !tbaa !11
  %413 = load i32, ptr %6, align 4, !tbaa !11
  %414 = load i32, ptr @nextra, align 4, !tbaa !11
  %415 = add nsw i32 %413, %414
  %416 = icmp slt i32 %412, %415
  br i1 %416, label %417, label %444

417:                                              ; preds = %411
  %418 = load ptr, ptr %4, align 8, !tbaa !5
  %419 = load i64, ptr %5, align 8, !tbaa !9
  call void @N_VRand(ptr noundef %418, i64 noundef %419, double noundef -1.000000e+00, double noundef 1.000000e+00)
  %420 = load ptr, ptr %17, align 8, !tbaa !5
  %421 = load i64, ptr %5, align 8, !tbaa !9
  call void @N_VRand(ptr noundef %420, i64 noundef %421, double noundef -1.000000e+00, double noundef 1.000000e+00)
  %422 = load ptr, ptr %18, align 8, !tbaa !5
  call void @N_VConst(double noundef 0.000000e+00, ptr noundef %422)
  %423 = call i32 @rand() #6
  %424 = sitofp i32 %423 to double
  %425 = fdiv double %424, 0x41DFFFFFFFC00000
  %426 = fadd double %425, 1.000000e+00
  store double %426, ptr %15, align 8, !tbaa !13
  call void (...) @ClearCache()
  %427 = call double @get_time()
  store double %427, ptr %7, align 8, !tbaa !13
  %428 = load ptr, ptr %4, align 8, !tbaa !5
  %429 = load double, ptr %15, align 8, !tbaa !13
  %430 = load ptr, ptr %17, align 8, !tbaa !5
  %431 = load ptr, ptr %18, align 8, !tbaa !5
  call void @N_VLinearSum(double noundef 1.000000e+00, ptr noundef %428, double noundef %429, ptr noundef %430, ptr noundef %431)
  %432 = load ptr, ptr %4, align 8, !tbaa !5
  call void @sync_device(ptr noundef %432)
  %433 = call double @get_time()
  store double %433, ptr %8, align 8, !tbaa !13
  %434 = load double, ptr %8, align 8, !tbaa !13
  %435 = load double, ptr %7, align 8, !tbaa !13
  %436 = fsub double %434, %435
  %437 = load ptr, ptr %9, align 8, !tbaa !5
  %438 = load i32, ptr %16, align 4, !tbaa !11
  %439 = sext i32 %438 to i64
  %440 = getelementptr inbounds double, ptr %437, i64 %439
  store double %436, ptr %440, align 8, !tbaa !13
  br label %441

441:                                              ; preds = %417
  %442 = load i32, ptr %16, align 4, !tbaa !11
  %443 = add nsw i32 %442, 1
  store i32 %443, ptr %16, align 4, !tbaa !11
  br label %411, !llvm.loop !25

444:                                              ; preds = %411
  %445 = load ptr, ptr %4, align 8, !tbaa !5
  %446 = load ptr, ptr %9, align 8, !tbaa !5
  %447 = load i32, ptr @nextra, align 4, !tbaa !11
  %448 = load i32, ptr %6, align 4, !tbaa !11
  call void @time_stats(ptr noundef %445, ptr noundef %446, i32 noundef %447, i32 noundef %448, ptr noundef %10, ptr noundef %11, ptr noundef %12, ptr noundef %13)
  %449 = load i32, ptr @print_time, align 4, !tbaa !11
  %450 = icmp ne i32 %449, 0
  br i1 %450, label %451, label %457

451:                                              ; preds = %444
  %452 = load double, ptr %10, align 8, !tbaa !13
  %453 = load double, ptr %11, align 8, !tbaa !13
  %454 = load double, ptr %12, align 8, !tbaa !13
  %455 = load double, ptr %13, align 8, !tbaa !13
  %456 = call i32 (ptr, ...) @printf(ptr noundef @.str, ptr noundef @.str.10, double noundef %452, double noundef %453, double noundef %454, double noundef %455)
  br label %457

457:                                              ; preds = %451, %444
  store i32 0, ptr %16, align 4, !tbaa !11
  br label %458

458:                                              ; preds = %488, %457
  %459 = load i32, ptr %16, align 4, !tbaa !11
  %460 = load i32, ptr %6, align 4, !tbaa !11
  %461 = load i32, ptr @nextra, align 4, !tbaa !11
  %462 = add nsw i32 %460, %461
  %463 = icmp slt i32 %459, %462
  br i1 %463, label %464, label %491

464:                                              ; preds = %458
  %465 = load ptr, ptr %4, align 8, !tbaa !5
  %466 = load i64, ptr %5, align 8, !tbaa !9
  call void @N_VRand(ptr noundef %465, i64 noundef %466, double noundef -1.000000e+00, double noundef 1.000000e+00)
  %467 = load ptr, ptr %17, align 8, !tbaa !5
  %468 = load i64, ptr %5, align 8, !tbaa !9
  call void @N_VRand(ptr noundef %467, i64 noundef %468, double noundef -1.000000e+00, double noundef 1.000000e+00)
  %469 = load ptr, ptr %18, align 8, !tbaa !5
  call void @N_VConst(double noundef 0.000000e+00, ptr noundef %469)
  %470 = call i32 @rand() #6
  %471 = sitofp i32 %470 to double
  %472 = fdiv double %471, 0x41DFFFFFFFC00000
  %473 = fadd double %472, 1.000000e+00
  store double %473, ptr %14, align 8, !tbaa !13
  call void (...) @ClearCache()
  %474 = call double @get_time()
  store double %474, ptr %7, align 8, !tbaa !13
  %475 = load double, ptr %14, align 8, !tbaa !13
  %476 = load ptr, ptr %4, align 8, !tbaa !5
  %477 = load ptr, ptr %17, align 8, !tbaa !5
  %478 = load ptr, ptr %18, align 8, !tbaa !5
  call void @N_VLinearSum(double noundef %475, ptr noundef %476, double noundef 1.000000e+00, ptr noundef %477, ptr noundef %478)
  %479 = load ptr, ptr %4, align 8, !tbaa !5
  call void @sync_device(ptr noundef %479)
  %480 = call double @get_time()
  store double %480, ptr %8, align 8, !tbaa !13
  %481 = load double, ptr %8, align 8, !tbaa !13
  %482 = load double, ptr %7, align 8, !tbaa !13
  %483 = fsub double %481, %482
  %484 = load ptr, ptr %9, align 8, !tbaa !5
  %485 = load i32, ptr %16, align 4, !tbaa !11
  %486 = sext i32 %485 to i64
  %487 = getelementptr inbounds double, ptr %484, i64 %486
  store double %483, ptr %487, align 8, !tbaa !13
  br label %488

488:                                              ; preds = %464
  %489 = load i32, ptr %16, align 4, !tbaa !11
  %490 = add nsw i32 %489, 1
  store i32 %490, ptr %16, align 4, !tbaa !11
  br label %458, !llvm.loop !26

491:                                              ; preds = %458
  %492 = load ptr, ptr %4, align 8, !tbaa !5
  %493 = load ptr, ptr %9, align 8, !tbaa !5
  %494 = load i32, ptr @nextra, align 4, !tbaa !11
  %495 = load i32, ptr %6, align 4, !tbaa !11
  call void @time_stats(ptr noundef %492, ptr noundef %493, i32 noundef %494, i32 noundef %495, ptr noundef %10, ptr noundef %11, ptr noundef %12, ptr noundef %13)
  %496 = load i32, ptr @print_time, align 4, !tbaa !11
  %497 = icmp ne i32 %496, 0
  br i1 %497, label %498, label %504

498:                                              ; preds = %491
  %499 = load double, ptr %10, align 8, !tbaa !13
  %500 = load double, ptr %11, align 8, !tbaa !13
  %501 = load double, ptr %12, align 8, !tbaa !13
  %502 = load double, ptr %13, align 8, !tbaa !13
  %503 = call i32 (ptr, ...) @printf(ptr noundef @.str, ptr noundef @.str.11, double noundef %499, double noundef %500, double noundef %501, double noundef %502)
  br label %504

504:                                              ; preds = %498, %491
  store i32 0, ptr %16, align 4, !tbaa !11
  br label %505

505:                                              ; preds = %535, %504
  %506 = load i32, ptr %16, align 4, !tbaa !11
  %507 = load i32, ptr %6, align 4, !tbaa !11
  %508 = load i32, ptr @nextra, align 4, !tbaa !11
  %509 = add nsw i32 %507, %508
  %510 = icmp slt i32 %506, %509
  br i1 %510, label %511, label %538

511:                                              ; preds = %505
  %512 = load ptr, ptr %4, align 8, !tbaa !5
  %513 = load i64, ptr %5, align 8, !tbaa !9
  call void @N_VRand(ptr noundef %512, i64 noundef %513, double noundef -1.000000e+00, double noundef 1.000000e+00)
  %514 = load ptr, ptr %17, align 8, !tbaa !5
  %515 = load i64, ptr %5, align 8, !tbaa !9
  call void @N_VRand(ptr noundef %514, i64 noundef %515, double noundef -1.000000e+00, double noundef 1.000000e+00)
  %516 = load ptr, ptr %18, align 8, !tbaa !5
  call void @N_VConst(double noundef 0.000000e+00, ptr noundef %516)
  %517 = call i32 @rand() #6
  %518 = sitofp i32 %517 to double
  %519 = fdiv double %518, 0x41DFFFFFFFC00000
  %520 = fadd double %519, 1.000000e+00
  store double %520, ptr %15, align 8, !tbaa !13
  call void (...) @ClearCache()
  %521 = call double @get_time()
  store double %521, ptr %7, align 8, !tbaa !13
  %522 = load ptr, ptr %4, align 8, !tbaa !5
  %523 = load double, ptr %15, align 8, !tbaa !13
  %524 = load ptr, ptr %17, align 8, !tbaa !5
  %525 = load ptr, ptr %18, align 8, !tbaa !5
  call void @N_VLinearSum(double noundef -1.000000e+00, ptr noundef %522, double noundef %523, ptr noundef %524, ptr noundef %525)
  %526 = load ptr, ptr %4, align 8, !tbaa !5
  call void @sync_device(ptr noundef %526)
  %527 = call double @get_time()
  store double %527, ptr %8, align 8, !tbaa !13
  %528 = load double, ptr %8, align 8, !tbaa !13
  %529 = load double, ptr %7, align 8, !tbaa !13
  %530 = fsub double %528, %529
  %531 = load ptr, ptr %9, align 8, !tbaa !5
  %532 = load i32, ptr %16, align 4, !tbaa !11
  %533 = sext i32 %532 to i64
  %534 = getelementptr inbounds double, ptr %531, i64 %533
  store double %530, ptr %534, align 8, !tbaa !13
  br label %535

535:                                              ; preds = %511
  %536 = load i32, ptr %16, align 4, !tbaa !11
  %537 = add nsw i32 %536, 1
  store i32 %537, ptr %16, align 4, !tbaa !11
  br label %505, !llvm.loop !27

538:                                              ; preds = %505
  %539 = load ptr, ptr %4, align 8, !tbaa !5
  %540 = load ptr, ptr %9, align 8, !tbaa !5
  %541 = load i32, ptr @nextra, align 4, !tbaa !11
  %542 = load i32, ptr %6, align 4, !tbaa !11
  call void @time_stats(ptr noundef %539, ptr noundef %540, i32 noundef %541, i32 noundef %542, ptr noundef %10, ptr noundef %11, ptr noundef %12, ptr noundef %13)
  %543 = load i32, ptr @print_time, align 4, !tbaa !11
  %544 = icmp ne i32 %543, 0
  br i1 %544, label %545, label %551

545:                                              ; preds = %538
  %546 = load double, ptr %10, align 8, !tbaa !13
  %547 = load double, ptr %11, align 8, !tbaa !13
  %548 = load double, ptr %12, align 8, !tbaa !13
  %549 = load double, ptr %13, align 8, !tbaa !13
  %550 = call i32 (ptr, ...) @printf(ptr noundef @.str, ptr noundef @.str.12, double noundef %546, double noundef %547, double noundef %548, double noundef %549)
  br label %551

551:                                              ; preds = %545, %538
  store i32 0, ptr %16, align 4, !tbaa !11
  br label %552

552:                                              ; preds = %582, %551
  %553 = load i32, ptr %16, align 4, !tbaa !11
  %554 = load i32, ptr %6, align 4, !tbaa !11
  %555 = load i32, ptr @nextra, align 4, !tbaa !11
  %556 = add nsw i32 %554, %555
  %557 = icmp slt i32 %553, %556
  br i1 %557, label %558, label %585

558:                                              ; preds = %552
  %559 = load ptr, ptr %4, align 8, !tbaa !5
  %560 = load i64, ptr %5, align 8, !tbaa !9
  call void @N_VRand(ptr noundef %559, i64 noundef %560, double noundef -1.000000e+00, double noundef 1.000000e+00)
  %561 = load ptr, ptr %17, align 8, !tbaa !5
  %562 = load i64, ptr %5, align 8, !tbaa !9
  call void @N_VRand(ptr noundef %561, i64 noundef %562, double noundef -1.000000e+00, double noundef 1.000000e+00)
  %563 = load ptr, ptr %18, align 8, !tbaa !5
  call void @N_VConst(double noundef 0.000000e+00, ptr noundef %563)
  %564 = call i32 @rand() #6
  %565 = sitofp i32 %564 to double
  %566 = fdiv double %565, 0x41DFFFFFFFC00000
  %567 = fadd double %566, 1.000000e+00
  store double %567, ptr %14, align 8, !tbaa !13
  call void (...) @ClearCache()
  %568 = call double @get_time()
  store double %568, ptr %7, align 8, !tbaa !13
  %569 = load double, ptr %14, align 8, !tbaa !13
  %570 = load ptr, ptr %4, align 8, !tbaa !5
  %571 = load ptr, ptr %17, align 8, !tbaa !5
  %572 = load ptr, ptr %18, align 8, !tbaa !5
  call void @N_VLinearSum(double noundef %569, ptr noundef %570, double noundef -1.000000e+00, ptr noundef %571, ptr noundef %572)
  %573 = load ptr, ptr %4, align 8, !tbaa !5
  call void @sync_device(ptr noundef %573)
  %574 = call double @get_time()
  store double %574, ptr %8, align 8, !tbaa !13
  %575 = load double, ptr %8, align 8, !tbaa !13
  %576 = load double, ptr %7, align 8, !tbaa !13
  %577 = fsub double %575, %576
  %578 = load ptr, ptr %9, align 8, !tbaa !5
  %579 = load i32, ptr %16, align 4, !tbaa !11
  %580 = sext i32 %579 to i64
  %581 = getelementptr inbounds double, ptr %578, i64 %580
  store double %577, ptr %581, align 8, !tbaa !13
  br label %582

582:                                              ; preds = %558
  %583 = load i32, ptr %16, align 4, !tbaa !11
  %584 = add nsw i32 %583, 1
  store i32 %584, ptr %16, align 4, !tbaa !11
  br label %552, !llvm.loop !28

585:                                              ; preds = %552
  %586 = load ptr, ptr %4, align 8, !tbaa !5
  %587 = load ptr, ptr %9, align 8, !tbaa !5
  %588 = load i32, ptr @nextra, align 4, !tbaa !11
  %589 = load i32, ptr %6, align 4, !tbaa !11
  call void @time_stats(ptr noundef %586, ptr noundef %587, i32 noundef %588, i32 noundef %589, ptr noundef %10, ptr noundef %11, ptr noundef %12, ptr noundef %13)
  %590 = load i32, ptr @print_time, align 4, !tbaa !11
  %591 = icmp ne i32 %590, 0
  br i1 %591, label %592, label %598

592:                                              ; preds = %585
  %593 = load double, ptr %10, align 8, !tbaa !13
  %594 = load double, ptr %11, align 8, !tbaa !13
  %595 = load double, ptr %12, align 8, !tbaa !13
  %596 = load double, ptr %13, align 8, !tbaa !13
  %597 = call i32 (ptr, ...) @printf(ptr noundef @.str, ptr noundef @.str.13, double noundef %593, double noundef %594, double noundef %595, double noundef %596)
  br label %598

598:                                              ; preds = %592, %585
  store i32 0, ptr %16, align 4, !tbaa !11
  br label %599

599:                                              ; preds = %630, %598
  %600 = load i32, ptr %16, align 4, !tbaa !11
  %601 = load i32, ptr %6, align 4, !tbaa !11
  %602 = load i32, ptr @nextra, align 4, !tbaa !11
  %603 = add nsw i32 %601, %602
  %604 = icmp slt i32 %600, %603
  br i1 %604, label %605, label %633

605:                                              ; preds = %599
  %606 = load ptr, ptr %4, align 8, !tbaa !5
  %607 = load i64, ptr %5, align 8, !tbaa !9
  call void @N_VRand(ptr noundef %606, i64 noundef %607, double noundef -1.000000e+00, double noundef 1.000000e+00)
  %608 = load ptr, ptr %17, align 8, !tbaa !5
  %609 = load i64, ptr %5, align 8, !tbaa !9
  call void @N_VRand(ptr noundef %608, i64 noundef %609, double noundef -1.000000e+00, double noundef 1.000000e+00)
  %610 = load ptr, ptr %18, align 8, !tbaa !5
  call void @N_VConst(double noundef 0.000000e+00, ptr noundef %610)
  %611 = call i32 @rand() #6
  %612 = sitofp i32 %611 to double
  %613 = fdiv double %612, 0x41DFFFFFFFC00000
  %614 = fadd double %613, 1.000000e+00
  store double %614, ptr %14, align 8, !tbaa !13
  call void (...) @ClearCache()
  %615 = call double @get_time()
  store double %615, ptr %7, align 8, !tbaa !13
  %616 = load double, ptr %14, align 8, !tbaa !13
  %617 = load ptr, ptr %4, align 8, !tbaa !5
  %618 = load double, ptr %14, align 8, !tbaa !13
  %619 = load ptr, ptr %17, align 8, !tbaa !5
  %620 = load ptr, ptr %18, align 8, !tbaa !5
  call void @N_VLinearSum(double noundef %616, ptr noundef %617, double noundef %618, ptr noundef %619, ptr noundef %620)
  %621 = load ptr, ptr %4, align 8, !tbaa !5
  call void @sync_device(ptr noundef %621)
  %622 = call double @get_time()
  store double %622, ptr %8, align 8, !tbaa !13
  %623 = load double, ptr %8, align 8, !tbaa !13
  %624 = load double, ptr %7, align 8, !tbaa !13
  %625 = fsub double %623, %624
  %626 = load ptr, ptr %9, align 8, !tbaa !5
  %627 = load i32, ptr %16, align 4, !tbaa !11
  %628 = sext i32 %627 to i64
  %629 = getelementptr inbounds double, ptr %626, i64 %628
  store double %625, ptr %629, align 8, !tbaa !13
  br label %630

630:                                              ; preds = %605
  %631 = load i32, ptr %16, align 4, !tbaa !11
  %632 = add nsw i32 %631, 1
  store i32 %632, ptr %16, align 4, !tbaa !11
  br label %599, !llvm.loop !29

633:                                              ; preds = %599
  %634 = load ptr, ptr %4, align 8, !tbaa !5
  %635 = load ptr, ptr %9, align 8, !tbaa !5
  %636 = load i32, ptr @nextra, align 4, !tbaa !11
  %637 = load i32, ptr %6, align 4, !tbaa !11
  call void @time_stats(ptr noundef %634, ptr noundef %635, i32 noundef %636, i32 noundef %637, ptr noundef %10, ptr noundef %11, ptr noundef %12, ptr noundef %13)
  %638 = load i32, ptr @print_time, align 4, !tbaa !11
  %639 = icmp ne i32 %638, 0
  br i1 %639, label %640, label %646

640:                                              ; preds = %633
  %641 = load double, ptr %10, align 8, !tbaa !13
  %642 = load double, ptr %11, align 8, !tbaa !13
  %643 = load double, ptr %12, align 8, !tbaa !13
  %644 = load double, ptr %13, align 8, !tbaa !13
  %645 = call i32 (ptr, ...) @printf(ptr noundef @.str, ptr noundef @.str.14, double noundef %641, double noundef %642, double noundef %643, double noundef %644)
  br label %646

646:                                              ; preds = %640, %633
  store i32 0, ptr %16, align 4, !tbaa !11
  br label %647

647:                                              ; preds = %680, %646
  %648 = load i32, ptr %16, align 4, !tbaa !11
  %649 = load i32, ptr %6, align 4, !tbaa !11
  %650 = load i32, ptr @nextra, align 4, !tbaa !11
  %651 = add nsw i32 %649, %650
  %652 = icmp slt i32 %648, %651
  br i1 %652, label %653, label %683

653:                                              ; preds = %647
  %654 = load ptr, ptr %4, align 8, !tbaa !5
  %655 = load i64, ptr %5, align 8, !tbaa !9
  call void @N_VRand(ptr noundef %654, i64 noundef %655, double noundef -1.000000e+00, double noundef 1.000000e+00)
  %656 = load ptr, ptr %17, align 8, !tbaa !5
  %657 = load i64, ptr %5, align 8, !tbaa !9
  call void @N_VRand(ptr noundef %656, i64 noundef %657, double noundef -1.000000e+00, double noundef 1.000000e+00)
  %658 = load ptr, ptr %18, align 8, !tbaa !5
  call void @N_VConst(double noundef 0.000000e+00, ptr noundef %658)
  %659 = call i32 @rand() #6
  %660 = sitofp i32 %659 to double
  %661 = fdiv double %660, 0x41DFFFFFFFC00000
  %662 = fadd double %661, 1.000000e+00
  store double %662, ptr %14, align 8, !tbaa !13
  %663 = load double, ptr %14, align 8, !tbaa !13
  %664 = fmul double -1.000000e+00, %663
  store double %664, ptr %15, align 8, !tbaa !13
  call void (...) @ClearCache()
  %665 = call double @get_time()
  store double %665, ptr %7, align 8, !tbaa !13
  %666 = load double, ptr %14, align 8, !tbaa !13
  %667 = load ptr, ptr %4, align 8, !tbaa !5
  %668 = load double, ptr %15, align 8, !tbaa !13
  %669 = load ptr, ptr %17, align 8, !tbaa !5
  %670 = load ptr, ptr %18, align 8, !tbaa !5
  call void @N_VLinearSum(double noundef %666, ptr noundef %667, double noundef %668, ptr noundef %669, ptr noundef %670)
  %671 = load ptr, ptr %4, align 8, !tbaa !5
  call void @sync_device(ptr noundef %671)
  %672 = call double @get_time()
  store double %672, ptr %8, align 8, !tbaa !13
  %673 = load double, ptr %8, align 8, !tbaa !13
  %674 = load double, ptr %7, align 8, !tbaa !13
  %675 = fsub double %673, %674
  %676 = load ptr, ptr %9, align 8, !tbaa !5
  %677 = load i32, ptr %16, align 4, !tbaa !11
  %678 = sext i32 %677 to i64
  %679 = getelementptr inbounds double, ptr %676, i64 %678
  store double %675, ptr %679, align 8, !tbaa !13
  br label %680

680:                                              ; preds = %653
  %681 = load i32, ptr %16, align 4, !tbaa !11
  %682 = add nsw i32 %681, 1
  store i32 %682, ptr %16, align 4, !tbaa !11
  br label %647, !llvm.loop !30

683:                                              ; preds = %647
  %684 = load ptr, ptr %4, align 8, !tbaa !5
  %685 = load ptr, ptr %9, align 8, !tbaa !5
  %686 = load i32, ptr @nextra, align 4, !tbaa !11
  %687 = load i32, ptr %6, align 4, !tbaa !11
  call void @time_stats(ptr noundef %684, ptr noundef %685, i32 noundef %686, i32 noundef %687, ptr noundef %10, ptr noundef %11, ptr noundef %12, ptr noundef %13)
  %688 = load i32, ptr @print_time, align 4, !tbaa !11
  %689 = icmp ne i32 %688, 0
  br i1 %689, label %690, label %696

690:                                              ; preds = %683
  %691 = load double, ptr %10, align 8, !tbaa !13
  %692 = load double, ptr %11, align 8, !tbaa !13
  %693 = load double, ptr %12, align 8, !tbaa !13
  %694 = load double, ptr %13, align 8, !tbaa !13
  %695 = call i32 (ptr, ...) @printf(ptr noundef @.str, ptr noundef @.str.15, double noundef %691, double noundef %692, double noundef %693, double noundef %694)
  br label %696

696:                                              ; preds = %690, %683
  store i32 0, ptr %16, align 4, !tbaa !11
  br label %697

697:                                              ; preds = %732, %696
  %698 = load i32, ptr %16, align 4, !tbaa !11
  %699 = load i32, ptr %6, align 4, !tbaa !11
  %700 = load i32, ptr @nextra, align 4, !tbaa !11
  %701 = add nsw i32 %699, %700
  %702 = icmp slt i32 %698, %701
  br i1 %702, label %703, label %735

703:                                              ; preds = %697
  %704 = load ptr, ptr %4, align 8, !tbaa !5
  %705 = load i64, ptr %5, align 8, !tbaa !9
  call void @N_VRand(ptr noundef %704, i64 noundef %705, double noundef -1.000000e+00, double noundef 1.000000e+00)
  %706 = load ptr, ptr %17, align 8, !tbaa !5
  %707 = load i64, ptr %5, align 8, !tbaa !9
  call void @N_VRand(ptr noundef %706, i64 noundef %707, double noundef -1.000000e+00, double noundef 1.000000e+00)
  %708 = load ptr, ptr %18, align 8, !tbaa !5
  call void @N_VConst(double noundef 0.000000e+00, ptr noundef %708)
  %709 = call i32 @rand() #6
  %710 = sitofp i32 %709 to double
  %711 = fdiv double %710, 0x41DFFFFFFFC00000
  %712 = call double @llvm.fmuladd.f64(double 2.000000e+00, double %711, double -1.000000e+00)
  store double %712, ptr %14, align 8, !tbaa !13
  %713 = call i32 @rand() #6
  %714 = sitofp i32 %713 to double
  %715 = fdiv double %714, 0x41DFFFFFFFC00000
  %716 = call double @llvm.fmuladd.f64(double 2.000000e+00, double %715, double -1.000000e+00)
  store double %716, ptr %15, align 8, !tbaa !13
  call void (...) @ClearCache()
  %717 = call double @get_time()
  store double %717, ptr %7, align 8, !tbaa !13
  %718 = load double, ptr %14, align 8, !tbaa !13
  %719 = load ptr, ptr %4, align 8, !tbaa !5
  %720 = load double, ptr %15, align 8, !tbaa !13
  %721 = load ptr, ptr %17, align 8, !tbaa !5
  %722 = load ptr, ptr %18, align 8, !tbaa !5
  call void @N_VLinearSum(double noundef %718, ptr noundef %719, double noundef %720, ptr noundef %721, ptr noundef %722)
  %723 = load ptr, ptr %4, align 8, !tbaa !5
  call void @sync_device(ptr noundef %723)
  %724 = call double @get_time()
  store double %724, ptr %8, align 8, !tbaa !13
  %725 = load double, ptr %8, align 8, !tbaa !13
  %726 = load double, ptr %7, align 8, !tbaa !13
  %727 = fsub double %725, %726
  %728 = load ptr, ptr %9, align 8, !tbaa !5
  %729 = load i32, ptr %16, align 4, !tbaa !11
  %730 = sext i32 %729 to i64
  %731 = getelementptr inbounds double, ptr %728, i64 %730
  store double %727, ptr %731, align 8, !tbaa !13
  br label %732

732:                                              ; preds = %703
  %733 = load i32, ptr %16, align 4, !tbaa !11
  %734 = add nsw i32 %733, 1
  store i32 %734, ptr %16, align 4, !tbaa !11
  br label %697, !llvm.loop !31

735:                                              ; preds = %697
  %736 = load ptr, ptr %4, align 8, !tbaa !5
  %737 = load ptr, ptr %9, align 8, !tbaa !5
  %738 = load i32, ptr @nextra, align 4, !tbaa !11
  %739 = load i32, ptr %6, align 4, !tbaa !11
  call void @time_stats(ptr noundef %736, ptr noundef %737, i32 noundef %738, i32 noundef %739, ptr noundef %10, ptr noundef %11, ptr noundef %12, ptr noundef %13)
  %740 = load i32, ptr @print_time, align 4, !tbaa !11
  %741 = icmp ne i32 %740, 0
  br i1 %741, label %742, label %748

742:                                              ; preds = %735
  %743 = load double, ptr %10, align 8, !tbaa !13
  %744 = load double, ptr %11, align 8, !tbaa !13
  %745 = load double, ptr %12, align 8, !tbaa !13
  %746 = load double, ptr %13, align 8, !tbaa !13
  %747 = call i32 (ptr, ...) @printf(ptr noundef @.str, ptr noundef @.str.16, double noundef %743, double noundef %744, double noundef %745, double noundef %746)
  br label %748

748:                                              ; preds = %742, %735
  %749 = load ptr, ptr %9, align 8, !tbaa !5
  call void @free(ptr noundef %749) #6
  %750 = load ptr, ptr %17, align 8, !tbaa !5
  call void @N_VDestroy(ptr noundef %750)
  %751 = load ptr, ptr %18, align 8, !tbaa !5
  call void @N_VDestroy(ptr noundef %751)
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #6
  ret i32 0
}

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1

; Function Attrs: nounwind allocsize(0)
declare noalias ptr @malloc(i64 noundef) #2

declare ptr @N_VClone(ptr noundef) #3

declare void @N_VRand(ptr noundef, i64 noundef, double noundef, double noundef) #3

declare void @ClearCache(...) #3

declare void @N_VLinearSum(double noundef, ptr noundef, double noundef, ptr noundef, ptr noundef) #3

declare void @sync_device(ptr noundef) #3

; Function Attrs: nounwind uwtable
declare hidden void @time_stats(ptr noundef, ptr noundef, i32 noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #0

declare i32 @printf(ptr noundef, ...) #3

; Function Attrs: nounwind
declare i32 @rand() #4

declare void @N_VConst(double noundef, ptr noundef) #3

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #5

; Function Attrs: nounwind
declare void @free(ptr noundef) #4

declare void @N_VDestroy(ptr noundef) #3

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1

; Function Attrs: nounwind uwtable
declare hidden double @get_time() #0

attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nounwind allocsize(0) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #6 = { nounwind }
attributes #7 = { nounwind allocsize(0) }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"long", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"double", !7, i64 0}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.mustprogress"}
!17 = distinct !{!17, !16}
!18 = distinct !{!18, !16}
!19 = distinct !{!19, !16}
!20 = distinct !{!20, !16}
!21 = distinct !{!21, !16}
!22 = distinct !{!22, !16}
!23 = distinct !{!23, !16}
!24 = distinct !{!24, !16}
!25 = distinct !{!25, !16}
!26 = distinct !{!26, !16}
!27 = distinct !{!27, !16}
!28 = distinct !{!28, !16}
!29 = distinct !{!29, !16}
!30 = distinct !{!30, !16}
!31 = distinct !{!31, !16}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

@print_time = external dso_local local_unnamed_addr global i32, align 4
@nextra = external dso_local local_unnamed_addr global i32, align 4
@.str = external hidden unnamed_addr constant [38 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [15 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local noundef i32 @Test_N_VLinearSum(ptr noundef %0, i64 noundef %1, i32 noundef %2) local_unnamed_addr #0 {
  %4 = alloca double, align 8
  %5 = alloca double, align 8
  %6 = alloca double, align 8
  %7 = alloca double, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #8
  %8 = load i32, ptr @nextra, align 4, !tbaa !5
  %9 = add nsw i32 %8, %2
  %10 = sext i32 %9 to i64
  %11 = shl nsw i64 %10, 3
  %12 = tail call noalias ptr @malloc(i64 noundef %11) #9
  %13 = tail call ptr @N_VClone(ptr noundef %0) #8
  %14 = tail call ptr @N_VClone(ptr noundef %0) #8
  %15 = load i32, ptr @nextra, align 4, !tbaa !5
  %16 = add nsw i32 %15, %2
  %17 = icmp sgt i32 %16, 0
  br i1 %17, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %3, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph ], [ 0, %3 ]
  tail call void @N_VRand(ptr noundef %0, i64 noundef %1, double noundef -1.000000e+00, double noundef 1.000000e+00) #8
  tail call void @N_VRand(ptr noundef %13, i64 noundef %1, double noundef -1.000000e+00, double noundef 1.000000e+00) #8
  tail call void (...) @ClearCache() #8
  %18 = tail call double @get_time()
  tail call void @N_VLinearSum(double noundef 1.000000e+00, ptr noundef %0, double noundef 1.000000e+00, ptr noundef %13, ptr noundef %13) #8
  tail call void @sync_device(ptr noundef %0) #8
  %19 = tail call double @get_time()
  %20 = fsub double %19, %18
  %21 = getelementptr inbounds double, ptr %12, i64 %indvars.iv
  store double %20, ptr %21, align 8, !tbaa !9
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %22 = load i32, ptr @nextra, align 4, !tbaa !5
  %23 = add nsw i32 %22, %2
  %24 = sext i32 %23 to i64
  %25 = icmp slt i64 %indvars.iv.next, %24
  br i1 %25, label %.lr.ph, label %._crit_edge, !llvm.loop !11

._crit_edge:                                      ; preds = %.lr.ph, %3
  %.lcssa345 = phi i32 [ %15, %3 ], [ %22, %.lr.ph ]
  call void @time_stats(ptr noundef %0, ptr noundef %12, i32 noundef %.lcssa345, i32 noundef %2, ptr noundef nonnull %4, ptr noundef nonnull %5, ptr noundef nonnull %6, ptr noundef nonnull %7)
  %26 = load i32, ptr @print_time, align 4, !tbaa !5
  %.not = icmp eq i32 %26, 0
  br i1 %.not, label %33, label %27

27:                                               ; preds = %._crit_edge
  %28 = load double, ptr %4, align 8, !tbaa !9
  %29 = load double, ptr %5, align 8, !tbaa !9
  %30 = load double, ptr %6, align 8, !tbaa !9
  %31 = load double, ptr %7, align 8, !tbaa !9
  %32 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str, ptr noundef nonnull @.str.1, double noundef %28, double noundef %29, double noundef %30, double noundef %31)
  br label %33

33:                                               ; preds = %27, %._crit_edge
  %34 = load i32, ptr @nextra, align 4, !tbaa !5
  %35 = add nsw i32 %34, %2
  %36 = icmp sgt i32 %35, 0
  br i1 %36, label %.lr.ph349, label %._crit_edge350

.lr.ph349:                                        ; preds = %33, %.lr.ph349
  %indvars.iv439 = phi i64 [ %indvars.iv.next440, %.lr.ph349 ], [ 0, %33 ]
  call void @N_VRand(ptr noundef %0, i64 noundef %1, double noundef -1.000000e+00, double noundef 1.000000e+00) #8
  call void @N_VRand(ptr noundef %13, i64 noundef %1, double noundef -1.000000e+00, double noundef 1.000000e+00) #8
  call void (...) @ClearCache() #8
  %37 = call double @get_time()
  call void @N_VLinearSum(double noundef -1.000000e+00, ptr noundef %0, double noundef 1.000000e+00, ptr noundef %13, ptr noundef %13) #8
  call void @sync_device(ptr noundef %0) #8
  %38 = call double @get_time()
  %39 = fsub double %38, %37
  %40 = getelementptr inbounds double, ptr %12, i64 %indvars.iv439
  store double %39, ptr %40, align 8, !tbaa !9
  %indvars.iv.next440 = add nuw nsw i64 %indvars.iv439, 1
  %41 = load i32, ptr @nextra, align 4, !tbaa !5
  %42 = add nsw i32 %41, %2
  %43 = sext i32 %42 to i64
  %44 = icmp slt i64 %indvars.iv.next440, %43
  br i1 %44, label %.lr.ph349, label %._crit_edge350, !llvm.loop !13

._crit_edge350:                                   ; preds = %.lr.ph349, %33
  %.lcssa344 = phi i32 [ %34, %33 ], [ %41, %.lr.ph349 ]
  call void @time_stats(ptr noundef %0, ptr noundef %12, i32 noundef %.lcssa344, i32 noundef %2, ptr noundef nonnull %4, ptr noundef nonnull %5, ptr noundef nonnull %6, ptr noundef nonnull %7)
  %45 = load i32, ptr @print_time, align 4, !tbaa !5
  %.not316 = icmp eq i32 %45, 0
  br i1 %.not316, label %52, label %46

46:                                               ; preds = %._crit_edge350
  %47 = load double, ptr %4, align 8, !tbaa !9
  %48 = load double, ptr %5, align 8, !tbaa !9
  %49 = load double, ptr %6, align 8, !tbaa !9
  %50 = load double, ptr %7, align 8, !tbaa !9
  %51 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str, ptr noundef nonnull @.str.2, double noundef %47, double noundef %48, double noundef %49, double noundef %50)
  br label %52

52:                                               ; preds = %46, %._crit_edge350
  %53 = load i32, ptr @nextra, align 4, !tbaa !5
  %54 = add nsw i32 %53, %2
  %55 = icmp sgt i32 %54, 0
  br i1 %55, label %.lr.ph354, label %._crit_edge355

.lr.ph354:                                        ; preds = %52, %.lr.ph354
  %indvars.iv442 = phi i64 [ %indvars.iv.next443, %.lr.ph354 ], [ 0, %52 ]
  call void @N_VRand(ptr noundef %0, i64 noundef %1, double noundef -1.000000e+00, double noundef 1.000000e+00) #8
  call void @N_VRand(ptr noundef %13, i64 noundef %1, double noundef -1.000000e+00, double noundef 1.000000e+00) #8
  %56 = call i32 @rand() #8
  %57 = sitofp i32 %56 to double
  %58 = fdiv double %57, 0x41DFFFFFFFC00000
  %59 = fadd double %58, 1.000000e+00
  call void (...) @ClearCache() #8
  %60 = call double @get_time()
  call void @N_VLinearSum(double noundef %59, ptr noundef %0, double noundef 1.000000e+00, ptr noundef %13, ptr noundef %13) #8
  call void @sync_device(ptr noundef %0) #8
  %61 = call double @get_time()
  %62 = fsub double %61, %60
  %63 = getelementptr inbounds double, ptr %12, i64 %indvars.iv442
  store double %62, ptr %63, align 8, !tbaa !9
  %indvars.iv.next443 = add nuw nsw i64 %indvars.iv442, 1
  %64 = load i32, ptr @nextra, align 4, !tbaa !5
  %65 = add nsw i32 %64, %2
  %66 = sext i32 %65 to i64
  %67 = icmp slt i64 %indvars.iv.next443, %66
  br i1 %67, label %.lr.ph354, label %._crit_edge355, !llvm.loop !14

._crit_edge355:                                   ; preds = %.lr.ph354, %52
  %.lcssa343 = phi i32 [ %53, %52 ], [ %64, %.lr.ph354 ]
  call void @time_stats(ptr noundef %0, ptr noundef %12, i32 noundef %.lcssa343, i32 noundef %2, ptr noundef nonnull %4, ptr noundef nonnull %5, ptr noundef nonnull %6, ptr noundef nonnull %7)
  %68 = load i32, ptr @print_time, align 4, !tbaa !5
  %.not317 = icmp eq i32 %68, 0
  br i1 %.not317, label %75, label %69

69:                                               ; preds = %._crit_edge355
  %70 = load double, ptr %4, align 8, !tbaa !9
  %71 = load double, ptr %5, align 8, !tbaa !9
  %72 = load double, ptr %6, align 8, !tbaa !9
  %73 = load double, ptr %7, align 8, !tbaa !9
  %74 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str, ptr noundef nonnull @.str.3, double noundef %70, double noundef %71, double noundef %72, double noundef %73)
  br label %75

75:                                               ; preds = %69, %._crit_edge355
  %76 = load i32, ptr @nextra, align 4, !tbaa !5
  %77 = add nsw i32 %76, %2
  %78 = icmp sgt i32 %77, 0
  br i1 %78, label %.lr.ph359, label %._crit_edge360

.lr.ph359:                                        ; preds = %75, %.lr.ph359
  %indvars.iv445 = phi i64 [ %indvars.iv.next446, %.lr.ph359 ], [ 0, %75 ]
  call void @N_VRand(ptr noundef %0, i64 noundef %1, double noundef -1.000000e+00, double noundef 1.000000e+00) #8
  call void @N_VRand(ptr noundef %13, i64 noundef %1, double noundef -1.000000e+00, double noundef 1.000000e+00) #8
  call void (...) @ClearCache() #8
  %79 = call double @get_time()
  call void @N_VLinearSum(double noundef 1.000000e+00, ptr noundef %0, double noundef 1.000000e+00, ptr noundef %13, ptr noundef %0) #8
  call void @sync_device(ptr noundef %0) #8
  %80 = call double @get_time()
  %81 = fsub double %80, %79
  %82 = getelementptr inbounds double, ptr %12, i64 %indvars.iv445
  store double %81, ptr %82, align 8, !tbaa !9
  %indvars.iv.next446 = add nuw nsw i64 %indvars.iv445, 1
  %83 = load i32, ptr @nextra, align 4, !tbaa !5
  %84 = add nsw i32 %83, %2
  %85 = sext i32 %84 to i64
  %86 = icmp slt i64 %indvars.iv.next446, %85
  br i1 %86, label %.lr.ph359, label %._crit_edge360, !llvm.loop !15

._crit_edge360:                                   ; preds = %.lr.ph359, %75
  %.lcssa342 = phi i32 [ %76, %75 ], [ %83, %.lr.ph359 ]
  call void @time_stats(ptr noundef %0, ptr noundef %12, i32 noundef %.lcssa342, i32 noundef %2, ptr noundef nonnull %4, ptr noundef nonnull %5, ptr noundef nonnull %6, ptr noundef nonnull %7)
  %87 = load i32, ptr @print_time, align 4, !tbaa !5
  %.not318 = icmp eq i32 %87, 0
  br i1 %.not318, label %94, label %88

88:                                               ; preds = %._crit_edge360
  %89 = load double, ptr %4, align 8, !tbaa !9
  %90 = load double, ptr %5, align 8, !tbaa !9
  %91 = load double, ptr %6, align 8, !tbaa !9
  %92 = load double, ptr %7, align 8, !tbaa !9
  %93 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str, ptr noundef nonnull @.str.4, double noundef %89, double noundef %90, double noundef %91, double noundef %92)
  br label %94

94:                                               ; preds = %88, %._crit_edge360
  %95 = load i32, ptr @nextra, align 4, !tbaa !5
  %96 = add nsw i32 %95, %2
  %97 = icmp sgt i32 %96, 0
  br i1 %97, label %.lr.ph364, label %._crit_edge365

.lr.ph364:                                        ; preds = %94, %.lr.ph364
  %indvars.iv448 = phi i64 [ %indvars.iv.next449, %.lr.ph364 ], [ 0, %94 ]
  call void @N_VRand(ptr noundef %0, i64 noundef %1, double noundef -1.000000e+00, double noundef 1.000000e+00) #8
  call void @N_VRand(ptr noundef %13, i64 noundef %1, double noundef -1.000000e+00, double noundef 1.000000e+00) #8
  call void (...) @ClearCache() #8
  %98 = call double @get_time()
  call void @N_VLinearSum(double noundef 1.000000e+00, ptr noundef %0, double noundef -1.000000e+00, ptr noundef %13, ptr noundef %0) #8
  call void @sync_device(ptr noundef %0) #8
  %99 = call double @get_time()
  %100 = fsub double %99, %98
  %101 = getelementptr inbounds double, ptr %12, i64 %indvars.iv448
  store double %100, ptr %101, align 8, !tbaa !9
  %indvars.iv.next449 = add nuw nsw i64 %indvars.iv448, 1
  %102 = load i32, ptr @nextra, align 4, !tbaa !5
  %103 = add nsw i32 %102, %2
  %104 = sext i32 %103 to i64
  %105 = icmp slt i64 %indvars.iv.next449, %104
  br i1 %105, label %.lr.ph364, label %._crit_edge365, !llvm.loop !16

._crit_edge365:                                   ; preds = %.lr.ph364, %94
  %.lcssa341 = phi i32 [ %95, %94 ], [ %102, %.lr.ph364 ]
  call void @time_stats(ptr noundef %0, ptr noundef %12, i32 noundef %.lcssa341, i32 noundef %2, ptr noundef nonnull %4, ptr noundef nonnull %5, ptr noundef nonnull %6, ptr noundef nonnull %7)
  %106 = load i32, ptr @print_time, align 4, !tbaa !5
  %.not319 = icmp eq i32 %106, 0
  br i1 %.not319, label %113, label %107

107:                                              ; preds = %._crit_edge365
  %108 = load double, ptr %4, align 8, !tbaa !9
  %109 = load double, ptr %5, align 8, !tbaa !9
  %110 = load double, ptr %6, align 8, !tbaa !9
  %111 = load double, ptr %7, align 8, !tbaa !9
  %112 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str, ptr noundef nonnull @.str.5, double noundef %108, double noundef %109, double noundef %110, double noundef %111)
  br label %113

113:                                              ; preds = %107, %._crit_edge365
  %114 = load i32, ptr @nextra, align 4, !tbaa !5
  %115 = add nsw i32 %114, %2
  %116 = icmp sgt i32 %115, 0
  br i1 %116, label %.lr.ph369, label %._crit_edge370

.lr.ph369:                                        ; preds = %113, %.lr.ph369
  %indvars.iv451 = phi i64 [ %indvars.iv.next452, %.lr.ph369 ], [ 0, %113 ]
  call void @N_VRand(ptr noundef %0, i64 noundef %1, double noundef -1.000000e+00, double noundef 1.000000e+00) #8
  call void @N_VRand(ptr noundef %13, i64 noundef %1, double noundef -1.000000e+00, double noundef 1.000000e+00) #8
  %117 = call i32 @rand() #8
  %118 = sitofp i32 %117 to double
  %119 = fdiv double %118, 0x41DFFFFFFFC00000
  %120 = fadd double %119, 1.000000e+00
  call void (...) @ClearCache() #8
  %121 = call double @get_time()
  call void @N_VLinearSum(double noundef 1.000000e+00, ptr noundef %0, double noundef %120, ptr noundef %13, ptr noundef %0) #8
  call void @sync_device(ptr noundef %0) #8
  %122 = call double @get_time()
  %123 = fsub double %122, %121
  %124 = getelementptr inbounds double, ptr %12, i64 %indvars.iv451
  store double %123, ptr %124, align 8, !tbaa !9
  %indvars.iv.next452 = add nuw nsw i64 %indvars.iv451, 1
  %125 = load i32, ptr @nextra, align 4, !tbaa !5
  %126 = add nsw i32 %125, %2
  %127 = sext i32 %126 to i64
  %128 = icmp slt i64 %indvars.iv.next452, %127
  br i1 %128, label %.lr.ph369, label %._crit_edge370, !llvm.loop !17

._crit_edge370:                                   ; preds = %.lr.ph369, %113
  %.lcssa340 = phi i32 [ %114, %113 ], [ %125, %.lr.ph369 ]
  call void @time_stats(ptr noundef %0, ptr noundef %12, i32 noundef %.lcssa340, i32 noundef %2, ptr noundef nonnull %4, ptr noundef nonnull %5, ptr noundef nonnull %6, ptr noundef nonnull %7)
  %129 = load i32, ptr @print_time, align 4, !tbaa !5
  %.not320 = icmp eq i32 %129, 0
  br i1 %.not320, label %136, label %130

130:                                              ; preds = %._crit_edge370
  %131 = load double, ptr %4, align 8, !tbaa !9
  %132 = load double, ptr %5, align 8, !tbaa !9
  %133 = load double, ptr %6, align 8, !tbaa !9
  %134 = load double, ptr %7, align 8, !tbaa !9
  %135 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str, ptr noundef nonnull @.str.6, double noundef %131, double noundef %132, double noundef %133, double noundef %134)
  br label %136

136:                                              ; preds = %130, %._crit_edge370
  %137 = load i32, ptr @nextra, align 4, !tbaa !5
  %138 = add nsw i32 %137, %2
  %139 = icmp sgt i32 %138, 0
  br i1 %139, label %.lr.ph374, label %._crit_edge375

.lr.ph374:                                        ; preds = %136, %.lr.ph374
  %indvars.iv454 = phi i64 [ %indvars.iv.next455, %.lr.ph374 ], [ 0, %136 ]
  call void @N_VRand(ptr noundef %0, i64 noundef %1, double noundef -1.000000e+00, double noundef 1.000000e+00) #8
  call void @N_VRand(ptr noundef %13, i64 noundef %1, double noundef -1.000000e+00, double noundef 1.000000e+00) #8
  call void @N_VConst(double noundef 0.000000e+00, ptr noundef %14) #8
  call void (...) @ClearCache() #8
  %140 = call double @get_time()
  call void @N_VLinearSum(double noundef 1.000000e+00, ptr noundef %0, double noundef 1.000000e+00, ptr noundef %13, ptr noundef %14) #8
  call void @sync_device(ptr noundef %0) #8
  %141 = call double @get_time()
  %142 = fsub double %141, %140
  %143 = getelementptr inbounds double, ptr %12, i64 %indvars.iv454
  store double %142, ptr %143, align 8, !tbaa !9
  %indvars.iv.next455 = add nuw nsw i64 %indvars.iv454, 1
  %144 = load i32, ptr @nextra, align 4, !tbaa !5
  %145 = add nsw i32 %144, %2
  %146 = sext i32 %145 to i64
  %147 = icmp slt i64 %indvars.iv.next455, %146
  br i1 %147, label %.lr.ph374, label %._crit_edge375, !llvm.loop !18

._crit_edge375:                                   ; preds = %.lr.ph374, %136
  %.lcssa339 = phi i32 [ %137, %136 ], [ %144, %.lr.ph374 ]
  call void @time_stats(ptr noundef %0, ptr noundef %12, i32 noundef %.lcssa339, i32 noundef %2, ptr noundef nonnull %4, ptr noundef nonnull %5, ptr noundef nonnull %6, ptr noundef nonnull %7)
  %148 = load i32, ptr @print_time, align 4, !tbaa !5
  %.not321 = icmp eq i32 %148, 0
  br i1 %.not321, label %155, label %149

149:                                              ; preds = %._crit_edge375
  %150 = load double, ptr %4, align 8, !tbaa !9
  %151 = load double, ptr %5, align 8, !tbaa !9
  %152 = load double, ptr %6, align 8, !tbaa !9
  %153 = load double, ptr %7, align 8, !tbaa !9
  %154 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str, ptr noundef nonnull @.str.7, double noundef %150, double noundef %151, double noundef %152, double noundef %153)
  br label %155

155:                                              ; preds = %149, %._crit_edge375
  %156 = load i32, ptr @nextra, align 4, !tbaa !5
  %157 = add nsw i32 %156, %2
  %158 = icmp sgt i32 %157, 0
  br i1 %158, label %.lr.ph379, label %._crit_edge380

.lr.ph379:                                        ; preds = %155, %.lr.ph379
  %indvars.iv457 = phi i64 [ %indvars.iv.next458, %.lr.ph379 ], [ 0, %155 ]
  call void @N_VRand(ptr noundef %0, i64 noundef %1, double noundef -1.000000e+00, double noundef 1.000000e+00) #8
  call void @N_VRand(ptr noundef %13, i64 noundef %1, double noundef -1.000000e+00, double noundef 1.000000e+00) #8
  call void @N_VConst(double noundef 0.000000e+00, ptr noundef %14) #8
  call void (...) @ClearCache() #8
  %159 = call double @get_time()
  call void @N_VLinearSum(double noundef 1.000000e+00, ptr noundef %0, double noundef -1.000000e+00, ptr noundef %13, ptr noundef %14) #8
  call void @sync_device(ptr noundef %0) #8
  %160 = call double @get_time()
  %161 = fsub double %160, %159
  %162 = getelementptr inbounds double, ptr %12, i64 %indvars.iv457
  store double %161, ptr %162, align 8, !tbaa !9
  %indvars.iv.next458 = add nuw nsw i64 %indvars.iv457, 1
  %163 = load i32, ptr @nextra, align 4, !tbaa !5
  %164 = add nsw i32 %163, %2
  %165 = sext i32 %164 to i64
  %166 = icmp slt i64 %indvars.iv.next458, %165
  br i1 %166, label %.lr.ph379, label %._crit_edge380, !llvm.loop !19

._crit_edge380:                                   ; preds = %.lr.ph379, %155
  %.lcssa338 = phi i32 [ %156, %155 ], [ %163, %.lr.ph379 ]
  call void @time_stats(ptr noundef %0, ptr noundef %12, i32 noundef %.lcssa338, i32 noundef %2, ptr noundef nonnull %4, ptr noundef nonnull %5, ptr noundef nonnull %6, ptr noundef nonnull %7)
  %167 = load i32, ptr @print_time, align 4, !tbaa !5
  %.not322 = icmp eq i32 %167, 0
  br i1 %.not322, label %174, label %168

168:                                              ; preds = %._crit_edge380
  %169 = load double, ptr %4, align 8, !tbaa !9
  %170 = load double, ptr %5, align 8, !tbaa !9
  %171 = load double, ptr %6, align 8, !tbaa !9
  %172 = load double, ptr %7, align 8, !tbaa !9
  %173 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str, ptr noundef nonnull @.str.8, double noundef %169, double noundef %170, double noundef %171, double noundef %172)
  br label %174

174:                                              ; preds = %168, %._crit_edge380
  %175 = load i32, ptr @nextra, align 4, !tbaa !5
  %176 = add nsw i32 %175, %2
  %177 = icmp sgt i32 %176, 0
  br i1 %177, label %.lr.ph384, label %._crit_edge385

.lr.ph384:                                        ; preds = %174, %.lr.ph384
  %indvars.iv460 = phi i64 [ %indvars.iv.next461, %.lr.ph384 ], [ 0, %174 ]
  call void @N_VRand(ptr noundef %0, i64 noundef %1, double noundef -1.000000e+00, double noundef 1.000000e+00) #8
  call void @N_VRand(ptr noundef %13, i64 noundef %1, double noundef -1.000000e+00, double noundef 1.000000e+00) #8
  call void @N_VConst(double noundef 0.000000e+00, ptr noundef %14) #8
  call void (...) @ClearCache() #8
  %178 = call double @get_time()
  call void @N_VLinearSum(double noundef -1.000000e+00, ptr noundef %0, double noundef 1.000000e+00, ptr noundef %13, ptr noundef %14) #8
  call void @sync_device(ptr noundef %0) #8
  %179 = call double @get_time()
  %180 = fsub double %179, %178
  %181 = getelementptr inbounds double, ptr %12, i64 %indvars.iv460
  store double %180, ptr %181, align 8, !tbaa !9
  %indvars.iv.next461 = add nuw nsw i64 %indvars.iv460, 1
  %182 = load i32, ptr @nextra, align 4, !tbaa !5
  %183 = add nsw i32 %182, %2
  %184 = sext i32 %183 to i64
  %185 = icmp slt i64 %indvars.iv.next461, %184
  br i1 %185, label %.lr.ph384, label %._crit_edge385, !llvm.loop !20

._crit_edge385:                                   ; preds = %.lr.ph384, %174
  %.lcssa337 = phi i32 [ %175, %174 ], [ %182, %.lr.ph384 ]
  call void @time_stats(ptr noundef %0, ptr noundef %12, i32 noundef %.lcssa337, i32 noundef %2, ptr noundef nonnull %4, ptr noundef nonnull %5, ptr noundef nonnull %6, ptr noundef nonnull %7)
  %186 = load i32, ptr @print_time, align 4, !tbaa !5
  %.not323 = icmp eq i32 %186, 0
  br i1 %.not323, label %193, label %187

187:                                              ; preds = %._crit_edge385
  %188 = load double, ptr %4, align 8, !tbaa !9
  %189 = load double, ptr %5, align 8, !tbaa !9
  %190 = load double, ptr %6, align 8, !tbaa !9
  %191 = load double, ptr %7, align 8, !tbaa !9
  %192 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str, ptr noundef nonnull @.str.9, double noundef %188, double noundef %189, double noundef %190, double noundef %191)
  br label %193

193:                                              ; preds = %187, %._crit_edge385
  %194 = load i32, ptr @nextra, align 4, !tbaa !5
  %195 = add nsw i32 %194, %2
  %196 = icmp sgt i32 %195, 0
  br i1 %196, label %.lr.ph389, label %._crit_edge390

.lr.ph389:                                        ; preds = %193, %.lr.ph389
  %indvars.iv463 = phi i64 [ %indvars.iv.next464, %.lr.ph389 ], [ 0, %193 ]
  call void @N_VRand(ptr noundef %0, i64 noundef %1, double noundef -1.000000e+00, double noundef 1.000000e+00) #8
  call void @N_VRand(ptr noundef %13, i64 noundef %1, double noundef -1.000000e+00, double noundef 1.000000e+00) #8
  call void @N_VConst(double noundef 0.000000e+00, ptr noundef %14) #8
  %197 = call i32 @rand() #8
  %198 = sitofp i32 %197 to double
  %199 = fdiv double %198, 0x41DFFFFFFFC00000
  %200 = fadd double %199, 1.000000e+00
  call void (...) @ClearCache() #8
  %201 = call double @get_time()
  call void @N_VLinearSum(double noundef 1.000000e+00, ptr noundef %0, double noundef %200, ptr noundef %13, ptr noundef %14) #8
  call void @sync_device(ptr noundef %0) #8
  %202 = call double @get_time()
  %203 = fsub double %202, %201
  %204 = getelementptr inbounds double, ptr %12, i64 %indvars.iv463
  store double %203, ptr %204, align 8, !tbaa !9
  %indvars.iv.next464 = add nuw nsw i64 %indvars.iv463, 1
  %205 = load i32, ptr @nextra, align 4, !tbaa !5
  %206 = add nsw i32 %205, %2
  %207 = sext i32 %206 to i64
  %208 = icmp slt i64 %indvars.iv.next464, %207
  br i1 %208, label %.lr.ph389, label %._crit_edge390, !llvm.loop !21

._crit_edge390:                                   ; preds = %.lr.ph389, %193
  %.lcssa336 = phi i32 [ %194, %193 ], [ %205, %.lr.ph389 ]
  call void @time_stats(ptr noundef %0, ptr noundef %12, i32 noundef %.lcssa336, i32 noundef %2, ptr noundef nonnull %4, ptr noundef nonnull %5, ptr noundef nonnull %6, ptr noundef nonnull %7)
  %209 = load i32, ptr @print_time, align 4, !tbaa !5
  %.not324 = icmp eq i32 %209, 0
  br i1 %.not324, label %216, label %210

210:                                              ; preds = %._crit_edge390
  %211 = load double, ptr %4, align 8, !tbaa !9
  %212 = load double, ptr %5, align 8, !tbaa !9
  %213 = load double, ptr %6, align 8, !tbaa !9
  %214 = load double, ptr %7, align 8, !tbaa !9
  %215 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str, ptr noundef nonnull @.str.10, double noundef %211, double noundef %212, double noundef %213, double noundef %214)
  br label %216

216:                                              ; preds = %210, %._crit_edge390
  %217 = load i32, ptr @nextra, align 4, !tbaa !5
  %218 = add nsw i32 %217, %2
  %219 = icmp sgt i32 %218, 0
  br i1 %219, label %.lr.ph394, label %._crit_edge395

.lr.ph394:                                        ; preds = %216, %.lr.ph394
  %indvars.iv466 = phi i64 [ %indvars.iv.next467, %.lr.ph394 ], [ 0, %216 ]
  call void @N_VRand(ptr noundef %0, i64 noundef %1, double noundef -1.000000e+00, double noundef 1.000000e+00) #8
  call void @N_VRand(ptr noundef %13, i64 noundef %1, double noundef -1.000000e+00, double noundef 1.000000e+00) #8
  call void @N_VConst(double noundef 0.000000e+00, ptr noundef %14) #8
  %220 = call i32 @rand() #8
  %221 = sitofp i32 %220 to double
  %222 = fdiv double %221, 0x41DFFFFFFFC00000
  %223 = fadd double %222, 1.000000e+00
  call void (...) @ClearCache() #8
  %224 = call double @get_time()
  call void @N_VLinearSum(double noundef %223, ptr noundef %0, double noundef 1.000000e+00, ptr noundef %13, ptr noundef %14) #8
  call void @sync_device(ptr noundef %0) #8
  %225 = call double @get_time()
  %226 = fsub double %225, %224
  %227 = getelementptr inbounds double, ptr %12, i64 %indvars.iv466
  store double %226, ptr %227, align 8, !tbaa !9
  %indvars.iv.next467 = add nuw nsw i64 %indvars.iv466, 1
  %228 = load i32, ptr @nextra, align 4, !tbaa !5
  %229 = add nsw i32 %228, %2
  %230 = sext i32 %229 to i64
  %231 = icmp slt i64 %indvars.iv.next467, %230
  br i1 %231, label %.lr.ph394, label %._crit_edge395, !llvm.loop !22

._crit_edge395:                                   ; preds = %.lr.ph394, %216
  %.lcssa335 = phi i32 [ %217, %216 ], [ %228, %.lr.ph394 ]
  call void @time_stats(ptr noundef %0, ptr noundef %12, i32 noundef %.lcssa335, i32 noundef %2, ptr noundef nonnull %4, ptr noundef nonnull %5, ptr noundef nonnull %6, ptr noundef nonnull %7)
  %232 = load i32, ptr @print_time, align 4, !tbaa !5
  %.not325 = icmp eq i32 %232, 0
  br i1 %.not325, label %239, label %233

233:                                              ; preds = %._crit_edge395
  %234 = load double, ptr %4, align 8, !tbaa !9
  %235 = load double, ptr %5, align 8, !tbaa !9
  %236 = load double, ptr %6, align 8, !tbaa !9
  %237 = load double, ptr %7, align 8, !tbaa !9
  %238 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str, ptr noundef nonnull @.str.11, double noundef %234, double noundef %235, double noundef %236, double noundef %237)
  br label %239

239:                                              ; preds = %233, %._crit_edge395
  %240 = load i32, ptr @nextra, align 4, !tbaa !5
  %241 = add nsw i32 %240, %2
  %242 = icmp sgt i32 %241, 0
  br i1 %242, label %.lr.ph399, label %._crit_edge400

.lr.ph399:                                        ; preds = %239, %.lr.ph399
  %indvars.iv469 = phi i64 [ %indvars.iv.next470, %.lr.ph399 ], [ 0, %239 ]
  call void @N_VRand(ptr noundef %0, i64 noundef %1, double noundef -1.000000e+00, double noundef 1.000000e+00) #8
  call void @N_VRand(ptr noundef %13, i64 noundef %1, double noundef -1.000000e+00, double noundef 1.000000e+00) #8
  call void @N_VConst(double noundef 0.000000e+00, ptr noundef %14) #8
  %243 = call i32 @rand() #8
  %244 = sitofp i32 %243 to double
  %245 = fdiv double %244, 0x41DFFFFFFFC00000
  %246 = fadd double %245, 1.000000e+00
  call void (...) @ClearCache() #8
  %247 = call double @get_time()
  call void @N_VLinearSum(double noundef -1.000000e+00, ptr noundef %0, double noundef %246, ptr noundef %13, ptr noundef %14) #8
  call void @sync_device(ptr noundef %0) #8
  %248 = call double @get_time()
  %249 = fsub double %248, %247
  %250 = getelementptr inbounds double, ptr %12, i64 %indvars.iv469
  store double %249, ptr %250, align 8, !tbaa !9
  %indvars.iv.next470 = add nuw nsw i64 %indvars.iv469, 1
  %251 = load i32, ptr @nextra, align 4, !tbaa !5
  %252 = add nsw i32 %251, %2
  %253 = sext i32 %252 to i64
  %254 = icmp slt i64 %indvars.iv.next470, %253
  br i1 %254, label %.lr.ph399, label %._crit_edge400, !llvm.loop !23

._crit_edge400:                                   ; preds = %.lr.ph399, %239
  %.lcssa334 = phi i32 [ %240, %239 ], [ %251, %.lr.ph399 ]
  call void @time_stats(ptr noundef %0, ptr noundef %12, i32 noundef %.lcssa334, i32 noundef %2, ptr noundef nonnull %4, ptr noundef nonnull %5, ptr noundef nonnull %6, ptr noundef nonnull %7)
  %255 = load i32, ptr @print_time, align 4, !tbaa !5
  %.not326 = icmp eq i32 %255, 0
  br i1 %.not326, label %262, label %256

256:                                              ; preds = %._crit_edge400
  %257 = load double, ptr %4, align 8, !tbaa !9
  %258 = load double, ptr %5, align 8, !tbaa !9
  %259 = load double, ptr %6, align 8, !tbaa !9
  %260 = load double, ptr %7, align 8, !tbaa !9
  %261 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str, ptr noundef nonnull @.str.12, double noundef %257, double noundef %258, double noundef %259, double noundef %260)
  br label %262

262:                                              ; preds = %256, %._crit_edge400
  %263 = load i32, ptr @nextra, align 4, !tbaa !5
  %264 = add nsw i32 %263, %2
  %265 = icmp sgt i32 %264, 0
  br i1 %265, label %.lr.ph404, label %._crit_edge405

.lr.ph404:                                        ; preds = %262, %.lr.ph404
  %indvars.iv472 = phi i64 [ %indvars.iv.next473, %.lr.ph404 ], [ 0, %262 ]
  call void @N_VRand(ptr noundef %0, i64 noundef %1, double noundef -1.000000e+00, double noundef 1.000000e+00) #8
  call void @N_VRand(ptr noundef %13, i64 noundef %1, double noundef -1.000000e+00, double noundef 1.000000e+00) #8
  call void @N_VConst(double noundef 0.000000e+00, ptr noundef %14) #8
  %266 = call i32 @rand() #8
  %267 = sitofp i32 %266 to double
  %268 = fdiv double %267, 0x41DFFFFFFFC00000
  %269 = fadd double %268, 1.000000e+00
  call void (...) @ClearCache() #8
  %270 = call double @get_time()
  call void @N_VLinearSum(double noundef %269, ptr noundef %0, double noundef -1.000000e+00, ptr noundef %13, ptr noundef %14) #8
  call void @sync_device(ptr noundef %0) #8
  %271 = call double @get_time()
  %272 = fsub double %271, %270
  %273 = getelementptr inbounds double, ptr %12, i64 %indvars.iv472
  store double %272, ptr %273, align 8, !tbaa !9
  %indvars.iv.next473 = add nuw nsw i64 %indvars.iv472, 1
  %274 = load i32, ptr @nextra, align 4, !tbaa !5
  %275 = add nsw i32 %274, %2
  %276 = sext i32 %275 to i64
  %277 = icmp slt i64 %indvars.iv.next473, %276
  br i1 %277, label %.lr.ph404, label %._crit_edge405, !llvm.loop !24

._crit_edge405:                                   ; preds = %.lr.ph404, %262
  %.lcssa333 = phi i32 [ %263, %262 ], [ %274, %.lr.ph404 ]
  call void @time_stats(ptr noundef %0, ptr noundef %12, i32 noundef %.lcssa333, i32 noundef %2, ptr noundef nonnull %4, ptr noundef nonnull %5, ptr noundef nonnull %6, ptr noundef nonnull %7)
  %278 = load i32, ptr @print_time, align 4, !tbaa !5
  %.not327 = icmp eq i32 %278, 0
  br i1 %.not327, label %285, label %279

279:                                              ; preds = %._crit_edge405
  %280 = load double, ptr %4, align 8, !tbaa !9
  %281 = load double, ptr %5, align 8, !tbaa !9
  %282 = load double, ptr %6, align 8, !tbaa !9
  %283 = load double, ptr %7, align 8, !tbaa !9
  %284 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str, ptr noundef nonnull @.str.13, double noundef %280, double noundef %281, double noundef %282, double noundef %283)
  br label %285

285:                                              ; preds = %279, %._crit_edge405
  %286 = load i32, ptr @nextra, align 4, !tbaa !5
  %287 = add nsw i32 %286, %2
  %288 = icmp sgt i32 %287, 0
  br i1 %288, label %.lr.ph409, label %._crit_edge410

.lr.ph409:                                        ; preds = %285, %.lr.ph409
  %indvars.iv475 = phi i64 [ %indvars.iv.next476, %.lr.ph409 ], [ 0, %285 ]
  call void @N_VRand(ptr noundef %0, i64 noundef %1, double noundef -1.000000e+00, double noundef 1.000000e+00) #8
  call void @N_VRand(ptr noundef %13, i64 noundef %1, double noundef -1.000000e+00, double noundef 1.000000e+00) #8
  call void @N_VConst(double noundef 0.000000e+00, ptr noundef %14) #8
  %289 = call i32 @rand() #8
  %290 = sitofp i32 %289 to double
  %291 = fdiv double %290, 0x41DFFFFFFFC00000
  %292 = fadd double %291, 1.000000e+00
  call void (...) @ClearCache() #8
  %293 = call double @get_time()
  call void @N_VLinearSum(double noundef %292, ptr noundef %0, double noundef %292, ptr noundef %13, ptr noundef %14) #8
  call void @sync_device(ptr noundef %0) #8
  %294 = call double @get_time()
  %295 = fsub double %294, %293
  %296 = getelementptr inbounds double, ptr %12, i64 %indvars.iv475
  store double %295, ptr %296, align 8, !tbaa !9
  %indvars.iv.next476 = add nuw nsw i64 %indvars.iv475, 1
  %297 = load i32, ptr @nextra, align 4, !tbaa !5
  %298 = add nsw i32 %297, %2
  %299 = sext i32 %298 to i64
  %300 = icmp slt i64 %indvars.iv.next476, %299
  br i1 %300, label %.lr.ph409, label %._crit_edge410, !llvm.loop !25

._crit_edge410:                                   ; preds = %.lr.ph409, %285
  %.lcssa332 = phi i32 [ %286, %285 ], [ %297, %.lr.ph409 ]
  call void @time_stats(ptr noundef %0, ptr noundef %12, i32 noundef %.lcssa332, i32 noundef %2, ptr noundef nonnull %4, ptr noundef nonnull %5, ptr noundef nonnull %6, ptr noundef nonnull %7)
  %301 = load i32, ptr @print_time, align 4, !tbaa !5
  %.not328 = icmp eq i32 %301, 0
  br i1 %.not328, label %308, label %302

302:                                              ; preds = %._crit_edge410
  %303 = load double, ptr %4, align 8, !tbaa !9
  %304 = load double, ptr %5, align 8, !tbaa !9
  %305 = load double, ptr %6, align 8, !tbaa !9
  %306 = load double, ptr %7, align 8, !tbaa !9
  %307 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str, ptr noundef nonnull @.str.14, double noundef %303, double noundef %304, double noundef %305, double noundef %306)
  br label %308

308:                                              ; preds = %302, %._crit_edge410
  %309 = load i32, ptr @nextra, align 4, !tbaa !5
  %310 = add nsw i32 %309, %2
  %311 = icmp sgt i32 %310, 0
  br i1 %311, label %.lr.ph414, label %._crit_edge415

.lr.ph414:                                        ; preds = %308, %.lr.ph414
  %indvars.iv478 = phi i64 [ %indvars.iv.next479, %.lr.ph414 ], [ 0, %308 ]
  call void @N_VRand(ptr noundef %0, i64 noundef %1, double noundef -1.000000e+00, double noundef 1.000000e+00) #8
  call void @N_VRand(ptr noundef %13, i64 noundef %1, double noundef -1.000000e+00, double noundef 1.000000e+00) #8
  call void @N_VConst(double noundef 0.000000e+00, ptr noundef %14) #8
  %312 = call i32 @rand() #8
  %313 = sitofp i32 %312 to double
  %314 = fdiv double %313, 0x41DFFFFFFFC00000
  %315 = fadd double %314, 1.000000e+00
  %316 = fneg double %315
  call void (...) @ClearCache() #8
  %317 = call double @get_time()
  call void @N_VLinearSum(double noundef %315, ptr noundef %0, double noundef %316, ptr noundef %13, ptr noundef %14) #8
  call void @sync_device(ptr noundef %0) #8
  %318 = call double @get_time()
  %319 = fsub double %318, %317
  %320 = getelementptr inbounds double, ptr %12, i64 %indvars.iv478
  store double %319, ptr %320, align 8, !tbaa !9
  %indvars.iv.next479 = add nuw nsw i64 %indvars.iv478, 1
  %321 = load i32, ptr @nextra, align 4, !tbaa !5
  %322 = add nsw i32 %321, %2
  %323 = sext i32 %322 to i64
  %324 = icmp slt i64 %indvars.iv.next479, %323
  br i1 %324, label %.lr.ph414, label %._crit_edge415, !llvm.loop !26

._crit_edge415:                                   ; preds = %.lr.ph414, %308
  %.lcssa331 = phi i32 [ %309, %308 ], [ %321, %.lr.ph414 ]
  call void @time_stats(ptr noundef %0, ptr noundef %12, i32 noundef %.lcssa331, i32 noundef %2, ptr noundef nonnull %4, ptr noundef nonnull %5, ptr noundef nonnull %6, ptr noundef nonnull %7)
  %325 = load i32, ptr @print_time, align 4, !tbaa !5
  %.not329 = icmp eq i32 %325, 0
  br i1 %.not329, label %332, label %326

326:                                              ; preds = %._crit_edge415
  %327 = load double, ptr %4, align 8, !tbaa !9
  %328 = load double, ptr %5, align 8, !tbaa !9
  %329 = load double, ptr %6, align 8, !tbaa !9
  %330 = load double, ptr %7, align 8, !tbaa !9
  %331 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str, ptr noundef nonnull @.str.15, double noundef %327, double noundef %328, double noundef %329, double noundef %330)
  br label %332

332:                                              ; preds = %326, %._crit_edge415
  %333 = load i32, ptr @nextra, align 4, !tbaa !5
  %334 = add nsw i32 %333, %2
  %335 = icmp sgt i32 %334, 0
  br i1 %335, label %.lr.ph419, label %._crit_edge420

.lr.ph419:                                        ; preds = %332, %.lr.ph419
  %indvars.iv481 = phi i64 [ %indvars.iv.next482, %.lr.ph419 ], [ 0, %332 ]
  call void @N_VRand(ptr noundef %0, i64 noundef %1, double noundef -1.000000e+00, double noundef 1.000000e+00) #8
  call void @N_VRand(ptr noundef %13, i64 noundef %1, double noundef -1.000000e+00, double noundef 1.000000e+00) #8
  call void @N_VConst(double noundef 0.000000e+00, ptr noundef %14) #8
  %336 = call i32 @rand() #8
  %337 = sitofp i32 %336 to double
  %338 = fdiv double %337, 0x41DFFFFFFFC00000
  %339 = call double @llvm.fmuladd.f64(double %338, double 2.000000e+00, double -1.000000e+00)
  %340 = call i32 @rand() #8
  %341 = sitofp i32 %340 to double
  %342 = fdiv double %341, 0x41DFFFFFFFC00000
  %343 = call double @llvm.fmuladd.f64(double %342, double 2.000000e+00, double -1.000000e+00)
  call void (...) @ClearCache() #8
  %344 = call double @get_time()
  call void @N_VLinearSum(double noundef %339, ptr noundef %0, double noundef %343, ptr noundef %13, ptr noundef %14) #8
  call void @sync_device(ptr noundef %0) #8
  %345 = call double @get_time()
  %346 = fsub double %345, %344
  %347 = getelementptr inbounds double, ptr %12, i64 %indvars.iv481
  store double %346, ptr %347, align 8, !tbaa !9
  %indvars.iv.next482 = add nuw nsw i64 %indvars.iv481, 1
  %348 = load i32, ptr @nextra, align 4, !tbaa !5
  %349 = add nsw i32 %348, %2
  %350 = sext i32 %349 to i64
  %351 = icmp slt i64 %indvars.iv.next482, %350
  br i1 %351, label %.lr.ph419, label %._crit_edge420, !llvm.loop !27

._crit_edge420:                                   ; preds = %.lr.ph419, %332
  %.lcssa = phi i32 [ %333, %332 ], [ %348, %.lr.ph419 ]
  call void @time_stats(ptr noundef %0, ptr noundef %12, i32 noundef %.lcssa, i32 noundef %2, ptr noundef nonnull %4, ptr noundef nonnull %5, ptr noundef nonnull %6, ptr noundef nonnull %7)
  %352 = load i32, ptr @print_time, align 4, !tbaa !5
  %.not330 = icmp eq i32 %352, 0
  br i1 %.not330, label %359, label %353

353:                                              ; preds = %._crit_edge420
  %354 = load double, ptr %4, align 8, !tbaa !9
  %355 = load double, ptr %5, align 8, !tbaa !9
  %356 = load double, ptr %6, align 8, !tbaa !9
  %357 = load double, ptr %7, align 8, !tbaa !9
  %358 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str, ptr noundef nonnull @.str.16, double noundef %354, double noundef %355, double noundef %356, double noundef %357)
  br label %359

359:                                              ; preds = %353, %._crit_edge420
  call void @free(ptr noundef %12) #8
  call void @N_VDestroy(ptr noundef %13) #8
  call void @N_VDestroy(ptr noundef %14) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #8
  ret i32 0
}

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1

; Function Attrs: mustprogress nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) memory(inaccessiblemem: readwrite)
declare noalias noundef ptr @malloc(i64 noundef) local_unnamed_addr #2

declare ptr @N_VClone(ptr noundef) local_unnamed_addr #3

declare void @N_VRand(ptr noundef, i64 noundef, double noundef, double noundef) local_unnamed_addr #3

declare void @ClearCache(...) local_unnamed_addr #3

declare void @N_VLinearSum(double noundef, ptr noundef, double noundef, ptr noundef, ptr noundef) local_unnamed_addr #3

declare void @sync_device(ptr noundef) local_unnamed_addr #3

; Function Attrs: nounwind uwtable
declare hidden void @time_stats(ptr noundef, ptr noundef, i32 noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #0

; Function Attrs: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #4

; Function Attrs: nounwind
declare i32 @rand() local_unnamed_addr #5

declare void @N_VConst(double noundef, ptr noundef) local_unnamed_addr #3

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #6

; Function Attrs: mustprogress nounwind willreturn allockind("free") memory(argmem: readwrite, inaccessiblemem: readwrite)
declare void @free(ptr allocptr nocapture noundef) local_unnamed_addr #7

declare void @N_VDestroy(ptr noundef) local_unnamed_addr #3

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1

; Function Attrs: nounwind uwtable
declare hidden double @get_time() local_unnamed_addr #0

attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { mustprogress nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) memory(inaccessiblemem: readwrite) "alloc-family"="malloc" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nofree nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #7 = { mustprogress nounwind willreturn allockind("free") memory(argmem: readwrite, inaccessiblemem: readwrite) "alloc-family"="malloc" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #8 = { nounwind }
attributes #9 = { nounwind allocsize(0) }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"double", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = distinct !{!13, !12}
!14 = distinct !{!14, !12}
!15 = distinct !{!15, !12}
!16 = distinct !{!16, !12}
!17 = distinct !{!17, !12}
!18 = distinct !{!18, !12}
!19 = distinct !{!19, !12}
!20 = distinct !{!20, !12}
!21 = distinct !{!21, !12}
!22 = distinct !{!22, !12}
!23 = distinct !{!23, !12}
!24 = distinct !{!24, !12}
!25 = distinct !{!25, !12}
!26 = distinct !{!26, !12}
!27 = distinct !{!27, !12}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass