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

%struct.Input_Link_List = type { ptr, ptr, i32, i32, i32, ptr, ptr }

@Last_NonBlank = external dso_local global ptr, align 8
@Start_FChk = external dso_local global ptr, align 8
@Current_FChk = external dso_local global ptr, align 8
@EndOfString = external dso_local global [8 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [55 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [30 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 uwtable
declare dso_local void @mqc_Remove_Return(ptr noundef) #3

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

; 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 uwtable
define dso_local void @mqc_File_Name_list(ptr noundef %0, ptr noundef %1, i32 noundef %2) #3 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca ptr, align 8
  %8 = alloca [4096 x i8], align 16
  %9 = alloca [1024 x i8], align 16
  %10 = alloca [1024 x i8], align 16
  %11 = alloca ptr, align 8
  %12 = alloca [2048 x i8], align 16
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  %21 = alloca i32, align 4
  %22 = alloca i32, align 4
  %23 = alloca i32, align 4
  %24 = alloca ptr, align 8
  %25 = alloca ptr, align 8
  %26 = alloca ptr, align 8
  %27 = alloca ptr, align 8
  %28 = alloca i32, align 4
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  store i32 %2, ptr %6, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #5
  call void @llvm.lifetime.start.p0(i64 4096, ptr %8) #5
  call void @llvm.lifetime.start.p0(i64 1024, ptr %9) #5
  call void @llvm.lifetime.start.p0(i64 1024, ptr %10) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #5
  call void @llvm.lifetime.start.p0(i64 2048, ptr %12) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #5
  store ptr null, ptr %11, align 8, !tbaa !5
  store i32 -1, ptr %16, align 4, !tbaa !9
  %29 = load ptr, ptr %4, align 8, !tbaa !5
  call void @mqc_File_Exists(ptr noundef %29, ptr noundef %19)
  %30 = load i32, ptr %19, align 4, !tbaa !9
  %31 = icmp eq i32 %30, 0
  br i1 %31, label %32, label %37

32:                                               ; preds = %3
  %33 = getelementptr inbounds [4096 x i8], ptr %8, i64 0, i64 0
  %34 = load ptr, ptr %4, align 8, !tbaa !5
  %35 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef %33, ptr noundef @.str.2, ptr noundef %34, ptr noundef @EndOfString) #5
  %36 = getelementptr inbounds [4096 x i8], ptr %8, i64 0, i64 0
  call void @mqc_error_i_c2f_0(ptr noundef %36, ptr noundef %6)
  br label %37

37:                                               ; preds = %32, %3
  %38 = load ptr, ptr %4, align 8, !tbaa !5
  %39 = getelementptr inbounds [4096 x i8], ptr %8, i64 0, i64 0
  %40 = load i32, ptr %6, align 4, !tbaa !9
  %41 = call i32 @mqc_ASCII_or_Binary(ptr noundef %38, ptr noundef %39, i32 noundef %40)
  store i32 %41, ptr %19, align 4, !tbaa !9
  %42 = load i32, ptr %19, align 4, !tbaa !9
  %43 = icmp eq i32 %42, 1
  br i1 %43, label %44, label %56

44:                                               ; preds = %37
  %45 = load ptr, ptr %4, align 8, !tbaa !5
  %46 = call ptr @mqc_DupString(ptr noundef %45, ptr noundef null)
  store ptr %46, ptr %7, align 8, !tbaa !5
  %47 = load ptr, ptr %7, align 8, !tbaa !5
  %48 = load ptr, ptr @Current_FChk, align 8, !tbaa !5
  %49 = load i32, ptr %6, align 4, !tbaa !9
  %50 = call ptr @mqc_Alloc_Input_Link_List(ptr noundef %47, ptr noundef %48, i32 noundef %49)
  store ptr %50, ptr @Current_FChk, align 8, !tbaa !5
  %51 = load ptr, ptr @Start_FChk, align 8, !tbaa !5
  %52 = icmp eq ptr %51, null
  br i1 %52, label %53, label %55

53:                                               ; preds = %44
  %54 = load ptr, ptr @Current_FChk, align 8, !tbaa !5
  store ptr %54, ptr @Start_FChk, align 8, !tbaa !5
  br label %55

55:                                               ; preds = %53, %44
  store i32 1, ptr %28, align 4
  br label %143

56:                                               ; preds = %37
  %57 = load ptr, ptr %5, align 8, !tbaa !5
  %58 = load i32, ptr %6, align 4, !tbaa !9
  call void @mqc_File_Is_Executable(ptr noundef %57, ptr noundef %23, i32 noundef %58)
  %59 = load i32, ptr %23, align 4, !tbaa !9
  %60 = icmp eq i32 %59, 0
  br i1 %60, label %61, label %66

61:                                               ; preds = %56
  %62 = getelementptr inbounds [4096 x i8], ptr %8, i64 0, i64 0
  %63 = load ptr, ptr %5, align 8, !tbaa !5
  %64 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef %62, ptr noundef @.str.3, ptr noundef %63, ptr noundef @EndOfString) #5
  %65 = getelementptr inbounds [4096 x i8], ptr %8, i64 0, i64 0
  call void @mqc_error_i_c2f_0(ptr noundef %65, ptr noundef %6)
  br label %66

66:                                               ; preds = %61, %56
  %67 = load ptr, ptr %4, align 8, !tbaa !5
  %68 = getelementptr inbounds [4096 x i8], ptr %8, i64 0, i64 0
  %69 = load i32, ptr %6, align 4, !tbaa !9
  %70 = call ptr @mqc_Read_to_Link_List(ptr noundef %67, ptr noundef %68, i32 noundef %69, ptr noundef %17, ptr noundef %16, ptr noundef %15)
  store ptr %70, ptr %24, align 8, !tbaa !5
  %71 = getelementptr inbounds [1024 x i8], ptr %9, i64 0, i64 0
  %72 = load ptr, ptr %4, align 8, !tbaa !5
  %73 = call ptr @strcpy(ptr noundef %71, ptr noundef %72) #5
  %74 = getelementptr inbounds [1024 x i8], ptr %9, i64 0, i64 0
  %75 = call i64 @strlen(ptr noundef %74) #6
  %76 = trunc i64 %75 to i32
  store i32 %76, ptr %21, align 4, !tbaa !9
  %77 = load i32, ptr %21, align 4, !tbaa !9
  %78 = sub nsw i32 %77, 4
  %79 = sext i32 %78 to i64
  %80 = getelementptr inbounds [1024 x i8], ptr %9, i64 0, i64 %79
  %81 = call i32 @strncmp(ptr noundef %80, ptr noundef @.str.4, i64 noundef 4) #6
  %82 = icmp eq i32 %81, 0
  br i1 %82, label %83, label %89

83:                                               ; preds = %66
  %84 = load i32, ptr %21, align 4, !tbaa !9
  %85 = sub nsw i32 %84, 4
  %86 = sext i32 %85 to i64
  %87 = getelementptr inbounds [1024 x i8], ptr %9, i64 0, i64 %86
  %88 = call ptr @strcpy(ptr noundef %87, ptr noundef @EndOfString) #5
  br label %89

89:                                               ; preds = %83, %66
  %90 = load ptr, ptr @Last_NonBlank, align 8, !tbaa !5
  %91 = getelementptr inbounds %struct.Input_Link_List, ptr %90, i32 0, i32 1
  %92 = load ptr, ptr %91, align 8, !tbaa !11
  store ptr %92, ptr %26, align 8, !tbaa !5
  %93 = load ptr, ptr %26, align 8, !tbaa !5
  %94 = getelementptr inbounds %struct.Input_Link_List, ptr %93, i32 0, i32 2
  %95 = load i32, ptr %94, align 8, !tbaa !13
  %96 = icmp eq i32 %95, 0
  br i1 %96, label %103, label %97

97:                                               ; preds = %89
  %98 = load ptr, ptr %26, align 8, !tbaa !5
  %99 = getelementptr inbounds %struct.Input_Link_List, ptr %98, i32 0, i32 5
  %100 = load ptr, ptr %99, align 8, !tbaa !14
  %101 = call i32 @mqc_FINDstrINline(ptr noundef @.str.5, ptr noundef %100)
  %102 = icmp ne i32 %101, -1
  br i1 %102, label %103, label %104

103:                                              ; preds = %97, %89
  store i32 0, ptr %22, align 4, !tbaa !9
  br label %104

104:                                              ; preds = %103, %97
  %105 = load ptr, ptr %24, align 8, !tbaa !5
  call void @mqc_Free_Input_Link_List(ptr noundef %105)
  %106 = getelementptr inbounds [4096 x i8], ptr %8, i64 0, i64 0
  %107 = load ptr, ptr %5, align 8, !tbaa !5
  %108 = getelementptr inbounds [1024 x i8], ptr %10, i64 0, i64 0
  %109 = getelementptr inbounds [1024 x i8], ptr %9, i64 0, i64 0
  %110 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef %106, ptr noundef @.str.6, ptr noundef %107, ptr noundef %108, ptr noundef %109) #5
  %111 = getelementptr inbounds [4096 x i8], ptr %8, i64 0, i64 0
  %112 = call i32 @system(ptr noundef %111)
  store i32 %112, ptr %18, align 4, !tbaa !9
  %113 = load i32, ptr %18, align 4, !tbaa !9
  %114 = icmp eq i32 %113, -1
  br i1 %114, label %115, label %120

115:                                              ; preds = %104
  %116 = getelementptr inbounds [2048 x i8], ptr %12, i64 0, i64 0
  %117 = getelementptr inbounds [4096 x i8], ptr %8, i64 0, i64 0
  %118 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef %116, ptr noundef @.str.7, ptr noundef %117, ptr noundef @EndOfString) #5
  %119 = getelementptr inbounds [2048 x i8], ptr %12, i64 0, i64 0
  call void @print_line_c2f(ptr noundef %119, ptr noundef %6)
  br label %120

120:                                              ; preds = %115, %104
  %121 = load ptr, ptr %7, align 8, !tbaa !5
  call void @mqc_Remove_Return(ptr noundef %121)
  %122 = load ptr, ptr %7, align 8, !tbaa !5
  call void @mqc_File_Exists(ptr noundef %122, ptr noundef %23)
  %123 = load i32, ptr %23, align 4, !tbaa !9
  %124 = icmp eq i32 %123, 0
  br i1 %124, label %125, label %130

125:                                              ; preds = %120
  %126 = getelementptr inbounds [4096 x i8], ptr %8, i64 0, i64 0
  %127 = load ptr, ptr %7, align 8, !tbaa !5
  %128 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef %126, ptr noundef @.str.8, ptr noundef %127, ptr noundef @EndOfString) #5
  %129 = getelementptr inbounds [4096 x i8], ptr %8, i64 0, i64 0
  call void @mqc_error_i_c2f_0(ptr noundef %129, ptr noundef %6)
  br label %130

130:                                              ; preds = %125, %120
  %131 = load ptr, ptr %7, align 8, !tbaa !5
  %132 = getelementptr inbounds [4096 x i8], ptr %8, i64 0, i64 0
  %133 = load i32, ptr %6, align 4, !tbaa !9
  %134 = call i32 @mqc_ASCII_or_Binary(ptr noundef %131, ptr noundef %132, i32 noundef %133)
  store i32 %134, ptr %19, align 4, !tbaa !9
  %135 = load i32, ptr %19, align 4, !tbaa !9
  %136 = icmp ne i32 %135, 1
  br i1 %136, label %137, label %142

137:                                              ; preds = %130
  %138 = getelementptr inbounds [4096 x i8], ptr %8, i64 0, i64 0
  %139 = load ptr, ptr %7, align 8, !tbaa !5
  %140 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef %138, ptr noundef @.str.9, ptr noundef %139, ptr noundef @EndOfString) #5
  %141 = getelementptr inbounds [4096 x i8], ptr %8, i64 0, i64 0
  call void @mqc_error_i_c2f_0(ptr noundef %141, ptr noundef %6)
  br label %142

142:                                              ; preds = %137, %130
  store i32 1, ptr %28, align 4
  br label %143

143:                                              ; preds = %142, %55
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 2048, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 1024, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 1024, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 4096, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #5
  ret void
}

; Function Attrs: nounwind uwtable
declare dso_local void @mqc_File_Exists(ptr noundef, ptr noundef) #3

; Function Attrs: nounwind uwtable
declare dso_local i32 @mqc_ASCII_or_Binary(ptr noundef, ptr noundef, i32 noundef) #3

; Function Attrs: nounwind uwtable
declare dso_local ptr @mqc_DupString(ptr noundef, ptr noundef) #3

; Function Attrs: nounwind uwtable
declare dso_local ptr @mqc_Alloc_Input_Link_List(ptr noundef, ptr noundef, i32 noundef) #3

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

; Function Attrs: nounwind uwtable
declare dso_local ptr @mqc_Read_to_Link_List(ptr noundef, ptr noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef) #3

; Function Attrs: nounwind willreturn memory(read)
declare i32 @strncmp(ptr noundef, ptr noundef, i64 noundef) #4

; Function Attrs: nounwind uwtable
declare dso_local i32 @mqc_FINDstrINline(ptr noundef, ptr noundef) #3

; Function Attrs: nounwind uwtable
declare dso_local void @mqc_Free_Input_Link_List(ptr noundef) #3

declare i32 @system(ptr noundef) #2

declare void @print_line_c2f(ptr 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 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 #4 = { 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 #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, !6, i64 8}
!12 = !{!"Input_Link_List", !6, i64 0, !6, i64 8, !10, i64 16, !10, i64 20, !10, i64 24, !6, i64 32, !6, i64 40}
!13 = !{!12, !10, i64 16}
!14 = !{!12, !6, i64 32}


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

@Last_NonBlank = external dso_local local_unnamed_addr global ptr, align 8
@Start_FChk = external dso_local local_unnamed_addr global ptr, align 8
@Current_FChk = external dso_local local_unnamed_addr global ptr, align 8
@EndOfString = external dso_local global [8 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [55 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [30 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: nounwind uwtable
declare dso_local void @mqc_Remove_Return(ptr noundef) 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: mustprogress nofree nounwind willreturn memory(argmem: readwrite)
declare ptr @strcpy(ptr noalias noundef returned writeonly, ptr noalias nocapture noundef readonly) local_unnamed_addr #5

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

; Function Attrs: nounwind uwtable
define dso_local void @mqc_File_Name_list(ptr noundef %0, ptr noundef %1, i32 noundef %2) local_unnamed_addr #3 {
  %4 = alloca i32, align 4
  %5 = alloca [4096 x i8], align 16
  %6 = alloca [1024 x i8], align 16
  %7 = alloca [1024 x i8], align 16
  %8 = alloca [2048 x i8], align 16
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  store i32 %2, ptr %4, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4096, ptr nonnull %5) #7
  call void @llvm.lifetime.start.p0(i64 1024, ptr nonnull %6) #7
  call void @llvm.lifetime.start.p0(i64 1024, ptr nonnull %7) #7
  call void @llvm.lifetime.start.p0(i64 2048, ptr nonnull %8) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %9) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %10) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %11) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %12) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %13) #7
  store i32 -1, ptr %10, align 4, !tbaa !5
  call void @mqc_File_Exists(ptr noundef %0, ptr noundef nonnull %12)
  %14 = load i32, ptr %12, align 4, !tbaa !5
  %15 = icmp eq i32 %14, 0
  br i1 %15, label %16, label %18

16:                                               ; preds = %3
  %17 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef nonnull dereferenceable(1) %5, ptr noundef nonnull dereferenceable(1) @.str.2, ptr noundef %0, ptr noundef nonnull @EndOfString) #7
  call void @mqc_error_i_c2f_0(ptr noundef nonnull %5, ptr noundef nonnull %4) #7
  %.pre = load i32, ptr %4, align 4, !tbaa !5
  br label %18

18:                                               ; preds = %16, %3
  %19 = phi i32 [ %.pre, %16 ], [ %2, %3 ]
  %20 = call i32 @mqc_ASCII_or_Binary(ptr noundef %0, ptr noundef nonnull %5, i32 noundef %19)
  store i32 %20, ptr %12, align 4, !tbaa !5
  %21 = icmp eq i32 %20, 1
  br i1 %21, label %22, label %30

22:                                               ; preds = %18
  %23 = call ptr @mqc_DupString(ptr noundef %0, ptr noundef null)
  %24 = load ptr, ptr @Current_FChk, align 8, !tbaa !9
  %25 = load i32, ptr %4, align 4, !tbaa !5
  %26 = call ptr @mqc_Alloc_Input_Link_List(ptr noundef %23, ptr noundef %24, i32 noundef %25)
  store ptr %26, ptr @Current_FChk, align 8, !tbaa !9
  %27 = load ptr, ptr @Start_FChk, align 8, !tbaa !9
  %28 = icmp eq ptr %27, null
  br i1 %28, label %29, label %75

29:                                               ; preds = %22
  store ptr %26, ptr @Start_FChk, align 8, !tbaa !9
  br label %75

30:                                               ; preds = %18
  %31 = load i32, ptr %4, align 4, !tbaa !5
  call void @mqc_File_Is_Executable(ptr noundef %1, ptr noundef nonnull %13, i32 noundef %31)
  %32 = load i32, ptr %13, align 4, !tbaa !5
  %33 = icmp eq i32 %32, 0
  br i1 %33, label %34, label %36

34:                                               ; preds = %30
  %35 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef nonnull dereferenceable(1) %5, ptr noundef nonnull dereferenceable(1) @.str.3, ptr noundef %1, ptr noundef nonnull @EndOfString) #7
  call void @mqc_error_i_c2f_0(ptr noundef nonnull %5, ptr noundef nonnull %4) #7
  br label %36

36:                                               ; preds = %34, %30
  %37 = load i32, ptr %4, align 4, !tbaa !5
  %38 = call ptr @mqc_Read_to_Link_List(ptr noundef %0, ptr noundef nonnull %5, i32 noundef %37, ptr noundef nonnull %11, ptr noundef nonnull %10, ptr noundef nonnull %9)
  %39 = call ptr @strcpy(ptr noundef nonnull dereferenceable(1) %6, ptr noundef nonnull dereferenceable(1) %0) #7
  %40 = call i64 @strlen(ptr noundef nonnull dereferenceable(1) %6) #8
  %41 = shl i64 %40, 32
  %sext = add i64 %41, -17179869184
  %42 = ashr exact i64 %sext, 32
  %43 = getelementptr inbounds [1024 x i8], ptr %6, i64 0, i64 %42
  %44 = call i32 @strncmp(ptr noundef nonnull dereferenceable(1) %43, ptr noundef nonnull dereferenceable(1) @.str.4, i64 noundef 4) #8
  %45 = icmp eq i32 %44, 0
  br i1 %45, label %46, label %48

46:                                               ; preds = %36
  %47 = call ptr @strcpy(ptr noundef nonnull dereferenceable(1) %43, ptr noundef nonnull dereferenceable(1) @EndOfString) #7
  br label %48

48:                                               ; preds = %46, %36
  %49 = load ptr, ptr @Last_NonBlank, align 8, !tbaa !9
  %50 = getelementptr inbounds i8, ptr %49, i64 8
  %51 = load ptr, ptr %50, align 8, !tbaa !11
  %52 = getelementptr inbounds i8, ptr %51, i64 16
  %53 = load i32, ptr %52, align 8, !tbaa !13
  %54 = icmp eq i32 %53, 0
  br i1 %54, label %59, label %55

55:                                               ; preds = %48
  %56 = getelementptr inbounds i8, ptr %51, i64 32
  %57 = load ptr, ptr %56, align 8, !tbaa !14
  %58 = call i32 @mqc_FINDstrINline(ptr noundef nonnull @.str.5, ptr noundef %57)
  br label %59

59:                                               ; preds = %55, %48
  call void @mqc_Free_Input_Link_List(ptr noundef %38)
  %60 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef nonnull dereferenceable(1) %5, ptr noundef nonnull dereferenceable(1) @.str.6, ptr noundef %1, ptr noundef nonnull %7, ptr noundef nonnull %6) #7
  %61 = call i32 @system(ptr noundef nonnull %5) #7
  %62 = icmp eq i32 %61, -1
  br i1 %62, label %63, label %65

63:                                               ; preds = %59
  %64 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef nonnull dereferenceable(1) %8, ptr noundef nonnull dereferenceable(1) @.str.7, ptr noundef nonnull %5, ptr noundef nonnull @EndOfString) #7
  call void @print_line_c2f(ptr noundef nonnull %8, ptr noundef nonnull %4) #7
  br label %65

65:                                               ; preds = %63, %59
  call void @mqc_Remove_Return(ptr noundef undef)
  call void @mqc_File_Exists(ptr noundef undef, ptr noundef nonnull %13)
  %66 = load i32, ptr %13, align 4, !tbaa !5
  %67 = icmp eq i32 %66, 0
  br i1 %67, label %68, label %70

68:                                               ; preds = %65
  %69 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef nonnull dereferenceable(1) %5, ptr noundef nonnull dereferenceable(1) @.str.8, ptr noundef undef, ptr noundef nonnull @EndOfString) #7
  call void @mqc_error_i_c2f_0(ptr noundef nonnull %5, ptr noundef nonnull %4) #7
  br label %70

70:                                               ; preds = %68, %65
  %71 = load i32, ptr %4, align 4, !tbaa !5
  %72 = call i32 @mqc_ASCII_or_Binary(ptr noundef undef, ptr noundef nonnull %5, i32 noundef %71)
  store i32 %72, ptr %12, align 4, !tbaa !5
  %.not20 = icmp eq i32 %72, 1
  br i1 %.not20, label %75, label %73

73:                                               ; preds = %70
  %74 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef nonnull dereferenceable(1) %5, ptr noundef nonnull dereferenceable(1) @.str.9, ptr noundef undef, ptr noundef nonnull @EndOfString) #7
  call void @mqc_error_i_c2f_0(ptr noundef nonnull %5, ptr noundef nonnull %4) #7
  br label %75

75:                                               ; preds = %70, %73, %22, %29
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %13) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %12) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %11) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %10) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %9) #7
  call void @llvm.lifetime.end.p0(i64 2048, ptr nonnull %8) #7
  call void @llvm.lifetime.end.p0(i64 1024, ptr nonnull %7) #7
  call void @llvm.lifetime.end.p0(i64 1024, ptr nonnull %6) #7
  call void @llvm.lifetime.end.p0(i64 4096, ptr nonnull %5) #7
  ret void
}

; Function Attrs: nounwind uwtable
declare dso_local void @mqc_File_Exists(ptr noundef, ptr noundef) local_unnamed_addr #3

; Function Attrs: nounwind uwtable
declare dso_local i32 @mqc_ASCII_or_Binary(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #3

; Function Attrs: nounwind uwtable
declare dso_local ptr @mqc_DupString(ptr noundef, ptr noundef) local_unnamed_addr #3

; Function Attrs: nounwind uwtable
declare dso_local ptr @mqc_Alloc_Input_Link_List(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #3

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

; Function Attrs: nounwind uwtable
declare dso_local ptr @mqc_Read_to_Link_List(ptr noundef, ptr noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #3

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

; Function Attrs: nounwind uwtable
declare dso_local i32 @mqc_FINDstrINline(ptr noundef, ptr noundef) local_unnamed_addr #3

; Function Attrs: nounwind uwtable
declare dso_local void @mqc_Free_Input_Link_List(ptr noundef) local_unnamed_addr #3

; Function Attrs: nofree
declare noundef i32 @system(ptr nocapture noundef readonly) local_unnamed_addr #6

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

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 = { 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 #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 = { 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 #6 = { nofree "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 #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, !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, !10, i64 8}
!12 = !{!"Input_Link_List", !10, i64 0, !10, i64 8, !6, i64 16, !6, i64 20, !6, i64 24, !10, i64 32, !10, i64 40}
!13 = !{!12, !6, i64 16}
!14 = !{!12, !10, i64 32}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,ReassociatePass,SROAPass,SimplifyCFGPass