; LLVM IR from jingweizhanghuai/Morn :: tool (imageformat)

; 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.MList = type { i32, ptr }

@morn_version = external dso_local global ptr, align 8
@help_imageformat = external dso_local global ptr, align 8
@.str.4 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [74 x i8], align 1
@__FUNCTION__.main = external hidden unnamed_addr constant [5 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [4 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca ptr, align 8
  %18 = alloca ptr, align 8
  %19 = alloca [256 x i8], align 16
  %20 = alloca i32, align 4
  %21 = alloca i32, align 4
  %22 = alloca i32, align 4
  %23 = alloca ptr, align 8
  %24 = alloca [8 x i8], align 1
  %25 = alloca i32, align 4
  %26 = alloca i32, align 4
  %27 = alloca i32, align 4
  store i32 0, ptr %3, align 4
  store i32 %0, ptr %4, align 4, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !9
  br label %28

28:                                               ; preds = %2
  %29 = load i32, ptr %4, align 4, !tbaa !5
  %30 = load ptr, ptr %5, align 8, !tbaa !9
  %31 = call ptr (i32, ptr, ptr, ptr, ...) @m_StringArgument(i32 noundef %29, ptr noundef %30, ptr noundef @.str.4, ptr noundef null)
  %32 = icmp ne ptr %31, null
  br i1 %32, label %33, label %36

33:                                               ; preds = %28
  %34 = load ptr, ptr @help_imageformat, align 8, !tbaa !9
  %35 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, ptr noundef %34)
  store i32 0, ptr %3, align 4
  br label %344

36:                                               ; preds = %28
  %37 = load i32, ptr %4, align 4, !tbaa !5
  %38 = load ptr, ptr %5, align 8, !tbaa !9
  %39 = call ptr (i32, ptr, ptr, ptr, ...) @m_StringArgument(i32 noundef %37, ptr noundef %38, ptr noundef @.str.6, ptr noundef null)
  %40 = icmp ne ptr %39, null
  br i1 %40, label %41, label %44

41:                                               ; preds = %36
  %42 = load ptr, ptr @morn_version, align 8, !tbaa !9
  %43 = call i32 (ptr, ...) @printf(ptr noundef @.str.7, ptr noundef %42)
  store i32 0, ptr %3, align 4
  br label %344

44:                                               ; preds = %36
  br label %45

45:                                               ; preds = %44
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #5
  %46 = load i32, ptr %4, align 4, !tbaa !5
  %47 = load ptr, ptr %5, align 8, !tbaa !9
  %48 = call ptr (i32, ptr, ptr, ptr, ...) @m_StringArgument(i32 noundef %46, ptr noundef %47, ptr noundef @.str.8, ptr noundef null, ptr noundef null)
  store ptr %48, ptr %6, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #5
  %49 = load i32, ptr %4, align 4, !tbaa !5
  %50 = load ptr, ptr %5, align 8, !tbaa !9
  %51 = call ptr (i32, ptr, ptr, ptr, ...) @m_StringArgument(i32 noundef %49, ptr noundef %50, ptr noundef @.str.9, ptr noundef null, ptr noundef null)
  store ptr %51, ptr %7, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #5
  %52 = load i32, ptr %4, align 4, !tbaa !5
  %53 = load ptr, ptr %5, align 8, !tbaa !9
  %54 = call ptr (i32, ptr, ptr, ptr, ...) @m_StringArgument(i32 noundef %52, ptr noundef %53, ptr noundef @.str.10, ptr noundef null, ptr noundef null)
  store ptr %54, ptr %8, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #5
  %55 = load i32, ptr %4, align 4, !tbaa !5
  %56 = load ptr, ptr %5, align 8, !tbaa !9
  %57 = call ptr (i32, ptr, ptr, ptr, ...) @m_StringArgument(i32 noundef %55, ptr noundef %56, ptr noundef @.str.11, ptr noundef null, ptr noundef null)
  store ptr %57, ptr %9, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #5
  %58 = load i32, ptr %4, align 4, !tbaa !5
  %59 = load ptr, ptr %5, align 8, !tbaa !9
  %60 = call ptr (i32, ptr, ptr, ptr, ...) @m_StringArgument(i32 noundef %58, ptr noundef %59, ptr noundef @.str.12, ptr noundef null, ptr noundef null)
  store ptr %60, ptr %10, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #5
  %61 = load i32, ptr %4, align 4, !tbaa !5
  %62 = load ptr, ptr %5, align 8, !tbaa !9
  %63 = call ptr (i32, ptr, ptr, ptr, ...) @m_StringArgument(i32 noundef %61, ptr noundef %62, ptr noundef @.str.13, ptr noundef null, ptr noundef null)
  store ptr %63, ptr %11, align 8, !tbaa !9
  br label %64

64:                                               ; preds = %45
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #5
  %65 = load ptr, ptr %6, align 8, !tbaa !9
  %66 = icmp ne ptr %65, null
  br i1 %66, label %67, label %70

67:                                               ; preds = %64
  %68 = load ptr, ptr %8, align 8, !tbaa !9
  %69 = icmp ne ptr %68, null
  br label %70

70:                                               ; preds = %67, %64
  %71 = phi i1 [ false, %64 ], [ %69, %67 ]
  %72 = zext i1 %71 to i32
  store i32 %72, ptr %12, align 4, !tbaa !5
  %73 = load i32, ptr %12, align 4, !tbaa !5
  %74 = icmp ne i32 %73, 0
  br i1 %74, label %75, label %77

75:                                               ; preds = %70
  %76 = load i32, ptr %12, align 4, !tbaa !5
  call void (i32, i32, ptr, i32, ptr, ptr, ...) @m_Exception(i32 noundef %76, i32 noundef -1, ptr noundef @.str.14, i32 noundef 24, ptr noundef @__FUNCTION__.main, ptr noundef @.str.15)
  br label %77

77:                                               ; preds = %75, %70
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #5
  br label %78

78:                                               ; preds = %77
  br label %79

79:                                               ; preds = %78
  br label %80

80:                                               ; preds = %79
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #5
  %81 = load ptr, ptr %7, align 8, !tbaa !9
  %82 = icmp ne ptr %81, null
  br i1 %82, label %83, label %86

83:                                               ; preds = %80
  %84 = load ptr, ptr %9, align 8, !tbaa !9
  %85 = icmp ne ptr %84, null
  br label %86

86:                                               ; preds = %83, %80
  %87 = phi i1 [ false, %80 ], [ %85, %83 ]
  %88 = zext i1 %87 to i32
  store i32 %88, ptr %13, align 4, !tbaa !5
  %89 = load i32, ptr %13, align 4, !tbaa !5
  %90 = icmp ne i32 %89, 0
  br i1 %90, label %91, label %93

91:                                               ; preds = %86
  %92 = load i32, ptr %13, align 4, !tbaa !5
  call void (i32, i32, ptr, i32, ptr, ptr, ...) @m_Exception(i32 noundef %92, i32 noundef -1, ptr noundef @.str.14, i32 noundef 25, ptr noundef @__FUNCTION__.main, ptr noundef @.str.16)
  br label %93

93:                                               ; preds = %91, %86
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #5
  br label %94

94:                                               ; preds = %93
  br label %95

95:                                               ; preds = %94
  br label %96

96:                                               ; preds = %95
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #5
  %97 = load ptr, ptr %6, align 8, !tbaa !9
  %98 = icmp ne ptr %97, null
  br i1 %98, label %99, label %102

99:                                               ; preds = %96
  %100 = load ptr, ptr %9, align 8, !tbaa !9
  %101 = icmp ne ptr %100, null
  br label %102

102:                                              ; preds = %99, %96
  %103 = phi i1 [ false, %96 ], [ %101, %99 ]
  %104 = zext i1 %103 to i32
  store i32 %104, ptr %14, align 4, !tbaa !5
  %105 = load i32, ptr %14, align 4, !tbaa !5
  %106 = icmp ne i32 %105, 0
  br i1 %106, label %107, label %109

107:                                              ; preds = %102
  %108 = load i32, ptr %14, align 4, !tbaa !5
  call void (i32, i32, ptr, i32, ptr, ptr, ...) @m_Exception(i32 noundef %108, i32 noundef -1, ptr noundef @.str.14, i32 noundef 26, ptr noundef @__FUNCTION__.main, ptr noundef @.str.15)
  br label %109

109:                                              ; preds = %107, %102
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #5
  br label %110

110:                                              ; preds = %109
  br label %111

111:                                              ; preds = %110
  br label %112

112:                                              ; preds = %111
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #5
  %113 = load ptr, ptr %7, align 8, !tbaa !9
  %114 = icmp ne ptr %113, null
  br i1 %114, label %115, label %118

115:                                              ; preds = %112
  %116 = load ptr, ptr %8, align 8, !tbaa !9
  %117 = icmp ne ptr %116, null
  br label %118

118:                                              ; preds = %115, %112
  %119 = phi i1 [ false, %112 ], [ %117, %115 ]
  %120 = zext i1 %119 to i32
  store i32 %120, ptr %15, align 4, !tbaa !5
  %121 = load i32, ptr %15, align 4, !tbaa !5
  %122 = icmp ne i32 %121, 0
  br i1 %122, label %123, label %125

123:                                              ; preds = %118
  %124 = load i32, ptr %15, align 4, !tbaa !5
  call void (i32, i32, ptr, i32, ptr, ptr, ...) @m_Exception(i32 noundef %124, i32 noundef -1, ptr noundef @.str.14, i32 noundef 27, ptr noundef @__FUNCTION__.main, ptr noundef @.str.16)
  br label %125

125:                                              ; preds = %123, %118
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #5
  br label %126

126:                                              ; preds = %125
  br label %127

127:                                              ; preds = %126
  br label %128

128:                                              ; preds = %127
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #5
  %129 = load ptr, ptr %11, align 8, !tbaa !9
  %130 = icmp eq ptr %129, null
  br i1 %130, label %131, label %134

131:                                              ; preds = %128
  %132 = load ptr, ptr %7, align 8, !tbaa !9
  %133 = icmp eq ptr %132, null
  br label %134

134:                                              ; preds = %131, %128
  %135 = phi i1 [ false, %128 ], [ %133, %131 ]
  %136 = zext i1 %135 to i32
  store i32 %136, ptr %16, align 4, !tbaa !5
  %137 = load i32, ptr %16, align 4, !tbaa !5
  %138 = icmp ne i32 %137, 0
  br i1 %138, label %139, label %141

139:                                              ; preds = %134
  %140 = load i32, ptr %16, align 4, !tbaa !5
  call void (i32, i32, ptr, i32, ptr, ptr, ...) @m_Exception(i32 noundef %140, i32 noundef -1, ptr noundef @.str.14, i32 noundef 28, ptr noundef @__FUNCTION__.main, ptr noundef @.str.17)
  br label %141

141:                                              ; preds = %139, %134
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #5
  br label %142

142:                                              ; preds = %141
  br label %143

143:                                              ; preds = %142
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #5
  %144 = call ptr @ImageCreate(i32 noundef -1, i32 noundef -1, i32 noundef -1, ptr noundef null)
  store ptr %144, ptr %17, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #5
  store ptr null, ptr %18, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 256, ptr %19) #5
  %145 = load ptr, ptr %6, align 8, !tbaa !9
  %146 = icmp ne ptr %145, null
  br i1 %146, label %147, label %190

147:                                              ; preds = %143
  %148 = load ptr, ptr %17, align 8, !tbaa !9
  %149 = load ptr, ptr %6, align 8, !tbaa !9
  call void (ptr, ptr, ...) @mImageLoad(ptr noundef %148, ptr noundef %149)
  %150 = load ptr, ptr %7, align 8, !tbaa !9
  %151 = icmp eq ptr %150, null
  br i1 %151, label %152, label %186

152:                                              ; preds = %147
  %153 = getelementptr inbounds [256 x i8], ptr %19, i64 0, i64 0
  %154 = load ptr, ptr %6, align 8, !tbaa !9
  %155 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef %153, ptr noundef @.str.5, ptr noundef %154) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #5
  %156 = getelementptr inbounds [256 x i8], ptr %19, i64 0, i64 0
  %157 = call i64 @strlen(ptr noundef %156) #6
  %158 = trunc i64 %157 to i32
  store i32 %158, ptr %20, align 4, !tbaa !5
  br label %159

159:                                              ; preds = %177, %152
  %160 = load i32, ptr %20, align 4, !tbaa !5
  %161 = icmp sgt i32 %160, 0
  br i1 %161, label %163, label %162

162:                                              ; preds = %159
  store i32 14, ptr %21, align 4
  br label %180

163:                                              ; preds = %159
  %164 = load i32, ptr %20, align 4, !tbaa !5
  %165 = sext i32 %164 to i64
  %166 = getelementptr inbounds [256 x i8], ptr %19, i64 0, i64 %165
  %167 = load i8, ptr %166, align 1, !tbaa !11
  %168 = sext i8 %167 to i32
  %169 = icmp eq i32 %168, 46
  br i1 %169, label %170, label %176

170:                                              ; preds = %163
  %171 = getelementptr inbounds [256 x i8], ptr %19, i64 0, i64 0
  %172 = load i32, ptr %20, align 4, !tbaa !5
  %173 = sext i32 %172 to i64
  %174 = getelementptr inbounds i8, ptr %171, i64 %173
  %175 = getelementptr inbounds i8, ptr %174, i64 1
  store ptr %175, ptr %18, align 8, !tbaa !9
  store i32 14, ptr %21, align 4
  br label %180

176:                                              ; preds = %163
  br label %177

177:                                              ; preds = %176
  %178 = load i32, ptr %20, align 4, !tbaa !5
  %179 = add nsw i32 %178, -1
  store i32 %179, ptr %20, align 4, !tbaa !5
  br label %159, !llvm.loop !12

180:                                              ; preds = %170, %162
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #5
  br label %181

181:                                              ; preds = %180
  %182 = load ptr, ptr %18, align 8, !tbaa !9
  %183 = load ptr, ptr %11, align 8, !tbaa !9
  %184 = call ptr @strcpy(ptr noundef %182, ptr noundef %183) #5
  %185 = getelementptr inbounds [256 x i8], ptr %19, i64 0, i64 0
  store ptr %185, ptr %7, align 8, !tbaa !9
  br label %186

186:                                              ; preds = %181, %147
  %187 = load ptr, ptr %17, align 8, !tbaa !9
  %188 = load ptr, ptr %7, align 8, !tbaa !9
  call void (ptr, ptr, ...) @mImageSave(ptr noundef %187, ptr noundef %188)
  %189 = load ptr, ptr %17, align 8, !tbaa !9
  call void @mImageRelease(ptr noundef %189)
  store i32 1, ptr %3, align 4
  store i32 1, ptr %21, align 4
  br label %343

190:                                              ; preds = %143
  br label %191

191:                                              ; preds = %190
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #5
  %192 = load ptr, ptr %8, align 8, !tbaa !9
  %193 = icmp eq ptr %192, null
  %194 = zext i1 %193 to i32
  store i32 %194, ptr %22, align 4, !tbaa !5
  %195 = load i32, ptr %22, align 4, !tbaa !5
  %196 = icmp ne i32 %195, 0
  br i1 %196, label %197, label %199

197:                                              ; preds = %191
  %198 = load i32, ptr %22, align 4, !tbaa !5
  call void (i32, i32, ptr, i32, ptr, ptr, ...) @m_Exception(i32 noundef %198, i32 noundef -1, ptr noundef @.str.14, i32 noundef 52, ptr noundef @__FUNCTION__.main, ptr noundef @.str.18)
  br label %199

199:                                              ; preds = %197, %191
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #5
  br label %200

200:                                              ; preds = %199
  br label %201

201:                                              ; preds = %200
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #5
  store ptr null, ptr %23, align 8, !tbaa !9
  %202 = call ptr @ListCreate(i32 noundef -1, ptr noundef null)
  store ptr %202, ptr %23, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #5
  %203 = getelementptr inbounds [8 x i8], ptr %24, i64 0, i64 0
  %204 = load ptr, ptr %10, align 8, !tbaa !9
  %205 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef %203, ptr noundef @.str.19, ptr noundef %204) #5
  %206 = load ptr, ptr %23, align 8, !tbaa !9
  %207 = load ptr, ptr %8, align 8, !tbaa !9
  %208 = getelementptr inbounds [8 x i8], ptr %24, i64 0, i64 0
  call void @mFileList(ptr noundef %206, ptr noundef %207, ptr noundef %208)
  %209 = load ptr, ptr %9, align 8, !tbaa !9
  %210 = icmp eq ptr %209, null
  br i1 %210, label %211, label %213

211:                                              ; preds = %201
  %212 = load ptr, ptr %8, align 8, !tbaa !9
  store ptr %212, ptr %9, align 8, !tbaa !9
  br label %213

213:                                              ; preds = %211, %201
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #5
  store i32 0, ptr %25, align 4, !tbaa !5
  br label %214

214:                                              ; preds = %337, %213
  %215 = load i32, ptr %25, align 4, !tbaa !5
  %216 = load ptr, ptr %23, align 8, !tbaa !9
  %217 = getelementptr inbounds %struct.MList, ptr %216, i32 0, i32 0
  %218 = load i32, ptr %217, align 8, !tbaa !14
  %219 = icmp slt i32 %215, %218
  br i1 %219, label %221, label %220

220:                                              ; preds = %214
  store i32 19, ptr %21, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #5
  br label %340

221:                                              ; preds = %214
  %222 = getelementptr inbounds [256 x i8], ptr %19, i64 0, i64 0
  %223 = load ptr, ptr %8, align 8, !tbaa !9
  %224 = load ptr, ptr %23, align 8, !tbaa !9
  %225 = getelementptr inbounds %struct.MList, ptr %224, i32 0, i32 1
  %226 = load ptr, ptr %225, align 8, !tbaa !16
  %227 = load i32, ptr %25, align 4, !tbaa !5
  %228 = sext i32 %227 to i64
  %229 = getelementptr inbounds ptr, ptr %226, i64 %228
  %230 = load ptr, ptr %229, align 8, !tbaa !9
  %231 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef %222, ptr noundef @.str.20, ptr noundef %223, ptr noundef %230) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #5
  %232 = getelementptr inbounds [256 x i8], ptr %19, i64 0, i64 0
  %233 = call i64 @strlen(ptr noundef %232) #6
  %234 = trunc i64 %233 to i32
  store i32 %234, ptr %26, align 4, !tbaa !5
  br label %235

235:                                              ; preds = %253, %221
  %236 = load i32, ptr %26, align 4, !tbaa !5
  %237 = icmp sgt i32 %236, 0
  br i1 %237, label %239, label %238

238:                                              ; preds = %235
  store i32 22, ptr %21, align 4
  br label %256

239:                                              ; preds = %235
  %240 = load i32, ptr %26, align 4, !tbaa !5
  %241 = sext i32 %240 to i64
  %242 = getelementptr inbounds [256 x i8], ptr %19, i64 0, i64 %241
  %243 = load i8, ptr %242, align 1, !tbaa !11
  %244 = sext i8 %243 to i32
  %245 = icmp eq i32 %244, 46
  br i1 %245, label %246, label %252

246:                                              ; preds = %239
  %247 = getelementptr inbounds [256 x i8], ptr %19, i64 0, i64 0
  %248 = load i32, ptr %26, align 4, !tbaa !5
  %249 = sext i32 %248 to i64
  %250 = getelementptr inbounds i8, ptr %247, i64 %249
  %251 = getelementptr inbounds i8, ptr %250, i64 1
  store ptr %251, ptr %18, align 8, !tbaa !9
  store i32 22, ptr %21, align 4
  br label %256

252:                                              ; preds = %239
  br label %253

253:                                              ; preds = %252
  %254 = load i32, ptr %26, align 4, !tbaa !5
  %255 = add nsw i32 %254, -1
  store i32 %255, ptr %26, align 4, !tbaa !5
  br label %235, !llvm.loop !17

256:                                              ; preds = %246, %238
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #5
  br label %257

257:                                              ; preds = %256
  %258 = load ptr, ptr %18, align 8, !tbaa !9
  %259 = call i32 @strcasecmp(ptr noundef %258, ptr noundef @.str.21) #6
  %260 = icmp eq i32 %259, 0
  br i1 %260, label %261, label %264

261:                                              ; preds = %257
  %262 = load ptr, ptr %17, align 8, !tbaa !9
  %263 = getelementptr inbounds [256 x i8], ptr %19, i64 0, i64 0
  call void (ptr, ptr, ...) @mImageLoad(ptr noundef %262, ptr noundef %263)
  br label %289

264:                                              ; preds = %257
  %265 = load ptr, ptr %18, align 8, !tbaa !9
  %266 = call i32 @strcasecmp(ptr noundef %265, ptr noundef @.str.22) #6
  %267 = icmp eq i32 %266, 0
  br i1 %267, label %268, label %271

268:                                              ; preds = %264
  %269 = load ptr, ptr %17, align 8, !tbaa !9
  %270 = getelementptr inbounds [256 x i8], ptr %19, i64 0, i64 0
  call void (ptr, ptr, ...) @mImageLoad(ptr noundef %269, ptr noundef %270)
  br label %288

271:                                              ; preds = %264
  %272 = load ptr, ptr %18, align 8, !tbaa !9
  %273 = call i32 @strcasecmp(ptr noundef %272, ptr noundef @.str.23) #6
  %274 = icmp eq i32 %273, 0
  br i1 %274, label %275, label %278

275:                                              ; preds = %271
  %276 = load ptr, ptr %17, align 8, !tbaa !9
  %277 = getelementptr inbounds [256 x i8], ptr %19, i64 0, i64 0
  call void (ptr, ptr, ...) @mImageLoad(ptr noundef %276, ptr noundef %277)
  br label %287

278:                                              ; preds = %271
  %279 = load ptr, ptr %18, align 8, !tbaa !9
  %280 = call i32 @strcasecmp(ptr noundef %279, ptr noundef @.str.24) #6
  %281 = icmp eq i32 %280, 0
  br i1 %281, label %282, label %285

282:                                              ; preds = %278
  %283 = load ptr, ptr %17, align 8, !tbaa !9
  %284 = getelementptr inbounds [256 x i8], ptr %19, i64 0, i64 0
  call void (ptr, ptr, ...) @mImageLoad(ptr noundef %283, ptr noundef %284)
  br label %286

285:                                              ; preds = %278
  br label %337

286:                                              ; preds = %282
  br label %287

287:                                              ; preds = %286, %275
  br label %288

288:                                              ; preds = %287, %268
  br label %289

289:                                              ; preds = %288, %261
  %290 = getelementptr inbounds [256 x i8], ptr %19, i64 0, i64 0
  %291 = call i32 (ptr, ...) @printf(ptr noundef @.str.25, ptr noundef %290)
  %292 = load ptr, ptr %9, align 8, !tbaa !9
  %293 = icmp ne ptr %292, null
  br i1 %293, label %294, label %334

294:                                              ; preds = %289
  %295 = getelementptr inbounds [256 x i8], ptr %19, i64 0, i64 0
  %296 = load ptr, ptr %9, align 8, !tbaa !9
  %297 = load ptr, ptr %23, align 8, !tbaa !9
  %298 = getelementptr inbounds %struct.MList, ptr %297, i32 0, i32 1
  %299 = load ptr, ptr %298, align 8, !tbaa !16
  %300 = load i32, ptr %25, align 4, !tbaa !5
  %301 = sext i32 %300 to i64
  %302 = getelementptr inbounds ptr, ptr %299, i64 %301
  %303 = load ptr, ptr %302, align 8, !tbaa !9
  %304 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef %295, ptr noundef @.str.20, ptr noundef %296, ptr noundef %303) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #5
  %305 = getelementptr inbounds [256 x i8], ptr %19, i64 0, i64 0
  %306 = call i64 @strlen(ptr noundef %305) #6
  %307 = trunc i64 %306 to i32
  store i32 %307, ptr %27, align 4, !tbaa !5
  br label %308

308:                                              ; preds = %326, %294
  %309 = load i32, ptr %27, align 4, !tbaa !5
  %310 = icmp sgt i32 %309, 0
  br i1 %310, label %312, label %311

311:                                              ; preds = %308
  store i32 25, ptr %21, align 4
  br label %329

312:                                              ; preds = %308
  %313 = load i32, ptr %27, align 4, !tbaa !5
  %314 = sext i32 %313 to i64
  %315 = getelementptr inbounds [256 x i8], ptr %19, i64 0, i64 %314
  %316 = load i8, ptr %315, align 1, !tbaa !11
  %317 = sext i8 %316 to i32
  %318 = icmp eq i32 %317, 46
  br i1 %318, label %319, label %325

319:                                              ; preds = %312
  %320 = getelementptr inbounds [256 x i8], ptr %19, i64 0, i64 0
  %321 = load i32, ptr %27, align 4, !tbaa !5
  %322 = sext i32 %321 to i64
  %323 = getelementptr inbounds i8, ptr %320, i64 %322
  %324 = getelementptr inbounds i8, ptr %323, i64 1
  store ptr %324, ptr %18, align 8, !tbaa !9
  store i32 25, ptr %21, align 4
  br label %329

325:                                              ; preds = %312
  br label %326

326:                                              ; preds = %325
  %327 = load i32, ptr %27, align 4, !tbaa !5
  %328 = add nsw i32 %327, -1
  store i32 %328, ptr %27, align 4, !tbaa !5
  br label %308, !llvm.loop !18

329:                                              ; preds = %319, %311
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #5
  br label %330

330:                                              ; preds = %329
  %331 = load ptr, ptr %18, align 8, !tbaa !9
  %332 = load ptr, ptr %11, align 8, !tbaa !9
  %333 = call ptr @strcpy(ptr noundef %331, ptr noundef %332) #5
  br label %334

334:                                              ; preds = %330, %289
  %335 = load ptr, ptr %17, align 8, !tbaa !9
  %336 = getelementptr inbounds [256 x i8], ptr %19, i64 0, i64 0
  call void (ptr, ptr, ...) @mImageSave(ptr noundef %335, ptr noundef %336)
  br label %337

337:                                              ; preds = %334, %285
  %338 = load i32, ptr %25, align 4, !tbaa !5
  %339 = add nsw i32 %338, 1
  store i32 %339, ptr %25, align 4, !tbaa !5
  br label %214, !llvm.loop !19

340:                                              ; preds = %220
  %341 = load ptr, ptr %17, align 8, !tbaa !9
  call void @mImageRelease(ptr noundef %341)
  %342 = load ptr, ptr %23, align 8, !tbaa !9
  call void @mListRelease(ptr noundef %342)
  store i32 1, ptr %3, align 4
  store i32 1, ptr %21, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #5
  br label %343

343:                                              ; preds = %340, %186
  call void @llvm.lifetime.end.p0(i64 256, ptr %19) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #5
  br label %344

344:                                              ; preds = %343, %41, %33
  %345 = load i32, ptr %3, align 4
  ret i32 %345
}

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

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

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

declare void @m_Exception(i32 noundef, i32 noundef, ptr noundef, i32 noundef, 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) #2

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

declare void @mImageLoad(ptr noundef, ptr noundef, ...) #1

; Function Attrs: nounwind
declare i32 @sprintf(ptr noundef, 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) #3

declare void @mImageSave(ptr noundef, ptr noundef, ...) #1

declare void @mImageRelease(ptr noundef) #1

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

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

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

declare void @mListRelease(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 "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 = !{!"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 = !{!7, !7, i64 0}
!12 = distinct !{!12, !13}
!13 = !{!"llvm.loop.mustprogress"}
!14 = !{!15, !6, i64 0}
!15 = !{!"MList", !6, i64 0, !10, i64 8}
!16 = !{!15, !10, i64 8}
!17 = distinct !{!17, !13}
!18 = distinct !{!18, !13}
!19 = distinct !{!19, !13}


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

@morn_version = external dso_local local_unnamed_addr global ptr, align 8
@help_imageformat = external dso_local local_unnamed_addr global ptr, align 8
@.str.4 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [74 x i8], align 1
@__FUNCTION__.main = external hidden unnamed_addr constant [5 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [4 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local range(i32 0, 2) i32 @main(i32 noundef %0, ptr noundef %1) local_unnamed_addr #0 {
  %3 = alloca [256 x i8], align 16
  %4 = alloca [8 x i8], align 1
  %5 = tail call ptr (i32, ptr, ptr, ptr, ...) @m_StringArgument(i32 noundef %0, ptr noundef %1, ptr noundef nonnull @.str.4, ptr noundef null) #8
  %.not = icmp eq ptr %5, null
  br i1 %.not, label %9, label %6

6:                                                ; preds = %2
  %7 = load ptr, ptr @help_imageformat, align 8, !tbaa !5
  %8 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.5, ptr noundef %7)
  br label %119

9:                                                ; preds = %2
  %10 = tail call ptr (i32, ptr, ptr, ptr, ...) @m_StringArgument(i32 noundef %0, ptr noundef %1, ptr noundef nonnull @.str.6, ptr noundef null) #8
  %.not100 = icmp eq ptr %10, null
  br i1 %.not100, label %14, label %11

11:                                               ; preds = %9
  %12 = load ptr, ptr @morn_version, align 8, !tbaa !5
  %13 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.7, ptr noundef %12)
  br label %119

14:                                               ; preds = %9
  %15 = tail call ptr (i32, ptr, ptr, ptr, ...) @m_StringArgument(i32 noundef %0, ptr noundef %1, ptr noundef nonnull @.str.8, ptr noundef null, ptr noundef null) #8
  %16 = tail call ptr (i32, ptr, ptr, ptr, ...) @m_StringArgument(i32 noundef %0, ptr noundef %1, ptr noundef nonnull @.str.9, ptr noundef null, ptr noundef null) #8
  %17 = tail call ptr (i32, ptr, ptr, ptr, ...) @m_StringArgument(i32 noundef %0, ptr noundef %1, ptr noundef nonnull @.str.10, ptr noundef null, ptr noundef null) #8
  %18 = tail call ptr (i32, ptr, ptr, ptr, ...) @m_StringArgument(i32 noundef %0, ptr noundef %1, ptr noundef nonnull @.str.11, ptr noundef null, ptr noundef null) #8
  %19 = tail call ptr (i32, ptr, ptr, ptr, ...) @m_StringArgument(i32 noundef %0, ptr noundef %1, ptr noundef nonnull @.str.12, ptr noundef null, ptr noundef null) #8
  %20 = tail call ptr (i32, ptr, ptr, ptr, ...) @m_StringArgument(i32 noundef %0, ptr noundef %1, ptr noundef nonnull @.str.13, ptr noundef null, ptr noundef null) #8
  %21 = icmp ne ptr %15, null
  %22 = icmp ne ptr %17, null
  %23 = select i1 %21, i1 %22, i1 false
  br i1 %23, label %24, label %25

24:                                               ; preds = %14
  tail call void (i32, i32, ptr, i32, ptr, ptr, ...) @m_Exception(i32 noundef 1, i32 noundef -1, ptr noundef nonnull @.str.14, i32 noundef 24, ptr noundef nonnull @__FUNCTION__.main, ptr noundef nonnull @.str.15) #8
  br label %25

25:                                               ; preds = %24, %14
  %26 = icmp ne ptr %16, null
  %27 = icmp ne ptr %18, null
  %28 = select i1 %26, i1 %27, i1 false
  br i1 %28, label %29, label %30

29:                                               ; preds = %25
  tail call void (i32, i32, ptr, i32, ptr, ptr, ...) @m_Exception(i32 noundef 1, i32 noundef -1, ptr noundef nonnull @.str.14, i32 noundef 25, ptr noundef nonnull @__FUNCTION__.main, ptr noundef nonnull @.str.16) #8
  br label %30

30:                                               ; preds = %29, %25
  %31 = select i1 %21, i1 %27, i1 false
  br i1 %31, label %32, label %33

32:                                               ; preds = %30
  tail call void (i32, i32, ptr, i32, ptr, ptr, ...) @m_Exception(i32 noundef 1, i32 noundef -1, ptr noundef nonnull @.str.14, i32 noundef 26, ptr noundef nonnull @__FUNCTION__.main, ptr noundef nonnull @.str.15) #8
  br label %33

33:                                               ; preds = %32, %30
  %34 = select i1 %26, i1 %22, i1 false
  br i1 %34, label %.thread, label %35

.thread:                                          ; preds = %33
  tail call void (i32, i32, ptr, i32, ptr, ptr, ...) @m_Exception(i32 noundef 1, i32 noundef -1, ptr noundef nonnull @.str.14, i32 noundef 27, ptr noundef nonnull @__FUNCTION__.main, ptr noundef nonnull @.str.16) #8
  br label %40

35:                                               ; preds = %33
  %36 = icmp eq ptr %20, null
  %37 = icmp eq ptr %16, null
  %38 = select i1 %36, i1 %37, i1 false
  br i1 %38, label %39, label %40

39:                                               ; preds = %35
  tail call void (i32, i32, ptr, i32, ptr, ptr, ...) @m_Exception(i32 noundef 1, i32 noundef -1, ptr noundef nonnull @.str.14, i32 noundef 28, ptr noundef nonnull @__FUNCTION__.main, ptr noundef nonnull @.str.17) #8
  br label %40

40:                                               ; preds = %.thread, %39, %35
  %41 = phi i1 [ false, %.thread ], [ true, %39 ], [ %37, %35 ]
  %42 = tail call ptr @ImageCreate(i32 noundef -1, i32 noundef -1, i32 noundef -1, ptr noundef null) #8
  call void @llvm.lifetime.start.p0(i64 256, ptr nonnull %3) #8
  br i1 %21, label %43, label %59

43:                                               ; preds = %40
  tail call void (ptr, ptr, ...) @mImageLoad(ptr noundef %42, ptr noundef nonnull %15) #8
  br i1 %41, label %44, label %58

44:                                               ; preds = %43
  %45 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef nonnull dereferenceable(1) %3, ptr noundef nonnull dereferenceable(1) @.str.5, ptr noundef nonnull %15) #8
  %46 = call i64 @strlen(ptr noundef nonnull dereferenceable(1) %3) #9
  %47 = and i64 %46, 4294967295
  br label %48

48:                                               ; preds = %48, %44
  %indvars.iv124 = phi i64 [ %indvars.iv.next125, %48 ], [ %47, %44 ]
  %49 = trunc nuw i64 %indvars.iv124 to i32
  %50 = icmp sgt i32 %49, 0
  tail call void @llvm.assume(i1 %50)
  %51 = getelementptr inbounds [256 x i8], ptr %3, i64 0, i64 %indvars.iv124
  %52 = load i8, ptr %51, align 1, !tbaa !9
  %53 = icmp eq i8 %52, 46
  %indvars.iv.next125 = add nsw i64 %indvars.iv124, -1
  br i1 %53, label %54, label %48, !llvm.loop !10

54:                                               ; preds = %48
  %55 = getelementptr inbounds [256 x i8], ptr %3, i64 0, i64 %indvars.iv124
  %56 = getelementptr inbounds i8, ptr %55, i64 1
  %57 = call ptr @strcpy(ptr noundef nonnull dereferenceable(1) %56, ptr noundef nonnull dereferenceable(1) %20) #8
  br label %58

58:                                               ; preds = %54, %43
  %.095 = phi ptr [ %3, %54 ], [ %16, %43 ]
  call void (ptr, ptr, ...) @mImageSave(ptr noundef %42, ptr noundef nonnull %.095) #8
  call void @mImageRelease(ptr noundef %42) #8
  br label %118

59:                                               ; preds = %40
  %60 = icmp eq ptr %17, null
  br i1 %60, label %61, label %62

61:                                               ; preds = %59
  tail call void (i32, i32, ptr, i32, ptr, ptr, ...) @m_Exception(i32 noundef 1, i32 noundef -1, ptr noundef nonnull @.str.14, i32 noundef 52, ptr noundef nonnull @__FUNCTION__.main, ptr noundef nonnull @.str.18) #8
  br label %62

62:                                               ; preds = %61, %59
  %63 = tail call ptr @ListCreate(i32 noundef -1, ptr noundef null) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #8
  %64 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef nonnull dereferenceable(1) %4, ptr noundef nonnull dereferenceable(1) @.str.19, ptr noundef %19) #8
  call void @mFileList(ptr noundef %63, ptr noundef %17, ptr noundef nonnull %4) #8
  %65 = icmp eq ptr %18, null
  %spec.select = select i1 %65, ptr %17, ptr %18
  %invariant.gep = getelementptr inbounds i8, ptr %3, i64 1
  %66 = load i32, ptr %63, align 8, !tbaa !12
  %67 = icmp sgt i32 %66, 0
  br i1 %67, label %.lr.ph112, label %._crit_edge

.lr.ph112:                                        ; preds = %62
  %68 = getelementptr inbounds i8, ptr %63, i64 8
  %.not101 = icmp eq ptr %spec.select, null
  br label %69

._crit_edge:                                      ; preds = %114, %62
  call void @mImageRelease(ptr noundef %42) #8
  call void @mListRelease(ptr noundef nonnull %63) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #8
  br label %118

69:                                               ; preds = %.lr.ph112, %114
  %indvars.iv121 = phi i64 [ 0, %.lr.ph112 ], [ %indvars.iv.next122, %114 ]
  %.194110 = phi ptr [ null, %.lr.ph112 ], [ %.5, %114 ]
  %70 = load ptr, ptr %68, align 8, !tbaa !15
  %71 = getelementptr inbounds ptr, ptr %70, i64 %indvars.iv121
  %72 = load ptr, ptr %71, align 8, !tbaa !5
  %73 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef nonnull dereferenceable(1) %3, ptr noundef nonnull dereferenceable(1) @.str.20, ptr noundef %17, ptr noundef %72) #8
  %74 = call i64 @strlen(ptr noundef nonnull dereferenceable(1) %3) #9
  %75 = trunc i64 %74 to i32
  %76 = icmp sgt i32 %75, 0
  br i1 %76, label %.lr.ph.preheader, label %.loopexit102

.lr.ph.preheader:                                 ; preds = %69
  %77 = and i64 %74, 2147483647
  br label %.lr.ph

78:                                               ; preds = %.lr.ph
  %indvars.iv.next = add nsw i64 %indvars.iv, -1
  %79 = icmp sgt i64 %indvars.iv, 1
  br i1 %79, label %.lr.ph, label %.loopexit102, !llvm.loop !16

.lr.ph:                                           ; preds = %.lr.ph.preheader, %78
  %indvars.iv = phi i64 [ %77, %.lr.ph.preheader ], [ %indvars.iv.next, %78 ]
  %80 = getelementptr inbounds [256 x i8], ptr %3, i64 0, i64 %indvars.iv
  %81 = load i8, ptr %80, align 1, !tbaa !9
  %82 = icmp eq i8 %81, 46
  br i1 %82, label %83, label %78

83:                                               ; preds = %.lr.ph
  %gep = getelementptr inbounds i8, ptr %invariant.gep, i64 %indvars.iv
  br label %.loopexit102

.loopexit102:                                     ; preds = %78, %69, %83
  %.2 = phi ptr [ %gep, %83 ], [ %.194110, %69 ], [ %.194110, %78 ]
  %84 = call i32 @strcasecmp(ptr noundef %.2, ptr noundef nonnull @.str.21) #9
  %85 = icmp eq i32 %84, 0
  br i1 %85, label %95, label %86

86:                                               ; preds = %.loopexit102
  %87 = call i32 @strcasecmp(ptr noundef %.2, ptr noundef nonnull @.str.22) #9
  %88 = icmp eq i32 %87, 0
  br i1 %88, label %95, label %89

89:                                               ; preds = %86
  %90 = call i32 @strcasecmp(ptr noundef %.2, ptr noundef nonnull @.str.23) #9
  %91 = icmp eq i32 %90, 0
  br i1 %91, label %95, label %92

92:                                               ; preds = %89
  %93 = call i32 @strcasecmp(ptr noundef %.2, ptr noundef nonnull @.str.24) #9
  %94 = icmp eq i32 %93, 0
  br i1 %94, label %95, label %114

95:                                               ; preds = %92, %89, %86, %.loopexit102
  call void (ptr, ptr, ...) @mImageLoad(ptr noundef %42, ptr noundef nonnull %3) #8
  %96 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.25, ptr noundef nonnull %3)
  br i1 %.not101, label %113, label %97

97:                                               ; preds = %95
  %98 = load ptr, ptr %68, align 8, !tbaa !15
  %99 = getelementptr inbounds ptr, ptr %98, i64 %indvars.iv121
  %100 = load ptr, ptr %99, align 8, !tbaa !5
  %101 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef nonnull dereferenceable(1) %3, ptr noundef nonnull dereferenceable(1) @.str.20, ptr noundef nonnull %spec.select, ptr noundef %100) #8
  %102 = call i64 @strlen(ptr noundef nonnull dereferenceable(1) %3) #9
  %103 = trunc i64 %102 to i32
  %104 = icmp sgt i32 %103, 0
  br i1 %104, label %.lr.ph107.preheader, label %.loopexit

.lr.ph107.preheader:                              ; preds = %97
  %105 = and i64 %102, 2147483647
  br label %.lr.ph107

106:                                              ; preds = %.lr.ph107
  %indvars.iv.next119 = add nsw i64 %indvars.iv118, -1
  %107 = icmp sgt i64 %indvars.iv118, 1
  br i1 %107, label %.lr.ph107, label %.loopexit, !llvm.loop !17

.lr.ph107:                                        ; preds = %.lr.ph107.preheader, %106
  %indvars.iv118 = phi i64 [ %105, %.lr.ph107.preheader ], [ %indvars.iv.next119, %106 ]
  %108 = getelementptr inbounds [256 x i8], ptr %3, i64 0, i64 %indvars.iv118
  %109 = load i8, ptr %108, align 1, !tbaa !9
  %110 = icmp eq i8 %109, 46
  br i1 %110, label %111, label %106

111:                                              ; preds = %.lr.ph107
  %gep109 = getelementptr inbounds i8, ptr %invariant.gep, i64 %indvars.iv118
  br label %.loopexit

.loopexit:                                        ; preds = %106, %97, %111
  %.3 = phi ptr [ %gep109, %111 ], [ %.2, %97 ], [ %.2, %106 ]
  %112 = call ptr @strcpy(ptr noundef nonnull dereferenceable(1) %.3, ptr noundef nonnull dereferenceable(1) %20) #8
  br label %113

113:                                              ; preds = %.loopexit, %95
  %.4 = phi ptr [ %.3, %.loopexit ], [ %.2, %95 ]
  call void (ptr, ptr, ...) @mImageSave(ptr noundef %42, ptr noundef nonnull %3) #8
  br label %114

114:                                              ; preds = %92, %113
  %.5 = phi ptr [ %.4, %113 ], [ %.2, %92 ]
  %indvars.iv.next122 = add nuw nsw i64 %indvars.iv121, 1
  %115 = load i32, ptr %63, align 8, !tbaa !12
  %116 = sext i32 %115 to i64
  %117 = icmp slt i64 %indvars.iv.next122, %116
  br i1 %117, label %69, label %._crit_edge, !llvm.loop !18

118:                                              ; preds = %._crit_edge, %58
  call void @llvm.lifetime.end.p0(i64 256, ptr nonnull %3) #8
  br label %119

119:                                              ; preds = %118, %11, %6
  %.1 = phi i32 [ 0, %6 ], [ 0, %11 ], [ 1, %118 ]
  ret i32 %.1
}

declare ptr @m_StringArgument(i32 noundef, ptr noundef, ptr noundef, ptr noundef, ...) local_unnamed_addr #1

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

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

declare void @m_Exception(i32 noundef, i32 noundef, ptr noundef, i32 noundef, ptr noundef, ptr noundef, ...) local_unnamed_addr #1

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

declare ptr @ImageCreate(i32 noundef, i32 noundef, i32 noundef, ptr noundef) local_unnamed_addr #1

declare void @mImageLoad(ptr noundef, ptr noundef, ...) local_unnamed_addr #1

; Function Attrs: nofree nounwind
declare noundef i32 @sprintf(ptr noalias nocapture noundef writeonly, ptr nocapture noundef readonly, ...) local_unnamed_addr #2

; 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

declare void @mImageSave(ptr noundef, ptr noundef, ...) local_unnamed_addr #1

declare void @mImageRelease(ptr noundef) local_unnamed_addr #1

declare ptr @ListCreate(i32 noundef, ptr noundef) local_unnamed_addr #1

declare void @mFileList(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #1

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

declare void @mListRelease(ptr noundef) local_unnamed_addr #1

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(inaccessiblemem: write)
declare void @llvm.assume(i1 noundef) #7

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 = { 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 #3 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { mustprogress nofree 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 #7 = { nocallback nofree nosync nounwind willreturn memory(inaccessiblemem: write) }
attributes #8 = { nounwind }
attributes #9 = { 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 = !{!7, !7, i64 0}
!10 = distinct !{!10, !11}
!11 = !{!"llvm.loop.mustprogress"}
!12 = !{!13, !14, i64 0}
!13 = !{!"MList", !14, i64 0, !6, i64 8}
!14 = !{!"int", !7, i64 0}
!15 = !{!13, !6, i64 8}
!16 = distinct !{!16, !11}
!17 = distinct !{!17, !11}
!18 = distinct !{!18, !11}


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