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

; 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.__SMsmooth_data = type { i32, ptr, ptr, ptr, ptr, ptr, ptr }
%struct.SMquality_table = type { i32, i32, i32, i32, ptr }

@.str.1 = external hidden unnamed_addr constant [110 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [31 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

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

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

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

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

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

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

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

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

; Function Attrs: nounwind uwtable
define dso_local i32 @SMaccumulateQualityInformation(ptr noundef %0, ptr noundef %1) #2 {
  %3 = alloca i32, align 4
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca [6 x double], align 16
  %12 = alloca i32, align 4
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca i32, align 4
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #3
  call void @llvm.lifetime.start.p0(i64 48, ptr %11) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #3
  store i32 0, ptr %12, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #3
  %16 = load ptr, ptr %4, align 8, !tbaa !5
  store ptr %16, ptr %13, align 8, !tbaa !5
  %17 = load ptr, ptr %13, align 8, !tbaa !5
  %18 = icmp eq ptr %17, null
  br i1 %18, label %19, label %21

19:                                               ; preds = %2
  %20 = call i32 @SMerror(i32 noundef 988, ptr noundef @.str.12, ptr noundef @.str.1, ptr noundef @.str.2, i32 noundef 56, i32 noundef 0, ptr noundef null)
  store i32 %20, ptr %3, align 4
  store i32 1, ptr %15, align 4
  br label %594

21:                                               ; preds = %2
  %22 = load ptr, ptr %13, align 8, !tbaa !5
  %23 = getelementptr inbounds %struct.__SMsmooth_data, ptr %22, i32 0, i32 0
  %24 = load i32, ptr %23, align 8, !tbaa !11
  store i32 %24, ptr %10, align 4, !tbaa !9
  %25 = load ptr, ptr %13, align 8, !tbaa !5
  %26 = getelementptr inbounds %struct.__SMsmooth_data, ptr %25, i32 0, i32 4
  %27 = load ptr, ptr %26, align 8, !tbaa !13
  store ptr %27, ptr %14, align 8, !tbaa !5
  store i32 0, ptr %7, align 4, !tbaa !9
  br label %28

28:                                               ; preds = %589, %21
  %29 = load i32, ptr %7, align 4, !tbaa !9
  %30 = load ptr, ptr %14, align 8, !tbaa !5
  %31 = getelementptr inbounds %struct.SMquality_table, ptr %30, i32 0, i32 1
  %32 = load i32, ptr %31, align 4, !tbaa !14
  %33 = icmp slt i32 %29, %32
  br i1 %33, label %34, label %592

34:                                               ; preds = %28
  %35 = load i32, ptr %10, align 4, !tbaa !9
  %36 = icmp eq i32 %35, 2
  br i1 %36, label %37, label %295

37:                                               ; preds = %34
  %38 = load i32, ptr %7, align 4, !tbaa !9
  switch i32 %38, label %294 [
    i32 0, label %39
    i32 1, label %79
    i32 2, label %142
    i32 3, label %187
    i32 4, label %232
  ]

39:                                               ; preds = %37
  %40 = load ptr, ptr %5, align 8, !tbaa !5
  %41 = getelementptr inbounds ptr, ptr %40, i64 0
  %42 = load ptr, ptr %41, align 8, !tbaa !5
  %43 = load ptr, ptr %5, align 8, !tbaa !5
  %44 = getelementptr inbounds ptr, ptr %43, i64 1
  %45 = load ptr, ptr %44, align 8, !tbaa !5
  %46 = load ptr, ptr %5, align 8, !tbaa !5
  %47 = getelementptr inbounds ptr, ptr %46, i64 2
  %48 = load ptr, ptr %47, align 8, !tbaa !5
  %49 = getelementptr inbounds [6 x double], ptr %11, i64 0, i64 0
  %50 = call i32 @SMcomputeTriArea(ptr noundef %42, ptr noundef %45, ptr noundef %48, ptr noundef %49, ptr noundef %9)
  store i32 %50, ptr %6, align 4, !tbaa !9
  %51 = load i32, ptr %6, align 4, !tbaa !9
  %52 = icmp ne i32 %51, 0
  br i1 %52, label %53, label %56

53:                                               ; preds = %39
  %54 = load i32, ptr %6, align 4, !tbaa !9
  %55 = call i32 @SMerror(i32 noundef 997, ptr noundef @.str.12, ptr noundef @.str.1, ptr noundef @.str.2, i32 noundef %54, i32 noundef 0, ptr noundef null)
  store i32 %55, ptr %3, align 4
  store i32 1, ptr %15, align 4
  br label %594

56:                                               ; preds = %39
  %57 = load ptr, ptr %14, align 8, !tbaa !5
  %58 = load i32, ptr %7, align 4, !tbaa !9
  %59 = getelementptr inbounds [6 x double], ptr %11, i64 0, i64 0
  %60 = load i32, ptr %9, align 4, !tbaa !9
  %61 = call i32 @SMinsertQualityInfo(ptr noundef %57, i32 noundef %58, ptr noundef %59, i32 noundef %60)
  store i32 %61, ptr %6, align 4, !tbaa !9
  %62 = load i32, ptr %6, align 4, !tbaa !9
  %63 = icmp ne i32 %62, 0
  br i1 %63, label %64, label %67

64:                                               ; preds = %56
  %65 = load i32, ptr %6, align 4, !tbaa !9
  %66 = call i32 @SMerror(i32 noundef 998, ptr noundef @.str.12, ptr noundef @.str.1, ptr noundef @.str.2, i32 noundef %65, i32 noundef 0, ptr noundef null)
  store i32 %66, ptr %3, align 4
  store i32 1, ptr %15, align 4
  br label %594

67:                                               ; preds = %56
  %68 = getelementptr inbounds [6 x double], ptr %11, i64 0, i64 0
  %69 = load double, ptr %68, align 16, !tbaa !16
  %70 = fcmp ole double %69, 1.000000e-15
  br i1 %70, label %71, label %78

71:                                               ; preds = %67
  %72 = load ptr, ptr %14, align 8, !tbaa !5
  %73 = getelementptr inbounds %struct.SMquality_table, ptr %72, i32 0, i32 2
  %74 = load i32, ptr %73, align 8, !tbaa !18
  %75 = add nsw i32 %74, 1
  store i32 %75, ptr %73, align 8, !tbaa !18
  %76 = load ptr, ptr %14, align 8, !tbaa !5
  %77 = getelementptr inbounds %struct.SMquality_table, ptr %76, i32 0, i32 3
  store i32 0, ptr %77, align 4, !tbaa !19
  store i32 1, ptr %12, align 4, !tbaa !9
  br label %78

78:                                               ; preds = %71, %67
  br label %294

79:                                               ; preds = %37
  %80 = load i32, ptr %12, align 4, !tbaa !9
  %81 = icmp ne i32 %80, 0
  br i1 %81, label %82, label %94

82:                                               ; preds = %79
  store i32 0, ptr %8, align 4, !tbaa !9
  br label %83

83:                                               ; preds = %90, %82
  %84 = load i32, ptr %8, align 4, !tbaa !9
  %85 = icmp slt i32 %84, 3
  br i1 %85, label %86, label %93

86:                                               ; preds = %83
  %87 = load i32, ptr %8, align 4, !tbaa !9
  %88 = sext i32 %87 to i64
  %89 = getelementptr inbounds [6 x double], ptr %11, i64 0, i64 %88
  store double 1.000000e+06, ptr %89, align 8, !tbaa !16
  br label %90

90:                                               ; preds = %86
  %91 = load i32, ptr %8, align 4, !tbaa !9
  %92 = add nsw i32 %91, 1
  store i32 %92, ptr %8, align 4, !tbaa !9
  br label %83, !llvm.loop !20

93:                                               ; preds = %83
  br label %130

94:                                               ; preds = %79
  %95 = load ptr, ptr %5, align 8, !tbaa !5
  %96 = getelementptr inbounds ptr, ptr %95, i64 0
  %97 = load ptr, ptr %96, align 8, !tbaa !5
  %98 = load ptr, ptr %5, align 8, !tbaa !5
  %99 = getelementptr inbounds ptr, ptr %98, i64 1
  %100 = load ptr, ptr %99, align 8, !tbaa !5
  %101 = load ptr, ptr %5, align 8, !tbaa !5
  %102 = getelementptr inbounds ptr, ptr %101, i64 2
  %103 = load ptr, ptr %102, align 8, !tbaa !5
  %104 = getelementptr inbounds [6 x double], ptr %11, i64 0, i64 0
  %105 = call i32 @SMcomputeTriAngles(ptr noundef %97, ptr noundef %100, ptr noundef %103, ptr noundef %104, ptr noundef %9)
  store i32 %105, ptr %6, align 4, !tbaa !9
  %106 = load i32, ptr %6, align 4, !tbaa !9
  %107 = icmp ne i32 %106, 0
  br i1 %107, label %108, label %111

108:                                              ; preds = %94
  %109 = load i32, ptr %6, align 4, !tbaa !9
  %110 = call i32 @SMerror(i32 noundef 1010, ptr noundef @.str.12, ptr noundef @.str.1, ptr noundef @.str.2, i32 noundef %109, i32 noundef 0, ptr noundef null)
  store i32 %110, ptr %3, align 4
  store i32 1, ptr %15, align 4
  br label %594

111:                                              ; preds = %94
  store i32 0, ptr %8, align 4, !tbaa !9
  br label %112

112:                                              ; preds = %126, %111
  %113 = load i32, ptr %8, align 4, !tbaa !9
  %114 = load i32, ptr %9, align 4, !tbaa !9
  %115 = icmp slt i32 %113, %114
  br i1 %115, label %116, label %129

116:                                              ; preds = %112
  %117 = load i32, ptr %8, align 4, !tbaa !9
  %118 = sext i32 %117 to i64
  %119 = getelementptr inbounds [6 x double], ptr %11, i64 0, i64 %118
  %120 = load double, ptr %119, align 8, !tbaa !16
  %121 = fdiv double %120, 3.141590e+00
  %122 = fmul double %121, 1.800000e+02
  %123 = load i32, ptr %8, align 4, !tbaa !9
  %124 = sext i32 %123 to i64
  %125 = getelementptr inbounds [6 x double], ptr %11, i64 0, i64 %124
  store double %122, ptr %125, align 8, !tbaa !16
  br label %126

126:                                              ; preds = %116
  %127 = load i32, ptr %8, align 4, !tbaa !9
  %128 = add nsw i32 %127, 1
  store i32 %128, ptr %8, align 4, !tbaa !9
  br label %112, !llvm.loop !22

129:                                              ; preds = %112
  br label %130

130:                                              ; preds = %129, %93
  %131 = load ptr, ptr %14, align 8, !tbaa !5
  %132 = load i32, ptr %7, align 4, !tbaa !9
  %133 = getelementptr inbounds [6 x double], ptr %11, i64 0, i64 0
  %134 = load i32, ptr %9, align 4, !tbaa !9
  %135 = call i32 @SMinsertQualityInfo(ptr noundef %131, i32 noundef %132, ptr noundef %133, i32 noundef %134)
  store i32 %135, ptr %6, align 4, !tbaa !9
  %136 = load i32, ptr %6, align 4, !tbaa !9
  %137 = icmp ne i32 %136, 0
  br i1 %137, label %138, label %141

138:                                              ; preds = %130
  %139 = load i32, ptr %6, align 4, !tbaa !9
  %140 = call i32 @SMerror(i32 noundef 1013, ptr noundef @.str.12, ptr noundef @.str.1, ptr noundef @.str.2, i32 noundef %139, i32 noundef 0, ptr noundef null)
  store i32 %140, ptr %3, align 4
  store i32 1, ptr %15, align 4
  br label %594

141:                                              ; preds = %130
  br label %294

142:                                              ; preds = %37
  %143 = load i32, ptr %12, align 4, !tbaa !9
  %144 = icmp ne i32 %143, 0
  br i1 %144, label %145, label %157

145:                                              ; preds = %142
  store i32 0, ptr %8, align 4, !tbaa !9
  br label %146

146:                                              ; preds = %153, %145
  %147 = load i32, ptr %8, align 4, !tbaa !9
  %148 = icmp slt i32 %147, 1
  br i1 %148, label %149, label %156

149:                                              ; preds = %146
  %150 = load i32, ptr %8, align 4, !tbaa !9
  %151 = sext i32 %150 to i64
  %152 = getelementptr inbounds [6 x double], ptr %11, i64 0, i64 %151
  store double 1.000000e+06, ptr %152, align 8, !tbaa !16
  br label %153

153:                                              ; preds = %149
  %154 = load i32, ptr %8, align 4, !tbaa !9
  %155 = add nsw i32 %154, 1
  store i32 %155, ptr %8, align 4, !tbaa !9
  br label %146, !llvm.loop !23

156:                                              ; preds = %146
  br label %175

157:                                              ; preds = %142
  %158 = load ptr, ptr %5, align 8, !tbaa !5
  %159 = getelementptr inbounds ptr, ptr %158, i64 0
  %160 = load ptr, ptr %159, align 8, !tbaa !5
  %161 = load ptr, ptr %5, align 8, !tbaa !5
  %162 = getelementptr inbounds ptr, ptr %161, i64 1
  %163 = load ptr, ptr %162, align 8, !tbaa !5
  %164 = load ptr, ptr %5, align 8, !tbaa !5
  %165 = getelementptr inbounds ptr, ptr %164, i64 2
  %166 = load ptr, ptr %165, align 8, !tbaa !5
  %167 = getelementptr inbounds [6 x double], ptr %11, i64 0, i64 0
  %168 = call i32 @SMcomputeTriJacobians(ptr noundef %160, ptr noundef %163, ptr noundef %166, ptr noundef %167, ptr noundef %9)
  store i32 %168, ptr %6, align 4, !tbaa !9
  %169 = load i32, ptr %6, align 4, !tbaa !9
  %170 = icmp ne i32 %169, 0
  br i1 %170, label %171, label %174

171:                                              ; preds = %157
  %172 = load i32, ptr %6, align 4, !tbaa !9
  %173 = call i32 @SMerror(i32 noundef 1020, ptr noundef @.str.12, ptr noundef @.str.1, ptr noundef @.str.2, i32 noundef %172, i32 noundef 0, ptr noundef null)
  store i32 %173, ptr %3, align 4
  store i32 1, ptr %15, align 4
  br label %594

174:                                              ; preds = %157
  br label %175

175:                                              ; preds = %174, %156
  %176 = load ptr, ptr %14, align 8, !tbaa !5
  %177 = load i32, ptr %7, align 4, !tbaa !9
  %178 = getelementptr inbounds [6 x double], ptr %11, i64 0, i64 0
  %179 = load i32, ptr %9, align 4, !tbaa !9
  %180 = call i32 @SMinsertQualityInfo(ptr noundef %176, i32 noundef %177, ptr noundef %178, i32 noundef %179)
  store i32 %180, ptr %6, align 4, !tbaa !9
  %181 = load i32, ptr %6, align 4, !tbaa !9
  %182 = icmp ne i32 %181, 0
  br i1 %182, label %183, label %186

183:                                              ; preds = %175
  %184 = load i32, ptr %6, align 4, !tbaa !9
  %185 = call i32 @SMerror(i32 noundef 1022, ptr noundef @.str.12, ptr noundef @.str.1, ptr noundef @.str.2, i32 noundef %184, i32 noundef 0, ptr noundef null)
  store i32 %185, ptr %3, align 4
  store i32 1, ptr %15, align 4
  br label %594

186:                                              ; preds = %175
  br label %294

187:                                              ; preds = %37
  %188 = load i32, ptr %12, align 4, !tbaa !9
  %189 = icmp ne i32 %188, 0
  br i1 %189, label %190, label %202

190:                                              ; preds = %187
  store i32 0, ptr %8, align 4, !tbaa !9
  br label %191

191:                                              ; preds = %198, %190
  %192 = load i32, ptr %8, align 4, !tbaa !9
  %193 = icmp slt i32 %192, 3
  br i1 %193, label %194, label %201

194:                                              ; preds = %191
  %195 = load i32, ptr %8, align 4, !tbaa !9
  %196 = sext i32 %195 to i64
  %197 = getelementptr inbounds [6 x double], ptr %11, i64 0, i64 %196
  store double 1.000000e+06, ptr %197, align 8, !tbaa !16
  br label %198

198:                                              ; preds = %194
  %199 = load i32, ptr %8, align 4, !tbaa !9
  %200 = add nsw i32 %199, 1
  store i32 %200, ptr %8, align 4, !tbaa !9
  br label %191, !llvm.loop !24

201:                                              ; preds = %191
  br label %220

202:                                              ; preds = %187
  %203 = load ptr, ptr %5, align 8, !tbaa !5
  %204 = getelementptr inbounds ptr, ptr %203, i64 0
  %205 = load ptr, ptr %204, align 8, !tbaa !5
  %206 = load ptr, ptr %5, align 8, !tbaa !5
  %207 = getelementptr inbounds ptr, ptr %206, i64 1
  %208 = load ptr, ptr %207, align 8, !tbaa !5
  %209 = load ptr, ptr %5, align 8, !tbaa !5
  %210 = getelementptr inbounds ptr, ptr %209, i64 2
  %211 = load ptr, ptr %210, align 8, !tbaa !5
  %212 = getelementptr inbounds [6 x double], ptr %11, i64 0, i64 0
  %213 = call i32 @SMcomputeScaledTriJacobians(ptr noundef %205, ptr noundef %208, ptr noundef %211, ptr noundef %212, ptr noundef %9)
  store i32 %213, ptr %6, align 4, !tbaa !9
  %214 = load i32, ptr %6, align 4, !tbaa !9
  %215 = icmp ne i32 %214, 0
  br i1 %215, label %216, label %219

216:                                              ; preds = %202
  %217 = load i32, ptr %6, align 4, !tbaa !9
  %218 = call i32 @SMerror(i32 noundef 1029, ptr noundef @.str.12, ptr noundef @.str.1, ptr noundef @.str.2, i32 noundef %217, i32 noundef 0, ptr noundef null)
  store i32 %218, ptr %3, align 4
  store i32 1, ptr %15, align 4
  br label %594

219:                                              ; preds = %202
  br label %220

220:                                              ; preds = %219, %201
  %221 = load ptr, ptr %14, align 8, !tbaa !5
  %222 = load i32, ptr %7, align 4, !tbaa !9
  %223 = getelementptr inbounds [6 x double], ptr %11, i64 0, i64 0
  %224 = load i32, ptr %9, align 4, !tbaa !9
  %225 = call i32 @SMinsertQualityInfo(ptr noundef %221, i32 noundef %222, ptr noundef %223, i32 noundef %224)
  store i32 %225, ptr %6, align 4, !tbaa !9
  %226 = load i32, ptr %6, align 4, !tbaa !9
  %227 = icmp ne i32 %226, 0
  br i1 %227, label %228, label %231

228:                                              ; preds = %220
  %229 = load i32, ptr %6, align 4, !tbaa !9
  %230 = call i32 @SMerror(i32 noundef 1031, ptr noundef @.str.12, ptr noundef @.str.1, ptr noundef @.str.2, i32 noundef %229, i32 noundef 0, ptr noundef null)
  store i32 %230, ptr %3, align 4
  store i32 1, ptr %15, align 4
  br label %594

231:                                              ; preds = %220
  br label %294

232:                                              ; preds = %37
  %233 = load i32, ptr %12, align 4, !tbaa !9
  %234 = icmp ne i32 %233, 0
  br i1 %234, label %235, label %247

235:                                              ; preds = %232
  store i32 0, ptr %8, align 4, !tbaa !9
  br label %236

236:                                              ; preds = %243, %235
  %237 = load i32, ptr %8, align 4, !tbaa !9
  %238 = icmp slt i32 %237, 1
  br i1 %238, label %239, label %246

239:                                              ; preds = %236
  %240 = load i32, ptr %8, align 4, !tbaa !9
  %241 = sext i32 %240 to i64
  %242 = getelementptr inbounds [6 x double], ptr %11, i64 0, i64 %241
  store double 1.000000e+06, ptr %242, align 8, !tbaa !16
  br label %243

243:                                              ; preds = %239
  %244 = load i32, ptr %8, align 4, !tbaa !9
  %245 = add nsw i32 %244, 1
  store i32 %245, ptr %8, align 4, !tbaa !9
  br label %236, !llvm.loop !25

246:                                              ; preds = %236
  br label %282

247:                                              ; preds = %232
  %248 = load ptr, ptr %5, align 8, !tbaa !5
  %249 = getelementptr inbounds ptr, ptr %248, i64 0
  %250 = load ptr, ptr %249, align 8, !tbaa !5
  %251 = load ptr, ptr %5, align 8, !tbaa !5
  %252 = getelementptr inbounds ptr, ptr %251, i64 1
  %253 = load ptr, ptr %252, align 8, !tbaa !5
  %254 = load ptr, ptr %5, align 8, !tbaa !5
  %255 = getelementptr inbounds ptr, ptr %254, i64 2
  %256 = load ptr, ptr %255, align 8, !tbaa !5
  %257 = getelementptr inbounds [6 x double], ptr %11, i64 0, i64 0
  %258 = call i32 @SMcondition2D(ptr noundef %250, ptr noundef %253, ptr noundef %256, ptr noundef %257, ptr noundef %9)
  store i32 %258, ptr %6, align 4, !tbaa !9
  %259 = load i32, ptr %6, align 4, !tbaa !9
  %260 = icmp ne i32 %259, 0
  br i1 %260, label %261, label %264

261:                                              ; preds = %247
  %262 = load i32, ptr %6, align 4, !tbaa !9
  %263 = call i32 @SMerror(i32 noundef 1037, ptr noundef @.str.12, ptr noundef @.str.1, ptr noundef @.str.2, i32 noundef %262, i32 noundef 0, ptr noundef null)
  store i32 %263, ptr %3, align 4
  store i32 1, ptr %15, align 4
  br label %594

264:                                              ; preds = %247
  store i32 0, ptr %8, align 4, !tbaa !9
  br label %265

265:                                              ; preds = %278, %264
  %266 = load i32, ptr %8, align 4, !tbaa !9
  %267 = load i32, ptr %9, align 4, !tbaa !9
  %268 = icmp slt i32 %266, %267
  br i1 %268, label %269, label %281

269:                                              ; preds = %265
  %270 = load i32, ptr %8, align 4, !tbaa !9
  %271 = sext i32 %270 to i64
  %272 = getelementptr inbounds [6 x double], ptr %11, i64 0, i64 %271
  %273 = load double, ptr %272, align 8, !tbaa !16
  %274 = fneg double %273
  %275 = load i32, ptr %8, align 4, !tbaa !9
  %276 = sext i32 %275 to i64
  %277 = getelementptr inbounds [6 x double], ptr %11, i64 0, i64 %276
  store double %274, ptr %277, align 8, !tbaa !16
  br label %278

278:                                              ; preds = %269
  %279 = load i32, ptr %8, align 4, !tbaa !9
  %280 = add nsw i32 %279, 1
  store i32 %280, ptr %8, align 4, !tbaa !9
  br label %265, !llvm.loop !26

281:                                              ; preds = %265
  br label %282

282:                                              ; preds = %281, %246
  %283 = load ptr, ptr %14, align 8, !tbaa !5
  %284 = load i32, ptr %7, align 4, !tbaa !9
  %285 = getelementptr inbounds [6 x double], ptr %11, i64 0, i64 0
  %286 = load i32, ptr %9, align 4, !tbaa !9
  %287 = call i32 @SMinsertQualityInfo(ptr noundef %283, i32 noundef %284, ptr noundef %285, i32 noundef %286)
  store i32 %287, ptr %6, align 4, !tbaa !9
  %288 = load i32, ptr %6, align 4, !tbaa !9
  %289 = icmp ne i32 %288, 0
  br i1 %289, label %290, label %293

290:                                              ; preds = %282
  %291 = load i32, ptr %6, align 4, !tbaa !9
  %292 = call i32 @SMerror(i32 noundef 1040, ptr noundef @.str.12, ptr noundef @.str.1, ptr noundef @.str.2, i32 noundef %291, i32 noundef 0, ptr noundef null)
  store i32 %292, ptr %3, align 4
  store i32 1, ptr %15, align 4
  br label %594

293:                                              ; preds = %282
  br label %294

294:                                              ; preds = %293, %231, %186, %141, %78, %37
  br label %295

295:                                              ; preds = %294, %34
  %296 = load i32, ptr %10, align 4, !tbaa !9
  %297 = icmp eq i32 %296, 3
  br i1 %297, label %298, label %588

298:                                              ; preds = %295
  %299 = load i32, ptr %7, align 4, !tbaa !9
  switch i32 %299, label %587 [
    i32 5, label %300
    i32 6, label %343
    i32 7, label %409
    i32 8, label %457
    i32 9, label %522
  ]

300:                                              ; preds = %298
  %301 = load ptr, ptr %5, align 8, !tbaa !5
  %302 = getelementptr inbounds ptr, ptr %301, i64 0
  %303 = load ptr, ptr %302, align 8, !tbaa !5
  %304 = load ptr, ptr %5, align 8, !tbaa !5
  %305 = getelementptr inbounds ptr, ptr %304, i64 1
  %306 = load ptr, ptr %305, align 8, !tbaa !5
  %307 = load ptr, ptr %5, align 8, !tbaa !5
  %308 = getelementptr inbounds ptr, ptr %307, i64 2
  %309 = load ptr, ptr %308, align 8, !tbaa !5
  %310 = load ptr, ptr %5, align 8, !tbaa !5
  %311 = getelementptr inbounds ptr, ptr %310, i64 3
  %312 = load ptr, ptr %311, align 8, !tbaa !5
  %313 = getelementptr inbounds [6 x double], ptr %11, i64 0, i64 0
  %314 = call i32 @vComputeTetVolume(ptr noundef %303, ptr noundef %306, ptr noundef %309, ptr noundef %312, ptr noundef %313, ptr noundef %9)
  store i32 %314, ptr %6, align 4, !tbaa !9
  %315 = load i32, ptr %6, align 4, !tbaa !9
  %316 = icmp ne i32 %315, 0
  br i1 %316, label %317, label %320

317:                                              ; preds = %300
  %318 = load i32, ptr %6, align 4, !tbaa !9
  %319 = call i32 @SMerror(i32 noundef 1049, ptr noundef @.str.12, ptr noundef @.str.1, ptr noundef @.str.2, i32 noundef %318, i32 noundef 0, ptr noundef null)
  store i32 %319, ptr %3, align 4
  store i32 1, ptr %15, align 4
  br label %594

320:                                              ; preds = %300
  %321 = load ptr, ptr %14, align 8, !tbaa !5
  %322 = load i32, ptr %7, align 4, !tbaa !9
  %323 = getelementptr inbounds [6 x double], ptr %11, i64 0, i64 0
  %324 = load i32, ptr %9, align 4, !tbaa !9
  %325 = call i32 @SMinsertQualityInfo(ptr noundef %321, i32 noundef %322, ptr noundef %323, i32 noundef %324)
  store i32 %325, ptr %6, align 4, !tbaa !9
  %326 = load i32, ptr %6, align 4, !tbaa !9
  %327 = icmp ne i32 %326, 0
  br i1 %327, label %328, label %331

328:                                              ; preds = %320
  %329 = load i32, ptr %6, align 4, !tbaa !9
  %330 = call i32 @SMerror(i32 noundef 1050, ptr noundef @.str.12, ptr noundef @.str.1, ptr noundef @.str.2, i32 noundef %329, i32 noundef 0, ptr noundef null)
  store i32 %330, ptr %3, align 4
  store i32 1, ptr %15, align 4
  br label %594

331:                                              ; preds = %320
  %332 = getelementptr inbounds [6 x double], ptr %11, i64 0, i64 0
  %333 = load double, ptr %332, align 16, !tbaa !16
  %334 = fcmp ole double %333, 1.000000e-15
  br i1 %334, label %335, label %342

335:                                              ; preds = %331
  %336 = load ptr, ptr %14, align 8, !tbaa !5
  %337 = getelementptr inbounds %struct.SMquality_table, ptr %336, i32 0, i32 2
  %338 = load i32, ptr %337, align 8, !tbaa !18
  %339 = add nsw i32 %338, 1
  store i32 %339, ptr %337, align 8, !tbaa !18
  %340 = load ptr, ptr %14, align 8, !tbaa !5
  %341 = getelementptr inbounds %struct.SMquality_table, ptr %340, i32 0, i32 3
  store i32 0, ptr %341, align 4, !tbaa !19
  store i32 1, ptr %12, align 4, !tbaa !9
  br label %342

342:                                              ; preds = %335, %331
  br label %587

343:                                              ; preds = %298
  %344 = load i32, ptr %12, align 4, !tbaa !9
  %345 = icmp ne i32 %344, 0
  br i1 %345, label %346, label %358

346:                                              ; preds = %343
  store i32 0, ptr %8, align 4, !tbaa !9
  br label %347

347:                                              ; preds = %354, %346
  %348 = load i32, ptr %8, align 4, !tbaa !9
  %349 = icmp slt i32 %348, 6
  br i1 %349, label %350, label %357

350:                                              ; preds = %347
  %351 = load i32, ptr %8, align 4, !tbaa !9
  %352 = sext i32 %351 to i64
  %353 = getelementptr inbounds [6 x double], ptr %11, i64 0, i64 %352
  store double 1.000000e+06, ptr %353, align 8, !tbaa !16
  br label %354

354:                                              ; preds = %350
  %355 = load i32, ptr %8, align 4, !tbaa !9
  %356 = add nsw i32 %355, 1
  store i32 %356, ptr %8, align 4, !tbaa !9
  br label %347, !llvm.loop !27

357:                                              ; preds = %347
  br label %397

358:                                              ; preds = %343
  %359 = load ptr, ptr %5, align 8, !tbaa !5
  %360 = getelementptr inbounds ptr, ptr %359, i64 0
  %361 = load ptr, ptr %360, align 8, !tbaa !5
  %362 = load ptr, ptr %5, align 8, !tbaa !5
  %363 = getelementptr inbounds ptr, ptr %362, i64 1
  %364 = load ptr, ptr %363, align 8, !tbaa !5
  %365 = load ptr, ptr %5, align 8, !tbaa !5
  %366 = getelementptr inbounds ptr, ptr %365, i64 2
  %367 = load ptr, ptr %366, align 8, !tbaa !5
  %368 = load ptr, ptr %5, align 8, !tbaa !5
  %369 = getelementptr inbounds ptr, ptr %368, i64 3
  %370 = load ptr, ptr %369, align 8, !tbaa !5
  %371 = getelementptr inbounds [6 x double], ptr %11, i64 0, i64 0
  %372 = call i32 @vDihedrals(ptr noundef %361, ptr noundef %364, ptr noundef %367, ptr noundef %370, ptr noundef %371, ptr noundef %9)
  store i32 %372, ptr %6, align 4, !tbaa !9
  %373 = load i32, ptr %6, align 4, !tbaa !9
  %374 = icmp ne i32 %373, 0
  br i1 %374, label %375, label %378

375:                                              ; preds = %358
  %376 = load i32, ptr %6, align 4, !tbaa !9
  %377 = call i32 @SMerror(i32 noundef 1061, ptr noundef @.str.12, ptr noundef @.str.1, ptr noundef @.str.2, i32 noundef %376, i32 noundef 0, ptr noundef null)
  store i32 %377, ptr %3, align 4
  store i32 1, ptr %15, align 4
  br label %594

378:                                              ; preds = %358
  store i32 0, ptr %8, align 4, !tbaa !9
  br label %379

379:                                              ; preds = %393, %378
  %380 = load i32, ptr %8, align 4, !tbaa !9
  %381 = load i32, ptr %9, align 4, !tbaa !9
  %382 = icmp slt i32 %380, %381
  br i1 %382, label %383, label %396

383:                                              ; preds = %379
  %384 = load i32, ptr %8, align 4, !tbaa !9
  %385 = sext i32 %384 to i64
  %386 = getelementptr inbounds [6 x double], ptr %11, i64 0, i64 %385
  %387 = load double, ptr %386, align 8, !tbaa !16
  %388 = fdiv double %387, 3.141590e+00
  %389 = fmul double %388, 1.800000e+02
  %390 = load i32, ptr %8, align 4, !tbaa !9
  %391 = sext i32 %390 to i64
  %392 = getelementptr inbounds [6 x double], ptr %11, i64 0, i64 %391
  store double %389, ptr %392, align 8, !tbaa !16
  br label %393

393:                                              ; preds = %383
  %394 = load i32, ptr %8, align 4, !tbaa !9
  %395 = add nsw i32 %394, 1
  store i32 %395, ptr %8, align 4, !tbaa !9
  br label %379, !llvm.loop !28

396:                                              ; preds = %379
  br label %397

397:                                              ; preds = %396, %357
  %398 = load ptr, ptr %14, align 8, !tbaa !5
  %399 = load i32, ptr %7, align 4, !tbaa !9
  %400 = getelementptr inbounds [6 x double], ptr %11, i64 0, i64 0
  %401 = load i32, ptr %9, align 4, !tbaa !9
  %402 = call i32 @SMinsertQualityInfo(ptr noundef %398, i32 noundef %399, ptr noundef %400, i32 noundef %401)
  store i32 %402, ptr %6, align 4, !tbaa !9
  %403 = load i32, ptr %6, align 4, !tbaa !9
  %404 = icmp ne i32 %403, 0
  br i1 %404, label %405, label %408

405:                                              ; preds = %397
  %406 = load i32, ptr %6, align 4, !tbaa !9
  %407 = call i32 @SMerror(i32 noundef 1064, ptr noundef @.str.12, ptr noundef @.str.1, ptr noundef @.str.2, i32 noundef %406, i32 noundef 0, ptr noundef null)
  store i32 %407, ptr %3, align 4
  store i32 1, ptr %15, align 4
  br label %594

408:                                              ; preds = %397
  br label %587

409:                                              ; preds = %298
  %410 = load i32, ptr %12, align 4, !tbaa !9
  %411 = icmp ne i32 %410, 0
  br i1 %411, label %412, label %424

412:                                              ; preds = %409
  store i32 0, ptr %8, align 4, !tbaa !9
  br label %413

413:                                              ; preds = %420, %412
  %414 = load i32, ptr %8, align 4, !tbaa !9
  %415 = icmp slt i32 %414, 6
  br i1 %415, label %416, label %423

416:                                              ; preds = %413
  %417 = load i32, ptr %8, align 4, !tbaa !9
  %418 = sext i32 %417 to i64
  %419 = getelementptr inbounds [6 x double], ptr %11, i64 0, i64 %418
  store double 1.000000e+06, ptr %419, align 8, !tbaa !16
  br label %420

420:                                              ; preds = %416
  %421 = load i32, ptr %8, align 4, !tbaa !9
  %422 = add nsw i32 %421, 1
  store i32 %422, ptr %8, align 4, !tbaa !9
  br label %413, !llvm.loop !29

423:                                              ; preds = %413
  br label %445

424:                                              ; preds = %409
  %425 = load ptr, ptr %5, align 8, !tbaa !5
  %426 = getelementptr inbounds ptr, ptr %425, i64 0
  %427 = load ptr, ptr %426, align 8, !tbaa !5
  %428 = load ptr, ptr %5, align 8, !tbaa !5
  %429 = getelementptr inbounds ptr, ptr %428, i64 1
  %430 = load ptr, ptr %429, align 8, !tbaa !5
  %431 = load ptr, ptr %5, align 8, !tbaa !5
  %432 = getelementptr inbounds ptr, ptr %431, i64 2
  %433 = load ptr, ptr %432, align 8, !tbaa !5
  %434 = load ptr, ptr %5, align 8, !tbaa !5
  %435 = getelementptr inbounds ptr, ptr %434, i64 3
  %436 = load ptr, ptr %435, align 8, !tbaa !5
  %437 = getelementptr inbounds [6 x double], ptr %11, i64 0, i64 0
  %438 = call i32 @vScaledJacobian(ptr noundef %427, ptr noundef %430, ptr noundef %433, ptr noundef %436, ptr noundef %437, ptr noundef %9)
  store i32 %438, ptr %6, align 4, !tbaa !9
  %439 = load i32, ptr %6, align 4, !tbaa !9
  %440 = icmp ne i32 %439, 0
  br i1 %440, label %441, label %444

441:                                              ; preds = %424
  %442 = load i32, ptr %6, align 4, !tbaa !9
  %443 = call i32 @SMerror(i32 noundef 1071, ptr noundef @.str.12, ptr noundef @.str.1, ptr noundef @.str.2, i32 noundef %442, i32 noundef 0, ptr noundef null)
  store i32 %443, ptr %3, align 4
  store i32 1, ptr %15, align 4
  br label %594

444:                                              ; preds = %424
  br label %445

445:                                              ; preds = %444, %423
  %446 = load ptr, ptr %14, align 8, !tbaa !5
  %447 = load i32, ptr %7, align 4, !tbaa !9
  %448 = getelementptr inbounds [6 x double], ptr %11, i64 0, i64 0
  %449 = load i32, ptr %9, align 4, !tbaa !9
  %450 = call i32 @SMinsertQualityInfo(ptr noundef %446, i32 noundef %447, ptr noundef %448, i32 noundef %449)
  store i32 %450, ptr %6, align 4, !tbaa !9
  %451 = load i32, ptr %6, align 4, !tbaa !9
  %452 = icmp ne i32 %451, 0
  br i1 %452, label %453, label %456

453:                                              ; preds = %445
  %454 = load i32, ptr %6, align 4, !tbaa !9
  %455 = call i32 @SMerror(i32 noundef 1073, ptr noundef @.str.12, ptr noundef @.str.1, ptr noundef @.str.2, i32 noundef %454, i32 noundef 0, ptr noundef null)
  store i32 %455, ptr %3, align 4
  store i32 1, ptr %15, align 4
  br label %594

456:                                              ; preds = %445
  br label %587

457:                                              ; preds = %298
  %458 = load i32, ptr %12, align 4, !tbaa !9
  %459 = icmp ne i32 %458, 0
  br i1 %459, label %460, label %472

460:                                              ; preds = %457
  store i32 0, ptr %8, align 4, !tbaa !9
  br label %461

461:                                              ; preds = %468, %460
  %462 = load i32, ptr %8, align 4, !tbaa !9
  %463 = icmp slt i32 %462, 1
  br i1 %463, label %464, label %471

464:                                              ; preds = %461
  %465 = load i32, ptr %8, align 4, !tbaa !9
  %466 = sext i32 %465 to i64
  %467 = getelementptr inbounds [6 x double], ptr %11, i64 0, i64 %466
  store double 1.000000e+06, ptr %467, align 8, !tbaa !16
  br label %468

468:                                              ; preds = %464
  %469 = load i32, ptr %8, align 4, !tbaa !9
  %470 = add nsw i32 %469, 1
  store i32 %470, ptr %8, align 4, !tbaa !9
  br label %461, !llvm.loop !30

471:                                              ; preds = %461
  br label %510

472:                                              ; preds = %457
  %473 = load ptr, ptr %5, align 8, !tbaa !5
  %474 = getelementptr inbounds ptr, ptr %473, i64 0
  %475 = load ptr, ptr %474, align 8, !tbaa !5
  %476 = load ptr, ptr %5, align 8, !tbaa !5
  %477 = getelementptr inbounds ptr, ptr %476, i64 1
  %478 = load ptr, ptr %477, align 8, !tbaa !5
  %479 = load ptr, ptr %5, align 8, !tbaa !5
  %480 = getelementptr inbounds ptr, ptr %479, i64 2
  %481 = load ptr, ptr %480, align 8, !tbaa !5
  %482 = load ptr, ptr %5, align 8, !tbaa !5
  %483 = getelementptr inbounds ptr, ptr %482, i64 3
  %484 = load ptr, ptr %483, align 8, !tbaa !5
  %485 = getelementptr inbounds [6 x double], ptr %11, i64 0, i64 0
  %486 = call i32 @vSMRSVolumeRatio(ptr noundef %475, ptr noundef %478, ptr noundef %481, ptr noundef %484, ptr noundef %485, ptr noundef %9)
  store i32 %486, ptr %6, align 4, !tbaa !9
  %487 = load i32, ptr %6, align 4, !tbaa !9
  %488 = icmp ne i32 %487, 0
  br i1 %488, label %489, label %492

489:                                              ; preds = %472
  %490 = load i32, ptr %6, align 4, !tbaa !9
  %491 = call i32 @SMerror(i32 noundef 1080, ptr noundef @.str.12, ptr noundef @.str.1, ptr noundef @.str.2, i32 noundef %490, i32 noundef 0, ptr noundef null)
  store i32 %491, ptr %3, align 4
  store i32 1, ptr %15, align 4
  br label %594

492:                                              ; preds = %472
  store i32 0, ptr %8, align 4, !tbaa !9
  br label %493

493:                                              ; preds = %506, %492
  %494 = load i32, ptr %8, align 4, !tbaa !9
  %495 = load i32, ptr %9, align 4, !tbaa !9
  %496 = icmp slt i32 %494, %495
  br i1 %496, label %497, label %509

497:                                              ; preds = %493
  %498 = load i32, ptr %8, align 4, !tbaa !9
  %499 = sext i32 %498 to i64
  %500 = getelementptr inbounds [6 x double], ptr %11, i64 0, i64 %499
  %501 = load double, ptr %500, align 8, !tbaa !16
  %502 = fneg double %501
  %503 = load i32, ptr %8, align 4, !tbaa !9
  %504 = sext i32 %503 to i64
  %505 = getelementptr inbounds [6 x double], ptr %11, i64 0, i64 %504
  store double %502, ptr %505, align 8, !tbaa !16
  br label %506

506:                                              ; preds = %497
  %507 = load i32, ptr %8, align 4, !tbaa !9
  %508 = add nsw i32 %507, 1
  store i32 %508, ptr %8, align 4, !tbaa !9
  br label %493, !llvm.loop !31

509:                                              ; preds = %493
  br label %510

510:                                              ; preds = %509, %471
  %511 = load ptr, ptr %14, align 8, !tbaa !5
  %512 = load i32, ptr %7, align 4, !tbaa !9
  %513 = getelementptr inbounds [6 x double], ptr %11, i64 0, i64 0
  %514 = load i32, ptr %9, align 4, !tbaa !9
  %515 = call i32 @SMinsertQualityInfo(ptr noundef %511, i32 noundef %512, ptr noundef %513, i32 noundef %514)
  store i32 %515, ptr %6, align 4, !tbaa !9
  %516 = load i32, ptr %6, align 4, !tbaa !9
  %517 = icmp ne i32 %516, 0
  br i1 %517, label %518, label %521

518:                                              ; preds = %510
  %519 = load i32, ptr %6, align 4, !tbaa !9
  %520 = call i32 @SMerror(i32 noundef 1083, ptr noundef @.str.12, ptr noundef @.str.1, ptr noundef @.str.2, i32 noundef %519, i32 noundef 0, ptr noundef null)
  store i32 %520, ptr %3, align 4
  store i32 1, ptr %15, align 4
  br label %594

521:                                              ; preds = %510
  br label %587

522:                                              ; preds = %298
  %523 = load i32, ptr %12, align 4, !tbaa !9
  %524 = icmp ne i32 %523, 0
  br i1 %524, label %525, label %537

525:                                              ; preds = %522
  store i32 0, ptr %8, align 4, !tbaa !9
  br label %526

526:                                              ; preds = %533, %525
  %527 = load i32, ptr %8, align 4, !tbaa !9
  %528 = icmp slt i32 %527, 1
  br i1 %528, label %529, label %536

529:                                              ; preds = %526
  %530 = load i32, ptr %8, align 4, !tbaa !9
  %531 = sext i32 %530 to i64
  %532 = getelementptr inbounds [6 x double], ptr %11, i64 0, i64 %531
  store double 1.000000e+06, ptr %532, align 8, !tbaa !16
  br label %533

533:                                              ; preds = %529
  %534 = load i32, ptr %8, align 4, !tbaa !9
  %535 = add nsw i32 %534, 1
  store i32 %535, ptr %8, align 4, !tbaa !9
  br label %526, !llvm.loop !32

536:                                              ; preds = %526
  br label %575

537:                                              ; preds = %522
  %538 = load ptr, ptr %5, align 8, !tbaa !5
  %539 = getelementptr inbounds ptr, ptr %538, i64 0
  %540 = load ptr, ptr %539, align 8, !tbaa !5
  %541 = load ptr, ptr %5, align 8, !tbaa !5
  %542 = getelementptr inbounds ptr, ptr %541, i64 1
  %543 = load ptr, ptr %542, align 8, !tbaa !5
  %544 = load ptr, ptr %5, align 8, !tbaa !5
  %545 = getelementptr inbounds ptr, ptr %544, i64 2
  %546 = load ptr, ptr %545, align 8, !tbaa !5
  %547 = load ptr, ptr %5, align 8, !tbaa !5
  %548 = getelementptr inbounds ptr, ptr %547, i64 3
  %549 = load ptr, ptr %548, align 8, !tbaa !5
  %550 = getelementptr inbounds [6 x double], ptr %11, i64 0, i64 0
  %551 = call i32 @vCondition(ptr noundef %540, ptr noundef %543, ptr noundef %546, ptr noundef %549, ptr noundef %550, ptr noundef %9)
  store i32 %551, ptr %6, align 4, !tbaa !9
  %552 = load i32, ptr %6, align 4, !tbaa !9
  %553 = icmp ne i32 %552, 0
  br i1 %553, label %554, label %557

554:                                              ; preds = %537
  %555 = load i32, ptr %6, align 4, !tbaa !9
  %556 = call i32 @SMerror(i32 noundef 1089, ptr noundef @.str.12, ptr noundef @.str.1, ptr noundef @.str.2, i32 noundef %555, i32 noundef 0, ptr noundef null)
  store i32 %556, ptr %3, align 4
  store i32 1, ptr %15, align 4
  br label %594

557:                                              ; preds = %537
  store i32 0, ptr %8, align 4, !tbaa !9
  br label %558

558:                                              ; preds = %571, %557
  %559 = load i32, ptr %8, align 4, !tbaa !9
  %560 = load i32, ptr %9, align 4, !tbaa !9
  %561 = icmp slt i32 %559, %560
  br i1 %561, label %562, label %574

562:                                              ; preds = %558
  %563 = load i32, ptr %8, align 4, !tbaa !9
  %564 = sext i32 %563 to i64
  %565 = getelementptr inbounds [6 x double], ptr %11, i64 0, i64 %564
  %566 = load double, ptr %565, align 8, !tbaa !16
  %567 = fneg double %566
  %568 = load i32, ptr %8, align 4, !tbaa !9
  %569 = sext i32 %568 to i64
  %570 = getelementptr inbounds [6 x double], ptr %11, i64 0, i64 %569
  store double %567, ptr %570, align 8, !tbaa !16
  br label %571

571:                                              ; preds = %562
  %572 = load i32, ptr %8, align 4, !tbaa !9
  %573 = add nsw i32 %572, 1
  store i32 %573, ptr %8, align 4, !tbaa !9
  br label %558, !llvm.loop !33

574:                                              ; preds = %558
  br label %575

575:                                              ; preds = %574, %536
  %576 = load ptr, ptr %14, align 8, !tbaa !5
  %577 = load i32, ptr %7, align 4, !tbaa !9
  %578 = getelementptr inbounds [6 x double], ptr %11, i64 0, i64 0
  %579 = load i32, ptr %9, align 4, !tbaa !9
  %580 = call i32 @SMinsertQualityInfo(ptr noundef %576, i32 noundef %577, ptr noundef %578, i32 noundef %579)
  store i32 %580, ptr %6, align 4, !tbaa !9
  %581 = load i32, ptr %6, align 4, !tbaa !9
  %582 = icmp ne i32 %581, 0
  br i1 %582, label %583, label %586

583:                                              ; preds = %575
  %584 = load i32, ptr %6, align 4, !tbaa !9
  %585 = call i32 @SMerror(i32 noundef 1092, ptr noundef @.str.12, ptr noundef @.str.1, ptr noundef @.str.2, i32 noundef %584, i32 noundef 0, ptr noundef null)
  store i32 %585, ptr %3, align 4
  store i32 1, ptr %15, align 4
  br label %594

586:                                              ; preds = %575
  br label %587

587:                                              ; preds = %586, %521, %456, %408, %342, %298
  br label %588

588:                                              ; preds = %587, %295
  br label %589

589:                                              ; preds = %588
  %590 = load i32, ptr %7, align 4, !tbaa !9
  %591 = add nsw i32 %590, 1
  store i32 %591, ptr %7, align 4, !tbaa !9
  br label %28, !llvm.loop !34

592:                                              ; preds = %28
  %593 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %593, ptr %3, align 4
  store i32 1, ptr %15, align 4
  br label %594

594:                                              ; preds = %592, %583, %554, %518, %489, %453, %441, %405, %375, %328, %317, %290, %261, %228, %216, %183, %171, %138, %108, %64, %53, %19
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #3
  call void @llvm.lifetime.end.p0(i64 48, ptr %11) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #3
  %595 = load i32, ptr %3, align 4
  ret i32 %595
}

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

; Function Attrs: nounwind uwtable
declare dso_local i32 @SMinsertQualityInfo(ptr noundef, i32 noundef, ptr noundef, i32 noundef) #2

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

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 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !10, i64 0}
!12 = !{!"__SMsmooth_data", !10, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48}
!13 = !{!12, !6, i64 32}
!14 = !{!15, !10, i64 4}
!15 = !{!"SMquality_table", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12, !6, i64 16}
!16 = !{!17, !17, i64 0}
!17 = !{!"double", !7, i64 0}
!18 = !{!15, !10, i64 8}
!19 = !{!15, !10, i64 12}
!20 = distinct !{!20, !21}
!21 = !{!"llvm.loop.mustprogress"}
!22 = distinct !{!22, !21}
!23 = distinct !{!23, !21}
!24 = distinct !{!24, !21}
!25 = distinct !{!25, !21}
!26 = distinct !{!26, !21}
!27 = distinct !{!27, !21}
!28 = distinct !{!28, !21}
!29 = distinct !{!29, !21}
!30 = distinct !{!30, !21}
!31 = distinct !{!31, !21}
!32 = distinct !{!32, !21}
!33 = distinct !{!33, !21}
!34 = distinct !{!34, !21}


