; LLVM IR from cvxgrp/scs :: src/cones.ll (scs_get_cone_header)

; 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.ScsCone = type { i32, i32, ptr, ptr, i32, ptr, i32, ptr, i32, i32, i32, ptr, i32 }

@.str.11 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [41 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [41 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [37 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 nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0

; Function Attrs: inlinehint nounwind uwtable
declare hidden i32 @get_sd_cone_size(i32 noundef) #1

; Function Attrs: nounwind uwtable
define dso_local ptr @_scs_get_cone_header(ptr noundef %0) #2 {
  %2 = alloca ptr, align 8
  %3 = alloca ptr, align 8
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  store ptr %0, ptr %2, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #6
  %7 = call noalias ptr @malloc(i64 noundef 512) #7
  store ptr %7, ptr %3, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #6
  %8 = load ptr, ptr %3, align 8, !tbaa !5
  %9 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef %8, ptr noundef @.str.11) #6
  %10 = load ptr, ptr %2, align 8, !tbaa !5
  %11 = getelementptr inbounds %struct.ScsCone, ptr %10, i32 0, i32 0
  %12 = load i32, ptr %11, align 8, !tbaa !9
  %13 = icmp ne i32 %12, 0
  br i1 %13, label %14, label %24

14:                                               ; preds = %1
  %15 = load ptr, ptr %3, align 8, !tbaa !5
  %16 = load ptr, ptr %3, align 8, !tbaa !5
  %17 = call i64 @strlen(ptr noundef %16) #8
  %18 = getelementptr inbounds i8, ptr %15, i64 %17
  %19 = load ptr, ptr %2, align 8, !tbaa !5
  %20 = getelementptr inbounds %struct.ScsCone, ptr %19, i32 0, i32 0
  %21 = load i32, ptr %20, align 8, !tbaa !9
  %22 = sext i32 %21 to i64
  %23 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef %18, ptr noundef @.str.12, i64 noundef %22) #6
  br label %24

24:                                               ; preds = %14, %1
  %25 = load ptr, ptr %2, align 8, !tbaa !5
  %26 = getelementptr inbounds %struct.ScsCone, ptr %25, i32 0, i32 1
  %27 = load i32, ptr %26, align 4, !tbaa !12
  %28 = icmp ne i32 %27, 0
  br i1 %28, label %29, label %39

29:                                               ; preds = %24
  %30 = load ptr, ptr %3, align 8, !tbaa !5
  %31 = load ptr, ptr %3, align 8, !tbaa !5
  %32 = call i64 @strlen(ptr noundef %31) #8
  %33 = getelementptr inbounds i8, ptr %30, i64 %32
  %34 = load ptr, ptr %2, align 8, !tbaa !5
  %35 = getelementptr inbounds %struct.ScsCone, ptr %34, i32 0, i32 1
  %36 = load i32, ptr %35, align 4, !tbaa !12
  %37 = sext i32 %36 to i64
  %38 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef %33, ptr noundef @.str.13, i64 noundef %37) #6
  br label %39

39:                                               ; preds = %29, %24
  %40 = load ptr, ptr %2, align 8, !tbaa !5
  %41 = getelementptr inbounds %struct.ScsCone, ptr %40, i32 0, i32 4
  %42 = load i32, ptr %41, align 8, !tbaa !13
  %43 = icmp ne i32 %42, 0
  br i1 %43, label %44, label %54

44:                                               ; preds = %39
  %45 = load ptr, ptr %3, align 8, !tbaa !5
  %46 = load ptr, ptr %3, align 8, !tbaa !5
  %47 = call i64 @strlen(ptr noundef %46) #8
  %48 = getelementptr inbounds i8, ptr %45, i64 %47
  %49 = load ptr, ptr %2, align 8, !tbaa !5
  %50 = getelementptr inbounds %struct.ScsCone, ptr %49, i32 0, i32 4
  %51 = load i32, ptr %50, align 8, !tbaa !13
  %52 = sext i32 %51 to i64
  %53 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef %48, ptr noundef @.str.14, i64 noundef %52) #6
  br label %54

54:                                               ; preds = %44, %39
  store i32 0, ptr %5, align 4, !tbaa !14
  %55 = load ptr, ptr %2, align 8, !tbaa !5
  %56 = getelementptr inbounds %struct.ScsCone, ptr %55, i32 0, i32 6
  %57 = load i32, ptr %56, align 8, !tbaa !15
  %58 = icmp ne i32 %57, 0
  br i1 %58, label %59, label %96

59:                                               ; preds = %54
  %60 = load ptr, ptr %2, align 8, !tbaa !5
  %61 = getelementptr inbounds %struct.ScsCone, ptr %60, i32 0, i32 5
  %62 = load ptr, ptr %61, align 8, !tbaa !16
  %63 = icmp ne ptr %62, null
  br i1 %63, label %64, label %96

64:                                               ; preds = %59
  store i32 0, ptr %4, align 4, !tbaa !14
  br label %65

65:                                               ; preds = %81, %64
  %66 = load i32, ptr %4, align 4, !tbaa !14
  %67 = load ptr, ptr %2, align 8, !tbaa !5
  %68 = getelementptr inbounds %struct.ScsCone, ptr %67, i32 0, i32 6
  %69 = load i32, ptr %68, align 8, !tbaa !15
  %70 = icmp slt i32 %66, %69
  br i1 %70, label %71, label %84

71:                                               ; preds = %65
  %72 = load ptr, ptr %2, align 8, !tbaa !5
  %73 = getelementptr inbounds %struct.ScsCone, ptr %72, i32 0, i32 5
  %74 = load ptr, ptr %73, align 8, !tbaa !16
  %75 = load i32, ptr %4, align 4, !tbaa !14
  %76 = sext i32 %75 to i64
  %77 = getelementptr inbounds i32, ptr %74, i64 %76
  %78 = load i32, ptr %77, align 4, !tbaa !14
  %79 = load i32, ptr %5, align 4, !tbaa !14
  %80 = add nsw i32 %79, %78
  store i32 %80, ptr %5, align 4, !tbaa !14
  br label %81

81:                                               ; preds = %71
  %82 = load i32, ptr %4, align 4, !tbaa !14
  %83 = add nsw i32 %82, 1
  store i32 %83, ptr %4, align 4, !tbaa !14
  br label %65, !llvm.loop !17

84:                                               ; preds = %65
  %85 = load ptr, ptr %3, align 8, !tbaa !5
  %86 = load ptr, ptr %3, align 8, !tbaa !5
  %87 = call i64 @strlen(ptr noundef %86) #8
  %88 = getelementptr inbounds i8, ptr %85, i64 %87
  %89 = load i32, ptr %5, align 4, !tbaa !14
  %90 = sext i32 %89 to i64
  %91 = load ptr, ptr %2, align 8, !tbaa !5
  %92 = getelementptr inbounds %struct.ScsCone, ptr %91, i32 0, i32 6
  %93 = load i32, ptr %92, align 8, !tbaa !15
  %94 = sext i32 %93 to i64
  %95 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef %88, ptr noundef @.str.15, i64 noundef %90, i64 noundef %94) #6
  br label %96

96:                                               ; preds = %84, %59, %54
  store i32 0, ptr %6, align 4, !tbaa !14
  %97 = load ptr, ptr %2, align 8, !tbaa !5
  %98 = getelementptr inbounds %struct.ScsCone, ptr %97, i32 0, i32 8
  %99 = load i32, ptr %98, align 8, !tbaa !19
  %100 = icmp ne i32 %99, 0
  br i1 %100, label %101, label %139

101:                                              ; preds = %96
  %102 = load ptr, ptr %2, align 8, !tbaa !5
  %103 = getelementptr inbounds %struct.ScsCone, ptr %102, i32 0, i32 7
  %104 = load ptr, ptr %103, align 8, !tbaa !20
  %105 = icmp ne ptr %104, null
  br i1 %105, label %106, label %139

106:                                              ; preds = %101
  store i32 0, ptr %4, align 4, !tbaa !14
  br label %107

107:                                              ; preds = %124, %106
  %108 = load i32, ptr %4, align 4, !tbaa !14
  %109 = load ptr, ptr %2, align 8, !tbaa !5
  %110 = getelementptr inbounds %struct.ScsCone, ptr %109, i32 0, i32 8
  %111 = load i32, ptr %110, align 8, !tbaa !19
  %112 = icmp slt i32 %108, %111
  br i1 %112, label %113, label %127

