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

; 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_pad_t = type { i32, i32, i32, i32 }
%struct.px_size_t = type { i32, i32 }
%struct.px_matrix_t = type { ptr, i32, i32 }

@stderr = external global ptr, align 8
@.str.8 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [16 x i8], align 1

; 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 nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #1

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

; Function Attrs: nounwind uwtable
declare dso_local ptr @px_create_matrix(i64) #2

; Function Attrs: nounwind uwtable
declare dso_local i32 @px_set_matrix_value(ptr noundef, i32 noundef, i32 noundef, float noundef) #2

; Function Attrs: nounwind uwtable
declare dso_local float @px_get_matrix_value(ptr noundef, i32 noundef, i32 noundef) #2

; Function Attrs: nounwind uwtable
define dso_local ptr @px_copy_make_border_for_matrix(ptr noundef %0, i64 %1, i64 %2) #2 {
  %4 = alloca ptr, align 8
  %5 = alloca %struct.px_pad_t, align 4
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca %struct.px_size_t, align 4
  %10 = alloca ptr, align 8
  %11 = alloca float, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca float, align 4
  %18 = getelementptr inbounds { i64, i64 }, ptr %5, i32 0, i32 0
  store i64 %1, ptr %18, align 4
  %19 = getelementptr inbounds { i64, i64 }, ptr %5, i32 0, i32 1
  store i64 %2, ptr %19, align 4
  store ptr %0, ptr %6, align 8, !tbaa !5
  %20 = getelementptr inbounds %struct.px_pad_t, ptr %5, i32 0, i32 0
  %21 = load i32, ptr %20, align 4, !tbaa !9
  %22 = icmp slt i32 %21, 0
  br i1 %22, label %35, label %23

23:                                               ; preds = %3
  %24 = getelementptr inbounds %struct.px_pad_t, ptr %5, i32 0, i32 1
  %25 = load i32, ptr %24, align 4, !tbaa !12
  %26 = icmp slt i32 %25, 0
  br i1 %26, label %35, label %27

27:                                               ; preds = %23
  %28 = getelementptr inbounds %struct.px_pad_t, ptr %5, i32 0, i32 2
  %29 = load i32, ptr %28, align 4, !tbaa !13
  %30 = icmp slt i32 %29, 0
  br i1 %30, label %35, label %31

31:                                               ; preds = %27
  %32 = getelementptr inbounds %struct.px_pad_t, ptr %5, i32 0, i32 3
  %33 = load i32, ptr %32, align 4, !tbaa !14
  %34 = icmp slt i32 %33, 0
  br i1 %34, label %35, label %42

35:                                               ; preds = %31, %27, %23, %3
  br label %36

36:                                               ; preds = %35
  %37 = load ptr, ptr @stderr, align 8, !tbaa !5
  %38 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %37, ptr noundef @.str.8) #4
  %39 = load ptr, ptr @stderr, align 8, !tbaa !5
  %40 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %39, ptr noundef @.str.9) #4
  br label %41

41:                                               ; preds = %36
  store ptr null, ptr %4, align 8
  br label %164

42:                                               ; preds = %31
  %43 = load ptr, ptr %6, align 8, !tbaa !5
  %44 = icmp eq ptr %43, null
  br i1 %44, label %60, label %45

45:                                               ; preds = %42
  %46 = load ptr, ptr %6, align 8, !tbaa !5
  %47 = getelementptr inbounds %struct.px_matrix_t, ptr %46, i32 0, i32 0
  %48 = load ptr, ptr %47, align 8, !tbaa !15
  %49 = icmp eq ptr %48, null
  br i1 %49, label %60, label %50

50:                                               ; preds = %45
  %51 = load ptr, ptr %6, align 8, !tbaa !5
  %52 = getelementptr inbounds %struct.px_matrix_t, ptr %51, i32 0, i32 1
  %53 = load i32, ptr %52, align 8, !tbaa !17
  %54 = icmp slt i32 %53, 0
  br i1 %54, label %60, label %55

55:                                               ; preds = %50
  %56 = load ptr, ptr %6, align 8, !tbaa !5
  %57 = getelementptr inbounds %struct.px_matrix_t, ptr %56, i32 0, i32 2
  %58 = load i32, ptr %57, align 4, !tbaa !18
  %59 = icmp slt i32 %58, 0
  br i1 %59, label %60, label %67

60:                                               ; preds = %55, %50, %45, %42
  br label %61

61:                                               ; preds = %60
  %62 = load ptr, ptr @stderr, align 8, !tbaa !5
  %63 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %62, ptr noundef @.str.10) #4
  %64 = load ptr, ptr @stderr, align 8, !tbaa !5
  %65 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %64, ptr noundef @.str.9) #4
  br label %66

66:                                               ; preds = %61
  store ptr null, ptr %4, align 8
  br label %164

67:                                               ; preds = %55
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #4
  %68 = load ptr, ptr %6, align 8, !tbaa !5
  %69 = getelementptr inbounds %struct.px_matrix_t, ptr %68, i32 0, i32 1
  %70 = load i32, ptr %69, align 8, !tbaa !17
  %71 = getelementptr inbounds %struct.px_pad_t, ptr %5, i32 0, i32 0
  %72 = load i32, ptr %71, align 4, !tbaa !9
  %73 = add nsw i32 %70, %72
  %74 = getelementptr inbounds %struct.px_pad_t, ptr %5, i32 0, i32 1
  %75 = load i32, ptr %74, align 4, !tbaa !12
  %76 = add nsw i32 %73, %75
  store i32 %76, ptr %7, align 4, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #4
  %77 = load ptr, ptr %6, align 8, !tbaa !5
  %78 = getelementptr inbounds %struct.px_matrix_t, ptr %77, i32 0, i32 2
  %79 = load i32, ptr %78, align 4, !tbaa !18
  %80 = getelementptr inbounds %struct.px_pad_t, ptr %5, i32 0, i32 2
  %81 = load i32, ptr %80, align 4, !tbaa !13
  %82 = add nsw i32 %79, %81
  %83 = getelementptr inbounds %struct.px_pad_t, ptr %5, i32 0, i32 3
  %84 = load i32, ptr %83, align 4, !tbaa !14
  %85 = add nsw i32 %82, %84
  store i32 %85, ptr %8, align 4, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #4
  call void @llvm.memset.p0.i64(ptr align 4 %9, i8 0, i64 8, i1 false)
  %86 = load i32, ptr %7, align 4, !tbaa !19
  %87 = getelementptr inbounds %struct.px_size_t, ptr %9, i32 0, i32 1
  store i32 %86, ptr %87, align 4, !tbaa !20
  %88 = load i32, ptr %8, align 4, !tbaa !19
  %89 = getelementptr inbounds %struct.px_size_t, ptr %9, i32 0, i32 0
  store i32 %88, ptr %89, align 4, !tbaa !22
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #4
  %90 = load i64, ptr %9, align 4
  %91 = call ptr @px_create_matrix(i64 %90)
  store ptr %91, ptr %10, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #4
  store float 0.000000e+00, ptr %11, align 4, !tbaa !23
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #4
  store i32 0, ptr %12, align 4, !tbaa !19
  br label %92

92:                                               ; preds = %159, %67
  %93 = load i32, ptr %12, align 4, !tbaa !19
  %94 = load i32, ptr %7, align 4, !tbaa !19
  %95 = icmp slt i32 %93, %94
  br i1 %95, label %97, label %96

96:                                               ; preds = %92
  store i32 6, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #4
  br label %162

97:                                               ; preds = %92
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #4
  store i32 0, ptr %14, align 4, !tbaa !19
  br label %98

98:                                               ; preds = %155, %97
  %99 = load i32, ptr %14, align 4, !tbaa !19
  %100 = load i32, ptr %8, align 4, !tbaa !19
  %101 = icmp slt i32 %99, %100
  br i1 %101, label %103, label %102

102:                                              ; preds = %98
  store i32 9, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #4
  br label %158

103:                                              ; preds = %98
  %104 = load i32, ptr %12, align 4, !tbaa !19
  %105 = getelementptr inbounds %struct.px_pad_t, ptr %5, i32 0, i32 0
  %106 = load i32, ptr %105, align 4, !tbaa !9
  %107 = icmp slt i32 %104, %106
  br i1 %107, label %131, label %108

108:                                              ; preds = %103
  %109 = load i32, ptr %12, align 4, !tbaa !19
  %110 = load ptr, ptr %6, align 8, !tbaa !5
  %111 = getelementptr inbounds %struct.px_matrix_t, ptr %110, i32 0, i32 1
  %112 = load i32, ptr %111, align 8, !tbaa !17
  %113 = getelementptr inbounds %struct.px_pad_t, ptr %5, i32 0, i32 0
  %114 = load i32, ptr %113, align 4, !tbaa !9
  %115 = add nsw i32 %112, %114
  %116 = icmp sge i32 %109, %115
  br i1 %116, label %131, label %117

