; 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.__SMparam = type { i32, i32, i32, double, double, double, double, i32, i32, i32, double, double, ptr, ptr, ptr, 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.8 = external hidden unnamed_addr constant [20 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 @SMsetSmoothFunction(ptr noundef %0, i32 noundef %1) #2 {
  %3 = alloca i32, align 4
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  store ptr %0, ptr %4, align 8, !tbaa !5
  store i32 %1, ptr %5, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #3
  %11 = load ptr, ptr %4, align 8, !tbaa !5
  store ptr %11, ptr %7, align 8, !tbaa !5
  %12 = load ptr, ptr %7, align 8, !tbaa !5
  %13 = icmp eq ptr %12, null
  br i1 %13, label %14, label %16

14:                                               ; preds = %2
  %15 = call i32 @SMerror(i32 noundef 360, ptr noundef @.str.8, ptr noundef @.str.1, ptr noundef @.str.2, i32 noundef 56, i32 noundef 0, ptr noundef null)
  store i32 %15, ptr %3, align 4
  store i32 1, ptr %10, align 4
  br label %212

16:                                               ; preds = %2
  %17 = load ptr, ptr %7, align 8, !tbaa !5
  %18 = getelementptr inbounds %struct.__SMsmooth_data, ptr %17, i32 0, i32 2
  %19 = load ptr, ptr %18, align 8, !tbaa !11
  store ptr %19, ptr %8, align 8, !tbaa !5
  %20 = load i32, ptr %5, align 4, !tbaa !9
  %21 = load ptr, ptr %8, align 8, !tbaa !5
  %22 = getelementptr inbounds %struct.__SMparam, ptr %21, i32 0, i32 7
  store i32 %20, ptr %22, align 8, !tbaa !13
  %23 = load ptr, ptr %7, align 8, !tbaa !5
  %24 = getelementptr inbounds %struct.__SMsmooth_data, ptr %23, i32 0, i32 0
  %25 = load i32, ptr %24, align 8, !tbaa !16
  store i32 %25, ptr %9, align 4, !tbaa !9
  %26 = load i32, ptr %9, align 4, !tbaa !9
  %27 = icmp eq i32 %26, 2
  br i1 %27, label %28, label %31

28:                                               ; preds = %16
  %29 = load ptr, ptr %8, align 8, !tbaa !5
  %30 = getelementptr inbounds %struct.__SMparam, ptr %29, i32 0, i32 9
  store i32 3, ptr %30, align 8, !tbaa !17
  br label %34

31:                                               ; preds = %16
  %32 = load ptr, ptr %8, align 8, !tbaa !5
  %33 = getelementptr inbounds %struct.__SMparam, ptr %32, i32 0, i32 9
  store i32 6, ptr %33, align 8, !tbaa !17
  br label %34

34:                                               ; preds = %31, %28
  %35 = load ptr, ptr %8, align 8, !tbaa !5
  %36 = getelementptr inbounds %struct.__SMparam, ptr %35, i32 0, i32 12
  store ptr @SMcomputeTriSines, ptr %36, align 8, !tbaa !18
  %37 = load ptr, ptr %8, align 8, !tbaa !5
  %38 = getelementptr inbounds %struct.__SMparam, ptr %37, i32 0, i32 13
  store ptr @SMcomputeSineGradients, ptr %38, align 8, !tbaa !19
  %39 = load ptr, ptr %8, align 8, !tbaa !5
  %40 = getelementptr inbounds %struct.__SMparam, ptr %39, i32 0, i32 14
  store ptr @vSineDihedrals, ptr %40, align 8, !tbaa !20
  %41 = load ptr, ptr %8, align 8, !tbaa !5
  %42 = getelementptr inbounds %struct.__SMparam, ptr %41, i32 0, i32 15
  store ptr @vGradSineDihedrals, ptr %42, align 8, !tbaa !21
  %43 = load i32, ptr %5, align 4, !tbaa !9
  switch i32 %43, label %210 [
    i32 1, label %44
    i32 5, label %51
    i32 2, label %58
    i32 3, label %65
    i32 4, label %72
    i32 6, label %79
    i32 7, label %86
    i32 8, label %93
    i32 9, label %100
    i32 10, label %105
    i32 11, label %112
    i32 12, label %119
    i32 13, label %126
    i32 14, label %133
    i32 15, label %140
    i32 21, label %147
    i32 22, label %154
    i32 24, label %161
    i32 23, label %168
    i32 25, label %175
    i32 26, label %182
    i32 27, label %189
    i32 29, label %196
    i32 28, label %203
  ]

44:                                               ; preds = %34
  %45 = load ptr, ptr %8, align 8, !tbaa !5
  %46 = getelementptr inbounds %struct.__SMparam, ptr %45, i32 0, i32 9
  store i32 3, ptr %46, align 8, !tbaa !17
  %47 = load ptr, ptr %8, align 8, !tbaa !5
  %48 = getelementptr inbounds %struct.__SMparam, ptr %47, i32 0, i32 12
  store ptr @SMcomputeTriAngles, ptr %48, align 8, !tbaa !18
  %49 = load ptr, ptr %8, align 8, !tbaa !5
  %50 = getelementptr inbounds %struct.__SMparam, ptr %49, i32 0, i32 13
  store ptr @SMcomputeAngGradients, ptr %50, align 8, !tbaa !19
  br label %211

51:                                               ; preds = %34
  %52 = load ptr, ptr %8, align 8, !tbaa !5
  %53 = getelementptr inbounds %struct.__SMparam, ptr %52, i32 0, i32 9
  store i32 3, ptr %53, align 8, !tbaa !17
  %54 = load ptr, ptr %8, align 8, !tbaa !5
  %55 = getelementptr inbounds %struct.__SMparam, ptr %54, i32 0, i32 12
  store ptr @SMcomputeNegTriAngles, ptr %55, align 8, !tbaa !18
  %56 = load ptr, ptr %8, align 8, !tbaa !5
  %57 = getelementptr inbounds %struct.__SMparam, ptr %56, i32 0, i32 13
  store ptr @SMcomputeNegAngGradients, ptr %57, align 8, !tbaa !19
  br label %211

58:                                               ; preds = %34
  %59 = load ptr, ptr %8, align 8, !tbaa !5
  %60 = getelementptr inbounds %struct.__SMparam, ptr %59, i32 0, i32 9
  store i32 3, ptr %60, align 8, !tbaa !17
  %61 = load ptr, ptr %8, align 8, !tbaa !5
  %62 = getelementptr inbounds %struct.__SMparam, ptr %61, i32 0, i32 12
  store ptr @SMcomputeNegTriCosines, ptr %62, align 8, !tbaa !18
  %63 = load ptr, ptr %8, align 8, !tbaa !5
  %64 = getelementptr inbounds %struct.__SMparam, ptr %63, i32 0, i32 13
  store ptr @SMcomputeNegCosGradients, ptr %64, align 8, !tbaa !19
  br label %211

65:                                               ; preds = %34
  %66 = load ptr, ptr %8, align 8, !tbaa !5
  %67 = getelementptr inbounds %struct.__SMparam, ptr %66, i32 0, i32 9
  store i32 3, ptr %67, align 8, !tbaa !17
  %68 = load ptr, ptr %8, align 8, !tbaa !5
  %69 = getelementptr inbounds %struct.__SMparam, ptr %68, i32 0, i32 12
  store ptr @SMcomputeTriCosines, ptr %69, align 8, !tbaa !18
  %70 = load ptr, ptr %8, align 8, !tbaa !5
  %71 = getelementptr inbounds %struct.__SMparam, ptr %70, i32 0, i32 13
  store ptr @SMcomputeCosGradients, ptr %71, align 8, !tbaa !19
  br label %211

72:                                               ; preds = %34
  %73 = load ptr, ptr %8, align 8, !tbaa !5
  %74 = getelementptr inbounds %struct.__SMparam, ptr %73, i32 0, i32 9
  store i32 3, ptr %74, align 8, !tbaa !17
  %75 = load ptr, ptr %8, align 8, !tbaa !5
  %76 = getelementptr inbounds %struct.__SMparam, ptr %75, i32 0, i32 12
  store ptr @SMcomputeTriSines, ptr %76, align 8, !tbaa !18
  %77 = load ptr, ptr %8, align 8, !tbaa !5
  %78 = getelementptr inbounds %struct.__SMparam, ptr %77, i32 0, i32 13
  store ptr @SMcomputeSineGradients, ptr %78, align 8, !tbaa !19
  br label %211

79:                                               ; preds = %34
  %80 = load ptr, ptr %8, align 8, !tbaa !5
  %81 = getelementptr inbounds %struct.__SMparam, ptr %80, i32 0, i32 9
  store i32 1, ptr %81, align 8, !tbaa !17
  %82 = load ptr, ptr %8, align 8, !tbaa !5
  %83 = getelementptr inbounds %struct.__SMparam, ptr %82, i32 0, i32 12
  store ptr @SMcomputeTriJacobians, ptr %83, align 8, !tbaa !18
  %84 = load ptr, ptr %8, align 8, !tbaa !5
  %85 = getelementptr inbounds %struct.__SMparam, ptr %84, i32 0, i32 13
  store ptr @SMcomputeJacobianGradients, ptr %85, align 8, !tbaa !19
  br label %211

86:                                               ; preds = %34
  %87 = load ptr, ptr %8, align 8, !tbaa !5
  %88 = getelementptr inbounds %struct.__SMparam, ptr %87, i32 0, i32 9
  store i32 3, ptr %88, align 8, !tbaa !17
  %89 = load ptr, ptr %8, align 8, !tbaa !5
  %90 = getelementptr inbounds %struct.__SMparam, ptr %89, i32 0, i32 12
  store ptr @SMcomputeScaledTriJacobians, ptr %90, align 8, !tbaa !18
  %91 = load ptr, ptr %8, align 8, !tbaa !5
  %92 = getelementptr inbounds %struct.__SMparam, ptr %91, i32 0, i32 13
  store ptr @SMcomputeScaledJacobianGradients, ptr %92, align 8, !tbaa !19
  br label %211

93:                                               ; preds = %34
  %94 = load ptr, ptr %8, align 8, !tbaa !5
  %95 = getelementptr inbounds %struct.__SMparam, ptr %94, i32 0, i32 9
  store i32 1, ptr %95, align 8, !tbaa !17
  %96 = load ptr, ptr %8, align 8, !tbaa !5
  %97 = getelementptr inbounds %struct.__SMparam, ptr %96, i32 0, i32 12
  store ptr @SMcomputeAreaLengthRatio, ptr %97, align 8, !tbaa !18
  %98 = load ptr, ptr %8, align 8, !tbaa !5
  %99 = getelementptr inbounds %struct.__SMparam, ptr %98, i32 0, i32 13
  store ptr @SMcomputeAreaLengthRatioGradients, ptr %99, align 8, !tbaa !19
  br label %211

100:                                              ; preds = %34
  %101 = load ptr, ptr %8, align 8, !tbaa !5
  %102 = getelementptr inbounds %struct.__SMparam, ptr %101, i32 0, i32 9
  store i32 1, ptr %102, align 8, !tbaa !17
  %103 = load ptr, ptr %8, align 8, !tbaa !5
  %104 = getelementptr inbounds %struct.__SMparam, ptr %103, i32 0, i32 12
  store ptr @SMcomputeLengthAreaRatio, ptr %104, align 8, !tbaa !18
  br label %211

105:                                              ; preds = %34
  %106 = load ptr, ptr %8, align 8, !tbaa !5
  %107 = getelementptr inbounds %struct.__SMparam, ptr %106, i32 0, i32 9
  store i32 1, ptr %107, align 8, !tbaa !17
  %108 = load ptr, ptr %8, align 8, !tbaa !5
  %109 = getelementptr inbounds %struct.__SMparam, ptr %108, i32 0, i32 12
  store ptr @SMcomputeInteriorTriAngles, ptr %109, align 8, !tbaa !18
  %110 = load ptr, ptr %8, align 8, !tbaa !5
  %111 = getelementptr inbounds %struct.__SMparam, ptr %110, i32 0, i32 13
  store ptr @SMcomputeInteriorAngGradients, ptr %111, align 8, !tbaa !19
  br label %211

112:                                              ; preds = %34
  %113 = load ptr, ptr %8, align 8, !tbaa !5
  %114 = getelementptr inbounds %struct.__SMparam, ptr %113, i32 0, i32 9
  store i32 1, ptr %114, align 8, !tbaa !17
  %115 = load ptr, ptr %8, align 8, !tbaa !5
  %116 = getelementptr inbounds %struct.__SMparam, ptr %115, i32 0, i32 12
  store ptr @SMcomputeInteriorTriSines, ptr %116, align 8, !tbaa !18
  %117 = load ptr, ptr %8, align 8, !tbaa !5
  %118 = getelementptr inbounds %struct.__SMparam, ptr %117, i32 0, i32 13
  store ptr @SMcomputeInteriorSineGradients, ptr %118, align 8, !tbaa !19
  br label %211

119:                                              ; preds = %34
  %120 = load ptr, ptr %8, align 8, !tbaa !5
  %121 = getelementptr inbounds %struct.__SMparam, ptr %120, i32 0, i32 9
  store i32 1, ptr %121, align 8, !tbaa !17
  %122 = load ptr, ptr %8, align 8, !tbaa !5
  %123 = getelementptr inbounds %struct.__SMparam, ptr %122, i32 0, i32 12
  store ptr @SMcomputeInteriorTriCosines, ptr %123, align 8, !tbaa !18
  %124 = load ptr, ptr %8, align 8, !tbaa !5
  %125 = getelementptr inbounds %struct.__SMparam, ptr %124, i32 0, i32 13
  store ptr @SMcomputeInteriorCosGradients, ptr %125, align 8, !tbaa !19
  br label %211

126:                                              ; preds = %34
  %127 = load ptr, ptr %8, align 8, !tbaa !5
  %128 = getelementptr inbounds %struct.__SMparam, ptr %127, i32 0, i32 9
  store i32 1, ptr %128, align 8, !tbaa !17
  %129 = load ptr, ptr %8, align 8, !tbaa !5
  %130 = getelementptr inbounds %struct.__SMparam, ptr %129, i32 0, i32 12
  store ptr @SMcomputeInteriorScaledTriJacobians, ptr %130, align 8, !tbaa !18
  %131 = load ptr, ptr %8, align 8, !tbaa !5
  %132 = getelementptr inbounds %struct.__SMparam, ptr %131, i32 0, i32 13
  store ptr @SMcomputeInteriorScaledJacobianGradients, ptr %132, align 8, !tbaa !19
  br label %211

133:                                              ; preds = %34
  %134 = load ptr, ptr %8, align 8, !tbaa !5
  %135 = getelementptr inbounds %struct.__SMparam, ptr %134, i32 0, i32 9
  store i32 1, ptr %135, align 8, !tbaa !17
  %136 = load ptr, ptr %8, align 8, !tbaa !5
  %137 = getelementptr inbounds %struct.__SMparam, ptr %136, i32 0, i32 12
  store ptr @SMNormJacSquared2D, ptr %137, align 8, !tbaa !18
  %138 = load ptr, ptr %8, align 8, !tbaa !5
  %139 = getelementptr inbounds %struct.__SMparam, ptr %138, i32 0, i32 13
  store ptr @SMcomputeNormJacSquaredGradients2D, ptr %139, align 8, !tbaa !19
  br label %211

140:                                              ; preds = %34
  %141 = load ptr, ptr %8, align 8, !tbaa !5
  %142 = getelementptr inbounds %struct.__SMparam, ptr %141, i32 0, i32 9
  store i32 3, ptr %142, align 8, !tbaa !17
  %143 = load ptr, ptr %8, align 8, !tbaa !5
  %144 = getelementptr inbounds %struct.__SMparam, ptr %143, i32 0, i32 12
  store ptr @SMcondition2D, ptr %144, align 8, !tbaa !18
  %145 = load ptr, ptr %8, align 8, !tbaa !5
  %146 = getelementptr inbounds %struct.__SMparam, ptr %145, i32 0, i32 13
  store ptr @SMgradCondition2D, ptr %146, align 8, !tbaa !19
  br label %211

147:                                              ; preds = %34
  %148 = load ptr, ptr %8, align 8, !tbaa !5
  %149 = getelementptr inbounds %struct.__SMparam, ptr %148, i32 0, i32 9
  store i32 6, ptr %149, align 8, !tbaa !17
  %150 = load ptr, ptr %8, align 8, !tbaa !5
  %151 = getelementptr inbounds %struct.__SMparam, ptr %150, i32 0, i32 14
  store ptr @vDihedrals, ptr %151, align 8, !tbaa !20
  %152 = load ptr, ptr %8, align 8, !tbaa !5
  %153 = getelementptr inbounds %struct.__SMparam, ptr %152, i32 0, i32 15
  store ptr @vGradDihedrals, ptr %153, align 8, !tbaa !21
  br label %211

154:                                              ; preds = %34
  %155 = load ptr, ptr %8, align 8, !tbaa !5
  %156 = getelementptr inbounds %struct.__SMparam, ptr %155, i32 0, i32 9
  store i32 6, ptr %156, align 8, !tbaa !17
  %157 = load ptr, ptr %8, align 8, !tbaa !5
  %158 = getelementptr inbounds %struct.__SMparam, ptr %157, i32 0, i32 14
  store ptr @vNegateDihedrals, ptr %158, align 8, !tbaa !20
  %159 = load ptr, ptr %8, align 8, !tbaa !5
  %160 = getelementptr inbounds %struct.__SMparam, ptr %159, i32 0, i32 15
  store ptr @vNegateGradDihedrals, ptr %160, align 8, !tbaa !21
  br label %211

161:                                              ; preds = %34
  %162 = load ptr, ptr %8, align 8, !tbaa !5
  %163 = getelementptr inbounds %struct.__SMparam, ptr %162, i32 0, i32 9
  store i32 6, ptr %163, align 8, !tbaa !17
  %164 = load ptr, ptr %8, align 8, !tbaa !5
  %165 = getelementptr inbounds %struct.__SMparam, ptr %164, i32 0, i32 14
  store ptr @vNegateCosineDihedrals, ptr %165, align 8, !tbaa !20
  %166 = load ptr, ptr %8, align 8, !tbaa !5
  %167 = getelementptr inbounds %struct.__SMparam, ptr %166, i32 0, i32 15
  store ptr @vNegateGradCosineDihedrals, ptr %167, align 8, !tbaa !21
  br label %211

168:                                              ; preds = %34
  %169 = load ptr, ptr %8, align 8, !tbaa !5
  %170 = getelementptr inbounds %struct.__SMparam, ptr %169, i32 0, i32 9
  store i32 6, ptr %170, align 8, !tbaa !17
  %171 = load ptr, ptr %8, align 8, !tbaa !5
  %172 = getelementptr inbounds %struct.__SMparam, ptr %171, i32 0, i32 14
  store ptr @vCosineDihedrals, ptr %172, align 8, !tbaa !20
  %173 = load ptr, ptr %8, align 8, !tbaa !5
  %174 = getelementptr inbounds %struct.__SMparam, ptr %173, i32 0, i32 15
  store ptr @vGradCosineDihedrals, ptr %174, align 8, !tbaa !21
  br label %211

175:                                              ; preds = %34
  %176 = load ptr, ptr %8, align 8, !tbaa !5
  %177 = getelementptr inbounds %struct.__SMparam, ptr %176, i32 0, i32 9
  store i32 6, ptr %177, align 8, !tbaa !17
  %178 = load ptr, ptr %8, align 8, !tbaa !5
  %179 = getelementptr inbounds %struct.__SMparam, ptr %178, i32 0, i32 14
  store ptr @vSineDihedrals, ptr %179, align 8, !tbaa !20
  %180 = load ptr, ptr %8, align 8, !tbaa !5
  %181 = getelementptr inbounds %struct.__SMparam, ptr %180, i32 0, i32 15
  store ptr @vGradSineDihedrals, ptr %181, align 8, !tbaa !21
  br label %211

182:                                              ; preds = %34
  %183 = load ptr, ptr %8, align 8, !tbaa !5
  %184 = getelementptr inbounds %struct.__SMparam, ptr %183, i32 0, i32 9
  store i32 4, ptr %184, align 8, !tbaa !17
  %185 = load ptr, ptr %8, align 8, !tbaa !5
  %186 = getelementptr inbounds %struct.__SMparam, ptr %185, i32 0, i32 14
  store ptr @vScaledJacobian, ptr %186, align 8, !tbaa !20
  %187 = load ptr, ptr %8, align 8, !tbaa !5
  %188 = getelementptr inbounds %struct.__SMparam, ptr %187, i32 0, i32 15
  store ptr @vGradScaledJacobian, ptr %188, align 8, !tbaa !21
  br label %211

189:                                              ; preds = %34
  %190 = load ptr, ptr %8, align 8, !tbaa !5
  %191 = getelementptr inbounds %struct.__SMparam, ptr %190, i32 0, i32 9
  store i32 1, ptr %191, align 8, !tbaa !17
  %192 = load ptr, ptr %8, align 8, !tbaa !5
  %193 = getelementptr inbounds %struct.__SMparam, ptr %192, i32 0, i32 14
  store ptr @vSMRSVolumeRatio, ptr %193, align 8, !tbaa !20
  %194 = load ptr, ptr %8, align 8, !tbaa !5
  %195 = getelementptr inbounds %struct.__SMparam, ptr %194, i32 0, i32 15
  store ptr @vGradSMRSVolumeRatio, ptr %195, align 8, !tbaa !21
  br label %211

196:                                              ; preds = %34
  %197 = load ptr, ptr %8, align 8, !tbaa !5
  %198 = getelementptr inbounds %struct.__SMparam, ptr %197, i32 0, i32 9
  store i32 1, ptr %198, align 8, !tbaa !17
  %199 = load ptr, ptr %8, align 8, !tbaa !5
  %200 = getelementptr inbounds %struct.__SMparam, ptr %199, i32 0, i32 14
  store ptr @vNormJacSquared, ptr %200, align 8, !tbaa !20
  %201 = load ptr, ptr %8, align 8, !tbaa !5
  %202 = getelementptr inbounds %struct.__SMparam, ptr %201, i32 0, i32 15
  store ptr @vGradNormJacSquared, ptr %202, align 8, !tbaa !21
  br label %211

203:                                              ; preds = %34
  %204 = load ptr, ptr %8, align 8, !tbaa !5
  %205 = getelementptr inbounds %struct.__SMparam, ptr %204, i32 0, i32 9
  store i32 1, ptr %205, align 8, !tbaa !17
  %206 = load ptr, ptr %8, align 8, !tbaa !5
  %207 = getelementptr inbounds %struct.__SMparam, ptr %206, i32 0, i32 14
  store ptr @vCondition, ptr %207, align 8, !tbaa !20
  %208 = load ptr, ptr %8, align 8, !tbaa !5
  %209 = getelementptr inbounds %struct.__SMparam, ptr %208, i32 0, i32 15
  store ptr @vGradCondition, ptr %209, align 8, !tbaa !21
  br label %211

210:                                              ; preds = %34
  br label %211

211:                                              ; preds = %210, %203, %196, %189, %182, %175, %168, %161, %154, %147, %140, %133, %126, %119, %112, %105, %100, %93, %86, %79, %72, %65, %58, %51, %44
  store i32 0, ptr %6, align 4, !tbaa !9
  store i32 0, ptr %3, align 4
  store i32 1, ptr %10, align 4
  br label %212

212:                                              ; preds = %211, %14
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #3
  %213 = load i32, ptr %3, align 4
  ret i32 %213
}

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

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

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

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

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

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

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

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

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

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

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

declare i32 @SMcomputeCosGradients(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 @SMcomputeJacobianGradients(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 @SMcomputeScaledJacobianGradients(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1

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

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

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

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

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

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

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

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

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

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

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

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

declare i32 @SMcomputeNormJacSquaredGradients2D(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 @SMgradCondition2D(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 @vGradDihedrals(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1

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

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

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

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

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

declare i32 @vGradCosineDihedrals(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 @vGradScaledJacobian(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 @vGradSMRSVolumeRatio(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1

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

declare i32 @vGradNormJacSquared(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

declare i32 @vGradCondition(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, !6, i64 16}
!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 = !{!14, !10, i64 48}
!14 = !{!"__SMparam", !10, i64 0, !10, i64 4, !10, i64 8, !15, i64 16, !15, i64 24, !15, i64 32, !15, i64 40, !10, i64 48, !10, i64 52, !10, i64 56, !15, i64 64, !15, i64 72, !6, i64 80, !6, i64 88, !6, i64 96, !6, i64 104}
!15 = !{!"double", !7, i64 0}
!16 = !{!12, !10, i64 0}
!17 = !{!14, !10, i64 56}
!18 = !{!14, !6, i64 80}
!19 = !{!14, !6, i64 88}
!20 = !{!14, !6, i64 96}
!21 = !{!14, !6, i64 104}


; 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.8 = external hidden unnamed_addr constant [20 x i8], align 1

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

; Function Attrs: nounwind uwtable
define dso_local i32 @SMsetSmoothFunction(ptr noundef readonly %0, i32 noundef %1) local_unnamed_addr #1 {
  %3 = icmp eq ptr %0, null
  br i1 %3, label %4, label %6

4:                                                ; preds = %2
  %5 = tail call i32 @SMerror(i32 noundef 360, ptr noundef nonnull @.str.8, ptr noundef nonnull @.str.1, ptr noundef nonnull @.str.2, i32 noundef 56, i32 noundef 0, ptr noundef null) #2
  br label %41

6:                                                ; preds = %2
  %7 = getelementptr inbounds i8, ptr %0, i64 16
  %8 = load ptr, ptr %7, align 8, !tbaa !5
  %9 = getelementptr inbounds i8, ptr %8, i64 48
  store i32 %1, ptr %9, align 8, !tbaa !11
  %10 = load i32, ptr %0, align 8, !tbaa !14
  %11 = icmp eq i32 %10, 2
  %spec.select = select i1 %11, i32 3, i32 6
  %12 = getelementptr inbounds i8, ptr %8, i64 56
  store i32 %spec.select, ptr %12, align 8
  %13 = getelementptr inbounds i8, ptr %8, i64 80
  store ptr @SMcomputeTriSines, ptr %13, align 8, !tbaa !15
  %14 = getelementptr inbounds i8, ptr %8, i64 88
  store ptr @SMcomputeSineGradients, ptr %14, align 8, !tbaa !16
  %15 = getelementptr inbounds i8, ptr %8, i64 96
  store ptr @vSineDihedrals, ptr %15, align 8, !tbaa !17
  %16 = getelementptr inbounds i8, ptr %8, i64 104
  store ptr @vGradSineDihedrals, ptr %16, align 8, !tbaa !18
  switch i32 %1, label %41 [
    i32 1, label %17
    i32 5, label %18
    i32 2, label %19
    i32 3, label %20
    i32 4, label %21
    i32 6, label %22
    i32 7, label %23
    i32 8, label %24
    i32 9, label %25
    i32 10, label %26
    i32 11, label %27
    i32 12, label %28
    i32 13, label %29
    i32 14, label %30
    i32 15, label %31
    i32 21, label %32
    i32 22, label %33
    i32 24, label %34
    i32 23, label %35
    i32 25, label %36
    i32 26, label %37
    i32 27, label %38
    i32 29, label %39
    i32 28, label %40
  ]

17:                                               ; preds = %6
  store i32 3, ptr %12, align 8, !tbaa !19
  store ptr @SMcomputeTriAngles, ptr %13, align 8, !tbaa !15
  store ptr @SMcomputeAngGradients, ptr %14, align 8, !tbaa !16
  br label %41

18:                                               ; preds = %6
  store i32 3, ptr %12, align 8, !tbaa !19
  store ptr @SMcomputeNegTriAngles, ptr %13, align 8, !tbaa !15
  store ptr @SMcomputeNegAngGradients, ptr %14, align 8, !tbaa !16
  br label %41

19:                                               ; preds = %6
  store i32 3, ptr %12, align 8, !tbaa !19
  store ptr @SMcomputeNegTriCosines, ptr %13, align 8, !tbaa !15
  store ptr @SMcomputeNegCosGradients, ptr %14, align 8, !tbaa !16
  br label %41

20:                                               ; preds = %6
  store i32 3, ptr %12, align 8, !tbaa !19
  store ptr @SMcomputeTriCosines, ptr %13, align 8, !tbaa !15
  store ptr @SMcomputeCosGradients, ptr %14, align 8, !tbaa !16
  br label %41

21:                                               ; preds = %6
  store i32 3, ptr %12, align 8, !tbaa !19
  store ptr @SMcomputeSineGradients, ptr %14, align 8, !tbaa !16
  br label %41

22:                                               ; preds = %6
  store i32 1, ptr %12, align 8, !tbaa !19
  store ptr @SMcomputeTriJacobians, ptr %13, align 8, !tbaa !15
  store ptr @SMcomputeJacobianGradients, ptr %14, align 8, !tbaa !16
  br label %41

23:                                               ; preds = %6
  store i32 3, ptr %12, align 8, !tbaa !19
  store ptr @SMcomputeScaledTriJacobians, ptr %13, align 8, !tbaa !15
  store ptr @SMcomputeScaledJacobianGradients, ptr %14, align 8, !tbaa !16
  br label %41

24:                                               ; preds = %6
  store i32 1, ptr %12, align 8, !tbaa !19
  store ptr @SMcomputeAreaLengthRatio, ptr %13, align 8, !tbaa !15
  store ptr @SMcomputeAreaLengthRatioGradients, ptr %14, align 8, !tbaa !16
  br label %41

25:                                               ; preds = %6
  store i32 1, ptr %12, align 8, !tbaa !19
  store ptr @SMcomputeLengthAreaRatio, ptr %13, align 8, !tbaa !15
  br label %41

26:                                               ; preds = %6
  store i32 1, ptr %12, align 8, !tbaa !19
  store ptr @SMcomputeInteriorTriAngles, ptr %13, align 8, !tbaa !15
  store ptr @SMcomputeInteriorAngGradients, ptr %14, align 8, !tbaa !16
  br label %41

27:                                               ; preds = %6
  store i32 1, ptr %12, align 8, !tbaa !19
  store ptr @SMcomputeInteriorTriSines, ptr %13, align 8, !tbaa !15
  store ptr @SMcomputeInteriorSineGradients, ptr %14, align 8, !tbaa !16
  br label %41

28:                                               ; preds = %6
  store i32 1, ptr %12, align 8, !tbaa !19
  store ptr @SMcomputeInteriorTriCosines, ptr %13, align 8, !tbaa !15
  store ptr @SMcomputeInteriorCosGradients, ptr %14, align 8, !tbaa !16
  br label %41

29:                                               ; preds = %6
  store i32 1, ptr %12, align 8, !tbaa !19
  store ptr @SMcomputeInteriorScaledTriJacobians, ptr %13, align 8, !tbaa !15
  store ptr @SMcomputeInteriorScaledJacobianGradients, ptr %14, align 8, !tbaa !16
  br label %41

30:                                               ; preds = %6
  store i32 1, ptr %12, align 8, !tbaa !19
  store ptr @SMNormJacSquared2D, ptr %13, align 8, !tbaa !15
  store ptr @SMcomputeNormJacSquaredGradients2D, ptr %14, align 8, !tbaa !16
  br label %41

31:                                               ; preds = %6
  store i32 3, ptr %12, align 8, !tbaa !19
  store ptr @SMcondition2D, ptr %13, align 8, !tbaa !15
  store ptr @SMgradCondition2D, ptr %14, align 8, !tbaa !16
  br label %41

32:                                               ; preds = %6
  store i32 6, ptr %12, align 8, !tbaa !19
  store ptr @vDihedrals, ptr %15, align 8, !tbaa !17
  store ptr @vGradDihedrals, ptr %16, align 8, !tbaa !18
  br label %41

33:                                               ; preds = %6
  store i32 6, ptr %12, align 8, !tbaa !19
  store ptr @vNegateDihedrals, ptr %15, align 8, !tbaa !17
  store ptr @vNegateGradDihedrals, ptr %16, align 8, !tbaa !18
  br label %41

34:                                               ; preds = %6
  store i32 6, ptr %12, align 8, !tbaa !19
  store ptr @vNegateCosineDihedrals, ptr %15, align 8, !tbaa !17
  store ptr @vNegateGradCosineDihedrals, ptr %16, align 8, !tbaa !18
  br label %41

35:                                               ; preds = %6
  store i32 6, ptr %12, align 8, !tbaa !19
  store ptr @vCosineDihedrals, ptr %15, align 8, !tbaa !17
  store ptr @vGradCosineDihedrals, ptr %16, align 8, !tbaa !18
  br label %41

36:                                               ; preds = %6
  store i32 6, ptr %12, align 8, !tbaa !19
  store ptr @vGradSineDihedrals, ptr %16, align 8, !tbaa !18
  br label %41

37:                                               ; preds = %6
  store i32 4, ptr %12, align 8, !tbaa !19
  store ptr @vScaledJacobian, ptr %15, align 8, !tbaa !17
  store ptr @vGradScaledJacobian, ptr %16, align 8, !tbaa !18
  br label %41

38:                                               ; preds = %6
  store i32 1, ptr %12, align 8, !tbaa !19
  store ptr @vSMRSVolumeRatio, ptr %15, align 8, !tbaa !17
  store ptr @vGradSMRSVolumeRatio, ptr %16, align 8, !tbaa !18
  br label %41

39:                                               ; preds = %6
  store i32 1, ptr %12, align 8, !tbaa !19
  store ptr @vNormJacSquared, ptr %15, align 8, !tbaa !17
  store ptr @vGradNormJacSquared, ptr %16, align 8, !tbaa !18
  br label %41

40:                                               ; preds = %6
  store i32 1, ptr %12, align 8, !tbaa !19
  store ptr @vCondition, ptr %15, align 8, !tbaa !17
  store ptr @vGradCondition, ptr %16, align 8, !tbaa !18
  br label %41

41:                                               ; preds = %17, %18, %19, %20, %21, %22, %23, %24, %25, %26, %27, %28, %29, %30, %31, %32, %33, %34, %35, %36, %37, %38, %39, %40, %6, %4
  %.0 = phi i32 [ %5, %4 ], [ 0, %6 ], [ 0, %40 ], [ 0, %39 ], [ 0, %38 ], [ 0, %37 ], [ 0, %36 ], [ 0, %35 ], [ 0, %34 ], [ 0, %33 ], [ 0, %32 ], [ 0, %31 ], [ 0, %30 ], [ 0, %29 ], [ 0, %28 ], [ 0, %27 ], [ 0, %26 ], [ 0, %25 ], [ 0, %24 ], [ 0, %23 ], [ 0, %22 ], [ 0, %21 ], [ 0, %20 ], [ 0, %19 ], [ 0, %18 ], [ 0, %17 ]
  ret i32 %.0
}

declare i32 @SMcomputeTriSines(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #0

declare i32 @SMcomputeSineGradients(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #0

declare i32 @vSineDihedrals(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #0

declare i32 @vGradSineDihedrals(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #0

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

declare i32 @SMcomputeAngGradients(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #0

declare i32 @SMcomputeNegTriAngles(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #0

declare i32 @SMcomputeNegAngGradients(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #0

declare i32 @SMcomputeNegTriCosines(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #0

declare i32 @SMcomputeNegCosGradients(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #0

declare i32 @SMcomputeTriCosines(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #0

declare i32 @SMcomputeCosGradients(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #0

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

declare i32 @SMcomputeJacobianGradients(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #0

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

declare i32 @SMcomputeScaledJacobianGradients(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #0

declare i32 @SMcomputeAreaLengthRatio(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #0

declare i32 @SMcomputeAreaLengthRatioGradients(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #0

declare i32 @SMcomputeLengthAreaRatio(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #0

declare i32 @SMcomputeInteriorTriAngles(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #0

declare i32 @SMcomputeInteriorAngGradients(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #0

declare i32 @SMcomputeInteriorTriSines(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #0

declare i32 @SMcomputeInteriorSineGradients(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #0

declare i32 @SMcomputeInteriorTriCosines(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #0

declare i32 @SMcomputeInteriorCosGradients(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #0

declare i32 @SMcomputeInteriorScaledTriJacobians(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #0

declare i32 @SMcomputeInteriorScaledJacobianGradients(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #0

declare i32 @SMNormJacSquared2D(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #0

declare i32 @SMcomputeNormJacSquaredGradients2D(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #0

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

declare i32 @SMgradCondition2D(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #0

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

declare i32 @vGradDihedrals(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #0

declare i32 @vNegateDihedrals(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #0

declare i32 @vNegateGradDihedrals(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #0

declare i32 @vNegateCosineDihedrals(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #0

declare i32 @vNegateGradCosineDihedrals(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #0

declare i32 @vCosineDihedrals(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #0

declare i32 @vGradCosineDihedrals(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #0

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

declare i32 @vGradScaledJacobian(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #0

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

declare i32 @vGradSMRSVolumeRatio(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #0

declare i32 @vNormJacSquared(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #0

declare i32 @vGradNormJacSquared(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #0

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

declare i32 @vGradCondition(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #0

attributes #0 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { 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 #2 = { 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 16}
!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 48}
!12 = !{!"__SMparam", !7, i64 0, !7, i64 4, !7, i64 8, !13, i64 16, !13, i64 24, !13, i64 32, !13, i64 40, !7, i64 48, !7, i64 52, !7, i64 56, !13, i64 64, !13, i64 72, !10, i64 80, !10, i64 88, !10, i64 96, !10, i64 104}
!13 = !{!"double", !8, i64 0}
!14 = !{!6, !7, i64 0}
!15 = !{!12, !10, i64 80}
!16 = !{!12, !10, i64 88}
!17 = !{!12, !10, i64 96}
!18 = !{!12, !10, i64 104}
!19 = !{!12, !7, i64 56}


; Effective O3 passes: DSEPass,EarlyCSEPass,GVNPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,MergedLoadStoreMotionPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass