; LLVM IR from mncoppola/rpef :: utilities_src/squashfs4.2/lzma465/C/Archive/7z (7zMain)

; 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.CFileInStream = type { %struct.ISeekInStream, %struct.CSzFile }
%struct.ISeekInStream = type { ptr, ptr }
%struct.CSzFile = type { ptr }
%struct.CLookToRead = type { %struct.ILookInStream, ptr, i64, i64, [16384 x i8] }
%struct.ILookInStream = type { ptr, ptr, ptr, ptr }
%struct.CSzArEx = type { %struct.CSzAr, i64, i64, ptr, ptr, ptr, ptr }
%struct.CSzAr = type { ptr, ptr, ptr, ptr, ptr, i32, i32, i32 }
%struct.ISzAlloc = type { ptr, ptr }
%struct.CSzFileItem = type { %struct.CNtfsFileTime, i64, ptr, i32, i8, i8, i8, i8, i8 }
%struct.CNtfsFileTime = type { i32, i32 }

@.str.1 = external hidden unnamed_addr constant [68 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [145 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [37 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [12 x i8], align 1

; Function Attrs: nounwind uwtable
declare dso_local void @PrintError(ptr noundef) #0

declare i32 @printf(ptr noundef, ...) #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 %struct.CFileInStream, align 8
  %7 = alloca %struct.CLookToRead, align 8
  %8 = alloca %struct.CSzArEx, align 8
  %9 = alloca i32, align 4
  %10 = alloca %struct.ISzAlloc, align 8
  %11 = alloca %struct.ISzAlloc, align 8
  %12 = alloca i32, align 4
  %13 = alloca ptr, align 8
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca ptr, align 8
  %19 = alloca [32 x i8], align 16
  %20 = alloca [32 x i8], align 16
  %21 = alloca i32, align 4
  %22 = alloca i32, align 4
  %23 = alloca ptr, align 8
  %24 = alloca i64, align 8
  %25 = alloca i64, align 8
  %26 = alloca i64, align 8
  %27 = alloca ptr, align 8
  %28 = alloca %struct.CSzFile, align 8
  %29 = alloca i64, align 8
  %30 = alloca ptr, align 8
  %31 = alloca i64, align 8
  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 24, ptr %6) #5
  call void @llvm.lifetime.start.p0(i64 16440, ptr %7) #5
  call void @llvm.lifetime.start.p0(i64 104, ptr %8) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr %10) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr %11) #5
  %32 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
  %33 = load i32, ptr %4, align 4, !tbaa !5
  %34 = icmp eq i32 %33, 1
  br i1 %34, label %35, label %37

35:                                               ; preds = %2
  %36 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
  store i32 0, ptr %3, align 4
  store i32 1, ptr %12, align 4
  br label %273

37:                                               ; preds = %2
  %38 = load i32, ptr %4, align 4, !tbaa !5
  %39 = icmp slt i32 %38, 3
  br i1 %39, label %40, label %41

40:                                               ; preds = %37
  call void @PrintError(ptr noundef @.str.3)
  store i32 1, ptr %3, align 4
  store i32 1, ptr %12, align 4
  br label %273

41:                                               ; preds = %37
  %42 = getelementptr inbounds %struct.CFileInStream, ptr %6, i32 0, i32 1
  %43 = load ptr, ptr %5, align 8, !tbaa !9
  %44 = getelementptr inbounds ptr, ptr %43, i64 2
  %45 = load ptr, ptr %44, align 8, !tbaa !9
  %46 = call i32 @InFile_Open(ptr noundef %42, ptr noundef %45)
  %47 = icmp ne i32 %46, 0
  br i1 %47, label %48, label %49

48:                                               ; preds = %41
  call void @PrintError(ptr noundef @.str.4)
  store i32 1, ptr %3, align 4
  store i32 1, ptr %12, align 4
  br label %273

49:                                               ; preds = %41
  call void @FileInStream_CreateVTable(ptr noundef %6)
  call void @LookToRead_CreateVTable(ptr noundef %7, i32 noundef 0)
  %50 = getelementptr inbounds %struct.CFileInStream, ptr %6, i32 0, i32 0
  %51 = getelementptr inbounds %struct.CLookToRead, ptr %7, i32 0, i32 1
  store ptr %50, ptr %51, align 8, !tbaa !11
  call void @LookToRead_Init(ptr noundef %7)
  %52 = getelementptr inbounds %struct.ISzAlloc, ptr %10, i32 0, i32 0
  store ptr @SzAlloc, ptr %52, align 8, !tbaa !15
  %53 = getelementptr inbounds %struct.ISzAlloc, ptr %10, i32 0, i32 1
  store ptr @SzFree, ptr %53, align 8, !tbaa !17
  %54 = getelementptr inbounds %struct.ISzAlloc, ptr %11, i32 0, i32 0
  store ptr @SzAllocTemp, ptr %54, align 8, !tbaa !15
  %55 = getelementptr inbounds %struct.ISzAlloc, ptr %11, i32 0, i32 1
  store ptr @SzFreeTemp, ptr %55, align 8, !tbaa !17
  call void @CrcGenerateTable()
  call void @SzArEx_Init(ptr noundef %8)
  %56 = getelementptr inbounds %struct.CLookToRead, ptr %7, i32 0, i32 0
  %57 = call i32 @SzArEx_Open(ptr noundef %8, ptr noundef %56, ptr noundef %10, ptr noundef %11)
  store i32 %57, ptr %9, align 4, !tbaa !5
  %58 = load i32, ptr %9, align 4, !tbaa !5
  %59 = icmp eq i32 %58, 0
  br i1 %59, label %60, label %248

60:                                               ; preds = %49
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #5
  %61 = load ptr, ptr %5, align 8, !tbaa !9
  %62 = getelementptr inbounds ptr, ptr %61, i64 1
  %63 = load ptr, ptr %62, align 8, !tbaa !9
  store ptr %63, ptr %13, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #5
  store i32 0, ptr %14, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #5
  store i32 0, ptr %15, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #5
  store i32 0, ptr %16, align 4, !tbaa !5
  %64 = load ptr, ptr %13, align 8, !tbaa !9
  %65 = call i32 @strcmp(ptr noundef %64, ptr noundef @.str.5) #6
  %66 = icmp eq i32 %65, 0
  br i1 %66, label %67, label %68

