; LLVM IR from ermig1979/Simd :: src/Simd (SimdBaseStatisticMoments)

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

@.str = external hidden unnamed_addr constant [12 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [86 x i8], align 1
@__PRETTY_FUNCTION__._ZN4Simd4Base16GetObjectMomentsEPKhmmmS2_mhPmS3_S3_S3_S3_S3_S3_ = external hidden unnamed_addr constant [193 x i8], align 1

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4Simd4Base16GetObjectMomentsEPKhmmmS2_mhPmS3_S3_S3_S3_S3_S3_(ptr noundef %0, i64 noundef %1, i64 noundef %2, i64 noundef %3, ptr noundef %4, i64 noundef %5, i8 noundef zeroext %6, ptr noundef %7, ptr noundef %8, ptr noundef %9, ptr noundef %10, ptr noundef %11, ptr noundef %12, ptr noundef %13) #0 {
  %15 = alloca ptr, align 8
  %16 = alloca i64, align 8
  %17 = alloca i64, align 8
  %18 = alloca i64, align 8
  %19 = alloca ptr, align 8
  %20 = alloca i64, align 8
  %21 = alloca i8, align 1
  %22 = alloca ptr, align 8
  %23 = alloca ptr, align 8
  %24 = alloca ptr, align 8
  %25 = alloca ptr, align 8
  %26 = alloca ptr, align 8
  %27 = alloca ptr, align 8
  %28 = alloca ptr, align 8
  %29 = alloca i64, align 8
  %30 = alloca i64, align 8
  %31 = alloca i32, align 4
  %32 = alloca i64, align 8
  %33 = alloca i32, align 4
  %34 = alloca i32, align 4
  %35 = alloca i32, align 4
  %36 = alloca i32, align 4
  %37 = alloca i32, align 4
  %38 = alloca i32, align 4
  %39 = alloca i32, align 4
  %40 = alloca i32, align 4
  %41 = alloca i64, align 8
  %42 = alloca i64, align 8
  store ptr %0, ptr %15, align 8, !tbaa !5
  store i64 %1, ptr %16, align 8, !tbaa !9
  store i64 %2, ptr %17, align 8, !tbaa !9
  store i64 %3, ptr %18, align 8, !tbaa !9
  store ptr %4, ptr %19, align 8, !tbaa !5
  store i64 %5, ptr %20, align 8, !tbaa !9
  store i8 %6, ptr %21, align 1, !tbaa !11
  store ptr %7, ptr %22, align 8, !tbaa !5
  store ptr %8, ptr %23, align 8, !tbaa !5
  store ptr %9, ptr %24, align 8, !tbaa !5
  store ptr %10, ptr %25, align 8, !tbaa !5
  store ptr %11, ptr %26, align 8, !tbaa !5
  store ptr %12, ptr %27, align 8, !tbaa !5
  store ptr %13, ptr %28, align 8, !tbaa !5
  %43 = load ptr, ptr %15, align 8, !tbaa !5
  %44 = icmp ne ptr %43, null
  br i1 %44, label %48, label %45

45:                                               ; preds = %14
  %46 = load ptr, ptr %19, align 8, !tbaa !5
  %47 = icmp ne ptr %46, null
  br label %48

48:                                               ; preds = %45, %14
  %49 = phi i1 [ true, %14 ], [ %47, %45 ]
  br i1 %49, label %50, label %51

50:                                               ; preds = %48
  br label %53

51:                                               ; preds = %48
  call void @__assert_fail(ptr noundef @.str, ptr noundef @.str.1, i32 noundef 41, ptr noundef @__PRETTY_FUNCTION__._ZN4Simd4Base16GetObjectMomentsEPKhmmmS2_mhPmS3_S3_S3_S3_S3_S3_) #4
  unreachable

52:                                               ; No predecessors!
  br label %53

53:                                               ; preds = %52, %50
  %54 = load ptr, ptr %22, align 8, !tbaa !5
  store i64 0, ptr %54, align 8, !tbaa !9
  %55 = load ptr, ptr %23, align 8, !tbaa !5
  store i64 0, ptr %55, align 8, !tbaa !9
  %56 = load ptr, ptr %24, align 8, !tbaa !5
  store i64 0, ptr %56, align 8, !tbaa !9
  %57 = load ptr, ptr %25, align 8, !tbaa !5
  store i64 0, ptr %57, align 8, !tbaa !9
  %58 = load ptr, ptr %26, align 8, !tbaa !5
  store i64 0, ptr %58, align 8, !tbaa !9
  %59 = load ptr, ptr %27, align 8, !tbaa !5
  store i64 0, ptr %59, align 8, !tbaa !9
  %60 = load ptr, ptr %28, align 8, !tbaa !5
  store i64 0, ptr %60, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #5
  store i64 181, ptr %29, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %30) #5
  store i64 0, ptr %30, align 8, !tbaa !9
  br label %61

