; LLVM IR from eclipse-threadx/threadx :: common_modules/module_manager/utilities (module_binary_to_c_array)

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

@.str = external hidden unnamed_addr constant [73 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [76 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [72 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [3 x i8], align 1
@source_file = external dso_local global ptr, align 8
@.str.5 = external hidden unnamed_addr constant [53 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [55 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [2 x i8], align 1
@array_file = external dso_local global ptr, align 8
@.str.9 = external hidden unnamed_addr constant [47 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [100 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [100 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [100 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [101 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [107 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [5 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i64, align 8
  %11 = alloca i64, align 8
  %12 = alloca i32, align 4
  store i32 0, ptr %3, align 4
  store i32 %0, ptr %4, align 4, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #4
  %13 = load i32, ptr %4, align 4, !tbaa !5
  %14 = icmp ne i32 %13, 3
  br i1 %14, label %15, label %20

15:                                               ; preds = %2
  %16 = call i32 (ptr, ...) @printf(ptr noundef @.str)
  %17 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
  %18 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
  %19 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
  store i32 1, ptr %3, align 4
  store i32 1, ptr %12, align 4
  br label %158

20:                                               ; preds = %2
  %21 = load ptr, ptr %5, align 8, !tbaa !9
  %22 = getelementptr inbounds ptr, ptr %21, i64 1
  %23 = load ptr, ptr %22, align 8, !tbaa !9
  %24 = call noalias ptr @fopen(ptr noundef %23, ptr noundef @.str.4)
  store ptr %24, ptr @source_file, align 8, !tbaa !9
  %25 = load ptr, ptr @source_file, align 8, !tbaa !9
  %26 = icmp eq ptr %25, null
  br i1 %26, label %27, label %33

27:                                               ; preds = %20
  %28 = call i32 (ptr, ...) @printf(ptr noundef @.str.5)
  %29 = load ptr, ptr %5, align 8, !tbaa !9
  %30 = getelementptr inbounds ptr, ptr %29, i64 1
  %31 = load ptr, ptr %30, align 8, !tbaa !9
  %32 = call i32 (ptr, ...) @printf(ptr noundef @.str.6, ptr noundef %31)
  store i32 2, ptr %3, align 4
  store i32 1, ptr %12, align 4
  br label %158

33:                                               ; preds = %20
  %34 = load ptr, ptr @source_file, align 8, !tbaa !9
  %35 = call i32 @fgetc(ptr noundef %34)
  store i32 %35, ptr %6, align 4, !tbaa !5
  %36 = load ptr, ptr @source_file, align 8, !tbaa !9
  %37 = call i32 @fgetc(ptr noundef %36)
  store i32 %37, ptr %7, align 4, !tbaa !5
  %38 = load ptr, ptr @source_file, align 8, !tbaa !9
  %39 = call i32 @fgetc(ptr noundef %38)
  store i32 %39, ptr %8, align 4, !tbaa !5
  %40 = load ptr, ptr @source_file, align 8, !tbaa !9
  %41 = call i32 @fgetc(ptr noundef %40)
  store i32 %41, ptr %9, align 4, !tbaa !5
  %42 = load i32, ptr %6, align 4, !tbaa !5
  %43 = icmp ne i32 %42, 77
  br i1 %43, label %44, label %47

44:                                               ; preds = %33
  %45 = load i32, ptr %6, align 4, !tbaa !5
  %46 = icmp ne i32 %45, 85
  br i1 %46, label %65, label %47

47:                                               ; preds = %44, %33
  %48 = load i32, ptr %7, align 4, !tbaa !5
  %49 = icmp ne i32 %48, 79
  br i1 %49, label %50, label %53

50:                                               ; preds = %47
  %51 = load i32, ptr %7, align 4, !tbaa !5
  %52 = icmp ne i32 %51, 68
  br i1 %52, label %65, label %53

53:                                               ; preds = %50, %47
  %54 = load i32, ptr %8, align 4, !tbaa !5
  %55 = icmp ne i32 %54, 68
  br i1 %55, label %56, label %59

56:                                               ; preds = %53
  %57 = load i32, ptr %8, align 4, !tbaa !5
  %58 = icmp ne i32 %57, 79
  br i1 %58, label %65, label %59

59:                                               ; preds = %56, %53
  %60 = load i32, ptr %9, align 4, !tbaa !5
  %61 = icmp ne i32 %60, 85
  br i1 %61, label %62, label %71

62:                                               ; preds = %59
  %63 = load i32, ptr %9, align 4, !tbaa !5
  %64 = icmp ne i32 %63, 77
  br i1 %64, label %65, label %71

65:                                               ; preds = %62, %56, %50, %44
  %66 = call i32 (ptr, ...) @printf(ptr noundef @.str.7)
  %67 = load ptr, ptr %5, align 8, !tbaa !9
  %68 = getelementptr inbounds ptr, ptr %67, i64 1
  %69 = load ptr, ptr %68, align 8, !tbaa !9
  %70 = call i32 (ptr, ...) @printf(ptr noundef @.str.6, ptr noundef %69)
  store i32 3, ptr %3, align 4
  store i32 1, ptr %12, align 4
  br label %158

71:                                               ; preds = %62, %59
  %72 = load ptr, ptr %5, align 8, !tbaa !9
  %73 = getelementptr inbounds ptr, ptr %72, i64 2
  %74 = load ptr, ptr %73, align 8, !tbaa !9
  %75 = call noalias ptr @fopen(ptr noundef %74, ptr noundef @.str.8)
  store ptr %75, ptr @array_file, align 8, !tbaa !9
  %76 = load ptr, ptr @array_file, align 8, !tbaa !9
  %77 = icmp eq ptr %76, null
  br i1 %77, label %78, label %84

78:                                               ; preds = %71
  %79 = call i32 (ptr, ...) @printf(ptr noundef @.str.9)
  %80 = load ptr, ptr %5, align 8, !tbaa !9
  %81 = getelementptr inbounds ptr, ptr %80, i64 2
  %82 = load ptr, ptr %81, align 8, !tbaa !9
  %83 = call i32 (ptr, ...) @printf(ptr noundef @.str.6, ptr noundef %82)
  store i32 4, ptr %3, align 4
  store i32 1, ptr %12, align 4
  br label %158

84:                                               ; preds = %71
  %85 = load ptr, ptr @array_file, align 8, !tbaa !9
  %86 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %85, ptr noundef @.str.10) #4
  %87 = load ptr, ptr @array_file, align 8, !tbaa !9
  %88 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %87, ptr noundef @.str.11) #4
  %89 = load ptr, ptr @array_file, align 8, !tbaa !9
  %90 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %89, ptr noundef @.str.12) #4
  %91 = load ptr, ptr @array_file, align 8, !tbaa !9
  %92 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %91, ptr noundef @.str.11) #4
  %93 = load ptr, ptr @array_file, align 8, !tbaa !9
  %94 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %93, ptr noundef @.str.13) #4
  %95 = load ptr, ptr @array_file, align 8, !tbaa !9
  %96 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %95, ptr noundef @.str.14) #4
  %97 = load ptr, ptr @array_file, align 8, !tbaa !9
  %98 = load ptr, ptr %5, align 8, !tbaa !9
  %99 = getelementptr inbounds ptr, ptr %98, i64 1
  %100 = load ptr, ptr %99, align 8, !tbaa !9
  %101 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %97, ptr noundef @.str.15, ptr noundef %100) #4
  %102 = load ptr, ptr @array_file, align 8, !tbaa !9
  %103 = load ptr, ptr %5, align 8, !tbaa !9
  %104 = getelementptr inbounds ptr, ptr %103, i64 2
  %105 = load ptr, ptr %104, align 8, !tbaa !9
  %106 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %102, ptr noundef @.str.16, ptr noundef %105) #4
  %107 = load ptr, ptr @array_file, align 8, !tbaa !9
  %108 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %107, ptr noundef @.str.17) #4
  %109 = load ptr, ptr @array_file, align 8, !tbaa !9
  %110 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %109, ptr noundef @.str.18) #4
  %111 = load ptr, ptr @array_file, align 8, !tbaa !9
  %112 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %111, ptr noundef @.str.19) #4
  %113 = load ptr, ptr @source_file, align 8, !tbaa !9
  %114 = call i32 @fseek(ptr noundef %113, i64 noundef 0, i32 noundef 0)
  store i64 0, ptr %10, align 8, !tbaa !11
  store i64 0, ptr %11, align 8, !tbaa !11
  br label %115

115:                                              ; preds = %148, %84
  %116 = load ptr, ptr @source_file, align 8, !tbaa !9
  %117 = call i32 @fgetc(ptr noundef %116)
  store i32 %117, ptr %6, align 4, !tbaa !5
  %118 = load i32, ptr %6, align 4, !tbaa !5
  %119 = icmp eq i32 %118, -1
  br i1 %119, label %120, label %121

120:                                              ; preds = %115
  br label %151

121:                                              ; preds = %115
  %122 = load i64, ptr %11, align 8, !tbaa !11
  %123 = icmp eq i64 %122, 0
  br i1 %123, label %124, label %135

124:                                              ; preds = %121
  %125 = load i64, ptr %10, align 8, !tbaa !11
  %126 = icmp ne i64 %125, 0
  br i1 %126, label %127, label %130

127:                                              ; preds = %124
  %128 = load ptr, ptr @array_file, align 8, !tbaa !9
  %129 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %128, ptr noundef @.str.20) #4
  br label %130

