; LLVM IR from tezc/sc :: array (array_example)

; 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.sc_array_int = type { i8, i64, i64, ptr }

@.str.7 = external hidden unnamed_addr constant [12 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: nounwind allocsize(1)
declare ptr @realloc(ptr noundef, i64 noundef) #2

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

declare i32 @printf(ptr noundef, ...) #3

; Function Attrs: nounwind
declare void @free(ptr noundef) #4

; Function Attrs: nounwind uwtable
define dso_local void @example_int() #5 {
  %1 = alloca %struct.sc_array_int, align 8
  %2 = alloca i64, align 8
  %3 = alloca i64, align 8
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %6 = alloca i64, align 8
  %7 = alloca i64, align 8
  %8 = alloca ptr, align 8
  %9 = alloca i64, align 8
  %10 = alloca i64, align 8
  %11 = alloca ptr, align 8
  %12 = alloca i64, align 8
  call void @llvm.lifetime.start.p0(i64 32, ptr %1) #6
  br label %13

13:                                               ; preds = %0
  call void @llvm.memset.p0.i64(ptr align 8 %1, i8 0, i64 32, i1 false)
  br label %14

14:                                               ; preds = %13
  br label %15

15:                                               ; preds = %14
  br label %16

16:                                               ; preds = %15
  call void @llvm.lifetime.start.p0(i64 8, ptr %2) #6
  store i64 4611686018427387903, ptr %2, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #6
  %17 = getelementptr inbounds %struct.sc_array_int, ptr %1, i32 0, i32 1
  %18 = load i64, ptr %17, align 8, !tbaa !9
  %19 = getelementptr inbounds %struct.sc_array_int, ptr %1, i32 0, i32 2
  %20 = load i64, ptr %19, align 8, !tbaa !13
  %21 = icmp eq i64 %18, %20
  br i1 %21, label %22, label %53

22:                                               ; preds = %16
  %23 = getelementptr inbounds %struct.sc_array_int, ptr %1, i32 0, i32 1
  %24 = load i64, ptr %23, align 8, !tbaa !9
  %25 = icmp ugt i64 %24, 2305843009213693951
  br i1 %25, label %26, label %28

26:                                               ; preds = %22
  %27 = getelementptr inbounds %struct.sc_array_int, ptr %1, i32 0, i32 0
  store i8 1, ptr %27, align 8, !tbaa !14
  store i32 4, ptr %5, align 4
  br label %61

28:                                               ; preds = %22
  %29 = getelementptr inbounds %struct.sc_array_int, ptr %1, i32 0, i32 1
  %30 = load i64, ptr %29, align 8, !tbaa !9
  %31 = icmp eq i64 %30, 0
  br i1 %31, label %32, label %33

32:                                               ; preds = %28
  br label %37

33:                                               ; preds = %28
  %34 = getelementptr inbounds %struct.sc_array_int, ptr %1, i32 0, i32 1
  %35 = load i64, ptr %34, align 8, !tbaa !9
  %36 = mul i64 %35, 2
  br label %37

37:                                               ; preds = %33, %32
  %38 = phi i64 [ 8, %32 ], [ %36, %33 ]
  store i64 %38, ptr %3, align 8, !tbaa !5
  %39 = getelementptr inbounds %struct.sc_array_int, ptr %1, i32 0, i32 3
  %40 = load ptr, ptr %39, align 8, !tbaa !15
  %41 = load i64, ptr %3, align 8, !tbaa !5
  %42 = mul i64 %41, 4
  %43 = call ptr @realloc(ptr noundef %40, i64 noundef %42) #7
  store ptr %43, ptr %4, align 8, !tbaa !16
  %44 = load ptr, ptr %4, align 8, !tbaa !16
  %45 = icmp eq ptr %44, null
  br i1 %45, label %46, label %48

46:                                               ; preds = %37
  %47 = getelementptr inbounds %struct.sc_array_int, ptr %1, i32 0, i32 0
  store i8 1, ptr %47, align 8, !tbaa !14
  store i32 4, ptr %5, align 4
  br label %61

48:                                               ; preds = %37
  %49 = load i64, ptr %3, align 8, !tbaa !5
  %50 = getelementptr inbounds %struct.sc_array_int, ptr %1, i32 0, i32 1
  store i64 %49, ptr %50, align 8, !tbaa !9
  %51 = load ptr, ptr %4, align 8, !tbaa !16
  %52 = getelementptr inbounds %struct.sc_array_int, ptr %1, i32 0, i32 3
  store ptr %51, ptr %52, align 8, !tbaa !15
  br label %53

53:                                               ; preds = %48, %16
  %54 = getelementptr inbounds %struct.sc_array_int, ptr %1, i32 0, i32 0
  store i8 0, ptr %54, align 8, !tbaa !14
  %55 = getelementptr inbounds %struct.sc_array_int, ptr %1, i32 0, i32 3
  %56 = load ptr, ptr %55, align 8, !tbaa !15
  %57 = getelementptr inbounds %struct.sc_array_int, ptr %1, i32 0, i32 2
  %58 = load i64, ptr %57, align 8, !tbaa !13
  %59 = add i64 %58, 1
  store i64 %59, ptr %57, align 8, !tbaa !13
  %60 = getelementptr inbounds i32, ptr %56, i64 %58
  store i32 0, ptr %60, align 4, !tbaa !17
  store i32 0, ptr %5, align 4
  br label %61

61:                                               ; preds = %53, %46, %26
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %2) #6
  %62 = load i32, ptr %5, align 4
  switch i32 %62, label %191 [
    i32 0, label %63
    i32 4, label %65
  ]