61:                                               ; preds = %257, %53
  %62 = load i64, ptr %30, align 8, !tbaa !9
  %63 = load i64, ptr %18, align 8, !tbaa !9
  %64 = icmp ult i64 %62, %63
  br i1 %64, label %66, label %65

65:                                               ; preds = %61
  store i32 2, ptr %31, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #5
  br label %260

66:                                               ; preds = %61
  call void @llvm.lifetime.start.p0(i64 8, ptr %32) #5
  store i64 0, ptr %32, align 8, !tbaa !9
  br label %67

67:                                               ; preds = %169, %66
  %68 = load i64, ptr %32, align 8, !tbaa !9
  %69 = load i64, ptr %17, align 8, !tbaa !9
  %70 = icmp ult i64 %68, %69
  br i1 %70, label %72, label %71

71:                                               ; preds = %67
  store i32 5, ptr %31, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #5
  br label %242

72:                                               ; preds = %67
  call void @llvm.lifetime.start.p0(i64 4, ptr %33) #5
  %73 = load i64, ptr %32, align 8, !tbaa !9
  %74 = add i64 %73, 181
  %75 = load i64, ptr %17, align 8, !tbaa !9
  %76 = call noundef i64 @_ZN4Simd3MinImEET_S1_S1_(i64 noundef %74, i64 noundef %75)
  %77 = trunc i64 %76 to i32
  store i32 %77, ptr %33, align 4, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 4, ptr %34) #5
  store i32 0, ptr %34, align 4, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 4, ptr %35) #5
  store i32 0, ptr %35, align 4, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 4, ptr %36) #5
  store i32 0, ptr %36, align 4, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 4, ptr %37) #5
  store i32 0, ptr %37, align 4, !tbaa !12
  %78 = load ptr, ptr %19, align 8, !tbaa !5
  %79 = icmp eq ptr %78, null
  br i1 %79, label %80, label %103

80:                                               ; preds = %72
  call void @llvm.lifetime.start.p0(i64 4, ptr %38) #5
  %81 = load i64, ptr %32, align 8, !tbaa !9
  %82 = trunc i64 %81 to i32
  store i32 %82, ptr %38, align 4, !tbaa !12
  br label %83

83:                                               ; preds = %99, %80
  %84 = load i32, ptr %38, align 4, !tbaa !12
  %85 = load i32, ptr %33, align 4, !tbaa !12
  %86 = icmp ult i32 %84, %85
  br i1 %86, label %88, label %87

87:                                               ; preds = %83
  store i32 7, ptr %31, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %38) #5
  br label %102

88:                                               ; preds = %83
  %89 = load ptr, ptr %15, align 8, !tbaa !5
  %90 = load i32, ptr %38, align 4, !tbaa !12
  %91 = zext i32 %90 to i64
  %92 = getelementptr inbounds i8, ptr %89, i64 %91
  %93 = load i8, ptr %92, align 1, !tbaa !11
  %94 = zext i8 %93 to i32
  %95 = load i32, ptr %38, align 4, !tbaa !12
  %96 = load i64, ptr %32, align 8, !tbaa !9
  %97 = trunc i64 %96 to i32
  %98 = sub i32 %95, %97
  call void @_ZN4Simd4Base16GetObjectMomentsEjjRjS1_S1_S1_(i32 noundef %94, i32 noundef %98, ptr noundef nonnull align 4 dereferenceable(4) %34, ptr noundef nonnull align 4 dereferenceable(4) %35, ptr noundef nonnull align 4 dereferenceable(4) %36, ptr noundef nonnull align 4 dereferenceable(4) %37)
  br label %99

