; LLVM IR from MQCPack/mqcPack :: src (mqc_util)

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

@EndOfString = external dso_local global [8 x i8], align 1
@.str.52 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.58 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.60 = external hidden unnamed_addr constant [65 x i8], align 1
@.str.61 = external hidden unnamed_addr constant [83 x i8], align 1
@.str.62 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.63 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.64 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.65 = external hidden unnamed_addr constant [48 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: nounwind
declare i32 @sprintf(ptr noundef, ptr noundef, ...) #1

declare void @mqc_error_i_c2f_0(ptr noundef, ptr noundef) #2

; Function Attrs: nounwind
declare ptr @strcpy(ptr noundef, ptr noundef) #1

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

; Function Attrs: nounwind willreturn memory(read)
declare i32 @strcmp(ptr noundef, ptr noundef) #3

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

; Function Attrs: nounwind uwtable
define dso_local i32 @Get_Unformated_Data(ptr noundef %0, ptr noundef %1, i32 noundef %2, ptr noundef %3, i32 noundef %4, ptr noundef %5, ptr noundef %6, i32 noundef %7, ptr noundef %8, ptr noundef %9, ptr noundef %10, ptr noundef %11) #4 {
  %13 = alloca i32, align 4
  %14 = alloca ptr, align 8
  %15 = alloca ptr, align 8
  %16 = alloca i32, align 4
  %17 = alloca ptr, align 8
  %18 = alloca i32, align 4
  %19 = alloca ptr, align 8
  %20 = alloca ptr, align 8
  %21 = alloca i32, align 4
  %22 = alloca ptr, align 8
  %23 = alloca ptr, align 8
  %24 = alloca ptr, align 8
  %25 = alloca ptr, align 8
  %26 = alloca i32, align 4
  %27 = alloca i32, align 4
  %28 = alloca i32, align 4
  %29 = alloca i64, align 8
  %30 = alloca i32, align 4
  store ptr %0, ptr %14, align 8, !tbaa !5
  store ptr %1, ptr %15, align 8, !tbaa !5
  store i32 %2, ptr %16, align 4, !tbaa !9
  store ptr %3, ptr %17, align 8, !tbaa !5
  store i32 %4, ptr %18, align 4, !tbaa !9
  store ptr %5, ptr %19, align 8, !tbaa !5
  store ptr %6, ptr %20, align 8, !tbaa !5
  store i32 %7, ptr %21, align 4, !tbaa !9
  store ptr %8, ptr %22, align 8, !tbaa !5
  store ptr %9, ptr %23, align 8, !tbaa !5
  store ptr %10, ptr %24, align 8, !tbaa !5
  store ptr %11, ptr %25, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #5
  %31 = load ptr, ptr %14, align 8, !tbaa !5
  %32 = load i32, ptr %18, align 4, !tbaa !9
  %33 = sext i32 %32 to i64
  %34 = call i32 @fseek(ptr noundef %31, i64 noundef %33, i32 noundef 0)
  store i32 %34, ptr %26, align 4, !tbaa !9
  %35 = load i32, ptr %26, align 4, !tbaa !9
  %36 = icmp ne i32 %35, 0
  br i1 %36, label %37, label %43

37:                                               ; preds = %12
  %38 = load ptr, ptr %15, align 8, !tbaa !5
  %39 = load i32, ptr %18, align 4, !tbaa !9
  %40 = call i32 (ptr, ...) @printf(ptr noundef @.str.60, ptr noundef %38, i32 noundef %39)
  %41 = load ptr, ptr %19, align 8, !tbaa !5
  %42 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef %41, ptr noundef @.str.58, ptr noundef @EndOfString) #5
  store i32 1, ptr %13, align 4
  store i32 1, ptr %30, align 4
  br label %159

43:                                               ; preds = %12
  %44 = load ptr, ptr %20, align 8, !tbaa !5
  %45 = call i32 @strcmp(ptr noundef %44, ptr noundef @.str.52) #6
  %46 = icmp eq i32 %45, 0
  br i1 %46, label %47, label %103

47:                                               ; preds = %43
  %48 = load i32, ptr %21, align 4, !tbaa !9
  %49 = icmp eq i32 %48, 4
  br i1 %49, label %50, label %77

50:                                               ; preds = %47
  %51 = load ptr, ptr %23, align 8, !tbaa !5
  %52 = load i32, ptr %21, align 4, !tbaa !9
  %53 = sext i32 %52 to i64
  %54 = load i32, ptr %16, align 4, !tbaa !9
  %55 = sext i32 %54 to i64
  %56 = load ptr, ptr %14, align 8, !tbaa !5
  %57 = call i64 @fread(ptr noundef %51, i64 noundef %53, i64 noundef %55, ptr noundef %56)
  store i64 %57, ptr %29, align 8, !tbaa !11
  store i32 0, ptr %28, align 4, !tbaa !9
  br label %58

58:                                               ; preds = %73, %50
  %59 = load i32, ptr %28, align 4, !tbaa !9
  %60 = load i32, ptr %16, align 4, !tbaa !9
  %61 = icmp slt i32 %59, %60
  br i1 %61, label %62, label %76

62:                                               ; preds = %58
  %63 = load ptr, ptr %23, align 8, !tbaa !5
  %64 = load i32, ptr %28, align 4, !tbaa !9
  %65 = sext i32 %64 to i64
  %66 = getelementptr inbounds i32, ptr %63, i64 %65
  %67 = load i32, ptr %66, align 4, !tbaa !9
  %68 = sext i32 %67 to i64
  %69 = load ptr, ptr %22, align 8, !tbaa !5
  %70 = load i32, ptr %28, align 4, !tbaa !9
  %71 = sext i32 %70 to i64
  %72 = getelementptr inbounds i64, ptr %69, i64 %71
  store i64 %68, ptr %72, align 8, !tbaa !11
  br label %73

73:                                               ; preds = %62
  %74 = load i32, ptr %28, align 4, !tbaa !9
  %75 = add nsw i32 %74, 1
  store i32 %75, ptr %28, align 4, !tbaa !9
  br label %58, !llvm.loop !13

76:                                               ; preds = %58
  br label %91

77:                                               ; preds = %47
  %78 = load i32, ptr %21, align 4, !tbaa !9
  %79 = icmp eq i32 %78, 8
  br i1 %79, label %80, label %88

80:                                               ; preds = %77
  %81 = load ptr, ptr %22, align 8, !tbaa !5
  %82 = load i32, ptr %21, align 4, !tbaa !9
  %83 = sext i32 %82 to i64
  %84 = load i32, ptr %16, align 4, !tbaa !9
  %85 = sext i32 %84 to i64
  %86 = load ptr, ptr %14, align 8, !tbaa !5
  %87 = call i64 @fread(ptr noundef %81, i64 noundef %83, i64 noundef %85, ptr noundef %86)
  store i64 %87, ptr %29, align 8, !tbaa !11
  br label %90

88:                                               ; preds = %77
  %89 = load i32, ptr %21, align 4, !tbaa !9
  call void @Invalid_int_len(i32 noundef %89)
  br label %90

90:                                               ; preds = %88, %80
  br label %91

91:                                               ; preds = %90, %76
  %92 = load i64, ptr %29, align 8, !tbaa !11
  %93 = load i32, ptr %16, align 4, !tbaa !9
  %94 = sext i32 %93 to i64
  %95 = icmp ne i64 %92, %94
  br i1 %95, label %96, label %102

96:                                               ; preds = %91
  %97 = load i64, ptr %29, align 8, !tbaa !11
  %98 = load i32, ptr %16, align 4, !tbaa !9
  %99 = call i32 (ptr, ...) @printf(ptr noundef @.str.61, i64 noundef %97, i32 noundef %98)
  %100 = load ptr, ptr %19, align 8, !tbaa !5
  %101 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef %100, ptr noundef @.str.62, ptr noundef @EndOfString) #5
  store i32 1, ptr %13, align 4
  store i32 1, ptr %30, align 4
  br label %159

102:                                              ; preds = %91
  br label %158

103:                                              ; preds = %43
  %104 = load ptr, ptr %20, align 8, !tbaa !5
  %105 = call i32 @strcmp(ptr noundef %104, ptr noundef @.str.63) #6
  %106 = icmp eq i32 %105, 0
  br i1 %106, label %107, label %124

107:                                              ; preds = %103
  %108 = load ptr, ptr %24, align 8, !tbaa !5
  %109 = load i32, ptr %16, align 4, !tbaa !9
  %110 = sext i32 %109 to i64
  %111 = load ptr, ptr %14, align 8, !tbaa !5
  %112 = call i64 @fread(ptr noundef %108, i64 noundef 8, i64 noundef %110, ptr noundef %111)
  store i64 %112, ptr %29, align 8, !tbaa !11
  %113 = load i64, ptr %29, align 8, !tbaa !11
  %114 = load i32, ptr %16, align 4, !tbaa !9
  %115 = sext i32 %114 to i64
  %116 = icmp ne i64 %113, %115
  br i1 %116, label %117, label %123

117:                                              ; preds = %107
  %118 = load i64, ptr %29, align 8, !tbaa !11
  %119 = load i32, ptr %16, align 4, !tbaa !9
  %120 = call i32 (ptr, ...) @printf(ptr noundef @.str.61, i64 noundef %118, i32 noundef %119)
  %121 = load ptr, ptr %19, align 8, !tbaa !5
  %122 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef %121, ptr noundef @.str.62, ptr noundef @EndOfString) #5
  store i32 1, ptr %13, align 4
  store i32 1, ptr %30, align 4
  br label %159

123:                                              ; preds = %107
  br label %157

124:                                              ; preds = %103
  %125 = load ptr, ptr %20, align 8, !tbaa !5
  %126 = call i32 @strcmp(ptr noundef %125, ptr noundef @.str.64) #6
  %127 = icmp eq i32 %126, 0
  br i1 %127, label %128, label %150

128:                                              ; preds = %124
  %129 = load ptr, ptr %25, align 8, !tbaa !5
  %130 = load i32, ptr %16, align 4, !tbaa !9
  %131 = sext i32 %130 to i64
  %132 = load ptr, ptr %14, align 8, !tbaa !5
  %133 = call i64 @fread(ptr noundef %129, i64 noundef 1, i64 noundef %131, ptr noundef %132)
  store i64 %133, ptr %29, align 8, !tbaa !11
  %134 = load i64, ptr %29, align 8, !tbaa !11
  %135 = load i32, ptr %16, align 4, !tbaa !9
  %136 = sext i32 %135 to i64
  %137 = icmp ne i64 %134, %136
  br i1 %137, label %138, label %144

138:                                              ; preds = %128
  %139 = load i64, ptr %29, align 8, !tbaa !11
  %140 = load i32, ptr %16, align 4, !tbaa !9
  %141 = call i32 (ptr, ...) @printf(ptr noundef @.str.61, i64 noundef %139, i32 noundef %140)
  %142 = load ptr, ptr %19, align 8, !tbaa !5
  %143 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef %142, ptr noundef @.str.62, ptr noundef @EndOfString) #5
  store i32 1, ptr %13, align 4
  store i32 1, ptr %30, align 4
  br label %159

144:                                              ; preds = %128
  %145 = load ptr, ptr %25, align 8, !tbaa !5
  %146 = load i32, ptr %16, align 4, !tbaa !9
  %147 = sext i32 %146 to i64
  %148 = getelementptr inbounds i8, ptr %145, i64 %147
  %149 = call ptr @strcpy(ptr noundef %148, ptr noundef @EndOfString) #5
  br label %156

150:                                              ; preds = %124
  store i32 6, ptr %27, align 4, !tbaa !9
  %151 = load ptr, ptr %25, align 8, !tbaa !5
  %152 = load ptr, ptr %17, align 8, !tbaa !5
  %153 = load ptr, ptr %20, align 8, !tbaa !5
  %154 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef %151, ptr noundef @.str.65, ptr noundef %152, ptr noundef %153, ptr noundef @EndOfString) #5
  %155 = load ptr, ptr %25, align 8, !tbaa !5
  call void @mqc_error_i_c2f_0(ptr noundef %155, ptr noundef %27)
  br label %156

156:                                              ; preds = %150, %144
  br label %157

157:                                              ; preds = %156, %123
  br label %158

158:                                              ; preds = %157, %102
  store i32 0, ptr %13, align 4
  store i32 1, ptr %30, align 4
  br label %159

159:                                              ; preds = %158, %138, %117, %96, %37
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #5
  %160 = load i32, ptr %13, align 4
  ret i32 %160
}

; Function Attrs: nounwind uwtable
declare dso_local void @Invalid_int_len(i32 noundef) #4

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

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 = { "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 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 #4 = { 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 #5 = { nounwind }
attributes #6 = { 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, !10, i64 0}
!10 = !{!"int", !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"

@EndOfString = external dso_local global [8 x i8], align 1
@.str.52 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.58 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.60 = external hidden unnamed_addr constant [65 x i8], align 1
@.str.61 = external hidden unnamed_addr constant [83 x i8], align 1
@.str.62 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.63 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.64 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.65 = external hidden unnamed_addr constant [48 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 @sprintf(ptr noalias nocapture noundef writeonly, ptr nocapture noundef readonly, ...) local_unnamed_addr #1

declare void @mqc_error_i_c2f_0(ptr noundef, ptr noundef) local_unnamed_addr #2

; Function Attrs: mustprogress nofree nounwind willreturn memory(argmem: readwrite)
declare ptr @strcpy(ptr noalias noundef returned writeonly, ptr noalias nocapture noundef readonly) local_unnamed_addr #3

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

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

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

; Function Attrs: nounwind uwtable
define dso_local range(i32 0, 2) i32 @Get_Unformated_Data(ptr nocapture noundef %0, ptr noundef %1, i32 noundef %2, ptr noundef %3, i32 noundef %4, ptr nocapture noundef writeonly %5, ptr noundef %6, i32 noundef %7, ptr nocapture noundef %8, ptr nocapture noundef %9, ptr nocapture noundef %10, ptr noundef %11) local_unnamed_addr #5 {
  %13 = alloca i32, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %13) #6
  %14 = sext i32 %4 to i64
  %15 = tail call i32 @fseek(ptr noundef %0, i64 noundef %14, i32 noundef 0)
  %.not = icmp eq i32 %15, 0
  br i1 %.not, label %19, label %16

16:                                               ; preds = %12
  %17 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.60, ptr noundef %1, i32 noundef %4)
  %18 = tail call i32 (ptr, ptr, ...) @sprintf(ptr noundef nonnull dereferenceable(1) %5, ptr noundef nonnull dereferenceable(1) @.str.58, ptr noundef nonnull @EndOfString) #6
  br label %67

19:                                               ; preds = %12
  %20 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %6, ptr noundef nonnull dereferenceable(1) @.str.52) #7
  %21 = icmp eq i32 %20, 0
  br i1 %21, label %22, label %44

22:                                               ; preds = %19
  switch i32 %7, label %.thread [
    i32 4, label %23
    i32 8, label %38
  ]

23:                                               ; preds = %22
  %24 = sext i32 %2 to i64
  %25 = tail call i64 @fread(ptr noundef %9, i64 noundef 4, i64 noundef %24, ptr noundef %0)
  %26 = icmp sgt i32 %2, 0
  br i1 %26, label %.lr.ph.preheader, label %.loopexit

.lr.ph.preheader:                                 ; preds = %23
  %wide.trip.count = zext nneg i32 %2 to i64
  %min.iters.check = icmp ult i32 %2, 4
  br i1 %min.iters.check, label %.lr.ph.preheader69, label %vector.ph

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

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %27 = getelementptr inbounds i32, ptr %9, i64 %index
  %28 = getelementptr inbounds i8, ptr %27, i64 8
  %wide.load = load <2 x i32>, ptr %27, align 4, !tbaa !5
  %wide.load68 = load <2 x i32>, ptr %28, align 4, !tbaa !5
  %29 = sext <2 x i32> %wide.load to <2 x i64>
  %30 = sext <2 x i32> %wide.load68 to <2 x i64>
  %31 = getelementptr inbounds i64, ptr %8, i64 %index
  %32 = getelementptr inbounds i8, ptr %31, i64 16
  store <2 x i64> %29, ptr %31, align 8, !tbaa !9
  store <2 x i64> %30, ptr %32, align 8, !tbaa !9
  %index.next = add nuw i64 %index, 4
  %33 = icmp eq i64 %index.next, %n.vec
  br i1 %33, label %middle.block, label %vector.body, !llvm.loop !11

middle.block:                                     ; preds = %vector.body
  %cmp.n = icmp eq i64 %n.vec, %wide.trip.count
  br i1 %cmp.n, label %.loopexit, label %.lr.ph.preheader69

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

.lr.ph:                                           ; preds = %.lr.ph.preheader69, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph ], [ %indvars.iv.ph, %.lr.ph.preheader69 ]
  %34 = getelementptr inbounds i32, ptr %9, i64 %indvars.iv
  %35 = load i32, ptr %34, align 4, !tbaa !5
  %36 = sext i32 %35 to i64
  %37 = getelementptr inbounds i64, ptr %8, i64 %indvars.iv
  store i64 %36, ptr %37, align 8, !tbaa !9
  %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 %.loopexit, label %.lr.ph, !llvm.loop !15

38:                                               ; preds = %22
  %39 = sext i32 %2 to i64
  %40 = tail call i64 @fread(ptr noundef %8, i64 noundef 8, i64 noundef %39, ptr noundef %0)
  br label %.loopexit

.thread:                                          ; preds = %22
  tail call void @Invalid_int_len(i32 noundef %7)
  unreachable

.loopexit:                                        ; preds = %.lr.ph, %middle.block, %23, %38
  %.pre-phi = phi i64 [ %24, %23 ], [ %39, %38 ], [ %24, %middle.block ], [ %24, %.lr.ph ]
  %.0 = phi i64 [ %25, %23 ], [ %40, %38 ], [ %25, %middle.block ], [ %25, %.lr.ph ]
  %.not62 = icmp eq i64 %.0, %.pre-phi
  br i1 %.not62, label %67, label %41

41:                                               ; preds = %.loopexit
  %42 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.61, i64 noundef %.0, i32 noundef %2)
  %43 = tail call i32 (ptr, ptr, ...) @sprintf(ptr noundef nonnull dereferenceable(1) %5, ptr noundef nonnull dereferenceable(1) @.str.62, ptr noundef nonnull @EndOfString) #6
  br label %67

44:                                               ; preds = %19
  %45 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %6, ptr noundef nonnull dereferenceable(1) @.str.63) #7
  %46 = icmp eq i32 %45, 0
  br i1 %46, label %47, label %53

47:                                               ; preds = %44
  %48 = sext i32 %2 to i64
  %49 = tail call i64 @fread(ptr noundef %10, i64 noundef 8, i64 noundef %48, ptr noundef %0)
  %.not61 = icmp eq i64 %49, %48
  br i1 %.not61, label %67, label %50

50:                                               ; preds = %47
  %51 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.61, i64 noundef %49, i32 noundef %2)
  %52 = tail call i32 (ptr, ptr, ...) @sprintf(ptr noundef nonnull dereferenceable(1) %5, ptr noundef nonnull dereferenceable(1) @.str.62, ptr noundef nonnull @EndOfString) #6
  br label %67

53:                                               ; preds = %44
  %54 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %6, ptr noundef nonnull dereferenceable(1) @.str.64) #7
  %55 = icmp eq i32 %54, 0
  br i1 %55, label %56, label %65

56:                                               ; preds = %53
  %57 = sext i32 %2 to i64
  %58 = tail call i64 @fread(ptr noundef %11, i64 noundef 1, i64 noundef %57, ptr noundef %0)
  %.not60 = icmp eq i64 %58, %57
  br i1 %.not60, label %62, label %59

59:                                               ; preds = %56
  %60 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.61, i64 noundef %58, i32 noundef %2)
  %61 = tail call i32 (ptr, ptr, ...) @sprintf(ptr noundef nonnull dereferenceable(1) %5, ptr noundef nonnull dereferenceable(1) @.str.62, ptr noundef nonnull @EndOfString) #6
  br label %67

62:                                               ; preds = %56
  %63 = getelementptr inbounds i8, ptr %11, i64 %57
  %64 = tail call ptr @strcpy(ptr noundef nonnull dereferenceable(1) %63, ptr noundef nonnull dereferenceable(1) @EndOfString) #6
  br label %67

65:                                               ; preds = %53
  store i32 6, ptr %13, align 4, !tbaa !5
  %66 = tail call i32 (ptr, ptr, ...) @sprintf(ptr noundef nonnull dereferenceable(1) %11, ptr noundef nonnull dereferenceable(1) @.str.65, ptr noundef %3, ptr noundef %6, ptr noundef nonnull @EndOfString) #6
  call void @mqc_error_i_c2f_0(ptr noundef %11, ptr noundef nonnull %13) #6
  br label %67

67:                                               ; preds = %.loopexit, %62, %65, %47, %59, %50, %41, %16
  %.055 = phi i32 [ 1, %16 ], [ 1, %41 ], [ 1, %50 ], [ 1, %59 ], [ 0, %47 ], [ 0, %65 ], [ 0, %62 ], [ 0, %.loopexit ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %13) #6
  ret i32 %.055
}

; Function Attrs: nounwind uwtable
declare dso_local void @Invalid_int_len(i32 noundef) local_unnamed_addr #5

; 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 @fread(ptr nocapture noundef, i64 noundef, i64 noundef, ptr nocapture noundef) local_unnamed_addr #1

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 = { "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 memory(argmem: readwrite) "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 = { 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 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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"long", !7, i64 0}
!11 = distinct !{!11, !12, !13, !14}
!12 = !{!"llvm.loop.mustprogress"}
!13 = !{!"llvm.loop.isvectorized", i32 1}
!14 = !{!"llvm.loop.unroll.runtime.disable"}
!15 = distinct !{!15, !12, !14, !13}


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