130:                                              ; preds = %127, %124
  %131 = load ptr, ptr @array_file, align 8, !tbaa !9
  %132 = load i64, ptr %10, align 8, !tbaa !11
  %133 = load i32, ptr %6, align 4, !tbaa !5
  %134 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %131, ptr noundef @.str.21, i64 noundef %132, i32 noundef %133) #4
  br label %139

135:                                              ; preds = %121
  %136 = load ptr, ptr @array_file, align 8, !tbaa !9
  %137 = load i32, ptr %6, align 4, !tbaa !5
  %138 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %136, ptr noundef @.str.22, i32 noundef %137) #4
  br label %139

139:                                              ; preds = %135, %130
  %140 = load i64, ptr %11, align 8, !tbaa !11
  %141 = add i64 %140, 1
  store i64 %141, ptr %11, align 8, !tbaa !11
  %142 = load i64, ptr %11, align 8, !tbaa !11
  %143 = icmp uge i64 %142, 16
  br i1 %143, label %144, label %145

144:                                              ; preds = %139
  store i64 0, ptr %11, align 8, !tbaa !11
  br label %145

145:                                              ; preds = %144, %139
  %146 = load i64, ptr %10, align 8, !tbaa !11
  %147 = add i64 %146, 1
  store i64 %147, ptr %10, align 8, !tbaa !11
  br label %148

148:                                              ; preds = %145
  %149 = load i32, ptr %6, align 4, !tbaa !5
  %150 = icmp ne i32 %149, -1
  br i1 %150, label %115, label %151, !llvm.loop !13

151:                                              ; preds = %148, %120
  %152 = load ptr, ptr @array_file, align 8, !tbaa !9
  %153 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %152, ptr noundef @.str.23) #4
  %154 = load ptr, ptr @source_file, align 8, !tbaa !9
  %155 = call i32 @fclose(ptr noundef %154)
  %156 = load ptr, ptr @array_file, align 8, !tbaa !9
  %157 = call i32 @fclose(ptr noundef %156)
  store i32 0, ptr %3, align 4
  store i32 1, ptr %12, align 4
  br label %158

158:                                              ; preds = %151, %78, %65, %27, %15
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #4
  %159 = load i32, ptr %3, align 4
  ret i32 %159
}

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

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

declare noalias ptr @fopen(ptr noundef, ptr noundef) #2

declare i32 @fgetc(ptr noundef) #2

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

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

declare i32 @fclose(ptr noundef) #2

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"long", !7, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"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 = external hidden unnamed_addr constant [73 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [76 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [72 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [3 x i8], align 1
@source_file = external dso_local local_unnamed_addr global ptr, align 8
@.str.5 = external hidden unnamed_addr constant [53 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [55 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [2 x i8], align 1
@array_file = external dso_local local_unnamed_addr global ptr, align 8
@.str.9 = external hidden unnamed_addr constant [47 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [100 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [100 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [100 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [101 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [107 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [5 x i8], align 1

; Function Attrs: nofree nounwind uwtable
define dso_local range(i32 0, 5) i32 @main(i32 noundef %0, ptr nocapture noundef readonly %1) local_unnamed_addr #0 {
  %.not = icmp eq i32 %0, 3
  br i1 %.not, label %8, label %3

3:                                                ; preds = %2
  %4 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str)
  %5 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1)
  %6 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2)
  %7 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.3)
  br label %95

8:                                                ; preds = %2
  %9 = getelementptr inbounds i8, ptr %1, i64 8
  %10 = load ptr, ptr %9, align 8, !tbaa !5
  %11 = tail call noalias ptr @fopen(ptr noundef %10, ptr noundef nonnull @.str.4)
  store ptr %11, ptr @source_file, align 8, !tbaa !5
  %12 = icmp eq ptr %11, null
  br i1 %12, label %13, label %17

13:                                               ; preds = %8
  %14 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.5)
  %15 = load ptr, ptr %9, align 8, !tbaa !5
  %16 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.6, ptr noundef %15)
  br label %95

17:                                               ; preds = %8
  %18 = tail call i32 @fgetc(ptr noundef nonnull %11)
  %19 = load ptr, ptr @source_file, align 8, !tbaa !5
  %20 = tail call i32 @fgetc(ptr noundef %19)
  %21 = load ptr, ptr @source_file, align 8, !tbaa !5
  %22 = tail call i32 @fgetc(ptr noundef %21)
  %23 = load ptr, ptr @source_file, align 8, !tbaa !5
  %24 = tail call i32 @fgetc(ptr noundef %23)
  switch i32 %18, label %28 [
    i32 85, label %25
    i32 77, label %25
  ]

25:                                               ; preds = %17, %17
  switch i32 %20, label %28 [
    i32 79, label %26
    i32 68, label %26
  ]

26:                                               ; preds = %25, %25
  switch i32 %22, label %28 [
    i32 79, label %27
    i32 68, label %27
  ]

27:                                               ; preds = %26, %26
  switch i32 %24, label %28 [
    i32 85, label %32
    i32 77, label %32
  ]

28:                                               ; preds = %27, %26, %25, %17
  %29 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.7)
  %30 = load ptr, ptr %9, align 8, !tbaa !5
  %31 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.6, ptr noundef %30)
  br label %95

