; LLVM IR from JessonYue/LeetCodeLearning :: Array/caiweixiong/c (elf)

; 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.Elf32_Sym = type { i32, i32, i32, i8, i8, i16 }
%struct.Elf32_Shdr = type { i32, i32, i32, i32, i32, i32, i32, i32, i32, i32 }

@.str.244 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.250 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.251 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.253 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.272 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.273 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.274 = external hidden unnamed_addr constant [54 x i8], align 1
@.str.275 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.276 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.277 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.278 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.279 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.280 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.281 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.282 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.283 = external hidden unnamed_addr constant [58 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

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

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

declare i64 @fread(ptr noundef, i64 noundef, i64 noundef, ptr noundef) #1

; Function Attrs: nounwind uwtable
define dso_local void @printfElf32_ShdrMessage(ptr noundef %0, i32 noundef %1, i32 noundef %2, i16 noundef zeroext %3) #2 {
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i16, align 2
  %9 = alloca ptr, align 8
  %10 = alloca %struct.Elf32_Sym, align 4
  %11 = alloca %struct.Elf32_Shdr, align 4
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca i64, align 8
  %15 = alloca [24 x i8], align 16
  %16 = alloca [16 x i8], align 16
  %17 = alloca [12 x i8], align 1
  %18 = alloca i32, align 4
  store ptr %0, ptr %5, align 8, !tbaa !5
  store i32 %1, ptr %6, align 4, !tbaa !9
  store i32 %2, ptr %7, align 4, !tbaa !9
  store i16 %3, ptr %8, align 2, !tbaa !11
  %19 = load ptr, ptr %5, align 8, !tbaa !5
  %20 = load i32, ptr %6, align 4, !tbaa !9
  %21 = sext i32 %20 to i64
  %22 = call i32 @fseek(ptr noundef %19, i64 noundef %21, i32 noundef 0)
  %23 = load ptr, ptr %5, align 8, !tbaa !5
  %24 = call i64 @ftell(ptr noundef %23)
  %25 = call i32 (ptr, ...) @printf(ptr noundef @.str.272, i64 noundef %24)
  %26 = call i32 (ptr, ...) @printf(ptr noundef @.str.273)
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #7
  %27 = load i32, ptr %7, align 4, !tbaa !9
  %28 = sext i32 %27 to i64
  %29 = mul i64 %28, 40
  %30 = call noalias ptr @malloc(i64 noundef %29) #8
  store ptr %30, ptr %9, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %10) #7
  %31 = load i32, ptr %7, align 4, !tbaa !9
  %32 = sext i32 %31 to i64
  %33 = load ptr, ptr %9, align 8, !tbaa !5
  %34 = load i32, ptr %7, align 4, !tbaa !9
  %35 = sext i32 %34 to i64
  %36 = load ptr, ptr %5, align 8, !tbaa !5
  %37 = call i64 @fread(ptr noundef %33, i64 noundef 40, i64 noundef %35, ptr noundef %36)
  %38 = icmp eq i64 %32, %37
  br i1 %38, label %39, label %112

39:                                               ; preds = %4
  call void @llvm.lifetime.start.p0(i64 40, ptr %11) #7
  %40 = load ptr, ptr %9, align 8, !tbaa !5
  %41 = load i16, ptr %8, align 2, !tbaa !11
  %42 = zext i16 %41 to i64
  %43 = getelementptr inbounds %struct.Elf32_Shdr, ptr %40, i64 %42
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %11, ptr align 4 %43, i64 40, i1 false), !tbaa.struct !13
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #7
  %44 = load ptr, ptr %9, align 8, !tbaa !5
  store ptr %44, ptr %12, align 8, !tbaa !5
  %45 = getelementptr inbounds %struct.Elf32_Shdr, ptr %11, i32 0, i32 5
  %46 = load i32, ptr %45, align 4, !tbaa !14
  %47 = zext i32 %46 to i64
  %48 = call ptr @llvm.stacksave.p0()
  store ptr %48, ptr %13, align 8
  %49 = alloca i8, i64 %47, align 16
  store i64 %47, ptr %14, align 8
  call void @llvm.lifetime.start.p0(i64 24, ptr %15) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr %16) #7
  call void @llvm.lifetime.start.p0(i64 12, ptr %17) #7
  %50 = load ptr, ptr %5, align 8, !tbaa !5
  %51 = getelementptr inbounds %struct.Elf32_Shdr, ptr %11, i32 0, i32 4
  %52 = load i32, ptr %51, align 4, !tbaa !16
  %53 = zext i32 %52 to i64
  %54 = call i32 @fseek(ptr noundef %50, i64 noundef %53, i32 noundef 0)
  %55 = getelementptr inbounds %struct.Elf32_Shdr, ptr %11, i32 0, i32 5
  %56 = load i32, ptr %55, align 4, !tbaa !14
  %57 = zext i32 %56 to i64
  %58 = load ptr, ptr %5, align 8, !tbaa !5
  %59 = call i64 @fread(ptr noundef %49, i64 noundef %57, i64 noundef 1, ptr noundef %58)
  %60 = call i32 (ptr, ...) @printf(ptr noundef @.str.274, ptr noundef @.str.275, ptr noundef @.str.276, ptr noundef @.str.244, ptr noundef @.str.277, ptr noundef @.str.278, ptr noundef @.str.279, ptr noundef @.str.280, ptr noundef @.str.250, ptr noundef @.str.281, ptr noundef @.str.282, ptr noundef @.str.251)
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #7
  store i32 0, ptr %18, align 4, !tbaa !9
  br label %61

61:                                               ; preds = %105, %39
  %62 = load i32, ptr %18, align 4, !tbaa !9
  %63 = load i32, ptr %7, align 4, !tbaa !9
  %64 = icmp slt i32 %62, %63
  br i1 %64, label %66, label %65

65:                                               ; preds = %61
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #7
  br label %110

66:                                               ; preds = %61
  %67 = load ptr, ptr %12, align 8, !tbaa !5
  %68 = getelementptr inbounds %struct.Elf32_Shdr, ptr %67, i32 0, i32 0
  %69 = load i32, ptr %68, align 4, !tbaa !17
  %70 = getelementptr inbounds [24 x i8], ptr %15, i64 0, i64 0
  call void @getSectionNameByName(i32 noundef %69, ptr noundef %49, ptr noundef %70)
  %71 = load ptr, ptr %12, align 8, !tbaa !5
  %72 = getelementptr inbounds %struct.Elf32_Shdr, ptr %71, i32 0, i32 1
  %73 = load i32, ptr %72, align 4, !tbaa !18
  %74 = getelementptr inbounds [16 x i8], ptr %16, i64 0, i64 0
  call void @getSectionTypeNameByType(i32 noundef %73, ptr noundef %74)
  %75 = load ptr, ptr %12, align 8, !tbaa !5
  %76 = getelementptr inbounds %struct.Elf32_Shdr, ptr %75, i32 0, i32 2
  %77 = load i32, ptr %76, align 4, !tbaa !19
  %78 = getelementptr inbounds [12 x i8], ptr %17, i64 0, i64 0
  call void @getSectionFlagNameByFlags(i32 noundef %77, ptr noundef %78)
  %79 = load i32, ptr %18, align 4, !tbaa !9
  %80 = getelementptr inbounds [24 x i8], ptr %15, i64 0, i64 0
  %81 = getelementptr inbounds [16 x i8], ptr %16, i64 0, i64 0
  %82 = load ptr, ptr %12, align 8, !tbaa !5
  %83 = getelementptr inbounds %struct.Elf32_Shdr, ptr %82, i32 0, i32 3
  %84 = load i32, ptr %83, align 4, !tbaa !20
  %85 = load ptr, ptr %12, align 8, !tbaa !5
  %86 = getelementptr inbounds %struct.Elf32_Shdr, ptr %85, i32 0, i32 4
  %87 = load i32, ptr %86, align 4, !tbaa !16
  %88 = load ptr, ptr %12, align 8, !tbaa !5
  %89 = getelementptr inbounds %struct.Elf32_Shdr, ptr %88, i32 0, i32 5
  %90 = load i32, ptr %89, align 4, !tbaa !14
  %91 = load ptr, ptr %12, align 8, !tbaa !5
  %92 = getelementptr inbounds %struct.Elf32_Shdr, ptr %91, i32 0, i32 9
  %93 = load i32, ptr %92, align 4, !tbaa !21
  %94 = getelementptr inbounds [12 x i8], ptr %17, i64 0, i64 0
  %95 = load ptr, ptr %12, align 8, !tbaa !5
  %96 = getelementptr inbounds %struct.Elf32_Shdr, ptr %95, i32 0, i32 6
  %97 = load i32, ptr %96, align 4, !tbaa !22
  %98 = load ptr, ptr %12, align 8, !tbaa !5
  %99 = getelementptr inbounds %struct.Elf32_Shdr, ptr %98, i32 0, i32 7
  %100 = load i32, ptr %99, align 4, !tbaa !23
  %101 = load ptr, ptr %12, align 8, !tbaa !5
  %102 = getelementptr inbounds %struct.Elf32_Shdr, ptr %101, i32 0, i32 8
  %103 = load i32, ptr %102, align 4, !tbaa !24
  %104 = call i32 (ptr, ...) @printf(ptr noundef @.str.283, i32 noundef %79, ptr noundef %80, ptr noundef %81, i32 noundef %84, i32 noundef %87, i32 noundef %90, i32 noundef %93, ptr noundef %94, i32 noundef %97, i32 noundef %100, i32 noundef %103)
  br label %105

105:                                              ; preds = %66
  %106 = load i32, ptr %18, align 4, !tbaa !9
  %107 = add nsw i32 %106, 1
  store i32 %107, ptr %18, align 4, !tbaa !9
  %108 = load ptr, ptr %12, align 8, !tbaa !5
  %109 = getelementptr inbounds %struct.Elf32_Shdr, ptr %108, i32 1
  store ptr %109, ptr %12, align 8, !tbaa !5
  br label %61, !llvm.loop !25

110:                                              ; preds = %65
  call void @llvm.lifetime.end.p0(i64 12, ptr %17) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %16) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %15) #7
  %111 = load ptr, ptr %13, align 8
  call void @llvm.stackrestore.p0(ptr %111)
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #7
  call void @llvm.lifetime.end.p0(i64 40, ptr %11) #7
  br label %114

112:                                              ; preds = %4
  %113 = call i32 (ptr, ...) @printf(ptr noundef @.str.253)
  br label %114

114:                                              ; preds = %112, %110
  %115 = load ptr, ptr %9, align 8, !tbaa !5
  call void @free(ptr noundef %115) #7
  store ptr null, ptr %9, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 16, ptr %10) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #7
  ret void
}

declare i32 @fseek(ptr noundef, i64 noundef, i32 noundef) #1

declare i64 @ftell(ptr noundef) #1

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

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

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #5

; Function Attrs: nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave.p0() #6

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

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

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

; Function Attrs: nocallback nofree nosync nounwind willreturn
declare void @llvm.stackrestore.p0(ptr) #6

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #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 #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 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #6 = { nocallback nofree nosync nounwind willreturn }
attributes #7 = { nounwind }
attributes #8 = { nounwind allocsize(0) }

!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, !12, i64 0}
!12 = !{!"short", !7, i64 0}
!13 = !{i64 0, i64 4, !9, i64 4, i64 4, !9, i64 8, i64 4, !9, i64 12, i64 4, !9, i64 16, i64 4, !9, i64 20, i64 4, !9, i64 24, i64 4, !9, i64 28, i64 4, !9, i64 32, i64 4, !9, i64 36, i64 4, !9}
!14 = !{!15, !10, i64 20}
!15 = !{!"", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20, !10, i64 24, !10, i64 28, !10, i64 32, !10, i64 36}
!16 = !{!15, !10, i64 16}
!17 = !{!15, !10, i64 0}
!18 = !{!15, !10, i64 4}
!19 = !{!15, !10, i64 8}
!20 = !{!15, !10, i64 12}
!21 = !{!15, !10, i64 36}
!22 = !{!15, !10, i64 24}
!23 = !{!15, !10, i64 28}
!24 = !{!15, !10, i64 32}
!25 = distinct !{!25, !26}
!26 = !{!"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"

%struct.Elf32_Shdr = type { i32, i32, i32, i32, i32, i32, i32, i32, i32, i32 }

@.str.244 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.250 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.251 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.253 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.272 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.273 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.274 = external hidden unnamed_addr constant [54 x i8], align 1
@.str.275 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.276 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.277 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.278 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.279 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.280 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.281 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.282 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.283 = external hidden unnamed_addr constant [58 x i8], align 1

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

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

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

; Function Attrs: nofree nounwind
declare noundef i64 @fread(ptr nocapture noundef, i64 noundef, i64 noundef, ptr nocapture noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
define dso_local void @printfElf32_ShdrMessage(ptr nocapture noundef %0, i32 noundef %1, i32 noundef %2, i16 noundef zeroext %3) local_unnamed_addr #2 {
  %5 = alloca [24 x i8], align 16
  %6 = alloca [16 x i8], align 16
  %7 = alloca [12 x i8], align 1
  %8 = sext i32 %1 to i64
  %9 = tail call i32 @fseek(ptr noundef %0, i64 noundef %8, i32 noundef 0)
  %10 = tail call i64 @ftell(ptr noundef %0)
  %11 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.272, i64 noundef %10)
  %12 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.273)
  %13 = sext i32 %2 to i64
  %14 = mul nsw i64 %13, 40
  %15 = tail call noalias ptr @malloc(i64 noundef %14) #6
  %16 = tail call i64 @fread(ptr noundef %15, i64 noundef 40, i64 noundef %13, ptr noundef %0)
  %17 = icmp eq i64 %16, %13
  br i1 %17, label %18, label %51

18:                                               ; preds = %4
  %19 = zext i16 %3 to i64
  %20 = getelementptr inbounds %struct.Elf32_Shdr, ptr %15, i64 %19
  %.sroa.3.0..sroa_idx = getelementptr inbounds i8, ptr %20, i64 16
  %.sroa.3.0.copyload = load i32, ptr %.sroa.3.0..sroa_idx, align 4, !tbaa !5
  %.sroa.4.0..sroa_idx = getelementptr inbounds i8, ptr %20, i64 20
  %.sroa.4.0.copyload = load i32, ptr %.sroa.4.0..sroa_idx, align 4, !tbaa !5
  %21 = zext i32 %.sroa.4.0.copyload to i64
  %22 = tail call ptr @llvm.stacksave.p0()
  %23 = alloca i8, i64 %21, align 16
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %5) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %6) #7
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %7) #7
  %24 = zext i32 %.sroa.3.0.copyload to i64
  %25 = tail call i32 @fseek(ptr noundef %0, i64 noundef %24, i32 noundef 0)
  %26 = call i64 @fread(ptr noundef nonnull %23, i64 noundef %21, i64 noundef 1, ptr noundef %0)
  %27 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.274, ptr noundef nonnull @.str.275, ptr noundef nonnull @.str.276, ptr noundef nonnull @.str.244, ptr noundef nonnull @.str.277, ptr noundef nonnull @.str.278, ptr noundef nonnull @.str.279, ptr noundef nonnull @.str.280, ptr noundef nonnull @.str.250, ptr noundef nonnull @.str.281, ptr noundef nonnull @.str.282, ptr noundef nonnull @.str.251)
  %28 = icmp sgt i32 %2, 0
  br i1 %28, label %.lr.ph, label %._crit_edge

._crit_edge:                                      ; preds = %.lr.ph, %18
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %7) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %5) #7
  call void @llvm.stackrestore.p0(ptr %22)
  br label %53

.lr.ph:                                           ; preds = %18, %.lr.ph
  %.032 = phi i32 [ %49, %.lr.ph ], [ 0, %18 ]
  %.03031 = phi ptr [ %50, %.lr.ph ], [ %15, %18 ]
  %29 = load i32, ptr %.03031, align 4, !tbaa !9
  call void @getSectionNameByName(i32 noundef %29, ptr noundef nonnull %23, ptr noundef nonnull %5)
  %30 = getelementptr inbounds i8, ptr %.03031, i64 4
  %31 = load i32, ptr %30, align 4, !tbaa !11
  call void @getSectionTypeNameByType(i32 noundef %31, ptr noundef nonnull %6)
  %32 = getelementptr inbounds i8, ptr %.03031, i64 8
  %33 = load i32, ptr %32, align 4, !tbaa !12
  call void @getSectionFlagNameByFlags(i32 noundef %33, ptr noundef nonnull %7)
  %34 = getelementptr inbounds i8, ptr %.03031, i64 12
  %35 = load i32, ptr %34, align 4, !tbaa !13
  %36 = getelementptr inbounds i8, ptr %.03031, i64 16
  %37 = load i32, ptr %36, align 4, !tbaa !14
  %38 = getelementptr inbounds i8, ptr %.03031, i64 20
  %39 = load i32, ptr %38, align 4, !tbaa !15
  %40 = getelementptr inbounds i8, ptr %.03031, i64 36
  %41 = load i32, ptr %40, align 4, !tbaa !16
  %42 = getelementptr inbounds i8, ptr %.03031, i64 24
  %43 = load i32, ptr %42, align 4, !tbaa !17
  %44 = getelementptr inbounds i8, ptr %.03031, i64 28
  %45 = load i32, ptr %44, align 4, !tbaa !18
  %46 = getelementptr inbounds i8, ptr %.03031, i64 32
  %47 = load i32, ptr %46, align 4, !tbaa !19
  %48 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.283, i32 noundef %.032, ptr noundef nonnull %5, ptr noundef nonnull %6, i32 noundef %35, i32 noundef %37, i32 noundef %39, i32 noundef %41, ptr noundef nonnull %7, i32 noundef %43, i32 noundef %45, i32 noundef %47)
  %49 = add nuw nsw i32 %.032, 1
  %50 = getelementptr inbounds i8, ptr %.03031, i64 40
  %exitcond.not = icmp eq i32 %49, %2
  br i1 %exitcond.not, label %._crit_edge, label %.lr.ph, !llvm.loop !20

51:                                               ; preds = %4
  %52 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.253)
  br label %53

53:                                               ; preds = %51, %._crit_edge
  call void @free(ptr noundef %15) #7
  ret void
}

; Function Attrs: nofree nounwind
declare noundef i32 @fseek(ptr nocapture noundef, i64 noundef, i32 noundef) local_unnamed_addr #1

; Function Attrs: nofree nounwind
declare noundef i64 @ftell(ptr nocapture noundef) local_unnamed_addr #1

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

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

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave.p0() #5

; Function Attrs: nounwind uwtable
declare dso_local void @getSectionNameByName(i32 noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
declare dso_local void @getSectionTypeNameByType(i32 noundef, ptr noundef) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
declare dso_local void @getSectionFlagNameByFlags(i32 noundef, ptr noundef) local_unnamed_addr #2

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn
declare void @llvm.stackrestore.p0(ptr) #5

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { 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 = { 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 #4 = { 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 #5 = { mustprogress nocallback nofree nosync nounwind willreturn }
attributes #6 = { nounwind allocsize(0) }
attributes #7 = { 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 = !{!10, !6, i64 0}
!10 = !{!"", !6, i64 0, !6, i64 4, !6, i64 8, !6, i64 12, !6, i64 16, !6, i64 20, !6, i64 24, !6, i64 28, !6, i64 32, !6, i64 36}
!11 = !{!10, !6, i64 4}
!12 = !{!10, !6, i64 8}
!13 = !{!10, !6, i64 12}
!14 = !{!10, !6, i64 16}
!15 = !{!10, !6, i64 20}
!16 = !{!10, !6, i64 36}
!17 = !{!10, !6, i64 24}
!18 = !{!10, !6, i64 28}
!19 = !{!10, !6, i64 32}
!20 = distinct !{!20, !21}
!21 = !{!"llvm.loop.mustprogress"}


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