67:                                               ; preds = %60
  store i32 1, ptr %14, align 4, !tbaa !5
  br label %80

68:                                               ; preds = %60
  %69 = load ptr, ptr %13, align 8, !tbaa !9
  %70 = call i32 @strcmp(ptr noundef %69, ptr noundef @.str.6) #6
  %71 = icmp eq i32 %70, 0
  br i1 %71, label %72, label %73

72:                                               ; preds = %68
  store i32 1, ptr %15, align 4, !tbaa !5
  br label %79

73:                                               ; preds = %68
  %74 = load ptr, ptr %13, align 8, !tbaa !9
  %75 = call i32 @strcmp(ptr noundef %74, ptr noundef @.str.7) #6
  %76 = icmp eq i32 %75, 0
  br i1 %76, label %77, label %78

77:                                               ; preds = %73
  store i32 1, ptr %16, align 4, !tbaa !5
  br label %78

78:                                               ; preds = %77, %73
  br label %79

79:                                               ; preds = %78, %72
  br label %80

80:                                               ; preds = %79, %67
  %81 = load i32, ptr %14, align 4, !tbaa !5
  %82 = icmp ne i32 %81, 0
  br i1 %82, label %83, label %123

83:                                               ; preds = %80
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #5
  store i32 0, ptr %17, align 4, !tbaa !5
  br label %84

84:                                               ; preds = %119, %83
  %85 = load i32, ptr %17, align 4, !tbaa !5
  %86 = getelementptr inbounds %struct.CSzArEx, ptr %8, i32 0, i32 0
  %87 = getelementptr inbounds %struct.CSzAr, ptr %86, i32 0, i32 7
  %88 = load i32, ptr %87, align 8, !tbaa !18
  %89 = icmp ult i32 %85, %88
  br i1 %89, label %90, label %122

90:                                               ; preds = %84
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #5
  %91 = getelementptr inbounds %struct.CSzArEx, ptr %8, i32 0, i32 0
  %92 = getelementptr inbounds %struct.CSzAr, ptr %91, i32 0, i32 4
  %93 = load ptr, ptr %92, align 8, !tbaa !22
  %94 = load i32, ptr %17, align 4, !tbaa !5
  %95 = zext i32 %94 to i64
  %96 = getelementptr inbounds %struct.CSzFileItem, ptr %93, i64 %95
  store ptr %96, ptr %18, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 32, ptr %19) #5
  call void @llvm.lifetime.start.p0(i64 32, ptr %20) #5
  %97 = load ptr, ptr %18, align 8, !tbaa !9
  %98 = getelementptr inbounds %struct.CSzFileItem, ptr %97, i32 0, i32 1
  %99 = load i64, ptr %98, align 8, !tbaa !23
  %100 = getelementptr inbounds [32 x i8], ptr %19, i64 0, i64 0
  call void @ConvertNumberToString(i64 noundef %99, ptr noundef %100)
  %101 = load ptr, ptr %18, align 8, !tbaa !9
  %102 = getelementptr inbounds %struct.CSzFileItem, ptr %101, i32 0, i32 8
  %103 = load i8, ptr %102, align 8, !tbaa !26
  %104 = icmp ne i8 %103, 0
  br i1 %104, label %105, label %109

105:                                              ; preds = %90
  %106 = load ptr, ptr %18, align 8, !tbaa !9
  %107 = getelementptr inbounds %struct.CSzFileItem, ptr %106, i32 0, i32 0
  %108 = getelementptr inbounds [32 x i8], ptr %20, i64 0, i64 0
  call void @ConvertFileTimeToString(ptr noundef %107, ptr noundef %108)
  br label %112

109:                                              ; preds = %90
  %110 = getelementptr inbounds [32 x i8], ptr %20, i64 0, i64 0
  %111 = call ptr @strcpy(ptr noundef %110, ptr noundef @.str.8) #5
  br label %112

112:                                              ; preds = %109, %105
  %113 = getelementptr inbounds [32 x i8], ptr %20, i64 0, i64 0
  %114 = getelementptr inbounds [32 x i8], ptr %19, i64 0, i64 0
  %115 = load ptr, ptr %18, align 8, !tbaa !9
  %116 = getelementptr inbounds %struct.CSzFileItem, ptr %115, i32 0, i32 2
  %117 = load ptr, ptr %116, align 8, !tbaa !27
  %118 = call i32 (ptr, ...) @printf(ptr noundef @.str.9, ptr noundef %113, ptr noundef %114, ptr noundef %117)
  call void @llvm.lifetime.end.p0(i64 32, ptr %20) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %19) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #5
  br label %119

119:                                              ; preds = %112
  %120 = load i32, ptr %17, align 4, !tbaa !5
  %121 = add i32 %120, 1
  store i32 %121, ptr %17, align 4, !tbaa !5
  br label %84, !llvm.loop !28

122:                                              ; preds = %84
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #5
  br label %247

123:                                              ; preds = %80
  %124 = load i32, ptr %15, align 4, !tbaa !5
  %125 = icmp ne i32 %124, 0
  br i1 %125, label %129, label %126

126:                                              ; preds = %123
  %127 = load i32, ptr %16, align 4, !tbaa !5
  %128 = icmp ne i32 %127, 0
  br i1 %128, label %129, label %245

129:                                              ; preds = %126, %123
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #5
  store i32 -1, ptr %22, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #5
  store ptr null, ptr %23, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #5
  store i64 0, ptr %24, align 8, !tbaa !30
  %130 = call i32 (ptr, ...) @printf(ptr noundef @.str.10)
  store i32 0, ptr %21, align 4, !tbaa !5
  br label %131