; 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 [110 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [31 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

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

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

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

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

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

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

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

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

; Function Attrs: nounwind uwtable
define dso_local i32 @SMaccumulateQualityInformation(ptr noundef readonly %0, ptr nocapture noundef readonly %1) local_unnamed_addr #2 {
  %3 = alloca i32, align 4
  %4 = alloca [6 x double], align 16
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #3
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %4) #3
  %5 = icmp eq ptr %0, null
  br i1 %5, label %6, label %8

6:                                                ; preds = %2
  %7 = tail call i32 @SMerror(i32 noundef 988, ptr noundef nonnull @.str.12, ptr noundef nonnull @.str.1, ptr noundef nonnull @.str.2, i32 noundef 56, i32 noundef 0, ptr noundef null) #3
  br label %.loopexit252

8:                                                ; preds = %2
  %9 = getelementptr inbounds i8, ptr %0, i64 32
  %10 = load ptr, ptr %9, align 8, !tbaa !5
  %11 = getelementptr inbounds i8, ptr %10, i64 4
  %12 = load i32, ptr %11, align 4, !tbaa !11
  %13 = icmp sgt i32 %12, 0
  br i1 %13, label %.lr.ph290, label %.loopexit252

.lr.ph290:                                        ; preds = %8
  %14 = load i32, ptr %0, align 8, !tbaa !13
  %15 = getelementptr inbounds i8, ptr %1, i64 8
  %16 = getelementptr inbounds i8, ptr %1, i64 16
  %17 = getelementptr inbounds i8, ptr %1, i64 24
  %18 = getelementptr inbounds i8, ptr %10, i64 8
  %19 = getelementptr inbounds i8, ptr %10, i64 12
  switch i32 %14, label %.loopexit252 [
    i32 2, label %.lr.ph290.split.us.preheader
    i32 3, label %.lr.ph290.split.us318.preheader
  ]

.lr.ph290.split.us318.preheader:                  ; preds = %.lr.ph290
  %20 = getelementptr inbounds i8, ptr %4, i64 16
  %21 = getelementptr inbounds i8, ptr %4, i64 32
  %22 = getelementptr inbounds i8, ptr %4, i64 16
  %23 = getelementptr inbounds i8, ptr %4, i64 32
  br label %.lr.ph290.split.us318

.lr.ph290.split.us.preheader:                     ; preds = %.lr.ph290
  %24 = getelementptr inbounds i8, ptr %4, i64 16
  %25 = getelementptr inbounds i8, ptr %4, i64 16
  br label %.lr.ph290.split.us

.lr.ph290.split.us:                               ; preds = %.lr.ph290.split.us.preheader, %.thread.us
  %.0164289.us = phi i32 [ %.2166.us, %.thread.us ], [ 0, %.lr.ph290.split.us.preheader ]
  %.0167287.us = phi i32 [ %80, %.thread.us ], [ 0, %.lr.ph290.split.us.preheader ]
  switch i32 %.0167287.us, label %.thread.us [
    i32 0, label %66
    i32 1, label %54
    i32 2, label %45
    i32 3, label %37
    i32 4, label %26
  ]

26:                                               ; preds = %.lr.ph290.split.us
  %.not.us = icmp eq i32 %.0164289.us, 0
  br i1 %.not.us, label %27, label %.critedge230.us

.critedge230.us:                                  ; preds = %26
  store double 1.000000e+06, ptr %4, align 16, !tbaa !14
  %.pre418 = load i32, ptr %3, align 4, !tbaa !16
  br label %.loopexit251.us

27:                                               ; preds = %26
  %28 = load ptr, ptr %1, align 8, !tbaa !17
  %29 = load ptr, ptr %15, align 8, !tbaa !17
  %30 = load ptr, ptr %16, align 8, !tbaa !17
  %31 = call i32 @SMcondition2D(ptr noundef %28, ptr noundef %29, ptr noundef %30, ptr noundef nonnull %4, ptr noundef nonnull %3) #3
  %.not202.us = icmp eq i32 %31, 0
  br i1 %.not202.us, label %.preheader250.us, label %.split.us

.loopexit251.us:                                  ; preds = %.lr.ph.us, %middle.block502, %.preheader250.us, %.critedge230.us
  %32 = phi i32 [ %89, %.preheader250.us ], [ %.pre418, %.critedge230.us ], [ %89, %middle.block502 ], [ %89, %.lr.ph.us ]
  %33 = call i32 @SMinsertQualityInfo(ptr noundef %10, i32 noundef 4, ptr noundef nonnull %4, i32 noundef %32)
  %.not203.us = icmp eq i32 %33, 0
  br i1 %.not203.us, label %.thread.us, label %.split292.us

.lr.ph.us:                                        ; preds = %.lr.ph.us.preheader516, %.lr.ph.us
  %indvars.iv398 = phi i64 [ %indvars.iv.next399, %.lr.ph.us ], [ %indvars.iv398.ph, %.lr.ph.us.preheader516 ]
  %34 = getelementptr inbounds [6 x double], ptr %4, i64 0, i64 %indvars.iv398
  %35 = load double, ptr %34, align 8, !tbaa !14
  %36 = fneg double %35
  store double %36, ptr %34, align 8, !tbaa !14
  %indvars.iv.next399 = add nuw nsw i64 %indvars.iv398, 1
  %exitcond402.not = icmp eq i64 %indvars.iv.next399, %wide.trip.count401
  br i1 %exitcond402.not, label %.loopexit251.us, label %.lr.ph.us, !llvm.loop !18

37:                                               ; preds = %.lr.ph290.split.us
  %.not204.us = icmp eq i32 %.0164289.us, 0
  br i1 %.not204.us, label %38, label %.preheader248.us.preheader

.preheader248.us.preheader:                       ; preds = %37
  store <2 x double> <double 1.000000e+06, double 1.000000e+06>, ptr %4, align 16, !tbaa !14
  store double 1.000000e+06, ptr %24, align 16, !tbaa !14
  br label %.loopexit249.us

38:                                               ; preds = %37
  %39 = load ptr, ptr %1, align 8, !tbaa !17
  %40 = load ptr, ptr %15, align 8, !tbaa !17
  %41 = load ptr, ptr %16, align 8, !tbaa !17
  %42 = call i32 @SMcomputeScaledTriJacobians(ptr noundef %39, ptr noundef %40, ptr noundef %41, ptr noundef nonnull %4, ptr noundef nonnull %3) #3
  %.not205.us = icmp eq i32 %42, 0
  br i1 %.not205.us, label %.loopexit249.us, label %.split295.us

.loopexit249.us:                                  ; preds = %.preheader248.us.preheader, %38
  %43 = load i32, ptr %3, align 4, !tbaa !16
  %44 = call i32 @SMinsertQualityInfo(ptr noundef nonnull %10, i32 noundef 3, ptr noundef nonnull %4, i32 noundef %43)
  %.not206.us = icmp eq i32 %44, 0
  br i1 %.not206.us, label %.thread.us, label %.split298.us

45:                                               ; preds = %.lr.ph290.split.us
  %.not207.us = icmp eq i32 %.0164289.us, 0
  br i1 %.not207.us, label %46, label %.critedge.us

.critedge.us:                                     ; preds = %45
  store double 1.000000e+06, ptr %4, align 16, !tbaa !14
  br label %51

46:                                               ; preds = %45
  %47 = load ptr, ptr %1, align 8, !tbaa !17
  %48 = load ptr, ptr %15, align 8, !tbaa !17
  %49 = load ptr, ptr %16, align 8, !tbaa !17
  %50 = call i32 @SMcomputeTriJacobians(ptr noundef %47, ptr noundef %48, ptr noundef %49, ptr noundef nonnull %4, ptr noundef nonnull %3) #3
  %.not208.us = icmp eq i32 %50, 0
  br i1 %.not208.us, label %51, label %.split301.us

51:                                               ; preds = %46, %.critedge.us
  %52 = load i32, ptr %3, align 4, !tbaa !16
  %53 = call i32 @SMinsertQualityInfo(ptr noundef nonnull %10, i32 noundef 2, ptr noundef nonnull %4, i32 noundef %52)
  %.not209.us = icmp eq i32 %53, 0
  br i1 %.not209.us, label %.thread.us, label %.split304.us

54:                                               ; preds = %.lr.ph290.split.us
  %.not210.us = icmp eq i32 %.0164289.us, 0
  br i1 %.not210.us, label %55, label %.preheader246.us.preheader

.preheader246.us.preheader:                       ; preds = %54
  store <2 x double> <double 1.000000e+06, double 1.000000e+06>, ptr %4, align 16, !tbaa !14
  store double 1.000000e+06, ptr %25, align 16, !tbaa !14
  %.pre419 = load i32, ptr %3, align 4, !tbaa !16
  br label %.loopexit245.us

55:                                               ; preds = %54
  %56 = load ptr, ptr %1, align 8, !tbaa !17
  %57 = load ptr, ptr %15, align 8, !tbaa !17
  %58 = load ptr, ptr %16, align 8, !tbaa !17
  %59 = call i32 @SMcomputeTriAngles(ptr noundef %56, ptr noundef %57, ptr noundef %58, ptr noundef nonnull %4, ptr noundef nonnull %3) #3
  %.not211.us = icmp eq i32 %59, 0
  br i1 %.not211.us, label %.preheader244.us, label %.split307.us

.loopexit245.us:                                  ; preds = %.lr.ph278.us, %middle.block490, %.preheader246.us.preheader, %.preheader244.us
  %60 = phi i32 [ %.pre419, %.preheader246.us.preheader ], [ %83, %.preheader244.us ], [ %83, %middle.block490 ], [ %83, %.lr.ph278.us ]
  %61 = call i32 @SMinsertQualityInfo(ptr noundef %10, i32 noundef 1, ptr noundef nonnull %4, i32 noundef %60)
  %.not212.us = icmp eq i32 %61, 0
  br i1 %.not212.us, label %.thread.us, label %.split310.us

.lr.ph278.us:                                     ; preds = %.lr.ph278.us.preheader515, %.lr.ph278.us
  %indvars.iv411 = phi i64 [ %indvars.iv.next412, %.lr.ph278.us ], [ %indvars.iv411.ph, %.lr.ph278.us.preheader515 ]
  %62 = getelementptr inbounds [6 x double], ptr %4, i64 0, i64 %indvars.iv411
  %63 = load double, ptr %62, align 8, !tbaa !14
  %64 = fdiv double %63, 3.141590e+00
  %65 = fmul double %64, 1.800000e+02
  store double %65, ptr %62, align 8, !tbaa !14
  %indvars.iv.next412 = add nuw nsw i64 %indvars.iv411, 1
  %exitcond415.not = icmp eq i64 %indvars.iv.next412, %wide.trip.count414
  br i1 %exitcond415.not, label %.loopexit245.us, label %.lr.ph278.us, !llvm.loop !22

66:                                               ; preds = %.lr.ph290.split.us
  %67 = load ptr, ptr %1, align 8, !tbaa !17
  %68 = load ptr, ptr %15, align 8, !tbaa !17
  %69 = load ptr, ptr %16, align 8, !tbaa !17
  %70 = call i32 @SMcomputeTriArea(ptr noundef %67, ptr noundef %68, ptr noundef %69, ptr noundef nonnull %4, ptr noundef nonnull %3) #3
  %.not213.us = icmp eq i32 %70, 0
  br i1 %.not213.us, label %71, label %.split313.us

71:                                               ; preds = %66
  %72 = load i32, ptr %3, align 4, !tbaa !16
  %73 = call i32 @SMinsertQualityInfo(ptr noundef nonnull %10, i32 noundef 0, ptr noundef nonnull %4, i32 noundef %72)
  %.not214.us = icmp eq i32 %73, 0
  br i1 %.not214.us, label %74, label %.split316.us

74:                                               ; preds = %71
  %75 = load double, ptr %4, align 16, !tbaa !14
  %76 = fcmp ugt double %75, 1.000000e-15
  br i1 %76, label %.thread.us, label %77

77:                                               ; preds = %74
  %78 = load i32, ptr %18, align 8, !tbaa !23
  %79 = add nsw i32 %78, 1
  store i32 %79, ptr %18, align 8, !tbaa !23
  store i32 0, ptr %19, align 4, !tbaa !24
  br label %.thread.us

.thread.us:                                       ; preds = %.loopexit251.us, %.loopexit249.us, %.loopexit245.us, %77, %74, %51, %.lr.ph290.split.us
  %.2166.us = phi i32 [ %.0164289.us, %74 ], [ 1, %77 ], [ %.0164289.us, %51 ], [ %.0164289.us, %.lr.ph290.split.us ], [ %.0164289.us, %.loopexit245.us ], [ %.0164289.us, %.loopexit249.us ], [ %.0164289.us, %.loopexit251.us ]
  %80 = add nuw nsw i32 %.0167287.us, 1
  %81 = load i32, ptr %11, align 4, !tbaa !11
  %82 = icmp slt i32 %80, %81
  br i1 %82, label %.lr.ph290.split.us, label %.loopexit252, !llvm.loop !25

.preheader244.us:                                 ; preds = %55
  %83 = load i32, ptr %3, align 4, !tbaa !16
  %84 = icmp sgt i32 %83, 0
  br i1 %84, label %.lr.ph278.us.preheader, label %.loopexit245.us

.lr.ph278.us.preheader:                           ; preds = %.preheader244.us
  %wide.trip.count414 = zext nneg i32 %83 to i64
  %min.iters.check492 = icmp eq i32 %83, 1
  br i1 %min.iters.check492, label %.lr.ph278.us.preheader515, label %vector.ph493

.lr.ph278.us.preheader515:                        ; preds = %middle.block490, %.lr.ph278.us.preheader
  %indvars.iv411.ph = phi i64 [ 0, %.lr.ph278.us.preheader ], [ %n.vec495, %middle.block490 ]
  br label %.lr.ph278.us

vector.ph493:                                     ; preds = %.lr.ph278.us.preheader
  %n.vec495 = and i64 %wide.trip.count414, 2147483646
  br label %vector.body497

vector.body497:                                   ; preds = %vector.body497, %vector.ph493
  %index498 = phi i64 [ 0, %vector.ph493 ], [ %index.next500, %vector.body497 ]
  %85 = getelementptr inbounds [6 x double], ptr %4, i64 0, i64 %index498
  %wide.load499 = load <2 x double>, ptr %85, align 16, !tbaa !14
  %86 = fdiv <2 x double> %wide.load499, <double 3.141590e+00, double 3.141590e+00>
  %87 = fmul <2 x double> %86, <double 1.800000e+02, double 1.800000e+02>
  store <2 x double> %87, ptr %85, align 16, !tbaa !14
  %index.next500 = add nuw i64 %index498, 2
  %88 = icmp eq i64 %index.next500, %n.vec495
  br i1 %88, label %middle.block490, label %vector.body497, !llvm.loop !26

middle.block490:                                  ; preds = %vector.body497
  %cmp.n501 = icmp eq i64 %n.vec495, %wide.trip.count414
  br i1 %cmp.n501, label %.loopexit245.us, label %.lr.ph278.us.preheader515

.preheader250.us:                                 ; preds = %27
  %89 = load i32, ptr %3, align 4, !tbaa !16
  %90 = icmp sgt i32 %89, 0
  br i1 %90, label %.lr.ph.us.preheader, label %.loopexit251.us

.lr.ph.us.preheader:                              ; preds = %.preheader250.us
  %wide.trip.count401 = zext nneg i32 %89 to i64
  %min.iters.check504 = icmp ult i32 %89, 4
  br i1 %min.iters.check504, label %.lr.ph.us.preheader516, label %vector.ph505

.lr.ph.us.preheader516:                           ; preds = %middle.block502, %.lr.ph.us.preheader
  %indvars.iv398.ph = phi i64 [ 0, %.lr.ph.us.preheader ], [ %n.vec507, %middle.block502 ]
  br label %.lr.ph.us

vector.ph505:                                     ; preds = %.lr.ph.us.preheader
  %n.vec507 = and i64 %wide.trip.count401, 2147483644
  br label %vector.body509

vector.body509:                                   ; preds = %vector.body509, %vector.ph505
  %index510 = phi i64 [ 0, %vector.ph505 ], [ %index.next513, %vector.body509 ]
  %91 = getelementptr inbounds [6 x double], ptr %4, i64 0, i64 %index510
  %92 = getelementptr inbounds i8, ptr %91, i64 16
  %wide.load511 = load <2 x double>, ptr %91, align 16, !tbaa !14
  %wide.load512 = load <2 x double>, ptr %92, align 16, !tbaa !14
  %93 = fneg <2 x double> %wide.load511
  %94 = fneg <2 x double> %wide.load512
  store <2 x double> %93, ptr %91, align 16, !tbaa !14
  store <2 x double> %94, ptr %92, align 16, !tbaa !14
  %index.next513 = add nuw i64 %index510, 4
  %95 = icmp eq i64 %index.next513, %n.vec507
  br i1 %95, label %middle.block502, label %vector.body509, !llvm.loop !27

middle.block502:                                  ; preds = %vector.body509
  %cmp.n514 = icmp eq i64 %n.vec507, %wide.trip.count401
  br i1 %cmp.n514, label %.loopexit251.us, label %.lr.ph.us.preheader516

.lr.ph290.split.us318:                            ; preds = %.lr.ph290.split.us318.preheader, %.thread.us321
  %.0164289.us319 = phi i32 [ %.2166.us323, %.thread.us321 ], [ 0, %.lr.ph290.split.us318.preheader ]
  %.0167287.us320 = phi i32 [ %157, %.thread.us321 ], [ 0, %.lr.ph290.split.us318.preheader ]
  switch i32 %.0167287.us320, label %.thread.us321 [
    i32 5, label %142
    i32 6, label %129
    i32 7, label %120
    i32 8, label %108
    i32 9, label %96
  ]

96:                                               ; preds = %.lr.ph290.split.us318
  %.not215.us = icmp eq i32 %.0164289.us319, 0
  br i1 %.not215.us, label %97, label %.critedge234.us

.critedge234.us:                                  ; preds = %96
  store double 1.000000e+06, ptr %4, align 16, !tbaa !14
  %.pre = load i32, ptr %3, align 4, !tbaa !16
  br label %.loopexit243.us

97:                                               ; preds = %96
  %98 = load ptr, ptr %1, align 8, !tbaa !17
  %99 = load ptr, ptr %15, align 8, !tbaa !17
  %100 = load ptr, ptr %16, align 8, !tbaa !17
  %101 = load ptr, ptr %17, align 8, !tbaa !17
  %102 = call i32 @vCondition(ptr noundef %98, ptr noundef %99, ptr noundef %100, ptr noundef %101, ptr noundef nonnull %4, ptr noundef nonnull %3) #3
  %.not216.us = icmp eq i32 %102, 0
  br i1 %.not216.us, label %.preheader242.us, label %.split325.us

.loopexit243.us:                                  ; preds = %.lr.ph280.us, %middle.block477, %.preheader242.us, %.critedge234.us
  %103 = phi i32 [ %173, %.preheader242.us ], [ %.pre, %.critedge234.us ], [ %173, %middle.block477 ], [ %173, %.lr.ph280.us ]
  %104 = call i32 @SMinsertQualityInfo(ptr noundef %10, i32 noundef 9, ptr noundef nonnull %4, i32 noundef %103)
  %.not217.us = icmp eq i32 %104, 0
  br i1 %.not217.us, label %.thread.us321, label %.split328.us

.lr.ph280.us:                                     ; preds = %.lr.ph280.us.preheader529, %.lr.ph280.us
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph280.us ], [ %indvars.iv.ph, %.lr.ph280.us.preheader529 ]
  %105 = getelementptr inbounds [6 x double], ptr %4, i64 0, i64 %indvars.iv
  %106 = load double, ptr %105, align 8, !tbaa !14
  %107 = fneg double %106
  store double %107, ptr %105, align 8, !tbaa !14
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond.not, label %.loopexit243.us, label %.lr.ph280.us, !llvm.loop !28

108:                                              ; preds = %.lr.ph290.split.us318
  %.not218.us = icmp eq i32 %.0164289.us319, 0
  br i1 %.not218.us, label %109, label %.critedge232.us

.critedge232.us:                                  ; preds = %108
  store double 1.000000e+06, ptr %4, align 16, !tbaa !14
  %.pre416 = load i32, ptr %3, align 4, !tbaa !16
  br label %.loopexit241.us

109:                                              ; preds = %108
  %110 = load ptr, ptr %1, align 8, !tbaa !17
  %111 = load ptr, ptr %15, align 8, !tbaa !17
  %112 = load ptr, ptr %16, align 8, !tbaa !17
  %113 = load ptr, ptr %17, align 8, !tbaa !17
  %114 = call i32 @vSMRSVolumeRatio(ptr noundef %110, ptr noundef %111, ptr noundef %112, ptr noundef %113, ptr noundef nonnull %4, ptr noundef nonnull %3) #3
  %.not219.us = icmp eq i32 %114, 0
  br i1 %.not219.us, label %.preheader240.us, label %.split331.us

.loopexit241.us:                                  ; preds = %.lr.ph282.us, %middle.block464, %.preheader240.us, %.critedge232.us
  %115 = phi i32 [ %166, %.preheader240.us ], [ %.pre416, %.critedge232.us ], [ %166, %middle.block464 ], [ %166, %.lr.ph282.us ]
  %116 = call i32 @SMinsertQualityInfo(ptr noundef %10, i32 noundef 8, ptr noundef nonnull %4, i32 noundef %115)
  %.not220.us = icmp eq i32 %116, 0
  br i1 %.not220.us, label %.thread.us321, label %.split334.us

.lr.ph282.us:                                     ; preds = %.lr.ph282.us.preheader528, %.lr.ph282.us
  %indvars.iv380 = phi i64 [ %indvars.iv.next381, %.lr.ph282.us ], [ %indvars.iv380.ph, %.lr.ph282.us.preheader528 ]
  %117 = getelementptr inbounds [6 x double], ptr %4, i64 0, i64 %indvars.iv380
  %118 = load double, ptr %117, align 8, !tbaa !14
  %119 = fneg double %118
  store double %119, ptr %117, align 8, !tbaa !14
  %indvars.iv.next381 = add nuw nsw i64 %indvars.iv380, 1
  %exitcond384.not = icmp eq i64 %indvars.iv.next381, %wide.trip.count383
  br i1 %exitcond384.not, label %.loopexit241.us, label %.lr.ph282.us, !llvm.loop !29

120:                                              ; preds = %.lr.ph290.split.us318
  %.not221.us = icmp eq i32 %.0164289.us319, 0
  br i1 %.not221.us, label %121, label %.preheader238.us.preheader

.preheader238.us.preheader:                       ; preds = %120
  store <2 x double> <double 1.000000e+06, double 1.000000e+06>, ptr %4, align 16, !tbaa !14
  store <2 x double> <double 1.000000e+06, double 1.000000e+06>, ptr %20, align 16, !tbaa !14
  store <2 x double> <double 1.000000e+06, double 1.000000e+06>, ptr %21, align 16, !tbaa !14
  br label %.loopexit239.us

121:                                              ; preds = %120
  %122 = load ptr, ptr %1, align 8, !tbaa !17
  %123 = load ptr, ptr %15, align 8, !tbaa !17
  %124 = load ptr, ptr %16, align 8, !tbaa !17
  %125 = load ptr, ptr %17, align 8, !tbaa !17
  %126 = call i32 @vScaledJacobian(ptr noundef %122, ptr noundef %123, ptr noundef %124, ptr noundef %125, ptr noundef nonnull %4, ptr noundef nonnull %3) #3
  %.not222.us = icmp eq i32 %126, 0
  br i1 %.not222.us, label %.loopexit239.us, label %.split337.us

.loopexit239.us:                                  ; preds = %.preheader238.us.preheader, %121
  %127 = load i32, ptr %3, align 4, !tbaa !16
  %128 = call i32 @SMinsertQualityInfo(ptr noundef nonnull %10, i32 noundef 7, ptr noundef nonnull %4, i32 noundef %127)
  %.not223.us = icmp eq i32 %128, 0
  br i1 %.not223.us, label %.thread.us321, label %.split340.us

129:                                              ; preds = %.lr.ph290.split.us318
  %.not224.us = icmp eq i32 %.0164289.us319, 0
  br i1 %.not224.us, label %130, label %.preheader236.us.preheader

.preheader236.us.preheader:                       ; preds = %129
  store <2 x double> <double 1.000000e+06, double 1.000000e+06>, ptr %4, align 16, !tbaa !14
  store <2 x double> <double 1.000000e+06, double 1.000000e+06>, ptr %22, align 16, !tbaa !14
  store <2 x double> <double 1.000000e+06, double 1.000000e+06>, ptr %23, align 16, !tbaa !14
  %.pre417 = load i32, ptr %3, align 4, !tbaa !16
  br label %.loopexit.us

130:                                              ; preds = %129
  %131 = load ptr, ptr %1, align 8, !tbaa !17
  %132 = load ptr, ptr %15, align 8, !tbaa !17
  %133 = load ptr, ptr %16, align 8, !tbaa !17
  %134 = load ptr, ptr %17, align 8, !tbaa !17
  %135 = call i32 @vDihedrals(ptr noundef %131, ptr noundef %132, ptr noundef %133, ptr noundef %134, ptr noundef nonnull %4, ptr noundef nonnull %3) #3
  %.not225.us = icmp eq i32 %135, 0
  br i1 %.not225.us, label %.preheader.us, label %.split343.us

.loopexit.us:                                     ; preds = %.lr.ph286.us, %middle.block, %.preheader236.us.preheader, %.preheader.us
  %136 = phi i32 [ %.pre417, %.preheader236.us.preheader ], [ %160, %.preheader.us ], [ %160, %middle.block ], [ %160, %.lr.ph286.us ]
  %137 = call i32 @SMinsertQualityInfo(ptr noundef %10, i32 noundef 6, ptr noundef nonnull %4, i32 noundef %136)
  %.not226.us = icmp eq i32 %137, 0
  br i1 %.not226.us, label %.thread.us321, label %.split346.us

.lr.ph286.us:                                     ; preds = %.lr.ph286.us.preheader527, %.lr.ph286.us
  %indvars.iv393 = phi i64 [ %indvars.iv.next394, %.lr.ph286.us ], [ %indvars.iv393.ph, %.lr.ph286.us.preheader527 ]
  %138 = getelementptr inbounds [6 x double], ptr %4, i64 0, i64 %indvars.iv393
  %139 = load double, ptr %138, align 8, !tbaa !14
  %140 = fdiv double %139, 3.141590e+00
  %141 = fmul double %140, 1.800000e+02
  store double %141, ptr %138, align 8, !tbaa !14
  %indvars.iv.next394 = add nuw nsw i64 %indvars.iv393, 1
  %exitcond397.not = icmp eq i64 %indvars.iv.next394, %wide.trip.count396
  br i1 %exitcond397.not, label %.loopexit.us, label %.lr.ph286.us, !llvm.loop !30

142:                                              ; preds = %.lr.ph290.split.us318
  %143 = load ptr, ptr %1, align 8, !tbaa !17
  %144 = load ptr, ptr %15, align 8, !tbaa !17
  %145 = load ptr, ptr %16, align 8, !tbaa !17
  %146 = load ptr, ptr %17, align 8, !tbaa !17
  %147 = call i32 @vComputeTetVolume(ptr noundef %143, ptr noundef %144, ptr noundef %145, ptr noundef %146, ptr noundef nonnull %4, ptr noundef nonnull %3) #3
  %.not227.us = icmp eq i32 %147, 0
  br i1 %.not227.us, label %148, label %.split349.us

148:                                              ; preds = %142
  %149 = load i32, ptr %3, align 4, !tbaa !16
  %150 = call i32 @SMinsertQualityInfo(ptr noundef nonnull %10, i32 noundef 5, ptr noundef nonnull %4, i32 noundef %149)
  %.not228.us = icmp eq i32 %150, 0
  br i1 %.not228.us, label %151, label %.split352.us

151:                                              ; preds = %148
  %152 = load double, ptr %4, align 16, !tbaa !14
  %153 = fcmp ugt double %152, 1.000000e-15
  br i1 %153, label %.thread.us321, label %154

154:                                              ; preds = %151
  %155 = load i32, ptr %18, align 8, !tbaa !23
  %156 = add nsw i32 %155, 1
  store i32 %156, ptr %18, align 8, !tbaa !23
  store i32 0, ptr %19, align 4, !tbaa !24
  br label %.thread.us321

.thread.us321:                                    ; preds = %154, %151, %.loopexit.us, %.loopexit239.us, %.loopexit241.us, %.loopexit243.us, %.lr.ph290.split.us318
  %.2166.us323 = phi i32 [ %.0164289.us319, %.lr.ph290.split.us318 ], [ %.0164289.us319, %.loopexit243.us ], [ %.0164289.us319, %.loopexit241.us ], [ %.0164289.us319, %.loopexit239.us ], [ %.0164289.us319, %.loopexit.us ], [ 1, %154 ], [ %.0164289.us319, %151 ]
  %157 = add nuw nsw i32 %.0167287.us320, 1
  %158 = load i32, ptr %11, align 4, !tbaa !11
  %159 = icmp slt i32 %157, %158
  br i1 %159, label %.lr.ph290.split.us318, label %.loopexit252, !llvm.loop !25

.preheader.us:                                    ; preds = %130
  %160 = load i32, ptr %3, align 4, !tbaa !16
  %161 = icmp sgt i32 %160, 0
  br i1 %161, label %.lr.ph286.us.preheader, label %.loopexit.us

.lr.ph286.us.preheader:                           ; preds = %.preheader.us
  %wide.trip.count396 = zext nneg i32 %160 to i64
  %min.iters.check = icmp eq i32 %160, 1
  br i1 %min.iters.check, label %.lr.ph286.us.preheader527, label %vector.ph

.lr.ph286.us.preheader527:                        ; preds = %middle.block, %.lr.ph286.us.preheader
  %indvars.iv393.ph = phi i64 [ 0, %.lr.ph286.us.preheader ], [ %n.vec, %middle.block ]
  br label %.lr.ph286.us

vector.ph:                                        ; preds = %.lr.ph286.us.preheader
  %n.vec = and i64 %wide.trip.count396, 2147483646
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %162 = getelementptr inbounds [6 x double], ptr %4, i64 0, i64 %index
  %wide.load = load <2 x double>, ptr %162, align 16, !tbaa !14
  %163 = fdiv <2 x double> %wide.load, <double 3.141590e+00, double 3.141590e+00>
  %164 = fmul <2 x double> %163, <double 1.800000e+02, double 1.800000e+02>
  store <2 x double> %164, ptr %162, align 16, !tbaa !14
  %index.next = add nuw i64 %index, 2
  %165 = icmp eq i64 %index.next, %n.vec
  br i1 %165, label %middle.block, label %vector.body, !llvm.loop !31

middle.block:                                     ; preds = %vector.body
  %cmp.n = icmp eq i64 %n.vec, %wide.trip.count396
  br i1 %cmp.n, label %.loopexit.us, label %.lr.ph286.us.preheader527

.preheader240.us:                                 ; preds = %109
  %166 = load i32, ptr %3, align 4, !tbaa !16
  %167 = icmp sgt i32 %166, 0
  br i1 %167, label %.lr.ph282.us.preheader, label %.loopexit241.us

.lr.ph282.us.preheader:                           ; preds = %.preheader240.us
  %wide.trip.count383 = zext nneg i32 %166 to i64
  %min.iters.check466 = icmp ult i32 %166, 4
  br i1 %min.iters.check466, label %.lr.ph282.us.preheader528, label %vector.ph467

.lr.ph282.us.preheader528:                        ; preds = %middle.block464, %.lr.ph282.us.preheader
  %indvars.iv380.ph = phi i64 [ 0, %.lr.ph282.us.preheader ], [ %n.vec469, %middle.block464 ]
  br label %.lr.ph282.us

vector.ph467:                                     ; preds = %.lr.ph282.us.preheader
  %n.vec469 = and i64 %wide.trip.count383, 2147483644
  br label %vector.body471

vector.body471:                                   ; preds = %vector.body471, %vector.ph467
  %index472 = phi i64 [ 0, %vector.ph467 ], [ %index.next475, %vector.body471 ]
  %168 = getelementptr inbounds [6 x double], ptr %4, i64 0, i64 %index472
  %169 = getelementptr inbounds i8, ptr %168, i64 16
  %wide.load473 = load <2 x double>, ptr %168, align 16, !tbaa !14
  %wide.load474 = load <2 x double>, ptr %169, align 16, !tbaa !14
  %170 = fneg <2 x double> %wide.load473
  %171 = fneg <2 x double> %wide.load474
  store <2 x double> %170, ptr %168, align 16, !tbaa !14
  store <2 x double> %171, ptr %169, align 16, !tbaa !14
  %index.next475 = add nuw i64 %index472, 4
  %172 = icmp eq i64 %index.next475, %n.vec469
  br i1 %172, label %middle.block464, label %vector.body471, !llvm.loop !32

middle.block464:                                  ; preds = %vector.body471
  %cmp.n476 = icmp eq i64 %n.vec469, %wide.trip.count383
  br i1 %cmp.n476, label %.loopexit241.us, label %.lr.ph282.us.preheader528

.preheader242.us:                                 ; preds = %97
  %173 = load i32, ptr %3, align 4, !tbaa !16
  %174 = icmp sgt i32 %173, 0
  br i1 %174, label %.lr.ph280.us.preheader, label %.loopexit243.us

.lr.ph280.us.preheader:                           ; preds = %.preheader242.us
  %wide.trip.count = zext nneg i32 %173 to i64
  %min.iters.check479 = icmp ult i32 %173, 4
  br i1 %min.iters.check479, label %.lr.ph280.us.preheader529, label %vector.ph480

.lr.ph280.us.preheader529:                        ; preds = %middle.block477, %.lr.ph280.us.preheader
  %indvars.iv.ph = phi i64 [ 0, %.lr.ph280.us.preheader ], [ %n.vec482, %middle.block477 ]
  br label %.lr.ph280.us

vector.ph480:                                     ; preds = %.lr.ph280.us.preheader
  %n.vec482 = and i64 %wide.trip.count, 2147483644
  br label %vector.body484

vector.body484:                                   ; preds = %vector.body484, %vector.ph480
  %index485 = phi i64 [ 0, %vector.ph480 ], [ %index.next488, %vector.body484 ]
  %175 = getelementptr inbounds [6 x double], ptr %4, i64 0, i64 %index485
  %176 = getelementptr inbounds i8, ptr %175, i64 16
  %wide.load486 = load <2 x double>, ptr %175, align 16, !tbaa !14
  %wide.load487 = load <2 x double>, ptr %176, align 16, !tbaa !14
  %177 = fneg <2 x double> %wide.load486
  %178 = fneg <2 x double> %wide.load487
  store <2 x double> %177, ptr %175, align 16, !tbaa !14
  store <2 x double> %178, ptr %176, align 16, !tbaa !14
  %index.next488 = add nuw i64 %index485, 4
  %179 = icmp eq i64 %index.next488, %n.vec482
  br i1 %179, label %middle.block477, label %vector.body484, !llvm.loop !33

middle.block477:                                  ; preds = %vector.body484
  %cmp.n489 = icmp eq i64 %n.vec482, %wide.trip.count
  br i1 %cmp.n489, label %.loopexit243.us, label %.lr.ph280.us.preheader529

.split313.us:                                     ; preds = %66
  %180 = call i32 @SMerror(i32 noundef 997, ptr noundef nonnull @.str.12, ptr noundef nonnull @.str.1, ptr noundef nonnull @.str.2, i32 noundef %70, i32 noundef 0, ptr noundef null) #3
  br label %.loopexit252

.split316.us:                                     ; preds = %71
  %181 = call i32 @SMerror(i32 noundef 998, ptr noundef nonnull @.str.12, ptr noundef nonnull @.str.1, ptr noundef nonnull @.str.2, i32 noundef %73, i32 noundef 0, ptr noundef null) #3
  br label %.loopexit252

.split307.us:                                     ; preds = %55
  %182 = call i32 @SMerror(i32 noundef 1010, ptr noundef nonnull @.str.12, ptr noundef nonnull @.str.1, ptr noundef nonnull @.str.2, i32 noundef %59, i32 noundef 0, ptr noundef null) #3
  br label %.loopexit252

.split310.us:                                     ; preds = %.loopexit245.us
  %183 = call i32 @SMerror(i32 noundef 1013, ptr noundef nonnull @.str.12, ptr noundef nonnull @.str.1, ptr noundef nonnull @.str.2, i32 noundef %61, i32 noundef 0, ptr noundef null) #3
  br label %.loopexit252

.split301.us:                                     ; preds = %46
  %184 = call i32 @SMerror(i32 noundef 1020, ptr noundef nonnull @.str.12, ptr noundef nonnull @.str.1, ptr noundef nonnull @.str.2, i32 noundef %50, i32 noundef 0, ptr noundef null) #3
  br label %.loopexit252

.split304.us:                                     ; preds = %51
  %185 = call i32 @SMerror(i32 noundef 1022, ptr noundef nonnull @.str.12, ptr noundef nonnull @.str.1, ptr noundef nonnull @.str.2, i32 noundef %53, i32 noundef 0, ptr noundef null) #3
  br label %.loopexit252

.split295.us:                                     ; preds = %38
  %186 = call i32 @SMerror(i32 noundef 1029, ptr noundef nonnull @.str.12, ptr noundef nonnull @.str.1, ptr noundef nonnull @.str.2, i32 noundef %42, i32 noundef 0, ptr noundef null) #3
  br label %.loopexit252

.split298.us:                                     ; preds = %.loopexit249.us
  %187 = call i32 @SMerror(i32 noundef 1031, ptr noundef nonnull @.str.12, ptr noundef nonnull @.str.1, ptr noundef nonnull @.str.2, i32 noundef %44, i32 noundef 0, ptr noundef null) #3
  br label %.loopexit252

.split.us:                                        ; preds = %27
  %188 = call i32 @SMerror(i32 noundef 1037, ptr noundef nonnull @.str.12, ptr noundef nonnull @.str.1, ptr noundef nonnull @.str.2, i32 noundef %31, i32 noundef 0, ptr noundef null) #3
  br label %.loopexit252

.split292.us:                                     ; preds = %.loopexit251.us
  %189 = call i32 @SMerror(i32 noundef 1040, ptr noundef nonnull @.str.12, ptr noundef nonnull @.str.1, ptr noundef nonnull @.str.2, i32 noundef %33, i32 noundef 0, ptr noundef null) #3
  br label %.loopexit252

.split349.us:                                     ; preds = %142
  %190 = call i32 @SMerror(i32 noundef 1049, ptr noundef nonnull @.str.12, ptr noundef nonnull @.str.1, ptr noundef nonnull @.str.2, i32 noundef %147, i32 noundef 0, ptr noundef null) #3
  br label %.loopexit252

.split352.us:                                     ; preds = %148
  %191 = call i32 @SMerror(i32 noundef 1050, ptr noundef nonnull @.str.12, ptr noundef nonnull @.str.1, ptr noundef nonnull @.str.2, i32 noundef %150, i32 noundef 0, ptr noundef null) #3
  br label %.loopexit252

.split343.us:                                     ; preds = %130
  %192 = call i32 @SMerror(i32 noundef 1061, ptr noundef nonnull @.str.12, ptr noundef nonnull @.str.1, ptr noundef nonnull @.str.2, i32 noundef %135, i32 noundef 0, ptr noundef null) #3
  br label %.loopexit252

.split346.us:                                     ; preds = %.loopexit.us
  %193 = call i32 @SMerror(i32 noundef 1064, ptr noundef nonnull @.str.12, ptr noundef nonnull @.str.1, ptr noundef nonnull @.str.2, i32 noundef %137, i32 noundef 0, ptr noundef null) #3
  br label %.loopexit252

.split337.us:                                     ; preds = %121
  %194 = call i32 @SMerror(i32 noundef 1071, ptr noundef nonnull @.str.12, ptr noundef nonnull @.str.1, ptr noundef nonnull @.str.2, i32 noundef %126, i32 noundef 0, ptr noundef null) #3
  br label %.loopexit252

.split340.us:                                     ; preds = %.loopexit239.us
  %195 = call i32 @SMerror(i32 noundef 1073, ptr noundef nonnull @.str.12, ptr noundef nonnull @.str.1, ptr noundef nonnull @.str.2, i32 noundef %128, i32 noundef 0, ptr noundef null) #3
  br label %.loopexit252

.split331.us:                                     ; preds = %109
  %196 = call i32 @SMerror(i32 noundef 1080, ptr noundef nonnull @.str.12, ptr noundef nonnull @.str.1, ptr noundef nonnull @.str.2, i32 noundef %114, i32 noundef 0, ptr noundef null) #3
  br label %.loopexit252

.split334.us:                                     ; preds = %.loopexit241.us
  %197 = call i32 @SMerror(i32 noundef 1083, ptr noundef nonnull @.str.12, ptr noundef nonnull @.str.1, ptr noundef nonnull @.str.2, i32 noundef %116, i32 noundef 0, ptr noundef null) #3
  br label %.loopexit252

.split325.us:                                     ; preds = %97
  %198 = call i32 @SMerror(i32 noundef 1089, ptr noundef nonnull @.str.12, ptr noundef nonnull @.str.1, ptr noundef nonnull @.str.2, i32 noundef %102, i32 noundef 0, ptr noundef null) #3
  br label %.loopexit252

.split328.us:                                     ; preds = %.loopexit243.us
  %199 = call i32 @SMerror(i32 noundef 1092, ptr noundef nonnull @.str.12, ptr noundef nonnull @.str.1, ptr noundef nonnull @.str.2, i32 noundef %104, i32 noundef 0, ptr noundef null) #3
  br label %.loopexit252

.loopexit252:                                     ; preds = %.thread.us321, %.thread.us, %.lr.ph290, %8, %.split328.us, %.split325.us, %.split334.us, %.split331.us, %.split340.us, %.split337.us, %.split346.us, %.split343.us, %.split352.us, %.split349.us, %.split292.us, %.split.us, %.split298.us, %.split295.us, %.split304.us, %.split301.us, %.split310.us, %.split307.us, %.split316.us, %.split313.us, %6
  %.0 = phi i32 [ %7, %6 ], [ %199, %.split328.us ], [ %198, %.split325.us ], [ %197, %.split334.us ], [ %196, %.split331.us ], [ %195, %.split340.us ], [ %194, %.split337.us ], [ %193, %.split346.us ], [ %192, %.split343.us ], [ %190, %.split349.us ], [ %191, %.split352.us ], [ %189, %.split292.us ], [ %188, %.split.us ], [ %187, %.split298.us ], [ %186, %.split295.us ], [ %185, %.split304.us ], [ %184, %.split301.us ], [ %183, %.split310.us ], [ %182, %.split307.us ], [ %180, %.split313.us ], [ %181, %.split316.us ], [ 0, %8 ], [ 0, %.lr.ph290 ], [ 0, %.thread.us ], [ 0, %.thread.us321 ]
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %4) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #3
  ret i32 %.0
}

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

; Function Attrs: nounwind uwtable
declare dso_local i32 @SMinsertQualityInfo(ptr noundef, i32 noundef, ptr noundef, i32 noundef) local_unnamed_addr #2

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

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 = { 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, !10, i64 32}
!6 = !{!"__SMsmooth_data", !7, i64 0, !10, i64 8, !10, i64 16, !10, i64 24, !10, i64 32, !10, i64 40, !10, i64 48}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"any pointer", !8, i64 0}
!11 = !{!12, !7, i64 4}
!12 = !{!"SMquality_table", !7, i64 0, !7, i64 4, !7, i64 8, !7, i64 12, !10, i64 16}
!13 = !{!6, !7, i64 0}
!14 = !{!15, !15, i64 0}
!15 = !{!"double", !8, i64 0}
!16 = !{!7, !7, i64 0}
!17 = !{!10, !10, i64 0}
!18 = distinct !{!18, !19, !20, !21}
!19 = !{!"llvm.loop.mustprogress"}
!20 = !{!"llvm.loop.unroll.runtime.disable"}
!21 = !{!"llvm.loop.isvectorized", i32 1}
!22 = distinct !{!22, !19, !20, !21}
!23 = !{!12, !7, i64 8}
!24 = !{!12, !7, i64 12}
!25 = distinct !{!25, !19}
!26 = distinct !{!26, !19, !21, !20}
!27 = distinct !{!27, !19, !21, !20}
!28 = distinct !{!28, !19, !20, !21}
!29 = distinct !{!29, !19, !20, !21}
!30 = distinct !{!30, !19, !20, !21}
!31 = distinct !{!31, !19, !21, !20}
!32 = distinct !{!32, !19, !21, !20}
!33 = distinct !{!33, !19, !21, !20}


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