99:                                               ; preds = %88
  %100 = load i32, ptr %38, align 4, !tbaa !12
  %101 = add i32 %100, 1
  store i32 %101, ptr %38, align 4, !tbaa !12
  br label %83, !llvm.loop !14

102:                                              ; preds = %87
  br label %169

103:                                              ; preds = %72
  %104 = load ptr, ptr %15, align 8, !tbaa !5
  %105 = icmp eq ptr %104, null
  br i1 %105, label %106, label %134

106:                                              ; preds = %103
  call void @llvm.lifetime.start.p0(i64 4, ptr %39) #5
  %107 = load i64, ptr %32, align 8, !tbaa !9
  %108 = trunc i64 %107 to i32
  store i32 %108, ptr %39, align 4, !tbaa !12
  br label %109

109:                                              ; preds = %130, %106
  %110 = load i32, ptr %39, align 4, !tbaa !12
  %111 = load i32, ptr %33, align 4, !tbaa !12
  %112 = icmp ult i32 %110, %111
  br i1 %112, label %114, label %113

113:                                              ; preds = %109
  store i32 10, ptr %31, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %39) #5
  br label %133

114:                                              ; preds = %109
  %115 = load ptr, ptr %19, align 8, !tbaa !5
  %116 = load i32, ptr %39, align 4, !tbaa !12
  %117 = zext i32 %116 to i64
  %118 = getelementptr inbounds i8, ptr %115, i64 %117
  %119 = load i8, ptr %118, align 1, !tbaa !11
  %120 = zext i8 %119 to i32
  %121 = load i8, ptr %21, align 1, !tbaa !11
  %122 = zext i8 %121 to i32
  %123 = icmp eq i32 %120, %122
  br i1 %123, label %124, label %129

124:                                              ; preds = %114
  %125 = load i32, ptr %39, align 4, !tbaa !12
  %126 = load i64, ptr %32, align 8, !tbaa !9
  %127 = trunc i64 %126 to i32
  %128 = sub i32 %125, %127
  call void @_ZN4Simd4Base16GetObjectMomentsEjjRjS1_S1_S1_(i32 noundef 1, i32 noundef %128, ptr noundef nonnull align 4 dereferenceable(4) %34, ptr noundef nonnull align 4 dereferenceable(4) %35, ptr noundef nonnull align 4 dereferenceable(4) %36, ptr noundef nonnull align 4 dereferenceable(4) %37)
  br label %129

129:                                              ; preds = %124, %114
  br label %130

130:                                              ; preds = %129
  %131 = load i32, ptr %39, align 4, !tbaa !12
  %132 = add i32 %131, 1
  store i32 %132, ptr %39, align 4, !tbaa !12
  br label %109, !llvm.loop !16

133:                                              ; preds = %113
  br label %168

134:                                              ; preds = %103
  call void @llvm.lifetime.start.p0(i64 4, ptr %40) #5
  %135 = load i64, ptr %32, align 8, !tbaa !9
  %136 = trunc i64 %135 to i32
  store i32 %136, ptr %40, align 4, !tbaa !12
  br label %137

137:                                              ; preds = %164, %134
  %138 = load i32, ptr %40, align 4, !tbaa !12
  %139 = load i32, ptr %33, align 4, !tbaa !12
  %140 = icmp ult i32 %138, %139
  br i1 %140, label %142, label %141

141:                                              ; preds = %137
  store i32 13, ptr %31, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %40) #5
  br label %167

142:                                              ; preds = %137
  %143 = load ptr, ptr %19, align 8, !tbaa !5
  %144 = load i32, ptr %40, align 4, !tbaa !12
  %145 = zext i32 %144 to i64
  %146 = getelementptr inbounds i8, ptr %143, i64 %145
  %147 = load i8, ptr %146, align 1, !tbaa !11
  %148 = zext i8 %147 to i32
  %149 = load i8, ptr %21, align 1, !tbaa !11
  %150 = zext i8 %149 to i32
  %151 = icmp eq i32 %148, %150
  br i1 %151, label %152, label %163

152:                                              ; preds = %142
  %153 = load ptr, ptr %15, align 8, !tbaa !5
  %154 = load i32, ptr %40, align 4, !tbaa !12
  %155 = zext i32 %154 to i64
  %156 = getelementptr inbounds i8, ptr %153, i64 %155
  %157 = load i8, ptr %156, align 1, !tbaa !11
  %158 = zext i8 %157 to i32
  %159 = load i32, ptr %40, align 4, !tbaa !12
  %160 = load i64, ptr %32, align 8, !tbaa !9
  %161 = trunc i64 %160 to i32
  %162 = sub i32 %159, %161
  call void @_ZN4Simd4Base16GetObjectMomentsEjjRjS1_S1_S1_(i32 noundef %158, i32 noundef %162, ptr noundef nonnull align 4 dereferenceable(4) %34, ptr noundef nonnull align 4 dereferenceable(4) %35, ptr noundef nonnull align 4 dereferenceable(4) %36, ptr noundef nonnull align 4 dereferenceable(4) %37)
  br label %163

163:                                              ; preds = %152, %142
  br label %164

164:                                              ; preds = %163
  %165 = load i32, ptr %40, align 4, !tbaa !12
  %166 = add i32 %165, 1
  store i32 %166, ptr %40, align 4, !tbaa !12
  br label %137, !llvm.loop !17

167:                                              ; preds = %141
  br label %168

168:                                              ; preds = %167, %133
  br label %169

169:                                              ; preds = %168, %102
  call void @llvm.lifetime.start.p0(i64 8, ptr %41) #5
  %170 = load i64, ptr %30, align 8, !tbaa !9
  store i64 %170, ptr %41, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %42) #5
  %171 = load i64, ptr %32, align 8, !tbaa !9
  store i64 %171, ptr %42, align 8, !tbaa !9
  %172 = load i32, ptr %34, align 4, !tbaa !12
  %173 = zext i32 %172 to i64
  %174 = load ptr, ptr %22, align 8, !tbaa !5
  %175 = load i64, ptr %174, align 8, !tbaa !9
  %176 = add i64 %175, %173
  store i64 %176, ptr %174, align 8, !tbaa !9
  %177 = load i32, ptr %35, align 4, !tbaa !12
  %178 = zext i32 %177 to i64
  %179 = load ptr, ptr %23, align 8, !tbaa !5
  %180 = load i64, ptr %179, align 8, !tbaa !9
  %181 = add i64 %180, %178
  store i64 %181, ptr %179, align 8, !tbaa !9
  %182 = load i32, ptr %36, align 4, !tbaa !12
  %183 = zext i32 %182 to i64
  %184 = load i32, ptr %35, align 4, !tbaa !12
  %185 = zext i32 %184 to i64
  %186 = load i64, ptr %42, align 8, !tbaa !9
  %187 = mul i64 %185, %186
  %188 = add i64 %183, %187
  %189 = load ptr, ptr %24, align 8, !tbaa !5
  %190 = load i64, ptr %189, align 8, !tbaa !9
  %191 = add i64 %190, %188
  store i64 %191, ptr %189, align 8, !tbaa !9
  %192 = load i32, ptr %35, align 4, !tbaa !12
  %193 = zext i32 %192 to i64
  %194 = load i64, ptr %41, align 8, !tbaa !9
  %195 = mul i64 %193, %194
  %196 = load ptr, ptr %25, align 8, !tbaa !5
  %197 = load i64, ptr %196, align 8, !tbaa !9
  %198 = add i64 %197, %195
  store i64 %198, ptr %196, align 8, !tbaa !9
  %199 = load i32, ptr %37, align 4, !tbaa !12
  %200 = zext i32 %199 to i64
  %201 = load i32, ptr %36, align 4, !tbaa !12
  %202 = zext i32 %201 to i64
  %203 = load i64, ptr %42, align 8, !tbaa !9
  %204 = mul i64 %202, %203
  %205 = mul i64 %204, 2
  %206 = add i64 %200, %205
  %207 = load i32, ptr %35, align 4, !tbaa !12
  %208 = zext i32 %207 to i64
  %209 = load i64, ptr %42, align 8, !tbaa !9
  %210 = mul i64 %208, %209
  %211 = load i64, ptr %42, align 8, !tbaa !9
  %212 = mul i64 %210, %211
  %213 = add i64 %206, %212
  %214 = load ptr, ptr %26, align 8, !tbaa !5
  %215 = load i64, ptr %214, align 8, !tbaa !9
  %216 = add i64 %215, %213
  store i64 %216, ptr %214, align 8, !tbaa !9
  %217 = load i32, ptr %36, align 4, !tbaa !12
  %218 = zext i32 %217 to i64
  %219 = load i64, ptr %41, align 8, !tbaa !9
  %220 = mul i64 %218, %219
  %221 = load i32, ptr %35, align 4, !tbaa !12
  %222 = zext i32 %221 to i64
  %223 = load i64, ptr %42, align 8, !tbaa !9
  %224 = mul i64 %222, %223
  %225 = load i64, ptr %41, align 8, !tbaa !9
  %226 = mul i64 %224, %225
  %227 = add i64 %220, %226
  %228 = load ptr, ptr %27, align 8, !tbaa !5
  %229 = load i64, ptr %228, align 8, !tbaa !9
  %230 = add i64 %229, %227
  store i64 %230, ptr %228, align 8, !tbaa !9
  %231 = load i32, ptr %35, align 4, !tbaa !12
  %232 = zext i32 %231 to i64
  %233 = load i64, ptr %41, align 8, !tbaa !9
  %234 = mul i64 %232, %233
  %235 = load i64, ptr %41, align 8, !tbaa !9
  %236 = mul i64 %234, %235
  %237 = load ptr, ptr %28, align 8, !tbaa !5
  %238 = load i64, ptr %237, align 8, !tbaa !9
  %239 = add i64 %238, %236
  store i64 %239, ptr %237, align 8, !tbaa !9
  %240 = load i32, ptr %33, align 4, !tbaa !12
  %241 = zext i32 %240 to i64
  store i64 %241, ptr %32, align 8, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr %42) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %41) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %37) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %36) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %35) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %34) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %33) #5
  br label %67, !llvm.loop !18

242:                                              ; preds = %71
  %243 = load ptr, ptr %15, align 8, !tbaa !5
  %244 = icmp ne ptr %243, null
  br i1 %244, label %245, label %249

245:                                              ; preds = %242
  %246 = load i64, ptr %16, align 8, !tbaa !9
  %247 = load ptr, ptr %15, align 8, !tbaa !5
  %248 = getelementptr inbounds i8, ptr %247, i64 %246
  store ptr %248, ptr %15, align 8, !tbaa !5
  br label %249

249:                                              ; preds = %245, %242
  %250 = load ptr, ptr %19, align 8, !tbaa !5
  %251 = icmp ne ptr %250, null
  br i1 %251, label %252, label %256

252:                                              ; preds = %249
  %253 = load i64, ptr %20, align 8, !tbaa !9
  %254 = load ptr, ptr %19, align 8, !tbaa !5
  %255 = getelementptr inbounds i8, ptr %254, i64 %253
  store ptr %255, ptr %19, align 8, !tbaa !5
  br label %256

256:                                              ; preds = %252, %249
  br label %257

257:                                              ; preds = %256
  %258 = load i64, ptr %30, align 8, !tbaa !9
  %259 = add i64 %258, 1
  store i64 %259, ptr %30, align 8, !tbaa !9
  br label %61, !llvm.loop !19

260:                                              ; preds = %65
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #5
  ret void
}

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

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

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZN4Simd3MinImEET_S1_S1_(i64 noundef, i64 noundef) #3

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local void @_ZN4Simd4Base16GetObjectMomentsEjjRjS1_S1_S1_(i32 noundef, i32 noundef, ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) #3

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #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 = { 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 #2 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { alwaysinline 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 #4 = { noreturn nounwind }
attributes #5 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"long", !7, i64 0}
!11 = !{!7, !7, i64 0}
!12 = !{!13, !13, i64 0}
!13 = !{!"int", !7, i64 0}
!14 = distinct !{!14, !15}
!15 = !{!"llvm.loop.mustprogress"}
!16 = distinct !{!16, !15}
!17 = distinct !{!17, !15}
!18 = distinct !{!18, !15}
!19 = distinct !{!19, !15}


