; LLVM IR from microsoft/LightAIMD :: src (dft_matrices)

; 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"

%struct.molecular_grid_desc = type { ptr, i64, i64, i64, i64, i64, ptr, ptr, i64, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, double, double, double, ptr, ptr, ptr, ptr, i64, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, i64, i64, ptr, ptr, ptr, ptr, ptr }
%struct.scf_context = type { ptr, i64, i64, i64, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, double, i64, double, double, double, i64, double, double, i64, double, i64, i64, ptr, ptr, ptr, i64, i64, i64, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, double, ptr, ptr, ptr, ptr, i64 }
%struct.task_func_build_J_arg = type { ptr, ptr, ptr, i64, i64, i64, i64, i64, i64, i64 }
%struct.threadpool_context = type { i64, ptr, i64 }

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

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #1

; Function Attrs: nounwind
declare double @sqrt(double noundef) #2

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

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

declare ptr @x_malloc(i64 noundef) #4

declare void @threadpool_add_task(ptr noundef, i64 noundef, ptr noundef, ptr noundef) #4

declare void @threadpool_wait_job_done(ptr noundef) #4

declare void @transpose(ptr noundef, ptr noundef, i64 noundef, i64 noundef) #4

declare void @mat_add(ptr noundef, ptr noundef, ptr noundef, i64 noundef, i64 noundef) #4

declare void @mat_scalar_multiply(ptr noundef, ptr noundef, i64 noundef, i64 noundef, double noundef) #4

; Function Attrs: nounwind uwtable
define dso_local void @build_J_matrix(ptr noundef %0) #5 {
  %2 = alloca ptr, align 8
  %3 = alloca ptr, align 8
  %4 = alloca i64, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca i64, align 8
  %8 = alloca i32, align 4
  %9 = alloca i64, align 8
  %10 = alloca i64, align 8
  %11 = alloca i64, align 8
  %12 = alloca i64, align 8
  %13 = alloca double, align 8
  %14 = alloca i64, align 8
  %15 = alloca i64, align 8
  %16 = alloca i64, align 8
  %17 = alloca i64, align 8
  %18 = alloca double, align 8
  %19 = alloca double, align 8
  %20 = alloca double, align 8
  %21 = alloca double, align 8
  %22 = alloca [6 x double], align 16
  %23 = alloca i64, align 8
  %24 = alloca ptr, align 8
  %25 = alloca ptr, align 8
  store ptr %0, ptr %2, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #6
  %26 = load ptr, ptr %2, align 8, !tbaa !5
  %27 = getelementptr inbounds %struct.molecular_grid_desc, ptr %26, i32 0, i32 76
  %28 = load ptr, ptr %27, align 8, !tbaa !9
  store ptr %28, ptr %3, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #6
  %29 = load ptr, ptr %3, align 8, !tbaa !5
  %30 = getelementptr inbounds %struct.scf_context, ptr %29, i32 0, i32 1
  %31 = load i64, ptr %30, align 8, !tbaa !13
  store i64 %31, ptr %4, align 8, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #6
  %32 = load ptr, ptr %3, align 8, !tbaa !5
  %33 = getelementptr inbounds %struct.scf_context, ptr %32, i32 0, i32 22
  %34 = load ptr, ptr %33, align 8, !tbaa !16
  store ptr %34, ptr %5, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #6
  %35 = load ptr, ptr %2, align 8, !tbaa !5
  %36 = getelementptr inbounds %struct.molecular_grid_desc, ptr %35, i32 0, i32 26
  %37 = load ptr, ptr %36, align 8, !tbaa !17
  store ptr %37, ptr %6, align 8, !tbaa !5
  %38 = load ptr, ptr %6, align 8, !tbaa !5
  %39 = load i64, ptr %4, align 8, !tbaa !15
  %40 = load i64, ptr %4, align 8, !tbaa !15
  %41 = mul i64 %39, %40
  %42 = mul i64 %41, 8
  call void @llvm.memset.p0.i64(ptr align 8 %38, i8 0, i64 %42, i1 false)
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #6
  store i64 0, ptr %7, align 8, !tbaa !15
  br label %43

43:                                               ; preds = %293, %1
  %44 = load i64, ptr %7, align 8, !tbaa !15
  %45 = load i64, ptr %4, align 8, !tbaa !15
  %46 = icmp ult i64 %44, %45
  br i1 %46, label %48, label %47

47:                                               ; preds = %43
  store i32 2, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #6
  br label %296

48:                                               ; preds = %43
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #6
  %49 = load i64, ptr %7, align 8, !tbaa !15
  %50 = load i64, ptr %4, align 8, !tbaa !15
  %51 = mul i64 %49, %50
  store i64 %51, ptr %9, align 8, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #6
  store i64 0, ptr %10, align 8, !tbaa !15
  br label %52

52:                                               ; preds = %289, %48
  %53 = load i64, ptr %10, align 8, !tbaa !15
  %54 = load i64, ptr %7, align 8, !tbaa !15
  %55 = icmp ule i64 %53, %54
  br i1 %55, label %57, label %56

56:                                               ; preds = %52
  store i32 5, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #6
  br label %292