63:                                               ; preds = %61
  br label %64

64:                                               ; preds = %63
  br label %65

65:                                               ; preds = %64, %61
  br label %66

66:                                               ; preds = %65
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #6
  store i64 4611686018427387903, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #6
  %67 = getelementptr inbounds %struct.sc_array_int, ptr %1, i32 0, i32 1
  %68 = load i64, ptr %67, align 8, !tbaa !9
  %69 = getelementptr inbounds %struct.sc_array_int, ptr %1, i32 0, i32 2
  %70 = load i64, ptr %69, align 8, !tbaa !13
  %71 = icmp eq i64 %68, %70
  br i1 %71, label %72, label %103

72:                                               ; preds = %66
  %73 = getelementptr inbounds %struct.sc_array_int, ptr %1, i32 0, i32 1
  %74 = load i64, ptr %73, align 8, !tbaa !9
  %75 = icmp ugt i64 %74, 2305843009213693951
  br i1 %75, label %76, label %78

76:                                               ; preds = %72
  %77 = getelementptr inbounds %struct.sc_array_int, ptr %1, i32 0, i32 0
  store i8 1, ptr %77, align 8, !tbaa !14
  store i32 6, ptr %5, align 4
  br label %111

78:                                               ; preds = %72
  %79 = getelementptr inbounds %struct.sc_array_int, ptr %1, i32 0, i32 1
  %80 = load i64, ptr %79, align 8, !tbaa !9
  %81 = icmp eq i64 %80, 0
  br i1 %81, label %82, label %83

82:                                               ; preds = %78
  br label %87

83:                                               ; preds = %78
  %84 = getelementptr inbounds %struct.sc_array_int, ptr %1, i32 0, i32 1
  %85 = load i64, ptr %84, align 8, !tbaa !9
  %86 = mul i64 %85, 2
  br label %87

87:                                               ; preds = %83, %82
  %88 = phi i64 [ 8, %82 ], [ %86, %83 ]
  store i64 %88, ptr %7, align 8, !tbaa !5
  %89 = getelementptr inbounds %struct.sc_array_int, ptr %1, i32 0, i32 3
  %90 = load ptr, ptr %89, align 8, !tbaa !15
  %91 = load i64, ptr %7, align 8, !tbaa !5
  %92 = mul i64 %91, 4
  %93 = call ptr @realloc(ptr noundef %90, i64 noundef %92) #7
  store ptr %93, ptr %8, align 8, !tbaa !16
  %94 = load ptr, ptr %8, align 8, !tbaa !16
  %95 = icmp eq ptr %94, null
  br i1 %95, label %96, label %98

96:                                               ; preds = %87
  %97 = getelementptr inbounds %struct.sc_array_int, ptr %1, i32 0, i32 0
  store i8 1, ptr %97, align 8, !tbaa !14
  store i32 6, ptr %5, align 4
  br label %111

98:                                               ; preds = %87
  %99 = load i64, ptr %7, align 8, !tbaa !5
  %100 = getelementptr inbounds %struct.sc_array_int, ptr %1, i32 0, i32 1
  store i64 %99, ptr %100, align 8, !tbaa !9
  %101 = load ptr, ptr %8, align 8, !tbaa !16
  %102 = getelementptr inbounds %struct.sc_array_int, ptr %1, i32 0, i32 3
  store ptr %101, ptr %102, align 8, !tbaa !15
  br label %103

103:                                              ; preds = %98, %66
  %104 = getelementptr inbounds %struct.sc_array_int, ptr %1, i32 0, i32 0
  store i8 0, ptr %104, align 8, !tbaa !14
  %105 = getelementptr inbounds %struct.sc_array_int, ptr %1, i32 0, i32 3
  %106 = load ptr, ptr %105, align 8, !tbaa !15
  %107 = getelementptr inbounds %struct.sc_array_int, ptr %1, i32 0, i32 2
  %108 = load i64, ptr %107, align 8, !tbaa !13
  %109 = add i64 %108, 1
  store i64 %109, ptr %107, align 8, !tbaa !13
  %110 = getelementptr inbounds i32, ptr %106, i64 %108
  store i32 1, ptr %110, align 4, !tbaa !17
  store i32 0, ptr %5, align 4
  br label %111

111:                                              ; preds = %103, %96, %76
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #6
  %112 = load i32, ptr %5, align 4
  switch i32 %112, label %191 [
    i32 0, label %113
    i32 6, label %115
  ]

113:                                              ; preds = %111
  br label %114

114:                                              ; preds = %113
  br label %115

115:                                              ; preds = %114, %111
  br label %116

116:                                              ; preds = %115
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #6
  store i64 4611686018427387903, ptr %9, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #6
  %117 = getelementptr inbounds %struct.sc_array_int, ptr %1, i32 0, i32 1
  %118 = load i64, ptr %117, align 8, !tbaa !9
  %119 = getelementptr inbounds %struct.sc_array_int, ptr %1, i32 0, i32 2
  %120 = load i64, ptr %119, align 8, !tbaa !13
  %121 = icmp eq i64 %118, %120
  br i1 %121, label %122, label %153

122:                                              ; preds = %116
  %123 = getelementptr inbounds %struct.sc_array_int, ptr %1, i32 0, i32 1
  %124 = load i64, ptr %123, align 8, !tbaa !9
  %125 = icmp ugt i64 %124, 2305843009213693951
  br i1 %125, label %126, label %128

126:                                              ; preds = %122
  %127 = getelementptr inbounds %struct.sc_array_int, ptr %1, i32 0, i32 0
  store i8 1, ptr %127, align 8, !tbaa !14
  store i32 8, ptr %5, align 4
  br label %161

128:                                              ; preds = %122
  %129 = getelementptr inbounds %struct.sc_array_int, ptr %1, i32 0, i32 1
  %130 = load i64, ptr %129, align 8, !tbaa !9
  %131 = icmp eq i64 %130, 0
  br i1 %131, label %132, label %133

132:                                              ; preds = %128
  br label %137

133:                                              ; preds = %128
  %134 = getelementptr inbounds %struct.sc_array_int, ptr %1, i32 0, i32 1
  %135 = load i64, ptr %134, align 8, !tbaa !9
  %136 = mul i64 %135, 2
  br label %137

137:                                              ; preds = %133, %132
  %138 = phi i64 [ 8, %132 ], [ %136, %133 ]
  store i64 %138, ptr %10, align 8, !tbaa !5
  %139 = getelementptr inbounds %struct.sc_array_int, ptr %1, i32 0, i32 3
  %140 = load ptr, ptr %139, align 8, !tbaa !15
  %141 = load i64, ptr %10, align 8, !tbaa !5
  %142 = mul i64 %141, 4
  %143 = call ptr @realloc(ptr noundef %140, i64 noundef %142) #7
  store ptr %143, ptr %11, align 8, !tbaa !16
  %144 = load ptr, ptr %11, align 8, !tbaa !16
  %145 = icmp eq ptr %144, null
  br i1 %145, label %146, label %148

146:                                              ; preds = %137
  %147 = getelementptr inbounds %struct.sc_array_int, ptr %1, i32 0, i32 0
  store i8 1, ptr %147, align 8, !tbaa !14
  store i32 8, ptr %5, align 4
  br label %161

148:                                              ; preds = %137
  %149 = load i64, ptr %10, align 8, !tbaa !5
  %150 = getelementptr inbounds %struct.sc_array_int, ptr %1, i32 0, i32 1
  store i64 %149, ptr %150, align 8, !tbaa !9
  %151 = load ptr, ptr %11, align 8, !tbaa !16
  %152 = getelementptr inbounds %struct.sc_array_int, ptr %1, i32 0, i32 3
  store ptr %151, ptr %152, align 8, !tbaa !15
  br label %153

153:                                              ; preds = %148, %116
  %154 = getelementptr inbounds %struct.sc_array_int, ptr %1, i32 0, i32 0
  store i8 0, ptr %154, align 8, !tbaa !14
  %155 = getelementptr inbounds %struct.sc_array_int, ptr %1, i32 0, i32 3
  %156 = load ptr, ptr %155, align 8, !tbaa !15
  %157 = getelementptr inbounds %struct.sc_array_int, ptr %1, i32 0, i32 2
  %158 = load i64, ptr %157, align 8, !tbaa !13
  %159 = add i64 %158, 1
  store i64 %159, ptr %157, align 8, !tbaa !13
  %160 = getelementptr inbounds i32, ptr %156, i64 %158
  store i32 2, ptr %160, align 4, !tbaa !17
  store i32 0, ptr %5, align 4
  br label %161

161:                                              ; preds = %153, %146, %126
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #6
  %162 = load i32, ptr %5, align 4
  switch i32 %162, label %191 [
    i32 0, label %163
    i32 8, label %165
  ]

163:                                              ; preds = %161
  br label %164

164:                                              ; preds = %163
  br label %165

165:                                              ; preds = %164, %161
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #6
  store i64 0, ptr %12, align 8, !tbaa !5
  br label %166

166:                                              ; preds = %179, %165
  %167 = load i64, ptr %12, align 8, !tbaa !5
  %168 = getelementptr inbounds %struct.sc_array_int, ptr %1, i32 0, i32 2
  %169 = load i64, ptr %168, align 8, !tbaa !13
  %170 = icmp ult i64 %167, %169
  br i1 %170, label %172, label %171

171:                                              ; preds = %166
  store i32 10, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #6
  br label %182

172:                                              ; preds = %166
  %173 = getelementptr inbounds %struct.sc_array_int, ptr %1, i32 0, i32 3
  %174 = load ptr, ptr %173, align 8, !tbaa !15
  %175 = load i64, ptr %12, align 8, !tbaa !5
  %176 = getelementptr inbounds i32, ptr %174, i64 %175
  %177 = load i32, ptr %176, align 4, !tbaa !17
  %178 = call i32 (ptr, ...) @printf(ptr noundef @.str.7, i32 noundef %177)
  br label %179

179:                                              ; preds = %172
  %180 = load i64, ptr %12, align 8, !tbaa !5
  %181 = add i64 %180, 1
  store i64 %181, ptr %12, align 8, !tbaa !5
  br label %166, !llvm.loop !19

182:                                              ; preds = %171
  br label %183

183:                                              ; preds = %182
  %184 = getelementptr inbounds %struct.sc_array_int, ptr %1, i32 0, i32 3
  %185 = load ptr, ptr %184, align 8, !tbaa !15
  call void @free(ptr noundef %185) #6
  br label %186

186:                                              ; preds = %183
  call void @llvm.memset.p0.i64(ptr align 8 %1, i8 0, i64 32, i1 false)
  br label %187

187:                                              ; preds = %186
  br label %188

188:                                              ; preds = %187
  br label %189

189:                                              ; preds = %188
  br label %190

190:                                              ; preds = %189
  call void @llvm.lifetime.end.p0(i64 32, ptr %1) #6
  ret void

191:                                              ; preds = %161, %111, %61
  unreachable
}

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #2 = { nounwind allocsize(1) "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 = { "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 "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { nounwind 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 = { nounwind allocsize(1) }

!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/C++ TBAA"}
!9 = !{!10, !6, i64 8}
!10 = !{!"sc_array_int", !11, i64 0, !6, i64 8, !6, i64 16, !12, i64 24}
!11 = !{!"_Bool", !7, i64 0}
!12 = !{!"any pointer", !7, i64 0}
!13 = !{!10, !6, i64 16}
!14 = !{!10, !11, i64 0}
!15 = !{!10, !12, i64 24}
!16 = !{!12, !12, i64 0}
!17 = !{!18, !18, i64 0}
!18 = !{!"int", !7, i64 0}
!19 = distinct !{!19, !20}
!20 = !{!"llvm.loop.mustprogress"}


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

@.str.7 = external hidden unnamed_addr constant [12 x i8], align 1

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

; Function Attrs: mustprogress nounwind willreturn allockind("free") memory(argmem: readwrite, inaccessiblemem: readwrite)
declare void @free(ptr allocptr nocapture noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
define dso_local void @example_int() local_unnamed_addr #2 {
  %malloc = tail call dereferenceable_or_null(32) ptr @malloc(i64 32)
  %1 = icmp eq ptr %malloc, null
  br i1 %1, label %3, label %.thread78

.thread78:                                        ; preds = %0
  store i32 0, ptr %malloc, align 4, !tbaa !5
  %2 = getelementptr inbounds i8, ptr %malloc, i64 4
  br label %.lr.ph.preheader.sink.split

3:                                                ; preds = %0
  %malloc82 = tail call dereferenceable_or_null(32) ptr @malloc(i64 32)
  %4 = icmp eq ptr %malloc82, null
  br i1 %4, label %5, label %.lr.ph.preheader.sink.split

5:                                                ; preds = %3
  %malloc83 = tail call dereferenceable_or_null(32) ptr @malloc(i64 32)
  %6 = icmp eq ptr %malloc83, null
  br i1 %6, label %._crit_edge, label %.lr.ph.preheader

.lr.ph.preheader.sink.split:                      ; preds = %3, %.thread78
  %malloc82.sink = phi ptr [ %2, %.thread78 ], [ %malloc82, %3 ]
  %.sroa.28.175.ph = phi i64 [ 2, %.thread78 ], [ 1, %3 ]
  %.sroa.38.4.ph = phi ptr [ %malloc, %.thread78 ], [ %malloc82, %3 ]
  store i32 1, ptr %malloc82.sink, align 4, !tbaa !5
  br label %.lr.ph.preheader

.lr.ph.preheader:                                 ; preds = %.lr.ph.preheader.sink.split, %5
  %.sroa.28.175 = phi i64 [ 0, %5 ], [ %.sroa.28.175.ph, %.lr.ph.preheader.sink.split ]
  %.sroa.38.4 = phi ptr [ %malloc83, %5 ], [ %.sroa.38.4.ph, %.lr.ph.preheader.sink.split ]
  %7 = getelementptr inbounds i32, ptr %.sroa.38.4, i64 %.sroa.28.175
  store i32 2, ptr %7, align 4, !tbaa !5
  br label %.lr.ph

._crit_edge:                                      ; preds = %.lr.ph, %5
  %.sroa.38.588 = phi ptr [ null, %5 ], [ %.sroa.38.4, %.lr.ph ]
  tail call void @free(ptr noundef %.sroa.38.588) #4
  ret void

.lr.ph:                                           ; preds = %.lr.ph.preheader, %.lr.ph
  %.084 = phi i64 [ %11, %.lr.ph ], [ 0, %.lr.ph.preheader ]
  %8 = getelementptr inbounds i32, ptr %.sroa.38.4, i64 %.084
  %9 = load i32, ptr %8, align 4, !tbaa !5
  %10 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.7, i32 noundef %9)
  %11 = add nuw nsw i64 %.084, 1
  %exitcond.not = icmp eq i64 %.084, %.sroa.28.175
  br i1 %exitcond.not, label %._crit_edge, label %.lr.ph, !llvm.loop !9
}

; Function Attrs: nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) memory(inaccessiblemem: readwrite)
declare noalias noundef ptr @malloc(i64 noundef) local_unnamed_addr #3

attributes #0 = { 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 #1 = { mustprogress nounwind willreturn allockind("free") memory(argmem: readwrite, inaccessiblemem: readwrite) "alloc-family"="malloc" "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 = { 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 = { nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) memory(inaccessiblemem: readwrite) "alloc-family"="malloc" }
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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}


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