; LLVM IR from pmla/polyhedral-template-matching :: ptm_multishell/ZN3ptm38calculate_two_shell_neighbour_orderingEiimPFiPvmmiPiPmS1_P_43154c01 (tE)

; 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::atomicenv_t" = type { [19 x i32], [19 x i64], [19 x i32], [19 x [3 x double]] }
%"class.std::unordered_set" = type { %"class.std::_Hashtable" }
%"class.std::_Hashtable" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }
%"struct.std::__detail::_Hash_node_base" = type { ptr }
%"struct.std::__detail::_Prime_rehash_policy" = type { float, i64 }
%"struct.std::pair" = type <{ %"struct.std::__detail::_Node_iterator", i8, [7 x i8] }>
%"struct.std::__detail::_Node_iterator" = type { %"struct.std::__detail::_Node_iterator_base" }
%"struct.std::__detail::_Node_iterator_base" = type { ptr }
%"struct.ptm::sorthelper_t" = type { i32, i32, i32, i64, i32, [3 x double] }

@.str = external hidden unnamed_addr constant [23 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [86 x i8], align 1
@__PRETTY_FUNCTION__._ZN3ptm38calculate_two_shell_neighbour_orderingEiimPFiPvmmiPiPmS1_PA3_dES0_PNS_11atomicenv_tE = external hidden unnamed_addr constant [175 x i8], align 1

; 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
define dso_local noundef i32 @_ZN3ptm38calculate_two_shell_neighbour_orderingEiimPFiPvmmiPiPmS1_PA3_dES0_PNS_11atomicenv_tE(i32 noundef %0, i32 noundef %1, i64 noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5) #2 personality ptr @__gxx_personality_v0 {
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i64, align 8
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca %"struct.ptm::atomicenv_t", align 8
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca %"class.std::unordered_set", align 8
  %18 = alloca i32, align 4
  %19 = alloca ptr, align 8
  %20 = alloca i32, align 4
  %21 = alloca %"struct.std::pair", align 8
  %22 = alloca i32, align 4
  %23 = alloca [76 x %"struct.ptm::sorthelper_t"], align 16
  %24 = alloca i32, align 4
  %25 = alloca %"struct.ptm::atomicenv_t", align 8
  %26 = alloca i32, align 4
  %27 = alloca i32, align 4
  %28 = alloca i64, align 8
  %29 = alloca i8, align 1
  %30 = alloca %"struct.std::__detail::_Node_iterator", align 8
  %31 = alloca %"struct.std::__detail::_Node_iterator", align 8
  %32 = alloca i32, align 4
  %33 = alloca i32, align 4
  %34 = alloca [4 x i32], align 16
  %35 = alloca i32, align 4
  %36 = alloca i32, align 4
  %37 = alloca i32, align 4
  %38 = alloca i8, align 1
  %39 = alloca %"struct.std::__detail::_Node_iterator", align 8
  %40 = alloca i64, align 8
  %41 = alloca %"struct.std::__detail::_Node_iterator", align 8
  %42 = alloca i64, align 8
  %43 = alloca %"struct.std::pair", align 8
  store i32 %0, ptr %8, align 4, !tbaa !5
  store i32 %1, ptr %9, align 4, !tbaa !5
  store i64 %2, ptr %10, align 8, !tbaa !9
  store ptr %3, ptr %11, align 8, !tbaa !11
  store ptr %4, ptr %12, align 8, !tbaa !11
  store ptr %5, ptr %13, align 8, !tbaa !11
  %44 = load i32, ptr %8, align 4, !tbaa !5
  %45 = icmp sle i32 %44, 4
  br i1 %45, label %46, label %47

46:                                               ; preds = %6
  br label %49

47:                                               ; preds = %6
  call void @__assert_fail(ptr noundef @.str, ptr noundef @.str.17, i32 noundef 48, ptr noundef @__PRETTY_FUNCTION__._ZN3ptm38calculate_two_shell_neighbour_orderingEiimPFiPvmmiPiPmS1_PA3_dES0_PNS_11atomicenv_tE) #8
  unreachable

48:                                               ; No predecessors!
  br label %49

49:                                               ; preds = %48, %46
  call void @llvm.lifetime.start.p0(i64 768, ptr %14) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #9
  %50 = load ptr, ptr %11, align 8, !tbaa !11
  %51 = load ptr, ptr %12, align 8, !tbaa !11
  %52 = load i64, ptr %10, align 8, !tbaa !9
  %53 = getelementptr inbounds %"struct.ptm::atomicenv_t", ptr %14, i32 0, i32 0
  %54 = getelementptr inbounds [19 x i32], ptr %53, i64 0, i64 0
  %55 = getelementptr inbounds %"struct.ptm::atomicenv_t", ptr %14, i32 0, i32 1
  %56 = getelementptr inbounds [19 x i64], ptr %55, i64 0, i64 0
  %57 = getelementptr inbounds %"struct.ptm::atomicenv_t", ptr %14, i32 0, i32 2
  %58 = getelementptr inbounds [19 x i32], ptr %57, i64 0, i64 0
  %59 = getelementptr inbounds %"struct.ptm::atomicenv_t", ptr %14, i32 0, i32 3
  %60 = getelementptr inbounds [19 x [3 x double]], ptr %59, i64 0, i64 0
  %61 = call noundef i32 %50(ptr noundef %51, i64 noundef -1, i64 noundef %52, i32 noundef 19, ptr noundef %54, ptr noundef %56, ptr noundef %58, ptr noundef %60)
  store i32 %61, ptr %15, align 4, !tbaa !5
  %62 = load i32, ptr %15, align 4, !tbaa !5
  %63 = load i32, ptr %8, align 4, !tbaa !5
  %64 = add nsw i32 %63, 1
  %65 = icmp slt i32 %62, %64
  br i1 %65, label %66, label %67

66:                                               ; preds = %49
  store i32 -1, ptr %7, align 4
  store i32 1, ptr %16, align 4
  br label %465

67:                                               ; preds = %49
  call void @llvm.lifetime.start.p0(i64 56, ptr %17) #9
  call void @_ZNSt13unordered_setImSt4hashImESt8equal_toImESaImEEC2Ev(ptr noundef nonnull align 8 dereferenceable(56) %17) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #9
  store i32 0, ptr %18, align 4, !tbaa !5
  br label %68

68:                                               ; preds = %126, %67
  %69 = load i32, ptr %18, align 4, !tbaa !5
  %70 = load i32, ptr %8, align 4, !tbaa !5
  %71 = add nsw i32 %70, 1
  %72 = icmp slt i32 %69, %71
  br i1 %72, label %74, label %73

73:                                               ; preds = %68
  store i32 2, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #9
  br label %133

74:                                               ; preds = %68
  %75 = getelementptr inbounds %"struct.ptm::atomicenv_t", ptr %14, i32 0, i32 0
  %76 = load i32, ptr %18, align 4, !tbaa !5
  %77 = sext i32 %76 to i64
  %78 = getelementptr inbounds [19 x i32], ptr %75, i64 0, i64 %77
  %79 = load i32, ptr %78, align 4, !tbaa !5
  %80 = load ptr, ptr %13, align 8, !tbaa !11
  %81 = getelementptr inbounds %"struct.ptm::atomicenv_t", ptr %80, i32 0, i32 0
  %82 = load i32, ptr %18, align 4, !tbaa !5
  %83 = sext i32 %82 to i64
  %84 = getelementptr inbounds [19 x i32], ptr %81, i64 0, i64 %83
  store i32 %79, ptr %84, align 4, !tbaa !5
  %85 = getelementptr inbounds %"struct.ptm::atomicenv_t", ptr %14, i32 0, i32 1
  %86 = load i32, ptr %18, align 4, !tbaa !5
  %87 = sext i32 %86 to i64
  %88 = getelementptr inbounds [19 x i64], ptr %85, i64 0, i64 %87
  %89 = load i64, ptr %88, align 8, !tbaa !9
  %90 = load ptr, ptr %13, align 8, !tbaa !11
  %91 = getelementptr inbounds %"struct.ptm::atomicenv_t", ptr %90, i32 0, i32 1
  %92 = load i32, ptr %18, align 4, !tbaa !5
  %93 = sext i32 %92 to i64
  %94 = getelementptr inbounds [19 x i64], ptr %91, i64 0, i64 %93
  store i64 %89, ptr %94, align 8, !tbaa !9
  %95 = getelementptr inbounds %"struct.ptm::atomicenv_t", ptr %14, i32 0, i32 2
  %96 = load i32, ptr %18, align 4, !tbaa !5
  %97 = sext i32 %96 to i64
  %98 = getelementptr inbounds [19 x i32], ptr %95, i64 0, i64 %97
  %99 = load i32, ptr %98, align 4, !tbaa !5
  %100 = load ptr, ptr %13, align 8, !tbaa !11
  %101 = getelementptr inbounds %"struct.ptm::atomicenv_t", ptr %100, i32 0, i32 2
  %102 = load i32, ptr %18, align 4, !tbaa !5
  %103 = sext i32 %102 to i64
  %104 = getelementptr inbounds [19 x i32], ptr %101, i64 0, i64 %103
  store i32 %99, ptr %104, align 4, !tbaa !5
  %105 = load ptr, ptr %13, align 8, !tbaa !11
  %106 = getelementptr inbounds %"struct.ptm::atomicenv_t", ptr %105, i32 0, i32 3
  %107 = load i32, ptr %18, align 4, !tbaa !5
  %108 = sext i32 %107 to i64
  %109 = getelementptr inbounds [19 x [3 x double]], ptr %106, i64 0, i64 %108
  %110 = getelementptr inbounds [3 x double], ptr %109, i64 0, i64 0
  %111 = getelementptr inbounds %"struct.ptm::atomicenv_t", ptr %14, i32 0, i32 3
  %112 = load i32, ptr %18, align 4, !tbaa !5
  %113 = sext i32 %112 to i64
  %114 = getelementptr inbounds [19 x [3 x double]], ptr %111, i64 0, i64 %113
  %115 = getelementptr inbounds [3 x double], ptr %114, i64 0, i64 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %110, ptr align 8 %115, i64 24, i1 false)
  %116 = getelementptr inbounds %"struct.ptm::atomicenv_t", ptr %14, i32 0, i32 1
  %117 = load i32, ptr %18, align 4, !tbaa !5
  %118 = sext i32 %117 to i64
  %119 = getelementptr inbounds [19 x i64], ptr %116, i64 0, i64 %118
  %120 = invoke { ptr, i8 } @_ZNSt13unordered_setImSt4hashImESt8equal_toImESaImEE6insertERKm(ptr noundef nonnull align 8 dereferenceable(56) %17, ptr noundef nonnull align 8 dereferenceable(8) %119)
          to label %121 unwind label %129

121:                                              ; preds = %74
  %122 = getelementptr inbounds { ptr, i8 }, ptr %21, i32 0, i32 0
  %123 = extractvalue { ptr, i8 } %120, 0
  store ptr %123, ptr %122, align 8
  %124 = getelementptr inbounds { ptr, i8 }, ptr %21, i32 0, i32 1
  %125 = extractvalue { ptr, i8 } %120, 1
  store i8 %125, ptr %124, align 8
  br label %126

126:                                              ; preds = %121
  %127 = load i32, ptr %18, align 4, !tbaa !5
  %128 = add nsw i32 %127, 1
  store i32 %128, ptr %18, align 4, !tbaa !5
  br label %68, !llvm.loop !13

129:                                              ; preds = %74
  %130 = landingpad { ptr, i32 }
          cleanup
  %131 = extractvalue { ptr, i32 } %130, 0
  store ptr %131, ptr %19, align 8
  %132 = extractvalue { ptr, i32 } %130, 1
  store i32 %132, ptr %20, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #9
  br label %464

133:                                              ; preds = %73
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #9
  store i32 0, ptr %22, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4256, ptr %23) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #9
  store i32 0, ptr %24, align 4, !tbaa !5
  br label %134

134:                                              ; preds = %282, %133
  %135 = load i32, ptr %24, align 4, !tbaa !5
  %136 = load i32, ptr %8, align 4, !tbaa !5
  %137 = icmp slt i32 %135, %136
  br i1 %137, label %139, label %138

138:                                              ; preds = %134
  store i32 5, ptr %16, align 4
  br label %286

139:                                              ; preds = %134
  call void @llvm.lifetime.start.p0(i64 768, ptr %25) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #9
  %140 = load ptr, ptr %11, align 8, !tbaa !11
  %141 = load ptr, ptr %12, align 8, !tbaa !11
  %142 = getelementptr inbounds %"struct.ptm::atomicenv_t", ptr %14, i32 0, i32 1
  %143 = load i32, ptr %24, align 4, !tbaa !5
  %144 = add nsw i32 1, %143
  %145 = sext i32 %144 to i64
  %146 = getelementptr inbounds [19 x i64], ptr %142, i64 0, i64 %145
  %147 = load i64, ptr %146, align 8, !tbaa !9
  %148 = getelementptr inbounds %"struct.ptm::atomicenv_t", ptr %25, i32 0, i32 0
  %149 = getelementptr inbounds [19 x i32], ptr %148, i64 0, i64 0
  %150 = getelementptr inbounds %"struct.ptm::atomicenv_t", ptr %25, i32 0, i32 1
  %151 = getelementptr inbounds [19 x i64], ptr %150, i64 0, i64 0
  %152 = getelementptr inbounds %"struct.ptm::atomicenv_t", ptr %25, i32 0, i32 2
  %153 = getelementptr inbounds [19 x i32], ptr %152, i64 0, i64 0
  %154 = getelementptr inbounds %"struct.ptm::atomicenv_t", ptr %25, i32 0, i32 3
  %155 = getelementptr inbounds [19 x [3 x double]], ptr %154, i64 0, i64 0
  %156 = invoke noundef i32 %140(ptr noundef %141, i64 noundef -1, i64 noundef %147, i32 noundef 19, ptr noundef %149, ptr noundef %151, ptr noundef %153, ptr noundef %155)
          to label %157 unwind label %163

157:                                              ; preds = %139
  store i32 %156, ptr %26, align 4, !tbaa !5
  %158 = load i32, ptr %26, align 4, !tbaa !5
  %159 = load i32, ptr %8, align 4, !tbaa !5
  %160 = add nsw i32 %159, 1
  %161 = icmp slt i32 %158, %160
  br i1 %161, label %162, label %167

162:                                              ; preds = %157
  store i32 -1, ptr %7, align 4
  store i32 1, ptr %16, align 4
  br label %279

163:                                              ; preds = %139
  %164 = landingpad { ptr, i32 }
          cleanup
  %165 = extractvalue { ptr, i32 } %164, 0
  store ptr %165, ptr %19, align 8
  %166 = extractvalue { ptr, i32 } %164, 1
  store i32 %166, ptr %20, align 4
  br label %285

167:                                              ; preds = %157
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #9
  store i32 0, ptr %27, align 4, !tbaa !5
  br label %168

168:                                              ; preds = %275, %167
  %169 = load i32, ptr %27, align 4, !tbaa !5
  %170 = load i32, ptr %26, align 4, !tbaa !5
  %171 = icmp slt i32 %169, %170
  br i1 %171, label %173, label %172

172:                                              ; preds = %168
  store i32 8, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #9
  br label %278

173:                                              ; preds = %168
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #9
  %174 = getelementptr inbounds %"struct.ptm::atomicenv_t", ptr %25, i32 0, i32 1
  %175 = load i32, ptr %27, align 4, !tbaa !5
  %176 = sext i32 %175 to i64
  %177 = getelementptr inbounds [19 x i64], ptr %174, i64 0, i64 %176
  %178 = load i64, ptr %177, align 8, !tbaa !9
  store i64 %178, ptr %28, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 1, ptr %29) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr %30) #9
  %179 = invoke ptr @_ZNSt13unordered_setImSt4hashImESt8equal_toImESaImEE4findERKm(ptr noundef nonnull align 8 dereferenceable(56) %17, ptr noundef nonnull align 8 dereferenceable(8) %28)
          to label %180 unwind label %191

180:                                              ; preds = %173
  %181 = getelementptr inbounds %"struct.std::__detail::_Node_iterator", ptr %30, i32 0, i32 0
  %182 = getelementptr inbounds %"struct.std::__detail::_Node_iterator_base", ptr %181, i32 0, i32 0
  store ptr %179, ptr %182, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %31) #9
  %183 = call ptr @_ZNSt13unordered_setImSt4hashImESt8equal_toImESaImEE3endEv(ptr noundef nonnull align 8 dereferenceable(56) %17) #9
  %184 = getelementptr inbounds %"struct.std::__detail::_Node_iterator", ptr %31, i32 0, i32 0
  %185 = getelementptr inbounds %"struct.std::__detail::_Node_iterator_base", ptr %184, i32 0, i32 0
  store ptr %183, ptr %185, align 8
  %186 = call noundef zeroext i1 @_ZNSt8__detailneERKNS_19_Node_iterator_baseImLb0EEES3_(ptr noundef nonnull align 8 dereferenceable(8) %30, ptr noundef nonnull align 8 dereferenceable(8) %31) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #9
  %187 = zext i1 %186 to i8
  store i8 %187, ptr %29, align 1, !tbaa !15
  %188 = load i8, ptr %29, align 1, !tbaa !15, !range !17, !noundef !18
  %189 = trunc i8 %188 to i1
  br i1 %189, label %190, label %195

190:                                              ; preds = %180
  store i32 10, ptr %16, align 4
  br label %272

191:                                              ; preds = %173
  %192 = landingpad { ptr, i32 }
          cleanup
  %193 = extractvalue { ptr, i32 } %192, 0
  store ptr %193, ptr %19, align 8
  %194 = extractvalue { ptr, i32 } %192, 1
  store i32 %194, ptr %20, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #9
  call void @llvm.lifetime.end.p0(i64 1, ptr %29) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #9
  br label %285

195:                                              ; preds = %180
  %196 = load i32, ptr %24, align 4, !tbaa !5
  %197 = load i32, ptr %22, align 4, !tbaa !5
  %198 = sext i32 %197 to i64
  %199 = getelementptr inbounds [76 x %"struct.ptm::sorthelper_t"], ptr %23, i64 0, i64 %198
  %200 = getelementptr inbounds %"struct.ptm::sorthelper_t", ptr %199, i32 0, i32 1
  store i32 %196, ptr %200, align 4, !tbaa !19
  %201 = load i32, ptr %27, align 4, !tbaa !5
  %202 = load i32, ptr %22, align 4, !tbaa !5
  %203 = sext i32 %202 to i64
  %204 = getelementptr inbounds [76 x %"struct.ptm::sorthelper_t"], ptr %23, i64 0, i64 %203
  %205 = getelementptr inbounds %"struct.ptm::sorthelper_t", ptr %204, i32 0, i32 0
  store i32 %201, ptr %205, align 8, !tbaa !21
  %206 = getelementptr inbounds %"struct.ptm::atomicenv_t", ptr %25, i32 0, i32 0
  %207 = load i32, ptr %27, align 4, !tbaa !5
  %208 = sext i32 %207 to i64
  %209 = getelementptr inbounds [19 x i32], ptr %206, i64 0, i64 %208
  %210 = load i32, ptr %209, align 4, !tbaa !5
  %211 = load i32, ptr %22, align 4, !tbaa !5
  %212 = sext i32 %211 to i64
  %213 = getelementptr inbounds [76 x %"struct.ptm::sorthelper_t"], ptr %23, i64 0, i64 %212
  %214 = getelementptr inbounds %"struct.ptm::sorthelper_t", ptr %213, i32 0, i32 2
  store i32 %210, ptr %214, align 8, !tbaa !22
  %215 = getelementptr inbounds %"struct.ptm::atomicenv_t", ptr %25, i32 0, i32 1
  %216 = load i32, ptr %27, align 4, !tbaa !5
  %217 = sext i32 %216 to i64
  %218 = getelementptr inbounds [19 x i64], ptr %215, i64 0, i64 %217
  %219 = load i64, ptr %218, align 8, !tbaa !9
  %220 = load i32, ptr %22, align 4, !tbaa !5
  %221 = sext i32 %220 to i64
  %222 = getelementptr inbounds [76 x %"struct.ptm::sorthelper_t"], ptr %23, i64 0, i64 %221
  %223 = getelementptr inbounds %"struct.ptm::sorthelper_t", ptr %222, i32 0, i32 3
  store i64 %219, ptr %223, align 8, !tbaa !23
  %224 = getelementptr inbounds %"struct.ptm::atomicenv_t", ptr %25, i32 0, i32 2
  %225 = load i32, ptr %27, align 4, !tbaa !5
  %226 = sext i32 %225 to i64
  %227 = getelementptr inbounds [19 x i32], ptr %224, i64 0, i64 %226
  %228 = load i32, ptr %227, align 4, !tbaa !5
  %229 = load i32, ptr %22, align 4, !tbaa !5
  %230 = sext i32 %229 to i64
  %231 = getelementptr inbounds [76 x %"struct.ptm::sorthelper_t"], ptr %23, i64 0, i64 %230
  %232 = getelementptr inbounds %"struct.ptm::sorthelper_t", ptr %231, i32 0, i32 4
  store i32 %228, ptr %232, align 8, !tbaa !24
  %233 = load i32, ptr %22, align 4, !tbaa !5
  %234 = sext i32 %233 to i64
  %235 = getelementptr inbounds [76 x %"struct.ptm::sorthelper_t"], ptr %23, i64 0, i64 %234
  %236 = getelementptr inbounds %"struct.ptm::sorthelper_t", ptr %235, i32 0, i32 5
  %237 = getelementptr inbounds [3 x double], ptr %236, i64 0, i64 0
  %238 = getelementptr inbounds %"struct.ptm::atomicenv_t", ptr %25, i32 0, i32 3
  %239 = load i32, ptr %27, align 4, !tbaa !5
  %240 = sext i32 %239 to i64
  %241 = getelementptr inbounds [19 x [3 x double]], ptr %238, i64 0, i64 %240
  %242 = getelementptr inbounds [3 x double], ptr %241, i64 0, i64 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %237, ptr align 8 %242, i64 24, i1 false)
  call void @llvm.lifetime.start.p0(i64 4, ptr %32) #9
  store i32 0, ptr %32, align 4, !tbaa !5
  br label %243

243:                                              ; preds = %266, %195
  %244 = load i32, ptr %32, align 4, !tbaa !5
  %245 = icmp slt i32 %244, 3
  br i1 %245, label %247, label %246

246:                                              ; preds = %243
  store i32 11, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %32) #9
  br label %269

247:                                              ; preds = %243
  %248 = getelementptr inbounds %"struct.ptm::atomicenv_t", ptr %14, i32 0, i32 3
  %249 = load i32, ptr %24, align 4, !tbaa !5
  %250 = add nsw i32 1, %249
  %251 = sext i32 %250 to i64
  %252 = getelementptr inbounds [19 x [3 x double]], ptr %248, i64 0, i64 %251
  %253 = load i32, ptr %32, align 4, !tbaa !5
  %254 = sext i32 %253 to i64
  %255 = getelementptr inbounds [3 x double], ptr %252, i64 0, i64 %254
  %256 = load double, ptr %255, align 8, !tbaa !25
  %257 = load i32, ptr %22, align 4, !tbaa !5
  %258 = sext i32 %257 to i64
  %259 = getelementptr inbounds [76 x %"struct.ptm::sorthelper_t"], ptr %23, i64 0, i64 %258
  %260 = getelementptr inbounds %"struct.ptm::sorthelper_t", ptr %259, i32 0, i32 5
  %261 = load i32, ptr %32, align 4, !tbaa !5
  %262 = sext i32 %261 to i64
  %263 = getelementptr inbounds [3 x double], ptr %260, i64 0, i64 %262
  %264 = load double, ptr %263, align 8, !tbaa !25
  %265 = fadd double %264, %256
  store double %265, ptr %263, align 8, !tbaa !25
  br label %266

266:                                              ; preds = %247
  %267 = load i32, ptr %32, align 4, !tbaa !5
  %268 = add nsw i32 %267, 1
  store i32 %268, ptr %32, align 4, !tbaa !5
  br label %243, !llvm.loop !27

269:                                              ; preds = %246
  %270 = load i32, ptr %22, align 4, !tbaa !5
  %271 = add nsw i32 %270, 1
  store i32 %271, ptr %22, align 4, !tbaa !5
  store i32 0, ptr %16, align 4
  br label %272

272:                                              ; preds = %269, %190
  call void @llvm.lifetime.end.p0(i64 1, ptr %29) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #9
  %273 = load i32, ptr %16, align 4
  switch i32 %273, label %472 [
    i32 0, label %274
    i32 10, label %275
  ]

274:                                              ; preds = %272
  br label %275

275:                                              ; preds = %274, %272
  %276 = load i32, ptr %27, align 4, !tbaa !5
  %277 = add nsw i32 %276, 1
  store i32 %277, ptr %27, align 4, !tbaa !5
  br label %168, !llvm.loop !28

278:                                              ; preds = %172
  store i32 0, ptr %16, align 4
  br label %279

279:                                              ; preds = %278, %162
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #9
  call void @llvm.lifetime.end.p0(i64 768, ptr %25) #9
  %280 = load i32, ptr %16, align 4
  switch i32 %280, label %286 [
    i32 0, label %281
  ]

281:                                              ; preds = %279
  br label %282

282:                                              ; preds = %281
  %283 = load i32, ptr %24, align 4, !tbaa !5
  %284 = add nsw i32 %283, 1
  store i32 %284, ptr %24, align 4, !tbaa !5
  br label %134, !llvm.loop !29

285:                                              ; preds = %191, %163
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #9
  call void @llvm.lifetime.end.p0(i64 768, ptr %25) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #9
  br label %463

286:                                              ; preds = %279, %138
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #9
  %287 = load i32, ptr %16, align 4
  switch i32 %287, label %462 [
    i32 5, label %288
  ]

288:                                              ; preds = %286
  %289 = getelementptr inbounds [76 x %"struct.ptm::sorthelper_t"], ptr %23, i64 0, i64 0
  %290 = getelementptr inbounds [76 x %"struct.ptm::sorthelper_t"], ptr %23, i64 0, i64 0
  %291 = load i32, ptr %22, align 4, !tbaa !5
  %292 = sext i32 %291 to i64
  %293 = getelementptr inbounds %"struct.ptm::sorthelper_t", ptr %290, i64 %292
  invoke void @_ZSt4sortIPN3ptm12sorthelper_tEPFbRKS1_S4_EEvT_S7_T0_(ptr noundef %289, ptr noundef %293, ptr noundef @_ZN3ptmL18sorthelper_compareERKNS_12sorthelper_tES2_)
          to label %294 unwind label %300

294:                                              ; preds = %288
  call void @llvm.lifetime.start.p0(i64 4, ptr %33) #9
  store i32 0, ptr %33, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %34) #9
  call void @llvm.memset.p0.i64(ptr align 16 %34, i8 0, i64 16, i1 false)
  call void @llvm.lifetime.start.p0(i64 4, ptr %35) #9
  store i32 0, ptr %35, align 4, !tbaa !5
  br label %295

295:                                              ; preds = %448, %294
  %296 = load i32, ptr %35, align 4, !tbaa !5
  %297 = load i32, ptr %22, align 4, !tbaa !5
  %298 = icmp slt i32 %296, %297
  br i1 %298, label %304, label %299

299:                                              ; preds = %295
  store i32 14, ptr %16, align 4
  br label %452

300:                                              ; preds = %288
  %301 = landingpad { ptr, i32 }
          cleanup
  %302 = extractvalue { ptr, i32 } %301, 0
  store ptr %302, ptr %19, align 8
  %303 = extractvalue { ptr, i32 } %301, 1
  store i32 %303, ptr %20, align 4
  br label %463

304:                                              ; preds = %295
  call void @llvm.lifetime.start.p0(i64 4, ptr %36) #9
  %305 = load i32, ptr %35, align 4, !tbaa !5
  %306 = sext i32 %305 to i64
  %307 = getelementptr inbounds [76 x %"struct.ptm::sorthelper_t"], ptr %23, i64 0, i64 %306
  %308 = getelementptr inbounds %"struct.ptm::sorthelper_t", ptr %307, i32 0, i32 1
  %309 = load i32, ptr %308, align 4, !tbaa !19
  store i32 %309, ptr %36, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %37) #9
  %310 = load i32, ptr %35, align 4, !tbaa !5
  %311 = sext i32 %310 to i64
  %312 = getelementptr inbounds [76 x %"struct.ptm::sorthelper_t"], ptr %23, i64 0, i64 %311
  %313 = getelementptr inbounds %"struct.ptm::sorthelper_t", ptr %312, i32 0, i32 3
  %314 = load i64, ptr %313, align 8, !tbaa !23
  %315 = trunc i64 %314 to i32
  store i32 %315, ptr %37, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr %38) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr %39) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr %40) #9
  %316 = load i32, ptr %37, align 4, !tbaa !5
  %317 = sext i32 %316 to i64
  store i64 %317, ptr %40, align 8, !tbaa !9
  %318 = invoke ptr @_ZNSt13unordered_setImSt4hashImESt8equal_toImESaImEE4findERKm(ptr noundef nonnull align 8 dereferenceable(56) %17, ptr noundef nonnull align 8 dereferenceable(8) %40)
          to label %319 unwind label %337

319:                                              ; preds = %304
  %320 = getelementptr inbounds %"struct.std::__detail::_Node_iterator", ptr %39, i32 0, i32 0
  %321 = getelementptr inbounds %"struct.std::__detail::_Node_iterator_base", ptr %320, i32 0, i32 0
  store ptr %318, ptr %321, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %41) #9
  %322 = call ptr @_ZNSt13unordered_setImSt4hashImESt8equal_toImESaImEE3endEv(ptr noundef nonnull align 8 dereferenceable(56) %17) #9
  %323 = getelementptr inbounds %"struct.std::__detail::_Node_iterator", ptr %41, i32 0, i32 0
  %324 = getelementptr inbounds %"struct.std::__detail::_Node_iterator_base", ptr %323, i32 0, i32 0
  store ptr %322, ptr %324, align 8
  %325 = call noundef zeroext i1 @_ZNSt8__detailneERKNS_19_Node_iterator_baseImLb0EEES3_(ptr noundef nonnull align 8 dereferenceable(8) %39, ptr noundef nonnull align 8 dereferenceable(8) %41) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %41) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %40) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %39) #9
  %326 = zext i1 %325 to i8
  store i8 %326, ptr %38, align 1, !tbaa !15
  %327 = load i32, ptr %36, align 4, !tbaa !5
  %328 = sext i32 %327 to i64
  %329 = getelementptr inbounds [4 x i32], ptr %34, i64 0, i64 %328
  %330 = load i32, ptr %329, align 4, !tbaa !5
  %331 = load i32, ptr %9, align 4, !tbaa !5
  %332 = icmp sge i32 %330, %331
  br i1 %332, label %336, label %333

333:                                              ; preds = %319
  %334 = load i8, ptr %38, align 1, !tbaa !15, !range !17, !noundef !18
  %335 = trunc i8 %334 to i1
  br i1 %335, label %336, label %341

336:                                              ; preds = %333, %319
  store i32 16, ptr %16, align 4
  br label %445

337:                                              ; preds = %304
  %338 = landingpad { ptr, i32 }
          cleanup
  %339 = extractvalue { ptr, i32 } %338, 0
  store ptr %339, ptr %19, align 8
  %340 = extractvalue { ptr, i32 } %338, 1
  store i32 %340, ptr %20, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %40) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %39) #9
  br label %451

341:                                              ; preds = %333
  %342 = load i32, ptr %35, align 4, !tbaa !5
  %343 = sext i32 %342 to i64
  %344 = getelementptr inbounds [76 x %"struct.ptm::sorthelper_t"], ptr %23, i64 0, i64 %343
  %345 = getelementptr inbounds %"struct.ptm::sorthelper_t", ptr %344, i32 0, i32 2
  %346 = load i32, ptr %345, align 8, !tbaa !22
  %347 = load ptr, ptr %13, align 8, !tbaa !11
  %348 = getelementptr inbounds %"struct.ptm::atomicenv_t", ptr %347, i32 0, i32 0
  %349 = load i32, ptr %8, align 4, !tbaa !5
  %350 = add nsw i32 1, %349
  %351 = load i32, ptr %9, align 4, !tbaa !5
  %352 = load i32, ptr %36, align 4, !tbaa !5
  %353 = mul nsw i32 %351, %352
  %354 = add nsw i32 %350, %353
  %355 = load i32, ptr %36, align 4, !tbaa !5
  %356 = sext i32 %355 to i64
  %357 = getelementptr inbounds [4 x i32], ptr %34, i64 0, i64 %356
  %358 = load i32, ptr %357, align 4, !tbaa !5
  %359 = add nsw i32 %354, %358
  %360 = sext i32 %359 to i64
  %361 = getelementptr inbounds [19 x i32], ptr %348, i64 0, i64 %360
  store i32 %346, ptr %361, align 4, !tbaa !5
  %362 = load i32, ptr %37, align 4, !tbaa !5
  %363 = sext i32 %362 to i64
  %364 = load ptr, ptr %13, align 8, !tbaa !11
  %365 = getelementptr inbounds %"struct.ptm::atomicenv_t", ptr %364, i32 0, i32 1
  %366 = load i32, ptr %8, align 4, !tbaa !5
  %367 = add nsw i32 1, %366
  %368 = load i32, ptr %9, align 4, !tbaa !5
  %369 = load i32, ptr %36, align 4, !tbaa !5
  %370 = mul nsw i32 %368, %369
  %371 = add nsw i32 %367, %370
  %372 = load i32, ptr %36, align 4, !tbaa !5
  %373 = sext i32 %372 to i64
  %374 = getelementptr inbounds [4 x i32], ptr %34, i64 0, i64 %373
  %375 = load i32, ptr %374, align 4, !tbaa !5
  %376 = add nsw i32 %371, %375
  %377 = sext i32 %376 to i64
  %378 = getelementptr inbounds [19 x i64], ptr %365, i64 0, i64 %377
  store i64 %363, ptr %378, align 8, !tbaa !9
  %379 = load i32, ptr %35, align 4, !tbaa !5
  %380 = sext i32 %379 to i64
  %381 = getelementptr inbounds [76 x %"struct.ptm::sorthelper_t"], ptr %23, i64 0, i64 %380
  %382 = getelementptr inbounds %"struct.ptm::sorthelper_t", ptr %381, i32 0, i32 4
  %383 = load i32, ptr %382, align 8, !tbaa !24
  %384 = load ptr, ptr %13, align 8, !tbaa !11
  %385 = getelementptr inbounds %"struct.ptm::atomicenv_t", ptr %384, i32 0, i32 2
  %386 = load i32, ptr %8, align 4, !tbaa !5
  %387 = add nsw i32 1, %386
  %388 = load i32, ptr %9, align 4, !tbaa !5
  %389 = load i32, ptr %36, align 4, !tbaa !5
  %390 = mul nsw i32 %388, %389
  %391 = add nsw i32 %387, %390
  %392 = load i32, ptr %36, align 4, !tbaa !5
  %393 = sext i32 %392 to i64
  %394 = getelementptr inbounds [4 x i32], ptr %34, i64 0, i64 %393
  %395 = load i32, ptr %394, align 4, !tbaa !5
  %396 = add nsw i32 %391, %395
  %397 = sext i32 %396 to i64
  %398 = getelementptr inbounds [19 x i32], ptr %385, i64 0, i64 %397
  store i32 %383, ptr %398, align 4, !tbaa !5
  %399 = load ptr, ptr %13, align 8, !tbaa !11
  %400 = getelementptr inbounds %"struct.ptm::atomicenv_t", ptr %399, i32 0, i32 3
  %401 = load i32, ptr %8, align 4, !tbaa !5
  %402 = add nsw i32 1, %401
  %403 = load i32, ptr %9, align 4, !tbaa !5
  %404 = load i32, ptr %36, align 4, !tbaa !5
  %405 = mul nsw i32 %403, %404
  %406 = add nsw i32 %402, %405
  %407 = load i32, ptr %36, align 4, !tbaa !5
  %408 = sext i32 %407 to i64
  %409 = getelementptr inbounds [4 x i32], ptr %34, i64 0, i64 %408
  %410 = load i32, ptr %409, align 4, !tbaa !5
  %411 = add nsw i32 %406, %410
  %412 = sext i32 %411 to i64
  %413 = getelementptr inbounds [19 x [3 x double]], ptr %400, i64 0, i64 %412
  %414 = getelementptr inbounds [3 x double], ptr %413, i64 0, i64 0
  %415 = load i32, ptr %35, align 4, !tbaa !5
  %416 = sext i32 %415 to i64
  %417 = getelementptr inbounds [76 x %"struct.ptm::sorthelper_t"], ptr %23, i64 0, i64 %416
  %418 = getelementptr inbounds %"struct.ptm::sorthelper_t", ptr %417, i32 0, i32 5
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %414, ptr align 8 %418, i64 24, i1 false)
  call void @llvm.lifetime.start.p0(i64 8, ptr %42) #9
  %419 = load i32, ptr %37, align 4, !tbaa !5
  %420 = sext i32 %419 to i64
  store i64 %420, ptr %42, align 8, !tbaa !9
  %421 = invoke { ptr, i8 } @_ZNSt13unordered_setImSt4hashImESt8equal_toImESaImEE6insertEOm(ptr noundef nonnull align 8 dereferenceable(56) %17, ptr noundef nonnull align 8 dereferenceable(8) %42)
          to label %422 unwind label %440

422:                                              ; preds = %341
  %423 = getelementptr inbounds { ptr, i8 }, ptr %43, i32 0, i32 0
  %424 = extractvalue { ptr, i8 } %421, 0
  store ptr %424, ptr %423, align 8
  %425 = getelementptr inbounds { ptr, i8 }, ptr %43, i32 0, i32 1
  %426 = extractvalue { ptr, i8 } %421, 1
  store i8 %426, ptr %425, align 8
  call void @llvm.lifetime.end.p0(i64 8, ptr %42) #9
  %427 = load i32, ptr %36, align 4, !tbaa !5
  %428 = sext i32 %427 to i64
  %429 = getelementptr inbounds [4 x i32], ptr %34, i64 0, i64 %428
  %430 = load i32, ptr %429, align 4, !tbaa !5
  %431 = add nsw i32 %430, 1
  store i32 %431, ptr %429, align 4, !tbaa !5
  %432 = load i32, ptr %33, align 4, !tbaa !5
  %433 = add nsw i32 %432, 1
  store i32 %433, ptr %33, align 4, !tbaa !5
  %434 = load i32, ptr %33, align 4, !tbaa !5
  %435 = load i32, ptr %8, align 4, !tbaa !5
  %436 = load i32, ptr %9, align 4, !tbaa !5
  %437 = mul nsw i32 %435, %436
  %438 = icmp sge i32 %434, %437
  br i1 %438, label %439, label %444

439:                                              ; preds = %422
  store i32 14, ptr %16, align 4
  br label %445

440:                                              ; preds = %341
  %441 = landingpad { ptr, i32 }
          cleanup
  %442 = extractvalue { ptr, i32 } %441, 0
  store ptr %442, ptr %19, align 8
  %443 = extractvalue { ptr, i32 } %441, 1
  store i32 %443, ptr %20, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %42) #9
  br label %451

444:                                              ; preds = %422
  store i32 0, ptr %16, align 4
  br label %445

445:                                              ; preds = %444, %439, %336
  call void @llvm.lifetime.end.p0(i64 1, ptr %38) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %37) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %36) #9
  %446 = load i32, ptr %16, align 4
  switch i32 %446, label %452 [
    i32 0, label %447
    i32 16, label %448
  ]

447:                                              ; preds = %445
  br label %448

448:                                              ; preds = %447, %445
  %449 = load i32, ptr %35, align 4, !tbaa !5
  %450 = add nsw i32 %449, 1
  store i32 %450, ptr %35, align 4, !tbaa !5
  br label %295, !llvm.loop !30

451:                                              ; preds = %440, %337
  call void @llvm.lifetime.end.p0(i64 1, ptr %38) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %37) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %36) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %35) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr %34) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %33) #9
  br label %463

452:                                              ; preds = %445, %299
  call void @llvm.lifetime.end.p0(i64 4, ptr %35) #9
  br label %453

453:                                              ; preds = %452
  %454 = load i32, ptr %33, align 4, !tbaa !5
  %455 = load i32, ptr %8, align 4, !tbaa !5
  %456 = load i32, ptr %9, align 4, !tbaa !5
  %457 = mul nsw i32 %455, %456
  %458 = icmp ne i32 %454, %457
  br i1 %458, label %459, label %460

459:                                              ; preds = %453
  store i32 -1, ptr %7, align 4
  store i32 1, ptr %16, align 4
  br label %461

460:                                              ; preds = %453
  store i32 0, ptr %7, align 4
  store i32 1, ptr %16, align 4
  br label %461

461:                                              ; preds = %460, %459
  call void @llvm.lifetime.end.p0(i64 16, ptr %34) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %33) #9
  br label %462

462:                                              ; preds = %461, %286
  call void @llvm.lifetime.end.p0(i64 4256, ptr %23) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #9
  call void @_ZNSt13unordered_setImSt4hashImESt8equal_toImESaImEED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %17) #9
  call void @llvm.lifetime.end.p0(i64 56, ptr %17) #9
  br label %465

463:                                              ; preds = %451, %300, %285
  call void @llvm.lifetime.end.p0(i64 4256, ptr %23) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #9
  br label %464

464:                                              ; preds = %463, %129
  call void @_ZNSt13unordered_setImSt4hashImESt8equal_toImESaImEED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %17) #9
  call void @llvm.lifetime.end.p0(i64 56, ptr %17) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #9
  call void @llvm.lifetime.end.p0(i64 768, ptr %14) #9
  br label %467

465:                                              ; preds = %462, %66
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #9
  call void @llvm.lifetime.end.p0(i64 768, ptr %14) #9
  %466 = load i32, ptr %7, align 4
  ret i32 %466

467:                                              ; preds = %464
  %468 = load ptr, ptr %19, align 8
  %469 = load i32, ptr %20, align 4
  %470 = insertvalue { ptr, i32 } poison, ptr %468, 0
  %471 = insertvalue { ptr, i32 } %470, i32 %469, 1
  resume { ptr, i32 } %471

472:                                              ; preds = %272
  unreachable
}

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) #3

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt13unordered_setImSt4hashImESt8equal_toImESaImEEC2Ev(ptr noundef nonnull align 8 dereferenceable(56)) unnamed_addr #5 align 2

; Function Attrs: mustprogress uwtable
declare dso_local { ptr, i8 } @_ZNSt13unordered_setImSt4hashImESt8equal_toImESaImEE6insertERKm(ptr noundef nonnull align 8 dereferenceable(56), ptr noundef nonnull align 8 dereferenceable(8)) #2 align 2

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNSt8__detailneERKNS_19_Node_iterator_baseImLb0EEES3_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #5

; Function Attrs: mustprogress uwtable
declare dso_local ptr @_ZNSt13unordered_setImSt4hashImESt8equal_toImESaImEE4findERKm(ptr noundef nonnull align 8 dereferenceable(56), ptr noundef nonnull align 8 dereferenceable(8)) #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt13unordered_setImSt4hashImESt8equal_toImESaImEE3endEv(ptr noundef nonnull align 8 dereferenceable(56)) #5 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt4sortIPN3ptm12sorthelper_tEPFbRKS1_S4_EEvT_S7_T0_(ptr noundef, ptr noundef, ptr noundef) #6

; Function Attrs: mustprogress nounwind uwtable
declare hidden noundef zeroext i1 @_ZN3ptmL18sorthelper_compareERKNS_12sorthelper_tES2_(ptr noundef nonnull align 8 dereferenceable(56), ptr noundef nonnull align 8 dereferenceable(56)) #5

; Function Attrs: mustprogress uwtable
declare dso_local { ptr, i8 } @_ZNSt13unordered_setImSt4hashImESt8equal_toImESaImEE6insertEOm(ptr noundef nonnull align 8 dereferenceable(56), ptr noundef nonnull align 8 dereferenceable(8)) #2 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZNSt13unordered_setImSt4hashImESt8equal_toImESaImEED2Ev(ptr noundef nonnull align 8 dereferenceable(56)) unnamed_addr #7 align 2

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 = { noreturn nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #5 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { inlinehint 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 #7 = { inlinehint mustprogress 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 #8 = { noreturn nounwind }
attributes #9 = { 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 = !{!"long", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"any pointer", !7, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = !{!16, !16, i64 0}
!16 = !{!"bool", !7, i64 0}
!17 = !{i8 0, i8 2}
!18 = !{}
!19 = !{!20, !6, i64 4}
!20 = !{!"_ZTSN3ptm12sorthelper_tE", !6, i64 0, !6, i64 4, !6, i64 8, !10, i64 16, !6, i64 24, !7, i64 32}
!21 = !{!20, !6, i64 0}
!22 = !{!20, !6, i64 8}
!23 = !{!20, !10, i64 16}
!24 = !{!20, !6, i64 24}
!25 = !{!26, !26, i64 0}
!26 = !{!"double", !7, i64 0}
!27 = distinct !{!27, !14}
!28 = distinct !{!28, !14}
!29 = distinct !{!29, !14}
!30 = distinct !{!30, !14}


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

%"struct.ptm::atomicenv_t" = type { [19 x i32], [19 x i64], [19 x i32], [19 x [3 x double]] }
%"class.std::unordered_set" = type { %"class.std::_Hashtable" }
%"class.std::_Hashtable" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }
%"struct.std::__detail::_Hash_node_base" = type { ptr }
%"struct.std::__detail::_Prime_rehash_policy" = type { float, i64 }
%"struct.ptm::sorthelper_t" = type { i32, i32, i32, i64, i32, [3 x double] }
%"struct.std::__detail::_Node_iterator" = type { %"struct.std::__detail::_Node_iterator_base" }
%"struct.std::__detail::_Node_iterator_base" = type { ptr }

@.str = external hidden unnamed_addr constant [23 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [86 x i8], align 1
@__PRETTY_FUNCTION__._ZN3ptm38calculate_two_shell_neighbour_orderingEiimPFiPvmmiPiPmS1_PA3_dES0_PNS_11atomicenv_tE = external hidden unnamed_addr constant [175 x i8], align 1

; 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
define dso_local noundef i32 @_ZN3ptm38calculate_two_shell_neighbour_orderingEiimPFiPvmmiPiPmS1_PA3_dES0_PNS_11atomicenv_tE(i32 noundef %0, i32 noundef %1, i64 noundef %2, ptr nocapture noundef readonly %3, ptr noundef %4, ptr nocapture noundef writeonly %5) local_unnamed_addr #2 personality ptr @__gxx_personality_v0 {
  %7 = alloca %"struct.ptm::atomicenv_t", align 8
  %8 = alloca %"class.std::unordered_set", align 8
  %9 = alloca [76 x %"struct.ptm::sorthelper_t"], align 16
  %10 = alloca %"struct.ptm::atomicenv_t", align 8
  %11 = alloca i64, align 8
  %12 = alloca %"struct.std::__detail::_Node_iterator", align 8
  %13 = alloca %"struct.std::__detail::_Node_iterator", align 8
  %14 = alloca [4 x i32], align 16
  %15 = alloca %"struct.std::__detail::_Node_iterator", align 8
  %16 = alloca i64, align 8
  %17 = alloca %"struct.std::__detail::_Node_iterator", align 8
  %18 = alloca i64, align 8
  %19 = icmp slt i32 %0, 5
  br i1 %19, label %21, label %20

20:                                               ; preds = %6
  tail call void @__assert_fail(ptr noundef nonnull @.str, ptr noundef nonnull @.str.17, i32 noundef 48, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN3ptm38calculate_two_shell_neighbour_orderingEiimPFiPvmmiPiPmS1_PA3_dES0_PNS_11atomicenv_tE) #8
  unreachable

21:                                               ; preds = %6
  call void @llvm.lifetime.start.p0(i64 768, ptr nonnull %7) #9
  %22 = getelementptr inbounds i8, ptr %7, i64 80
  %23 = getelementptr inbounds i8, ptr %7, i64 232
  %24 = getelementptr inbounds i8, ptr %7, i64 312
  %25 = call noundef i32 %3(ptr noundef %4, i64 noundef -1, i64 noundef %2, i32 noundef 19, ptr noundef nonnull %7, ptr noundef nonnull %22, ptr noundef nonnull %23, ptr noundef nonnull %24)
  %26 = add nsw i32 %0, 1
  %.not = icmp sgt i32 %25, %0
  br i1 %.not, label %27, label %144

27:                                               ; preds = %21
  call void @llvm.lifetime.start.p0(i64 56, ptr nonnull %8) #9
  call void @_ZNSt13unordered_setImSt4hashImESt8equal_toImESaImEEC2Ev(ptr noundef nonnull align 8 dereferenceable(56) %8) #9
  %.not136164 = icmp slt i32 %0, 0
  br i1 %.not136164, label %._crit_edge.thread, label %.lr.ph

._crit_edge.thread:                               ; preds = %27
  call void @llvm.lifetime.start.p0(i64 4256, ptr nonnull %9) #9
  br label %.thread152

.lr.ph:                                           ; preds = %27
  %28 = getelementptr inbounds i8, ptr %5, i64 80
  %29 = getelementptr inbounds i8, ptr %5, i64 232
  %30 = getelementptr inbounds i8, ptr %5, i64 312
  %wide.trip.count = zext nneg i32 %26 to i64
  br label %34

._crit_edge:                                      ; preds = %47
  call void @llvm.lifetime.start.p0(i64 4256, ptr nonnull %9) #9
  %.not139171.not = icmp eq i32 %0, 0
  br i1 %.not139171.not, label %.thread152, label %.lr.ph174

.lr.ph174:                                        ; preds = %._crit_edge
  %31 = getelementptr inbounds i8, ptr %10, i64 80
  %32 = getelementptr inbounds i8, ptr %10, i64 232
  %33 = getelementptr inbounds i8, ptr %10, i64 312
  %wide.trip.count197 = zext nneg i32 %0 to i64
  br label %50

34:                                               ; preds = %.lr.ph, %47
  %indvars.iv = phi i64 [ 0, %.lr.ph ], [ %indvars.iv.next, %47 ]
  %35 = getelementptr inbounds [19 x i32], ptr %7, i64 0, i64 %indvars.iv
  %36 = load i32, ptr %35, align 4, !tbaa !5
  %37 = getelementptr inbounds [19 x i32], ptr %5, i64 0, i64 %indvars.iv
  store i32 %36, ptr %37, align 4, !tbaa !5
  %38 = getelementptr inbounds [19 x i64], ptr %22, i64 0, i64 %indvars.iv
  %39 = load i64, ptr %38, align 8, !tbaa !9
  %40 = getelementptr inbounds [19 x i64], ptr %28, i64 0, i64 %indvars.iv
  store i64 %39, ptr %40, align 8, !tbaa !9
  %41 = getelementptr inbounds [19 x i32], ptr %23, i64 0, i64 %indvars.iv
  %42 = load i32, ptr %41, align 4, !tbaa !5
  %43 = getelementptr inbounds [19 x i32], ptr %29, i64 0, i64 %indvars.iv
  store i32 %42, ptr %43, align 4, !tbaa !5
  %44 = getelementptr inbounds [19 x [3 x double]], ptr %30, i64 0, i64 %indvars.iv
  %45 = getelementptr inbounds [19 x [3 x double]], ptr %24, i64 0, i64 %indvars.iv
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %44, ptr noundef nonnull align 8 dereferenceable(24) %45, i64 24, i1 false)
  %46 = invoke { ptr, i8 } @_ZNSt13unordered_setImSt4hashImESt8equal_toImESaImEE6insertERKm(ptr noundef nonnull align 8 dereferenceable(56) %8, ptr noundef nonnull align 8 dereferenceable(8) %38)
          to label %47 unwind label %48

47:                                               ; preds = %34
  %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 %._crit_edge, label %34, !llvm.loop !11

48:                                               ; preds = %34
  %49 = landingpad { ptr, i32 }
          cleanup
  br label %143

50:                                               ; preds = %.lr.ph174, %._crit_edge170
  %indvars.iv194 = phi i64 [ 0, %.lr.ph174 ], [ %indvars.iv.next195, %._crit_edge170 ]
  %.0122173 = phi i32 [ 0, %.lr.ph174 ], [ %.1123.lcssa, %._crit_edge170 ]
  call void @llvm.lifetime.start.p0(i64 768, ptr nonnull %10) #9
  %indvars.iv.next195 = add nuw nsw i64 %indvars.iv194, 1
  %51 = getelementptr inbounds [19 x i64], ptr %22, i64 0, i64 %indvars.iv.next195
  %52 = load i64, ptr %51, align 8, !tbaa !9
  %53 = invoke noundef i32 %3(ptr noundef %4, i64 noundef -1, i64 noundef %52, i32 noundef 19, ptr noundef nonnull %10, ptr noundef nonnull %31, ptr noundef nonnull %32, ptr noundef nonnull %33)
          to label %54 unwind label %59

54:                                               ; preds = %50
  %.not137 = icmp sgt i32 %53, %0
  br i1 %.not137, label %.preheader, label %.thread150

.preheader:                                       ; preds = %54
  %55 = icmp sgt i32 %53, 0
  br i1 %55, label %.lr.ph169.preheader, label %._crit_edge170

.lr.ph169.preheader:                              ; preds = %.preheader
  %wide.trip.count192 = zext nneg i32 %53 to i64
  %56 = trunc nuw nsw i64 %indvars.iv194 to i32
  %57 = getelementptr inbounds [19 x [3 x double]], ptr %24, i64 0, i64 %indvars.iv.next195, i64 0
  %58 = getelementptr inbounds [19 x [3 x double]], ptr %24, i64 0, i64 %indvars.iv.next195, i64 2
  br label %.lr.ph169

.thread150:                                       ; preds = %54
  call void @llvm.lifetime.end.p0(i64 768, ptr nonnull %10) #9
  br label %141

59:                                               ; preds = %50
  %60 = landingpad { ptr, i32 }
          cleanup
  br label %93

.lr.ph169:                                        ; preds = %.lr.ph169.preheader, %92
  %indvars.iv189 = phi i64 [ 0, %.lr.ph169.preheader ], [ %indvars.iv.next190, %92 ]
  %.1123168 = phi i32 [ %.0122173, %.lr.ph169.preheader ], [ %.2124, %92 ]
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #9
  %61 = getelementptr inbounds [19 x i64], ptr %31, i64 0, i64 %indvars.iv189
  %62 = load i64, ptr %61, align 8, !tbaa !9
  store i64 %62, ptr %11, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #9
  %63 = invoke ptr @_ZNSt13unordered_setImSt4hashImESt8equal_toImESaImEE4findERKm(ptr noundef nonnull align 8 dereferenceable(56) %8, ptr noundef nonnull align 8 dereferenceable(8) %11)
          to label %64 unwind label %67

64:                                               ; preds = %.lr.ph169
  store ptr %63, ptr %12, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %13) #9
  %65 = call ptr @_ZNSt13unordered_setImSt4hashImESt8equal_toImESaImEE3endEv(ptr noundef nonnull align 8 dereferenceable(56) %8) #9
  store ptr %65, ptr %13, align 8
  %66 = call noundef zeroext i1 @_ZNSt8__detailneERKNS_19_Node_iterator_baseImLb0EEES3_(ptr noundef nonnull align 8 dereferenceable(8) %12, ptr noundef nonnull align 8 dereferenceable(8) %13) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #9
  br i1 %66, label %92, label %69

67:                                               ; preds = %.lr.ph169
  %68 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #9
  br label %93

69:                                               ; preds = %64
  %70 = sext i32 %.1123168 to i64
  %71 = getelementptr inbounds [76 x %"struct.ptm::sorthelper_t"], ptr %9, i64 0, i64 %70
  %72 = getelementptr inbounds i8, ptr %71, i64 4
  store i32 %56, ptr %72, align 4, !tbaa !13
  %73 = trunc nuw nsw i64 %indvars.iv189 to i32
  store i32 %73, ptr %71, align 8, !tbaa !15
  %74 = getelementptr inbounds [19 x i32], ptr %10, i64 0, i64 %indvars.iv189
  %75 = load i32, ptr %74, align 4, !tbaa !5
  %76 = getelementptr inbounds i8, ptr %71, i64 8
  store i32 %75, ptr %76, align 8, !tbaa !16
  %77 = load i64, ptr %61, align 8, !tbaa !9
  %78 = getelementptr inbounds i8, ptr %71, i64 16
  store i64 %77, ptr %78, align 8, !tbaa !17
  %79 = getelementptr inbounds [19 x i32], ptr %32, i64 0, i64 %indvars.iv189
  %80 = load i32, ptr %79, align 4, !tbaa !5
  %81 = getelementptr inbounds i8, ptr %71, i64 24
  store i32 %80, ptr %81, align 8, !tbaa !18
  %82 = getelementptr inbounds i8, ptr %71, i64 32
  %83 = getelementptr inbounds [19 x [3 x double]], ptr %33, i64 0, i64 %indvars.iv189
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %82, ptr noundef nonnull align 8 dereferenceable(24) %83, i64 24, i1 false)
  %84 = load <2 x double>, ptr %57, align 8, !tbaa !19
  %85 = load <2 x double>, ptr %82, align 8, !tbaa !19
  %86 = fadd <2 x double> %84, %85
  store <2 x double> %86, ptr %82, align 8, !tbaa !19
  %87 = load double, ptr %58, align 8, !tbaa !19
  %88 = getelementptr inbounds i8, ptr %71, i64 48
  %89 = load double, ptr %88, align 8, !tbaa !19
  %90 = fadd double %87, %89
  store double %90, ptr %88, align 8, !tbaa !19
  %91 = add nsw i32 %.1123168, 1
  br label %92

92:                                               ; preds = %64, %69
  %.2124 = phi i32 [ %91, %69 ], [ %.1123168, %64 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #9
  %indvars.iv.next190 = add nuw nsw i64 %indvars.iv189, 1
  %exitcond193.not = icmp eq i64 %indvars.iv.next190, %wide.trip.count192
  br i1 %exitcond193.not, label %._crit_edge170, label %.lr.ph169, !llvm.loop !21

._crit_edge170:                                   ; preds = %92, %.preheader
  %.1123.lcssa = phi i32 [ %.0122173, %.preheader ], [ %.2124, %92 ]
  call void @llvm.lifetime.end.p0(i64 768, ptr nonnull %10) #9
  %exitcond198.not = icmp eq i64 %indvars.iv.next195, %wide.trip.count197
  br i1 %exitcond198.not, label %.thread152, label %50

93:                                               ; preds = %67, %59
  %.pn = phi { ptr, i32 } [ %68, %67 ], [ %60, %59 ]
  call void @llvm.lifetime.end.p0(i64 768, ptr nonnull %10) #9
  br label %142

.thread152:                                       ; preds = %._crit_edge170, %._crit_edge.thread, %._crit_edge
  %.0122.lcssa = phi i32 [ 0, %._crit_edge ], [ 0, %._crit_edge.thread ], [ %.1123.lcssa, %._crit_edge170 ]
  %94 = sext i32 %.0122.lcssa to i64
  %95 = getelementptr inbounds %"struct.ptm::sorthelper_t", ptr %9, i64 %94
  invoke void @_ZSt4sortIPN3ptm12sorthelper_tEPFbRKS1_S4_EEvT_S7_T0_(ptr noundef nonnull %9, ptr noundef nonnull %95, ptr noundef nonnull @_ZN3ptmL18sorthelper_compareERKNS_12sorthelper_tES2_)
          to label %96 unwind label %102

96:                                               ; preds = %.thread152
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %14) #9
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(16) %14, i8 0, i64 16, i1 false)
  %97 = icmp sgt i32 %.0122.lcssa, 0
  br i1 %97, label %.lr.ph179, label %.._crit_edge180_crit_edge

.._crit_edge180_crit_edge:                        ; preds = %96
  %.pre = mul nsw i32 %1, %0
  br label %._crit_edge180

.lr.ph179:                                        ; preds = %96
  %98 = getelementptr inbounds i8, ptr %5, i64 80
  %99 = getelementptr inbounds i8, ptr %5, i64 232
  %100 = getelementptr inbounds i8, ptr %5, i64 312
  %101 = mul nsw i32 %1, %0
  %wide.trip.count202 = zext nneg i32 %.0122.lcssa to i64
  br label %104

102:                                              ; preds = %.thread152
  %103 = landingpad { ptr, i32 }
          cleanup
  br label %142

104:                                              ; preds = %.lr.ph179, %select.unfold
  %indvars.iv199 = phi i64 [ 0, %.lr.ph179 ], [ %indvars.iv.next200, %select.unfold ]
  %.0118176 = phi i32 [ 0, %.lr.ph179 ], [ %.1119.ph, %select.unfold ]
  %105 = getelementptr inbounds [76 x %"struct.ptm::sorthelper_t"], ptr %9, i64 0, i64 %indvars.iv199
  %106 = getelementptr inbounds i8, ptr %105, i64 4
  %107 = load i32, ptr %106, align 4, !tbaa !13
  %108 = getelementptr inbounds i8, ptr %105, i64 16
  %109 = load i64, ptr %108, align 8, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %15) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %16) #9
  %sext = shl i64 %109, 32
  %110 = ashr exact i64 %sext, 32
  store i64 %110, ptr %16, align 8, !tbaa !9
  %111 = invoke ptr @_ZNSt13unordered_setImSt4hashImESt8equal_toImESaImEE4findERKm(ptr noundef nonnull align 8 dereferenceable(56) %8, ptr noundef nonnull align 8 dereferenceable(8) %16)
          to label %112 unwind label %118

112:                                              ; preds = %104
  store ptr %111, ptr %15, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %17) #9
  %113 = call ptr @_ZNSt13unordered_setImSt4hashImESt8equal_toImESaImEE3endEv(ptr noundef nonnull align 8 dereferenceable(56) %8) #9
  store ptr %113, ptr %17, align 8
  %114 = call noundef zeroext i1 @_ZNSt8__detailneERKNS_19_Node_iterator_baseImLb0EEES3_(ptr noundef nonnull align 8 dereferenceable(8) %15, ptr noundef nonnull align 8 dereferenceable(8) %17) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %17) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %16) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %15) #9
  %115 = sext i32 %107 to i64
  %116 = getelementptr inbounds [4 x i32], ptr %14, i64 0, i64 %115
  %117 = load i32, ptr %116, align 4, !tbaa !5
  %.not140 = icmp sge i32 %117, %1
  %brmerge = or i1 %114, %.not140
  br i1 %brmerge, label %select.unfold, label %120

118:                                              ; preds = %104
  %119 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %16) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %15) #9
  br label %140

120:                                              ; preds = %112
  %121 = getelementptr inbounds i8, ptr %105, i64 8
  %122 = load i32, ptr %121, align 8, !tbaa !16
  %123 = mul nsw i32 %107, %1
  %124 = add nsw i32 %26, %123
  %125 = add nsw i32 %124, %117
  %126 = sext i32 %125 to i64
  %127 = getelementptr inbounds [19 x i32], ptr %5, i64 0, i64 %126
  store i32 %122, ptr %127, align 4, !tbaa !5
  %128 = getelementptr inbounds [19 x i64], ptr %98, i64 0, i64 %126
  store i64 %110, ptr %128, align 8, !tbaa !9
  %129 = getelementptr inbounds i8, ptr %105, i64 24
  %130 = load i32, ptr %129, align 8, !tbaa !18
  %131 = getelementptr inbounds [19 x i32], ptr %99, i64 0, i64 %126
  store i32 %130, ptr %131, align 4, !tbaa !5
  %132 = getelementptr inbounds [19 x [3 x double]], ptr %100, i64 0, i64 %126
  %133 = getelementptr inbounds i8, ptr %105, i64 32
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %132, ptr noundef nonnull align 8 dereferenceable(24) %133, i64 24, i1 false)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %18) #9
  store i64 %110, ptr %18, align 8, !tbaa !9
  %134 = invoke { ptr, i8 } @_ZNSt13unordered_setImSt4hashImESt8equal_toImESaImEE6insertEOm(ptr noundef nonnull align 8 dereferenceable(56) %8, ptr noundef nonnull align 8 dereferenceable(8) %18)
          to label %135 unwind label %138

135:                                              ; preds = %120
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %18) #9
  %136 = add nsw i32 %117, 1
  store i32 %136, ptr %116, align 4, !tbaa !5
  %137 = add nsw i32 %.0118176, 1
  %.not144 = icmp slt i32 %137, %101
  br i1 %.not144, label %select.unfold, label %._crit_edge180

138:                                              ; preds = %120
  %139 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %18) #9
  br label %140

select.unfold:                                    ; preds = %135, %112
  %.1119.ph = phi i32 [ %.0118176, %112 ], [ %137, %135 ]
  %indvars.iv.next200 = add nuw nsw i64 %indvars.iv199, 1
  %exitcond203.not = icmp eq i64 %indvars.iv.next200, %wide.trip.count202
  br i1 %exitcond203.not, label %._crit_edge180, label %104, !llvm.loop !22

140:                                              ; preds = %138, %118
  %.pn141 = phi { ptr, i32 } [ %139, %138 ], [ %119, %118 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %14) #9
  br label %142

._crit_edge180:                                   ; preds = %select.unfold, %135, %.._crit_edge180_crit_edge
  %.pre-phi = phi i32 [ %.pre, %.._crit_edge180_crit_edge ], [ %101, %135 ], [ %101, %select.unfold ]
  %.2120 = phi i32 [ 0, %.._crit_edge180_crit_edge ], [ %.1119.ph, %select.unfold ], [ %137, %135 ]
  %.not145 = icmp ne i32 %.2120, %.pre-phi
  %.148 = sext i1 %.not145 to i32
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %14) #9
  br label %141

141:                                              ; preds = %.thread150, %._crit_edge180
  %.4 = phi i32 [ %.148, %._crit_edge180 ], [ -1, %.thread150 ]
  call void @llvm.lifetime.end.p0(i64 4256, ptr nonnull %9) #9
  call void @_ZNSt13unordered_setImSt4hashImESt8equal_toImESaImEED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %8) #9
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %8) #9
  br label %144

142:                                              ; preds = %140, %102, %93
  %.pn141.pn = phi { ptr, i32 } [ %.pn141, %140 ], [ %103, %102 ], [ %.pn, %93 ]
  call void @llvm.lifetime.end.p0(i64 4256, ptr nonnull %9) #9
  br label %143

143:                                              ; preds = %142, %48
  %.pn146 = phi { ptr, i32 } [ %49, %48 ], [ %.pn141.pn, %142 ]
  call void @_ZNSt13unordered_setImSt4hashImESt8equal_toImESaImEED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %8) #9
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %8) #9
  call void @llvm.lifetime.end.p0(i64 768, ptr nonnull %7) #9
  resume { ptr, i32 } %.pn146

144:                                              ; preds = %21, %141
  %.5 = phi i32 [ %.4, %141 ], [ -1, %21 ]
  call void @llvm.lifetime.end.p0(i64 768, ptr nonnull %7) #9
  ret i32 %.5
}

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #3

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt13unordered_setImSt4hashImESt8equal_toImESaImEEC2Ev(ptr noundef nonnull align 8 dereferenceable(56)) unnamed_addr #5 align 2

; Function Attrs: mustprogress uwtable
declare dso_local { ptr, i8 } @_ZNSt13unordered_setImSt4hashImESt8equal_toImESaImEE6insertERKm(ptr noundef nonnull align 8 dereferenceable(56), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #2 align 2

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNSt8__detailneERKNS_19_Node_iterator_baseImLb0EEES3_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #5

; Function Attrs: mustprogress uwtable
declare dso_local ptr @_ZNSt13unordered_setImSt4hashImESt8equal_toImESaImEE4findERKm(ptr noundef nonnull align 8 dereferenceable(56), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt13unordered_setImSt4hashImESt8equal_toImESaImEE3endEv(ptr noundef nonnull align 8 dereferenceable(56)) local_unnamed_addr #5 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt4sortIPN3ptm12sorthelper_tEPFbRKS1_S4_EEvT_S7_T0_(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #6

; Function Attrs: mustprogress nounwind uwtable
declare hidden noundef zeroext i1 @_ZN3ptmL18sorthelper_compareERKNS_12sorthelper_tES2_(ptr noundef nonnull align 8 dereferenceable(56), ptr noundef nonnull align 8 dereferenceable(56)) #5

; Function Attrs: mustprogress uwtable
declare dso_local { ptr, i8 } @_ZNSt13unordered_setImSt4hashImESt8equal_toImESaImEE6insertEOm(ptr noundef nonnull align 8 dereferenceable(56), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #2 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZNSt13unordered_setImSt4hashImESt8equal_toImESaImEED2Ev(ptr noundef nonnull align 8 dereferenceable(56)) unnamed_addr #7 align 2

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 = { noreturn nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #5 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { inlinehint 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 #7 = { inlinehint mustprogress 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 #8 = { noreturn nounwind }
attributes #9 = { 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 = !{!"long", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = !{!14, !6, i64 4}
!14 = !{!"_ZTSN3ptm12sorthelper_tE", !6, i64 0, !6, i64 4, !6, i64 8, !10, i64 16, !6, i64 24, !7, i64 32}
!15 = !{!14, !6, i64 0}
!16 = !{!14, !6, i64 8}
!17 = !{!14, !10, i64 16}
!18 = !{!14, !6, i64 24}
!19 = !{!20, !20, i64 0}
!20 = !{!"double", !7, i64 0}
!21 = distinct !{!21, !12}
!22 = distinct !{!22, !12}


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