113:                                              ; preds = %107
  %114 = load ptr, ptr %2, align 8, !tbaa !5
  %115 = getelementptr inbounds %struct.ScsCone, ptr %114, i32 0, i32 7
  %116 = load ptr, ptr %115, align 8, !tbaa !20
  %117 = load i32, ptr %4, align 4, !tbaa !14
  %118 = sext i32 %117 to i64
  %119 = getelementptr inbounds i32, ptr %116, i64 %118
  %120 = load i32, ptr %119, align 4, !tbaa !14
  %121 = call i32 @get_sd_cone_size(i32 noundef %120)
  %122 = load i32, ptr %6, align 4, !tbaa !14
  %123 = add nsw i32 %122, %121
  store i32 %123, ptr %6, align 4, !tbaa !14
  br label %124

124:                                              ; preds = %113
  %125 = load i32, ptr %4, align 4, !tbaa !14
  %126 = add nsw i32 %125, 1
  store i32 %126, ptr %4, align 4, !tbaa !14
  br label %107, !llvm.loop !21

127:                                              ; preds = %107
  %128 = load ptr, ptr %3, align 8, !tbaa !5
  %129 = load ptr, ptr %3, align 8, !tbaa !5
  %130 = call i64 @strlen(ptr noundef %129) #8
  %131 = getelementptr inbounds i8, ptr %128, i64 %130
  %132 = load i32, ptr %6, align 4, !tbaa !14
  %133 = sext i32 %132 to i64
  %134 = load ptr, ptr %2, align 8, !tbaa !5
  %135 = getelementptr inbounds %struct.ScsCone, ptr %134, i32 0, i32 8
  %136 = load i32, ptr %135, align 8, !tbaa !19
  %137 = sext i32 %136 to i64
  %138 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef %131, ptr noundef @.str.16, i64 noundef %133, i64 noundef %137) #6
  br label %139

139:                                              ; preds = %127, %101, %96
  %140 = load ptr, ptr %2, align 8, !tbaa !5
  %141 = getelementptr inbounds %struct.ScsCone, ptr %140, i32 0, i32 9
  %142 = load i32, ptr %141, align 4, !tbaa !22
  %143 = icmp ne i32 %142, 0
  br i1 %143, label %149, label %144

144:                                              ; preds = %139
  %145 = load ptr, ptr %2, align 8, !tbaa !5
  %146 = getelementptr inbounds %struct.ScsCone, ptr %145, i32 0, i32 10
  %147 = load i32, ptr %146, align 8, !tbaa !23
  %148 = icmp ne i32 %147, 0
  br i1 %148, label %149, label %165

149:                                              ; preds = %144, %139
  %150 = load ptr, ptr %3, align 8, !tbaa !5
  %151 = load ptr, ptr %3, align 8, !tbaa !5
  %152 = call i64 @strlen(ptr noundef %151) #8
  %153 = getelementptr inbounds i8, ptr %150, i64 %152
  %154 = load ptr, ptr %2, align 8, !tbaa !5
  %155 = getelementptr inbounds %struct.ScsCone, ptr %154, i32 0, i32 9
  %156 = load i32, ptr %155, align 4, !tbaa !22
  %157 = mul nsw i32 3, %156
  %158 = sext i32 %157 to i64
  %159 = load ptr, ptr %2, align 8, !tbaa !5
  %160 = getelementptr inbounds %struct.ScsCone, ptr %159, i32 0, i32 10
  %161 = load i32, ptr %160, align 8, !tbaa !23
  %162 = mul nsw i32 3, %161
  %163 = sext i32 %162 to i64
  %164 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef %153, ptr noundef @.str.17, i64 noundef %158, i64 noundef %163) #6
  br label %165

165:                                              ; preds = %149, %144
  %166 = load ptr, ptr %2, align 8, !tbaa !5
  %167 = getelementptr inbounds %struct.ScsCone, ptr %166, i32 0, i32 12
  %168 = load i32, ptr %167, align 8, !tbaa !24
  %169 = icmp ne i32 %168, 0
  br i1 %169, label %170, label %186