117:                                              ; preds = %108
  %118 = load i32, ptr %14, align 4, !tbaa !19
  %119 = getelementptr inbounds %struct.px_pad_t, ptr %5, i32 0, i32 2
  %120 = load i32, ptr %119, align 4, !tbaa !13
  %121 = icmp slt i32 %118, %120
  br i1 %121, label %131, label %122

122:                                              ; preds = %117
  %123 = load i32, ptr %14, align 4, !tbaa !19
  %124 = load ptr, ptr %6, align 8, !tbaa !5
  %125 = getelementptr inbounds %struct.px_matrix_t, ptr %124, i32 0, i32 2
  %126 = load i32, ptr %125, align 4, !tbaa !18
  %127 = getelementptr inbounds %struct.px_pad_t, ptr %5, i32 0, i32 2
  %128 = load i32, ptr %127, align 4, !tbaa !13
  %129 = add nsw i32 %126, %128
  %130 = icmp sge i32 %123, %129
  br i1 %130, label %131, label %136

131:                                              ; preds = %122, %117, %108, %103
  %132 = load ptr, ptr %10, align 8, !tbaa !5
  %133 = load i32, ptr %12, align 4, !tbaa !19
  %134 = load i32, ptr %14, align 4, !tbaa !19
  %135 = call i32 @px_set_matrix_value(ptr noundef %132, i32 noundef %133, i32 noundef %134, float noundef 0.000000e+00)
  br label %154

136:                                              ; preds = %122
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #4
  %137 = load i32, ptr %12, align 4, !tbaa !19
  %138 = getelementptr inbounds %struct.px_pad_t, ptr %5, i32 0, i32 0
  %139 = load i32, ptr %138, align 4, !tbaa !9
  %140 = sub nsw i32 %137, %139
  store i32 %140, ptr %15, align 4, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #4
  %141 = load i32, ptr %14, align 4, !tbaa !19
  %142 = getelementptr inbounds %struct.px_pad_t, ptr %5, i32 0, i32 2
  %143 = load i32, ptr %142, align 4, !tbaa !13
  %144 = sub nsw i32 %141, %143
  store i32 %144, ptr %16, align 4, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #4
  %145 = load ptr, ptr %6, align 8, !tbaa !5
  %146 = load i32, ptr %15, align 4, !tbaa !19
  %147 = load i32, ptr %16, align 4, !tbaa !19
  %148 = call float @px_get_matrix_value(ptr noundef %145, i32 noundef %146, i32 noundef %147)
  store float %148, ptr %17, align 4, !tbaa !23
  %149 = load ptr, ptr %10, align 8, !tbaa !5
  %150 = load i32, ptr %12, align 4, !tbaa !19
  %151 = load i32, ptr %14, align 4, !tbaa !19
  %152 = load float, ptr %17, align 4, !tbaa !23
  %153 = call i32 @px_set_matrix_value(ptr noundef %149, i32 noundef %150, i32 noundef %151, float noundef %152)
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #4
  br label %154

154:                                              ; preds = %136, %131
  br label %155

155:                                              ; preds = %154
  %156 = load i32, ptr %14, align 4, !tbaa !19
  %157 = add nsw i32 %156, 1
  store i32 %157, ptr %14, align 4, !tbaa !19
  br label %98, !llvm.loop !25

158:                                              ; preds = %102
  br label %159

159:                                              ; preds = %158
  %160 = load i32, ptr %12, align 4, !tbaa !19
  %161 = add nsw i32 %160, 1
  store i32 %161, ptr %12, align 4, !tbaa !19
  br label %92, !llvm.loop !27

162:                                              ; preds = %96
  %163 = load ptr, ptr %10, align 8, !tbaa !5
  store ptr %163, ptr %4, align 8
  store i32 1, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #4
  br label %164