57:                                               ; preds = %52
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #6
  %58 = load i64, ptr %10, align 8, !tbaa !15
  %59 = load i64, ptr %4, align 8, !tbaa !15
  %60 = mul i64 %58, %59
  store i64 %60, ptr %11, align 8, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #6
  %61 = load i64, ptr %7, align 8, !tbaa !15
  %62 = load i64, ptr %7, align 8, !tbaa !15
  %63 = add i64 %62, 1
  %64 = mul i64 %61, %63
  %65 = lshr i64 %64, 1
  %66 = load i64, ptr %10, align 8, !tbaa !15
  %67 = add i64 %65, %66
  store i64 %67, ptr %12, align 8, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #6
  store double 2.000000e+00, ptr %13, align 8, !tbaa !18
  %68 = load i64, ptr %7, align 8, !tbaa !15
  %69 = load i64, ptr %10, align 8, !tbaa !15
  %70 = icmp eq i64 %68, %69
  br i1 %70, label %71, label %72

71:                                               ; preds = %57
  store double 1.000000e+00, ptr %13, align 8, !tbaa !18
  br label %72

72:                                               ; preds = %71, %57
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #6
  store i64 0, ptr %14, align 8, !tbaa !15
  br label %73

73:                                               ; preds = %285, %72
  %74 = load i64, ptr %14, align 8, !tbaa !15
  %75 = load i64, ptr %4, align 8, !tbaa !15
  %76 = icmp ult i64 %74, %75
  br i1 %76, label %78, label %77

77:                                               ; preds = %73
  store i32 8, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #6
  br label %288

78:                                               ; preds = %73
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #6
  %79 = load i64, ptr %14, align 8, !tbaa !15
  %80 = load i64, ptr %4, align 8, !tbaa !15
  %81 = mul i64 %79, %80
  store i64 %81, ptr %15, align 8, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #6
  store i64 0, ptr %16, align 8, !tbaa !15
  br label %82

82:                                               ; preds = %281, %78
  %83 = load i64, ptr %16, align 8, !tbaa !15
  %84 = load i64, ptr %14, align 8, !tbaa !15
  %85 = icmp ule i64 %83, %84
  br i1 %85, label %87, label %86

86:                                               ; preds = %82
  store i32 11, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #6
  br label %284

87:                                               ; preds = %82
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #6
  %88 = load i64, ptr %14, align 8, !tbaa !15
  %89 = load i64, ptr %14, align 8, !tbaa !15
  %90 = add i64 %89, 1
  %91 = mul i64 %88, %90
  %92 = lshr i64 %91, 1
  %93 = load i64, ptr %16, align 8, !tbaa !15
  %94 = add i64 %92, %93
  store i64 %94, ptr %17, align 8, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #6
  store double 2.000000e+00, ptr %18, align 8, !tbaa !18
  %95 = load i64, ptr %14, align 8, !tbaa !15
  %96 = load i64, ptr %16, align 8, !tbaa !15
  %97 = icmp eq i64 %95, %96
  br i1 %97, label %98, label %99

98:                                               ; preds = %87
  store double 1.000000e+00, ptr %18, align 8, !tbaa !18
  br label %99

99:                                               ; preds = %98, %87
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #6
  store double 2.000000e+00, ptr %19, align 8, !tbaa !18
  %100 = load i64, ptr %7, align 8, !tbaa !15
  %101 = load i64, ptr %14, align 8, !tbaa !15
  %102 = icmp eq i64 %100, %101
  br i1 %102, label %103, label %108

103:                                              ; preds = %99
  %104 = load i64, ptr %10, align 8, !tbaa !15
  %105 = load i64, ptr %16, align 8, !tbaa !15
  %106 = icmp eq i64 %104, %105
  br i1 %106, label %107, label %108

107:                                              ; preds = %103
  store double 1.000000e+00, ptr %19, align 8, !tbaa !18
  br label %108

108:                                              ; preds = %107, %103, %99
  %109 = load i64, ptr %12, align 8, !tbaa !15
  %110 = load i64, ptr %17, align 8, !tbaa !15
  %111 = icmp uge i64 %109, %110
  br i1 %111, label %112, label %277

112:                                              ; preds = %108
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #6
  %113 = load ptr, ptr %3, align 8, !tbaa !5
  %114 = getelementptr inbounds %struct.scf_context, ptr %113, i32 0, i32 38
  %115 = load ptr, ptr %114, align 8, !tbaa !19
  %116 = load i64, ptr %12, align 8, !tbaa !15
  %117 = getelementptr inbounds double, ptr %115, i64 %116
  %118 = load double, ptr %117, align 8, !tbaa !18
  %119 = call double @sqrt(double noundef %118) #6
  %120 = load ptr, ptr %3, align 8, !tbaa !5
  %121 = getelementptr inbounds %struct.scf_context, ptr %120, i32 0, i32 38
  %122 = load ptr, ptr %121, align 8, !tbaa !19
  %123 = load i64, ptr %17, align 8, !tbaa !15
  %124 = getelementptr inbounds double, ptr %122, i64 %123
  %125 = load double, ptr %124, align 8, !tbaa !18
  %126 = call double @sqrt(double noundef %125) #6
  %127 = fmul double %119, %126
  store double %127, ptr %20, align 8, !tbaa !18
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #6
  store double 0.000000e+00, ptr %21, align 8, !tbaa !18
  call void @llvm.lifetime.start.p0(i64 48, ptr %22) #6
  %128 = load ptr, ptr %5, align 8, !tbaa !5
  %129 = load i64, ptr %7, align 8, !tbaa !15
  %130 = load i64, ptr %4, align 8, !tbaa !15
  %131 = mul i64 %129, %130
  %132 = load i64, ptr %10, align 8, !tbaa !15
  %133 = add i64 %131, %132
  %134 = getelementptr inbounds double, ptr %128, i64 %133
  %135 = load double, ptr %134, align 8, !tbaa !18
  %136 = fmul double 4.000000e+00, %135
  %137 = call double @llvm.fabs.f64(double %136)
  store double %137, ptr %22, align 8, !tbaa !18
  %138 = getelementptr inbounds double, ptr %22, i64 1
  %139 = load ptr, ptr %5, align 8, !tbaa !5
  %140 = load i64, ptr %14, align 8, !tbaa !15
  %141 = load i64, ptr %4, align 8, !tbaa !15
  %142 = mul i64 %140, %141
  %143 = load i64, ptr %16, align 8, !tbaa !15
  %144 = add i64 %142, %143
  %145 = getelementptr inbounds double, ptr %139, i64 %144
  %146 = load double, ptr %145, align 8, !tbaa !18
  %147 = fmul double 4.000000e+00, %146
  %148 = call double @llvm.fabs.f64(double %147)
  store double %148, ptr %138, align 8, !tbaa !18
  %149 = getelementptr inbounds double, ptr %22, i64 2
  %150 = load ptr, ptr %5, align 8, !tbaa !5
  %151 = load i64, ptr %7, align 8, !tbaa !15
  %152 = load i64, ptr %4, align 8, !tbaa !15
  %153 = mul i64 %151, %152
  %154 = load i64, ptr %14, align 8, !tbaa !15
  %155 = add i64 %153, %154
  %156 = getelementptr inbounds double, ptr %150, i64 %155
  %157 = load double, ptr %156, align 8, !tbaa !18
  %158 = call double @llvm.fabs.f64(double %157)
  store double %158, ptr %149, align 8, !tbaa !18
  %159 = getelementptr inbounds double, ptr %22, i64 3
  %160 = load ptr, ptr %5, align 8, !tbaa !5
  %161 = load i64, ptr %7, align 8, !tbaa !15
  %162 = load i64, ptr %4, align 8, !tbaa !15
  %163 = mul i64 %161, %162
  %164 = load i64, ptr %16, align 8, !tbaa !15
  %165 = add i64 %163, %164
  %166 = getelementptr inbounds double, ptr %160, i64 %165
  %167 = load double, ptr %166, align 8, !tbaa !18
  %168 = call double @llvm.fabs.f64(double %167)
  store double %168, ptr %159, align 8, !tbaa !18
  %169 = getelementptr inbounds double, ptr %22, i64 4
  %170 = load ptr, ptr %5, align 8, !tbaa !5
  %171 = load i64, ptr %10, align 8, !tbaa !15
  %172 = load i64, ptr %4, align 8, !tbaa !15
  %173 = mul i64 %171, %172
  %174 = load i64, ptr %14, align 8, !tbaa !15
  %175 = add i64 %173, %174
  %176 = getelementptr inbounds double, ptr %170, i64 %175
  %177 = load double, ptr %176, align 8, !tbaa !18
  %178 = call double @llvm.fabs.f64(double %177)
  store double %178, ptr %169, align 8, !tbaa !18
  %179 = getelementptr inbounds double, ptr %22, i64 5
  %180 = load ptr, ptr %5, align 8, !tbaa !5
  %181 = load i64, ptr %10, align 8, !tbaa !15
  %182 = load i64, ptr %4, align 8, !tbaa !15
  %183 = mul i64 %181, %182
  %184 = load i64, ptr %16, align 8, !tbaa !15
  %185 = add i64 %183, %184
  %186 = getelementptr inbounds double, ptr %180, i64 %185
  %187 = load double, ptr %186, align 8, !tbaa !18
  %188 = call double @llvm.fabs.f64(double %187)
  store double %188, ptr %179, align 8, !tbaa !18
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #6
  store i64 0, ptr %23, align 8, !tbaa !15
  br label %189

189:                                              ; preds = %204, %112
  %190 = load i64, ptr %23, align 8, !tbaa !15
  %191 = icmp ult i64 %190, 6
  br i1 %191, label %193, label %192

192:                                              ; preds = %189
  store i32 14, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #6
  br label %207

193:                                              ; preds = %189
  %194 = load i64, ptr %23, align 8, !tbaa !15
  %195 = getelementptr inbounds [6 x double], ptr %22, i64 0, i64 %194
  %196 = load double, ptr %195, align 8, !tbaa !18
  %197 = load double, ptr %21, align 8, !tbaa !18
  %198 = fcmp ogt double %196, %197
  br i1 %198, label %199, label %203

199:                                              ; preds = %193
  %200 = load i64, ptr %23, align 8, !tbaa !15
  %201 = getelementptr inbounds [6 x double], ptr %22, i64 0, i64 %200
  %202 = load double, ptr %201, align 8, !tbaa !18
  store double %202, ptr %21, align 8, !tbaa !18
  br label %203

203:                                              ; preds = %199, %193
  br label %204

204:                                              ; preds = %203
  %205 = load i64, ptr %23, align 8, !tbaa !15
  %206 = add i64 %205, 1
  store i64 %206, ptr %23, align 8, !tbaa !15
  br label %189, !llvm.loop !20

207:                                              ; preds = %192
  %208 = load double, ptr %20, align 8, !tbaa !18
  %209 = load double, ptr %21, align 8, !tbaa !18
  %210 = fmul double %208, %209
  %211 = load ptr, ptr %3, align 8, !tbaa !5
  %212 = getelementptr inbounds %struct.scf_context, ptr %211, i32 0, i32 30
  %213 = load double, ptr %212, align 8, !tbaa !22
  %214 = fcmp olt double %210, %213
  br i1 %214, label %215, label %216

215:                                              ; preds = %207
  store i32 13, ptr %8, align 4
  br label %274

216:                                              ; preds = %207
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #6
  %217 = call ptr @x_malloc(i64 noundef 80)
  store ptr %217, ptr %24, align 8, !tbaa !5
  %218 = load ptr, ptr %3, align 8, !tbaa !5
  %219 = load ptr, ptr %24, align 8, !tbaa !5
  %220 = getelementptr inbounds %struct.task_func_build_J_arg, ptr %219, i32 0, i32 0
  store ptr %218, ptr %220, align 8, !tbaa !23
  %221 = load ptr, ptr %6, align 8, !tbaa !5
  %222 = load ptr, ptr %24, align 8, !tbaa !5
  %223 = getelementptr inbounds %struct.task_func_build_J_arg, ptr %222, i32 0, i32 1
  store ptr %221, ptr %223, align 8, !tbaa !25
  %224 = load ptr, ptr %5, align 8, !tbaa !5
  %225 = load ptr, ptr %24, align 8, !tbaa !5
  %226 = getelementptr inbounds %struct.task_func_build_J_arg, ptr %225, i32 0, i32 2
  store ptr %224, ptr %226, align 8, !tbaa !26
  %227 = load i64, ptr %7, align 8, !tbaa !15
  %228 = load ptr, ptr %24, align 8, !tbaa !5
  %229 = getelementptr inbounds %struct.task_func_build_J_arg, ptr %228, i32 0, i32 3
  store i64 %227, ptr %229, align 8, !tbaa !27
  %230 = load i64, ptr %10, align 8, !tbaa !15
  %231 = load ptr, ptr %24, align 8, !tbaa !5
  %232 = getelementptr inbounds %struct.task_func_build_J_arg, ptr %231, i32 0, i32 4
  store i64 %230, ptr %232, align 8, !tbaa !28
  %233 = load i64, ptr %14, align 8, !tbaa !15
  %234 = load ptr, ptr %24, align 8, !tbaa !5
  %235 = getelementptr inbounds %struct.task_func_build_J_arg, ptr %234, i32 0, i32 5
  store i64 %233, ptr %235, align 8, !tbaa !29
  %236 = load i64, ptr %16, align 8, !tbaa !15
  %237 = load ptr, ptr %24, align 8, !tbaa !5
  %238 = getelementptr inbounds %struct.task_func_build_J_arg, ptr %237, i32 0, i32 6
  store i64 %236, ptr %238, align 8, !tbaa !30
  %239 = load double, ptr %13, align 8, !tbaa !18
  %240 = fptoui double %239 to i64
  %241 = load ptr, ptr %24, align 8, !tbaa !5
  %242 = getelementptr inbounds %struct.task_func_build_J_arg, ptr %241, i32 0, i32 7
  store i64 %240, ptr %242, align 8, !tbaa !31
  %243 = load double, ptr %18, align 8, !tbaa !18
  %244 = fptoui double %243 to i64
  %245 = load ptr, ptr %24, align 8, !tbaa !5
  %246 = getelementptr inbounds %struct.task_func_build_J_arg, ptr %245, i32 0, i32 8
  store i64 %244, ptr %246, align 8, !tbaa !32
  %247 = load double, ptr %19, align 8, !tbaa !18
  %248 = fptoui double %247 to i64
  %249 = load ptr, ptr %24, align 8, !tbaa !5
  %250 = getelementptr inbounds %struct.task_func_build_J_arg, ptr %249, i32 0, i32 9
  store i64 %248, ptr %250, align 8, !tbaa !33
  %251 = load ptr, ptr %3, align 8, !tbaa !5
  %252 = getelementptr inbounds %struct.scf_context, ptr %251, i32 0, i32 36
  %253 = load ptr, ptr %252, align 8, !tbaa !34
  %254 = load i64, ptr %9, align 8, !tbaa !15
  %255 = load i64, ptr %4, align 8, !tbaa !15
  %256 = mul i64 %254, %255
  %257 = load i64, ptr %4, align 8, !tbaa !15
  %258 = mul i64 %256, %257
  %259 = load i64, ptr %11, align 8, !tbaa !15
  %260 = load i64, ptr %4, align 8, !tbaa !15
  %261 = mul i64 %259, %260
  %262 = add i64 %258, %261
  %263 = load i64, ptr %15, align 8, !tbaa !15
  %264 = add i64 %262, %263
  %265 = load i64, ptr %16, align 8, !tbaa !15
  %266 = add i64 %264, %265
  %267 = load ptr, ptr %3, align 8, !tbaa !5
  %268 = getelementptr inbounds %struct.scf_context, ptr %267, i32 0, i32 36
  %269 = load ptr, ptr %268, align 8, !tbaa !34
  %270 = getelementptr inbounds %struct.threadpool_context, ptr %269, i32 0, i32 0
  %271 = load i64, ptr %270, align 8, !tbaa !35
  %272 = urem i64 %266, %271
  %273 = load ptr, ptr %24, align 8, !tbaa !5
  call void @threadpool_add_task(ptr noundef %253, i64 noundef %272, ptr noundef @task_func_build_J, ptr noundef %273)
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #6
  store i32 0, ptr %8, align 4
  br label %274

274:                                              ; preds = %216, %215
  call void @llvm.lifetime.end.p0(i64 48, ptr %22) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #6
  %275 = load i32, ptr %8, align 4
  switch i32 %275, label %278 [
    i32 0, label %276
  ]

276:                                              ; preds = %274
  br label %277

277:                                              ; preds = %276, %108
  store i32 0, ptr %8, align 4
  br label %278

278:                                              ; preds = %277, %274
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #6
  %279 = load i32, ptr %8, align 4
  switch i32 %279, label %316 [
    i32 0, label %280
    i32 13, label %281
  ]

280:                                              ; preds = %278
  br label %281

281:                                              ; preds = %280, %278
  %282 = load i64, ptr %16, align 8, !tbaa !15
  %283 = add i64 %282, 1
  store i64 %283, ptr %16, align 8, !tbaa !15
  br label %82, !llvm.loop !37

284:                                              ; preds = %86
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #6
  br label %285

285:                                              ; preds = %284
  %286 = load i64, ptr %14, align 8, !tbaa !15
  %287 = add i64 %286, 1
  store i64 %287, ptr %14, align 8, !tbaa !15
  br label %73, !llvm.loop !38

288:                                              ; preds = %77
  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
  br label %289

289:                                              ; preds = %288
  %290 = load i64, ptr %10, align 8, !tbaa !15
  %291 = add i64 %290, 1
  store i64 %291, ptr %10, align 8, !tbaa !15
  br label %52, !llvm.loop !39

292:                                              ; preds = %56
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #6
  br label %293

293:                                              ; preds = %292
  %294 = load i64, ptr %7, align 8, !tbaa !15
  %295 = add i64 %294, 1
  store i64 %295, ptr %7, align 8, !tbaa !15
  br label %43, !llvm.loop !40

296:                                              ; preds = %47
  %297 = load ptr, ptr %3, align 8, !tbaa !5
  %298 = getelementptr inbounds %struct.scf_context, ptr %297, i32 0, i32 36
  %299 = load ptr, ptr %298, align 8, !tbaa !34
  call void @threadpool_wait_job_done(ptr noundef %299)
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #6
  %300 = load ptr, ptr %3, align 8, !tbaa !5
  %301 = getelementptr inbounds %struct.scf_context, ptr %300, i32 0, i32 51
  %302 = load ptr, ptr %301, align 8, !tbaa !41
  store ptr %302, ptr %25, align 8, !tbaa !5
  %303 = load ptr, ptr %6, align 8, !tbaa !5
  %304 = load ptr, ptr %25, align 8, !tbaa !5
  %305 = load i64, ptr %4, align 8, !tbaa !15
  %306 = load i64, ptr %4, align 8, !tbaa !15
  call void @transpose(ptr noundef %303, ptr noundef %304, i64 noundef %305, i64 noundef %306)
  %307 = load ptr, ptr %6, align 8, !tbaa !5
  %308 = load ptr, ptr %25, align 8, !tbaa !5
  %309 = load ptr, ptr %25, align 8, !tbaa !5
  %310 = load i64, ptr %4, align 8, !tbaa !15
  %311 = load i64, ptr %4, align 8, !tbaa !15
  call void @mat_add(ptr noundef %307, ptr noundef %308, ptr noundef %309, i64 noundef %310, i64 noundef %311)
  %312 = load ptr, ptr %25, align 8, !tbaa !5
  %313 = load ptr, ptr %6, align 8, !tbaa !5
  %314 = load i64, ptr %4, align 8, !tbaa !15
  %315 = load i64, ptr %4, align 8, !tbaa !15
  call void @mat_scalar_multiply(ptr noundef %312, ptr noundef %313, i64 noundef %314, i64 noundef %315, double noundef 2.500000e-01)
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #6
  ret void

316:                                              ; preds = %278
  unreachable
}

; Function Attrs: nounwind uwtable
declare hidden void @task_func_build_J(ptr noundef) #5

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #2 = { 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 #3 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { "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 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 #6 = { nounwind }

!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, !6, i64 608}
!10 = !{!"molecular_grid_desc", !6, i64 0, !11, i64 8, !11, i64 16, !11, i64 24, !11, i64 32, !11, i64 40, !6, i64 48, !6, i64 56, !11, i64 64, !6, i64 72, !6, i64 80, !6, i64 88, !6, i64 96, !6, i64 104, !6, i64 112, !6, i64 120, !6, i64 128, !6, i64 136, !6, i64 144, !6, i64 152, !6, i64 160, !6, i64 168, !6, i64 176, !6, i64 184, !6, i64 192, !6, i64 200, !6, i64 208, !6, i64 216, !12, i64 224, !12, i64 232, !12, i64 240, !6, i64 248, !6, i64 256, !6, i64 264, !6, i64 272, !11, i64 280, !6, i64 288, !6, i64 296, !6, i64 304, !6, i64 312, !6, i64 320, !6, i64 328, !6, i64 336, !6, i64 344, !6, i64 352, !6, i64 360, !6, i64 368, !6, i64 376, !6, i64 384, !6, i64 392, !6, i64 400, !6, i64 408, !6, i64 416, !6, i64 424, !6, i64 432, !6, i64 440, !6, i64 448, !6, i64 456, !6, i64 464, !6, i64 472, !6, i64 480, !6, i64 488, !6, i64 496, !6, i64 504, !6, i64 512, !6, i64 520, !6, i64 528, !6, i64 536, !6, i64 544, !6, i64 552, !11, i64 560, !11, i64 568, !6, i64 576, !6, i64 584, !6, i64 592, !6, i64 600, !6, i64 608}
!11 = !{!"long", !7, i64 0}
!12 = !{!"double", !7, i64 0}
!13 = !{!14, !11, i64 8}
!14 = !{!"scf_context", !6, i64 0, !11, i64 8, !11, i64 16, !11, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !6, i64 56, !6, i64 64, !6, i64 72, !6, i64 80, !6, i64 88, !6, i64 96, !6, i64 104, !6, i64 112, !6, i64 120, !6, i64 128, !6, i64 136, !6, i64 144, !6, i64 152, !6, i64 160, !6, i64 168, !6, i64 176, !6, i64 184, !12, i64 192, !11, i64 200, !12, i64 208, !12, i64 216, !12, i64 224, !11, i64 232, !12, i64 240, !12, i64 248, !11, i64 256, !12, i64 264, !11, i64 272, !11, i64 280, !6, i64 288, !6, i64 296, !6, i64 304, !11, i64 312, !11, i64 320, !11, i64 328, !6, i64 336, !6, i64 344, !6, i64 352, !6, i64 360, !6, i64 368, !6, i64 376, !6, i64 384, !6, i64 392, !12, i64 400, !6, i64 408, !6, i64 416, !6, i64 424, !6, i64 432, !11, i64 440}
!15 = !{!11, !11, i64 0}
!16 = !{!14, !6, i64 176}
!17 = !{!10, !6, i64 208}
!18 = !{!12, !12, i64 0}
!19 = !{!14, !6, i64 304}
!20 = distinct !{!20, !21}
!21 = !{!"llvm.loop.mustprogress"}
!22 = !{!14, !12, i64 240}
!23 = !{!24, !6, i64 0}
!24 = !{!"task_func_build_J_arg", !6, i64 0, !6, i64 8, !6, i64 16, !11, i64 24, !11, i64 32, !11, i64 40, !11, i64 48, !11, i64 56, !11, i64 64, !11, i64 72}
!25 = !{!24, !6, i64 8}
!26 = !{!24, !6, i64 16}
!27 = !{!24, !11, i64 24}
!28 = !{!24, !11, i64 32}
!29 = !{!24, !11, i64 40}
!30 = !{!24, !11, i64 48}
!31 = !{!24, !11, i64 56}
!32 = !{!24, !11, i64 64}
!33 = !{!24, !11, i64 72}
!34 = !{!14, !6, i64 288}
!35 = !{!36, !11, i64 0}
!36 = !{!"threadpool_context", !11, i64 0, !6, i64 8, !7, i64 16}
!37 = distinct !{!37, !21}
!38 = distinct !{!38, !21}
!39 = distinct !{!39, !21}
!40 = distinct !{!40, !21}
!41 = !{!14, !6, i64 408}


; 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"

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #0

; Function Attrs: mustprogress nofree nounwind willreturn memory(write)
declare double @sqrt(double noundef) local_unnamed_addr #1

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

declare ptr @x_malloc(i64 noundef) local_unnamed_addr #3

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

declare void @threadpool_wait_job_done(ptr noundef) local_unnamed_addr #3

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

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

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

; Function Attrs: nounwind uwtable
define dso_local void @build_J_matrix(ptr nocapture noundef readonly %0) local_unnamed_addr #4 {
  %2 = getelementptr inbounds i8, ptr %0, i64 608
  %3 = load ptr, ptr %2, align 8, !tbaa !5
  %4 = getelementptr inbounds i8, ptr %3, i64 8
  %5 = load i64, ptr %4, align 8, !tbaa !12
  %6 = getelementptr inbounds i8, ptr %3, i64 176
  %7 = load ptr, ptr %6, align 8, !tbaa !14
  %8 = getelementptr inbounds i8, ptr %0, i64 208
  %9 = load ptr, ptr %8, align 8, !tbaa !15
  %10 = shl i64 %5, 3
  %11 = mul i64 %10, %5
  tail call void @llvm.memset.p0.i64(ptr align 8 %9, i8 0, i64 %11, i1 false)
  %.not142 = icmp eq i64 %5, 0
  br i1 %.not142, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %1
  %12 = getelementptr inbounds i8, ptr %3, i64 304
  %13 = getelementptr inbounds i8, ptr %3, i64 240
  %14 = getelementptr inbounds i8, ptr %3, i64 288
  br label %19

._crit_edge:                                      ; preds = %25, %1
  %15 = getelementptr inbounds i8, ptr %3, i64 288
  %16 = load ptr, ptr %15, align 8, !tbaa !16
  tail call void @threadpool_wait_job_done(ptr noundef %16) #5
  %17 = getelementptr inbounds i8, ptr %3, i64 408
  %18 = load ptr, ptr %17, align 8, !tbaa !17
  tail call void @transpose(ptr noundef %9, ptr noundef %18, i64 noundef %5, i64 noundef %5) #5
  tail call void @mat_add(ptr noundef %9, ptr noundef %18, ptr noundef %18, i64 noundef %5, i64 noundef %5) #5
  tail call void @mat_scalar_multiply(ptr noundef %18, ptr noundef %9, i64 noundef %5, i64 noundef %5, double noundef 2.500000e-01) #5
  ret void

19:                                               ; preds = %.lr.ph, %25
  %indvars.iv144 = phi i64 [ 1, %.lr.ph ], [ %indvars.iv.next145, %25 ]
  %.0141 = phi i64 [ 0, %.lr.ph ], [ %21, %25 ]
  %20 = mul i64 %.0141, %5
  %21 = add nuw i64 %.0141, 1
  %22 = mul i64 %21, %.0141
  %23 = lshr i64 %22, 1
  %24 = getelementptr double, ptr %7, i64 %20
  br label %26

25:                                               ; preds = %35
  %indvars.iv.next145 = add i64 %indvars.iv144, 1
  %exitcond147.not = icmp eq i64 %21, %5
  br i1 %exitcond147.not, label %._crit_edge, label %19, !llvm.loop !18

26:                                               ; preds = %19, %35
  %.0126140 = phi i64 [ 0, %19 ], [ %36, %35 ]
  %27 = mul i64 %.0126140, %5
  %28 = add i64 %.0126140, %23
  %29 = icmp eq i64 %.0141, %.0126140
  %30 = getelementptr double, ptr %24, i64 %.0126140
  %31 = getelementptr double, ptr %7, i64 %27
  %32 = select i1 %29, i64 1, i64 2
  %33 = add i64 %.0126140, %20
  %34 = mul i64 %33, %5
  br label %37

35:                                               ; preds = %48
  %36 = add nuw i64 %.0126140, 1
  %exitcond146 = icmp eq i64 %36, %indvars.iv144
  br i1 %exitcond146, label %25, label %26, !llvm.loop !20

37:                                               ; preds = %26, %48
  %indvars.iv = phi i64 [ 1, %26 ], [ %indvars.iv.next, %48 ]
  %.0129139 = phi i64 [ 0, %26 ], [ %39, %48 ]
  %38 = mul i64 %.0129139, %5
  %39 = add nuw i64 %.0129139, 1
  %40 = mul i64 %39, %.0129139
  %41 = lshr i64 %40, 1
  %42 = icmp eq i64 %.0141, %.0129139
  %43 = getelementptr double, ptr %7, i64 %38
  %44 = getelementptr double, ptr %24, i64 %.0129139
  %45 = getelementptr double, ptr %31, i64 %.0129139
  %46 = add i64 %.0129139, %34
  %47 = mul i64 %46, %5
  br label %49

48:                                               ; preds = %.critedge
  %indvars.iv.next = add i64 %indvars.iv, 1
  %exitcond143.not = icmp eq i64 %39, %5
  br i1 %exitcond143.not, label %35, label %37, !llvm.loop !21

49:                                               ; preds = %37, %.critedge
  %.0128138 = phi i64 [ 0, %37 ], [ %105, %.critedge ]
  %50 = add i64 %.0128138, %41
  %51 = icmp eq i64 %.0129139, %.0128138
  %52 = icmp eq i64 %.0126140, %.0128138
  %or.cond = and i1 %42, %52
  %.0127 = select i1 %or.cond, i64 1, i64 2
  %.not135 = icmp ult i64 %28, %50
  br i1 %.not135, label %.critedge, label %53

53:                                               ; preds = %49
  %54 = load ptr, ptr %12, align 8, !tbaa !22
  %55 = getelementptr inbounds double, ptr %54, i64 %28
  %56 = load double, ptr %55, align 8, !tbaa !23
  %57 = tail call double @sqrt(double noundef %56) #5
  %58 = load ptr, ptr %12, align 8, !tbaa !22
  %59 = getelementptr inbounds double, ptr %58, i64 %50
  %60 = load double, ptr %59, align 8, !tbaa !23
  %61 = tail call double @sqrt(double noundef %60) #5
  %62 = load double, ptr %30, align 8, !tbaa !23
  %63 = fmul double %62, 4.000000e+00
  %64 = tail call double @llvm.fabs.f64(double %63)
  %65 = getelementptr double, ptr %43, i64 %.0128138
  %66 = load double, ptr %65, align 8, !tbaa !23
  %67 = fmul double %66, 4.000000e+00
  %68 = tail call double @llvm.fabs.f64(double %67)
  %69 = load double, ptr %44, align 8, !tbaa !23
  %70 = tail call double @llvm.fabs.f64(double %69)
  %71 = getelementptr double, ptr %24, i64 %.0128138
  %72 = load double, ptr %71, align 8, !tbaa !23
  %73 = tail call double @llvm.fabs.f64(double %72)
  %74 = load double, ptr %45, align 8, !tbaa !23
  %75 = tail call double @llvm.fabs.f64(double %74)
  %76 = getelementptr double, ptr %31, i64 %.0128138
  %77 = load double, ptr %76, align 8, !tbaa !23
  %78 = tail call double @llvm.fabs.f64(double %77)
  %79 = fcmp ogt double %64, 0.000000e+00
  %.1 = select i1 %79, double %64, double 0.000000e+00
  %80 = fcmp ogt double %68, %.1
  %.1.1 = select i1 %80, double %68, double %.1
  %81 = fcmp ogt double %70, %.1.1
  %.1.2 = select i1 %81, double %70, double %.1.1
  %82 = fcmp ogt double %73, %.1.2
  %.1.3 = select i1 %82, double %73, double %.1.2
  %83 = fcmp ogt double %75, %.1.3
  %.1.4 = select i1 %83, double %75, double %.1.3
  %84 = fcmp ogt double %78, %.1.4
  %.1.5 = select i1 %84, double %78, double %.1.4
  %85 = fmul double %57, %61
  %86 = fmul double %85, %.1.5
  %87 = load double, ptr %13, align 8, !tbaa !24
  %88 = fcmp uge double %86, %87
  br i1 %88, label %89, label %.critedge

89:                                               ; preds = %53
  %90 = tail call ptr @x_malloc(i64 noundef 80) #5
  store ptr %3, ptr %90, align 8, !tbaa !25
  %91 = getelementptr inbounds i8, ptr %90, i64 8
  store ptr %9, ptr %91, align 8, !tbaa !27
  %92 = getelementptr inbounds i8, ptr %90, i64 16
  store ptr %7, ptr %92, align 8, !tbaa !28
  %93 = getelementptr inbounds i8, ptr %90, i64 24
  store i64 %.0141, ptr %93, align 8, !tbaa !29
  %94 = getelementptr inbounds i8, ptr %90, i64 32
  store i64 %.0126140, ptr %94, align 8, !tbaa !30
  %95 = getelementptr inbounds i8, ptr %90, i64 40
  store i64 %.0129139, ptr %95, align 8, !tbaa !31
  %96 = getelementptr inbounds i8, ptr %90, i64 48
  store i64 %.0128138, ptr %96, align 8, !tbaa !32
  %97 = getelementptr inbounds i8, ptr %90, i64 56
  store i64 %32, ptr %97, align 8, !tbaa !33
  %98 = select i1 %51, i64 1, i64 2
  %99 = getelementptr inbounds i8, ptr %90, i64 64
  store i64 %98, ptr %99, align 8, !tbaa !34
  %100 = getelementptr inbounds i8, ptr %90, i64 72
  store i64 %.0127, ptr %100, align 8, !tbaa !35
  %101 = load ptr, ptr %14, align 8, !tbaa !16
  %102 = add i64 %.0128138, %47
  %103 = load i64, ptr %101, align 8, !tbaa !36
  %104 = urem i64 %102, %103
  tail call void @threadpool_add_task(ptr noundef nonnull %101, i64 noundef %104, ptr noundef nonnull @task_func_build_J, ptr noundef nonnull %90) #5
  br label %.critedge

.critedge:                                        ; preds = %53, %89, %49
  %105 = add nuw i64 %.0128138, 1
  %exitcond = icmp eq i64 %105, %indvars.iv
  br i1 %exitcond, label %48, label %49, !llvm.loop !38
}

; Function Attrs: nounwind uwtable
declare hidden void @task_func_build_J(ptr noundef) #4

attributes #0 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #1 = { mustprogress nofree nounwind willreturn memory(write) "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 #2 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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 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 #5 = { nounwind }

!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, !7, i64 608}
!6 = !{!"molecular_grid_desc", !7, i64 0, !10, i64 8, !10, i64 16, !10, i64 24, !10, i64 32, !10, i64 40, !7, i64 48, !7, i64 56, !10, i64 64, !7, i64 72, !7, i64 80, !7, i64 88, !7, i64 96, !7, i64 104, !7, i64 112, !7, i64 120, !7, i64 128, !7, i64 136, !7, i64 144, !7, i64 152, !7, i64 160, !7, i64 168, !7, i64 176, !7, i64 184, !7, i64 192, !7, i64 200, !7, i64 208, !7, i64 216, !11, i64 224, !11, i64 232, !11, i64 240, !7, i64 248, !7, i64 256, !7, i64 264, !7, i64 272, !10, i64 280, !7, i64 288, !7, i64 296, !7, i64 304, !7, i64 312, !7, i64 320, !7, i64 328, !7, i64 336, !7, i64 344, !7, i64 352, !7, i64 360, !7, i64 368, !7, i64 376, !7, i64 384, !7, i64 392, !7, i64 400, !7, i64 408, !7, i64 416, !7, i64 424, !7, i64 432, !7, i64 440, !7, i64 448, !7, i64 456, !7, i64 464, !7, i64 472, !7, i64 480, !7, i64 488, !7, i64 496, !7, i64 504, !7, i64 512, !7, i64 520, !7, i64 528, !7, i64 536, !7, i64 544, !7, i64 552, !10, i64 560, !10, i64 568, !7, i64 576, !7, i64 584, !7, i64 592, !7, i64 600, !7, i64 608}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"long", !8, i64 0}
!11 = !{!"double", !8, i64 0}
!12 = !{!13, !10, i64 8}
!13 = !{!"scf_context", !7, i64 0, !10, i64 8, !10, i64 16, !10, i64 24, !7, i64 32, !7, i64 40, !7, i64 48, !7, i64 56, !7, i64 64, !7, i64 72, !7, i64 80, !7, i64 88, !7, i64 96, !7, i64 104, !7, i64 112, !7, i64 120, !7, i64 128, !7, i64 136, !7, i64 144, !7, i64 152, !7, i64 160, !7, i64 168, !7, i64 176, !7, i64 184, !11, i64 192, !10, i64 200, !11, i64 208, !11, i64 216, !11, i64 224, !10, i64 232, !11, i64 240, !11, i64 248, !10, i64 256, !11, i64 264, !10, i64 272, !10, i64 280, !7, i64 288, !7, i64 296, !7, i64 304, !10, i64 312, !10, i64 320, !10, i64 328, !7, i64 336, !7, i64 344, !7, i64 352, !7, i64 360, !7, i64 368, !7, i64 376, !7, i64 384, !7, i64 392, !11, i64 400, !7, i64 408, !7, i64 416, !7, i64 424, !7, i64 432, !10, i64 440}
!14 = !{!13, !7, i64 176}
!15 = !{!6, !7, i64 208}
!16 = !{!13, !7, i64 288}
!17 = !{!13, !7, i64 408}
!18 = distinct !{!18, !19}
!19 = !{!"llvm.loop.mustprogress"}
!20 = distinct !{!20, !19}
!21 = distinct !{!21, !19}
!22 = !{!13, !7, i64 304}
!23 = !{!11, !11, i64 0}
!24 = !{!13, !11, i64 240}
!25 = !{!26, !7, i64 0}
!26 = !{!"task_func_build_J_arg", !7, i64 0, !7, i64 8, !7, i64 16, !10, i64 24, !10, i64 32, !10, i64 40, !10, i64 48, !10, i64 56, !10, i64 64, !10, i64 72}
!27 = !{!26, !7, i64 8}
!28 = !{!26, !7, i64 16}
!29 = !{!26, !10, i64 24}
!30 = !{!26, !10, i64 32}
!31 = !{!26, !10, i64 40}
!32 = !{!26, !10, i64 48}
!33 = !{!26, !10, i64 56}
!34 = !{!26, !10, i64 64}
!35 = !{!26, !10, i64 72}
!36 = !{!37, !10, i64 0}
!37 = !{!"threadpool_context", !10, i64 0, !7, i64 8, !8, i64 16}
!38 = distinct !{!38, !19}


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