170:                                              ; preds = %165
  %171 = load ptr, ptr %2, align 8, !tbaa !5
  %172 = getelementptr inbounds %struct.ScsCone, ptr %171, i32 0, i32 11
  %173 = load ptr, ptr %172, align 8, !tbaa !25
  %174 = icmp ne ptr %173, null
  br i1 %174, label %175, label %186

175:                                              ; preds = %170
  %176 = load ptr, ptr %3, align 8, !tbaa !5
  %177 = load ptr, ptr %3, align 8, !tbaa !5
  %178 = call i64 @strlen(ptr noundef %177) #8
  %179 = getelementptr inbounds i8, ptr %176, i64 %178
  %180 = load ptr, ptr %2, align 8, !tbaa !5
  %181 = getelementptr inbounds %struct.ScsCone, ptr %180, i32 0, i32 12
  %182 = load i32, ptr %181, align 8, !tbaa !24
  %183 = mul nsw i32 3, %182
  %184 = sext i32 %183 to i64
  %185 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef %179, ptr noundef @.str.18, i64 noundef %184) #6
  br label %186

186:                                              ; preds = %175, %170, %165
  %187 = load ptr, ptr %3, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #6
  ret ptr %187
}

; Function Attrs: nounwind allocsize(0)
declare noalias ptr @malloc(i64 noundef) #3

; Function Attrs: nounwind
declare i32 @sprintf(ptr noundef, ptr noundef, ...) #4

; Function Attrs: nounwind willreturn memory(read)
declare i64 @strlen(ptr noundef) #5

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

!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 = !{!"", !11, i64 0, !11, i64 4, !6, i64 8, !6, i64 16, !11, i64 24, !6, i64 32, !11, i64 40, !6, i64 48, !11, i64 56, !11, i64 60, !11, i64 64, !6, i64 72, !11, i64 80}
!11 = !{!"int", !7, i64 0}
!12 = !{!10, !11, i64 4}
!13 = !{!10, !11, i64 24}
!14 = !{!11, !11, i64 0}
!15 = !{!10, !11, i64 40}
!16 = !{!10, !6, i64 32}
!17 = distinct !{!17, !18}
!18 = !{!"llvm.loop.mustprogress"}
!19 = !{!10, !11, i64 56}
!20 = !{!10, !6, i64 48}
!21 = distinct !{!21, !18}
!22 = !{!10, !11, i64 60}
!23 = !{!10, !11, i64 64}
!24 = !{!10, !11, i64 80}
!25 = !{!10, !6, i64 72}


; 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.11 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [41 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [41 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [37 x i8], align 1

; Function Attrs: inlinehint nounwind uwtable
declare hidden i32 @get_sd_cone_size(i32 noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
define dso_local noalias noundef ptr @_scs_get_cone_header(ptr nocapture noundef readonly %0) local_unnamed_addr #1 {
  %2 = tail call noalias dereferenceable_or_null(512) ptr @malloc(i64 noundef 512) #6
  %3 = tail call i32 (ptr, ptr, ...) @sprintf(ptr noundef nonnull dereferenceable(1) %2, ptr noundef nonnull dereferenceable(1) @.str.11) #7
  %4 = load i32, ptr %0, align 8, !tbaa !5
  %.not = icmp eq i32 %4, 0
  br i1 %.not, label %10, label %5

5:                                                ; preds = %1
  %6 = tail call i64 @strlen(ptr noundef nonnull dereferenceable(1) %2) #8
  %7 = getelementptr inbounds i8, ptr %2, i64 %6
  %8 = sext i32 %4 to i64
  %9 = tail call i32 (ptr, ptr, ...) @sprintf(ptr noundef nonnull dereferenceable(1) %7, ptr noundef nonnull dereferenceable(1) @.str.12, i64 noundef %8) #7
  br label %10

10:                                               ; preds = %5, %1
  %11 = getelementptr inbounds i8, ptr %0, i64 4
  %12 = load i32, ptr %11, align 4, !tbaa !11
  %.not56 = icmp eq i32 %12, 0
  br i1 %.not56, label %18, label %13

13:                                               ; preds = %10
  %14 = tail call i64 @strlen(ptr noundef nonnull dereferenceable(1) %2) #8
  %15 = getelementptr inbounds i8, ptr %2, i64 %14
  %16 = sext i32 %12 to i64
  %17 = tail call i32 (ptr, ptr, ...) @sprintf(ptr noundef nonnull dereferenceable(1) %15, ptr noundef nonnull dereferenceable(1) @.str.13, i64 noundef %16) #7
  br label %18

18:                                               ; preds = %13, %10
  %19 = getelementptr inbounds i8, ptr %0, i64 24
  %20 = load i32, ptr %19, align 8, !tbaa !12
  %.not57 = icmp eq i32 %20, 0
  br i1 %.not57, label %26, label %21

21:                                               ; preds = %18
  %22 = tail call i64 @strlen(ptr noundef nonnull dereferenceable(1) %2) #8
  %23 = getelementptr inbounds i8, ptr %2, i64 %22
  %24 = sext i32 %20 to i64
  %25 = tail call i32 (ptr, ptr, ...) @sprintf(ptr noundef nonnull dereferenceable(1) %23, ptr noundef nonnull dereferenceable(1) @.str.14, i64 noundef %24) #7
  br label %26

26:                                               ; preds = %21, %18
  %27 = getelementptr inbounds i8, ptr %0, i64 40
  %28 = load i32, ptr %27, align 8, !tbaa !13
  %.not58 = icmp eq i32 %28, 0
  br i1 %.not58, label %47, label %29

29:                                               ; preds = %26
  %30 = getelementptr inbounds i8, ptr %0, i64 32
  %31 = load ptr, ptr %30, align 8, !tbaa !14
  %.not59 = icmp eq ptr %31, null
  br i1 %.not59, label %47, label %.preheader66

.preheader66:                                     ; preds = %29
  %32 = icmp sgt i32 %28, 0
  br i1 %32, label %.lr.ph.preheader, label %._crit_edge

.lr.ph.preheader:                                 ; preds = %.preheader66
  %wide.trip.count = zext nneg i32 %28 to i64
  %min.iters.check = icmp ult i32 %28, 8
  br i1 %min.iters.check, label %.lr.ph.preheader91, label %vector.ph

vector.ph:                                        ; preds = %.lr.ph.preheader
  %n.vec = and i64 %wide.trip.count, 2147483640
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %vec.phi = phi <4 x i32> [ zeroinitializer, %vector.ph ], [ %35, %vector.body ]
  %vec.phi88 = phi <4 x i32> [ zeroinitializer, %vector.ph ], [ %36, %vector.body ]
  %33 = getelementptr inbounds i32, ptr %31, i64 %index
  %34 = getelementptr inbounds i8, ptr %33, i64 16
  %wide.load = load <4 x i32>, ptr %33, align 4, !tbaa !15
  %wide.load89 = load <4 x i32>, ptr %34, align 4, !tbaa !15
  %35 = add <4 x i32> %wide.load, %vec.phi
  %36 = add <4 x i32> %wide.load89, %vec.phi88
  %index.next = add nuw i64 %index, 8
  %37 = icmp eq i64 %index.next, %n.vec
  br i1 %37, label %middle.block, label %vector.body, !llvm.loop !16

middle.block:                                     ; preds = %vector.body
  %bin.rdx = add <4 x i32> %36, %35
  %38 = tail call i32 @llvm.vector.reduce.add.v4i32(<4 x i32> %bin.rdx)
  %cmp.n = icmp eq i64 %n.vec, %wide.trip.count
  br i1 %cmp.n, label %._crit_edge.loopexit, label %.lr.ph.preheader91

.lr.ph.preheader91:                               ; preds = %middle.block, %.lr.ph.preheader
  %indvars.iv.ph = phi i64 [ 0, %.lr.ph.preheader ], [ %n.vec, %middle.block ]
  %.04868.ph = phi i32 [ 0, %.lr.ph.preheader ], [ %38, %middle.block ]
  br label %.lr.ph

.lr.ph:                                           ; preds = %.lr.ph.preheader91, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph ], [ %indvars.iv.ph, %.lr.ph.preheader91 ]
  %.04868 = phi i32 [ %41, %.lr.ph ], [ %.04868.ph, %.lr.ph.preheader91 ]
  %39 = getelementptr inbounds i32, ptr %31, i64 %indvars.iv
  %40 = load i32, ptr %39, align 4, !tbaa !15
  %41 = add nsw i32 %40, %.04868
  %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 %._crit_edge.loopexit, label %.lr.ph, !llvm.loop !20

._crit_edge.loopexit:                             ; preds = %.lr.ph, %middle.block
  %.lcssa87 = phi i32 [ %38, %middle.block ], [ %41, %.lr.ph ]
  %42 = sext i32 %.lcssa87 to i64
  br label %._crit_edge

._crit_edge:                                      ; preds = %._crit_edge.loopexit, %.preheader66
  %.048.lcssa = phi i64 [ 0, %.preheader66 ], [ %42, %._crit_edge.loopexit ]
  %43 = tail call i64 @strlen(ptr noundef nonnull dereferenceable(1) %2) #8
  %44 = getelementptr inbounds i8, ptr %2, i64 %43
  %45 = sext i32 %28 to i64
  %46 = tail call i32 (ptr, ptr, ...) @sprintf(ptr noundef nonnull dereferenceable(1) %44, ptr noundef nonnull dereferenceable(1) @.str.15, i64 noundef %.048.lcssa, i64 noundef %45) #7
  br label %47

47:                                               ; preds = %._crit_edge, %29, %26
  %48 = getelementptr inbounds i8, ptr %0, i64 56
  %49 = load i32, ptr %48, align 8, !tbaa !21
  %.not60 = icmp eq i32 %49, 0
  br i1 %.not60, label %66, label %50

50:                                               ; preds = %47
  %51 = getelementptr inbounds i8, ptr %0, i64 48
  %52 = load ptr, ptr %51, align 8, !tbaa !22
  %.not61 = icmp eq ptr %52, null
  br i1 %.not61, label %66, label %.preheader

.preheader:                                       ; preds = %50
  %53 = icmp sgt i32 %49, 0
  br i1 %53, label %.lr.ph71, label %.preheader.._crit_edge72_crit_edge

.preheader.._crit_edge72_crit_edge:               ; preds = %.preheader
  %.pre83 = sext i32 %49 to i64
  br label %._crit_edge72

.lr.ph71:                                         ; preds = %.preheader, %.lr.ph71
  %indvars.iv79 = phi i64 [ %indvars.iv.next80, %.lr.ph71 ], [ 0, %.preheader ]
  %.070 = phi i32 [ %58, %.lr.ph71 ], [ 0, %.preheader ]
  %54 = load ptr, ptr %51, align 8, !tbaa !22
  %55 = getelementptr inbounds i32, ptr %54, i64 %indvars.iv79
  %56 = load i32, ptr %55, align 4, !tbaa !15
  %57 = tail call i32 @get_sd_cone_size(i32 noundef %56)
  %58 = add nsw i32 %57, %.070
  %indvars.iv.next80 = add nuw nsw i64 %indvars.iv79, 1
  %59 = load i32, ptr %48, align 8, !tbaa !21
  %60 = sext i32 %59 to i64
  %61 = icmp slt i64 %indvars.iv.next80, %60
  br i1 %61, label %.lr.ph71, label %._crit_edge72.loopexit, !llvm.loop !23

._crit_edge72.loopexit:                           ; preds = %.lr.ph71
  %62 = sext i32 %58 to i64
  br label %._crit_edge72

._crit_edge72:                                    ; preds = %.preheader.._crit_edge72_crit_edge, %._crit_edge72.loopexit
  %.pre-phi = phi i64 [ %.pre83, %.preheader.._crit_edge72_crit_edge ], [ %60, %._crit_edge72.loopexit ]
  %.0.lcssa = phi i64 [ 0, %.preheader.._crit_edge72_crit_edge ], [ %62, %._crit_edge72.loopexit ]
  %63 = tail call i64 @strlen(ptr noundef nonnull dereferenceable(1) %2) #8
  %64 = getelementptr inbounds i8, ptr %2, i64 %63
  %65 = tail call i32 (ptr, ptr, ...) @sprintf(ptr noundef nonnull dereferenceable(1) %64, ptr noundef nonnull dereferenceable(1) @.str.16, i64 noundef %.0.lcssa, i64 noundef %.pre-phi) #7
  br label %66

66:                                               ; preds = %._crit_edge72, %50, %47
  %67 = getelementptr inbounds i8, ptr %0, i64 60
  %68 = load i32, ptr %67, align 4, !tbaa !24
  %.not62 = icmp eq i32 %68, 0
  %69 = getelementptr inbounds i8, ptr %0, i64 64
  %70 = load i32, ptr %69, align 8, !tbaa !25
  %.not63 = icmp eq i32 %70, 0
  %or.cond = select i1 %.not62, i1 %.not63, i1 false
  br i1 %or.cond, label %78, label %._crit_edge82

._crit_edge82:                                    ; preds = %66
  %71 = tail call i64 @strlen(ptr noundef nonnull dereferenceable(1) %2) #8
  %72 = getelementptr inbounds i8, ptr %2, i64 %71
  %73 = mul nsw i32 %68, 3
  %74 = sext i32 %73 to i64
  %75 = mul nsw i32 %70, 3
  %76 = sext i32 %75 to i64
  %77 = tail call i32 (ptr, ptr, ...) @sprintf(ptr noundef nonnull dereferenceable(1) %72, ptr noundef nonnull dereferenceable(1) @.str.17, i64 noundef %74, i64 noundef %76) #7
  br label %78

78:                                               ; preds = %66, %._crit_edge82
  %79 = getelementptr inbounds i8, ptr %0, i64 80
  %80 = load i32, ptr %79, align 8, !tbaa !26
  %.not64 = icmp eq i32 %80, 0
  br i1 %.not64, label %90, label %81

81:                                               ; preds = %78
  %82 = getelementptr inbounds i8, ptr %0, i64 72
  %83 = load ptr, ptr %82, align 8, !tbaa !27
  %.not65 = icmp eq ptr %83, null
  br i1 %.not65, label %90, label %84

84:                                               ; preds = %81
  %85 = tail call i64 @strlen(ptr noundef nonnull dereferenceable(1) %2) #8
  %86 = getelementptr inbounds i8, ptr %2, i64 %85
  %87 = mul nsw i32 %80, 3
  %88 = sext i32 %87 to i64
  %89 = tail call i32 (ptr, ptr, ...) @sprintf(ptr noundef nonnull dereferenceable(1) %86, ptr noundef nonnull dereferenceable(1) @.str.18, i64 noundef %88) #7
  br label %90

90:                                               ; preds = %84, %81, %78
  ret ptr %2
}

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

; Function Attrs: nofree nounwind
declare noundef i32 @sprintf(ptr noalias nocapture noundef writeonly, ptr nocapture noundef readonly, ...) local_unnamed_addr #3

; Function Attrs: mustprogress nofree nounwind willreturn memory(argmem: read)
declare i64 @strlen(ptr nocapture noundef) local_unnamed_addr #4

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.vector.reduce.add.v4i32(<4 x i32>) #5

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

!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 = !{!"", !7, i64 0, !7, i64 4, !10, i64 8, !10, i64 16, !7, i64 24, !10, i64 32, !7, i64 40, !10, i64 48, !7, i64 56, !7, i64 60, !7, i64 64, !10, i64 72, !7, i64 80}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"any pointer", !8, i64 0}
!11 = !{!6, !7, i64 4}
!12 = !{!6, !7, i64 24}
!13 = !{!6, !7, i64 40}
!14 = !{!6, !10, i64 32}
!15 = !{!7, !7, i64 0}
!16 = distinct !{!16, !17, !18, !19}
!17 = !{!"llvm.loop.mustprogress"}
!18 = !{!"llvm.loop.isvectorized", i32 1}
!19 = !{!"llvm.loop.unroll.runtime.disable"}
!20 = distinct !{!20, !17, !19, !18}
!21 = !{!6, !7, i64 56}
!22 = !{!6, !10, i64 48}
!23 = distinct !{!23, !17}
!24 = !{!6, !7, i64 60}
!25 = !{!6, !7, i64 64}
!26 = !{!6, !7, i64 80}
!27 = !{!6, !10, i64 72}


; Effective O3 passes: BDCEPass,EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,LCSSAPass,LoopLoadEliminationPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,LoopVectorizePass,PostOrderFunctionAttrsPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass