; LLVM IR from sourceryinstitute/MORFEUS-Source :: src/FV/src/mesh_optimize/OptMS (SMinit)

; 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.__SMlocal_mesh = type { i32, i32, i32, [3 x double], [3 x double], [3 x double], ptr, ptr, ptr, i32, double, ptr, double, i32, i32, i32, ptr, ptr, ptr }
%struct.__SMparam = type { i32, i32, i32, double, double, double, double, i32, i32, i32, double, double, ptr, ptr, ptr, ptr }
%struct.__SMoptimal = type { i32, i32, i32, i32, i32, i32, i32, double, i32, i32, ptr, ptr, ptr, ptr, ptr, ptr, ptr, i32, [3 x double], double, double, ptr, ptr, ptr, ptr, [3 x i32], i32 }

@.str.1 = external hidden unnamed_addr constant [106 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [55 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [58 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [58 x i8], align 1

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

declare i32 @SMerror(i32 noundef, ptr noundef, ptr noundef, ptr noundef, i32 noundef, i32 noundef, ptr noundef) #1

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

; Function Attrs: nounwind uwtable
define dso_local i32 @SMinitLocalMesh(i32 noundef %0, i32 noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5, ptr noundef %6) #2 {
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca ptr, align 8
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  %21 = alloca [3 x double], align 16
  %22 = alloca [3 x double], align 16
  %23 = alloca double, align 8
  %24 = alloca i32, align 4
  %25 = alloca i32, align 4
  %26 = alloca i32, align 4
  %27 = alloca i32, align 4
  %28 = alloca i32, align 4
  %29 = alloca i32, align 4
  store i32 %0, ptr %9, align 4, !tbaa !5
  store i32 %1, ptr %10, align 4, !tbaa !5
  store ptr %2, ptr %11, align 8, !tbaa !9
  store ptr %3, ptr %12, align 8, !tbaa !9
  store ptr %4, ptr %13, align 8, !tbaa !9
  store ptr %5, ptr %14, align 8, !tbaa !9
  store ptr %6, ptr %15, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #3
  call void @llvm.lifetime.start.p0(i64 24, ptr %21) #3
  call void @llvm.lifetime.start.p0(i64 24, ptr %22) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #3
  %30 = load ptr, ptr %11, align 8, !tbaa !9
  %31 = icmp eq ptr %30, null
  br i1 %31, label %32, label %34

32:                                               ; preds = %7
  %33 = call i32 @SMerror(i32 noundef 214, ptr noundef @.str.16, ptr noundef @.str.1, ptr noundef @.str.2, i32 noundef 56, i32 noundef 0, ptr noundef null)
  store i32 %33, ptr %8, align 4
  store i32 1, ptr %24, align 4
  br label %625

34:                                               ; preds = %7
  %35 = load ptr, ptr %12, align 8, !tbaa !9
  %36 = icmp eq ptr %35, null
  br i1 %36, label %37, label %39

37:                                               ; preds = %34
  %38 = call i32 @SMerror(i32 noundef 215, ptr noundef @.str.16, ptr noundef @.str.1, ptr noundef @.str.2, i32 noundef 56, i32 noundef 0, ptr noundef null)
  store i32 %38, ptr %8, align 4
  store i32 1, ptr %24, align 4
  br label %625

39:                                               ; preds = %34
  %40 = load ptr, ptr %13, align 8, !tbaa !9
  %41 = icmp eq ptr %40, null
  br i1 %41, label %42, label %44

42:                                               ; preds = %39
  %43 = call i32 @SMerror(i32 noundef 216, ptr noundef @.str.16, ptr noundef @.str.1, ptr noundef @.str.2, i32 noundef 56, i32 noundef 0, ptr noundef null)
  store i32 %43, ptr %8, align 4
  store i32 1, ptr %24, align 4
  br label %625

44:                                               ; preds = %39
  %45 = load ptr, ptr %14, align 8, !tbaa !9
  %46 = icmp eq ptr %45, null
  br i1 %46, label %47, label %49

47:                                               ; preds = %44
  %48 = call i32 @SMerror(i32 noundef 217, ptr noundef @.str.16, ptr noundef @.str.1, ptr noundef @.str.2, i32 noundef 56, i32 noundef 0, ptr noundef null)
  store i32 %48, ptr %8, align 4
  store i32 1, ptr %24, align 4
  br label %625

49:                                               ; preds = %44
  %50 = load ptr, ptr %15, align 8, !tbaa !9
  %51 = icmp eq ptr %50, null
  br i1 %51, label %52, label %54

52:                                               ; preds = %49
  %53 = call i32 @SMerror(i32 noundef 218, ptr noundef @.str.16, ptr noundef @.str.1, ptr noundef @.str.2, i32 noundef 56, i32 noundef 0, ptr noundef null)
  store i32 %53, ptr %8, align 4
  store i32 1, ptr %24, align 4
  br label %625

54:                                               ; preds = %49
  %55 = load i32, ptr %9, align 4, !tbaa !5
  %56 = icmp eq i32 %55, 0
  br i1 %56, label %57, label %59

57:                                               ; preds = %54
  %58 = call i32 @SMerror(i32 noundef 222, ptr noundef @.str.16, ptr noundef @.str.1, ptr noundef @.str.2, i32 noundef 57, i32 noundef 0, ptr noundef @.str.17)
  store i32 %58, ptr %8, align 4
  store i32 1, ptr %24, align 4
  br label %625

59:                                               ; preds = %54
  %60 = load i32, ptr %10, align 4, !tbaa !5
  %61 = icmp eq i32 %60, 0
  br i1 %61, label %62, label %64

62:                                               ; preds = %59
  %63 = call i32 @SMerror(i32 noundef 224, ptr noundef @.str.16, ptr noundef @.str.1, ptr noundef @.str.2, i32 noundef 57, i32 noundef 0, ptr noundef @.str.18)
  store i32 %63, ptr %8, align 4
  store i32 1, ptr %24, align 4
  br label %625

64:                                               ; preds = %59
  %65 = load i32, ptr %9, align 4, !tbaa !5
  %66 = icmp sgt i32 %65, 150
  br i1 %66, label %67, label %69

67:                                               ; preds = %64
  %68 = call i32 @SMerror(i32 noundef 228, ptr noundef @.str.16, ptr noundef @.str.1, ptr noundef @.str.2, i32 noundef 57, i32 noundef 0, ptr noundef @.str.19)
  store i32 %68, ptr %8, align 4
  store i32 1, ptr %24, align 4
  br label %625

69:                                               ; preds = %64
  %70 = load i32, ptr %10, align 4, !tbaa !5
  %71 = icmp sgt i32 %70, 300
  br i1 %71, label %72, label %74

72:                                               ; preds = %69
  %73 = call i32 @SMerror(i32 noundef 232, ptr noundef @.str.16, ptr noundef @.str.1, ptr noundef @.str.2, i32 noundef 57, i32 noundef 0, ptr noundef @.str.20)
  store i32 %73, ptr %8, align 4
  store i32 1, ptr %24, align 4
  br label %625

74:                                               ; preds = %69
  %75 = load ptr, ptr %14, align 8, !tbaa !9
  %76 = getelementptr inbounds %struct.__SMlocal_mesh, ptr %75, i32 0, i32 0
  %77 = load i32, ptr %76, align 8, !tbaa !11
  store i32 %77, ptr %19, align 4, !tbaa !5
  %78 = load i32, ptr %19, align 4, !tbaa !5
  %79 = icmp eq i32 %78, 2
  br i1 %79, label %80, label %86

80:                                               ; preds = %74
  %81 = load i32, ptr %9, align 4, !tbaa !5
  %82 = load i32, ptr %10, align 4, !tbaa !5
  %83 = icmp ne i32 %81, %82
  br i1 %83, label %84, label %86

84:                                               ; preds = %80
  %85 = call i32 @SMerror(i32 noundef 239, ptr noundef @.str.16, ptr noundef @.str.1, ptr noundef @.str.2, i32 noundef 57, i32 noundef 0, ptr noundef @.str.21)
  store i32 %85, ptr %8, align 4
  store i32 1, ptr %24, align 4
  br label %625

86:                                               ; preds = %80, %74
  %87 = load i32, ptr %19, align 4, !tbaa !5
  %88 = icmp eq i32 %87, 3
  br i1 %88, label %89, label %97

89:                                               ; preds = %86
  %90 = load i32, ptr %10, align 4, !tbaa !5
  %91 = load i32, ptr %9, align 4, !tbaa !5
  %92 = mul nsw i32 2, %91
  %93 = sub nsw i32 %92, 4
  %94 = icmp ne i32 %90, %93
  br i1 %94, label %95, label %97

95:                                               ; preds = %89
  %96 = call i32 @SMerror(i32 noundef 242, ptr noundef @.str.16, ptr noundef @.str.1, ptr noundef @.str.2, i32 noundef 57, i32 noundef 0, ptr noundef @.str.21)
  store i32 %96, ptr %8, align 4
  store i32 1, ptr %24, align 4
  br label %625

97:                                               ; preds = %89, %86
  br label %98

98:                                               ; preds = %97
  %99 = load i32, ptr %9, align 4, !tbaa !5
  %100 = load ptr, ptr %14, align 8, !tbaa !9
  %101 = getelementptr inbounds %struct.__SMlocal_mesh, ptr %100, i32 0, i32 1
  store i32 %99, ptr %101, align 4, !tbaa !14
  %102 = load i32, ptr %10, align 4, !tbaa !5
  %103 = load ptr, ptr %14, align 8, !tbaa !9
  %104 = getelementptr inbounds %struct.__SMlocal_mesh, ptr %103, i32 0, i32 2
  store i32 %102, ptr %104, align 8, !tbaa !15
  %105 = load i32, ptr %10, align 4, !tbaa !5
  %106 = load ptr, ptr %15, align 8, !tbaa !9
  %107 = getelementptr inbounds %struct.__SMparam, ptr %106, i32 0, i32 9
  %108 = load i32, ptr %107, align 8, !tbaa !16
  %109 = mul nsw i32 %105, %108
  store i32 %109, ptr %18, align 4, !tbaa !5
  %110 = load i32, ptr %18, align 4, !tbaa !5
  %111 = load ptr, ptr %14, align 8, !tbaa !9
  %112 = getelementptr inbounds %struct.__SMlocal_mesh, ptr %111, i32 0, i32 9
  store i32 %110, ptr %112, align 8, !tbaa !18
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #3
  %113 = load i32, ptr %19, align 4, !tbaa !5
  %114 = icmp eq i32 %113, 2
  br i1 %114, label %115, label %128

115:                                              ; preds = %98
  %116 = load ptr, ptr %11, align 8, !tbaa !9
  %117 = getelementptr inbounds double, ptr %116, i64 0
  %118 = load double, ptr %117, align 8, !tbaa !19
  %119 = load ptr, ptr %14, align 8, !tbaa !9
  %120 = getelementptr inbounds %struct.__SMlocal_mesh, ptr %119, i32 0, i32 5
  %121 = getelementptr inbounds [3 x double], ptr %120, i64 0, i64 0
  store double %118, ptr %121, align 8, !tbaa !19
  %122 = load ptr, ptr %11, align 8, !tbaa !9
  %123 = getelementptr inbounds double, ptr %122, i64 1
  %124 = load double, ptr %123, align 8, !tbaa !19
  %125 = load ptr, ptr %14, align 8, !tbaa !9
  %126 = getelementptr inbounds %struct.__SMlocal_mesh, ptr %125, i32 0, i32 5
  %127 = getelementptr inbounds [3 x double], ptr %126, i64 0, i64 1
  store double %124, ptr %127, align 8, !tbaa !19
  br label %171

128:                                              ; preds = %98
  %129 = load i32, ptr %19, align 4, !tbaa !5
  %130 = icmp eq i32 %129, 3
  br i1 %130, label %131, label %150

131:                                              ; preds = %128
  %132 = load ptr, ptr %11, align 8, !tbaa !9
  %133 = getelementptr inbounds double, ptr %132, i64 0
  %134 = load double, ptr %133, align 8, !tbaa !19
  %135 = load ptr, ptr %14, align 8, !tbaa !9
  %136 = getelementptr inbounds %struct.__SMlocal_mesh, ptr %135, i32 0, i32 5
  %137 = getelementptr inbounds [3 x double], ptr %136, i64 0, i64 0
  store double %134, ptr %137, align 8, !tbaa !19
  %138 = load ptr, ptr %11, align 8, !tbaa !9
  %139 = getelementptr inbounds double, ptr %138, i64 1
  %140 = load double, ptr %139, align 8, !tbaa !19
  %141 = load ptr, ptr %14, align 8, !tbaa !9
  %142 = getelementptr inbounds %struct.__SMlocal_mesh, ptr %141, i32 0, i32 5
  %143 = getelementptr inbounds [3 x double], ptr %142, i64 0, i64 1
  store double %140, ptr %143, align 8, !tbaa !19
  %144 = load ptr, ptr %11, align 8, !tbaa !9
  %145 = getelementptr inbounds double, ptr %144, i64 2
  %146 = load double, ptr %145, align 8, !tbaa !19
  %147 = load ptr, ptr %14, align 8, !tbaa !9
  %148 = getelementptr inbounds %struct.__SMlocal_mesh, ptr %147, i32 0, i32 5
  %149 = getelementptr inbounds [3 x double], ptr %148, i64 0, i64 2
  store double %146, ptr %149, align 8, !tbaa !19
  br label %170

150:                                              ; preds = %128
  store i32 0, ptr %25, align 4, !tbaa !5
  br label %151

151:                                              ; preds = %166, %150
  %152 = load i32, ptr %25, align 4, !tbaa !5
  %153 = load i32, ptr %19, align 4, !tbaa !5
  %154 = icmp slt i32 %152, %153
  br i1 %154, label %155, label %169

155:                                              ; preds = %151
  %156 = load ptr, ptr %11, align 8, !tbaa !9
  %157 = load i32, ptr %25, align 4, !tbaa !5
  %158 = sext i32 %157 to i64
  %159 = getelementptr inbounds double, ptr %156, i64 %158
  %160 = load double, ptr %159, align 8, !tbaa !19
  %161 = load ptr, ptr %14, align 8, !tbaa !9
  %162 = getelementptr inbounds %struct.__SMlocal_mesh, ptr %161, i32 0, i32 5
  %163 = load i32, ptr %25, align 4, !tbaa !5
  %164 = sext i32 %163 to i64
  %165 = getelementptr inbounds [3 x double], ptr %162, i64 0, i64 %164
  store double %160, ptr %165, align 8, !tbaa !19
  br label %166

166:                                              ; preds = %155
  %167 = load i32, ptr %25, align 4, !tbaa !5
  %168 = add nsw i32 %167, 1
  store i32 %168, ptr %25, align 4, !tbaa !5
  br label %151, !llvm.loop !20

169:                                              ; preds = %151
  br label %170

170:                                              ; preds = %169, %131
  br label %171

171:                                              ; preds = %170, %115
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #3
  %172 = load i32, ptr %19, align 4, !tbaa !5
  %173 = icmp eq i32 %172, 2
  br i1 %173, label %174, label %189

174:                                              ; preds = %171
  %175 = load ptr, ptr %11, align 8, !tbaa !9
  %176 = getelementptr inbounds double, ptr %175, i64 0
  %177 = load double, ptr %176, align 8, !tbaa !19
  %178 = load ptr, ptr %14, align 8, !tbaa !9
  %179 = getelementptr inbounds %struct.__SMlocal_mesh, ptr %178, i32 0, i32 8
  %180 = load ptr, ptr %179, align 8, !tbaa !22
  %181 = getelementptr inbounds double, ptr %180, i64 0
  store double %177, ptr %181, align 8, !tbaa !19
  %182 = load ptr, ptr %11, align 8, !tbaa !9
  %183 = getelementptr inbounds double, ptr %182, i64 1
  %184 = load double, ptr %183, align 8, !tbaa !19
  %185 = load ptr, ptr %14, align 8, !tbaa !9
  %186 = getelementptr inbounds %struct.__SMlocal_mesh, ptr %185, i32 0, i32 8
  %187 = load ptr, ptr %186, align 8, !tbaa !22
  %188 = getelementptr inbounds double, ptr %187, i64 1
  store double %184, ptr %188, align 8, !tbaa !19
  br label %236

189:                                              ; preds = %171
  %190 = load i32, ptr %19, align 4, !tbaa !5
  %191 = icmp eq i32 %190, 3
  br i1 %191, label %192, label %214

192:                                              ; preds = %189
  %193 = load ptr, ptr %11, align 8, !tbaa !9
  %194 = getelementptr inbounds double, ptr %193, i64 0
  %195 = load double, ptr %194, align 8, !tbaa !19
  %196 = load ptr, ptr %14, align 8, !tbaa !9
  %197 = getelementptr inbounds %struct.__SMlocal_mesh, ptr %196, i32 0, i32 8
  %198 = load ptr, ptr %197, align 8, !tbaa !22
  %199 = getelementptr inbounds double, ptr %198, i64 0
  store double %195, ptr %199, align 8, !tbaa !19
  %200 = load ptr, ptr %11, align 8, !tbaa !9
  %201 = getelementptr inbounds double, ptr %200, i64 1
  %202 = load double, ptr %201, align 8, !tbaa !19
  %203 = load ptr, ptr %14, align 8, !tbaa !9
  %204 = getelementptr inbounds %struct.__SMlocal_mesh, ptr %203, i32 0, i32 8
  %205 = load ptr, ptr %204, align 8, !tbaa !22
  %206 = getelementptr inbounds double, ptr %205, i64 1
  store double %202, ptr %206, align 8, !tbaa !19
  %207 = load ptr, ptr %11, align 8, !tbaa !9
  %208 = getelementptr inbounds double, ptr %207, i64 2
  %209 = load double, ptr %208, align 8, !tbaa !19
  %210 = load ptr, ptr %14, align 8, !tbaa !9
  %211 = getelementptr inbounds %struct.__SMlocal_mesh, ptr %210, i32 0, i32 8
  %212 = load ptr, ptr %211, align 8, !tbaa !22
  %213 = getelementptr inbounds double, ptr %212, i64 2
  store double %209, ptr %213, align 8, !tbaa !19
  br label %235

214:                                              ; preds = %189
  store i32 0, ptr %26, align 4, !tbaa !5
  br label %215

215:                                              ; preds = %231, %214
  %216 = load i32, ptr %26, align 4, !tbaa !5
  %217 = load i32, ptr %19, align 4, !tbaa !5
  %218 = icmp slt i32 %216, %217
  br i1 %218, label %219, label %234

219:                                              ; preds = %215
  %220 = load ptr, ptr %11, align 8, !tbaa !9
  %221 = load i32, ptr %26, align 4, !tbaa !5
  %222 = sext i32 %221 to i64
  %223 = getelementptr inbounds double, ptr %220, i64 %222
  %224 = load double, ptr %223, align 8, !tbaa !19
  %225 = load ptr, ptr %14, align 8, !tbaa !9
  %226 = getelementptr inbounds %struct.__SMlocal_mesh, ptr %225, i32 0, i32 8
  %227 = load ptr, ptr %226, align 8, !tbaa !22
  %228 = load i32, ptr %26, align 4, !tbaa !5
  %229 = sext i32 %228 to i64
  %230 = getelementptr inbounds double, ptr %227, i64 %229
  store double %224, ptr %230, align 8, !tbaa !19
  br label %231

231:                                              ; preds = %219
  %232 = load i32, ptr %26, align 4, !tbaa !5
  %233 = add nsw i32 %232, 1
  store i32 %233, ptr %26, align 4, !tbaa !5
  br label %215, !llvm.loop !23

234:                                              ; preds = %215
  br label %235

235:                                              ; preds = %234, %192
  br label %236

236:                                              ; preds = %235, %174
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #3
  store i32 0, ptr %16, align 4, !tbaa !5
  br label %237

237:                                              ; preds = %355, %236
  %238 = load i32, ptr %16, align 4, !tbaa !5
  %239 = load i32, ptr %10, align 4, !tbaa !5
  %240 = icmp slt i32 %238, %239
  br i1 %240, label %241, label %358

241:                                              ; preds = %237
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #3
  %242 = load i32, ptr %19, align 4, !tbaa !5
  %243 = icmp eq i32 %242, 2
  br i1 %243, label %244, label %275

244:                                              ; preds = %241
  %245 = load ptr, ptr %13, align 8, !tbaa !9
  %246 = load i32, ptr %16, align 4, !tbaa !5
  %247 = sext i32 %246 to i64
  %248 = getelementptr inbounds ptr, ptr %245, i64 %247
  %249 = load ptr, ptr %248, align 8, !tbaa !9
  %250 = getelementptr inbounds i32, ptr %249, i64 0
  %251 = load i32, ptr %250, align 4, !tbaa !5
  %252 = load ptr, ptr %14, align 8, !tbaa !9
  %253 = getelementptr inbounds %struct.__SMlocal_mesh, ptr %252, i32 0, i32 7
  %254 = load ptr, ptr %253, align 8, !tbaa !24
  %255 = load i32, ptr %16, align 4, !tbaa !5
  %256 = sext i32 %255 to i64
  %257 = getelementptr inbounds ptr, ptr %254, i64 %256
  %258 = load ptr, ptr %257, align 8, !tbaa !9
  %259 = getelementptr inbounds i32, ptr %258, i64 0
  store i32 %251, ptr %259, align 4, !tbaa !5
  %260 = load ptr, ptr %13, align 8, !tbaa !9
  %261 = load i32, ptr %16, align 4, !tbaa !5
  %262 = sext i32 %261 to i64
  %263 = getelementptr inbounds ptr, ptr %260, i64 %262
  %264 = load ptr, ptr %263, align 8, !tbaa !9
  %265 = getelementptr inbounds i32, ptr %264, i64 1
  %266 = load i32, ptr %265, align 4, !tbaa !5
  %267 = load ptr, ptr %14, align 8, !tbaa !9
  %268 = getelementptr inbounds %struct.__SMlocal_mesh, ptr %267, i32 0, i32 7
  %269 = load ptr, ptr %268, align 8, !tbaa !24
  %270 = load i32, ptr %16, align 4, !tbaa !5
  %271 = sext i32 %270 to i64
  %272 = getelementptr inbounds ptr, ptr %269, i64 %271
  %273 = load ptr, ptr %272, align 8, !tbaa !9
  %274 = getelementptr inbounds i32, ptr %273, i64 1
  store i32 %266, ptr %274, align 4, !tbaa !5
  br label %354

275:                                              ; preds = %241
  %276 = load i32, ptr %19, align 4, !tbaa !5
  %277 = icmp eq i32 %276, 3
  br i1 %277, label %278, label %324

278:                                              ; preds = %275
  %279 = load ptr, ptr %13, align 8, !tbaa !9
  %280 = load i32, ptr %16, align 4, !tbaa !5
  %281 = sext i32 %280 to i64
  %282 = getelementptr inbounds ptr, ptr %279, i64 %281
  %283 = load ptr, ptr %282, align 8, !tbaa !9
  %284 = getelementptr inbounds i32, ptr %283, i64 0
  %285 = load i32, ptr %284, align 4, !tbaa !5
  %286 = load ptr, ptr %14, align 8, !tbaa !9
  %287 = getelementptr inbounds %struct.__SMlocal_mesh, ptr %286, i32 0, i32 7
  %288 = load ptr, ptr %287, align 8, !tbaa !24
  %289 = load i32, ptr %16, align 4, !tbaa !5
  %290 = sext i32 %289 to i64
  %291 = getelementptr inbounds ptr, ptr %288, i64 %290
  %292 = load ptr, ptr %291, align 8, !tbaa !9
  %293 = getelementptr inbounds i32, ptr %292, i64 0
  store i32 %285, ptr %293, align 4, !tbaa !5
  %294 = load ptr, ptr %13, align 8, !tbaa !9
  %295 = load i32, ptr %16, align 4, !tbaa !5
  %296 = sext i32 %295 to i64
  %297 = getelementptr inbounds ptr, ptr %294, i64 %296
  %298 = load ptr, ptr %297, align 8, !tbaa !9
  %299 = getelementptr inbounds i32, ptr %298, i64 1
  %300 = load i32, ptr %299, align 4, !tbaa !5
  %301 = load ptr, ptr %14, align 8, !tbaa !9
  %302 = getelementptr inbounds %struct.__SMlocal_mesh, ptr %301, i32 0, i32 7
  %303 = load ptr, ptr %302, align 8, !tbaa !24
  %304 = load i32, ptr %16, align 4, !tbaa !5
  %305 = sext i32 %304 to i64
  %306 = getelementptr inbounds ptr, ptr %303, i64 %305
  %307 = load ptr, ptr %306, align 8, !tbaa !9
  %308 = getelementptr inbounds i32, ptr %307, i64 1
  store i32 %300, ptr %308, align 4, !tbaa !5
  %309 = load ptr, ptr %13, align 8, !tbaa !9
  %310 = load i32, ptr %16, align 4, !tbaa !5
  %311 = sext i32 %310 to i64
  %312 = getelementptr inbounds ptr, ptr %309, i64 %311
  %313 = load ptr, ptr %312, align 8, !tbaa !9
  %314 = getelementptr inbounds i32, ptr %313, i64 2
  %315 = load i32, ptr %314, align 4, !tbaa !5
  %316 = load ptr, ptr %14, align 8, !tbaa !9
  %317 = getelementptr inbounds %struct.__SMlocal_mesh, ptr %316, i32 0, i32 7
  %318 = load ptr, ptr %317, align 8, !tbaa !24
  %319 = load i32, ptr %16, align 4, !tbaa !5
  %320 = sext i32 %319 to i64
  %321 = getelementptr inbounds ptr, ptr %318, i64 %320
  %322 = load ptr, ptr %321, align 8, !tbaa !9
  %323 = getelementptr inbounds i32, ptr %322, i64 2
  store i32 %315, ptr %323, align 4, !tbaa !5
  br label %353

324:                                              ; preds = %275
  store i32 0, ptr %27, align 4, !tbaa !5
  br label %325

325:                                              ; preds = %349, %324
  %326 = load i32, ptr %27, align 4, !tbaa !5
  %327 = load i32, ptr %19, align 4, !tbaa !5
  %328 = icmp slt i32 %326, %327
  br i1 %328, label %329, label %352

329:                                              ; preds = %325
  %330 = load ptr, ptr %13, align 8, !tbaa !9
  %331 = load i32, ptr %16, align 4, !tbaa !5
  %332 = sext i32 %331 to i64
  %333 = getelementptr inbounds ptr, ptr %330, i64 %332
  %334 = load ptr, ptr %333, align 8, !tbaa !9
  %335 = load i32, ptr %27, align 4, !tbaa !5
  %336 = sext i32 %335 to i64
  %337 = getelementptr inbounds i32, ptr %334, i64 %336
  %338 = load i32, ptr %337, align 4, !tbaa !5
  %339 = load ptr, ptr %14, align 8, !tbaa !9
  %340 = getelementptr inbounds %struct.__SMlocal_mesh, ptr %339, i32 0, i32 7
  %341 = load ptr, ptr %340, align 8, !tbaa !24
  %342 = load i32, ptr %16, align 4, !tbaa !5
  %343 = sext i32 %342 to i64
  %344 = getelementptr inbounds ptr, ptr %341, i64 %343
  %345 = load ptr, ptr %344, align 8, !tbaa !9
  %346 = load i32, ptr %27, align 4, !tbaa !5
  %347 = sext i32 %346 to i64
  %348 = getelementptr inbounds i32, ptr %345, i64 %347
  store i32 %338, ptr %348, align 4, !tbaa !5
  br label %349

349:                                              ; preds = %329
  %350 = load i32, ptr %27, align 4, !tbaa !5
  %351 = add nsw i32 %350, 1
  store i32 %351, ptr %27, align 4, !tbaa !5
  br label %325, !llvm.loop !25

352:                                              ; preds = %325
  br label %353

353:                                              ; preds = %352, %278
  br label %354

354:                                              ; preds = %353, %244
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #3
  br label %355

355:                                              ; preds = %354
  %356 = load i32, ptr %16, align 4, !tbaa !5
  %357 = add nsw i32 %356, 1
  store i32 %357, ptr %16, align 4, !tbaa !5
  br label %237, !llvm.loop !26

358:                                              ; preds = %237
  store i32 0, ptr %16, align 4, !tbaa !5
  br label %359

359:                                              ; preds = %370, %358
  %360 = load i32, ptr %16, align 4, !tbaa !5
  %361 = load i32, ptr %19, align 4, !tbaa !5
  %362 = icmp slt i32 %360, %361
  br i1 %362, label %363, label %373

363:                                              ; preds = %359
  %364 = load i32, ptr %16, align 4, !tbaa !5
  %365 = sext i32 %364 to i64
  %366 = getelementptr inbounds [3 x double], ptr %21, i64 0, i64 %365
  store double 1.000000e+300, ptr %366, align 8, !tbaa !19
  %367 = load i32, ptr %16, align 4, !tbaa !5
  %368 = sext i32 %367 to i64
  %369 = getelementptr inbounds [3 x double], ptr %22, i64 0, i64 %368
  store double -1.000000e+300, ptr %369, align 8, !tbaa !19
  br label %370

370:                                              ; preds = %363
  %371 = load i32, ptr %16, align 4, !tbaa !5
  %372 = add nsw i32 %371, 1
  store i32 %372, ptr %16, align 4, !tbaa !5
  br label %359, !llvm.loop !27

373:                                              ; preds = %359
  store i32 0, ptr %16, align 4, !tbaa !5
  br label %374

374:                                              ; preds = %432, %373
  %375 = load i32, ptr %16, align 4, !tbaa !5
  %376 = load i32, ptr %9, align 4, !tbaa !5
  %377 = icmp slt i32 %375, %376
  br i1 %377, label %378, label %435

378:                                              ; preds = %374
  store i32 0, ptr %17, align 4, !tbaa !5
  br label %379

379:                                              ; preds = %428, %378
  %380 = load i32, ptr %17, align 4, !tbaa !5
  %381 = load i32, ptr %19, align 4, !tbaa !5
  %382 = icmp slt i32 %380, %381
  br i1 %382, label %383, label %431

383:                                              ; preds = %379
  %384 = load ptr, ptr %12, align 8, !tbaa !9
  %385 = load i32, ptr %16, align 4, !tbaa !5
  %386 = sext i32 %385 to i64
  %387 = getelementptr inbounds ptr, ptr %384, i64 %386
  %388 = load ptr, ptr %387, align 8, !tbaa !9
  %389 = load i32, ptr %17, align 4, !tbaa !5
  %390 = sext i32 %389 to i64
  %391 = getelementptr inbounds double, ptr %388, i64 %390
  %392 = load double, ptr %391, align 8, !tbaa !19
  store double %392, ptr %23, align 8, !tbaa !19
  %393 = load double, ptr %23, align 8, !tbaa !19
  %394 = load ptr, ptr %14, align 8, !tbaa !9
  %395 = getelementptr inbounds %struct.__SMlocal_mesh, ptr %394, i32 0, i32 6
  %396 = load ptr, ptr %395, align 8, !tbaa !28
  %397 = load i32, ptr %16, align 4, !tbaa !5
  %398 = sext i32 %397 to i64
  %399 = getelementptr inbounds ptr, ptr %396, i64 %398
  %400 = load ptr, ptr %399, align 8, !tbaa !9
  %401 = load i32, ptr %17, align 4, !tbaa !5
  %402 = sext i32 %401 to i64
  %403 = getelementptr inbounds double, ptr %400, i64 %402
  store double %393, ptr %403, align 8, !tbaa !19
  %404 = load double, ptr %23, align 8, !tbaa !19
  %405 = load i32, ptr %17, align 4, !tbaa !5
  %406 = sext i32 %405 to i64
  %407 = getelementptr inbounds [3 x double], ptr %21, i64 0, i64 %406
  %408 = load double, ptr %407, align 8, !tbaa !19
  %409 = fcmp olt double %404, %408
  br i1 %409, label %410, label %415

410:                                              ; preds = %383
  %411 = load double, ptr %23, align 8, !tbaa !19
  %412 = load i32, ptr %17, align 4, !tbaa !5
  %413 = sext i32 %412 to i64
  %414 = getelementptr inbounds [3 x double], ptr %21, i64 0, i64 %413
  store double %411, ptr %414, align 8, !tbaa !19
  br label %415

415:                                              ; preds = %410, %383
  %416 = load double, ptr %23, align 8, !tbaa !19
  %417 = load i32, ptr %17, align 4, !tbaa !5
  %418 = sext i32 %417 to i64
  %419 = getelementptr inbounds [3 x double], ptr %22, i64 0, i64 %418
  %420 = load double, ptr %419, align 8, !tbaa !19
  %421 = fcmp ogt double %416, %420
  br i1 %421, label %422, label %427

422:                                              ; preds = %415
  %423 = load double, ptr %23, align 8, !tbaa !19
  %424 = load i32, ptr %17, align 4, !tbaa !5
  %425 = sext i32 %424 to i64
  %426 = getelementptr inbounds [3 x double], ptr %22, i64 0, i64 %425
  store double %423, ptr %426, align 8, !tbaa !19
  br label %427

427:                                              ; preds = %422, %415
  br label %428

428:                                              ; preds = %427
  %429 = load i32, ptr %17, align 4, !tbaa !5
  %430 = add nsw i32 %429, 1
  store i32 %430, ptr %17, align 4, !tbaa !5
  br label %379, !llvm.loop !29

431:                                              ; preds = %379
  br label %432

432:                                              ; preds = %431
  %433 = load i32, ptr %16, align 4, !tbaa !5
  %434 = add nsw i32 %433, 1
  store i32 %434, ptr %16, align 4, !tbaa !5
  br label %374, !llvm.loop !30

435:                                              ; preds = %374
  %436 = load ptr, ptr %14, align 8, !tbaa !9
  %437 = getelementptr inbounds %struct.__SMlocal_mesh, ptr %436, i32 0, i32 5
  %438 = getelementptr inbounds [3 x double], ptr %437, i64 0, i64 0
  %439 = load double, ptr %438, align 8, !tbaa !19
  %440 = getelementptr inbounds [3 x double], ptr %21, i64 0, i64 0
  %441 = load double, ptr %440, align 16, !tbaa !19
  %442 = fcmp olt double %439, %441
  br i1 %442, label %443, label %449

443:                                              ; preds = %435
  %444 = load ptr, ptr %14, align 8, !tbaa !9
  %445 = getelementptr inbounds %struct.__SMlocal_mesh, ptr %444, i32 0, i32 5
  %446 = getelementptr inbounds [3 x double], ptr %445, i64 0, i64 0
  %447 = load double, ptr %446, align 8, !tbaa !19
  %448 = getelementptr inbounds [3 x double], ptr %21, i64 0, i64 0
  store double %447, ptr %448, align 16, !tbaa !19
  br label %449

449:                                              ; preds = %443, %435
  %450 = load ptr, ptr %14, align 8, !tbaa !9
  %451 = getelementptr inbounds %struct.__SMlocal_mesh, ptr %450, i32 0, i32 5
  %452 = getelementptr inbounds [3 x double], ptr %451, i64 0, i64 1
  %453 = load double, ptr %452, align 8, !tbaa !19
  %454 = getelementptr inbounds [3 x double], ptr %21, i64 0, i64 1
  %455 = load double, ptr %454, align 8, !tbaa !19
  %456 = fcmp olt double %453, %455
  br i1 %456, label %457, label %463

457:                                              ; preds = %449
  %458 = load ptr, ptr %14, align 8, !tbaa !9
  %459 = getelementptr inbounds %struct.__SMlocal_mesh, ptr %458, i32 0, i32 5
  %460 = getelementptr inbounds [3 x double], ptr %459, i64 0, i64 1
  %461 = load double, ptr %460, align 8, !tbaa !19
  %462 = getelementptr inbounds [3 x double], ptr %21, i64 0, i64 1
  store double %461, ptr %462, align 8, !tbaa !19
  br label %463

463:                                              ; preds = %457, %449
  %464 = load ptr, ptr %14, align 8, !tbaa !9
  %465 = getelementptr inbounds %struct.__SMlocal_mesh, ptr %464, i32 0, i32 5
  %466 = getelementptr inbounds [3 x double], ptr %465, i64 0, i64 0
  %467 = load double, ptr %466, align 8, !tbaa !19
  %468 = getelementptr inbounds [3 x double], ptr %22, i64 0, i64 0
  %469 = load double, ptr %468, align 16, !tbaa !19
  %470 = fcmp ogt double %467, %469
  br i1 %470, label %471, label %477

471:                                              ; preds = %463
  %472 = load ptr, ptr %14, align 8, !tbaa !9
  %473 = getelementptr inbounds %struct.__SMlocal_mesh, ptr %472, i32 0, i32 5
  %474 = getelementptr inbounds [3 x double], ptr %473, i64 0, i64 0
  %475 = load double, ptr %474, align 8, !tbaa !19
  %476 = getelementptr inbounds [3 x double], ptr %22, i64 0, i64 0
  store double %475, ptr %476, align 16, !tbaa !19
  br label %477

477:                                              ; preds = %471, %463
  %478 = load ptr, ptr %14, align 8, !tbaa !9
  %479 = getelementptr inbounds %struct.__SMlocal_mesh, ptr %478, i32 0, i32 5
  %480 = getelementptr inbounds [3 x double], ptr %479, i64 0, i64 1
  %481 = load double, ptr %480, align 8, !tbaa !19
  %482 = getelementptr inbounds [3 x double], ptr %22, i64 0, i64 1
  %483 = load double, ptr %482, align 8, !tbaa !19
  %484 = fcmp ogt double %481, %483
  br i1 %484, label %485, label %491

485:                                              ; preds = %477
  %486 = load ptr, ptr %14, align 8, !tbaa !9
  %487 = getelementptr inbounds %struct.__SMlocal_mesh, ptr %486, i32 0, i32 5
  %488 = getelementptr inbounds [3 x double], ptr %487, i64 0, i64 1
  %489 = load double, ptr %488, align 8, !tbaa !19
  %490 = getelementptr inbounds [3 x double], ptr %22, i64 0, i64 1
  store double %489, ptr %490, align 8, !tbaa !19
  br label %491

491:                                              ; preds = %485, %477
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #3
  %492 = load i32, ptr %19, align 4, !tbaa !5
  %493 = icmp eq i32 %492, 2
  br i1 %493, label %494, label %505

494:                                              ; preds = %491
  %495 = getelementptr inbounds [3 x double], ptr %21, i64 0, i64 0
  %496 = load double, ptr %495, align 16, !tbaa !19
  %497 = load ptr, ptr %14, align 8, !tbaa !9
  %498 = getelementptr inbounds %struct.__SMlocal_mesh, ptr %497, i32 0, i32 3
  %499 = getelementptr inbounds [3 x double], ptr %498, i64 0, i64 0
  store double %496, ptr %499, align 8, !tbaa !19
  %500 = getelementptr inbounds [3 x double], ptr %21, i64 0, i64 1
  %501 = load double, ptr %500, align 8, !tbaa !19
  %502 = load ptr, ptr %14, align 8, !tbaa !9
  %503 = getelementptr inbounds %struct.__SMlocal_mesh, ptr %502, i32 0, i32 3
  %504 = getelementptr inbounds [3 x double], ptr %503, i64 0, i64 1
  store double %501, ptr %504, align 8, !tbaa !19
  br label %544

505:                                              ; preds = %491
  %506 = load i32, ptr %19, align 4, !tbaa !5
  %507 = icmp eq i32 %506, 3
  br i1 %507, label %508, label %524

508:                                              ; preds = %505
  %509 = getelementptr inbounds [3 x double], ptr %21, i64 0, i64 0
  %510 = load double, ptr %509, align 16, !tbaa !19
  %511 = load ptr, ptr %14, align 8, !tbaa !9
  %512 = getelementptr inbounds %struct.__SMlocal_mesh, ptr %511, i32 0, i32 3
  %513 = getelementptr inbounds [3 x double], ptr %512, i64 0, i64 0
  store double %510, ptr %513, align 8, !tbaa !19
  %514 = getelementptr inbounds [3 x double], ptr %21, i64 0, i64 1
  %515 = load double, ptr %514, align 8, !tbaa !19
  %516 = load ptr, ptr %14, align 8, !tbaa !9
  %517 = getelementptr inbounds %struct.__SMlocal_mesh, ptr %516, i32 0, i32 3
  %518 = getelementptr inbounds [3 x double], ptr %517, i64 0, i64 1
  store double %515, ptr %518, align 8, !tbaa !19
  %519 = getelementptr inbounds [3 x double], ptr %21, i64 0, i64 2
  %520 = load double, ptr %519, align 16, !tbaa !19
  %521 = load ptr, ptr %14, align 8, !tbaa !9
  %522 = getelementptr inbounds %struct.__SMlocal_mesh, ptr %521, i32 0, i32 3
  %523 = getelementptr inbounds [3 x double], ptr %522, i64 0, i64 2
  store double %520, ptr %523, align 8, !tbaa !19
  br label %543

524:                                              ; preds = %505
  store i32 0, ptr %28, align 4, !tbaa !5
  br label %525

525:                                              ; preds = %539, %524
  %526 = load i32, ptr %28, align 4, !tbaa !5
  %527 = load i32, ptr %19, align 4, !tbaa !5
  %528 = icmp slt i32 %526, %527
  br i1 %528, label %529, label %542

529:                                              ; preds = %525
  %530 = load i32, ptr %28, align 4, !tbaa !5
  %531 = sext i32 %530 to i64
  %532 = getelementptr inbounds [3 x double], ptr %21, i64 0, i64 %531
  %533 = load double, ptr %532, align 8, !tbaa !19
  %534 = load ptr, ptr %14, align 8, !tbaa !9
  %535 = getelementptr inbounds %struct.__SMlocal_mesh, ptr %534, i32 0, i32 3
  %536 = load i32, ptr %28, align 4, !tbaa !5
  %537 = sext i32 %536 to i64
  %538 = getelementptr inbounds [3 x double], ptr %535, i64 0, i64 %537
  store double %533, ptr %538, align 8, !tbaa !19
  br label %539

539:                                              ; preds = %529
  %540 = load i32, ptr %28, align 4, !tbaa !5
  %541 = add nsw i32 %540, 1
  store i32 %541, ptr %28, align 4, !tbaa !5
  br label %525, !llvm.loop !31

542:                                              ; preds = %525
  br label %543

543:                                              ; preds = %542, %508
  br label %544

544:                                              ; preds = %543, %494
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %29) #3
  %545 = load i32, ptr %19, align 4, !tbaa !5
  %546 = icmp eq i32 %545, 2
  br i1 %546, label %547, label %558

547:                                              ; preds = %544
  %548 = getelementptr inbounds [3 x double], ptr %22, i64 0, i64 0
  %549 = load double, ptr %548, align 16, !tbaa !19
  %550 = load ptr, ptr %14, align 8, !tbaa !9
  %551 = getelementptr inbounds %struct.__SMlocal_mesh, ptr %550, i32 0, i32 4
  %552 = getelementptr inbounds [3 x double], ptr %551, i64 0, i64 0
  store double %549, ptr %552, align 8, !tbaa !19
  %553 = getelementptr inbounds [3 x double], ptr %22, i64 0, i64 1
  %554 = load double, ptr %553, align 8, !tbaa !19
  %555 = load ptr, ptr %14, align 8, !tbaa !9
  %556 = getelementptr inbounds %struct.__SMlocal_mesh, ptr %555, i32 0, i32 4
  %557 = getelementptr inbounds [3 x double], ptr %556, i64 0, i64 1
  store double %554, ptr %557, align 8, !tbaa !19
  br label %597

558:                                              ; preds = %544
  %559 = load i32, ptr %19, align 4, !tbaa !5
  %560 = icmp eq i32 %559, 3
  br i1 %560, label %561, label %577

561:                                              ; preds = %558
  %562 = getelementptr inbounds [3 x double], ptr %22, i64 0, i64 0
  %563 = load double, ptr %562, align 16, !tbaa !19
  %564 = load ptr, ptr %14, align 8, !tbaa !9
  %565 = getelementptr inbounds %struct.__SMlocal_mesh, ptr %564, i32 0, i32 4
  %566 = getelementptr inbounds [3 x double], ptr %565, i64 0, i64 0
  store double %563, ptr %566, align 8, !tbaa !19
  %567 = getelementptr inbounds [3 x double], ptr %22, i64 0, i64 1
  %568 = load double, ptr %567, align 8, !tbaa !19
  %569 = load ptr, ptr %14, align 8, !tbaa !9
  %570 = getelementptr inbounds %struct.__SMlocal_mesh, ptr %569, i32 0, i32 4
  %571 = getelementptr inbounds [3 x double], ptr %570, i64 0, i64 1
  store double %568, ptr %571, align 8, !tbaa !19
  %572 = getelementptr inbounds [3 x double], ptr %22, i64 0, i64 2
  %573 = load double, ptr %572, align 16, !tbaa !19
  %574 = load ptr, ptr %14, align 8, !tbaa !9
  %575 = getelementptr inbounds %struct.__SMlocal_mesh, ptr %574, i32 0, i32 4
  %576 = getelementptr inbounds [3 x double], ptr %575, i64 0, i64 2
  store double %573, ptr %576, align 8, !tbaa !19
  br label %596

577:                                              ; preds = %558
  store i32 0, ptr %29, align 4, !tbaa !5
  br label %578

578:                                              ; preds = %592, %577
  %579 = load i32, ptr %29, align 4, !tbaa !5
  %580 = load i32, ptr %19, align 4, !tbaa !5
  %581 = icmp slt i32 %579, %580
  br i1 %581, label %582, label %595

582:                                              ; preds = %578
  %583 = load i32, ptr %29, align 4, !tbaa !5
  %584 = sext i32 %583 to i64
  %585 = getelementptr inbounds [3 x double], ptr %22, i64 0, i64 %584
  %586 = load double, ptr %585, align 8, !tbaa !19
  %587 = load ptr, ptr %14, align 8, !tbaa !9
  %588 = getelementptr inbounds %struct.__SMlocal_mesh, ptr %587, i32 0, i32 4
  %589 = load i32, ptr %29, align 4, !tbaa !5
  %590 = sext i32 %589 to i64
  %591 = getelementptr inbounds [3 x double], ptr %588, i64 0, i64 %590
  store double %586, ptr %591, align 8, !tbaa !19
  br label %592

592:                                              ; preds = %582
  %593 = load i32, ptr %29, align 4, !tbaa !5
  %594 = add nsw i32 %593, 1
  store i32 %594, ptr %29, align 4, !tbaa !5
  br label %578, !llvm.loop !32

595:                                              ; preds = %578
  br label %596

596:                                              ; preds = %595, %561
  br label %597

597:                                              ; preds = %596, %547
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #3
  %598 = load ptr, ptr %14, align 8, !tbaa !9
  %599 = getelementptr inbounds %struct.__SMlocal_mesh, ptr %598, i32 0, i32 10
  store double 0.000000e+00, ptr %599, align 8, !tbaa !33
  %600 = load ptr, ptr %14, align 8, !tbaa !9
  %601 = getelementptr inbounds %struct.__SMlocal_mesh, ptr %600, i32 0, i32 12
  store double 0.000000e+00, ptr %601, align 8, !tbaa !34
  store i32 0, ptr %16, align 4, !tbaa !5
  br label %602

602:                                              ; preds = %613, %597
  %603 = load i32, ptr %16, align 4, !tbaa !5
  %604 = load ptr, ptr %14, align 8, !tbaa !9
  %605 = getelementptr inbounds %struct.__SMlocal_mesh, ptr %604, i32 0, i32 9
  %606 = load i32, ptr %605, align 8, !tbaa !18
  %607 = icmp slt i32 %603, %606
  br i1 %607, label %608, label %616

608:                                              ; preds = %602
  %609 = load ptr, ptr %14, align 8, !tbaa !9
  %610 = getelementptr inbounds %struct.__SMlocal_mesh, ptr %609, i32 0, i32 11
  %611 = load ptr, ptr %610, align 8, !tbaa !35
  %612 = getelementptr inbounds double, ptr %611, i64 0
  store double 0.000000e+00, ptr %612, align 8, !tbaa !19
  br label %613

613:                                              ; preds = %608
  %614 = load i32, ptr %16, align 4, !tbaa !5
  %615 = add nsw i32 %614, 1
  store i32 %615, ptr %16, align 4, !tbaa !5
  br label %602, !llvm.loop !36

616:                                              ; preds = %602
  %617 = load ptr, ptr %14, align 8, !tbaa !9
  %618 = getelementptr inbounds %struct.__SMlocal_mesh, ptr %617, i32 0, i32 16
  %619 = load ptr, ptr %618, align 8, !tbaa !37
  %620 = getelementptr inbounds %struct.__SMoptimal, ptr %619, i32 0, i32 6
  store i32 0, ptr %620, align 8, !tbaa !38
  %621 = load ptr, ptr %14, align 8, !tbaa !9
  %622 = getelementptr inbounds %struct.__SMlocal_mesh, ptr %621, i32 0, i32 13
  store i32 0, ptr %622, align 8, !tbaa !40
  %623 = load ptr, ptr %14, align 8, !tbaa !9
  %624 = getelementptr inbounds %struct.__SMlocal_mesh, ptr %623, i32 0, i32 14
  store i32 0, ptr %624, align 4, !tbaa !41
  store i32 0, ptr %20, align 4, !tbaa !5
  store i32 0, ptr %8, align 4
  store i32 1, ptr %24, align 4
  br label %625

625:                                              ; preds = %616, %95, %84, %72, %67, %62, %57, %52, %47, %42, %37, %32
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #3
  call void @llvm.lifetime.end.p0(i64 24, ptr %22) #3
  call void @llvm.lifetime.end.p0(i64 24, ptr %21) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #3
  %626 = load i32, ptr %8, align 4
  ret i32 %626
}

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { "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 = { 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 #3 = { 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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = !{!12, !6, i64 0}
!12 = !{!"__SMlocal_mesh", !6, i64 0, !6, i64 4, !6, i64 8, !7, i64 16, !7, i64 40, !7, i64 64, !10, i64 88, !10, i64 96, !10, i64 104, !6, i64 112, !13, i64 120, !10, i64 128, !13, i64 136, !6, i64 144, !6, i64 148, !6, i64 152, !10, i64 160, !10, i64 168, !10, i64 176}
!13 = !{!"double", !7, i64 0}
!14 = !{!12, !6, i64 4}
!15 = !{!12, !6, i64 8}
!16 = !{!17, !6, i64 56}
!17 = !{!"__SMparam", !6, i64 0, !6, i64 4, !6, i64 8, !13, i64 16, !13, i64 24, !13, i64 32, !13, i64 40, !6, i64 48, !6, i64 52, !6, i64 56, !13, i64 64, !13, i64 72, !10, i64 80, !10, i64 88, !10, i64 96, !10, i64 104}
!18 = !{!12, !6, i64 112}
!19 = !{!13, !13, i64 0}
!20 = distinct !{!20, !21}
!21 = !{!"llvm.loop.mustprogress"}
!22 = !{!12, !10, i64 104}
!23 = distinct !{!23, !21}
!24 = !{!12, !10, i64 96}
!25 = distinct !{!25, !21}
!26 = distinct !{!26, !21}
!27 = distinct !{!27, !21}
!28 = !{!12, !10, i64 88}
!29 = distinct !{!29, !21}
!30 = distinct !{!30, !21}
!31 = distinct !{!31, !21}
!32 = distinct !{!32, !21}
!33 = !{!12, !13, i64 120}
!34 = !{!12, !13, i64 136}
!35 = !{!12, !10, i64 128}
!36 = distinct !{!36, !21}
!37 = !{!12, !10, i64 160}
!38 = !{!39, !6, i64 24}
!39 = !{!"__SMoptimal", !6, i64 0, !6, i64 4, !6, i64 8, !6, i64 12, !6, i64 16, !6, i64 20, !6, i64 24, !13, i64 32, !6, i64 40, !6, i64 44, !10, i64 48, !10, i64 56, !10, i64 64, !10, i64 72, !10, i64 80, !10, i64 88, !10, i64 96, !6, i64 104, !7, i64 112, !13, i64 136, !13, i64 144, !10, i64 152, !10, i64 160, !10, i64 168, !10, i64 176, !7, i64 184, !6, i64 196}
!40 = !{!12, !6, i64 144}
!41 = !{!12, !6, i64 148}


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

@.str.1 = external hidden unnamed_addr constant [106 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [55 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [58 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [58 x i8], align 1

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

declare i32 @SMerror(i32 noundef, ptr noundef, ptr noundef, ptr noundef, i32 noundef, i32 noundef, ptr noundef) local_unnamed_addr #1

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

; Function Attrs: nounwind uwtable
define dso_local i32 @SMinitLocalMesh(i32 noundef %0, i32 noundef %1, ptr noundef readonly %2, ptr noundef readonly %3, ptr noundef readonly %4, ptr noundef %5, ptr noundef readonly %6) local_unnamed_addr #2 {
  %8 = ptrtoint ptr %2 to i64
  %9 = ptrtoint ptr %5 to i64
  %10 = alloca [3 x double], align 16
  %11 = alloca [3 x double], align 16
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %10) #4
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %11) #4
  %12 = icmp eq ptr %2, null
  br i1 %12, label %13, label %15

13:                                               ; preds = %7
  %14 = tail call i32 @SMerror(i32 noundef 214, ptr noundef nonnull @.str.16, ptr noundef nonnull @.str.1, ptr noundef nonnull @.str.2, i32 noundef 56, i32 noundef 0, ptr noundef null) #4
  br label %347

15:                                               ; preds = %7
  %16 = icmp eq ptr %3, null
  br i1 %16, label %17, label %19

17:                                               ; preds = %15
  %18 = tail call i32 @SMerror(i32 noundef 215, ptr noundef nonnull @.str.16, ptr noundef nonnull @.str.1, ptr noundef nonnull @.str.2, i32 noundef 56, i32 noundef 0, ptr noundef null) #4
  br label %347

19:                                               ; preds = %15
  %20 = icmp eq ptr %4, null
  br i1 %20, label %21, label %23

21:                                               ; preds = %19
  %22 = tail call i32 @SMerror(i32 noundef 216, ptr noundef nonnull @.str.16, ptr noundef nonnull @.str.1, ptr noundef nonnull @.str.2, i32 noundef 56, i32 noundef 0, ptr noundef null) #4
  br label %347

23:                                               ; preds = %19
  %24 = icmp eq ptr %5, null
  br i1 %24, label %25, label %27

25:                                               ; preds = %23
  %26 = tail call i32 @SMerror(i32 noundef 217, ptr noundef nonnull @.str.16, ptr noundef nonnull @.str.1, ptr noundef nonnull @.str.2, i32 noundef 56, i32 noundef 0, ptr noundef null) #4
  br label %347

27:                                               ; preds = %23
  %28 = icmp eq ptr %6, null
  br i1 %28, label %29, label %31

29:                                               ; preds = %27
  %30 = tail call i32 @SMerror(i32 noundef 218, ptr noundef nonnull @.str.16, ptr noundef nonnull @.str.1, ptr noundef nonnull @.str.2, i32 noundef 56, i32 noundef 0, ptr noundef null) #4
  br label %347

31:                                               ; preds = %27
  %32 = icmp eq i32 %0, 0
  br i1 %32, label %33, label %35

33:                                               ; preds = %31
  %34 = tail call i32 @SMerror(i32 noundef 222, ptr noundef nonnull @.str.16, ptr noundef nonnull @.str.1, ptr noundef nonnull @.str.2, i32 noundef 57, i32 noundef 0, ptr noundef nonnull @.str.17) #4
  br label %347

35:                                               ; preds = %31
  %36 = icmp eq i32 %1, 0
  br i1 %36, label %37, label %39

37:                                               ; preds = %35
  %38 = tail call i32 @SMerror(i32 noundef 224, ptr noundef nonnull @.str.16, ptr noundef nonnull @.str.1, ptr noundef nonnull @.str.2, i32 noundef 57, i32 noundef 0, ptr noundef nonnull @.str.18) #4
  br label %347

39:                                               ; preds = %35
  %40 = icmp sgt i32 %0, 150
  br i1 %40, label %41, label %43

41:                                               ; preds = %39
  %42 = tail call i32 @SMerror(i32 noundef 228, ptr noundef nonnull @.str.16, ptr noundef nonnull @.str.1, ptr noundef nonnull @.str.2, i32 noundef 57, i32 noundef 0, ptr noundef nonnull @.str.19) #4
  br label %347

43:                                               ; preds = %39
  %44 = icmp sgt i32 %1, 300
  br i1 %44, label %45, label %47

45:                                               ; preds = %43
  %46 = tail call i32 @SMerror(i32 noundef 232, ptr noundef nonnull @.str.16, ptr noundef nonnull @.str.1, ptr noundef nonnull @.str.2, i32 noundef 57, i32 noundef 0, ptr noundef nonnull @.str.20) #4
  br label %347

47:                                               ; preds = %43
  %48 = load i32, ptr %5, align 8, !tbaa !5
  %49 = icmp ne i32 %48, 2
  %.not = icmp eq i32 %0, %1
  %or.cond = or i1 %.not, %49
  br i1 %or.cond, label %52, label %50

50:                                               ; preds = %47
  %51 = tail call i32 @SMerror(i32 noundef 239, ptr noundef nonnull @.str.16, ptr noundef nonnull @.str.1, ptr noundef nonnull @.str.2, i32 noundef 57, i32 noundef 0, ptr noundef nonnull @.str.21) #4
  br label %347

52:                                               ; preds = %47
  %53 = icmp eq i32 %48, 3
  br i1 %53, label %54, label %59

54:                                               ; preds = %52
  %55 = shl nsw i32 %0, 1
  %56 = add nsw i32 %55, -4
  %.not187 = icmp eq i32 %56, %1
  br i1 %.not187, label %106, label %57

57:                                               ; preds = %54
  %58 = tail call i32 @SMerror(i32 noundef 242, ptr noundef nonnull @.str.16, ptr noundef nonnull @.str.1, ptr noundef nonnull @.str.2, i32 noundef 57, i32 noundef 0, ptr noundef nonnull @.str.21) #4
  br label %347

59:                                               ; preds = %52
  %60 = getelementptr inbounds i8, ptr %5, i64 4
  store i32 %0, ptr %60, align 4, !tbaa !12
  %61 = getelementptr inbounds i8, ptr %5, i64 8
  store i32 %1, ptr %61, align 8, !tbaa !13
  %62 = getelementptr inbounds i8, ptr %6, i64 56
  %63 = load i32, ptr %62, align 8, !tbaa !14
  %64 = mul nsw i32 %63, %1
  %65 = getelementptr inbounds i8, ptr %5, i64 112
  store i32 %64, ptr %65, align 8, !tbaa !16
  br i1 %49, label %.preheader204, label %.loopexit203.thread

.preheader204:                                    ; preds = %59
  %66 = icmp sgt i32 %48, 0
  br i1 %66, label %.lr.ph, label %.preheader198

.lr.ph:                                           ; preds = %.preheader204
  %67 = getelementptr inbounds i8, ptr %5, i64 64
  %wide.trip.count = zext nneg i32 %48 to i64
  %min.iters.check = icmp ult i32 %48, 8
  br i1 %min.iters.check, label %scalar.ph.preheader, label %vector.memcheck

vector.memcheck:                                  ; preds = %.lr.ph
  %68 = add i64 %9, 64
  %69 = sub i64 %68, %8
  %diff.check = icmp ult i64 %69, 32
  br i1 %diff.check, label %scalar.ph.preheader, label %vector.ph

vector.ph:                                        ; preds = %vector.memcheck
  %n.vec = and i64 %wide.trip.count, 2147483644
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %70 = getelementptr inbounds double, ptr %2, i64 %index
  %71 = getelementptr inbounds i8, ptr %70, i64 16
  %wide.load = load <2 x double>, ptr %70, align 8, !tbaa !17
  %wide.load294 = load <2 x double>, ptr %71, align 8, !tbaa !17
  %72 = getelementptr inbounds [3 x double], ptr %67, i64 0, i64 %index
  %73 = getelementptr inbounds i8, ptr %72, i64 16
  store <2 x double> %wide.load, ptr %72, align 8, !tbaa !17
  store <2 x double> %wide.load294, ptr %73, align 8, !tbaa !17
  %index.next = add nuw i64 %index, 4
  %74 = icmp eq i64 %index.next, %n.vec
  br i1 %74, label %middle.block, label %vector.body, !llvm.loop !18

middle.block:                                     ; preds = %vector.body
  %cmp.n = icmp eq i64 %n.vec, %wide.trip.count
  br i1 %cmp.n, label %.preheader202, label %scalar.ph.preheader

scalar.ph.preheader:                              ; preds = %middle.block, %vector.memcheck, %.lr.ph
  %indvars.iv.ph = phi i64 [ 0, %vector.memcheck ], [ 0, %.lr.ph ], [ %n.vec, %middle.block ]
  %xtraiter = and i64 %wide.trip.count, 3
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %scalar.ph.prol.loopexit, label %scalar.ph.prol

scalar.ph.prol:                                   ; preds = %scalar.ph.preheader, %scalar.ph.prol
  %indvars.iv.prol = phi i64 [ %indvars.iv.next.prol, %scalar.ph.prol ], [ %indvars.iv.ph, %scalar.ph.preheader ]
  %prol.iter = phi i64 [ %prol.iter.next, %scalar.ph.prol ], [ 0, %scalar.ph.preheader ]
  %75 = getelementptr inbounds double, ptr %2, i64 %indvars.iv.prol
  %76 = load double, ptr %75, align 8, !tbaa !17
  %77 = getelementptr inbounds [3 x double], ptr %67, i64 0, i64 %indvars.iv.prol
  store double %76, ptr %77, align 8, !tbaa !17
  %indvars.iv.next.prol = add nuw nsw i64 %indvars.iv.prol, 1
  %prol.iter.next = add i64 %prol.iter, 1
  %prol.iter.cmp.not = icmp eq i64 %prol.iter.next, %xtraiter
  br i1 %prol.iter.cmp.not, label %scalar.ph.prol.loopexit, label %scalar.ph.prol, !llvm.loop !22

scalar.ph.prol.loopexit:                          ; preds = %scalar.ph.prol, %scalar.ph.preheader
  %indvars.iv.unr = phi i64 [ %indvars.iv.ph, %scalar.ph.preheader ], [ %indvars.iv.next.prol, %scalar.ph.prol ]
  %78 = sub nsw i64 %indvars.iv.ph, %wide.trip.count
  %79 = icmp ugt i64 %78, -4
  br i1 %79, label %.preheader202, label %scalar.ph

scalar.ph:                                        ; preds = %scalar.ph.prol.loopexit, %scalar.ph
  %indvars.iv = phi i64 [ %indvars.iv.next.3, %scalar.ph ], [ %indvars.iv.unr, %scalar.ph.prol.loopexit ]
  %80 = getelementptr inbounds double, ptr %2, i64 %indvars.iv
  %81 = load double, ptr %80, align 8, !tbaa !17
  %82 = getelementptr inbounds [3 x double], ptr %67, i64 0, i64 %indvars.iv
  store double %81, ptr %82, align 8, !tbaa !17
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %83 = getelementptr inbounds double, ptr %2, i64 %indvars.iv.next
  %84 = load double, ptr %83, align 8, !tbaa !17
  %85 = getelementptr inbounds [3 x double], ptr %67, i64 0, i64 %indvars.iv.next
  store double %84, ptr %85, align 8, !tbaa !17
  %indvars.iv.next.1 = add nuw nsw i64 %indvars.iv, 2
  %86 = getelementptr inbounds double, ptr %2, i64 %indvars.iv.next.1
  %87 = load double, ptr %86, align 8, !tbaa !17
  %88 = getelementptr inbounds [3 x double], ptr %67, i64 0, i64 %indvars.iv.next.1
  store double %87, ptr %88, align 8, !tbaa !17
  %indvars.iv.next.2 = add nuw nsw i64 %indvars.iv, 3
  %89 = getelementptr inbounds double, ptr %2, i64 %indvars.iv.next.2
  %90 = load double, ptr %89, align 8, !tbaa !17
  %91 = getelementptr inbounds [3 x double], ptr %67, i64 0, i64 %indvars.iv.next.2
  store double %90, ptr %91, align 8, !tbaa !17
  %indvars.iv.next.3 = add nuw nsw i64 %indvars.iv, 4
  %exitcond.not.3 = icmp eq i64 %indvars.iv.next.3, %wide.trip.count
  br i1 %exitcond.not.3, label %.preheader202, label %scalar.ph, !llvm.loop !24

.preheader202:                                    ; preds = %scalar.ph.prol.loopexit, %scalar.ph, %middle.block
  br i1 %66, label %.lr.ph207, label %.loopexit203

.lr.ph207:                                        ; preds = %.preheader202
  %92 = getelementptr inbounds i8, ptr %5, i64 104
  %93 = load ptr, ptr %92, align 8, !tbaa !25
  %wide.trip.count239 = zext nneg i32 %48 to i64
  %min.iters.check299 = icmp ult i32 %48, 6
  %94 = ptrtoint ptr %93 to i64
  %95 = sub i64 %94, %8
  %diff.check296 = icmp ult i64 %95, 32
  %or.cond337 = select i1 %min.iters.check299, i1 true, i1 %diff.check296
  br i1 %or.cond337, label %scalar.ph298.preheader, label %vector.ph300

scalar.ph298.preheader:                           ; preds = %middle.block297, %.lr.ph207
  %indvars.iv236.ph = phi i64 [ 0, %.lr.ph207 ], [ %n.vec302, %middle.block297 ]
  %xtraiter344 = and i64 %wide.trip.count, 3
  %lcmp.mod345.not = icmp eq i64 %xtraiter344, 0
  br i1 %lcmp.mod345.not, label %scalar.ph298.prol.loopexit, label %scalar.ph298.prol

scalar.ph298.prol:                                ; preds = %scalar.ph298.preheader, %scalar.ph298.prol
  %indvars.iv236.prol = phi i64 [ %indvars.iv.next237.prol, %scalar.ph298.prol ], [ %indvars.iv236.ph, %scalar.ph298.preheader ]
  %prol.iter346 = phi i64 [ %prol.iter346.next, %scalar.ph298.prol ], [ 0, %scalar.ph298.preheader ]
  %96 = getelementptr inbounds double, ptr %2, i64 %indvars.iv236.prol
  %97 = load double, ptr %96, align 8, !tbaa !17
  %98 = getelementptr inbounds double, ptr %93, i64 %indvars.iv236.prol
  store double %97, ptr %98, align 8, !tbaa !17
  %indvars.iv.next237.prol = add nuw nsw i64 %indvars.iv236.prol, 1
  %prol.iter346.next = add i64 %prol.iter346, 1
  %prol.iter346.cmp.not = icmp eq i64 %prol.iter346.next, %xtraiter344
  br i1 %prol.iter346.cmp.not, label %scalar.ph298.prol.loopexit, label %scalar.ph298.prol, !llvm.loop !26

scalar.ph298.prol.loopexit:                       ; preds = %scalar.ph298.prol, %scalar.ph298.preheader
  %indvars.iv236.unr = phi i64 [ %indvars.iv236.ph, %scalar.ph298.preheader ], [ %indvars.iv.next237.prol, %scalar.ph298.prol ]
  %99 = sub nsw i64 %indvars.iv236.ph, %wide.trip.count
  %100 = icmp ugt i64 %99, -4
  br i1 %100, label %.loopexit203, label %scalar.ph298

vector.ph300:                                     ; preds = %.lr.ph207
  %n.vec302 = and i64 %wide.trip.count, 2147483644
  br label %vector.body304

vector.body304:                                   ; preds = %vector.body304, %vector.ph300
  %index305 = phi i64 [ 0, %vector.ph300 ], [ %index.next308, %vector.body304 ]
  %101 = getelementptr inbounds double, ptr %2, i64 %index305
  %102 = getelementptr inbounds i8, ptr %101, i64 16
  %wide.load306 = load <2 x double>, ptr %101, align 8, !tbaa !17
  %wide.load307 = load <2 x double>, ptr %102, align 8, !tbaa !17
  %103 = getelementptr inbounds double, ptr %93, i64 %index305
  %104 = getelementptr inbounds i8, ptr %103, i64 16
  store <2 x double> %wide.load306, ptr %103, align 8, !tbaa !17
  store <2 x double> %wide.load307, ptr %104, align 8, !tbaa !17
  %index.next308 = add nuw i64 %index305, 4
  %105 = icmp eq i64 %index.next308, %n.vec302
  br i1 %105, label %middle.block297, label %vector.body304, !llvm.loop !27

middle.block297:                                  ; preds = %vector.body304
  %cmp.n309 = icmp eq i64 %n.vec302, %wide.trip.count
  br i1 %cmp.n309, label %.loopexit203, label %scalar.ph298.preheader

106:                                              ; preds = %54
  %107 = getelementptr inbounds i8, ptr %5, i64 4
  store i32 %0, ptr %107, align 4, !tbaa !12
  %108 = getelementptr inbounds i8, ptr %5, i64 8
  store i32 %1, ptr %108, align 8, !tbaa !13
  %109 = getelementptr inbounds i8, ptr %6, i64 56
  %110 = load i32, ptr %109, align 8, !tbaa !14
  %111 = mul nsw i32 %110, %1
  %112 = getelementptr inbounds i8, ptr %5, i64 112
  store i32 %111, ptr %112, align 8, !tbaa !16
  %113 = load double, ptr %2, align 8, !tbaa !17
  %114 = getelementptr inbounds i8, ptr %5, i64 64
  store double %113, ptr %114, align 8, !tbaa !17
  %115 = getelementptr inbounds i8, ptr %2, i64 8
  %116 = load double, ptr %115, align 8, !tbaa !17
  %117 = getelementptr inbounds i8, ptr %5, i64 72
  store double %116, ptr %117, align 8, !tbaa !17
  %118 = getelementptr inbounds i8, ptr %2, i64 16
  %119 = load double, ptr %118, align 8, !tbaa !17
  %120 = getelementptr inbounds i8, ptr %5, i64 80
  store double %119, ptr %120, align 8, !tbaa !17
  %121 = load double, ptr %2, align 8, !tbaa !17
  %122 = getelementptr inbounds i8, ptr %5, i64 104
  %123 = load ptr, ptr %122, align 8, !tbaa !25
  store double %121, ptr %123, align 8, !tbaa !17
  %124 = getelementptr inbounds i8, ptr %2, i64 8
  %125 = load double, ptr %124, align 8, !tbaa !17
  %126 = getelementptr inbounds i8, ptr %123, i64 8
  store double %125, ptr %126, align 8, !tbaa !17
  %127 = getelementptr inbounds i8, ptr %2, i64 16
  %128 = load double, ptr %127, align 8, !tbaa !17
  %129 = getelementptr inbounds i8, ptr %123, i64 16
  store double %128, ptr %129, align 8, !tbaa !17
  br label %.loopexit203

scalar.ph298:                                     ; preds = %scalar.ph298.prol.loopexit, %scalar.ph298
  %indvars.iv236 = phi i64 [ %indvars.iv.next237.3, %scalar.ph298 ], [ %indvars.iv236.unr, %scalar.ph298.prol.loopexit ]
  %130 = getelementptr inbounds double, ptr %2, i64 %indvars.iv236
  %131 = load double, ptr %130, align 8, !tbaa !17
  %132 = getelementptr inbounds double, ptr %93, i64 %indvars.iv236
  store double %131, ptr %132, align 8, !tbaa !17
  %indvars.iv.next237 = add nuw nsw i64 %indvars.iv236, 1
  %133 = getelementptr inbounds double, ptr %2, i64 %indvars.iv.next237
  %134 = load double, ptr %133, align 8, !tbaa !17
  %135 = getelementptr inbounds double, ptr %93, i64 %indvars.iv.next237
  store double %134, ptr %135, align 8, !tbaa !17
  %indvars.iv.next237.1 = add nuw nsw i64 %indvars.iv236, 2
  %136 = getelementptr inbounds double, ptr %2, i64 %indvars.iv.next237.1
  %137 = load double, ptr %136, align 8, !tbaa !17
  %138 = getelementptr inbounds double, ptr %93, i64 %indvars.iv.next237.1
  store double %137, ptr %138, align 8, !tbaa !17
  %indvars.iv.next237.2 = add nuw nsw i64 %indvars.iv236, 3
  %139 = getelementptr inbounds double, ptr %2, i64 %indvars.iv.next237.2
  %140 = load double, ptr %139, align 8, !tbaa !17
  %141 = getelementptr inbounds double, ptr %93, i64 %indvars.iv.next237.2
  store double %140, ptr %141, align 8, !tbaa !17
  %indvars.iv.next237.3 = add nuw nsw i64 %indvars.iv236, 4
  %exitcond240.not.3 = icmp eq i64 %indvars.iv.next237.3, %wide.trip.count239
  br i1 %exitcond240.not.3, label %.loopexit203, label %scalar.ph298, !llvm.loop !28

.loopexit203:                                     ; preds = %scalar.ph298.prol.loopexit, %scalar.ph298, %middle.block297, %.preheader202, %106
  %142 = phi ptr [ %112, %106 ], [ %65, %.preheader202 ], [ %65, %middle.block297 ], [ %65, %scalar.ph298 ], [ %65, %scalar.ph298.prol.loopexit ]
  %143 = icmp sgt i32 %1, 0
  br i1 %143, label %.lr.ph213, label %.preheader199

.loopexit203.thread:                              ; preds = %59
  %144 = load double, ptr %2, align 8, !tbaa !17
  %145 = getelementptr inbounds i8, ptr %5, i64 64
  store double %144, ptr %145, align 8, !tbaa !17
  %146 = getelementptr inbounds i8, ptr %2, i64 8
  %147 = load double, ptr %146, align 8, !tbaa !17
  %148 = getelementptr inbounds i8, ptr %5, i64 72
  store double %147, ptr %148, align 8, !tbaa !17
  %149 = load double, ptr %2, align 8, !tbaa !17
  %150 = getelementptr inbounds i8, ptr %5, i64 104
  %151 = load ptr, ptr %150, align 8, !tbaa !25
  store double %149, ptr %151, align 8, !tbaa !17
  %152 = getelementptr inbounds i8, ptr %2, i64 8
  %153 = load double, ptr %152, align 8, !tbaa !17
  %154 = getelementptr inbounds i8, ptr %151, i64 8
  store double %153, ptr %154, align 8, !tbaa !17
  %155 = icmp sgt i32 %1, 0
  br i1 %155, label %.lr.ph213.thread, label %.lr.ph216.preheader

.lr.ph213.thread:                                 ; preds = %.loopexit203.thread
  %156 = getelementptr inbounds i8, ptr %5, i64 96
  br label %.lr.ph213.split

.lr.ph213:                                        ; preds = %.loopexit203
  %157 = icmp sgt i32 %48, 0
  %158 = getelementptr inbounds i8, ptr %5, i64 96
  br i1 %49, label %.lr.ph213.split.us, label %.lr.ph213.split

.lr.ph213.split.us:                               ; preds = %.lr.ph213
  br i1 %53, label %.lr.ph213.split.us.split.us, label %.lr.ph213.split.us.split

.lr.ph213.split.us.split.us:                      ; preds = %.lr.ph213.split.us
  %159 = load ptr, ptr %158, align 8, !tbaa !29
  %wide.trip.count259 = zext nneg i32 %1 to i64
  %xtraiter353 = and i64 %wide.trip.count259, 1
  %160 = icmp eq i32 %1, 1
  br i1 %160, label %.preheader199.loopexit.unr-lcssa, label %.lr.ph213.split.us.split.us.new

.lr.ph213.split.us.split.us.new:                  ; preds = %.lr.ph213.split.us.split.us
  %unroll_iter355 = and i64 %wide.trip.count259, 2147483646
  br label %161

161:                                              ; preds = %161, %.lr.ph213.split.us.split.us.new
  %indvars.iv256 = phi i64 [ 0, %.lr.ph213.split.us.split.us.new ], [ %indvars.iv.next257.1, %161 ]
  %niter356 = phi i64 [ 0, %.lr.ph213.split.us.split.us.new ], [ %niter356.next.1, %161 ]
  %162 = getelementptr inbounds ptr, ptr %4, i64 %indvars.iv256
  %163 = load ptr, ptr %162, align 8, !tbaa !30
  %164 = load i32, ptr %163, align 4, !tbaa !31
  %165 = getelementptr inbounds ptr, ptr %159, i64 %indvars.iv256
  %166 = load ptr, ptr %165, align 8, !tbaa !30
  store i32 %164, ptr %166, align 4, !tbaa !31
  %167 = getelementptr inbounds i8, ptr %163, i64 4
  %168 = load i32, ptr %167, align 4, !tbaa !31
  %169 = getelementptr inbounds i8, ptr %166, i64 4
  store i32 %168, ptr %169, align 4, !tbaa !31
  %170 = getelementptr inbounds i8, ptr %163, i64 8
  %171 = load i32, ptr %170, align 4, !tbaa !31
  %172 = getelementptr inbounds i8, ptr %166, i64 8
  store i32 %171, ptr %172, align 4, !tbaa !31
  %indvars.iv.next257 = or disjoint i64 %indvars.iv256, 1
  %173 = getelementptr inbounds ptr, ptr %4, i64 %indvars.iv.next257
  %174 = load ptr, ptr %173, align 8, !tbaa !30
  %175 = load i32, ptr %174, align 4, !tbaa !31
  %176 = getelementptr inbounds ptr, ptr %159, i64 %indvars.iv.next257
  %177 = load ptr, ptr %176, align 8, !tbaa !30
  store i32 %175, ptr %177, align 4, !tbaa !31
  %178 = getelementptr inbounds i8, ptr %174, i64 4
  %179 = load i32, ptr %178, align 4, !tbaa !31
  %180 = getelementptr inbounds i8, ptr %177, i64 4
  store i32 %179, ptr %180, align 4, !tbaa !31
  %181 = getelementptr inbounds i8, ptr %174, i64 8
  %182 = load i32, ptr %181, align 4, !tbaa !31
  %183 = getelementptr inbounds i8, ptr %177, i64 8
  store i32 %182, ptr %183, align 4, !tbaa !31
  %indvars.iv.next257.1 = add nuw nsw i64 %indvars.iv256, 2
  %niter356.next.1 = add i64 %niter356, 2
  %niter356.ncmp.1 = icmp eq i64 %niter356.next.1, %unroll_iter355
  br i1 %niter356.ncmp.1, label %.preheader199.loopexit.unr-lcssa, label %161, !llvm.loop !32

.lr.ph213.split.us.split:                         ; preds = %.lr.ph213.split.us
  br i1 %157, label %.lr.ph213.split.us.split.split.us, label %.preheader199

.lr.ph213.split.us.split.split.us:                ; preds = %.lr.ph213.split.us.split
  %184 = load ptr, ptr %158, align 8, !tbaa !29
  %wide.trip.count254 = zext nneg i32 %1 to i64
  %wide.trip.count249 = zext nneg i32 %48 to i64
  %min.iters.check314 = icmp ult i32 %48, 8
  %n.vec317 = and i64 %wide.trip.count249, 2147483640
  %cmp.n324 = icmp eq i64 %n.vec317, %wide.trip.count249
  %xtraiter349 = and i64 %wide.trip.count249, 3
  %lcmp.mod350.not = icmp eq i64 %xtraiter349, 0
  br label %.preheader200.us.us

.preheader200.us.us:                              ; preds = %..loopexit201_crit_edge.us.us, %.lr.ph213.split.us.split.split.us
  %indvars.iv251 = phi i64 [ %indvars.iv.next252, %..loopexit201_crit_edge.us.us ], [ 0, %.lr.ph213.split.us.split.split.us ]
  %185 = getelementptr inbounds ptr, ptr %4, i64 %indvars.iv251
  %186 = load ptr, ptr %185, align 8, !tbaa !30
  %187 = getelementptr inbounds ptr, ptr %184, i64 %indvars.iv251
  %188 = load ptr, ptr %187, align 8, !tbaa !30
  %189 = ptrtoint ptr %188 to i64
  %190 = ptrtoint ptr %186 to i64
  %191 = sub i64 %189, %190
  %diff.check311 = icmp ult i64 %191, 32
  %or.cond340 = select i1 %min.iters.check314, i1 true, i1 %diff.check311
  br i1 %or.cond340, label %scalar.ph313.preheader, label %vector.body319

vector.body319:                                   ; preds = %.preheader200.us.us, %vector.body319
  %index320 = phi i64 [ %index.next323, %vector.body319 ], [ 0, %.preheader200.us.us ]
  %192 = getelementptr inbounds i32, ptr %186, i64 %index320
  %193 = getelementptr inbounds i8, ptr %192, i64 16
  %wide.load321 = load <4 x i32>, ptr %192, align 4, !tbaa !31
  %wide.load322 = load <4 x i32>, ptr %193, align 4, !tbaa !31
  %194 = getelementptr inbounds i32, ptr %188, i64 %index320
  %195 = getelementptr inbounds i8, ptr %194, i64 16
  store <4 x i32> %wide.load321, ptr %194, align 4, !tbaa !31
  store <4 x i32> %wide.load322, ptr %195, align 4, !tbaa !31
  %index.next323 = add nuw i64 %index320, 8
  %196 = icmp eq i64 %index.next323, %n.vec317
  br i1 %196, label %middle.block312, label %vector.body319, !llvm.loop !33

middle.block312:                                  ; preds = %vector.body319
  br i1 %cmp.n324, label %..loopexit201_crit_edge.us.us, label %scalar.ph313.preheader

scalar.ph313.preheader:                           ; preds = %middle.block312, %.preheader200.us.us
  %indvars.iv246.ph = phi i64 [ 0, %.preheader200.us.us ], [ %n.vec317, %middle.block312 ]
  br i1 %lcmp.mod350.not, label %scalar.ph313.prol.loopexit, label %scalar.ph313.prol

scalar.ph313.prol:                                ; preds = %scalar.ph313.preheader, %scalar.ph313.prol
  %indvars.iv246.prol = phi i64 [ %indvars.iv.next247.prol, %scalar.ph313.prol ], [ %indvars.iv246.ph, %scalar.ph313.preheader ]
  %prol.iter351 = phi i64 [ %prol.iter351.next, %scalar.ph313.prol ], [ 0, %scalar.ph313.preheader ]
  %197 = getelementptr inbounds i32, ptr %186, i64 %indvars.iv246.prol
  %198 = load i32, ptr %197, align 4, !tbaa !31
  %199 = getelementptr inbounds i32, ptr %188, i64 %indvars.iv246.prol
  store i32 %198, ptr %199, align 4, !tbaa !31
  %indvars.iv.next247.prol = add nuw nsw i64 %indvars.iv246.prol, 1
  %prol.iter351.next = add i64 %prol.iter351, 1
  %prol.iter351.cmp.not = icmp eq i64 %prol.iter351.next, %xtraiter349
  br i1 %prol.iter351.cmp.not, label %scalar.ph313.prol.loopexit, label %scalar.ph313.prol, !llvm.loop !34

scalar.ph313.prol.loopexit:                       ; preds = %scalar.ph313.prol, %scalar.ph313.preheader
  %indvars.iv246.unr = phi i64 [ %indvars.iv246.ph, %scalar.ph313.preheader ], [ %indvars.iv.next247.prol, %scalar.ph313.prol ]
  %200 = sub nsw i64 %indvars.iv246.ph, %wide.trip.count249
  %201 = icmp ugt i64 %200, -4
  br i1 %201, label %..loopexit201_crit_edge.us.us, label %scalar.ph313

scalar.ph313:                                     ; preds = %scalar.ph313.prol.loopexit, %scalar.ph313
  %indvars.iv246 = phi i64 [ %indvars.iv.next247.3, %scalar.ph313 ], [ %indvars.iv246.unr, %scalar.ph313.prol.loopexit ]
  %202 = getelementptr inbounds i32, ptr %186, i64 %indvars.iv246
  %203 = load i32, ptr %202, align 4, !tbaa !31
  %204 = getelementptr inbounds i32, ptr %188, i64 %indvars.iv246
  store i32 %203, ptr %204, align 4, !tbaa !31
  %indvars.iv.next247 = add nuw nsw i64 %indvars.iv246, 1
  %205 = getelementptr inbounds i32, ptr %186, i64 %indvars.iv.next247
  %206 = load i32, ptr %205, align 4, !tbaa !31
  %207 = getelementptr inbounds i32, ptr %188, i64 %indvars.iv.next247
  store i32 %206, ptr %207, align 4, !tbaa !31
  %indvars.iv.next247.1 = add nuw nsw i64 %indvars.iv246, 2
  %208 = getelementptr inbounds i32, ptr %186, i64 %indvars.iv.next247.1
  %209 = load i32, ptr %208, align 4, !tbaa !31
  %210 = getelementptr inbounds i32, ptr %188, i64 %indvars.iv.next247.1
  store i32 %209, ptr %210, align 4, !tbaa !31
  %indvars.iv.next247.2 = add nuw nsw i64 %indvars.iv246, 3
  %211 = getelementptr inbounds i32, ptr %186, i64 %indvars.iv.next247.2
  %212 = load i32, ptr %211, align 4, !tbaa !31
  %213 = getelementptr inbounds i32, ptr %188, i64 %indvars.iv.next247.2
  store i32 %212, ptr %213, align 4, !tbaa !31
  %indvars.iv.next247.3 = add nuw nsw i64 %indvars.iv246, 4
  %exitcond250.not.3 = icmp eq i64 %indvars.iv.next247.3, %wide.trip.count249
  br i1 %exitcond250.not.3, label %..loopexit201_crit_edge.us.us, label %scalar.ph313, !llvm.loop !35

..loopexit201_crit_edge.us.us:                    ; preds = %scalar.ph313.prol.loopexit, %scalar.ph313, %middle.block312
  %indvars.iv.next252 = add nuw nsw i64 %indvars.iv251, 1
  %exitcond255.not = icmp eq i64 %indvars.iv.next252, %wide.trip.count254
  br i1 %exitcond255.not, label %.preheader199, label %.preheader200.us.us, !llvm.loop !32

.lr.ph213.split:                                  ; preds = %.lr.ph213.thread, %.lr.ph213
  %214 = phi ptr [ %156, %.lr.ph213.thread ], [ %158, %.lr.ph213 ]
  %215 = phi ptr [ %65, %.lr.ph213.thread ], [ %142, %.lr.ph213 ]
  %216 = load ptr, ptr %214, align 8, !tbaa !29
  %wide.trip.count244 = zext nneg i32 %1 to i64
  %xtraiter347 = and i64 %wide.trip.count244, 1
  %217 = icmp eq i32 %1, 1
  br i1 %217, label %.preheader199.loopexit343.unr-lcssa, label %.lr.ph213.split.new

.lr.ph213.split.new:                              ; preds = %.lr.ph213.split
  %unroll_iter = and i64 %wide.trip.count244, 2147483646
  br label %245

.preheader199.loopexit.unr-lcssa:                 ; preds = %161, %.lr.ph213.split.us.split.us
  %indvars.iv256.unr = phi i64 [ 0, %.lr.ph213.split.us.split.us ], [ %indvars.iv.next257.1, %161 ]
  %lcmp.mod354.not = icmp eq i64 %xtraiter353, 0
  br i1 %lcmp.mod354.not, label %.preheader199, label %.preheader199.loopexit.epilog-lcssa

.preheader199.loopexit.epilog-lcssa:              ; preds = %.preheader199.loopexit.unr-lcssa
  %218 = getelementptr inbounds ptr, ptr %4, i64 %indvars.iv256.unr
  %219 = load ptr, ptr %218, align 8, !tbaa !30
  %220 = load i32, ptr %219, align 4, !tbaa !31
  %221 = getelementptr inbounds ptr, ptr %159, i64 %indvars.iv256.unr
  %222 = load ptr, ptr %221, align 8, !tbaa !30
  store i32 %220, ptr %222, align 4, !tbaa !31
  %223 = getelementptr inbounds i8, ptr %219, i64 4
  %224 = load i32, ptr %223, align 4, !tbaa !31
  %225 = getelementptr inbounds i8, ptr %222, i64 4
  store i32 %224, ptr %225, align 4, !tbaa !31
  %226 = getelementptr inbounds i8, ptr %219, i64 8
  %227 = load i32, ptr %226, align 4, !tbaa !31
  %228 = getelementptr inbounds i8, ptr %222, i64 8
  store i32 %227, ptr %228, align 4, !tbaa !31
  br label %.preheader199

.preheader199.loopexit343.unr-lcssa:              ; preds = %245, %.lr.ph213.split
  %indvars.iv241.unr = phi i64 [ 0, %.lr.ph213.split ], [ %indvars.iv.next242.1, %245 ]
  %lcmp.mod348.not = icmp eq i64 %xtraiter347, 0
  br i1 %lcmp.mod348.not, label %.preheader199, label %.preheader199.loopexit343.epilog-lcssa

.preheader199.loopexit343.epilog-lcssa:           ; preds = %.preheader199.loopexit343.unr-lcssa
  %229 = getelementptr inbounds ptr, ptr %4, i64 %indvars.iv241.unr
  %230 = load ptr, ptr %229, align 8, !tbaa !30
  %231 = load i32, ptr %230, align 4, !tbaa !31
  %232 = getelementptr inbounds ptr, ptr %216, i64 %indvars.iv241.unr
  %233 = load ptr, ptr %232, align 8, !tbaa !30
  store i32 %231, ptr %233, align 4, !tbaa !31
  %234 = getelementptr inbounds i8, ptr %230, i64 4
  %235 = load i32, ptr %234, align 4, !tbaa !31
  %236 = getelementptr inbounds i8, ptr %233, i64 4
  store i32 %235, ptr %236, align 4, !tbaa !31
  br label %.preheader199

.preheader199:                                    ; preds = %.preheader199.loopexit343.epilog-lcssa, %.preheader199.loopexit343.unr-lcssa, %..loopexit201_crit_edge.us.us, %.preheader199.loopexit.epilog-lcssa, %.preheader199.loopexit.unr-lcssa, %.lr.ph213.split.us.split, %.loopexit203
  %237 = phi ptr [ %142, %.loopexit203 ], [ %142, %.lr.ph213.split.us.split ], [ %142, %.preheader199.loopexit.unr-lcssa ], [ %142, %.preheader199.loopexit.epilog-lcssa ], [ %142, %..loopexit201_crit_edge.us.us ], [ %215, %.preheader199.loopexit343.unr-lcssa ], [ %215, %.preheader199.loopexit343.epilog-lcssa ]
  %238 = icmp sgt i32 %48, 0
  br i1 %238, label %.lr.ph216.preheader, label %.preheader198

.lr.ph216.preheader:                              ; preds = %.loopexit203.thread, %.preheader199
  %239 = phi ptr [ %237, %.preheader199 ], [ %65, %.loopexit203.thread ]
  %wide.trip.count264 = zext nneg i32 %48 to i64
  %min.iters.check327 = icmp ult i32 %48, 4
  br i1 %min.iters.check327, label %.lr.ph216.preheader341, label %vector.ph328

.lr.ph216.preheader341:                           ; preds = %middle.block325, %.lr.ph216.preheader
  %indvars.iv261.ph = phi i64 [ 0, %.lr.ph216.preheader ], [ %n.vec330, %middle.block325 ]
  br label %.lr.ph216

vector.ph328:                                     ; preds = %.lr.ph216.preheader
  %n.vec330 = and i64 %wide.trip.count264, 2147483644
  br label %vector.body332

vector.body332:                                   ; preds = %vector.body332, %vector.ph328
  %index333 = phi i64 [ 0, %vector.ph328 ], [ %index.next334, %vector.body332 ]
  %240 = getelementptr inbounds [3 x double], ptr %10, i64 0, i64 %index333
  %241 = getelementptr inbounds i8, ptr %240, i64 16
  store <2 x double> <double 1.000000e+300, double 1.000000e+300>, ptr %240, align 16, !tbaa !17
  store <2 x double> <double 1.000000e+300, double 1.000000e+300>, ptr %241, align 16, !tbaa !17
  %242 = getelementptr inbounds [3 x double], ptr %11, i64 0, i64 %index333
  %243 = getelementptr inbounds i8, ptr %242, i64 16
  store <2 x double> <double -1.000000e+300, double -1.000000e+300>, ptr %242, align 16, !tbaa !17
  store <2 x double> <double -1.000000e+300, double -1.000000e+300>, ptr %243, align 16, !tbaa !17
  %index.next334 = add nuw i64 %index333, 4
  %244 = icmp eq i64 %index.next334, %n.vec330
  br i1 %244, label %middle.block325, label %vector.body332, !llvm.loop !36

middle.block325:                                  ; preds = %vector.body332
  %cmp.n335 = icmp eq i64 %n.vec330, %wide.trip.count264
  br i1 %cmp.n335, label %.preheader198, label %.lr.ph216.preheader341

245:                                              ; preds = %245, %.lr.ph213.split.new
  %indvars.iv241 = phi i64 [ 0, %.lr.ph213.split.new ], [ %indvars.iv.next242.1, %245 ]
  %niter = phi i64 [ 0, %.lr.ph213.split.new ], [ %niter.next.1, %245 ]
  %246 = getelementptr inbounds ptr, ptr %4, i64 %indvars.iv241
  %247 = load ptr, ptr %246, align 8, !tbaa !30
  %248 = load i32, ptr %247, align 4, !tbaa !31
  %249 = getelementptr inbounds ptr, ptr %216, i64 %indvars.iv241
  %250 = load ptr, ptr %249, align 8, !tbaa !30
  store i32 %248, ptr %250, align 4, !tbaa !31
  %251 = getelementptr inbounds i8, ptr %247, i64 4
  %252 = load i32, ptr %251, align 4, !tbaa !31
  %253 = getelementptr inbounds i8, ptr %250, i64 4
  store i32 %252, ptr %253, align 4, !tbaa !31
  %indvars.iv.next242 = or disjoint i64 %indvars.iv241, 1
  %254 = getelementptr inbounds ptr, ptr %4, i64 %indvars.iv.next242
  %255 = load ptr, ptr %254, align 8, !tbaa !30
  %256 = load i32, ptr %255, align 4, !tbaa !31
  %257 = getelementptr inbounds ptr, ptr %216, i64 %indvars.iv.next242
  %258 = load ptr, ptr %257, align 8, !tbaa !30
  store i32 %256, ptr %258, align 4, !tbaa !31
  %259 = getelementptr inbounds i8, ptr %255, i64 4
  %260 = load i32, ptr %259, align 4, !tbaa !31
  %261 = getelementptr inbounds i8, ptr %258, i64 4
  store i32 %260, ptr %261, align 4, !tbaa !31
  %indvars.iv.next242.1 = add nuw nsw i64 %indvars.iv241, 2
  %niter.next.1 = add i64 %niter, 2
  %niter.ncmp.1 = icmp eq i64 %niter.next.1, %unroll_iter
  br i1 %niter.ncmp.1, label %.preheader199.loopexit343.unr-lcssa, label %245, !llvm.loop !32

.preheader198:                                    ; preds = %.lr.ph216, %middle.block325, %.preheader204, %.preheader199
  %262 = phi i1 [ false, %.preheader199 ], [ false, %.preheader204 ], [ true, %middle.block325 ], [ true, %.lr.ph216 ]
  %263 = phi ptr [ %237, %.preheader199 ], [ %65, %.preheader204 ], [ %239, %middle.block325 ], [ %239, %.lr.ph216 ]
  %264 = icmp sgt i32 %0, 0
  %brmerge.not = and i1 %264, %262
  br i1 %brmerge.not, label %.preheader197.lr.ph.split.us, label %._crit_edge221

.preheader197.lr.ph.split.us:                     ; preds = %.preheader198
  %265 = getelementptr inbounds i8, ptr %5, i64 88
  %266 = load ptr, ptr %265, align 8, !tbaa !37
  %wide.trip.count274 = zext nneg i32 %0 to i64
  %wide.trip.count269 = zext nneg i32 %48 to i64
  br label %.preheader197.us

.preheader197.us:                                 ; preds = %._crit_edge219.us, %.preheader197.lr.ph.split.us
  %indvars.iv271 = phi i64 [ %indvars.iv.next272, %._crit_edge219.us ], [ 0, %.preheader197.lr.ph.split.us ]
  %267 = getelementptr inbounds ptr, ptr %3, i64 %indvars.iv271
  %268 = load ptr, ptr %267, align 8, !tbaa !30
  %269 = getelementptr inbounds ptr, ptr %266, i64 %indvars.iv271
  %270 = load ptr, ptr %269, align 8, !tbaa !30
  br label %271

271:                                              ; preds = %.preheader197.us, %284
  %indvars.iv266 = phi i64 [ 0, %.preheader197.us ], [ %indvars.iv.next267, %284 ]
  %272 = getelementptr inbounds double, ptr %268, i64 %indvars.iv266
  %273 = load double, ptr %272, align 8, !tbaa !17
  %274 = getelementptr inbounds double, ptr %270, i64 %indvars.iv266
  store double %273, ptr %274, align 8, !tbaa !17
  %275 = getelementptr inbounds [3 x double], ptr %10, i64 0, i64 %indvars.iv266
  %276 = load double, ptr %275, align 8, !tbaa !17
  %277 = fcmp olt double %273, %276
  br i1 %277, label %278, label %279

278:                                              ; preds = %271
  store double %273, ptr %275, align 8, !tbaa !17
  br label %279

279:                                              ; preds = %278, %271
  %280 = getelementptr inbounds [3 x double], ptr %11, i64 0, i64 %indvars.iv266
  %281 = load double, ptr %280, align 8, !tbaa !17
  %282 = fcmp ogt double %273, %281
  br i1 %282, label %283, label %284

283:                                              ; preds = %279
  store double %273, ptr %280, align 8, !tbaa !17
  br label %284

284:                                              ; preds = %283, %279
  %indvars.iv.next267 = add nuw nsw i64 %indvars.iv266, 1
  %exitcond270.not = icmp eq i64 %indvars.iv.next267, %wide.trip.count269
  br i1 %exitcond270.not, label %._crit_edge219.us, label %271, !llvm.loop !38

._crit_edge219.us:                                ; preds = %284
  %indvars.iv.next272 = add nuw nsw i64 %indvars.iv271, 1
  %exitcond275.not = icmp eq i64 %indvars.iv.next272, %wide.trip.count274
  br i1 %exitcond275.not, label %._crit_edge221, label %.preheader197.us, !llvm.loop !39

.lr.ph216:                                        ; preds = %.lr.ph216.preheader341, %.lr.ph216
  %indvars.iv261 = phi i64 [ %indvars.iv.next262, %.lr.ph216 ], [ %indvars.iv261.ph, %.lr.ph216.preheader341 ]
  %285 = getelementptr inbounds [3 x double], ptr %10, i64 0, i64 %indvars.iv261
  store double 1.000000e+300, ptr %285, align 8, !tbaa !17
  %286 = getelementptr inbounds [3 x double], ptr %11, i64 0, i64 %indvars.iv261
  store double -1.000000e+300, ptr %286, align 8, !tbaa !17
  %indvars.iv.next262 = add nuw nsw i64 %indvars.iv261, 1
  %exitcond265.not = icmp eq i64 %indvars.iv.next262, %wide.trip.count264
  br i1 %exitcond265.not, label %.preheader198, label %.lr.ph216, !llvm.loop !40

._crit_edge221:                                   ; preds = %._crit_edge219.us, %.preheader198
  %287 = getelementptr inbounds i8, ptr %5, i64 64
  %288 = load double, ptr %287, align 8, !tbaa !17
  %289 = load double, ptr %10, align 16, !tbaa !17
  %290 = fcmp olt double %288, %289
  br i1 %290, label %291, label %292

291:                                              ; preds = %._crit_edge221
  store double %288, ptr %10, align 16, !tbaa !17
  br label %292

292:                                              ; preds = %291, %._crit_edge221
  %293 = phi double [ %288, %291 ], [ %289, %._crit_edge221 ]
  %294 = getelementptr inbounds i8, ptr %5, i64 72
  %295 = load double, ptr %294, align 8, !tbaa !17
  %296 = getelementptr inbounds i8, ptr %10, i64 8
  %297 = load double, ptr %296, align 8, !tbaa !17
  %298 = fcmp olt double %295, %297
  br i1 %298, label %299, label %300

299:                                              ; preds = %292
  store double %295, ptr %296, align 8, !tbaa !17
  br label %300

300:                                              ; preds = %299, %292
  %301 = phi double [ %295, %299 ], [ %297, %292 ]
  %302 = load double, ptr %11, align 16, !tbaa !17
  %303 = fcmp ogt double %288, %302
  br i1 %303, label %304, label %305

304:                                              ; preds = %300
  store double %288, ptr %11, align 16, !tbaa !17
  br label %305

305:                                              ; preds = %304, %300
  %306 = phi double [ %288, %304 ], [ %302, %300 ]
  %307 = getelementptr inbounds i8, ptr %11, i64 8
  %308 = load double, ptr %307, align 8, !tbaa !17
  %309 = fcmp ogt double %295, %308
  br i1 %309, label %310, label %311

310:                                              ; preds = %305
  store double %295, ptr %307, align 8, !tbaa !17
  br label %311

311:                                              ; preds = %310, %305
  %312 = phi double [ %295, %310 ], [ %308, %305 ]
  br i1 %49, label %313, label %314

313:                                              ; preds = %311
  br i1 %53, label %325, label %.preheader196

.preheader196:                                    ; preds = %313
  br i1 %262, label %.lr.ph226, label %.loopexit

314:                                              ; preds = %311
  %315 = getelementptr inbounds i8, ptr %5, i64 16
  store double %293, ptr %315, align 8, !tbaa !17
  %316 = getelementptr inbounds i8, ptr %5, i64 24
  store double %301, ptr %316, align 8, !tbaa !17
  %317 = getelementptr inbounds i8, ptr %5, i64 40
  store double %306, ptr %317, align 8, !tbaa !17
  %318 = getelementptr inbounds i8, ptr %5, i64 48
  store double %312, ptr %318, align 8, !tbaa !17
  br label %.loopexit

.lr.ph226:                                        ; preds = %.preheader196
  %319 = getelementptr inbounds i8, ptr %5, i64 16
  %320 = zext nneg i32 %48 to i64
  %321 = shl nuw nsw i64 %320, 3
  call void @llvm.memcpy.p0.p0.i64(ptr nonnull align 8 %319, ptr nonnull align 16 %10, i64 %321, i1 false), !tbaa !17
  %322 = getelementptr inbounds i8, ptr %5, i64 40
  %323 = zext nneg i32 %48 to i64
  %324 = shl nuw nsw i64 %323, 3
  call void @llvm.memcpy.p0.p0.i64(ptr nonnull align 8 %322, ptr nonnull align 16 %11, i64 %324, i1 false), !tbaa !17
  br label %.loopexit

325:                                              ; preds = %313
  %326 = getelementptr inbounds i8, ptr %5, i64 16
  store double %293, ptr %326, align 8, !tbaa !17
  %327 = getelementptr inbounds i8, ptr %5, i64 24
  store double %301, ptr %327, align 8, !tbaa !17
  %328 = getelementptr inbounds i8, ptr %10, i64 16
  %329 = load double, ptr %328, align 16, !tbaa !17
  %330 = getelementptr inbounds i8, ptr %5, i64 32
  store double %329, ptr %330, align 8, !tbaa !17
  %331 = getelementptr inbounds i8, ptr %5, i64 40
  store double %306, ptr %331, align 8, !tbaa !17
  %332 = getelementptr inbounds i8, ptr %5, i64 48
  store double %312, ptr %332, align 8, !tbaa !17
  %333 = getelementptr inbounds i8, ptr %11, i64 16
  %334 = load double, ptr %333, align 16, !tbaa !17
  %335 = getelementptr inbounds i8, ptr %5, i64 56
  store double %334, ptr %335, align 8, !tbaa !17
  br label %.loopexit

.loopexit:                                        ; preds = %.preheader196, %.lr.ph226, %325, %314
  %336 = getelementptr inbounds i8, ptr %5, i64 120
  store double 0.000000e+00, ptr %336, align 8, !tbaa !41
  %337 = getelementptr inbounds i8, ptr %5, i64 136
  store double 0.000000e+00, ptr %337, align 8, !tbaa !42
  %338 = load i32, ptr %263, align 8, !tbaa !16
  %339 = icmp sgt i32 %338, 0
  br i1 %339, label %.lr.ph229, label %._crit_edge230

.lr.ph229:                                        ; preds = %.loopexit
  %340 = getelementptr inbounds i8, ptr %5, i64 128
  %341 = load ptr, ptr %340, align 8, !tbaa !43
  store double 0.000000e+00, ptr %341, align 8, !tbaa !17
  br label %._crit_edge230

._crit_edge230:                                   ; preds = %.lr.ph229, %.loopexit
  %342 = getelementptr inbounds i8, ptr %5, i64 160
  %343 = load ptr, ptr %342, align 8, !tbaa !44
  %344 = getelementptr inbounds i8, ptr %343, i64 24
  store i32 0, ptr %344, align 8, !tbaa !45
  %345 = getelementptr inbounds i8, ptr %5, i64 144
  store i32 0, ptr %345, align 8, !tbaa !47
  %346 = getelementptr inbounds i8, ptr %5, i64 148
  store i32 0, ptr %346, align 4, !tbaa !48
  br label %347

347:                                              ; preds = %._crit_edge230, %57, %50, %45, %41, %37, %33, %29, %25, %21, %17, %13
  %.0169 = phi i32 [ %14, %13 ], [ %18, %17 ], [ %22, %21 ], [ %26, %25 ], [ %30, %29 ], [ %34, %33 ], [ %38, %37 ], [ %42, %41 ], [ %46, %45 ], [ %51, %50 ], [ %58, %57 ], [ 0, %._crit_edge230 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %11) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %10) #4
  ret i32 %.0169
}

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #3

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { "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 = { 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 #3 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { 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 0}
!6 = !{!"__SMlocal_mesh", !7, i64 0, !7, i64 4, !7, i64 8, !8, i64 16, !8, i64 40, !8, i64 64, !10, i64 88, !10, i64 96, !10, i64 104, !7, i64 112, !11, i64 120, !10, i64 128, !11, i64 136, !7, i64 144, !7, i64 148, !7, i64 152, !10, i64 160, !10, i64 168, !10, i64 176}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"any pointer", !8, i64 0}
!11 = !{!"double", !8, i64 0}
!12 = !{!6, !7, i64 4}
!13 = !{!6, !7, i64 8}
!14 = !{!15, !7, i64 56}
!15 = !{!"__SMparam", !7, i64 0, !7, i64 4, !7, i64 8, !11, i64 16, !11, i64 24, !11, i64 32, !11, i64 40, !7, i64 48, !7, i64 52, !7, i64 56, !11, i64 64, !11, i64 72, !10, i64 80, !10, i64 88, !10, i64 96, !10, i64 104}
!16 = !{!6, !7, i64 112}
!17 = !{!11, !11, i64 0}
!18 = distinct !{!18, !19, !20, !21}
!19 = !{!"llvm.loop.mustprogress"}
!20 = !{!"llvm.loop.isvectorized", i32 1}
!21 = !{!"llvm.loop.unroll.runtime.disable"}
!22 = distinct !{!22, !23}
!23 = !{!"llvm.loop.unroll.disable"}
!24 = distinct !{!24, !19, !20}
!25 = !{!6, !10, i64 104}
!26 = distinct !{!26, !23}
!27 = distinct !{!27, !19, !20, !21}
!28 = distinct !{!28, !19, !20}
!29 = !{!6, !10, i64 96}
!30 = !{!10, !10, i64 0}
!31 = !{!7, !7, i64 0}
!32 = distinct !{!32, !19}
!33 = distinct !{!33, !19, !20, !21}
!34 = distinct !{!34, !23}
!35 = distinct !{!35, !19, !20}
!36 = distinct !{!36, !19, !20, !21}
!37 = !{!6, !10, i64 88}
!38 = distinct !{!38, !19}
!39 = distinct !{!39, !19}
!40 = distinct !{!40, !19, !21, !20}
!41 = !{!6, !11, i64 120}
!42 = !{!6, !11, i64 136}
!43 = !{!6, !10, i64 128}
!44 = !{!6, !10, i64 160}
!45 = !{!46, !7, i64 24}
!46 = !{!"__SMoptimal", !7, i64 0, !7, i64 4, !7, i64 8, !7, i64 12, !7, i64 16, !7, i64 20, !7, i64 24, !11, i64 32, !7, i64 40, !7, i64 44, !10, i64 48, !10, i64 56, !10, i64 64, !10, i64 72, !10, i64 80, !10, i64 88, !10, i64 96, !7, i64 104, !8, i64 112, !11, i64 136, !11, i64 144, !10, i64 152, !10, i64 160, !10, i64 168, !10, i64 176, !8, i64 184, !7, i64 196}
!47 = !{!6, !7, i64 144}
!48 = !{!6, !7, i64 148}


; Effective O3 passes: ADCEPass,CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopIdiomRecognizePass,LoopInstSimplifyPass,LoopLoadEliminationPass,LoopRotatePass,LoopSimplifyCFGPass,LoopSimplifyPass,LoopUnrollPass,LoopVectorizePass,PostOrderFunctionAttrsPass,ReassociatePass,SCCPPass,SROAPass,SimplifyCFGPass,TailCallElimPass