; 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 [12 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [86 x i8], align 1
@__PRETTY_FUNCTION__._ZN4Simd4Base16GetObjectMomentsEPKhmmmS2_mhPmS3_S3_S3_S3_S3_S3_ = external hidden unnamed_addr constant [193 x i8], align 1

; Function Attrs: mustprogress nounwind uwtable
define dso_local void @_ZN4Simd4Base16GetObjectMomentsEPKhmmmS2_mhPmS3_S3_S3_S3_S3_S3_(ptr noundef readonly %0, i64 noundef %1, i64 noundef %2, i64 noundef %3, ptr noundef readonly %4, i64 noundef %5, i8 noundef zeroext %6, ptr nocapture noundef %7, ptr nocapture noundef %8, ptr nocapture noundef %9, ptr nocapture noundef %10, ptr nocapture noundef %11, ptr nocapture noundef %12, ptr nocapture noundef %13) local_unnamed_addr #0 {
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = icmp ne ptr %0, null
  %20 = icmp ne ptr %4, null
  %21 = or i1 %19, %20
  br i1 %21, label %23, label %22

22:                                               ; preds = %14
  tail call void @__assert_fail(ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, i32 noundef 41, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN4Simd4Base16GetObjectMomentsEPKhmmmS2_mhPmS3_S3_S3_S3_S3_S3_) #4
  unreachable

23:                                               ; preds = %14
  store i64 0, ptr %7, align 8, !tbaa !5
  store i64 0, ptr %8, align 8, !tbaa !5
  store i64 0, ptr %9, align 8, !tbaa !5
  store i64 0, ptr %10, align 8, !tbaa !5
  store i64 0, ptr %11, align 8, !tbaa !5
  store i64 0, ptr %12, align 8, !tbaa !5
  store i64 0, ptr %13, align 8, !tbaa !5
  %.not93 = icmp eq i64 %3, 0
  %.not94 = icmp eq i64 %2, 0
  %or.cond = or i1 %.not93, %.not94
  br i1 %or.cond, label %._crit_edge92, label %.preheader.us

.preheader.us:                                    ; preds = %23, %._crit_edge.us
  %.091.us = phi ptr [ %spec.select.us, %._crit_edge.us ], [ %0, %23 ]
  %.07190.us = phi ptr [ %.172.us, %._crit_edge.us ], [ %4, %23 ]
  %.07689.us = phi i64 [ %91, %._crit_edge.us ], [ 0, %23 ]
  %24 = icmp eq ptr %.07190.us, null
  %25 = icmp eq ptr %.091.us, null
  br label %26

26:                                               ; preds = %.preheader.us, %.loopexit.us
  %.07787.us = phi i64 [ 0, %.preheader.us ], [ %82, %.loopexit.us ]
  %27 = add nuw nsw i64 %.07787.us, 181
  %28 = call noundef i64 @_ZN4Simd3MinImEET_S1_S1_(i64 noundef %27, i64 noundef %2)
  %29 = trunc i64 %28 to i32
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %15) #5
  store i32 0, ptr %15, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %16) #5
  store i32 0, ptr %16, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %17) #5
  store i32 0, ptr %17, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %18) #5
  store i32 0, ptr %18, align 4, !tbaa !9
  %30 = trunc nuw i64 %.07787.us to i32
  %31 = icmp ult i32 %30, %29
  br i1 %24, label %52, label %32

32:                                               ; preds = %26
  br i1 %25, label %44, label %33

33:                                               ; preds = %32
  br i1 %31, label %.lr.ph.us, label %.loopexit.us

.lr.ph.us:                                        ; preds = %33, %43
  %indvars.iv = phi i64 [ %indvars.iv.next, %43 ], [ %.07787.us, %33 ]
  %34 = getelementptr inbounds i8, ptr %.07190.us, i64 %indvars.iv
  %35 = load i8, ptr %34, align 1, !tbaa !11
  %36 = icmp eq i8 %35, %6
  br i1 %36, label %37, label %43

37:                                               ; preds = %.lr.ph.us
  %38 = getelementptr inbounds i8, ptr %.091.us, i64 %indvars.iv
  %39 = load i8, ptr %38, align 1, !tbaa !11
  %40 = zext i8 %39 to i32
  %41 = sub nuw nsw i64 %indvars.iv, %.07787.us
  %42 = trunc nuw i64 %41 to i32
  call void @_ZN4Simd4Base16GetObjectMomentsEjjRjS1_S1_S1_(i32 noundef %40, i32 noundef %42, ptr noundef nonnull align 4 dereferenceable(4) %15, ptr noundef nonnull align 4 dereferenceable(4) %16, ptr noundef nonnull align 4 dereferenceable(4) %17, ptr noundef nonnull align 4 dereferenceable(4) %18)
  br label %43

43:                                               ; preds = %37, %.lr.ph.us
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %lftr.wideiv = trunc i64 %indvars.iv.next to i32
  %exitcond.not = icmp eq i32 %lftr.wideiv, %29
  br i1 %exitcond.not, label %.loopexit.us, label %.lr.ph.us, !llvm.loop !12

44:                                               ; preds = %32
  br i1 %31, label %.lr.ph84.us, label %.loopexit.us

.lr.ph84.us:                                      ; preds = %44, %51
  %indvars.iv99 = phi i64 [ %indvars.iv.next100, %51 ], [ %.07787.us, %44 ]
  %45 = getelementptr inbounds i8, ptr %.07190.us, i64 %indvars.iv99
  %46 = load i8, ptr %45, align 1, !tbaa !11
  %47 = icmp eq i8 %46, %6
  br i1 %47, label %48, label %51

48:                                               ; preds = %.lr.ph84.us
  %49 = sub nuw nsw i64 %indvars.iv99, %.07787.us
  %50 = trunc nuw i64 %49 to i32
  call void @_ZN4Simd4Base16GetObjectMomentsEjjRjS1_S1_S1_(i32 noundef 1, i32 noundef %50, ptr noundef nonnull align 4 dereferenceable(4) %15, ptr noundef nonnull align 4 dereferenceable(4) %16, ptr noundef nonnull align 4 dereferenceable(4) %17, ptr noundef nonnull align 4 dereferenceable(4) %18)
  br label %51

51:                                               ; preds = %48, %.lr.ph84.us
  %indvars.iv.next100 = add nuw nsw i64 %indvars.iv99, 1
  %lftr.wideiv102 = trunc i64 %indvars.iv.next100 to i32
  %exitcond103.not = icmp eq i32 %lftr.wideiv102, %29
  br i1 %exitcond103.not, label %.loopexit.us, label %.lr.ph84.us, !llvm.loop !14

52:                                               ; preds = %26
  br i1 %31, label %.lr.ph86.us.preheader, label %.loopexit.us

.lr.ph86.us.preheader:                            ; preds = %52
  %wide.trip.count = and i64 %28, 4294967295
  br label %.lr.ph86.us

