; LLVM IR from zchrissirhcz/pixel :: src (px_compare)

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%struct.px_image_t = type { ptr, i32, i32, i32, i32 }

@stderr = external global ptr, align 8
@.str = external hidden unnamed_addr constant [46 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [45 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [47 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [71 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local zeroext i1 @px_image_almost_equal(ptr noundef %0, ptr noundef %1, i32 noundef %2) #0 {
  %4 = alloca i1, align 1
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  store ptr %0, ptr %5, align 8, !tbaa !5
  store ptr %1, ptr %6, align 8, !tbaa !5
  store i32 %2, ptr %7, align 4, !tbaa !9
  %19 = load ptr, ptr %5, align 8, !tbaa !5
  %20 = icmp eq ptr %19, null
  br i1 %20, label %21, label %25

21:                                               ; preds = %3
  %22 = load ptr, ptr %6, align 8, !tbaa !5
  %23 = icmp eq ptr %22, null
  br i1 %23, label %24, label %25

24:                                               ; preds = %21
  store i1 true, ptr %4, align 1
  br label %220

25:                                               ; preds = %21, %3
  %26 = load ptr, ptr %5, align 8, !tbaa !5
  %27 = icmp eq ptr %26, null
  br i1 %27, label %28, label %31

28:                                               ; preds = %25
  %29 = load ptr, ptr %6, align 8, !tbaa !5
  %30 = icmp ne ptr %29, null
  br i1 %30, label %37, label %31

31:                                               ; preds = %28, %25
  %32 = load ptr, ptr %5, align 8, !tbaa !5
  %33 = icmp ne ptr %32, null
  br i1 %33, label %34, label %38

34:                                               ; preds = %31
  %35 = load ptr, ptr %6, align 8, !tbaa !5
  %36 = icmp eq ptr %35, null
  br i1 %36, label %37, label %38

37:                                               ; preds = %34, %28
  store i1 false, ptr %4, align 1
  br label %220

38:                                               ; preds = %34, %31
  %39 = load ptr, ptr %5, align 8, !tbaa !5
  %40 = getelementptr inbounds %struct.px_image_t, ptr %39, i32 0, i32 2
  %41 = load i32, ptr %40, align 4, !tbaa !11
  %42 = load ptr, ptr %6, align 8, !tbaa !5
  %43 = getelementptr inbounds %struct.px_image_t, ptr %42, i32 0, i32 2
  %44 = load i32, ptr %43, align 4, !tbaa !11
  %45 = icmp ne i32 %41, %44
  br i1 %45, label %46, label %59

46:                                               ; preds = %38
  br label %47

47:                                               ; preds = %46
  %48 = load ptr, ptr @stderr, align 8, !tbaa !5
  %49 = load ptr, ptr %5, align 8, !tbaa !5
  %50 = getelementptr inbounds %struct.px_image_t, ptr %49, i32 0, i32 2
  %51 = load i32, ptr %50, align 4, !tbaa !11
  %52 = load ptr, ptr %6, align 8, !tbaa !5
  %53 = getelementptr inbounds %struct.px_image_t, ptr %52, i32 0, i32 2
  %54 = load i32, ptr %53, align 4, !tbaa !11
  %55 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %48, ptr noundef @.str, i32 noundef %51, i32 noundef %54) #4
  %56 = load ptr, ptr @stderr, align 8, !tbaa !5
  %57 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %56, ptr noundef @.str.1) #4
  br label %58

58:                                               ; preds = %47
  store i1 false, ptr %4, align 1
  br label %220

59:                                               ; preds = %38
  %60 = load ptr, ptr %5, align 8, !tbaa !5
  %61 = getelementptr inbounds %struct.px_image_t, ptr %60, i32 0, i32 1
  %62 = load i32, ptr %61, align 8, !tbaa !13
  %63 = load ptr, ptr %6, align 8, !tbaa !5
  %64 = getelementptr inbounds %struct.px_image_t, ptr %63, i32 0, i32 1
  %65 = load i32, ptr %64, align 8, !tbaa !13
  %66 = icmp ne i32 %62, %65
  br i1 %66, label %67, label %80

67:                                               ; preds = %59
  br label %68

68:                                               ; preds = %67
  %69 = load ptr, ptr @stderr, align 8, !tbaa !5
  %70 = load ptr, ptr %5, align 8, !tbaa !5
  %71 = getelementptr inbounds %struct.px_image_t, ptr %70, i32 0, i32 1
  %72 = load i32, ptr %71, align 8, !tbaa !13
  %73 = load ptr, ptr %6, align 8, !tbaa !5
  %74 = getelementptr inbounds %struct.px_image_t, ptr %73, i32 0, i32 1
  %75 = load i32, ptr %74, align 8, !tbaa !13
  %76 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %69, ptr noundef @.str.2, i32 noundef %72, i32 noundef %75) #4
  %77 = load ptr, ptr @stderr, align 8, !tbaa !5
  %78 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %77, ptr noundef @.str.1) #4
  br label %79

79:                                               ; preds = %68
  store i1 false, ptr %4, align 1
  br label %220

80:                                               ; preds = %59
  %81 = load ptr, ptr %5, align 8, !tbaa !5
  %82 = getelementptr inbounds %struct.px_image_t, ptr %81, i32 0, i32 3
  %83 = load i32, ptr %82, align 8, !tbaa !14
  %84 = load ptr, ptr %6, align 8, !tbaa !5
  %85 = getelementptr inbounds %struct.px_image_t, ptr %84, i32 0, i32 3
  %86 = load i32, ptr %85, align 8, !tbaa !14
  %87 = icmp ne i32 %83, %86
  br i1 %87, label %88, label %101

88:                                               ; preds = %80
  br label %89

89:                                               ; preds = %88
  %90 = load ptr, ptr @stderr, align 8, !tbaa !5
  %91 = load ptr, ptr %5, align 8, !tbaa !5
  %92 = getelementptr inbounds %struct.px_image_t, ptr %91, i32 0, i32 3
  %93 = load i32, ptr %92, align 8, !tbaa !14
  %94 = load ptr, ptr %6, align 8, !tbaa !5
  %95 = getelementptr inbounds %struct.px_image_t, ptr %94, i32 0, i32 3
  %96 = load i32, ptr %95, align 8, !tbaa !14
  %97 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %90, ptr noundef @.str.3, i32 noundef %93, i32 noundef %96) #4
  %98 = load ptr, ptr @stderr, align 8, !tbaa !5
  %99 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %98, ptr noundef @.str.1) #4
  br label %100

100:                                              ; preds = %89
  store i1 false, ptr %4, align 1
  br label %220

101:                                              ; preds = %80
  br label %102

102:                                              ; preds = %101
  br label %103

103:                                              ; preds = %102
  br label %104

104:                                              ; preds = %103
  br label %105

105:                                              ; preds = %104
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #4
  %106 = load ptr, ptr %5, align 8, !tbaa !5
  %107 = getelementptr inbounds %struct.px_image_t, ptr %106, i32 0, i32 2
  %108 = load i32, ptr %107, align 4, !tbaa !11
  store i32 %108, ptr %8, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #4
  %109 = load ptr, ptr %5, align 8, !tbaa !5
  %110 = getelementptr inbounds %struct.px_image_t, ptr %109, i32 0, i32 3
  %111 = load i32, ptr %110, align 8, !tbaa !14
  store i32 %111, ptr %9, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #4
  %112 = load ptr, ptr %5, align 8, !tbaa !5
  %113 = getelementptr inbounds %struct.px_image_t, ptr %112, i32 0, i32 1
  %114 = load i32, ptr %113, align 8, !tbaa !13
  %115 = load i32, ptr %9, align 4, !tbaa !9
  %116 = mul nsw i32 %114, %115
  store i32 %116, ptr %10, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #4
  store i32 0, ptr %11, align 4, !tbaa !9
  br label %117

117:                                              ; preds = %213, %105
  %118 = load i32, ptr %11, align 4, !tbaa !9
  %119 = load i32, ptr %8, align 4, !tbaa !9
  %120 = icmp slt i32 %118, %119
  br i1 %120, label %122, label %121

121:                                              ; preds = %117
  store i32 8, ptr %12, align 4
  br label %216

122:                                              ; preds = %117
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #4
  %123 = load ptr, ptr %5, align 8, !tbaa !5
  %124 = getelementptr inbounds %struct.px_image_t, ptr %123, i32 0, i32 0
  %125 = load ptr, ptr %124, align 8, !tbaa !15
  %126 = load i32, ptr %11, align 4, !tbaa !9
  %127 = load ptr, ptr %5, align 8, !tbaa !5
  %128 = getelementptr inbounds %struct.px_image_t, ptr %127, i32 0, i32 4
  %129 = load i32, ptr %128, align 4, !tbaa !16
  %130 = mul nsw i32 %126, %129
  %131 = sext i32 %130 to i64
  %132 = getelementptr inbounds i8, ptr %125, i64 %131
  store ptr %132, ptr %13, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #4
  %133 = load ptr, ptr %6, align 8, !tbaa !5
  %134 = getelementptr inbounds %struct.px_image_t, ptr %133, i32 0, i32 0
  %135 = load ptr, ptr %134, align 8, !tbaa !15
  %136 = load i32, ptr %11, align 4, !tbaa !9
  %137 = load ptr, ptr %6, align 8, !tbaa !5
  %138 = getelementptr inbounds %struct.px_image_t, ptr %137, i32 0, i32 4
  %139 = load i32, ptr %138, align 4, !tbaa !16
  %140 = mul nsw i32 %136, %139
  %141 = sext i32 %140 to i64
  %142 = getelementptr inbounds i8, ptr %135, i64 %141
  store ptr %142, ptr %14, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #4
  store i32 0, ptr %15, align 4, !tbaa !9
  br label %143

143:                                              ; preds = %204, %122
  %144 = load i32, ptr %15, align 4, !tbaa !9
  %145 = load i32, ptr %10, align 4, !tbaa !9
  %146 = icmp slt i32 %144, %145
  br i1 %146, label %148, label %147

147:                                              ; preds = %143
  store i32 11, ptr %12, align 4
  br label %207

148:                                              ; preds = %143
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #4
  %149 = load ptr, ptr %13, align 8, !tbaa !5
  %150 = load i32, ptr %15, align 4, !tbaa !9
  %151 = sext i32 %150 to i64
  %152 = getelementptr inbounds i8, ptr %149, i64 %151
  %153 = load i8, ptr %152, align 1, !tbaa !17
  %154 = zext i8 %153 to i32
  %155 = load ptr, ptr %14, align 8, !tbaa !5
  %156 = load i32, ptr %15, align 4, !tbaa !9
  %157 = sext i32 %156 to i64
  %158 = getelementptr inbounds i8, ptr %155, i64 %157
  %159 = load i8, ptr %158, align 1, !tbaa !17
  %160 = zext i8 %159 to i32
  %161 = sub nsw i32 %154, %160
  %162 = call i32 @llvm.abs.i32(i32 %161, i1 true)
  store i32 %162, ptr %16, align 4, !tbaa !9
  %163 = load i32, ptr %16, align 4, !tbaa !9
  %164 = load i32, ptr %7, align 4, !tbaa !9
  %165 = icmp sgt i32 %163, %164
  br i1 %165, label %166, label %200

166:                                              ; preds = %148
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #4
  %167 = load i32, ptr %11, align 4, !tbaa !9
  %168 = load i32, ptr %9, align 4, !tbaa !9
  %169 = sdiv i32 %167, %168
  store i32 %169, ptr %17, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #4
  %170 = load i32, ptr %11, align 4, !tbaa !9
  %171 = load i32, ptr %9, align 4, !tbaa !9
  %172 = srem i32 %170, %171
  store i32 %172, ptr %18, align 4, !tbaa !9
  br label %173

173:                                              ; preds = %166
  %174 = load ptr, ptr @stderr, align 8, !tbaa !5
  %175 = load i32, ptr %11, align 4, !tbaa !9
  %176 = load i32, ptr %17, align 4, !tbaa !9
  %177 = load i32, ptr %18, align 4, !tbaa !9
  %178 = load ptr, ptr %14, align 8, !tbaa !5
  %179 = load i32, ptr %15, align 4, !tbaa !9
  %180 = sext i32 %179 to i64
  %181 = getelementptr inbounds i8, ptr %178, i64 %180
  %182 = load i8, ptr %181, align 1, !tbaa !17
  %183 = zext i8 %182 to i32
  %184 = load i32, ptr %11, align 4, !tbaa !9
  %185 = load i32, ptr %17, align 4, !tbaa !9
  %186 = load i32, ptr %18, align 4, !tbaa !9
  %187 = load ptr, ptr %13, align 8, !tbaa !5
  %188 = load i32, ptr %15, align 4, !tbaa !9
  %189 = sext i32 %188 to i64
  %190 = getelementptr inbounds i8, ptr %187, i64 %189
  %191 = load i8, ptr %190, align 1, !tbaa !17
  %192 = zext i8 %191 to i32
  %193 = load i32, ptr %16, align 4, !tbaa !9
  %194 = load i32, ptr %7, align 4, !tbaa !9
  %195 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %174, ptr noundef @.str.4, i32 noundef %175, i32 noundef %176, i32 noundef %177, i32 noundef %183, i32 noundef %184, i32 noundef %185, i32 noundef %186, i32 noundef %192, i32 noundef %193, i32 noundef %194) #4
  %196 = load ptr, ptr @stderr, align 8, !tbaa !5
  %197 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %196, ptr noundef @.str.1) #4
  br label %198

198:                                              ; preds = %173
  br label %199

199:                                              ; preds = %198
  store i1 false, ptr %4, align 1
  store i32 1, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #4
  br label %201

200:                                              ; preds = %148
  store i32 0, ptr %12, align 4
  br label %201

201:                                              ; preds = %200, %199
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #4
  %202 = load i32, ptr %12, align 4
  switch i32 %202, label %207 [
    i32 0, label %203
  ]

203:                                              ; preds = %201
  br label %204

204:                                              ; preds = %203
  %205 = load i32, ptr %15, align 4, !tbaa !9
  %206 = add nsw i32 %205, 1
  store i32 %206, ptr %15, align 4, !tbaa !9
  br label %143, !llvm.loop !18

207:                                              ; preds = %201, %147
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #4
  %208 = load i32, ptr %12, align 4
  switch i32 %208, label %210 [
    i32 11, label %209
  ]

209:                                              ; preds = %207
  store i32 0, ptr %12, align 4
  br label %210

210:                                              ; preds = %209, %207
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #4
  %211 = load i32, ptr %12, align 4
  switch i32 %211, label %216 [
    i32 0, label %212
  ]

212:                                              ; preds = %210
  br label %213

213:                                              ; preds = %212
  %214 = load i32, ptr %11, align 4, !tbaa !9
  %215 = add nsw i32 %214, 1
  store i32 %215, ptr %11, align 4, !tbaa !9
  br label %117, !llvm.loop !20

216:                                              ; preds = %210, %121
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #4
  %217 = load i32, ptr %12, align 4
  switch i32 %217, label %219 [
    i32 8, label %218
  ]

218:                                              ; preds = %216
  store i1 true, ptr %4, align 1
  store i32 1, ptr %12, align 4
  br label %219

219:                                              ; preds = %218, %216
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #4
  br label %220

220:                                              ; preds = %219, %100, %79, %58, %37, %24
  %221 = load i1, ptr %4, align 1
  ret i1 %221
}

; Function Attrs: nounwind
declare i32 @fprintf(ptr 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: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.abs.i32(i32, i1 immarg) #3

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

attributes #0 = { 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 = { 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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { 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/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !10, i64 12}
!12 = !{!"px_image_t", !6, i64 0, !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20}
!13 = !{!12, !10, i64 8}
!14 = !{!12, !10, i64 16}
!15 = !{!12, !6, i64 0}
!16 = !{!12, !10, i64 20}
!17 = !{!7, !7, i64 0}
!18 = distinct !{!18, !19}
!19 = !{!"llvm.loop.mustprogress"}
!20 = distinct !{!20, !19}


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

@stderr = external local_unnamed_addr global ptr, align 8
@.str = external hidden unnamed_addr constant [46 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [45 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [47 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [71 x i8], align 1

; Function Attrs: nofree nounwind uwtable
define dso_local noundef zeroext i1 @px_image_almost_equal(ptr noundef readonly %0, ptr noundef readonly %1, i32 noundef %2) local_unnamed_addr #0 {
  %4 = icmp eq ptr %0, null
  %5 = icmp eq ptr %1, null
  %or.cond = and i1 %4, %5
  br i1 %or.cond, label %.critedge93, label %6

6:                                                ; preds = %3
  %or.cond89 = xor i1 %4, %5
  br i1 %or.cond89, label %.critedge93, label %7

7:                                                ; preds = %6
  %8 = getelementptr inbounds i8, ptr %0, i64 12
  %9 = load i32, ptr %8, align 4, !tbaa !5
  %10 = getelementptr inbounds i8, ptr %1, i64 12
  %11 = load i32, ptr %10, align 4, !tbaa !5
  %.not = icmp eq i32 %9, %11
  br i1 %.not, label %15, label %12

12:                                               ; preds = %7
  %13 = load ptr, ptr @stderr, align 8, !tbaa !11
  %14 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %13, ptr noundef nonnull @.str, i32 noundef %9, i32 noundef %11) #3
  br label %.critedge93.sink.split

15:                                               ; preds = %7
  %16 = getelementptr inbounds i8, ptr %0, i64 8
  %17 = load i32, ptr %16, align 8, !tbaa !12
  %18 = getelementptr inbounds i8, ptr %1, i64 8
  %19 = load i32, ptr %18, align 8, !tbaa !12
  %.not84 = icmp eq i32 %17, %19
  br i1 %.not84, label %23, label %20

20:                                               ; preds = %15
  %21 = load ptr, ptr @stderr, align 8, !tbaa !11
  %22 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %21, ptr noundef nonnull @.str.2, i32 noundef %17, i32 noundef %19) #3
  br label %.critedge93.sink.split

23:                                               ; preds = %15
  %24 = getelementptr inbounds i8, ptr %0, i64 16
  %25 = load i32, ptr %24, align 8, !tbaa !13
  %26 = getelementptr inbounds i8, ptr %1, i64 16
  %27 = load i32, ptr %26, align 8, !tbaa !13
  %.not85 = icmp eq i32 %25, %27
  br i1 %.not85, label %31, label %28

28:                                               ; preds = %23
  %29 = load ptr, ptr @stderr, align 8, !tbaa !11
  %30 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %29, ptr noundef nonnull @.str.3, i32 noundef %25, i32 noundef %27) #3
  br label %.critedge93.sink.split

31:                                               ; preds = %23
  %32 = mul i32 %25, %17
  %.not88.not99 = icmp sgt i32 %9, 0
  br i1 %.not88.not99, label %.lr.ph, label %.critedge93

.lr.ph:                                           ; preds = %31
  %33 = load ptr, ptr %0, align 8, !tbaa !14
  %34 = load ptr, ptr %1, align 8, !tbaa !14
  %.not8797 = icmp sgt i32 %32, 0
  br i1 %.not8797, label %.critedge.lr.ph.us.preheader, label %.critedge93

.critedge.lr.ph.us.preheader:                     ; preds = %.lr.ph
  %35 = getelementptr inbounds i8, ptr %1, i64 20
  %36 = load i32, ptr %35, align 4, !tbaa !15
  %37 = getelementptr inbounds i8, ptr %0, i64 20
  %38 = load i32, ptr %37, align 4, !tbaa !15
  %39 = sext i32 %38 to i64
  %40 = sext i32 %36 to i64
  %wide.trip.count115 = zext nneg i32 %9 to i64
  %wide.trip.count = zext nneg i32 %32 to i64
  br label %.critedge.lr.ph.us

.critedge.lr.ph.us:                               ; preds = %.critedge.lr.ph.us.preheader, %..critedge91_crit_edge.us
  %indvars.iv112 = phi i64 [ 0, %.critedge.lr.ph.us.preheader ], [ %indvars.iv.next113, %..critedge91_crit_edge.us ]
  %41 = mul nsw i64 %indvars.iv112, %39
  %42 = getelementptr inbounds i8, ptr %33, i64 %41
  %43 = mul nsw i64 %indvars.iv112, %40
  %44 = getelementptr inbounds i8, ptr %34, i64 %43
  br label %.critedge.us

45:                                               ; preds = %.critedge.us
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond.not, label %..critedge91_crit_edge.us, label %.critedge.us, !llvm.loop !16

.critedge.us:                                     ; preds = %.critedge.lr.ph.us, %45
  %indvars.iv = phi i64 [ 0, %.critedge.lr.ph.us ], [ %indvars.iv.next, %45 ]
  %46 = getelementptr inbounds i8, ptr %42, i64 %indvars.iv
  %47 = load i8, ptr %46, align 1, !tbaa !18
  %48 = zext i8 %47 to i32
  %49 = getelementptr inbounds i8, ptr %44, i64 %indvars.iv
  %50 = load i8, ptr %49, align 1, !tbaa !18
  %51 = zext i8 %50 to i32
  %52 = sub nsw i32 %48, %51
  %53 = tail call i32 @llvm.abs.i32(i32 %52, i1 true)
  %.not86.us = icmp sgt i32 %53, %2
  br i1 %.not86.us, label %.split.us, label %45

..critedge91_crit_edge.us:                        ; preds = %45
  %indvars.iv.next113 = add nuw nsw i64 %indvars.iv112, 1
  %exitcond116.not = icmp eq i64 %indvars.iv.next113, %wide.trip.count115
  br i1 %exitcond116.not, label %.critedge93, label %.critedge.lr.ph.us, !llvm.loop !19

.split.us:                                        ; preds = %.critedge.us
  %54 = trunc nuw nsw i64 %indvars.iv112 to i32
  %55 = sdiv i32 %54, %25
  %56 = srem i32 %54, %25
  %57 = load ptr, ptr @stderr, align 8, !tbaa !11
  %58 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %57, ptr noundef nonnull @.str.4, i32 noundef %54, i32 noundef %55, i32 noundef %56, i32 noundef %51, i32 noundef %54, i32 noundef %55, i32 noundef %56, i32 noundef %48, i32 noundef %53, i32 noundef %2) #3
  br label %.critedge93.sink.split

.critedge93.sink.split:                           ; preds = %12, %20, %28, %.split.us
  %59 = load ptr, ptr @stderr, align 8, !tbaa !11
  %60 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %59, ptr noundef nonnull @.str.1) #3
  br label %.critedge93

.critedge93:                                      ; preds = %..critedge91_crit_edge.us, %.critedge93.sink.split, %.lr.ph, %31, %6, %3
  %.6 = phi i1 [ true, %3 ], [ false, %6 ], [ true, %31 ], [ true, %.lr.ph ], [ false, %.critedge93.sink.split ], [ true, %..critedge91_crit_edge.us ]
  ret i1 %.6
}

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

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.abs.i32(i32, i1 immarg) #2

attributes #0 = { nofree 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 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #3 = { cold 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, !10, i64 12}
!6 = !{!"px_image_t", !7, i64 0, !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"int", !8, i64 0}
!11 = !{!7, !7, i64 0}
!12 = !{!6, !10, i64 8}
!13 = !{!6, !10, i64 16}
!14 = !{!6, !7, i64 0}
!15 = !{!6, !10, i64 20}
!16 = distinct !{!16, !17}
!17 = !{!"llvm.loop.mustprogress"}
!18 = !{!8, !8, i64 0}
!19 = distinct !{!19, !17}


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