; LLVM IR from ERGO-Code/HiGHS :: src/util/HSet.ll (ZNK4HSet5debugEv)

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

%class.HSet = type { i32, %"class.std::vector", i8, i8, i8, i8, ptr, i32, %"class.std::vector" }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" = type { ptr, ptr, ptr }

@.str = external hidden unnamed_addr constant [31 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [67 x i8], align 1
@__PRETTY_FUNCTION__._ZNK4HSet5debugEv = external hidden unnamed_addr constant [25 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [57 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [49 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [38 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [46 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [9 x i8], align 1

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZNK4HSet5debugEv(ptr noundef nonnull align 8 dereferenceable(80) %0) #0 align 2 {
  %2 = alloca i1, align 1
  %3 = alloca ptr, align 8
  %4 = alloca i8, align 1
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i8, align 1
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i8, align 1
  %12 = alloca i32, align 4
  %13 = alloca i8, align 1
  %14 = alloca i8, align 1
  store ptr %0, ptr %3, align 8, !tbaa !5
  %15 = load ptr, ptr %3, align 8
  %16 = getelementptr inbounds %class.HSet, ptr %15, i32 0, i32 2
  %17 = load i8, ptr %16, align 8, !tbaa !9, !range !17, !noundef !18
  %18 = trunc i8 %17 to i1
  br i1 %18, label %40, label %19

19:                                               ; preds = %1
  %20 = getelementptr inbounds %class.HSet, ptr %15, i32 0, i32 5
  %21 = load i8, ptr %20, align 1, !tbaa !19, !range !17, !noundef !18
  %22 = trunc i8 %21 to i1
  br i1 %22, label %23, label %27

23:                                               ; preds = %19
  %24 = getelementptr inbounds %class.HSet, ptr %15, i32 0, i32 6
  %25 = load ptr, ptr %24, align 8, !tbaa !20
  %26 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %25, ptr noundef @.str) #5
  br label %27

27:                                               ; preds = %23, %19
  %28 = getelementptr inbounds %class.HSet, ptr %15, i32 0, i32 4
  %29 = load i8, ptr %28, align 2, !tbaa !21, !range !17, !noundef !18
  %30 = trunc i8 %29 to i1
  br i1 %30, label %31, label %39

31:                                               ; preds = %27
  %32 = getelementptr inbounds %class.HSet, ptr %15, i32 0, i32 2
  %33 = load i8, ptr %32, align 8, !tbaa !9, !range !17, !noundef !18
  %34 = trunc i8 %33 to i1
  br i1 %34, label %35, label %36

35:                                               ; preds = %31
  br label %38

36:                                               ; preds = %31
  call void @__assert_fail(ptr noundef @.str.1, ptr noundef @.str.2, i32 noundef 96, ptr noundef @__PRETTY_FUNCTION__._ZNK4HSet5debugEv) #6
  unreachable

37:                                               ; No predecessors!
  br label %38

38:                                               ; preds = %37, %35
  br label %39

39:                                               ; preds = %38, %27
  store i1 false, ptr %2, align 1
  br label %240

40:                                               ; preds = %1
  call void @llvm.lifetime.start.p0(i64 1, ptr %4) #5
  %41 = getelementptr inbounds %class.HSet, ptr %15, i32 0, i32 7
  %42 = load i32, ptr %41, align 8, !tbaa !22
  %43 = icmp sge i32 %42, 0
  %44 = zext i1 %43 to i8
  store i8 %44, ptr %4, align 1, !tbaa !23
  %45 = load i8, ptr %4, align 1, !tbaa !23, !range !17, !noundef !18
  %46 = trunc i8 %45 to i1
  br i1 %46, label %69, label %47

47:                                               ; preds = %40
  %48 = getelementptr inbounds %class.HSet, ptr %15, i32 0, i32 5
  %49 = load i8, ptr %48, align 1, !tbaa !19, !range !17, !noundef !18
  %50 = trunc i8 %49 to i1
  br i1 %50, label %51, label %57

51:                                               ; preds = %47
  %52 = getelementptr inbounds %class.HSet, ptr %15, i32 0, i32 6
  %53 = load ptr, ptr %52, align 8, !tbaa !20
  %54 = getelementptr inbounds %class.HSet, ptr %15, i32 0, i32 7
  %55 = load i32, ptr %54, align 8, !tbaa !22
  %56 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %53, ptr noundef @.str.3, i32 noundef %55, i32 noundef 0) #5
  call void @_ZNK4HSet5printEv(ptr noundef nonnull align 8 dereferenceable(80) %15)
  br label %57

57:                                               ; preds = %51, %47
  %58 = getelementptr inbounds %class.HSet, ptr %15, i32 0, i32 4
  %59 = load i8, ptr %58, align 2, !tbaa !21, !range !17, !noundef !18
  %60 = trunc i8 %59 to i1
  br i1 %60, label %61, label %68

61:                                               ; preds = %57
  %62 = load i8, ptr %4, align 1, !tbaa !23, !range !17, !noundef !18
  %63 = trunc i8 %62 to i1
  br i1 %63, label %64, label %65

64:                                               ; preds = %61
  br label %67

65:                                               ; preds = %61
  call void @__assert_fail(ptr noundef @.str.4, ptr noundef @.str.2, i32 noundef 108, ptr noundef @__PRETTY_FUNCTION__._ZNK4HSet5debugEv) #6
  unreachable

66:                                               ; No predecessors!
  br label %67

67:                                               ; preds = %66, %64
  br label %68

68:                                               ; preds = %67, %57
  store i1 false, ptr %2, align 1
  store i32 1, ptr %5, align 4
  br label %239

69:                                               ; preds = %40
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #5
  %70 = getelementptr inbounds %class.HSet, ptr %15, i32 0, i32 1
  %71 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %70) #5
  %72 = trunc i64 %71 to i32
  store i32 %72, ptr %6, align 4, !tbaa !24
  call void @llvm.lifetime.start.p0(i64 1, ptr %7) #5
  %73 = load i32, ptr %6, align 4, !tbaa !24
  %74 = getelementptr inbounds %class.HSet, ptr %15, i32 0, i32 0
  %75 = load i32, ptr %74, align 8, !tbaa !25
  %76 = icmp sge i32 %73, %75
  %77 = zext i1 %76 to i8
  store i8 %77, ptr %7, align 1, !tbaa !23
  %78 = load i8, ptr %7, align 1, !tbaa !23, !range !17, !noundef !18
  %79 = trunc i8 %78 to i1
  br i1 %79, label %103, label %80

80:                                               ; preds = %69
  %81 = getelementptr inbounds %class.HSet, ptr %15, i32 0, i32 5
  %82 = load i8, ptr %81, align 1, !tbaa !19, !range !17, !noundef !18
  %83 = trunc i8 %82 to i1
  br i1 %83, label %84, label %91

84:                                               ; preds = %80
  %85 = getelementptr inbounds %class.HSet, ptr %15, i32 0, i32 6
  %86 = load ptr, ptr %85, align 8, !tbaa !20
  %87 = load i32, ptr %6, align 4, !tbaa !24
  %88 = getelementptr inbounds %class.HSet, ptr %15, i32 0, i32 0
  %89 = load i32, ptr %88, align 8, !tbaa !25
  %90 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %86, ptr noundef @.str.5, i32 noundef %87, i32 noundef %89) #5
  call void @_ZNK4HSet5printEv(ptr noundef nonnull align 8 dereferenceable(80) %15)
  br label %91

91:                                               ; preds = %84, %80
  %92 = getelementptr inbounds %class.HSet, ptr %15, i32 0, i32 4
  %93 = load i8, ptr %92, align 2, !tbaa !21, !range !17, !noundef !18
  %94 = trunc i8 %93 to i1
  br i1 %94, label %95, label %102

95:                                               ; preds = %91
  %96 = load i8, ptr %7, align 1, !tbaa !23, !range !17, !noundef !18
  %97 = trunc i8 %96 to i1
  br i1 %97, label %98, label %99

98:                                               ; preds = %95
  br label %101

99:                                               ; preds = %95
  call void @__assert_fail(ptr noundef @.str.6, ptr noundef @.str.2, i32 noundef 121, ptr noundef @__PRETTY_FUNCTION__._ZNK4HSet5debugEv) #6
  unreachable

100:                                              ; No predecessors!
  br label %101

101:                                              ; preds = %100, %98
  br label %102

102:                                              ; preds = %101, %91
  store i1 false, ptr %2, align 1
  store i32 1, ptr %5, align 4
  br label %238

103:                                              ; preds = %69
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #5
  store i32 0, ptr %8, align 4, !tbaa !24
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #5
  store i32 0, ptr %9, align 4, !tbaa !24
  br label %104

104:                                              ; preds = %199, %103
  %105 = load i32, ptr %9, align 4, !tbaa !24
  %106 = getelementptr inbounds %class.HSet, ptr %15, i32 0, i32 7
  %107 = load i32, ptr %106, align 8, !tbaa !22
  %108 = icmp sle i32 %105, %107
  br i1 %108, label %110, label %109

109:                                              ; preds = %104
  store i32 2, ptr %5, align 4
  br label %202

110:                                              ; preds = %104
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #5
  %111 = getelementptr inbounds %class.HSet, ptr %15, i32 0, i32 8
  %112 = load i32, ptr %9, align 4, !tbaa !24
  %113 = sext i32 %112 to i64
  %114 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %111, i64 noundef %113) #5
  %115 = load i32, ptr %114, align 4, !tbaa !24
  store i32 %115, ptr %10, align 4, !tbaa !24
  %116 = load i32, ptr %10, align 4, !tbaa !24
  %117 = icmp eq i32 %116, -1
  br i1 %117, label %118, label %119

118:                                              ; preds = %110
  store i32 4, ptr %5, align 4
  br label %196

119:                                              ; preds = %110
  call void @llvm.lifetime.start.p0(i64 1, ptr %11) #5
  %120 = load i32, ptr %10, align 4, !tbaa !24
  %121 = icmp sge i32 %120, 0
  br i1 %121, label %122, label %127

122:                                              ; preds = %119
  %123 = load i32, ptr %10, align 4, !tbaa !24
  %124 = getelementptr inbounds %class.HSet, ptr %15, i32 0, i32 0
  %125 = load i32, ptr %124, align 8, !tbaa !25
  %126 = icmp slt i32 %123, %125
  br label %127

127:                                              ; preds = %122, %119
  %128 = phi i1 [ false, %119 ], [ %126, %122 ]
  %129 = zext i1 %128 to i8
  store i8 %129, ptr %11, align 1, !tbaa !23
  %130 = load i8, ptr %11, align 1, !tbaa !23, !range !17, !noundef !18
  %131 = trunc i8 %130 to i1
  br i1 %131, label %156, label %132

132:                                              ; preds = %127
  %133 = getelementptr inbounds %class.HSet, ptr %15, i32 0, i32 5
  %134 = load i8, ptr %133, align 1, !tbaa !19, !range !17, !noundef !18
  %135 = trunc i8 %134 to i1
  br i1 %135, label %136, label %144

136:                                              ; preds = %132
  %137 = getelementptr inbounds %class.HSet, ptr %15, i32 0, i32 6
  %138 = load ptr, ptr %137, align 8, !tbaa !20
  %139 = load i32, ptr %9, align 4, !tbaa !24
  %140 = load i32, ptr %10, align 4, !tbaa !24
  %141 = getelementptr inbounds %class.HSet, ptr %15, i32 0, i32 0
  %142 = load i32, ptr %141, align 8, !tbaa !25
  %143 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %138, ptr noundef @.str.7, i32 noundef %139, i32 noundef %140, i32 noundef %142) #5
  call void @_ZNK4HSet5printEv(ptr noundef nonnull align 8 dereferenceable(80) %15)
  br label %144

144:                                              ; preds = %136, %132
  %145 = getelementptr inbounds %class.HSet, ptr %15, i32 0, i32 4
  %146 = load i8, ptr %145, align 2, !tbaa !21, !range !17, !noundef !18
  %147 = trunc i8 %146 to i1
  br i1 %147, label %148, label %155

148:                                              ; preds = %144
  %149 = load i8, ptr %11, align 1, !tbaa !23, !range !17, !noundef !18
  %150 = trunc i8 %149 to i1
  br i1 %150, label %151, label %152

151:                                              ; preds = %148
  br label %154

152:                                              ; preds = %148
  call void @__assert_fail(ptr noundef @.str.8, ptr noundef @.str.2, i32 noundef 138, ptr noundef @__PRETTY_FUNCTION__._ZNK4HSet5debugEv) #6
  unreachable

153:                                              ; No predecessors!
  br label %154

154:                                              ; preds = %153, %151
  br label %155

155:                                              ; preds = %154, %144
  store i1 false, ptr %2, align 1
  store i32 1, ptr %5, align 4
  br label %195

156:                                              ; preds = %127
  %157 = load i32, ptr %8, align 4, !tbaa !24
  %158 = add nsw i32 %157, 1
  store i32 %158, ptr %8, align 4, !tbaa !24
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #5
  %159 = getelementptr inbounds %class.HSet, ptr %15, i32 0, i32 1
  %160 = load i32, ptr %10, align 4, !tbaa !24
  %161 = sext i32 %160 to i64
  %162 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %159, i64 noundef %161) #5
  %163 = load i32, ptr %162, align 4, !tbaa !24
  store i32 %163, ptr %12, align 4, !tbaa !24
  call void @llvm.lifetime.start.p0(i64 1, ptr %13) #5
  %164 = load i32, ptr %12, align 4, !tbaa !24
  %165 = load i32, ptr %9, align 4, !tbaa !24
  %166 = icmp eq i32 %164, %165
  %167 = zext i1 %166 to i8
  store i8 %167, ptr %13, align 1, !tbaa !23
  %168 = load i8, ptr %13, align 1, !tbaa !23, !range !17, !noundef !18
  %169 = trunc i8 %168 to i1
  br i1 %169, label %193, label %170

170:                                              ; preds = %156
  %171 = getelementptr inbounds %class.HSet, ptr %15, i32 0, i32 5
  %172 = load i8, ptr %171, align 1, !tbaa !19, !range !17, !noundef !18
  %173 = trunc i8 %172 to i1
  br i1 %173, label %174, label %181

174:                                              ; preds = %170
  %175 = getelementptr inbounds %class.HSet, ptr %15, i32 0, i32 6
  %176 = load ptr, ptr %175, align 8, !tbaa !20
  %177 = load i32, ptr %10, align 4, !tbaa !24
  %178 = load i32, ptr %12, align 4, !tbaa !24
  %179 = load i32, ptr %9, align 4, !tbaa !24
  %180 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %176, ptr noundef @.str.9, i32 noundef %177, i32 noundef %178, i32 noundef %179) #5
  call void @_ZNK4HSet5printEv(ptr noundef nonnull align 8 dereferenceable(80) %15)
  br label %181

181:                                              ; preds = %174, %170
  %182 = getelementptr inbounds %class.HSet, ptr %15, i32 0, i32 4
  %183 = load i8, ptr %182, align 2, !tbaa !21, !range !17, !noundef !18
  %184 = trunc i8 %183 to i1
  br i1 %184, label %185, label %192

185:                                              ; preds = %181
  %186 = load i8, ptr %13, align 1, !tbaa !23, !range !17, !noundef !18
  %187 = trunc i8 %186 to i1
  br i1 %187, label %188, label %189