.loopexit.us:                                     ; preds = %43, %51, %.lr.ph86.us, %33, %44, %52
  %53 = load i32, ptr %15, align 4, !tbaa !9
  %54 = zext i32 %53 to i64
  %55 = load i64, ptr %7, align 8, !tbaa !5
  %56 = add i64 %55, %54
  store i64 %56, ptr %7, align 8, !tbaa !5
  %57 = load i32, ptr %16, align 4, !tbaa !9
  %58 = zext i32 %57 to i64
  %59 = load i64, ptr %8, align 8, !tbaa !5
  %60 = add i64 %59, %58
  store i64 %60, ptr %8, align 8, !tbaa !5
  %61 = load i32, ptr %17, align 4, !tbaa !9
  %62 = zext i32 %61 to i64
  %63 = mul nuw i64 %.07787.us, %58
  %64 = add nuw i64 %63, %62
  %65 = load i64, ptr %9, align 8, !tbaa !5
  %66 = add i64 %64, %65
  store i64 %66, ptr %9, align 8, !tbaa !5
  %67 = mul i64 %.07689.us, %58
  %68 = load i64, ptr %10, align 8, !tbaa !5
  %69 = add i64 %68, %67
  store i64 %69, ptr %10, align 8, !tbaa !5
  %70 = load i32, ptr %18, align 4, !tbaa !9
  %71 = zext i32 %70 to i64
  %72 = shl nuw nsw i64 %62, 1
  %73 = load i64, ptr %11, align 8, !tbaa !5
  %reass.add.us = add nuw i64 %72, %63
  %reass.mul.us = mul i64 %reass.add.us, %.07787.us
  %74 = add i64 %reass.mul.us, %71
  %75 = add i64 %74, %73
  store i64 %75, ptr %11, align 8, !tbaa !5
  %76 = mul i64 %64, %.07689.us
  %77 = load i64, ptr %12, align 8, !tbaa !5
  %78 = add i64 %77, %76
  store i64 %78, ptr %12, align 8, !tbaa !5
  %79 = mul i64 %67, %.07689.us
  %80 = load i64, ptr %13, align 8, !tbaa !5
  %81 = add i64 %80, %79
  store i64 %81, ptr %13, align 8, !tbaa !5
  %82 = and i64 %28, 4294967295
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %18) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %17) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %16) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %15) #5
  %83 = icmp ult i64 %82, %2
  br i1 %83, label %26, label %._crit_edge.us, !llvm.loop !15

.lr.ph86.us:                                      ; preds = %.lr.ph86.us.preheader, %.lr.ph86.us
  %indvars.iv104 = phi i64 [ %.07787.us, %.lr.ph86.us.preheader ], [ %indvars.iv.next105, %.lr.ph86.us ]
  %84 = getelementptr inbounds i8, ptr %.091.us, i64 %indvars.iv104
  %85 = load i8, ptr %84, align 1, !tbaa !11
  %86 = zext i8 %85 to i32
  %87 = sub nuw nsw i64 %indvars.iv104, %.07787.us
  %88 = trunc nuw i64 %87 to i32
  call void @_ZN4Simd4Base16GetObjectMomentsEjjRjS1_S1_S1_(i32 noundef %86, i32 noundef %88, ptr noundef nonnull align 4 dereferenceable(4) %15, ptr noundef nonnull align 4 dereferenceable(4) %16, ptr noundef nonnull align 4 dereferenceable(4) %17, ptr noundef nonnull align 4 dereferenceable(4) %18)
  %indvars.iv.next105 = add nuw nsw i64 %indvars.iv104, 1
  %exitcond107.not = icmp eq i64 %indvars.iv.next105, %wide.trip.count
  br i1 %exitcond107.not, label %.loopexit.us, label %.lr.ph86.us, !llvm.loop !16

._crit_edge.us:                                   ; preds = %.loopexit.us
  %89 = getelementptr inbounds i8, ptr %.091.us, i64 %1
  %spec.select.us = select i1 %25, ptr null, ptr %89
  %90 = getelementptr inbounds i8, ptr %.07190.us, i64 %5
  %.172.us = select i1 %24, ptr null, ptr %90
  %91 = add nuw i64 %.07689.us, 1
  %exitcond108.not = icmp eq i64 %91, %3
  br i1 %exitcond108.not, label %._crit_edge92, label %.preheader.us, !llvm.loop !17

._crit_edge92:                                    ; preds = %._crit_edge.us, %23
  ret void
}

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

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

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZN4Simd3MinImEET_S1_S1_(i64 noundef, i64 noundef) local_unnamed_addr #3

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local void @_ZN4Simd4Base16GetObjectMomentsEjjRjS1_S1_S1_(i32 noundef, i32 noundef, ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #3

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #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 = { 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 #2 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { alwaysinline 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 #4 = { noreturn nounwind }
attributes #5 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"long", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!7, !7, i64 0}
!12 = distinct !{!12, !13}
!13 = !{!"llvm.loop.mustprogress"}
!14 = distinct !{!14, !13}
!15 = distinct !{!15, !13}
!16 = distinct !{!16, !13}
!17 = distinct !{!17, !13}


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