164:                                              ; preds = %162, %66, %41
  %165 = load ptr, ptr %4, align 8
  ret ptr %165
}

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #2 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { 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, !11, i64 0}
!10 = !{!"px_pad_t", !11, i64 0, !11, i64 4, !11, i64 8, !11, i64 12}
!11 = !{!"int", !7, i64 0}
!12 = !{!10, !11, i64 4}
!13 = !{!10, !11, i64 8}
!14 = !{!10, !11, i64 12}
!15 = !{!16, !6, i64 0}
!16 = !{!"px_matrix_t", !6, i64 0, !11, i64 8, !11, i64 12}
!17 = !{!16, !11, i64 8}
!18 = !{!16, !11, i64 12}
!19 = !{!11, !11, i64 0}
!20 = !{!21, !11, i64 4}
!21 = !{!"px_size_t", !11, i64 0, !11, i64 4}
!22 = !{!21, !11, i64 0}
!23 = !{!24, !24, i64 0}
!24 = !{!"float", !7, i64 0}
!25 = distinct !{!25, !26}
!26 = !{!"llvm.loop.mustprogress"}
!27 = distinct !{!27, !26}


; 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.8 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [16 x i8], align 1

; Function Attrs: nounwind uwtable
declare dso_local ptr @px_create_matrix(i64) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare dso_local i32 @px_set_matrix_value(ptr noundef, i32 noundef, i32 noundef, float noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare dso_local float @px_get_matrix_value(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
define dso_local ptr @px_copy_make_border_for_matrix(ptr noundef %0, i64 %1, i64 %2) local_unnamed_addr #0 {
  %.sroa.040.0.extract.trunc = trunc i64 %1 to i32
  %.sroa.6.0.extract.shift = lshr i64 %1, 32
  %.sroa.6.0.extract.trunc = trunc nuw i64 %.sroa.6.0.extract.shift to i32
  %.sroa.8.8.extract.trunc = trunc i64 %2 to i32
  %.sroa.14.8.extract.shift = lshr i64 %2, 32
  %.sroa.14.8.extract.trunc = trunc nuw i64 %.sroa.14.8.extract.shift to i32
  %4 = and i64 %1, -9223372034707292160
  %or.cond = icmp ne i64 %4, 0
  %5 = and i64 %2, -9223372034707292160
  %6 = icmp ne i64 %5, 0
  %or.cond8 = select i1 %or.cond, i1 true, i1 %6
  br i1 %or.cond8, label %.loopexit.sink.split, label %7

7:                                                ; preds = %3
  %8 = icmp eq ptr %0, null
  br i1 %8, label %.loopexit.sink.split, label %9

9:                                                ; preds = %7
  %10 = load ptr, ptr %0, align 8, !tbaa !5
  %11 = icmp eq ptr %10, null
  br i1 %11, label %.loopexit.sink.split, label %12

12:                                               ; preds = %9
  %13 = getelementptr inbounds i8, ptr %0, i64 8
  %14 = load i32, ptr %13, align 8, !tbaa !11
  %15 = icmp slt i32 %14, 0
  br i1 %15, label %.loopexit.sink.split, label %16

16:                                               ; preds = %12
  %17 = getelementptr inbounds i8, ptr %0, i64 12
  %18 = load i32, ptr %17, align 4, !tbaa !12
  %19 = icmp slt i32 %18, 0
  br i1 %19, label %.loopexit.sink.split, label %20

20:                                               ; preds = %16
  %21 = add nuw i32 %.sroa.6.0.extract.trunc, %.sroa.040.0.extract.trunc
  %22 = add i32 %21, %14
  %23 = add nuw i32 %.sroa.14.8.extract.trunc, %.sroa.8.8.extract.trunc
  %24 = add i32 %23, %18
  %.sroa.5.0.insert.ext = zext nneg i32 %22 to i64
  %.sroa.5.0.insert.shift = shl nuw nsw i64 %.sroa.5.0.insert.ext, 32
  %.sroa.0.0.insert.ext = zext nneg i32 %24 to i64
  %.sroa.0.0.insert.insert = or disjoint i64 %.sroa.5.0.insert.shift, %.sroa.0.0.insert.ext
  %25 = tail call ptr @px_create_matrix(i64 %.sroa.0.0.insert.insert)
  %26 = icmp sgt i32 %22, 0
  %27 = icmp sgt i32 %24, 0
  %or.cond70 = select i1 %26, i1 %27, i1 false
  br i1 %or.cond70, label %.preheader.us, label %.loopexit

.preheader.us:                                    ; preds = %20, %._crit_edge.us
  %.05360.us = phi i32 [ %42, %._crit_edge.us ], [ 0, %20 ]
  %28 = icmp slt i32 %.05360.us, %.sroa.040.0.extract.trunc
  %29 = sub nsw i32 %.05360.us, %.sroa.040.0.extract.trunc
  br i1 %28, label %.lr.ph.split.us.us, label %.lr.ph.split.us64

.lr.ph.split.us64:                                ; preds = %.preheader.us, %39
  %.05259.us62 = phi i32 [ %41, %39 ], [ 0, %.preheader.us ]
  %30 = load i32, ptr %13, align 8, !tbaa !11
  %31 = add nsw i32 %30, %.sroa.040.0.extract.trunc
  %.not.us = icmp sge i32 %.05360.us, %31
  %32 = icmp slt i32 %.05259.us62, %.sroa.8.8.extract.trunc
  %or.cond58.us = select i1 %.not.us, i1 true, i1 %32
  br i1 %or.cond58.us, label %39, label %33

33:                                               ; preds = %.lr.ph.split.us64
  %34 = load i32, ptr %17, align 4, !tbaa !12
  %35 = add nsw i32 %34, %.sroa.8.8.extract.trunc
  %.not57.us = icmp slt i32 %.05259.us62, %35
  br i1 %.not57.us, label %36, label %39

36:                                               ; preds = %33
  %37 = sub nsw i32 %.05259.us62, %.sroa.8.8.extract.trunc
  %38 = tail call float @px_get_matrix_value(ptr noundef nonnull %0, i32 noundef %29, i32 noundef %37)
  br label %39

39:                                               ; preds = %.lr.ph.split.us64, %33, %36
  %.sink = phi float [ %38, %36 ], [ 0.000000e+00, %33 ], [ 0.000000e+00, %.lr.ph.split.us64 ]
  %40 = tail call i32 @px_set_matrix_value(ptr noundef %25, i32 noundef %.05360.us, i32 noundef %.05259.us62, float noundef %.sink)
  %41 = add nuw nsw i32 %.05259.us62, 1
  %exitcond.not = icmp eq i32 %41, %24
  br i1 %exitcond.not, label %._crit_edge.us, label %.lr.ph.split.us64, !llvm.loop !13

._crit_edge.us:                                   ; preds = %39, %.lr.ph.split.us.us
  %42 = add nuw nsw i32 %.05360.us, 1
  %exitcond68.not = icmp eq i32 %42, %22
  br i1 %exitcond68.not, label %.loopexit, label %.preheader.us, !llvm.loop !15

.lr.ph.split.us.us:                               ; preds = %.preheader.us, %.lr.ph.split.us.us
  %.05259.us.us = phi i32 [ %44, %.lr.ph.split.us.us ], [ 0, %.preheader.us ]
  %43 = tail call i32 @px_set_matrix_value(ptr noundef %25, i32 noundef %.05360.us, i32 noundef %.05259.us.us, float noundef 0.000000e+00)
  %44 = add nuw nsw i32 %.05259.us.us, 1
  %exitcond67.not = icmp eq i32 %44, %24
  br i1 %exitcond67.not, label %._crit_edge.us, label %.lr.ph.split.us.us, !llvm.loop !13

.loopexit.sink.split:                             ; preds = %16, %12, %9, %7, %3
  %.str.10.sink = phi ptr [ @.str.8, %3 ], [ @.str.10, %7 ], [ @.str.10, %9 ], [ @.str.10, %12 ], [ @.str.10, %16 ]
  %45 = load ptr, ptr @stderr, align 8, !tbaa !16
  %46 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %45, ptr noundef nonnull %.str.10.sink) #2
  %47 = load ptr, ptr @stderr, align 8, !tbaa !16
  %48 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %47, ptr noundef nonnull @.str.9) #2
  br label %.loopexit

.loopexit:                                        ; preds = %._crit_edge.us, %.loopexit.sink.split, %20
  %.0 = phi ptr [ %25, %20 ], [ null, %.loopexit.sink.split ], [ %25, %._crit_edge.us ]
  ret ptr %.0
}

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

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 = { 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 = { 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, !7, i64 0}
!6 = !{!"px_matrix_t", !7, i64 0, !10, i64 8, !10, i64 12}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"int", !8, i64 0}
!11 = !{!6, !10, i64 8}
!12 = !{!6, !10, i64 12}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = distinct !{!15, !14}
!16 = !{!7, !7, i64 0}


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