131:                                              ; preds = %238, %129
  %132 = load i32, ptr %21, align 4, !tbaa !5
  %133 = getelementptr inbounds %struct.CSzArEx, ptr %8, i32 0, i32 0
  %134 = getelementptr inbounds %struct.CSzAr, ptr %133, i32 0, i32 7
  %135 = load i32, ptr %134, align 8, !tbaa !18
  %136 = icmp ult i32 %132, %135
  br i1 %136, label %137, label %241

137:                                              ; preds = %131
  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
  %138 = getelementptr inbounds %struct.CSzArEx, ptr %8, i32 0, i32 0
  %139 = getelementptr inbounds %struct.CSzAr, ptr %138, i32 0, i32 4
  %140 = load ptr, ptr %139, align 8, !tbaa !22
  %141 = load i32, ptr %21, align 4, !tbaa !5
  %142 = zext i32 %141 to i64
  %143 = getelementptr inbounds %struct.CSzFileItem, ptr %140, i64 %142
  store ptr %143, ptr %27, align 8, !tbaa !9
  %144 = load ptr, ptr %27, align 8, !tbaa !9
  %145 = getelementptr inbounds %struct.CSzFileItem, ptr %144, i32 0, i32 5
  %146 = load i8, ptr %145, align 1, !tbaa !31
  %147 = icmp ne i8 %146, 0
  br i1 %147, label %148, label %150

148:                                              ; preds = %137
  %149 = call i32 (ptr, ...) @printf(ptr noundef @.str.11)
  br label %156

150:                                              ; preds = %137
  %151 = load i32, ptr %15, align 4, !tbaa !5
  %152 = icmp ne i32 %151, 0
  %153 = zext i1 %152 to i64
  %154 = select i1 %152, ptr @.str.12, ptr @.str.13
  %155 = call i32 (ptr, ...) @printf(ptr noundef %154)
  br label %156

156:                                              ; preds = %150, %148
  %157 = load ptr, ptr %27, align 8, !tbaa !9
  %158 = getelementptr inbounds %struct.CSzFileItem, ptr %157, i32 0, i32 2
  %159 = load ptr, ptr %158, align 8, !tbaa !27
  %160 = call i32 (ptr, ...) @printf(ptr noundef @.str.14, ptr noundef %159)
  %161 = load ptr, ptr %27, align 8, !tbaa !9
  %162 = getelementptr inbounds %struct.CSzFileItem, ptr %161, i32 0, i32 5
  %163 = load i8, ptr %162, align 1, !tbaa !31
  %164 = icmp ne i8 %163, 0
  br i1 %164, label %165, label %167

165:                                              ; preds = %156
  %166 = call i32 (ptr, ...) @printf(ptr noundef @.str.10)
  store i32 7, ptr %12, align 4
  br label %235

167:                                              ; preds = %156
  %168 = getelementptr inbounds %struct.CLookToRead, ptr %7, i32 0, i32 0
  %169 = load i32, ptr %21, align 4, !tbaa !5
  %170 = call i32 @SzAr_Extract(ptr noundef %8, ptr noundef %168, i32 noundef %169, ptr noundef %22, ptr noundef %23, ptr noundef %24, ptr noundef %25, ptr noundef %26, ptr noundef %10, ptr noundef %11)
  store i32 %170, ptr %9, align 4, !tbaa !5
  %171 = load i32, ptr %9, align 4, !tbaa !5
  %172 = icmp ne i32 %171, 0
  br i1 %172, label %173, label %174

173:                                              ; preds = %167
  store i32 5, ptr %12, align 4
  br label %235

174:                                              ; preds = %167
  %175 = load i32, ptr %15, align 4, !tbaa !5
  %176 = icmp ne i32 %175, 0
  br i1 %176, label %233, label %177

177:                                              ; preds = %174
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %30) #5
  %178 = load ptr, ptr %27, align 8, !tbaa !9
  %179 = getelementptr inbounds %struct.CSzFileItem, ptr %178, i32 0, i32 2
  %180 = load ptr, ptr %179, align 8, !tbaa !27
  store ptr %180, ptr %30, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %31) #5
  %181 = load ptr, ptr %27, align 8, !tbaa !9
  %182 = getelementptr inbounds %struct.CSzFileItem, ptr %181, i32 0, i32 2
  %183 = load ptr, ptr %182, align 8, !tbaa !27
  %184 = call i64 @strlen(ptr noundef %183) #6
  store i64 %184, ptr %31, align 8, !tbaa !30
  br label %185

185:                                              ; preds = %205, %177
  %186 = load i64, ptr %31, align 8, !tbaa !30
  %187 = icmp ugt i64 %186, 0
  br i1 %187, label %188, label %208

188:                                              ; preds = %185
  %189 = load ptr, ptr %27, align 8, !tbaa !9
  %190 = getelementptr inbounds %struct.CSzFileItem, ptr %189, i32 0, i32 2
  %191 = load ptr, ptr %190, align 8, !tbaa !27
  %192 = load i64, ptr %31, align 8, !tbaa !30
  %193 = sub i64 %192, 1
  %194 = getelementptr inbounds i8, ptr %191, i64 %193
  %195 = load i8, ptr %194, align 1, !tbaa !32
  %196 = sext i8 %195 to i32
  %197 = icmp eq i32 %196, 47
  br i1 %197, label %198, label %204

198:                                              ; preds = %188
  %199 = load ptr, ptr %27, align 8, !tbaa !9
  %200 = getelementptr inbounds %struct.CSzFileItem, ptr %199, i32 0, i32 2
  %201 = load ptr, ptr %200, align 8, !tbaa !27
  %202 = load i64, ptr %31, align 8, !tbaa !30
  %203 = getelementptr inbounds i8, ptr %201, i64 %202
  store ptr %203, ptr %30, align 8, !tbaa !9
  br label %208

204:                                              ; preds = %188
  br label %205

205:                                              ; preds = %204
  %206 = load i64, ptr %31, align 8, !tbaa !30
  %207 = add i64 %206, -1
  store i64 %207, ptr %31, align 8, !tbaa !30
  br label %185, !llvm.loop !33

208:                                              ; preds = %198, %185
  %209 = load ptr, ptr %30, align 8, !tbaa !9
  %210 = call i32 @OutFile_Open(ptr noundef %28, ptr noundef %209)
  %211 = icmp ne i32 %210, 0
  br i1 %211, label %212, label %213

212:                                              ; preds = %208
  call void @PrintError(ptr noundef @.str.15)
  store i32 11, ptr %9, align 4, !tbaa !5
  store i32 5, ptr %12, align 4
  br label %230

213:                                              ; preds = %208
  %214 = load i64, ptr %26, align 8, !tbaa !30
  store i64 %214, ptr %29, align 8, !tbaa !30
  %215 = load ptr, ptr %23, align 8, !tbaa !9
  %216 = load i64, ptr %25, align 8, !tbaa !30
  %217 = getelementptr inbounds i8, ptr %215, i64 %216
  %218 = call i32 @File_Write(ptr noundef %28, ptr noundef %217, ptr noundef %29)
  %219 = icmp ne i32 %218, 0
  br i1 %219, label %224, label %220

220:                                              ; preds = %213
  %221 = load i64, ptr %29, align 8, !tbaa !30
  %222 = load i64, ptr %26, align 8, !tbaa !30
  %223 = icmp ne i64 %221, %222
  br i1 %223, label %224, label %225

224:                                              ; preds = %220, %213
  call void @PrintError(ptr noundef @.str.16)
  store i32 11, ptr %9, align 4, !tbaa !5
  store i32 5, ptr %12, align 4
  br label %230

225:                                              ; preds = %220
  %226 = call i32 @File_Close(ptr noundef %28)
  %227 = icmp ne i32 %226, 0
  br i1 %227, label %228, label %229

228:                                              ; preds = %225
  call void @PrintError(ptr noundef @.str.17)
  store i32 11, ptr %9, align 4, !tbaa !5
  store i32 5, ptr %12, align 4
  br label %230

229:                                              ; preds = %225
  store i32 0, ptr %12, align 4
  br label %230

230:                                              ; preds = %229, %228, %224, %212
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #5
  %231 = load i32, ptr %12, align 4
  switch i32 %231, label %235 [
    i32 0, label %232
  ]

232:                                              ; preds = %230
  br label %233

233:                                              ; preds = %232, %174
  %234 = call i32 (ptr, ...) @printf(ptr noundef @.str.10)
  store i32 0, ptr %12, align 4
  br label %235

235:                                              ; preds = %233, %230, %173, %165
  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
  %236 = load i32, ptr %12, align 4
  switch i32 %236, label %275 [
    i32 0, label %237
    i32 7, label %238
    i32 5, label %241
  ]

237:                                              ; preds = %235
  br label %238

238:                                              ; preds = %237, %235
  %239 = load i32, ptr %21, align 4, !tbaa !5
  %240 = add i32 %239, 1
  store i32 %240, ptr %21, align 4, !tbaa !5
  br label %131, !llvm.loop !34

241:                                              ; preds = %235, %131
  %242 = getelementptr inbounds %struct.ISzAlloc, ptr %10, i32 0, i32 1
  %243 = load ptr, ptr %242, align 8, !tbaa !17
  %244 = load ptr, ptr %23, align 8, !tbaa !9
  call void %243(ptr noundef %10, ptr noundef %244)
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #5
  call void @llvm.lifetime.end.p0(i64 8, 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
  br label %246

245:                                              ; preds = %126
  call void @PrintError(ptr noundef @.str.3)
  store i32 11, ptr %9, align 4, !tbaa !5
  br label %246

246:                                              ; preds = %245, %241
  br label %247

247:                                              ; preds = %246, %122
  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 8, ptr %13) #5
  br label %248

248:                                              ; preds = %247, %49
  call void @SzArEx_Free(ptr noundef %8, ptr noundef %10)
  %249 = getelementptr inbounds %struct.CFileInStream, ptr %6, i32 0, i32 1
  %250 = call i32 @File_Close(ptr noundef %249)
  %251 = load i32, ptr %9, align 4, !tbaa !5
  %252 = icmp eq i32 %251, 0
  br i1 %252, label %253, label %255

253:                                              ; preds = %248
  %254 = call i32 (ptr, ...) @printf(ptr noundef @.str.18)
  store i32 0, ptr %3, align 4
  store i32 1, ptr %12, align 4
  br label %273

255:                                              ; preds = %248
  %256 = load i32, ptr %9, align 4, !tbaa !5
  %257 = icmp eq i32 %256, 4
  br i1 %257, label %258, label %259

258:                                              ; preds = %255
  call void @PrintError(ptr noundef @.str.19)
  br label %272

259:                                              ; preds = %255
  %260 = load i32, ptr %9, align 4, !tbaa !5
  %261 = icmp eq i32 %260, 2
  br i1 %261, label %262, label %263

262:                                              ; preds = %259
  call void @PrintError(ptr noundef @.str.20)
  br label %271

263:                                              ; preds = %259
  %264 = load i32, ptr %9, align 4, !tbaa !5
  %265 = icmp eq i32 %264, 3
  br i1 %265, label %266, label %267

266:                                              ; preds = %263
  call void @PrintError(ptr noundef @.str.21)
  br label %270

267:                                              ; preds = %263
  %268 = load i32, ptr %9, align 4, !tbaa !5
  %269 = call i32 (ptr, ...) @printf(ptr noundef @.str.22, i32 noundef %268)
  br label %270

270:                                              ; preds = %267, %266
  br label %271

271:                                              ; preds = %270, %262
  br label %272

272:                                              ; preds = %271, %258
  store i32 1, ptr %3, align 4
  store i32 1, ptr %12, align 4
  br label %273

273:                                              ; preds = %272, %253, %48, %40, %35
  call void @llvm.lifetime.end.p0(i64 16, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 104, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 16440, ptr %7) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %6) #5
  %274 = load i32, ptr %3, align 4
  ret i32 %274

275:                                              ; preds = %235
  unreachable
}

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

declare i32 @InFile_Open(ptr noundef, ptr noundef) #1

declare void @FileInStream_CreateVTable(ptr noundef) #1

declare void @LookToRead_CreateVTable(ptr noundef, i32 noundef) #1

declare void @LookToRead_Init(ptr noundef) #1

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

declare void @SzFree(ptr noundef, ptr noundef) #1

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

declare void @SzFreeTemp(ptr noundef, ptr noundef) #1

declare void @CrcGenerateTable() #1

declare void @SzArEx_Init(ptr noundef) #1

declare i32 @SzArEx_Open(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1

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

; Function Attrs: nounwind uwtable
declare hidden void @ConvertNumberToString(i64 noundef, ptr noundef) #0

; Function Attrs: nounwind uwtable
declare hidden void @ConvertFileTimeToString(ptr noundef, ptr noundef) #0

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

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

declare i32 @SzAr_Extract(ptr noundef, ptr noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1

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

declare i32 @OutFile_Open(ptr noundef, ptr noundef) #1

declare i32 @File_Write(ptr noundef, ptr noundef, ptr noundef) #1

declare i32 @File_Close(ptr noundef) #1

declare void @SzArEx_Free(ptr noundef, ptr noundef) #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 = { "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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 "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 = !{!"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 32}
!12 = !{!"", !13, i64 0, !10, i64 32, !14, i64 40, !14, i64 48, !7, i64 56}
!13 = !{!"", !10, i64 0, !10, i64 8, !10, i64 16, !10, i64 24}
!14 = !{!"long", !7, i64 0}
!15 = !{!16, !10, i64 0}
!16 = !{!"", !10, i64 0, !10, i64 8}
!17 = !{!16, !10, i64 8}
!18 = !{!19, !6, i64 48}
!19 = !{!"", !20, i64 0, !21, i64 56, !21, i64 64, !10, i64 72, !10, i64 80, !10, i64 88, !10, i64 96}
!20 = !{!"", !10, i64 0, !10, i64 8, !10, i64 16, !10, i64 24, !10, i64 32, !6, i64 40, !6, i64 44, !6, i64 48}
!21 = !{!"long long", !7, i64 0}
!22 = !{!19, !10, i64 32}
!23 = !{!24, !21, i64 8}
!24 = !{!"", !25, i64 0, !21, i64 8, !10, i64 16, !6, i64 24, !7, i64 28, !7, i64 29, !7, i64 30, !7, i64 31, !7, i64 32}
!25 = !{!"", !6, i64 0, !6, i64 4}
!26 = !{!24, !7, i64 32}
!27 = !{!24, !10, i64 16}
!28 = distinct !{!28, !29}
!29 = !{!"llvm.loop.mustprogress"}
!30 = !{!14, !14, i64 0}
!31 = !{!24, !7, i64 29}
!32 = !{!7, !7, i64 0}
!33 = distinct !{!33, !29}
!34 = distinct !{!34, !29}


; 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.CFileInStream = type { %struct.ISeekInStream, %struct.CSzFile }
%struct.ISeekInStream = type { ptr, ptr }
%struct.CSzFile = type { ptr }
%struct.CLookToRead = type { %struct.ILookInStream, ptr, i64, i64, [16384 x i8] }
%struct.ILookInStream = type { ptr, ptr, ptr, ptr }
%struct.CSzArEx = type { %struct.CSzAr, i64, i64, ptr, ptr, ptr, ptr }
%struct.CSzAr = type { ptr, ptr, ptr, ptr, ptr, i32, i32, i32 }
%struct.ISzAlloc = type { ptr, ptr }
%struct.CSzFileItem = type { %struct.CNtfsFileTime, i64, ptr, i32, i8, i8, i8, i8, i8 }
%struct.CNtfsFileTime = type { i32, i32 }

@.str.1 = external hidden unnamed_addr constant [68 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [145 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [37 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [12 x i8], align 1

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

; 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 @main(i32 noundef %0, ptr nocapture noundef readonly %1) local_unnamed_addr #0 {
  %3 = alloca %struct.CFileInStream, align 8
  %4 = alloca %struct.CLookToRead, align 8
  %5 = alloca %struct.CSzArEx, align 8
  %6 = alloca %struct.ISzAlloc, align 8
  %7 = alloca %struct.ISzAlloc, align 8
  %8 = alloca [32 x i8], align 16
  %9 = alloca [32 x i8], align 16
  %10 = alloca i32, align 4
  %11 = alloca ptr, align 8
  %12 = alloca i64, align 8
  %13 = alloca i64, align 8
  %14 = alloca i64, align 8
  %15 = alloca %struct.CSzFile, align 8
  %16 = alloca i64, align 8
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %3) #6
  call void @llvm.lifetime.start.p0(i64 16440, ptr nonnull %4) #6
  call void @llvm.lifetime.start.p0(i64 104, ptr nonnull %5) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %6) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %7) #6
  %17 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1)
  %18 = icmp eq i32 %0, 1
  br i1 %18, label %19, label %21

19:                                               ; preds = %2
  %20 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2)
  br label %140

21:                                               ; preds = %2
  %22 = icmp slt i32 %0, 3
  br i1 %22, label %23, label %24

23:                                               ; preds = %21
  tail call void @PrintError(ptr noundef nonnull @.str.3)
  br label %140

24:                                               ; preds = %21
  %25 = getelementptr inbounds i8, ptr %3, i64 16
  %26 = getelementptr inbounds i8, ptr %1, i64 16
  %27 = load ptr, ptr %26, align 8, !tbaa !5
  %28 = call i32 @InFile_Open(ptr noundef nonnull %25, ptr noundef %27) #6
  %.not = icmp eq i32 %28, 0
  br i1 %.not, label %30, label %29

29:                                               ; preds = %24
  call void @PrintError(ptr noundef nonnull @.str.4)
  br label %140

30:                                               ; preds = %24
  call void @FileInStream_CreateVTable(ptr noundef nonnull %3) #6
  call void @LookToRead_CreateVTable(ptr noundef nonnull %4, i32 noundef 0) #6
  %31 = getelementptr inbounds i8, ptr %4, i64 32
  store ptr %3, ptr %31, align 8, !tbaa !9
  call void @LookToRead_Init(ptr noundef nonnull %4) #6
  store ptr @SzAlloc, ptr %6, align 8, !tbaa !13
  %32 = getelementptr inbounds i8, ptr %6, i64 8
  store ptr @SzFree, ptr %32, align 8, !tbaa !15
  store ptr @SzAllocTemp, ptr %7, align 8, !tbaa !13
  %33 = getelementptr inbounds i8, ptr %7, i64 8
  store ptr @SzFreeTemp, ptr %33, align 8, !tbaa !15
  call void @CrcGenerateTable() #6
  call void @SzArEx_Init(ptr noundef nonnull %5) #6
  %34 = call i32 @SzArEx_Open(ptr noundef nonnull %5, ptr noundef nonnull %4, ptr noundef nonnull %6, ptr noundef nonnull %7) #6
  %35 = icmp eq i32 %34, 0
  br i1 %35, label %36, label %131

36:                                               ; preds = %30
  %37 = getelementptr inbounds i8, ptr %1, i64 8
  %38 = load ptr, ptr %37, align 8, !tbaa !5
  %39 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %38, ptr noundef nonnull dereferenceable(1) @.str.5) #7
  %.not61 = icmp eq i32 %39, 0
  br i1 %.not61, label %.preheader, label %43

.preheader:                                       ; preds = %36
  %40 = getelementptr inbounds i8, ptr %5, i64 48
  %41 = load i32, ptr %40, align 8, !tbaa !16
  %.not105 = icmp eq i32 %41, 0
  br i1 %.not105, label %.thread91, label %.lr.ph103

.lr.ph103:                                        ; preds = %.preheader
  %42 = getelementptr inbounds i8, ptr %5, i64 32
  br label %47

43:                                               ; preds = %36
  %44 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %38, ptr noundef nonnull dereferenceable(1) @.str.6) #7
  %45 = icmp eq i32 %44, 0
  br i1 %45, label %.thread72, label %64

.thread91:                                        ; preds = %57, %.preheader
  call void @SzArEx_Free(ptr noundef nonnull %5, ptr noundef nonnull %6) #6
  %46 = call i32 @File_Close(ptr noundef nonnull %25) #6
  br label %133

47:                                               ; preds = %.lr.ph103, %57
  %indvars.iv116 = phi i64 [ 0, %.lr.ph103 ], [ %indvars.iv.next117, %57 ]
  %48 = load ptr, ptr %42, align 8, !tbaa !21
  %49 = getelementptr inbounds %struct.CSzFileItem, ptr %48, i64 %indvars.iv116
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %8) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %9) #6
  %50 = getelementptr inbounds i8, ptr %49, i64 8
  %51 = load i64, ptr %50, align 8, !tbaa !22
  call void @ConvertNumberToString(i64 noundef %51, ptr noundef nonnull %8)
  %52 = getelementptr inbounds i8, ptr %49, i64 32
  %53 = load i8, ptr %52, align 8, !tbaa !25
  %.not70 = icmp eq i8 %53, 0
  br i1 %.not70, label %55, label %54

54:                                               ; preds = %47
  call void @ConvertFileTimeToString(ptr noundef nonnull %49, ptr noundef nonnull %9)
  br label %57

55:                                               ; preds = %47
  %56 = call ptr @strcpy(ptr noundef nonnull dereferenceable(1) %9, ptr noundef nonnull dereferenceable(1) @.str.8) #6
  br label %57

57:                                               ; preds = %55, %54
  %58 = getelementptr inbounds i8, ptr %49, i64 16
  %59 = load ptr, ptr %58, align 8, !tbaa !26
  %60 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.9, ptr noundef nonnull %9, ptr noundef nonnull %8, ptr noundef %59)
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %9) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %8) #6
  %indvars.iv.next117 = add nuw nsw i64 %indvars.iv116, 1
  %61 = load i32, ptr %40, align 8, !tbaa !16
  %62 = zext i32 %61 to i64
  %63 = icmp ult i64 %indvars.iv.next117, %62
  br i1 %63, label %47, label %.thread91, !llvm.loop !27

64:                                               ; preds = %43
  %65 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %38, ptr noundef nonnull dereferenceable(1) @.str.7) #7
  %66 = icmp eq i32 %65, 0
  br i1 %66, label %.thread72, label %.thread88

.thread72:                                        ; preds = %43, %64
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %10) #6
  store i32 -1, ptr %10, align 4, !tbaa !29
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #6
  store ptr null, ptr %11, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #6
  store i64 0, ptr %12, align 8, !tbaa !30
  %67 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.10)
  %68 = getelementptr inbounds i8, ptr %5, i64 48
  %69 = load i32, ptr %68, align 8, !tbaa !16
  %.not104 = icmp eq i32 %69, 0
  br i1 %.not104, label %.loopexit, label %.lr.ph101

.lr.ph101:                                        ; preds = %.thread72
  %70 = getelementptr inbounds i8, ptr %5, i64 32
  %71 = select i1 %45, ptr @.str.12, ptr @.str.13
  br i1 %45, label %.lr.ph101.split.us, label %.lr.ph101.split

.lr.ph101.split.us:                               ; preds = %.lr.ph101, %84
  %indvars.iv113 = phi i64 [ %indvars.iv.next114, %84 ], [ 0, %.lr.ph101 ]
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %13) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %14) #6
  %72 = load ptr, ptr %70, align 8, !tbaa !21
  %73 = getelementptr inbounds %struct.CSzFileItem, ptr %72, i64 %indvars.iv113
  %74 = getelementptr inbounds i8, ptr %73, i64 29
  %75 = load i8, ptr %74, align 1, !tbaa !31
  %.not62.us = icmp eq i8 %75, 0
  %..str.11 = select i1 %.not62.us, ptr %71, ptr @.str.11
  %76 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) %..str.11)
  %77 = getelementptr inbounds i8, ptr %73, i64 16
  %78 = load ptr, ptr %77, align 8, !tbaa !26
  %79 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.14, ptr noundef %78)
  %80 = load i8, ptr %74, align 1, !tbaa !31
  %.not63.us = icmp eq i8 %80, 0
  br i1 %.not63.us, label %81, label %84

81:                                               ; preds = %.lr.ph101.split.us
  %82 = trunc nuw i64 %indvars.iv113 to i32
  %83 = call i32 @SzAr_Extract(ptr noundef nonnull %5, ptr noundef nonnull %4, i32 noundef %82, ptr noundef nonnull %10, ptr noundef nonnull %11, ptr noundef nonnull %12, ptr noundef nonnull %13, ptr noundef nonnull %14, ptr noundef nonnull %6, ptr noundef nonnull %7) #6
  %.not64.us = icmp eq i32 %83, 0
  br i1 %.not64.us, label %84, label %.thread83

84:                                               ; preds = %81, %.lr.ph101.split.us
  %85 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.10)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #6
  %indvars.iv.next114 = add nuw nsw i64 %indvars.iv113, 1
  %86 = load i32, ptr %68, align 8, !tbaa !16
  %87 = zext i32 %86 to i64
  %88 = icmp ult i64 %indvars.iv.next114, %87
  br i1 %88, label %.lr.ph101.split.us, label %.loopexit, !llvm.loop !32

.lr.ph101.split:                                  ; preds = %.lr.ph101, %123
  %indvars.iv = phi i64 [ %indvars.iv.next, %123 ], [ 0, %.lr.ph101 ]
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %13) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %14) #6
  %89 = load ptr, ptr %70, align 8, !tbaa !21
  %90 = getelementptr inbounds %struct.CSzFileItem, ptr %89, i64 %indvars.iv
  %91 = getelementptr inbounds i8, ptr %90, i64 29
  %92 = load i8, ptr %91, align 1, !tbaa !31
  %.not62 = icmp eq i8 %92, 0
  %..str.11126 = select i1 %.not62, ptr %71, ptr @.str.11
  %93 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) %..str.11126)
  %94 = getelementptr inbounds i8, ptr %90, i64 16
  %95 = load ptr, ptr %94, align 8, !tbaa !26
  %96 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.14, ptr noundef %95)
  %97 = load i8, ptr %91, align 1, !tbaa !31
  %.not63 = icmp eq i8 %97, 0
  br i1 %.not63, label %98, label %123

98:                                               ; preds = %.lr.ph101.split
  %99 = trunc nuw i64 %indvars.iv to i32
  %100 = call i32 @SzAr_Extract(ptr noundef nonnull %5, ptr noundef nonnull %4, i32 noundef %99, ptr noundef nonnull %10, ptr noundef nonnull %11, ptr noundef nonnull %12, ptr noundef nonnull %13, ptr noundef nonnull %14, ptr noundef nonnull %6, ptr noundef nonnull %7) #6
  %.not64 = icmp eq i32 %100, 0
  br i1 %.not64, label %101, label %.thread83

101:                                              ; preds = %98
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %15) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %16) #6
  %102 = load ptr, ptr %94, align 8, !tbaa !26
  %103 = call i64 @strlen(ptr noundef nonnull dereferenceable(1) %102) #7
  %.not6596 = icmp eq i64 %103, 0
  br i1 %.not6596, label %._crit_edge, label %.lr.ph

104:                                              ; preds = %.lr.ph
  %105 = add i64 %.097, -1
  %.not65 = icmp eq i64 %105, 0
  br i1 %.not65, label %._crit_edge, label %.lr.ph, !llvm.loop !33

.lr.ph:                                           ; preds = %101, %104
  %.097 = phi i64 [ %105, %104 ], [ %103, %101 ]
  %106 = getelementptr i8, ptr %102, i64 %.097
  %107 = getelementptr i8, ptr %106, i64 -1
  %108 = load i8, ptr %107, align 1, !tbaa !34
  %109 = icmp eq i8 %108, 47
  br i1 %109, label %._crit_edge, label %104

._crit_edge:                                      ; preds = %104, %.lr.ph, %101
  %.045 = phi ptr [ %102, %101 ], [ %106, %.lr.ph ], [ %102, %104 ]
  %110 = call i32 @OutFile_Open(ptr noundef nonnull %15, ptr noundef %.045) #6
  %.not66 = icmp eq i32 %110, 0
  br i1 %.not66, label %111, label %.thread78

111:                                              ; preds = %._crit_edge
  %112 = load i64, ptr %14, align 8, !tbaa !30
  store i64 %112, ptr %16, align 8, !tbaa !30
  %113 = load ptr, ptr %11, align 8, !tbaa !5
  %114 = load i64, ptr %13, align 8, !tbaa !30
  %115 = getelementptr inbounds i8, ptr %113, i64 %114
  %116 = call i32 @File_Write(ptr noundef nonnull %15, ptr noundef %115, ptr noundef nonnull %16) #6
  %.not67 = icmp eq i32 %116, 0
  br i1 %.not67, label %117, label %.thread78

117:                                              ; preds = %111
  %118 = load i64, ptr %16, align 8, !tbaa !30
  %119 = load i64, ptr %14, align 8, !tbaa !30
  %.not68 = icmp eq i64 %118, %119
  br i1 %.not68, label %120, label %.thread78

120:                                              ; preds = %117
  %121 = call i32 @File_Close(ptr noundef nonnull %15) #6
  %.not69 = icmp eq i32 %121, 0
  br i1 %.not69, label %122, label %.thread78

.thread78:                                        ; preds = %120, %111, %117, %._crit_edge
  %.str.15.sink = phi ptr [ @.str.15, %._crit_edge ], [ @.str.16, %117 ], [ @.str.16, %111 ], [ @.str.17, %120 ]
  call void @PrintError(ptr noundef nonnull %.str.15.sink)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %16) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %15) #6
  br label %.thread83

122:                                              ; preds = %120
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %16) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %15) #6
  br label %123

.thread83:                                        ; preds = %98, %81, %.thread78
  %.3.ph = phi i32 [ 11, %.thread78 ], [ %83, %81 ], [ %100, %98 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #6
  br label %.loopexit

123:                                              ; preds = %.lr.ph101.split, %122
  %124 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.10)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #6
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %125 = load i32, ptr %68, align 8, !tbaa !16
  %126 = zext i32 %125 to i64
  %127 = icmp ult i64 %indvars.iv.next, %126
  br i1 %127, label %.lr.ph101.split, label %.loopexit, !llvm.loop !32

.loopexit:                                        ; preds = %123, %84, %.thread72, %.thread83
  %.4 = phi i32 [ %.3.ph, %.thread83 ], [ 0, %.thread72 ], [ 0, %84 ], [ 0, %123 ]
  %128 = load ptr, ptr %32, align 8, !tbaa !15
  %129 = load ptr, ptr %11, align 8, !tbaa !5
  call void %128(ptr noundef nonnull %6, ptr noundef %129) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %10) #6
  br label %131

.thread88:                                        ; preds = %64
  call void @PrintError(ptr noundef nonnull @.str.3)
  call void @SzArEx_Free(ptr noundef nonnull %5, ptr noundef nonnull %6) #6
  %130 = call i32 @File_Close(ptr noundef nonnull %25) #6
  br label %138

131:                                              ; preds = %.loopexit, %30
  %.6 = phi i32 [ %34, %30 ], [ %.4, %.loopexit ]
  call void @SzArEx_Free(ptr noundef nonnull %5, ptr noundef nonnull %6) #6
  %132 = call i32 @File_Close(ptr noundef nonnull %25) #6
  switch i32 %.6, label %138 [
    i32 0, label %133
    i32 4, label %135
    i32 2, label %136
    i32 3, label %137
  ]

133:                                              ; preds = %.thread91, %131
  %134 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.18)
  br label %140

135:                                              ; preds = %131
  call void @PrintError(ptr noundef nonnull @.str.19)
  br label %140

136:                                              ; preds = %131
  call void @PrintError(ptr noundef nonnull @.str.20)
  br label %140

137:                                              ; preds = %131
  call void @PrintError(ptr noundef nonnull @.str.21)
  br label %140

138:                                              ; preds = %.thread88, %131
  %.690 = phi i32 [ 11, %.thread88 ], [ %.6, %131 ]
  %139 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.22, i32 noundef %.690)
  br label %140

140:                                              ; preds = %135, %137, %138, %136, %133, %29, %23, %19
  %.046 = phi i32 [ 0, %19 ], [ 1, %23 ], [ 1, %29 ], [ 0, %133 ], [ 1, %136 ], [ 1, %138 ], [ 1, %137 ], [ 1, %135 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #6
  call void @llvm.lifetime.end.p0(i64 104, ptr nonnull %5) #6
  call void @llvm.lifetime.end.p0(i64 16440, ptr nonnull %4) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %3) #6
  ret i32 %.046
}

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

declare i32 @InFile_Open(ptr noundef, ptr noundef) local_unnamed_addr #3

declare void @FileInStream_CreateVTable(ptr noundef) local_unnamed_addr #3

declare void @LookToRead_CreateVTable(ptr noundef, i32 noundef) local_unnamed_addr #3

declare void @LookToRead_Init(ptr noundef) local_unnamed_addr #3

declare ptr @SzAlloc(ptr noundef, i64 noundef) #3

declare void @SzFree(ptr noundef, ptr noundef) #3

declare ptr @SzAllocTemp(ptr noundef, i64 noundef) #3

declare void @SzFreeTemp(ptr noundef, ptr noundef) #3

declare void @CrcGenerateTable() local_unnamed_addr #3

declare void @SzArEx_Init(ptr noundef) local_unnamed_addr #3

declare i32 @SzArEx_Open(ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #3

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

; Function Attrs: nounwind uwtable
declare hidden void @ConvertNumberToString(i64 noundef, ptr noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare hidden void @ConvertFileTimeToString(ptr noundef, ptr noundef) local_unnamed_addr #0

; 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) #2

declare i32 @SzAr_Extract(ptr noundef, ptr noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, 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

declare i32 @OutFile_Open(ptr noundef, ptr noundef) local_unnamed_addr #3

declare i32 @File_Write(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #3

declare i32 @File_Close(ptr noundef) local_unnamed_addr #3

declare void @SzArEx_Free(ptr noundef, ptr noundef) local_unnamed_addr #3

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 = { 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 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { "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 = { 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 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !6, i64 32}
!10 = !{!"", !11, i64 0, !6, i64 32, !12, i64 40, !12, i64 48, !7, i64 56}
!11 = !{!"", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!12 = !{!"long", !7, i64 0}
!13 = !{!14, !6, i64 0}
!14 = !{!"", !6, i64 0, !6, i64 8}
!15 = !{!14, !6, i64 8}
!16 = !{!17, !19, i64 48}
!17 = !{!"", !18, i64 0, !20, i64 56, !20, i64 64, !6, i64 72, !6, i64 80, !6, i64 88, !6, i64 96}
!18 = !{!"", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !19, i64 40, !19, i64 44, !19, i64 48}
!19 = !{!"int", !7, i64 0}
!20 = !{!"long long", !7, i64 0}
!21 = !{!17, !6, i64 32}
!22 = !{!23, !20, i64 8}
!23 = !{!"", !24, i64 0, !20, i64 8, !6, i64 16, !19, i64 24, !7, i64 28, !7, i64 29, !7, i64 30, !7, i64 31, !7, i64 32}
!24 = !{!"", !19, i64 0, !19, i64 4}
!25 = !{!23, !7, i64 32}
!26 = !{!23, !6, i64 16}
!27 = distinct !{!27, !28}
!28 = !{!"llvm.loop.mustprogress"}
!29 = !{!19, !19, i64 0}
!30 = !{!12, !12, i64 0}
!31 = !{!23, !7, i64 29}
!32 = distinct !{!32, !28}
!33 = distinct !{!33, !28}
!34 = !{!7, !7, i64 0}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopInstSimplifyPass,LoopRotatePass,LoopSimplifyCFGPass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass