; LLVM IR from gem5/gem5 :: ext/systemc/src/sysc/datatypes/int (sc_signed)

; 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.sc_dt::sc_signed" = type { %"class.sc_dt::sc_value_base", i32, i32, i32, ptr }
%"class.sc_dt::sc_value_base" = type { ptr }

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZN5sc_dt9mul_signsEii(i32 noundef, i32 noundef) #1

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN5sc_dt17and_signed_friendEiiiPKjiiiS1_(ptr dead_on_unwind noalias writable sret(%"class.sc_dt::sc_signed") align 8 %0, i32 noundef %1, i32 noundef %2, i32 noundef %3, ptr noundef %4, i32 noundef %5, i32 noundef %6, i32 noundef %7, ptr noundef %8) #2 {
  %10 = alloca ptr, align 8
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca ptr, align 8
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca ptr, align 8
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  %21 = alloca ptr, align 8
  %22 = alloca ptr, align 8
  %23 = alloca ptr, align 8
  %24 = alloca ptr, align 8
  %25 = alloca i32, align 4
  %26 = alloca i32, align 4
  %27 = alloca i32, align 4
  %28 = alloca i32, align 4
  %29 = alloca ptr, align 8
  %30 = alloca ptr, align 8
  %31 = alloca i32, align 4
  %32 = alloca i32, align 4
  %33 = alloca i32, align 4
  %34 = alloca i32, align 4
  %35 = alloca i32, align 4
  store ptr %0, ptr %10, align 8
  store i32 %1, ptr %11, align 4, !tbaa !5
  store i32 %2, ptr %12, align 4, !tbaa !5
  store i32 %3, ptr %13, align 4, !tbaa !5
  store ptr %4, ptr %14, align 8, !tbaa !9
  store i32 %5, ptr %15, align 4, !tbaa !5
  store i32 %6, ptr %16, align 4, !tbaa !5
  store i32 %7, ptr %17, align 4, !tbaa !5
  store ptr %8, ptr %18, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #6
  %36 = call noundef i32 @_ZN5sc_dt6sc_maxIiEEKT_RS2_S3_(ptr noundef nonnull align 4 dereferenceable(4) %12, ptr noundef nonnull align 4 dereferenceable(4) %16)
  store i32 %36, ptr %19, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #6
  %37 = call noundef i32 @_ZN5sc_dt6sc_maxIiEEKT_RS2_S3_(ptr noundef nonnull align 4 dereferenceable(4) %13, ptr noundef nonnull align 4 dereferenceable(4) %17)
  store i32 %37, ptr %20, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #6
  %38 = load i32, ptr %20, align 4, !tbaa !5
  %39 = sext i32 %38 to i64
  %40 = call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %39, i64 4)
  %41 = extractvalue { i64, i1 } %40, 1
  %42 = extractvalue { i64, i1 } %40, 0
  %43 = select i1 %41, i64 -1, i64 %42
  %44 = call noalias noundef nonnull ptr @_Znam(i64 noundef %43) #7
  store ptr %44, ptr %21, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #6
  %45 = load ptr, ptr %21, align 8, !tbaa !9
  store ptr %45, ptr %22, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #6
  %46 = load i32, ptr %13, align 4, !tbaa !5
  %47 = load i32, ptr %17, align 4, !tbaa !5
  %48 = icmp sge i32 %46, %47
  br i1 %48, label %49, label %56

49:                                               ; preds = %9
  %50 = load ptr, ptr %14, align 8, !tbaa !9
  store ptr %50, ptr %23, align 8, !tbaa !9
  %51 = load ptr, ptr %18, align 8, !tbaa !9
  store ptr %51, ptr %24, align 8, !tbaa !9
  %52 = load i32, ptr %13, align 4, !tbaa !5
  store i32 %52, ptr %25, align 4, !tbaa !5
  %53 = load i32, ptr %17, align 4, !tbaa !5
  store i32 %53, ptr %26, align 4, !tbaa !5
  %54 = load i32, ptr %11, align 4, !tbaa !5
  store i32 %54, ptr %27, align 4, !tbaa !5
  %55 = load i32, ptr %15, align 4, !tbaa !5
  store i32 %55, ptr %28, align 4, !tbaa !5
  br label %63

56:                                               ; preds = %9
  %57 = load ptr, ptr %14, align 8, !tbaa !9
  store ptr %57, ptr %24, align 8, !tbaa !9
  %58 = load ptr, ptr %18, align 8, !tbaa !9
  store ptr %58, ptr %23, align 8, !tbaa !9
  %59 = load i32, ptr %13, align 4, !tbaa !5
  store i32 %59, ptr %26, align 4, !tbaa !5
  %60 = load i32, ptr %17, align 4, !tbaa !5
  store i32 %60, ptr %25, align 4, !tbaa !5
  %61 = load i32, ptr %11, align 4, !tbaa !5
  store i32 %61, ptr %28, align 4, !tbaa !5
  %62 = load i32, ptr %15, align 4, !tbaa !5
  store i32 %62, ptr %27, align 4, !tbaa !5
  br label %63

63:                                               ; preds = %56, %49
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #6
  %64 = load ptr, ptr %23, align 8, !tbaa !9
  %65 = load i32, ptr %25, align 4, !tbaa !5
  %66 = sext i32 %65 to i64
  %67 = getelementptr inbounds i32, ptr %64, i64 %66
  store ptr %67, ptr %29, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %30) #6
  %68 = load ptr, ptr %24, align 8, !tbaa !9
  %69 = load i32, ptr %26, align 4, !tbaa !5
  %70 = sext i32 %69 to i64
  %71 = getelementptr inbounds i32, ptr %68, i64 %70
  store ptr %71, ptr %30, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %31) #6
  %72 = load i32, ptr %27, align 4, !tbaa !5
  %73 = load i32, ptr %28, align 4, !tbaa !5
  %74 = call noundef i32 @_ZN5sc_dt9mul_signsEii(i32 noundef %72, i32 noundef %73)
  store i32 %74, ptr %31, align 4, !tbaa !5
  %75 = load i32, ptr %31, align 4, !tbaa !5
  %76 = icmp sgt i32 %75, 0
  br i1 %76, label %77, label %177

77:                                               ; preds = %63
  %78 = load i32, ptr %27, align 4, !tbaa !5
  %79 = icmp sgt i32 %78, 0
  br i1 %79, label %80, label %105

80:                                               ; preds = %77
  br label %81

81:                                               ; preds = %85, %80
  %82 = load ptr, ptr %24, align 8, !tbaa !9
  %83 = load ptr, ptr %30, align 8, !tbaa !9
  %84 = icmp ult ptr %82, %83
  br i1 %84, label %85, label %95

85:                                               ; preds = %81
  %86 = load ptr, ptr %23, align 8, !tbaa !9
  %87 = getelementptr inbounds i32, ptr %86, i32 1
  store ptr %87, ptr %23, align 8, !tbaa !9
  %88 = load i32, ptr %86, align 4, !tbaa !5
  %89 = load ptr, ptr %24, align 8, !tbaa !9
  %90 = getelementptr inbounds i32, ptr %89, i32 1
  store ptr %90, ptr %24, align 8, !tbaa !9
  %91 = load i32, ptr %89, align 4, !tbaa !5
  %92 = and i32 %88, %91
  %93 = load ptr, ptr %22, align 8, !tbaa !9
  %94 = getelementptr inbounds i32, ptr %93, i32 1
  store ptr %94, ptr %22, align 8, !tbaa !9
  store i32 %92, ptr %93, align 4, !tbaa !5
  br label %81, !llvm.loop !11

95:                                               ; preds = %81
  br label %96

96:                                               ; preds = %101, %95
  %97 = load ptr, ptr %23, align 8, !tbaa !9
  %98 = getelementptr inbounds i32, ptr %97, i32 1
  store ptr %98, ptr %23, align 8, !tbaa !9
  %99 = load ptr, ptr %29, align 8, !tbaa !9
  %100 = icmp ult ptr %97, %99
  br i1 %100, label %101, label %104

101:                                              ; preds = %96
  %102 = load ptr, ptr %22, align 8, !tbaa !9
  %103 = getelementptr inbounds i32, ptr %102, i32 1
  store ptr %103, ptr %22, align 8, !tbaa !9
  store i32 0, ptr %102, align 4, !tbaa !5
  br label %96, !llvm.loop !13

104:                                              ; preds = %96
  br label %176

105:                                              ; preds = %77
  call void @llvm.lifetime.start.p0(i64 4, ptr %32) #6
  store i32 1, ptr %32, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %33) #6
  store i32 1, ptr %33, align 4, !tbaa !5
  br label %106

106:                                              ; preds = %110, %105
  %107 = load ptr, ptr %24, align 8, !tbaa !9
  %108 = load ptr, ptr %30, align 8, !tbaa !9
  %109 = icmp ult ptr %107, %108
  br i1 %109, label %110, label %143

110:                                              ; preds = %106
  %111 = load ptr, ptr %23, align 8, !tbaa !9
  %112 = getelementptr inbounds i32, ptr %111, i32 1
  store ptr %112, ptr %23, align 8, !tbaa !9
  %113 = load i32, ptr %111, align 4, !tbaa !5
  %114 = xor i32 %113, -1
  %115 = zext i32 %114 to i64
  %116 = and i64 %115, 1073741823
  %117 = load i32, ptr %32, align 4, !tbaa !5
  %118 = zext i32 %117 to i64
  %119 = add i64 %118, %116
  %120 = trunc i64 %119 to i32
  store i32 %120, ptr %32, align 4, !tbaa !5
  %121 = load ptr, ptr %24, align 8, !tbaa !9
  %122 = getelementptr inbounds i32, ptr %121, i32 1
  store ptr %122, ptr %24, align 8, !tbaa !9
  %123 = load i32, ptr %121, align 4, !tbaa !5
  %124 = xor i32 %123, -1
  %125 = zext i32 %124 to i64
  %126 = and i64 %125, 1073741823
  %127 = load i32, ptr %33, align 4, !tbaa !5
  %128 = zext i32 %127 to i64
  %129 = add i64 %128, %126
  %130 = trunc i64 %129 to i32
  store i32 %130, ptr %33, align 4, !tbaa !5
  %131 = load i32, ptr %32, align 4, !tbaa !5
  %132 = load i32, ptr %33, align 4, !tbaa !5
  %133 = and i32 %131, %132
  %134 = zext i32 %133 to i64
  %135 = and i64 %134, 1073741823
  %136 = trunc i64 %135 to i32
  %137 = load ptr, ptr %22, align 8, !tbaa !9
  %138 = getelementptr inbounds i32, ptr %137, i32 1
  store ptr %138, ptr %22, align 8, !tbaa !9
  store i32 %136, ptr %137, align 4, !tbaa !5
  %139 = load i32, ptr %32, align 4, !tbaa !5
  %140 = lshr i32 %139, 30
  store i32 %140, ptr %32, align 4, !tbaa !5
  %141 = load i32, ptr %33, align 4, !tbaa !5
  %142 = lshr i32 %141, 30
  store i32 %142, ptr %33, align 4, !tbaa !5
  br label %106, !llvm.loop !14

143:                                              ; preds = %106
  br label %144

144:                                              ; preds = %148, %143
  %145 = load ptr, ptr %23, align 8, !tbaa !9
  %146 = load ptr, ptr %29, align 8, !tbaa !9
  %147 = icmp ult ptr %145, %146
  br i1 %147, label %148, label %175

148:                                              ; preds = %144
  %149 = load ptr, ptr %23, align 8, !tbaa !9
  %150 = getelementptr inbounds i32, ptr %149, i32 1
  store ptr %150, ptr %23, align 8, !tbaa !9
  %151 = load i32, ptr %149, align 4, !tbaa !5
  %152 = xor i32 %151, -1
  %153 = zext i32 %152 to i64
  %154 = and i64 %153, 1073741823
  %155 = load i32, ptr %32, align 4, !tbaa !5
  %156 = zext i32 %155 to i64
  %157 = add i64 %156, %154
  %158 = trunc i64 %157 to i32
  store i32 %158, ptr %32, align 4, !tbaa !5
  %159 = load i32, ptr %33, align 4, !tbaa !5
  %160 = zext i32 %159 to i64
  %161 = add i64 %160, 1073741823
  %162 = trunc i64 %161 to i32
  store i32 %162, ptr %33, align 4, !tbaa !5
  %163 = load i32, ptr %32, align 4, !tbaa !5
  %164 = load i32, ptr %33, align 4, !tbaa !5
  %165 = and i32 %163, %164
  %166 = zext i32 %165 to i64
  %167 = and i64 %166, 1073741823
  %168 = trunc i64 %167 to i32
  %169 = load ptr, ptr %22, align 8, !tbaa !9
  %170 = getelementptr inbounds i32, ptr %169, i32 1
  store ptr %170, ptr %22, align 8, !tbaa !9
  store i32 %168, ptr %169, align 4, !tbaa !5
  %171 = load i32, ptr %32, align 4, !tbaa !5
  %172 = lshr i32 %171, 30
  store i32 %172, ptr %32, align 4, !tbaa !5
  %173 = load i32, ptr %33, align 4, !tbaa !5
  %174 = lshr i32 %173, 30
  store i32 %174, ptr %33, align 4, !tbaa !5
  br label %144, !llvm.loop !15

175:                                              ; preds = %144
  call void @llvm.lifetime.end.p0(i64 4, ptr %33) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %32) #6
  br label %176

176:                                              ; preds = %175, %104
  br label %270

177:                                              ; preds = %63
  %178 = load i32, ptr %27, align 4, !tbaa !5
  %179 = icmp sgt i32 %178, 0
  br i1 %179, label %180, label %231

180:                                              ; preds = %177
  call void @llvm.lifetime.start.p0(i64 4, ptr %34) #6
  store i32 1, ptr %34, align 4, !tbaa !5
  br label %181

181:                                              ; preds = %185, %180
  %182 = load ptr, ptr %24, align 8, !tbaa !9
  %183 = load ptr, ptr %30, align 8, !tbaa !9
  %184 = icmp ult ptr %182, %183
  br i1 %184, label %185, label %208

185:                                              ; preds = %181
  %186 = load ptr, ptr %24, align 8, !tbaa !9
  %187 = getelementptr inbounds i32, ptr %186, i32 1
  store ptr %187, ptr %24, align 8, !tbaa !9
  %188 = load i32, ptr %186, align 4, !tbaa !5
  %189 = xor i32 %188, -1
  %190 = zext i32 %189 to i64
  %191 = and i64 %190, 1073741823
  %192 = load i32, ptr %34, align 4, !tbaa !5
  %193 = zext i32 %192 to i64
  %194 = add i64 %193, %191
  %195 = trunc i64 %194 to i32
  store i32 %195, ptr %34, align 4, !tbaa !5
  %196 = load ptr, ptr %23, align 8, !tbaa !9
  %197 = getelementptr inbounds i32, ptr %196, i32 1
  store ptr %197, ptr %23, align 8, !tbaa !9
  %198 = load i32, ptr %196, align 4, !tbaa !5
  %199 = load i32, ptr %34, align 4, !tbaa !5
  %200 = and i32 %198, %199
  %201 = zext i32 %200 to i64
  %202 = and i64 %201, 1073741823
  %203 = trunc i64 %202 to i32
  %204 = load ptr, ptr %22, align 8, !tbaa !9
  %205 = getelementptr inbounds i32, ptr %204, i32 1
  store ptr %205, ptr %22, align 8, !tbaa !9
  store i32 %203, ptr %204, align 4, !tbaa !5
  %206 = load i32, ptr %34, align 4, !tbaa !5
  %207 = lshr i32 %206, 30
  store i32 %207, ptr %34, align 4, !tbaa !5
  br label %181, !llvm.loop !16

208:                                              ; preds = %181
  br label %209

209:                                              ; preds = %213, %208
  %210 = load ptr, ptr %23, align 8, !tbaa !9
  %211 = load ptr, ptr %29, align 8, !tbaa !9
  %212 = icmp ult ptr %210, %211
  br i1 %212, label %213, label %230

213:                                              ; preds = %209
  %214 = load i32, ptr %34, align 4, !tbaa !5
  %215 = zext i32 %214 to i64
  %216 = add i64 %215, 1073741823
  %217 = trunc i64 %216 to i32
  store i32 %217, ptr %34, align 4, !tbaa !5
  %218 = load ptr, ptr %23, align 8, !tbaa !9
  %219 = getelementptr inbounds i32, ptr %218, i32 1
  store ptr %219, ptr %23, align 8, !tbaa !9
  %220 = load i32, ptr %218, align 4, !tbaa !5
  %221 = load i32, ptr %34, align 4, !tbaa !5
  %222 = and i32 %220, %221
  %223 = zext i32 %222 to i64
  %224 = and i64 %223, 1073741823
  %225 = trunc i64 %224 to i32
  %226 = load ptr, ptr %22, align 8, !tbaa !9
  %227 = getelementptr inbounds i32, ptr %226, i32 1
  store ptr %227, ptr %22, align 8, !tbaa !9
  store i32 %225, ptr %226, align 4, !tbaa !5
  %228 = load i32, ptr %34, align 4, !tbaa !5
  %229 = lshr i32 %228, 30
  store i32 %229, ptr %34, align 4, !tbaa !5
  br label %209, !llvm.loop !17

230:                                              ; preds = %209
  call void @llvm.lifetime.end.p0(i64 4, ptr %34) #6
  br label %269

231:                                              ; preds = %177
  call void @llvm.lifetime.start.p0(i64 4, ptr %35) #6
  store i32 1, ptr %35, align 4, !tbaa !5
  br label %232

232:                                              ; preds = %236, %231
  %233 = load ptr, ptr %24, align 8, !tbaa !9
  %234 = load ptr, ptr %30, align 8, !tbaa !9
  %235 = icmp ult ptr %233, %234
  br i1 %235, label %236, label %259

236:                                              ; preds = %232
  %237 = load ptr, ptr %23, align 8, !tbaa !9
  %238 = getelementptr inbounds i32, ptr %237, i32 1
  store ptr %238, ptr %23, align 8, !tbaa !9
  %239 = load i32, ptr %237, align 4, !tbaa !5
  %240 = xor i32 %239, -1
  %241 = zext i32 %240 to i64
  %242 = and i64 %241, 1073741823
  %243 = load i32, ptr %35, align 4, !tbaa !5
  %244 = zext i32 %243 to i64
  %245 = add i64 %244, %242
  %246 = trunc i64 %245 to i32
  store i32 %246, ptr %35, align 4, !tbaa !5
  %247 = load i32, ptr %35, align 4, !tbaa !5
  %248 = load ptr, ptr %24, align 8, !tbaa !9
  %249 = getelementptr inbounds i32, ptr %248, i32 1
  store ptr %249, ptr %24, align 8, !tbaa !9
  %250 = load i32, ptr %248, align 4, !tbaa !5
  %251 = and i32 %247, %250
  %252 = zext i32 %251 to i64
  %253 = and i64 %252, 1073741823
  %254 = trunc i64 %253 to i32
  %255 = load ptr, ptr %22, align 8, !tbaa !9
  %256 = getelementptr inbounds i32, ptr %255, i32 1
  store ptr %256, ptr %22, align 8, !tbaa !9
  store i32 %254, ptr %255, align 4, !tbaa !5
  %257 = load i32, ptr %35, align 4, !tbaa !5
  %258 = lshr i32 %257, 30
  store i32 %258, ptr %35, align 4, !tbaa !5
  br label %232, !llvm.loop !18

259:                                              ; preds = %232
  br label %260

260:                                              ; preds = %265, %259
  %261 = load ptr, ptr %23, align 8, !tbaa !9
  %262 = getelementptr inbounds i32, ptr %261, i32 1
  store ptr %262, ptr %23, align 8, !tbaa !9
  %263 = load ptr, ptr %29, align 8, !tbaa !9
  %264 = icmp ult ptr %261, %263
  br i1 %264, label %265, label %268

265:                                              ; preds = %260
  %266 = load ptr, ptr %22, align 8, !tbaa !9
  %267 = getelementptr inbounds i32, ptr %266, i32 1
  store ptr %267, ptr %22, align 8, !tbaa !9
  store i32 0, ptr %266, align 4, !tbaa !5
  br label %260, !llvm.loop !19

268:                                              ; preds = %260
  call void @llvm.lifetime.end.p0(i64 4, ptr %35) #6
  br label %269

269:                                              ; preds = %268, %230
  br label %270

270:                                              ; preds = %269, %176
  %271 = load i32, ptr %19, align 4, !tbaa !5
  %272 = load i32, ptr %20, align 4, !tbaa !5
  %273 = load ptr, ptr %21, align 8, !tbaa !9
  %274 = call noundef i32 @_ZN5sc_dt23convert_signed_2C_to_SMEiiPj(i32 noundef %271, i32 noundef %272, ptr noundef %273)
  store i32 %274, ptr %31, align 4, !tbaa !5
  %275 = load i32, ptr %31, align 4, !tbaa !5
  %276 = load i32, ptr %19, align 4, !tbaa !5
  %277 = load i32, ptr %20, align 4, !tbaa !5
  %278 = load ptr, ptr %21, align 8, !tbaa !9
  call void @_ZN5sc_dt9sc_signedC1EiiiPjb(ptr noundef nonnull align 8 dereferenceable(32) %0, i32 noundef %275, i32 noundef %276, i32 noundef %277, ptr noundef %278, i1 noundef zeroext true)
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #6
  ret void
}

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZN5sc_dt6sc_maxIiEEKT_RS2_S3_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) #1

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare { i64, i1 } @llvm.umul.with.overflow.i64(i64, i64) #3

; Function Attrs: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znam(i64 noundef) #4

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef i32 @_ZN5sc_dt23convert_signed_2C_to_SMEiiPj(i32 noundef, i32 noundef, ptr noundef) #5

declare void @_ZN5sc_dt9sc_signedC1EiiiPjb(ptr, i32, i32, i32, ptr, i1)

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

!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 = !{!"any pointer", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = distinct !{!13, !12}
!14 = distinct !{!14, !12}
!15 = distinct !{!15, !12}
!16 = distinct !{!16, !12}
!17 = distinct !{!17, !12}
!18 = distinct !{!18, !12}
!19 = distinct !{!19, !12}


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

%"class.sc_dt::sc_signed" = type { %"class.sc_dt::sc_value_base", i32, i32, i32, ptr }
%"class.sc_dt::sc_value_base" = type { ptr }

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZN5sc_dt9mul_signsEii(i32 noundef, i32 noundef) local_unnamed_addr #0

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN5sc_dt17and_signed_friendEiiiPKjiiiS1_(ptr dead_on_unwind noalias writable sret(%"class.sc_dt::sc_signed") align 8 %0, i32 noundef %1, i32 noundef %2, i32 noundef %3, ptr noundef readonly %4, i32 noundef %5, i32 noundef %6, i32 noundef %7, ptr noundef readonly %8) local_unnamed_addr #1 {
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  store i32 %2, ptr %10, align 4, !tbaa !5
  store i32 %3, ptr %11, align 4, !tbaa !5
  store i32 %6, ptr %12, align 4, !tbaa !5
  store i32 %7, ptr %13, align 4, !tbaa !5
  %14 = call noundef i32 @_ZN5sc_dt6sc_maxIiEEKT_RS2_S3_(ptr noundef nonnull align 4 dereferenceable(4) %10, ptr noundef nonnull align 4 dereferenceable(4) %12)
  %15 = call noundef i32 @_ZN5sc_dt6sc_maxIiEEKT_RS2_S3_(ptr noundef nonnull align 4 dereferenceable(4) %11, ptr noundef nonnull align 4 dereferenceable(4) %13)
  %16 = zext nneg i32 %15 to i64
  %17 = icmp slt i32 %15, 0
  %18 = shl nuw nsw i64 %16, 2
  %19 = select i1 %17, i64 -1, i64 %18
  %20 = call noalias noundef nonnull ptr @_Znam(i64 noundef %19) #6
  %21 = load i32, ptr %11, align 4, !tbaa !5
  %22 = load i32, ptr %13, align 4, !tbaa !5
  %.not = icmp slt i32 %21, %22
  %. = select i1 %.not, ptr %4, ptr %8
  %.215 = ptrtoint ptr %. to i64
  %.111 = call i32 @llvm.smax.i32(i32 %21, i32 %22)
  %.112 = call i32 @llvm.smin.i32(i32 %21, i32 %22)
  %.113 = select i1 %.not, i32 %5, i32 %1
  %.114 = select i1 %.not, i32 %1, i32 %5
  %.115 = select i1 %.not, ptr %8, ptr %4
  %.115183 = ptrtoint ptr %.115 to i64
  %23 = sext i32 %.111 to i64
  %24 = getelementptr inbounds i32, ptr %.115, i64 %23
  %25 = sext i32 %.112 to i64
  %26 = getelementptr inbounds i32, ptr %., i64 %25
  %27 = call noundef i32 @_ZN5sc_dt9mul_signsEii(i32 noundef %.113, i32 noundef %.114)
  %28 = icmp sgt i32 %27, 0
  %29 = icmp sgt i32 %.113, 0
  %30 = icmp sgt i32 %.112, 0
  br i1 %28, label %31, label %83

31:                                               ; preds = %9
  br i1 %29, label %.preheader116, label %.preheader119

.preheader119:                                    ; preds = %31
  br i1 %30, label %.lr.ph151, label %.preheader117

.preheader116:                                    ; preds = %31
  br i1 %30, label %.lr.ph164.preheader, label %.preheader

.lr.ph164.preheader:                              ; preds = %.preheader116
  %32 = shl nuw nsw i64 %25, 2
  %33 = add i64 %32, %.215
  %34 = add i64 %.215, 4
  %umax216 = call i64 @llvm.umax.i64(i64 %33, i64 %34)
  %35 = xor i64 %.215, -1
  %36 = add i64 %umax216, %35
  %37 = lshr i64 %36, 2
  %38 = add nuw nsw i64 %37, 1
  %min.iters.check = icmp ult i64 %36, 28
  br i1 %min.iters.check, label %.lr.ph164.preheader231, label %vector.ph

.lr.ph164.preheader231:                           ; preds = %middle.block, %.lr.ph164.preheader
  %.085163.ph = phi ptr [ %20, %.lr.ph164.preheader ], [ %ind.end, %middle.block ]
  %.188162.ph = phi ptr [ %.115, %.lr.ph164.preheader ], [ %ind.end217, %middle.block ]
  %.1100161.ph = phi ptr [ %., %.lr.ph164.preheader ], [ %ind.end219, %middle.block ]
  br label %.lr.ph164

vector.ph:                                        ; preds = %.lr.ph164.preheader
  %n.vec = and i64 %38, 9223372036854775800
  %39 = shl i64 %n.vec, 2
  %ind.end = getelementptr i8, ptr %20, i64 %39
  %40 = shl i64 %n.vec, 2
  %ind.end217 = getelementptr i8, ptr %.115, i64 %40
  %41 = shl i64 %n.vec, 2
  %ind.end219 = getelementptr i8, ptr %., i64 %41
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %offset.idx = shl i64 %index, 2
  %next.gep = getelementptr i8, ptr %20, i64 %offset.idx
  %offset.idx222 = shl i64 %index, 2
  %next.gep223 = getelementptr i8, ptr %.115, i64 %offset.idx222
  %offset.idx225 = shl i64 %index, 2
  %next.gep226 = getelementptr i8, ptr %., i64 %offset.idx225
  %42 = getelementptr i8, ptr %next.gep223, i64 16
  %wide.load = load <4 x i32>, ptr %next.gep223, align 4, !tbaa !5
  %wide.load228 = load <4 x i32>, ptr %42, align 4, !tbaa !5
  %43 = getelementptr i8, ptr %next.gep226, i64 16
  %wide.load229 = load <4 x i32>, ptr %next.gep226, align 4, !tbaa !5
  %wide.load230 = load <4 x i32>, ptr %43, align 4, !tbaa !5
  %44 = and <4 x i32> %wide.load229, %wide.load
  %45 = and <4 x i32> %wide.load230, %wide.load228
  %46 = getelementptr i8, ptr %next.gep, i64 16
  store <4 x i32> %44, ptr %next.gep, align 4, !tbaa !5
  store <4 x i32> %45, ptr %46, align 4, !tbaa !5
  %index.next = add nuw i64 %index, 8
  %47 = icmp eq i64 %index.next, %n.vec
  br i1 %47, label %middle.block, label %vector.body, !llvm.loop !9

middle.block:                                     ; preds = %vector.body
  %cmp.n = icmp eq i64 %38, %n.vec
  br i1 %cmp.n, label %.preheader.loopexit, label %.lr.ph164.preheader231

.preheader.loopexit:                              ; preds = %.lr.ph164, %middle.block
  %.lcssa205 = phi ptr [ %ind.end217, %middle.block ], [ %49, %.lr.ph164 ]
  %.lcssa = phi ptr [ %ind.end, %middle.block ], [ %54, %.lr.ph164 ]
  %.pre = ptrtoint ptr %.lcssa205 to i64
  br label %.preheader

.preheader:                                       ; preds = %.preheader.loopexit, %.preheader116
  %.188.lcssa185.pre-phi = phi i64 [ %.pre, %.preheader.loopexit ], [ %.115183, %.preheader116 ]
  %.188.lcssa = phi ptr [ %.lcssa205, %.preheader.loopexit ], [ %.115, %.preheader116 ]
  %.085.lcssa = phi ptr [ %.lcssa, %.preheader.loopexit ], [ %20, %.preheader116 ]
  %48 = icmp ult ptr %.188.lcssa, %24
  br i1 %48, label %.loopexit.sink.split, label %.loopexit

.lr.ph164:                                        ; preds = %.lr.ph164.preheader231, %.lr.ph164
  %.085163 = phi ptr [ %54, %.lr.ph164 ], [ %.085163.ph, %.lr.ph164.preheader231 ]
  %.188162 = phi ptr [ %49, %.lr.ph164 ], [ %.188162.ph, %.lr.ph164.preheader231 ]
  %.1100161 = phi ptr [ %51, %.lr.ph164 ], [ %.1100161.ph, %.lr.ph164.preheader231 ]
  %49 = getelementptr inbounds i8, ptr %.188162, i64 4
  %50 = load i32, ptr %.188162, align 4, !tbaa !5
  %51 = getelementptr inbounds i8, ptr %.1100161, i64 4
  %52 = load i32, ptr %.1100161, align 4, !tbaa !5
  %53 = and i32 %52, %50
  %54 = getelementptr inbounds i8, ptr %.085163, i64 4
  store i32 %53, ptr %.085163, align 4, !tbaa !5
  %55 = icmp ult ptr %51, %26
  br i1 %55, label %.lr.ph164, label %.preheader.loopexit, !llvm.loop !13

.preheader117:                                    ; preds = %.lr.ph151, %.preheader119
  %.390.lcssa = phi ptr [ %.115, %.preheader119 ], [ %57, %.lr.ph151 ]
  %.2.lcssa = phi ptr [ %20, %.preheader119 ], [ %67, %.lr.ph151 ]
  %.083.lcssa = phi i32 [ 1, %.preheader119 ], [ %68, %.lr.ph151 ]
  %.081.lcssa = phi i32 [ 1, %.preheader119 ], [ %69, %.lr.ph151 ]
  %56 = icmp ult ptr %.390.lcssa, %24
  br i1 %56, label %.lr.ph160, label %.loopexit

.lr.ph151:                                        ; preds = %.preheader119, %.lr.ph151
  %.081150 = phi i32 [ %69, %.lr.ph151 ], [ 1, %.preheader119 ]
  %.083149 = phi i32 [ %68, %.lr.ph151 ], [ 1, %.preheader119 ]
  %.2148 = phi ptr [ %67, %.lr.ph151 ], [ %20, %.preheader119 ]
  %.390147 = phi ptr [ %57, %.lr.ph151 ], [ %.115, %.preheader119 ]
  %.2101146 = phi ptr [ %61, %.lr.ph151 ], [ %., %.preheader119 ]
  %57 = getelementptr inbounds i8, ptr %.390147, i64 4
  %58 = load i32, ptr %.390147, align 4, !tbaa !5
  %59 = and i32 %58, 1073741823
  %60 = xor i32 %59, 1073741823
  %narrow109 = add nuw nsw i32 %60, %.083149
  %61 = getelementptr inbounds i8, ptr %.2101146, i64 4
  %62 = load i32, ptr %.2101146, align 4, !tbaa !5
  %63 = and i32 %62, 1073741823
  %64 = xor i32 %63, 1073741823
  %narrow110 = add nuw nsw i32 %64, %.081150
  %65 = and i32 %narrow109, 1073741823
  %66 = and i32 %65, %narrow110
  %67 = getelementptr inbounds i8, ptr %.2148, i64 4
  store i32 %66, ptr %.2148, align 4, !tbaa !5
  %68 = lshr i32 %narrow109, 30
  %69 = lshr i32 %narrow110, 30
  %70 = icmp ult ptr %61, %26
  br i1 %70, label %.lr.ph151, label %.preheader117, !llvm.loop !14

.lr.ph160:                                        ; preds = %.preheader117, %.lr.ph160
  %.182159 = phi i32 [ %81, %.lr.ph160 ], [ %.081.lcssa, %.preheader117 ]
  %.184158 = phi i32 [ %80, %.lr.ph160 ], [ %.083.lcssa, %.preheader117 ]
  %.3157 = phi ptr [ %79, %.lr.ph160 ], [ %.2.lcssa, %.preheader117 ]
  %.491156 = phi ptr [ %71, %.lr.ph160 ], [ %.390.lcssa, %.preheader117 ]
  %71 = getelementptr inbounds i8, ptr %.491156, i64 4
  %72 = load i32, ptr %.491156, align 4, !tbaa !5
  %73 = and i32 %72, 1073741823
  %74 = xor i32 %73, 1073741823
  %75 = add nuw nsw i32 %74, %.184158
  %76 = add nuw nsw i32 %.182159, 1073741823
  %77 = and i32 %76, 1073741823
  %78 = and i32 %77, %75
  %79 = getelementptr inbounds i8, ptr %.3157, i64 4
  store i32 %78, ptr %.3157, align 4, !tbaa !5
  %80 = lshr i32 %75, 30
  %81 = lshr i32 %76, 30
  %82 = icmp ult ptr %71, %24
  br i1 %82, label %.lr.ph160, label %.loopexit, !llvm.loop !15

83:                                               ; preds = %9
  br i1 %29, label %.preheader122, label %.preheader125

.preheader125:                                    ; preds = %83
  br i1 %30, label %.lr.ph, label %.preheader123

.preheader122:                                    ; preds = %83
  br i1 %30, label %.lr.ph138, label %.preheader120

.preheader120:                                    ; preds = %.lr.ph138, %.preheader122
  %.592.lcssa = phi ptr [ %.115, %.preheader122 ], [ %89, %.lr.ph138 ]
  %.4.lcssa = phi ptr [ %20, %.preheader122 ], [ %93, %.lr.ph138 ]
  %.080.lcssa = phi i32 [ 1, %.preheader122 ], [ %94, %.lr.ph138 ]
  %84 = icmp ult ptr %.592.lcssa, %24
  br i1 %84, label %.lr.ph145, label %.loopexit

.lr.ph138:                                        ; preds = %.preheader122, %.lr.ph138
  %.080137 = phi i32 [ %94, %.lr.ph138 ], [ 1, %.preheader122 ]
  %.4136 = phi ptr [ %93, %.lr.ph138 ], [ %20, %.preheader122 ]
  %.592135 = phi ptr [ %89, %.lr.ph138 ], [ %.115, %.preheader122 ]
  %.3102134 = phi ptr [ %85, %.lr.ph138 ], [ %., %.preheader122 ]
  %85 = getelementptr inbounds i8, ptr %.3102134, i64 4
  %86 = load i32, ptr %.3102134, align 4, !tbaa !5
  %87 = and i32 %86, 1073741823
  %88 = xor i32 %87, 1073741823
  %narrow108 = add nuw nsw i32 %88, %.080137
  %89 = getelementptr inbounds i8, ptr %.592135, i64 4
  %90 = load i32, ptr %.592135, align 4, !tbaa !5
  %91 = and i32 %90, 1073741823
  %92 = and i32 %91, %narrow108
  %93 = getelementptr inbounds i8, ptr %.4136, i64 4
  store i32 %92, ptr %.4136, align 4, !tbaa !5
  %94 = lshr i32 %narrow108, 30
  %95 = icmp ult ptr %85, %26
  br i1 %95, label %.lr.ph138, label %.preheader120, !llvm.loop !16

.lr.ph145:                                        ; preds = %.preheader120, %.lr.ph145
  %.1144 = phi i32 [ %102, %.lr.ph145 ], [ %.080.lcssa, %.preheader120 ]
  %.5143 = phi ptr [ %101, %.lr.ph145 ], [ %.4.lcssa, %.preheader120 ]
  %.693142 = phi ptr [ %97, %.lr.ph145 ], [ %.592.lcssa, %.preheader120 ]
  %96 = add nuw nsw i32 %.1144, 1073741823
  %97 = getelementptr inbounds i8, ptr %.693142, i64 4
  %98 = load i32, ptr %.693142, align 4, !tbaa !5
  %99 = and i32 %96, 1073741823
  %100 = and i32 %99, %98
  %101 = getelementptr inbounds i8, ptr %.5143, i64 4
  store i32 %100, ptr %.5143, align 4, !tbaa !5
  %102 = lshr i32 %96, 30
  %103 = icmp ult ptr %97, %24
  br i1 %103, label %.lr.ph145, label %.loopexit, !llvm.loop !17

.preheader123.loopexit:                           ; preds = %.lr.ph
  %.pre187 = ptrtoint ptr %105 to i64
  br label %.preheader123

.preheader123:                                    ; preds = %.preheader123.loopexit, %.preheader125
  %.794.lcssa184.pre-phi = phi i64 [ %.pre187, %.preheader123.loopexit ], [ %.115183, %.preheader125 ]
  %.794.lcssa = phi ptr [ %105, %.preheader123.loopexit ], [ %.115, %.preheader125 ]
  %.6.lcssa = phi ptr [ %113, %.preheader123.loopexit ], [ %20, %.preheader125 ]
  %104 = icmp ult ptr %.794.lcssa, %24
  br i1 %104, label %.loopexit.sink.split, label %.loopexit

.lr.ph:                                           ; preds = %.preheader125, %.lr.ph
  %.0129 = phi i32 [ %114, %.lr.ph ], [ 1, %.preheader125 ]
  %.6128 = phi ptr [ %113, %.lr.ph ], [ %20, %.preheader125 ]
  %.794127 = phi ptr [ %105, %.lr.ph ], [ %.115, %.preheader125 ]
  %.4103126 = phi ptr [ %109, %.lr.ph ], [ %., %.preheader125 ]
  %105 = getelementptr inbounds i8, ptr %.794127, i64 4
  %106 = load i32, ptr %.794127, align 4, !tbaa !5
  %107 = and i32 %106, 1073741823
  %108 = xor i32 %107, 1073741823
  %narrow = add nuw nsw i32 %108, %.0129
  %109 = getelementptr inbounds i8, ptr %.4103126, i64 4
  %110 = load i32, ptr %.4103126, align 4, !tbaa !5
  %111 = and i32 %110, 1073741823
  %112 = and i32 %111, %narrow
  %113 = getelementptr inbounds i8, ptr %.6128, i64 4
  store i32 %112, ptr %.6128, align 4, !tbaa !5
  %114 = lshr i32 %narrow, 30
  %115 = icmp ult ptr %109, %26
  br i1 %115, label %.lr.ph, label %.preheader123.loopexit, !llvm.loop !18

.loopexit.sink.split:                             ; preds = %.preheader123, %.preheader
  %.794.lcssa184.pre-phi.sink202 = phi i64 [ %.188.lcssa185.pre-phi, %.preheader ], [ %.794.lcssa184.pre-phi, %.preheader123 ]
  %.6.lcssa.sink = phi ptr [ %.085.lcssa, %.preheader ], [ %.6.lcssa, %.preheader123 ]
  %116 = shl nsw i64 %23, 2
  %117 = add i64 %116, %.115183
  %118 = add i64 %.794.lcssa184.pre-phi.sink202, 4
  %umax = call i64 @llvm.umax.i64(i64 %117, i64 %118)
  %119 = xor i64 %.794.lcssa184.pre-phi.sink202, -1
  %120 = add i64 %umax, %119
  %121 = and i64 %120, -4
  %122 = add i64 %121, 4
  call void @llvm.memset.p0.i64(ptr nonnull align 4 %.6.lcssa.sink, i8 0, i64 %122, i1 false), !tbaa !5
  br label %.loopexit

.loopexit:                                        ; preds = %.lr.ph145, %.lr.ph160, %.loopexit.sink.split, %.preheader123, %.preheader120, %.preheader117, %.preheader
  %123 = call noundef i32 @_ZN5sc_dt23convert_signed_2C_to_SMEiiPj(i32 noundef %14, i32 noundef %15, ptr noundef nonnull %20)
  call void @_ZN5sc_dt9sc_signedC1EiiiPjb(ptr noundef nonnull align 8 dereferenceable(32) %0, i32 noundef %123, i32 noundef %14, i32 noundef %15, ptr noundef nonnull %20, i1 noundef zeroext true)
  ret void
}

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZN5sc_dt6sc_maxIiEEKT_RS2_S3_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #0

; Function Attrs: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znam(i64 noundef) local_unnamed_addr #2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef i32 @_ZN5sc_dt23convert_signed_2C_to_SMEiiPj(i32 noundef, i32 noundef, ptr noundef) local_unnamed_addr #3

declare void @_ZN5sc_dt9sc_signedC1EiiiPjb(ptr, i32, i32, i32, ptr, i1) local_unnamed_addr

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.smax.i32(i32, i32) #4

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.smin.i32(i32, i32) #4

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i64 @llvm.umax.i64(i64, i64) #4

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

attributes #0 = { 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 #1 = { 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 #2 = { nobuiltin allocsize(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 = { 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 #4 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #5 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #6 = { builtin allocsize(0) }

!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 = distinct !{!9, !10, !11, !12}
!10 = !{!"llvm.loop.mustprogress"}
!11 = !{!"llvm.loop.isvectorized", i32 1}
!12 = !{!"llvm.loop.unroll.runtime.disable"}
!13 = distinct !{!13, !10, !12, !11}
!14 = distinct !{!14, !10}
!15 = distinct !{!15, !10}
!16 = distinct !{!16, !10}
!17 = distinct !{!17, !10}
!18 = distinct !{!18, !10}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LoopIdiomRecognizePass,LoopLoadEliminationPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,LoopVectorizePass,PostOrderFunctionAttrsPass,ReassociatePass,SCCPPass,SROAPass,SimplifyCFGPass