32:                                               ; preds = %27, %27
  %33 = getelementptr inbounds i8, ptr %1, i64 16
  %34 = load ptr, ptr %33, align 8, !tbaa !5
  %35 = tail call noalias ptr @fopen(ptr noundef %34, ptr noundef nonnull @.str.8)
  store ptr %35, ptr @array_file, align 8, !tbaa !5
  %36 = icmp eq ptr %35, null
  br i1 %36, label %37, label %41

37:                                               ; preds = %32
  %38 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.9)
  %39 = load ptr, ptr %33, align 8, !tbaa !5
  %40 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.6, ptr noundef %39)
  br label %95

41:                                               ; preds = %32
  %42 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef nonnull %35, ptr noundef nonnull @.str.10) #2
  %43 = load ptr, ptr @array_file, align 8, !tbaa !5
  %44 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %43, ptr noundef nonnull @.str.11) #2
  %45 = load ptr, ptr @array_file, align 8, !tbaa !5
  %46 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %45, ptr noundef nonnull @.str.12) #2
  %47 = load ptr, ptr @array_file, align 8, !tbaa !5
  %48 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %47, ptr noundef nonnull @.str.11) #2
  %49 = load ptr, ptr @array_file, align 8, !tbaa !5
  %50 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %49, ptr noundef nonnull @.str.13) #2
  %51 = load ptr, ptr @array_file, align 8, !tbaa !5
  %52 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %51, ptr noundef nonnull @.str.14) #2
  %53 = load ptr, ptr @array_file, align 8, !tbaa !5
  %54 = load ptr, ptr %9, align 8, !tbaa !5
  %55 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %53, ptr noundef nonnull @.str.15, ptr noundef %54) #2
  %56 = load ptr, ptr @array_file, align 8, !tbaa !5
  %57 = load ptr, ptr %33, align 8, !tbaa !5
  %58 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %56, ptr noundef nonnull @.str.16, ptr noundef %57) #2
  %59 = load ptr, ptr @array_file, align 8, !tbaa !5
  %60 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %59, ptr noundef nonnull @.str.17) #2
  %61 = load ptr, ptr @array_file, align 8, !tbaa !5
  %62 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %61, ptr noundef nonnull @.str.18) #2
  %63 = load ptr, ptr @array_file, align 8, !tbaa !5
  %64 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %63, ptr noundef nonnull @.str.19) #2
  %65 = load ptr, ptr @source_file, align 8, !tbaa !5
  %66 = tail call i32 @fseek(ptr noundef %65, i64 noundef 0, i32 noundef 0)
  %67 = load ptr, ptr @source_file, align 8, !tbaa !5
  %68 = tail call i32 @fgetc(ptr noundef %67)
  %69 = icmp eq i32 %68, -1
  br i1 %69, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %41, %82
  %70 = phi i32 [ %87, %82 ], [ %68, %41 ]
  %.040 = phi i64 [ %spec.store.select, %82 ], [ 0, %41 ]
  %.03339 = phi i64 [ %85, %82 ], [ 0, %41 ]
  %71 = icmp eq i64 %.040, 0
  br i1 %71, label %72, label %79

72:                                               ; preds = %.lr.ph
  %.not38 = icmp eq i64 %.03339, 0
  br i1 %.not38, label %76, label %73

73:                                               ; preds = %72
  %74 = load ptr, ptr @array_file, align 8, !tbaa !5
  %75 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %74, ptr noundef nonnull @.str.20) #2
  br label %76

76:                                               ; preds = %73, %72
  %77 = load ptr, ptr @array_file, align 8, !tbaa !5
  %78 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %77, ptr noundef nonnull @.str.21, i64 noundef %.03339, i32 noundef %70) #2
  br label %82

79:                                               ; preds = %.lr.ph
  %80 = load ptr, ptr @array_file, align 8, !tbaa !5
  %81 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %80, ptr noundef nonnull @.str.22, i32 noundef %70) #2
  br label %82

82:                                               ; preds = %79, %76
  %83 = add i64 %.040, 1
  %84 = icmp ugt i64 %83, 15
  %spec.store.select = select i1 %84, i64 0, i64 %83
  %85 = add i64 %.03339, 1
  %86 = load ptr, ptr @source_file, align 8, !tbaa !5
  %87 = tail call i32 @fgetc(ptr noundef %86)
  %88 = icmp eq i32 %87, -1
  br i1 %88, label %._crit_edge, label %.lr.ph

._crit_edge:                                      ; preds = %82, %41
  %89 = load ptr, ptr @array_file, align 8, !tbaa !5
  %90 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %89, ptr noundef nonnull @.str.23) #2
  %91 = load ptr, ptr @source_file, align 8, !tbaa !5
  %92 = tail call i32 @fclose(ptr noundef %91)
  %93 = load ptr, ptr @array_file, align 8, !tbaa !5
  %94 = tail call i32 @fclose(ptr noundef %93)
  br label %95

95:                                               ; preds = %._crit_edge, %37, %28, %13, %3
  %.034 = phi i32 [ 1, %3 ], [ 2, %13 ], [ 3, %28 ], [ 4, %37 ], [ 0, %._crit_edge ]
  ret i32 %.034
}

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

; Function Attrs: nofree nounwind
declare noalias noundef ptr @fopen(ptr nocapture noundef readonly, ptr nocapture noundef readonly) local_unnamed_addr #1

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

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

; 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 i32 @fclose(ptr nocapture noundef) local_unnamed_addr #1

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


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