; LLVM IR from pmla/polyhedral-template-matching :: ptm_index (ptm_remap_template)

; 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.ptm::refdata_t" = type { i32, i32, i32, i32, i32, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, i32, ptr, i32, ptr, ptr, ptr, ptr }

@_ZN3ptmL7refdataE = external hidden constant [9 x ptr], align 16

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

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

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

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

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

declare void @_ZN3ptm8quat_rotEPdS0_S0_(ptr noundef, ptr noundef, ptr noundef) #4

; Function Attrs: mustprogress uwtable
define dso_local i32 @ptm_remap_template(i32 noundef %0, i1 noundef zeroext %1, i32 noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5, ptr noundef %6, ptr noundef %7) #2 {
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i8, align 1
  %12 = alloca i32, align 4
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca ptr, align 8
  %16 = alloca ptr, align 8
  %17 = alloca ptr, align 8
  %18 = alloca ptr, align 8
  %19 = alloca [17 x i8], align 16
  %20 = alloca i32, align 4
  %21 = alloca i32, align 4
  %22 = alloca i32, align 4
  %23 = alloca [4 x double], align 16
  %24 = alloca [4 x double], align 16
  %25 = alloca i32, align 4
  %26 = alloca ptr, align 8
  %27 = alloca i32, align 4
  %28 = alloca i32, align 4
  store i32 %0, ptr %10, align 4, !tbaa !5
  %29 = zext i1 %1 to i8
  store i8 %29, ptr %11, align 1, !tbaa !9
  store i32 %2, ptr %12, align 4, !tbaa !5
  store ptr %3, ptr %13, align 8, !tbaa !11
  store ptr %4, ptr %14, align 8, !tbaa !11
  store ptr %5, ptr %15, align 8, !tbaa !11
  store ptr %6, ptr %16, align 8, !tbaa !11
  store ptr %7, ptr %17, align 8, !tbaa !11
  %30 = load i32, ptr %10, align 4, !tbaa !5
  %31 = icmp eq i32 %30, 0
  br i1 %31, label %32, label %33

32:                                               ; preds = %8
  store i32 -1, ptr %9, align 4
  br label %246

33:                                               ; preds = %8
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #5
  %34 = load i32, ptr %10, align 4, !tbaa !5
  %35 = sext i32 %34 to i64
  %36 = getelementptr inbounds [9 x ptr], ptr @_ZN3ptmL7refdataE, i64 0, i64 %35
  %37 = load ptr, ptr %36, align 8, !tbaa !11
  store ptr %37, ptr %18, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 17, ptr %19) #5
  %38 = getelementptr inbounds [17 x i8], ptr %19, i64 0, i64 0
  call void @llvm.memset.p0.i64(ptr align 16 %38, i8 -1, i64 17, i1 false)
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #5
  %39 = load i32, ptr %10, align 4, !tbaa !5
  %40 = load i32, ptr %12, align 4, !tbaa !5
  %41 = load ptr, ptr %14, align 8, !tbaa !11
  %42 = load ptr, ptr %16, align 8, !tbaa !11
  %43 = call i32 @ptm_undo_conventional_orientation(i32 noundef %39, i32 noundef %40, ptr noundef %41, ptr noundef %42)
  store i32 %43, ptr %20, align 4, !tbaa !5
  %44 = load i32, ptr %20, align 4, !tbaa !5
  %45 = icmp ne i32 %44, 0
  br i1 %45, label %46, label %47

46:                                               ; preds = %33
  store i32 -1, ptr %9, align 4
  store i32 1, ptr %21, align 4
  br label %245

47:                                               ; preds = %33
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #5
  store i32 0, ptr %22, align 4, !tbaa !5
  %48 = load ptr, ptr %13, align 8, !tbaa !11
  %49 = icmp ne ptr %48, null
  br i1 %49, label %50, label %91

50:                                               ; preds = %47
  call void @llvm.lifetime.start.p0(i64 32, ptr %23) #5
  call void @llvm.lifetime.start.p0(i64 32, ptr %24) #5
  %51 = load ptr, ptr %13, align 8, !tbaa !11
  %52 = getelementptr inbounds double, ptr %51, i64 0
  %53 = load double, ptr %52, align 8, !tbaa !13
  %54 = fneg double %53
  store double %54, ptr %24, align 8, !tbaa !13
  %55 = getelementptr inbounds double, ptr %24, i64 1
  %56 = load ptr, ptr %13, align 8, !tbaa !11
  %57 = getelementptr inbounds double, ptr %56, i64 1
  %58 = load double, ptr %57, align 8, !tbaa !13
  store double %58, ptr %55, align 8, !tbaa !13
  %59 = getelementptr inbounds double, ptr %24, i64 2
  %60 = load ptr, ptr %13, align 8, !tbaa !11
  %61 = getelementptr inbounds double, ptr %60, i64 2
  %62 = load double, ptr %61, align 8, !tbaa !13
  store double %62, ptr %59, align 8, !tbaa !13
  %63 = getelementptr inbounds double, ptr %24, i64 3
  %64 = load ptr, ptr %13, align 8, !tbaa !11
  %65 = getelementptr inbounds double, ptr %64, i64 3
  %66 = load double, ptr %65, align 8, !tbaa !13
  store double %66, ptr %63, align 8, !tbaa !13
  %67 = getelementptr inbounds [4 x double], ptr %24, i64 0, i64 0
  %68 = load ptr, ptr %14, align 8, !tbaa !11
  %69 = getelementptr inbounds [4 x double], ptr %23, i64 0, i64 0
  call void @_ZN3ptm8quat_rotEPdS0_S0_(ptr noundef %67, ptr noundef %68, ptr noundef %69)
  %70 = load i32, ptr %10, align 4, !tbaa !5
  %71 = getelementptr inbounds [4 x double], ptr %23, i64 0, i64 0
  %72 = call noundef i32 @_ZL28rotate_into_fundamental_zoneibPd(i32 noundef %70, i1 noundef zeroext true, ptr noundef %71)
  store i32 %72, ptr %22, align 4, !tbaa !5
  %73 = load i32, ptr %22, align 4, !tbaa !5
  %74 = icmp slt i32 %73, 0
  br i1 %74, label %75, label %77

75:                                               ; preds = %50
  %76 = load i32, ptr %22, align 4, !tbaa !5
  store i32 %76, ptr %9, align 4
  store i32 1, ptr %21, align 4
  br label %88

77:                                               ; preds = %50
  %78 = load i32, ptr %10, align 4, !tbaa !5
  %79 = load i8, ptr %11, align 1, !tbaa !9, !range !15, !noundef !16
  %80 = trunc i8 %79 to i1
  %81 = load ptr, ptr %14, align 8, !tbaa !11
  %82 = load i32, ptr %22, align 4, !tbaa !5
  %83 = call noundef i32 @_ZL14map_quaternionibPdi(i32 noundef %78, i1 noundef zeroext %80, ptr noundef %81, i32 noundef %82)
  %84 = load ptr, ptr %14, align 8, !tbaa !11
  %85 = load ptr, ptr %13, align 8, !tbaa !11
  %86 = call noundef double @_ZN3ptm19quat_misorientationEPdS0_(ptr noundef %84, ptr noundef %85)
  %87 = load ptr, ptr %15, align 8, !tbaa !11
  store double %86, ptr %87, align 8, !tbaa !13
  store i32 0, ptr %21, align 4
  br label %88

88:                                               ; preds = %77, %75
  call void @llvm.lifetime.end.p0(i64 32, ptr %24) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %23) #5
  %89 = load i32, ptr %21, align 4
  switch i32 %89, label %244 [
    i32 0, label %90
  ]

90:                                               ; preds = %88
  br label %104

91:                                               ; preds = %47
  %92 = load ptr, ptr %18, align 8, !tbaa !11
  %93 = getelementptr inbounds %"struct.ptm::refdata_t", ptr %92, i32 0, i32 0
  %94 = load i32, ptr %93, align 8, !tbaa !17
  %95 = load i8, ptr %11, align 1, !tbaa !9, !range !15, !noundef !16
  %96 = trunc i8 %95 to i1
  %97 = load ptr, ptr %14, align 8, !tbaa !11
  %98 = call noundef i32 @_ZL28rotate_into_fundamental_zoneibPd(i32 noundef %94, i1 noundef zeroext %96, ptr noundef %97)
  store i32 %98, ptr %22, align 4, !tbaa !5
  %99 = load i32, ptr %22, align 4, !tbaa !5
  %100 = icmp slt i32 %99, 0
  br i1 %100, label %101, label %103

101:                                              ; preds = %91
  %102 = load i32, ptr %22, align 4, !tbaa !5
  store i32 %102, ptr %9, align 4
  store i32 1, ptr %21, align 4
  br label %244

103:                                              ; preds = %91
  br label %104

104:                                              ; preds = %103, %90
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #5
  store i32 0, ptr %25, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #5
  %105 = load ptr, ptr %18, align 8, !tbaa !11
  %106 = getelementptr inbounds %"struct.ptm::refdata_t", ptr %105, i32 0, i32 6
  %107 = load ptr, ptr %106, align 8, !tbaa !19
  store ptr %107, ptr %26, align 8, !tbaa !11
  %108 = load i8, ptr %11, align 1, !tbaa !9, !range !15, !noundef !16
  %109 = trunc i8 %108 to i1
  %110 = zext i1 %109 to i32
  %111 = load ptr, ptr %18, align 8, !tbaa !11
  %112 = getelementptr inbounds %"struct.ptm::refdata_t", ptr %111, i32 0, i32 0
  %113 = load i32, ptr %112, align 8, !tbaa !17
  %114 = icmp eq i32 %113, 2
  br i1 %114, label %130, label %115

115:                                              ; preds = %104
  %116 = load ptr, ptr %18, align 8, !tbaa !11
  %117 = getelementptr inbounds %"struct.ptm::refdata_t", ptr %116, i32 0, i32 0
  %118 = load i32, ptr %117, align 8, !tbaa !17
  %119 = icmp eq i32 %118, 8
  br i1 %119, label %130, label %120

120:                                              ; preds = %115
  %121 = load ptr, ptr %18, align 8, !tbaa !11
  %122 = getelementptr inbounds %"struct.ptm::refdata_t", ptr %121, i32 0, i32 0
  %123 = load i32, ptr %122, align 8, !tbaa !17
  %124 = icmp eq i32 %123, 6
  br i1 %124, label %130, label %125

125:                                              ; preds = %120
  %126 = load ptr, ptr %18, align 8, !tbaa !11
  %127 = getelementptr inbounds %"struct.ptm::refdata_t", ptr %126, i32 0, i32 0
  %128 = load i32, ptr %127, align 8, !tbaa !17
  %129 = icmp eq i32 %128, 7
  br label %130

130:                                              ; preds = %125, %120, %115, %104
  %131 = phi i1 [ true, %120 ], [ true, %115 ], [ true, %104 ], [ %129, %125 ]
  %132 = zext i1 %131 to i32
  %133 = and i32 %110, %132
  %134 = icmp ne i32 %133, 0
  br i1 %134, label %135, label %197

135:                                              ; preds = %130
  %136 = load ptr, ptr %18, align 8, !tbaa !11
  %137 = getelementptr inbounds %"struct.ptm::refdata_t", ptr %136, i32 0, i32 19
  %138 = load ptr, ptr %137, align 8, !tbaa !20
  %139 = load i32, ptr %22, align 4, !tbaa !5
  %140 = sext i32 %139 to i64
  %141 = getelementptr inbounds i8, ptr %138, i64 %140
  %142 = load i8, ptr %141, align 1, !tbaa !21
  %143 = sext i8 %142 to i32
  store i32 %143, ptr %25, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #5
  store i32 0, ptr %27, align 4, !tbaa !5
  br label %144

144:                                              ; preds = %170, %135
  %145 = load i32, ptr %27, align 4, !tbaa !5
  %146 = load ptr, ptr %18, align 8, !tbaa !11
  %147 = getelementptr inbounds %"struct.ptm::refdata_t", ptr %146, i32 0, i32 1
  %148 = load i32, ptr %147, align 4, !tbaa !22
  %149 = add nsw i32 %148, 1
  %150 = icmp slt i32 %145, %149
  br i1 %150, label %152, label %151

151:                                              ; preds = %144
  store i32 2, ptr %21, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #5
  br label %173

152:                                              ; preds = %144
  %153 = load ptr, ptr %16, align 8, !tbaa !11
  %154 = load i32, ptr %27, align 4, !tbaa !5
  %155 = sext i32 %154 to i64
  %156 = getelementptr inbounds i8, ptr %153, i64 %155
  %157 = load i8, ptr %156, align 1, !tbaa !21
  %158 = load ptr, ptr %18, align 8, !tbaa !11
  %159 = getelementptr inbounds %"struct.ptm::refdata_t", ptr %158, i32 0, i32 17
  %160 = load ptr, ptr %159, align 8, !tbaa !23
  %161 = load i32, ptr %22, align 4, !tbaa !5
  %162 = sext i32 %161 to i64
  %163 = getelementptr inbounds [17 x i8], ptr %160, i64 %162
  %164 = load i32, ptr %27, align 4, !tbaa !5
  %165 = sext i32 %164 to i64
  %166 = getelementptr inbounds [17 x i8], ptr %163, i64 0, i64 %165
  %167 = load i8, ptr %166, align 1, !tbaa !21
  %168 = sext i8 %167 to i64
  %169 = getelementptr inbounds [17 x i8], ptr %19, i64 0, i64 %168
  store i8 %157, ptr %169, align 1, !tbaa !21
  br label %170

170:                                              ; preds = %152
  %171 = load i32, ptr %27, align 4, !tbaa !5
  %172 = add nsw i32 %171, 1
  store i32 %172, ptr %27, align 4, !tbaa !5
  br label %144, !llvm.loop !24

173:                                              ; preds = %151
  %174 = load i32, ptr %25, align 4, !tbaa !5
  %175 = icmp eq i32 %174, 1
  br i1 %175, label %176, label %180

176:                                              ; preds = %173
  %177 = load ptr, ptr %18, align 8, !tbaa !11
  %178 = getelementptr inbounds %"struct.ptm::refdata_t", ptr %177, i32 0, i32 7
  %179 = load ptr, ptr %178, align 8, !tbaa !26
  store ptr %179, ptr %26, align 8, !tbaa !11
  br label %196

180:                                              ; preds = %173
  %181 = load i32, ptr %25, align 4, !tbaa !5
  %182 = icmp eq i32 %181, 2
  br i1 %182, label %183, label %187

183:                                              ; preds = %180
  %184 = load ptr, ptr %18, align 8, !tbaa !11
  %185 = getelementptr inbounds %"struct.ptm::refdata_t", ptr %184, i32 0, i32 8
  %186 = load ptr, ptr %185, align 8, !tbaa !27
  store ptr %186, ptr %26, align 8, !tbaa !11
  br label %195

187:                                              ; preds = %180
  %188 = load i32, ptr %25, align 4, !tbaa !5
  %189 = icmp eq i32 %188, 3
  br i1 %189, label %190, label %194

190:                                              ; preds = %187
  %191 = load ptr, ptr %18, align 8, !tbaa !11
  %192 = getelementptr inbounds %"struct.ptm::refdata_t", ptr %191, i32 0, i32 9
  %193 = load ptr, ptr %192, align 8, !tbaa !28
  store ptr %193, ptr %26, align 8, !tbaa !11
  br label %194

194:                                              ; preds = %190, %187
  br label %195

195:                                              ; preds = %194, %183
  br label %196

196:                                              ; preds = %195, %176
  br label %228

197:                                              ; preds = %130
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #5
  store i32 0, ptr %28, align 4, !tbaa !5
  br label %198

198:                                              ; preds = %224, %197
  %199 = load i32, ptr %28, align 4, !tbaa !5
  %200 = load ptr, ptr %18, align 8, !tbaa !11
  %201 = getelementptr inbounds %"struct.ptm::refdata_t", ptr %200, i32 0, i32 1
  %202 = load i32, ptr %201, align 4, !tbaa !22
  %203 = add nsw i32 %202, 1
  %204 = icmp slt i32 %199, %203
  br i1 %204, label %206, label %205

205:                                              ; preds = %198
  store i32 5, ptr %21, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #5
  br label %227

206:                                              ; preds = %198
  %207 = load ptr, ptr %16, align 8, !tbaa !11
  %208 = load i32, ptr %28, align 4, !tbaa !5
  %209 = sext i32 %208 to i64
  %210 = getelementptr inbounds i8, ptr %207, i64 %209
  %211 = load i8, ptr %210, align 1, !tbaa !21
  %212 = load ptr, ptr %18, align 8, !tbaa !11
  %213 = getelementptr inbounds %"struct.ptm::refdata_t", ptr %212, i32 0, i32 15
  %214 = load ptr, ptr %213, align 8, !tbaa !29
  %215 = load i32, ptr %22, align 4, !tbaa !5
  %216 = sext i32 %215 to i64
  %217 = getelementptr inbounds [17 x i8], ptr %214, i64 %216
  %218 = load i32, ptr %28, align 4, !tbaa !5
  %219 = sext i32 %218 to i64
  %220 = getelementptr inbounds [17 x i8], ptr %217, i64 0, i64 %219
  %221 = load i8, ptr %220, align 1, !tbaa !21
  %222 = sext i8 %221 to i64
  %223 = getelementptr inbounds [17 x i8], ptr %19, i64 0, i64 %222
  store i8 %211, ptr %223, align 1, !tbaa !21
  br label %224

224:                                              ; preds = %206
  %225 = load i32, ptr %28, align 4, !tbaa !5
  %226 = add nsw i32 %225, 1
  store i32 %226, ptr %28, align 4, !tbaa !5
  br label %198, !llvm.loop !30

227:                                              ; preds = %205
  br label %228

228:                                              ; preds = %227, %196
  %229 = load ptr, ptr %16, align 8, !tbaa !11
  %230 = getelementptr inbounds [17 x i8], ptr %19, i64 0, i64 0
  %231 = load ptr, ptr %18, align 8, !tbaa !11
  %232 = getelementptr inbounds %"struct.ptm::refdata_t", ptr %231, i32 0, i32 1
  %233 = load i32, ptr %232, align 4, !tbaa !22
  %234 = add nsw i32 %233, 1
  %235 = sext i32 %234 to i64
  %236 = mul i64 %235, 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %229, ptr align 16 %230, i64 %236, i1 false)
  %237 = load ptr, ptr %17, align 8, !tbaa !11
  %238 = icmp ne ptr %237, null
  br i1 %238, label %239, label %242

239:                                              ; preds = %228
  %240 = load ptr, ptr %26, align 8, !tbaa !11
  %241 = load ptr, ptr %17, align 8, !tbaa !11
  store ptr %240, ptr %241, align 8, !tbaa !11
  br label %242

242:                                              ; preds = %239, %228
  %243 = load i32, ptr %25, align 4, !tbaa !5
  store i32 %243, ptr %9, align 4
  store i32 1, ptr %21, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #5
  br label %244

244:                                              ; preds = %242, %101, %88
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #5
  br label %245

245:                                              ; preds = %244, %46
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #5
  call void @llvm.lifetime.end.p0(i64 17, ptr %19) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #5
  br label %246

246:                                              ; preds = %245, %32
  %247 = load i32, ptr %9, align 4
  ret i32 %247
}

; Function Attrs: mustprogress uwtable
declare hidden noundef i32 @_ZL28rotate_into_fundamental_zoneibPd(i32 noundef, i1 noundef zeroext, ptr noundef) #2

; Function Attrs: mustprogress uwtable
declare hidden noundef i32 @_ZL14map_quaternionibPdi(i32 noundef, i1 noundef zeroext, ptr noundef, i32 noundef) #2

declare noundef double @_ZN3ptm19quat_misorientationEPdS0_(ptr noundef, ptr noundef) #4

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"bool", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"any pointer", !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"double", !7, i64 0}
!15 = !{i8 0, i8 2}
!16 = !{}
!17 = !{!18, !6, i64 0}
!18 = !{!"_ZTSN3ptm9refdata_tE", !6, i64 0, !6, i64 4, !6, i64 8, !6, i64 12, !6, i64 16, !12, i64 24, !12, i64 32, !12, i64 40, !12, i64 48, !12, i64 56, !12, i64 64, !12, i64 72, !12, i64 80, !12, i64 88, !6, i64 96, !12, i64 104, !6, i64 112, !12, i64 120, !12, i64 128, !12, i64 136, !12, i64 144}
!19 = !{!18, !12, i64 32}
!20 = !{!18, !12, i64 136}
!21 = !{!7, !7, i64 0}
!22 = !{!18, !6, i64 4}
!23 = !{!18, !12, i64 120}
!24 = distinct !{!24, !25}
!25 = !{!"llvm.loop.mustprogress"}
!26 = !{!18, !12, i64 40}
!27 = !{!18, !12, i64 48}
!28 = !{!18, !12, i64 56}
!29 = !{!18, !12, i64 104}
!30 = distinct !{!30, !25}


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

@_ZN3ptmL7refdataE = external hidden local_unnamed_addr constant [9 x ptr], align 16

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

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

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

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

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

declare void @_ZN3ptm8quat_rotEPdS0_S0_(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #4

; Function Attrs: mustprogress uwtable
define dso_local i32 @ptm_remap_template(i32 noundef %0, i1 noundef zeroext %1, i32 noundef %2, ptr noundef %3, ptr noundef %4, ptr nocapture noundef writeonly %5, ptr noundef %6, ptr noundef writeonly %7) local_unnamed_addr #2 {
  %9 = alloca [17 x i8], align 16
  %10 = alloca [4 x double], align 16
  %11 = alloca [4 x double], align 16
  %12 = icmp eq i32 %0, 0
  br i1 %12, label %134, label %13

13:                                               ; preds = %8
  %14 = sext i32 %0 to i64
  %15 = getelementptr inbounds [9 x ptr], ptr @_ZN3ptmL7refdataE, i64 0, i64 %14
  %16 = load ptr, ptr %15, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 17, ptr nonnull %9) #5
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(17) %9, i8 -1, i64 17, i1 false)
  %17 = tail call i32 @ptm_undo_conventional_orientation(i32 noundef %0, i32 noundef %2, ptr noundef %4, ptr noundef %6)
  %.not = icmp eq i32 %17, 0
  br i1 %.not, label %18, label %133

18:                                               ; preds = %13
  %.not80 = icmp eq ptr %3, null
  br i1 %.not80, label %33, label %19

19:                                               ; preds = %18
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %10) #5
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %11) #5
  %20 = load double, ptr %3, align 8, !tbaa !9
  %21 = fneg double %20
  store double %21, ptr %11, align 16, !tbaa !9
  %22 = getelementptr inbounds i8, ptr %11, i64 8
  %23 = getelementptr inbounds i8, ptr %3, i64 8
  %24 = load <2 x double>, ptr %23, align 8, !tbaa !9
  store <2 x double> %24, ptr %22, align 8, !tbaa !9
  %25 = getelementptr inbounds i8, ptr %11, i64 24
  %26 = getelementptr inbounds i8, ptr %3, i64 24
  %27 = load double, ptr %26, align 8, !tbaa !9
  store double %27, ptr %25, align 8, !tbaa !9
  call void @_ZN3ptm8quat_rotEPdS0_S0_(ptr noundef nonnull %11, ptr noundef %4, ptr noundef nonnull %10)
  %28 = call noundef i32 @_ZL28rotate_into_fundamental_zoneibPd(i32 noundef %0, i1 noundef zeroext true, ptr noundef nonnull %10)
  %29 = icmp sgt i32 %28, -1
  br i1 %29, label %30, label %.critedge

30:                                               ; preds = %19
  %31 = call noundef i32 @_ZL14map_quaternionibPdi(i32 noundef %0, i1 noundef zeroext %1, ptr noundef %4, i32 noundef %28)
  %32 = call noundef double @_ZN3ptm19quat_misorientationEPdS0_(ptr noundef %4, ptr noundef nonnull %3)
  store double %32, ptr %5, align 8, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %11) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %10) #5
  br label %37

33:                                               ; preds = %18
  %34 = load i32, ptr %16, align 8, !tbaa !11
  %35 = tail call noundef i32 @_ZL28rotate_into_fundamental_zoneibPd(i32 noundef %34, i1 noundef zeroext %1, ptr noundef %4)
  %36 = icmp slt i32 %35, 0
  br i1 %36, label %133, label %37

37:                                               ; preds = %30, %33
  %.068 = phi i32 [ %28, %30 ], [ %35, %33 ]
  %38 = getelementptr inbounds i8, ptr %16, i64 32
  %39 = load ptr, ptr %38, align 8, !tbaa !14
  %40 = load i32, ptr %16, align 8, !tbaa !11
  switch i32 %40, label %.preheader [
    i32 2, label %switch.edge
    i32 8, label %switch.edge
    i32 6, label %switch.edge
    i32 7, label %switch.edge
  ]

switch.edge:                                      ; preds = %37, %37, %37, %37
  br i1 %1, label %48, label %.preheader

.preheader:                                       ; preds = %37, %switch.edge
  %41 = getelementptr inbounds i8, ptr %16, i64 4
  %42 = load i32, ptr %41, align 4, !tbaa !15
  %.not8386 = icmp slt i32 %42, 0
  br i1 %.not8386, label %.loopexit, label %.lr.ph

.lr.ph:                                           ; preds = %.preheader
  %43 = getelementptr inbounds i8, ptr %16, i64 104
  %44 = load ptr, ptr %43, align 8, !tbaa !16
  %45 = zext nneg i32 %.068 to i64
  %46 = add nuw i32 %42, 1
  %wide.trip.count = zext i32 %46 to i64
  %xtraiter104 = and i64 %wide.trip.count, 3
  %47 = icmp ult i32 %42, 3
  br i1 %47, label %.loopexit.loopexit.unr-lcssa, label %.lr.ph.new

.lr.ph.new:                                       ; preds = %.lr.ph
  %unroll_iter107 = and i64 %wide.trip.count, 4294967292
  br label %93

48:                                               ; preds = %switch.edge
  %49 = getelementptr inbounds i8, ptr %16, i64 136
  %50 = load ptr, ptr %49, align 8, !tbaa !17
  %51 = zext nneg i32 %.068 to i64
  %52 = getelementptr inbounds i8, ptr %50, i64 %51
  %53 = load i8, ptr %52, align 1, !tbaa !18
  %54 = sext i8 %53 to i32
  %55 = getelementptr inbounds i8, ptr %16, i64 4
  %56 = load i32, ptr %55, align 4, !tbaa !15
  %.not8488 = icmp slt i32 %56, 0
  br i1 %.not8488, label %._crit_edge, label %.lr.ph90

.lr.ph90:                                         ; preds = %48
  %57 = getelementptr inbounds i8, ptr %16, i64 120
  %58 = load ptr, ptr %57, align 8, !tbaa !19
  %59 = add nuw i32 %56, 1
  %wide.trip.count95 = zext i32 %59 to i64
  %xtraiter = and i64 %wide.trip.count95, 3
  %60 = icmp ult i32 %56, 3
  br i1 %60, label %._crit_edge.loopexit.unr-lcssa, label %.lr.ph90.new

.lr.ph90.new:                                     ; preds = %.lr.ph90
  %unroll_iter = and i64 %wide.trip.count95, 4294967292
  br label %68

._crit_edge.loopexit.unr-lcssa:                   ; preds = %68, %.lr.ph90
  %indvars.iv92.unr = phi i64 [ 0, %.lr.ph90 ], [ %indvars.iv.next93.3, %68 ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %._crit_edge, label %.epil.preheader

.epil.preheader:                                  ; preds = %._crit_edge.loopexit.unr-lcssa, %.epil.preheader
  %indvars.iv92.epil = phi i64 [ %indvars.iv.next93.epil, %.epil.preheader ], [ %indvars.iv92.unr, %._crit_edge.loopexit.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %.epil.preheader ], [ 0, %._crit_edge.loopexit.unr-lcssa ]
  %61 = getelementptr inbounds i8, ptr %6, i64 %indvars.iv92.epil
  %62 = load i8, ptr %61, align 1, !tbaa !18
  %63 = getelementptr inbounds [17 x i8], ptr %58, i64 %51, i64 %indvars.iv92.epil
  %64 = load i8, ptr %63, align 1, !tbaa !18
  %65 = sext i8 %64 to i64
  %66 = getelementptr inbounds [17 x i8], ptr %9, i64 0, i64 %65
  store i8 %62, ptr %66, align 1, !tbaa !18
  %indvars.iv.next93.epil = add nuw nsw i64 %indvars.iv92.epil, 1
  %epil.iter.next = add i64 %epil.iter, 1
  %epil.iter.cmp.not = icmp eq i64 %epil.iter.next, %xtraiter
  br i1 %epil.iter.cmp.not, label %._crit_edge, label %.epil.preheader, !llvm.loop !20

._crit_edge:                                      ; preds = %._crit_edge.loopexit.unr-lcssa, %.epil.preheader, %48
  %switch.tableidx = add i8 %53, -1
  %67 = icmp ult i8 %switch.tableidx, 3
  br i1 %67, label %switch.lookup, label %.loopexit

68:                                               ; preds = %68, %.lr.ph90.new
  %indvars.iv92 = phi i64 [ 0, %.lr.ph90.new ], [ %indvars.iv.next93.3, %68 ]
  %niter = phi i64 [ 0, %.lr.ph90.new ], [ %niter.next.3, %68 ]
  %69 = getelementptr inbounds i8, ptr %6, i64 %indvars.iv92
  %70 = load i8, ptr %69, align 1, !tbaa !18
  %71 = getelementptr inbounds [17 x i8], ptr %58, i64 %51, i64 %indvars.iv92
  %72 = load i8, ptr %71, align 1, !tbaa !18
  %73 = sext i8 %72 to i64
  %74 = getelementptr inbounds [17 x i8], ptr %9, i64 0, i64 %73
  store i8 %70, ptr %74, align 1, !tbaa !18
  %indvars.iv.next93 = or disjoint i64 %indvars.iv92, 1
  %75 = getelementptr inbounds i8, ptr %6, i64 %indvars.iv.next93
  %76 = load i8, ptr %75, align 1, !tbaa !18
  %77 = getelementptr inbounds [17 x i8], ptr %58, i64 %51, i64 %indvars.iv.next93
  %78 = load i8, ptr %77, align 1, !tbaa !18
  %79 = sext i8 %78 to i64
  %80 = getelementptr inbounds [17 x i8], ptr %9, i64 0, i64 %79
  store i8 %76, ptr %80, align 1, !tbaa !18
  %indvars.iv.next93.1 = or disjoint i64 %indvars.iv92, 2
  %81 = getelementptr inbounds i8, ptr %6, i64 %indvars.iv.next93.1
  %82 = load i8, ptr %81, align 1, !tbaa !18
  %83 = getelementptr inbounds [17 x i8], ptr %58, i64 %51, i64 %indvars.iv.next93.1
  %84 = load i8, ptr %83, align 1, !tbaa !18
  %85 = sext i8 %84 to i64
  %86 = getelementptr inbounds [17 x i8], ptr %9, i64 0, i64 %85
  store i8 %82, ptr %86, align 1, !tbaa !18
  %indvars.iv.next93.2 = or disjoint i64 %indvars.iv92, 3
  %87 = getelementptr inbounds i8, ptr %6, i64 %indvars.iv.next93.2
  %88 = load i8, ptr %87, align 1, !tbaa !18
  %89 = getelementptr inbounds [17 x i8], ptr %58, i64 %51, i64 %indvars.iv.next93.2
  %90 = load i8, ptr %89, align 1, !tbaa !18
  %91 = sext i8 %90 to i64
  %92 = getelementptr inbounds [17 x i8], ptr %9, i64 0, i64 %91
  store i8 %88, ptr %92, align 1, !tbaa !18
  %indvars.iv.next93.3 = add nuw nsw i64 %indvars.iv92, 4
  %niter.next.3 = add i64 %niter, 4
  %niter.ncmp.3 = icmp eq i64 %niter.next.3, %unroll_iter
  br i1 %niter.ncmp.3, label %._crit_edge.loopexit.unr-lcssa, label %68, !llvm.loop !22

93:                                               ; preds = %93, %.lr.ph.new
  %indvars.iv = phi i64 [ 0, %.lr.ph.new ], [ %indvars.iv.next.3, %93 ]
  %niter108 = phi i64 [ 0, %.lr.ph.new ], [ %niter108.next.3, %93 ]
  %94 = getelementptr inbounds i8, ptr %6, i64 %indvars.iv
  %95 = load i8, ptr %94, align 1, !tbaa !18
  %96 = getelementptr inbounds [17 x i8], ptr %44, i64 %45, i64 %indvars.iv
  %97 = load i8, ptr %96, align 1, !tbaa !18
  %98 = sext i8 %97 to i64
  %99 = getelementptr inbounds [17 x i8], ptr %9, i64 0, i64 %98
  store i8 %95, ptr %99, align 1, !tbaa !18
  %indvars.iv.next = or disjoint i64 %indvars.iv, 1
  %100 = getelementptr inbounds i8, ptr %6, i64 %indvars.iv.next
  %101 = load i8, ptr %100, align 1, !tbaa !18
  %102 = getelementptr inbounds [17 x i8], ptr %44, i64 %45, i64 %indvars.iv.next
  %103 = load i8, ptr %102, align 1, !tbaa !18
  %104 = sext i8 %103 to i64
  %105 = getelementptr inbounds [17 x i8], ptr %9, i64 0, i64 %104
  store i8 %101, ptr %105, align 1, !tbaa !18
  %indvars.iv.next.1 = or disjoint i64 %indvars.iv, 2
  %106 = getelementptr inbounds i8, ptr %6, i64 %indvars.iv.next.1
  %107 = load i8, ptr %106, align 1, !tbaa !18
  %108 = getelementptr inbounds [17 x i8], ptr %44, i64 %45, i64 %indvars.iv.next.1
  %109 = load i8, ptr %108, align 1, !tbaa !18
  %110 = sext i8 %109 to i64
  %111 = getelementptr inbounds [17 x i8], ptr %9, i64 0, i64 %110
  store i8 %107, ptr %111, align 1, !tbaa !18
  %indvars.iv.next.2 = or disjoint i64 %indvars.iv, 3
  %112 = getelementptr inbounds i8, ptr %6, i64 %indvars.iv.next.2
  %113 = load i8, ptr %112, align 1, !tbaa !18
  %114 = getelementptr inbounds [17 x i8], ptr %44, i64 %45, i64 %indvars.iv.next.2
  %115 = load i8, ptr %114, align 1, !tbaa !18
  %116 = sext i8 %115 to i64
  %117 = getelementptr inbounds [17 x i8], ptr %9, i64 0, i64 %116
  store i8 %113, ptr %117, align 1, !tbaa !18
  %indvars.iv.next.3 = add nuw nsw i64 %indvars.iv, 4
  %niter108.next.3 = add i64 %niter108, 4
  %niter108.ncmp.3 = icmp eq i64 %niter108.next.3, %unroll_iter107
  br i1 %niter108.ncmp.3, label %.loopexit.loopexit.unr-lcssa, label %93, !llvm.loop !24

switch.lookup:                                    ; preds = %._crit_edge
  %118 = shl nuw nsw i8 %switch.tableidx, 3
  %switch.offset101 = zext nneg i8 %53 to i32
  %119 = zext nneg i8 %118 to i64
  %120 = getelementptr inbounds i8, ptr %16, i64 %119
  %121 = getelementptr inbounds i8, ptr %120, i64 40
  %122 = load ptr, ptr %121, align 8, !tbaa !5
  br label %.loopexit

.loopexit.loopexit.unr-lcssa:                     ; preds = %93, %.lr.ph
  %indvars.iv.unr = phi i64 [ 0, %.lr.ph ], [ %indvars.iv.next.3, %93 ]
  %lcmp.mod106.not = icmp eq i64 %xtraiter104, 0
  br i1 %lcmp.mod106.not, label %.loopexit, label %.epil.preheader103

.epil.preheader103:                               ; preds = %.loopexit.loopexit.unr-lcssa, %.epil.preheader103
  %indvars.iv.epil = phi i64 [ %indvars.iv.next.epil, %.epil.preheader103 ], [ %indvars.iv.unr, %.loopexit.loopexit.unr-lcssa ]
  %epil.iter105 = phi i64 [ %epil.iter105.next, %.epil.preheader103 ], [ 0, %.loopexit.loopexit.unr-lcssa ]
  %123 = getelementptr inbounds i8, ptr %6, i64 %indvars.iv.epil
  %124 = load i8, ptr %123, align 1, !tbaa !18
  %125 = getelementptr inbounds [17 x i8], ptr %44, i64 %45, i64 %indvars.iv.epil
  %126 = load i8, ptr %125, align 1, !tbaa !18
  %127 = sext i8 %126 to i64
  %128 = getelementptr inbounds [17 x i8], ptr %9, i64 0, i64 %127
  store i8 %124, ptr %128, align 1, !tbaa !18
  %indvars.iv.next.epil = add nuw nsw i64 %indvars.iv.epil, 1
  %epil.iter105.next = add i64 %epil.iter105, 1
  %epil.iter105.cmp.not = icmp eq i64 %epil.iter105.next, %xtraiter104
  br i1 %epil.iter105.cmp.not, label %.loopexit, label %.epil.preheader103, !llvm.loop !25

.loopexit:                                        ; preds = %.loopexit.loopexit.unr-lcssa, %.epil.preheader103, %._crit_edge, %switch.lookup, %.preheader
  %129 = phi i32 [ %56, %._crit_edge ], [ %42, %.preheader ], [ %56, %switch.lookup ], [ %42, %.epil.preheader103 ], [ %42, %.loopexit.loopexit.unr-lcssa ]
  %.067 = phi i32 [ %54, %._crit_edge ], [ 0, %.preheader ], [ %switch.offset101, %switch.lookup ], [ 0, %.epil.preheader103 ], [ 0, %.loopexit.loopexit.unr-lcssa ]
  %.066 = phi ptr [ %39, %._crit_edge ], [ %39, %.preheader ], [ %122, %switch.lookup ], [ %39, %.epil.preheader103 ], [ %39, %.loopexit.loopexit.unr-lcssa ]
  %130 = add nsw i32 %129, 1
  %131 = sext i32 %130 to i64
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %6, ptr nonnull align 16 %9, i64 %131, i1 false)
  %.not85 = icmp eq ptr %7, null
  br i1 %.not85, label %133, label %132

132:                                              ; preds = %.loopexit
  store ptr %.066, ptr %7, align 8, !tbaa !5
  br label %133

.critedge:                                        ; preds = %19
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %11) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %10) #5
  br label %133

133:                                              ; preds = %.critedge, %33, %132, %.loopexit, %13
  %.2 = phi i32 [ -1, %13 ], [ %28, %.critedge ], [ %35, %33 ], [ %.067, %132 ], [ %.067, %.loopexit ]
  call void @llvm.lifetime.end.p0(i64 17, ptr nonnull %9) #5
  br label %134

134:                                              ; preds = %8, %133
  %.3 = phi i32 [ %.2, %133 ], [ -1, %8 ]
  ret i32 %.3
}

; Function Attrs: mustprogress uwtable
declare hidden noundef i32 @_ZL28rotate_into_fundamental_zoneibPd(i32 noundef, i1 noundef zeroext, ptr noundef) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
declare hidden noundef i32 @_ZL14map_quaternionibPdi(i32 noundef, i1 noundef zeroext, ptr noundef, i32 noundef) local_unnamed_addr #2

declare noundef double @_ZN3ptm19quat_misorientationEPdS0_(ptr noundef, ptr noundef) local_unnamed_addr #4

attributes #0 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #1 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { mustprogress 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 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { nounwind }

!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++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"double", !7, i64 0}
!11 = !{!12, !13, i64 0}
!12 = !{!"_ZTSN3ptm9refdata_tE", !13, i64 0, !13, i64 4, !13, i64 8, !13, i64 12, !13, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !6, i64 56, !6, i64 64, !6, i64 72, !6, i64 80, !6, i64 88, !13, i64 96, !6, i64 104, !13, i64 112, !6, i64 120, !6, i64 128, !6, i64 136, !6, i64 144}
!13 = !{!"int", !7, i64 0}
!14 = !{!12, !6, i64 32}
!15 = !{!12, !13, i64 4}
!16 = !{!12, !6, i64 104}
!17 = !{!12, !6, i64 136}
!18 = !{!7, !7, i64 0}
!19 = !{!12, !6, i64 120}
!20 = distinct !{!20, !21}
!21 = !{!"llvm.loop.unroll.disable"}
!22 = distinct !{!22, !23}
!23 = !{!"llvm.loop.mustprogress"}
!24 = distinct !{!24, !23}
!25 = distinct !{!25, !21}


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