188:                                              ; preds = %185
  br label %191

189:                                              ; preds = %185
  call void @__assert_fail(ptr noundef @.str.10, ptr noundef @.str.2, i32 noundef 152, ptr noundef @__PRETTY_FUNCTION__._ZNK4HSet5debugEv) #6
  unreachable

190:                                              ; No predecessors!
  br label %191

191:                                              ; preds = %190, %188
  br label %192

192:                                              ; preds = %191, %181
  store i1 false, ptr %2, align 1
  store i32 1, ptr %5, align 4
  br label %194

193:                                              ; preds = %156
  store i32 0, ptr %5, align 4
  br label %194

194:                                              ; preds = %193, %192
  call void @llvm.lifetime.end.p0(i64 1, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #5
  br label %195

195:                                              ; preds = %194, %155
  call void @llvm.lifetime.end.p0(i64 1, ptr %11) #5
  br label %196

196:                                              ; preds = %195, %118
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #5
  %197 = load i32, ptr %5, align 4
  switch i32 %197, label %202 [
    i32 0, label %198
    i32 4, label %199
  ]

198:                                              ; preds = %196
  br label %199

199:                                              ; preds = %198, %196
  %200 = load i32, ptr %9, align 4, !tbaa !24
  %201 = add nsw i32 %200, 1
  store i32 %201, ptr %9, align 4, !tbaa !24
  br label %104, !llvm.loop !26

202:                                              ; preds = %196, %109
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #5
  %203 = load i32, ptr %5, align 4
  switch i32 %203, label %237 [
    i32 2, label %204
  ]

204:                                              ; preds = %202
  call void @llvm.lifetime.start.p0(i64 1, ptr %14) #5
  %205 = load i32, ptr %8, align 4, !tbaa !24
  %206 = getelementptr inbounds %class.HSet, ptr %15, i32 0, i32 0
  %207 = load i32, ptr %206, align 8, !tbaa !25
  %208 = icmp eq i32 %205, %207
  %209 = zext i1 %208 to i8
  store i8 %209, ptr %14, align 1, !tbaa !23
  %210 = load i8, ptr %14, align 1, !tbaa !23, !range !17, !noundef !18
  %211 = trunc i8 %210 to i1
  br i1 %211, label %235, label %212

212:                                              ; preds = %204
  %213 = getelementptr inbounds %class.HSet, ptr %15, i32 0, i32 5
  %214 = load i8, ptr %213, align 1, !tbaa !19, !range !17, !noundef !18
  %215 = trunc i8 %214 to i1
  br i1 %215, label %216, label %223

216:                                              ; preds = %212
  %217 = getelementptr inbounds %class.HSet, ptr %15, i32 0, i32 6
  %218 = load ptr, ptr %217, align 8, !tbaa !20
  %219 = load i32, ptr %8, align 4, !tbaa !24
  %220 = getelementptr inbounds %class.HSet, ptr %15, i32 0, i32 0
  %221 = load i32, ptr %220, align 8, !tbaa !25
  %222 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %218, ptr noundef @.str.11, i32 noundef %219, i32 noundef %221) #5
  call void @_ZNK4HSet5printEv(ptr noundef nonnull align 8 dereferenceable(80) %15)
  br label %223

223:                                              ; preds = %216, %212
  %224 = getelementptr inbounds %class.HSet, ptr %15, i32 0, i32 4
  %225 = load i8, ptr %224, align 2, !tbaa !21, !range !17, !noundef !18
  %226 = trunc i8 %225 to i1
  br i1 %226, label %227, label %234

227:                                              ; preds = %223
  %228 = load i8, ptr %14, align 1, !tbaa !23, !range !17, !noundef !18
  %229 = trunc i8 %228 to i1
  br i1 %229, label %230, label %231

230:                                              ; preds = %227
  br label %233

231:                                              ; preds = %227
  call void @__assert_fail(ptr noundef @.str.12, ptr noundef @.str.2, i32 noundef 165, ptr noundef @__PRETTY_FUNCTION__._ZNK4HSet5debugEv) #6
  unreachable

232:                                              ; No predecessors!
  br label %233

233:                                              ; preds = %232, %230
  br label %234

234:                                              ; preds = %233, %223
  store i1 false, ptr %2, align 1
  store i32 1, ptr %5, align 4
  br label %236

235:                                              ; preds = %204
  store i1 true, ptr %2, align 1
  store i32 1, ptr %5, align 4
  br label %236

236:                                              ; preds = %235, %234
  call void @llvm.lifetime.end.p0(i64 1, ptr %14) #5
  br label %237

237:                                              ; preds = %236, %202
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #5
  br label %238

238:                                              ; preds = %237, %102
  call void @llvm.lifetime.end.p0(i64 1, ptr %7) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #5
  br label %239

239:                                              ; preds = %238, %68
  call void @llvm.lifetime.end.p0(i64 1, ptr %4) #5
  br label %240

240:                                              ; preds = %239, %39
  %241 = load i1, ptr %2, align 1
  ret i1 %241
}

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #2 align 2

; Function Attrs: nounwind
declare i32 @fprintf(ptr noundef, ptr noundef, ...) #3

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNK4HSet5printEv(ptr noundef nonnull align 8 dereferenceable(80)) #2 align 2

attributes #0 = { 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 #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 #3 = { 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 = { 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 #5 = { nounwind }
attributes #6 = { noreturn 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, !16, i64 32}
!10 = !{!"_ZTS4HSet", !11, i64 0, !12, i64 8, !16, i64 32, !16, i64 33, !16, i64 34, !16, i64 35, !6, i64 40, !11, i64 48, !12, i64 56}
!11 = !{!"int", !7, i64 0}
!12 = !{!"_ZTSSt6vectorIiSaIiEE", !13, i64 0}
!13 = !{!"_ZTSSt12_Vector_baseIiSaIiEE", !14, i64 0}
!14 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE12_Vector_implE", !15, i64 0}
!15 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!16 = !{!"bool", !7, i64 0}
!17 = !{i8 0, i8 2}
!18 = !{}
!19 = !{!10, !16, i64 35}
!20 = !{!10, !6, i64 40}
!21 = !{!10, !16, i64 34}
!22 = !{!10, !11, i64 48}
!23 = !{!16, !16, i64 0}
!24 = !{!11, !11, i64 0}
!25 = !{!10, !11, i64 0}
!26 = distinct !{!26, !27}
!27 = !{!"llvm.loop.mustprogress"}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

@.str = external hidden unnamed_addr constant [31 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [67 x i8], align 1
@__PRETTY_FUNCTION__._ZNK4HSet5debugEv = external hidden unnamed_addr constant [25 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [57 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [49 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [38 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [46 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [9 x i8], align 1

; Function Attrs: mustprogress nounwind uwtable
define dso_local noundef zeroext i1 @_ZNK4HSet5debugEv(ptr noundef nonnull align 8 dereferenceable(80) %0) local_unnamed_addr #0 align 2 {
  %2 = getelementptr inbounds i8, ptr %0, i64 32
  %3 = load i8, ptr %2, align 8, !tbaa !5, !range !16, !noundef !17
  %4 = trunc nuw i8 %3 to i1
  br i1 %4, label %21, label %5

5:                                                ; preds = %1
  %6 = getelementptr inbounds i8, ptr %0, i64 35
  %7 = load i8, ptr %6, align 1, !tbaa !18, !range !16, !noundef !17
  %8 = trunc nuw i8 %7 to i1
  br i1 %8, label %9, label %13

9:                                                ; preds = %5
  %10 = getelementptr inbounds i8, ptr %0, i64 40
  %11 = load ptr, ptr %10, align 8, !tbaa !19
  %12 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %11, ptr noundef nonnull @.str) #3
  br label %13

13:                                               ; preds = %9, %5
  %14 = getelementptr inbounds i8, ptr %0, i64 34
  %15 = load i8, ptr %14, align 2, !tbaa !20, !range !16, !noundef !17
  %16 = trunc nuw i8 %15 to i1
  br i1 %16, label %17, label %120

17:                                               ; preds = %13
  %18 = load i8, ptr %2, align 8, !tbaa !5, !range !16, !noundef !17
  %19 = trunc nuw i8 %18 to i1
  br i1 %19, label %120, label %20

20:                                               ; preds = %17
  tail call void @__assert_fail(ptr noundef nonnull @.str.1, ptr noundef nonnull @.str.2, i32 noundef 96, ptr noundef nonnull @__PRETTY_FUNCTION__._ZNK4HSet5debugEv) #4
  unreachable

21:                                               ; preds = %1
  %22 = getelementptr inbounds i8, ptr %0, i64 48
  %23 = load i32, ptr %22, align 8, !tbaa !21
  %24 = icmp sgt i32 %23, -1
  br i1 %24, label %38, label %25

25:                                               ; preds = %21
  %26 = getelementptr inbounds i8, ptr %0, i64 35
  %27 = load i8, ptr %26, align 1, !tbaa !18, !range !16, !noundef !17
  %28 = trunc nuw i8 %27 to i1
  br i1 %28, label %29, label %33

29:                                               ; preds = %25
  %30 = getelementptr inbounds i8, ptr %0, i64 40
  %31 = load ptr, ptr %30, align 8, !tbaa !19
  %32 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %31, ptr noundef nonnull @.str.3, i32 noundef %23, i32 noundef 0) #3
  tail call void @_ZNK4HSet5printEv(ptr noundef nonnull align 8 dereferenceable(80) %0)
  br label %33

33:                                               ; preds = %29, %25
  %34 = getelementptr inbounds i8, ptr %0, i64 34
  %35 = load i8, ptr %34, align 2, !tbaa !20, !range !16, !noundef !17
  %36 = trunc nuw i8 %35 to i1
  br i1 %36, label %37, label %120

37:                                               ; preds = %33
  tail call void @__assert_fail(ptr noundef nonnull @.str.4, ptr noundef nonnull @.str.2, i32 noundef 108, ptr noundef nonnull @__PRETTY_FUNCTION__._ZNK4HSet5debugEv) #4
  unreachable

38:                                               ; preds = %21
  %39 = getelementptr inbounds i8, ptr %0, i64 8
  %40 = tail call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %39) #3
  %41 = trunc i64 %40 to i32
  %42 = load i32, ptr %0, align 8, !tbaa !22
  %.not = icmp sgt i32 %42, %41
  br i1 %.not, label %45, label %.preheader

.preheader:                                       ; preds = %38
  %43 = load i32, ptr %22, align 8, !tbaa !21
  %.not5266 = icmp slt i32 %43, 0
  br i1 %.not5266, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %.preheader
  %44 = getelementptr inbounds i8, ptr %0, i64 56
  br label %58

45:                                               ; preds = %38
  %46 = getelementptr inbounds i8, ptr %0, i64 35
  %47 = load i8, ptr %46, align 1, !tbaa !18, !range !16, !noundef !17
  %48 = trunc nuw i8 %47 to i1
  br i1 %48, label %49, label %53

49:                                               ; preds = %45
  %50 = getelementptr inbounds i8, ptr %0, i64 40
  %51 = load ptr, ptr %50, align 8, !tbaa !19
  %52 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %51, ptr noundef nonnull @.str.5, i32 noundef %41, i32 noundef %42) #3
  tail call void @_ZNK4HSet5printEv(ptr noundef nonnull align 8 dereferenceable(80) %0)
  br label %53

53:                                               ; preds = %49, %45
  %54 = getelementptr inbounds i8, ptr %0, i64 34
  %55 = load i8, ptr %54, align 2, !tbaa !20, !range !16, !noundef !17
  %56 = trunc nuw i8 %55 to i1
  br i1 %56, label %57, label %120

57:                                               ; preds = %53
  tail call void @__assert_fail(ptr noundef nonnull @.str.6, ptr noundef nonnull @.str.2, i32 noundef 121, ptr noundef nonnull @__PRETTY_FUNCTION__._ZNK4HSet5debugEv) #4
  unreachable

58:                                               ; preds = %.lr.ph, %102
  %indvars.iv = phi i64 [ 0, %.lr.ph ], [ %indvars.iv.next, %102 ]
  %.03668 = phi i32 [ 0, %.lr.ph ], [ %.238, %102 ]
  %59 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %44, i64 noundef %indvars.iv) #3
  %60 = load i32, ptr %59, align 4, !tbaa !23
  %61 = icmp eq i32 %60, -1
  br i1 %61, label %102, label %62

62:                                               ; preds = %58
  %63 = icmp sgt i32 %60, -1
  %64 = load i32, ptr %0, align 8
  %65 = icmp slt i32 %60, %64
  %66 = select i1 %63, i1 %65, i1 false
  br i1 %66, label %81, label %67

67:                                               ; preds = %62
  %68 = getelementptr inbounds i8, ptr %0, i64 35
  %69 = load i8, ptr %68, align 1, !tbaa !18, !range !16, !noundef !17
  %70 = trunc nuw i8 %69 to i1
  br i1 %70, label %71, label %76

71:                                               ; preds = %67
  %72 = trunc nuw nsw i64 %indvars.iv to i32
  %73 = getelementptr inbounds i8, ptr %0, i64 40
  %74 = load ptr, ptr %73, align 8, !tbaa !19
  %75 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %74, ptr noundef nonnull @.str.7, i32 noundef %72, i32 noundef %60, i32 noundef %64) #3
  tail call void @_ZNK4HSet5printEv(ptr noundef nonnull align 8 dereferenceable(80) %0)
  br label %76

76:                                               ; preds = %71, %67
  %77 = getelementptr inbounds i8, ptr %0, i64 34
  %78 = load i8, ptr %77, align 2, !tbaa !20, !range !16, !noundef !17
  %79 = trunc nuw i8 %78 to i1
  br i1 %79, label %80, label %120

80:                                               ; preds = %76
  tail call void @__assert_fail(ptr noundef nonnull @.str.8, ptr noundef nonnull @.str.2, i32 noundef 138, ptr noundef nonnull @__PRETTY_FUNCTION__._ZNK4HSet5debugEv) #4
  unreachable

81:                                               ; preds = %62
  %82 = add nsw i32 %.03668, 1
  %83 = zext nneg i32 %60 to i64
  %84 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %39, i64 noundef %83) #3
  %85 = load i32, ptr %84, align 4, !tbaa !23
  %86 = zext i32 %85 to i64
  %87 = icmp eq i64 %indvars.iv, %86
  br i1 %87, label %102, label %88

88:                                               ; preds = %81
  %89 = getelementptr inbounds i8, ptr %0, i64 35
  %90 = load i8, ptr %89, align 1, !tbaa !18, !range !16, !noundef !17
  %91 = trunc nuw i8 %90 to i1
  br i1 %91, label %92, label %97

92:                                               ; preds = %88
  %93 = trunc nuw nsw i64 %indvars.iv to i32
  %94 = getelementptr inbounds i8, ptr %0, i64 40
  %95 = load ptr, ptr %94, align 8, !tbaa !19
  %96 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %95, ptr noundef nonnull @.str.9, i32 noundef %60, i32 noundef %85, i32 noundef %93) #3
  tail call void @_ZNK4HSet5printEv(ptr noundef nonnull align 8 dereferenceable(80) %0)
  br label %97

97:                                               ; preds = %92, %88
  %98 = getelementptr inbounds i8, ptr %0, i64 34
  %99 = load i8, ptr %98, align 2, !tbaa !20, !range !16, !noundef !17
  %100 = trunc nuw i8 %99 to i1
  br i1 %100, label %101, label %120

101:                                              ; preds = %97
  tail call void @__assert_fail(ptr noundef nonnull @.str.10, ptr noundef nonnull @.str.2, i32 noundef 152, ptr noundef nonnull @__PRETTY_FUNCTION__._ZNK4HSet5debugEv) #4
  unreachable

102:                                              ; preds = %58, %81
  %.238 = phi i32 [ %.03668, %58 ], [ %82, %81 ]
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %103 = load i32, ptr %22, align 8, !tbaa !21
  %104 = sext i32 %103 to i64
  %.not52.not = icmp slt i64 %indvars.iv, %104
  br i1 %.not52.not, label %58, label %._crit_edge.loopexit, !llvm.loop !24

._crit_edge.loopexit:                             ; preds = %102
  %.pre = load i32, ptr %0, align 8, !tbaa !22
  br label %._crit_edge

._crit_edge:                                      ; preds = %._crit_edge.loopexit, %.preheader
  %105 = phi i32 [ %42, %.preheader ], [ %.pre, %._crit_edge.loopexit ]
  %.036.lcssa = phi i32 [ 0, %.preheader ], [ %.238, %._crit_edge.loopexit ]
  %106 = icmp eq i32 %.036.lcssa, %105
  br i1 %106, label %120, label %107

107:                                              ; preds = %._crit_edge
  %108 = getelementptr inbounds i8, ptr %0, i64 35
  %109 = load i8, ptr %108, align 1, !tbaa !18, !range !16, !noundef !17
  %110 = trunc nuw i8 %109 to i1
  br i1 %110, label %111, label %115

111:                                              ; preds = %107
  %112 = getelementptr inbounds i8, ptr %0, i64 40
  %113 = load ptr, ptr %112, align 8, !tbaa !19
  %114 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %113, ptr noundef nonnull @.str.11, i32 noundef %.036.lcssa, i32 noundef %105) #3
  tail call void @_ZNK4HSet5printEv(ptr noundef nonnull align 8 dereferenceable(80) %0)
  br label %115

115:                                              ; preds = %111, %107
  %116 = getelementptr inbounds i8, ptr %0, i64 34
  %117 = load i8, ptr %116, align 2, !tbaa !20, !range !16, !noundef !17
  %118 = trunc nuw i8 %117 to i1
  br i1 %118, label %119, label %120

119:                                              ; preds = %115
  tail call void @__assert_fail(ptr noundef nonnull @.str.12, ptr noundef nonnull @.str.2, i32 noundef 165, ptr noundef nonnull @__PRETTY_FUNCTION__._ZNK4HSet5debugEv) #4
  unreachable

120:                                              ; preds = %97, %76, %33, %._crit_edge, %115, %53, %13, %17
  %.9 = phi i1 [ false, %17 ], [ false, %13 ], [ false, %33 ], [ false, %53 ], [ true, %._crit_edge ], [ false, %115 ], [ false, %76 ], [ false, %97 ]
  ret i1 %.9
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #0 align 2

; Function Attrs: nofree nounwind
declare noundef i32 @fprintf(ptr nocapture noundef, ptr nocapture noundef readonly, ...) local_unnamed_addr #1

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNK4HSet5printEv(ptr noundef nonnull align 8 dereferenceable(80)) local_unnamed_addr #0 align 2

attributes #0 = { 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 #1 = { nofree 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 #2 = { 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 #3 = { nounwind }
attributes #4 = { noreturn 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, !15, i64 32}
!6 = !{!"_ZTS4HSet", !7, i64 0, !10, i64 8, !15, i64 32, !15, i64 33, !15, i64 34, !15, i64 35, !14, i64 40, !7, i64 48, !10, i64 56}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"_ZTSSt6vectorIiSaIiEE", !11, i64 0}
!11 = !{!"_ZTSSt12_Vector_baseIiSaIiEE", !12, i64 0}
!12 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE12_Vector_implE", !13, i64 0}
!13 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE17_Vector_impl_dataE", !14, i64 0, !14, i64 8, !14, i64 16}
!14 = !{!"any pointer", !8, i64 0}
!15 = !{!"bool", !8, i64 0}
!16 = !{i8 0, i8 2}
!17 = !{}
!18 = !{!6, !15, i64 35}
!19 = !{!6, !14, i64 40}
!20 = !{!6, !15, i64 34}
!21 = !{!6, !7, i64 48}
!22 = !{!6, !7, i64 0}
!23 = !{!7, !7, i64 0}
!24 = distinct !{!24, !25}
!25 = !{!"llvm.loop.mustprogress"}


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