; LLVM IR from jrl-umi3218/mc_rtc :: 3rd-party/qhull/src/libqhull_r (global_r)

; 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.qhT = type { i32, i32, i32, i32, i32, i32, double, i32, i32, i32, i32, i32, i32, i32, i32, double, double, i32, i32, i32, i32, i32, i32, ptr, i32, i32, ptr, i32, i32, i32, i32, i32, i32, i32, double, double, i32, i32, i32, i32, double, double, i32, i32, double, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, [29 x i32], i32, i32, i32, i32, i32, i32, i32, i32, double, double, double, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, double, i32, i32, i32, i32, i32, i32, i32, i32, double, i32, ptr, ptr, i32, i32, i32, i32, i32, ptr, i32, ptr, i32, [256 x i8], i32, [256 x i8], [512 x i8], i32, i32, i32, i32, i32, i32, ptr, ptr, ptr, ptr, double, double, double, double, double, double, double, double, double, double, double, double, double, double, ptr, double, double, double, double, i32, [6 x i8], [1 x %struct.__jmp_buf_tag], [40 x i8], [1 x %struct.__jmp_buf_tag], [40 x i8], ptr, ptr, ptr, ptr, i32, i32, i32, ptr, ptr, ptr, ptr, ptr, i32, i32, ptr, i32, ptr, i32, ptr, ptr, ptr, ptr, i32, i32, i32, i32, i32, i32, i32, i32, i64, i32, i32, i32, i32, i32, ptr, ptr, i32, i32, i32, double, i32, double, double, double, i32, i32, i32, i32, i32, double, double, i32, i32, i32, i32, i32, i32, double, double, i32, i32, i32, i32, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, i32, ptr, ptr, i32, i32, i32, ptr, double, double, double, double, i32, i32, i32, i32, i32, i32, ptr, i32, i32, [1 x %struct.__jmp_buf_tag], [40 x i8], i32, double, ptr, ptr, ptr, %struct.qhmemT, %struct.qhstatT }
%struct.__jmp_buf_tag = type { [8 x i64], i32, %struct.__sigset_t }
%struct.__sigset_t = type { [16 x i64] }
%struct.qhmemT = type { i32, i32, i32, i32, i32, i32, ptr, ptr, ptr, ptr, ptr, i32, ptr, ptr, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32 }
%struct.qhstatT = type { [249 x %union.intrealT], [259 x i8], [249 x ptr], [249 x i16], [249 x i8], [249 x i8], [9 x %union.intrealT], i32, i32, i32, i32, double }
%union.intrealT = type { double }

@__const.qh_checkflags.chkkey = external hidden unnamed_addr constant [4 x i8], align 1
@__const.qh_checkflags.chkopt = external hidden unnamed_addr constant [5 x i8], align 1
@__const.qh_checkflags.chkopt2 = external hidden unnamed_addr constant [6 x i8], align 1
@.str = external hidden unnamed_addr constant [89 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [92 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [102 x i8], align 1

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

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

; Function Attrs: nounwind uwtable
define dso_local void @qh_checkflags(ptr noundef %0, ptr noundef %1, ptr noundef %2) #1 {
  %4 = alloca ptr, align 8
  %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 i8, align 1
  %11 = alloca i8, align 1
  %12 = alloca i8, align 1
  %13 = alloca [4 x i8], align 1
  %14 = alloca [5 x i8], align 1
  %15 = alloca [6 x i8], align 1
  %16 = alloca i32, align 4
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  store ptr %2, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #6
  %17 = load ptr, ptr %5, align 8, !tbaa !5
  store ptr %17, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr %10) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr %11) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr %12) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %13, ptr align 1 @__const.qh_checkflags.chkkey, i64 4, i1 false)
  call void @llvm.lifetime.start.p0(i64 5, ptr %14) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %14, ptr align 1 @__const.qh_checkflags.chkopt, i64 5, i1 false)
  call void @llvm.lifetime.start.p0(i64 6, ptr %15) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %15, ptr align 1 @__const.qh_checkflags.chkopt2, i64 6, i1 false)
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #6
  store i32 0, ptr %16, align 4, !tbaa !9
  %18 = load ptr, ptr %6, align 8, !tbaa !5
  %19 = load i8, ptr %18, align 1, !tbaa !11
  %20 = sext i8 %19 to i32
  %21 = icmp ne i32 %20, 32
  br i1 %21, label %31, label %22

22:                                               ; preds = %3
  %23 = load ptr, ptr %6, align 8, !tbaa !5
  %24 = load ptr, ptr %6, align 8, !tbaa !5
  %25 = call i64 @strlen(ptr noundef %24) #7
  %26 = sub i64 %25, 1
  %27 = getelementptr inbounds i8, ptr %23, i64 %26
  %28 = load i8, ptr %27, align 1, !tbaa !11
  %29 = sext i8 %28 to i32
  %30 = icmp ne i32 %29, 32
  br i1 %30, label %31, label %38

31:                                               ; preds = %22, %3
  %32 = load ptr, ptr %4, align 8, !tbaa !5
  %33 = load ptr, ptr %4, align 8, !tbaa !5
  %34 = getelementptr inbounds %struct.qhT, ptr %33, i32 0, i32 158
  %35 = load ptr, ptr %34, align 8, !tbaa !12
  %36 = load ptr, ptr %6, align 8, !tbaa !5
  call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %32, ptr noundef %35, i32 noundef 6026, ptr noundef @.str, ptr noundef %36)
  %37 = load ptr, ptr %4, align 8, !tbaa !5
  call void @qh_errexit(ptr noundef %37, i32 noundef 5, ptr noundef null, ptr noundef null)
  br label %38

38:                                               ; preds = %31, %22
  %39 = load ptr, ptr %6, align 8, !tbaa !5
  %40 = call ptr @strpbrk(ptr noundef %39, ptr noundef @.str.1) #7
  %41 = icmp ne ptr %40, null
  br i1 %41, label %42, label %49

42:                                               ; preds = %38
  %43 = load ptr, ptr %4, align 8, !tbaa !5
  %44 = load ptr, ptr %4, align 8, !tbaa !5
  %45 = getelementptr inbounds %struct.qhT, ptr %44, i32 0, i32 158
  %46 = load ptr, ptr %45, align 8, !tbaa !12
  %47 = load ptr, ptr %6, align 8, !tbaa !5
  call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %43, ptr noundef %46, i32 noundef 6027, ptr noundef @.str.2, ptr noundef %47)
  %48 = load ptr, ptr %4, align 8, !tbaa !5
  call void @qh_errexit(ptr noundef %48, i32 noundef 5, ptr noundef null, ptr noundef null)
  br label %49

49:                                               ; preds = %42, %38
  br label %50

50:                                               ; preds = %70, %49
  %51 = load ptr, ptr %7, align 8, !tbaa !5
  %52 = load i8, ptr %51, align 1, !tbaa !11
  %53 = sext i8 %52 to i32
  %54 = icmp ne i32 %53, 0
  br i1 %54, label %55, label %68

55:                                               ; preds = %50
  %56 = call ptr @__ctype_b_loc() #8
  %57 = load ptr, ptr %56, align 8, !tbaa !5
  %58 = load ptr, ptr %7, align 8, !tbaa !5
  %59 = load i8, ptr %58, align 1, !tbaa !11
  %60 = sext i8 %59 to i32
  %61 = sext i32 %60 to i64
  %62 = getelementptr inbounds i16, ptr %57, i64 %61
  %63 = load i16, ptr %62, align 2, !tbaa !18
  %64 = zext i16 %63 to i32
  %65 = and i32 %64, 8192
  %66 = icmp ne i32 %65, 0
  %67 = xor i1 %66, true
  br label %68

68:                                               ; preds = %55, %50
  %69 = phi i1 [ false, %50 ], [ %67, %55 ]
  br i1 %69, label %70, label %73

70:                                               ; preds = %68
  %71 = load ptr, ptr %7, align 8, !tbaa !5
  %72 = getelementptr inbounds i8, ptr %71, i32 1
  store ptr %72, ptr %7, align 8, !tbaa !5
  br label %50, !llvm.loop !20

73:                                               ; preds = %68
  br label %74

74:                                               ; preds = %325, %131, %73
  %75 = load ptr, ptr %7, align 8, !tbaa !5
  %76 = load i8, ptr %75, align 1, !tbaa !11
  %77 = icmp ne i8 %76, 0
  br i1 %77, label %78, label %326

78:                                               ; preds = %74
  br label %79

79:                                               ; preds = %98, %78
  %80 = load ptr, ptr %7, align 8, !tbaa !5
  %81 = load i8, ptr %80, align 1, !tbaa !11
  %82 = sext i8 %81 to i32
  %83 = icmp ne i32 %82, 0
  br i1 %83, label %84, label %96

84:                                               ; preds = %79
  %85 = call ptr @__ctype_b_loc() #8
  %86 = load ptr, ptr %85, align 8, !tbaa !5
  %87 = load ptr, ptr %7, align 8, !tbaa !5
  %88 = load i8, ptr %87, align 1, !tbaa !11
  %89 = sext i8 %88 to i32
  %90 = sext i32 %89 to i64
  %91 = getelementptr inbounds i16, ptr %86, i64 %90
  %92 = load i16, ptr %91, align 2, !tbaa !18
  %93 = zext i16 %92 to i32
  %94 = and i32 %93, 8192
  %95 = icmp ne i32 %94, 0
  br label %96

96:                                               ; preds = %84, %79
  %97 = phi i1 [ false, %79 ], [ %95, %84 ]
  br i1 %97, label %98, label %101

98:                                               ; preds = %96
  %99 = load ptr, ptr %7, align 8, !tbaa !5
  %100 = getelementptr inbounds i8, ptr %99, i32 1
  store ptr %100, ptr %7, align 8, !tbaa !5
  br label %79, !llvm.loop !22

101:                                              ; preds = %96
  %102 = load ptr, ptr %7, align 8, !tbaa !5
  %103 = load i8, ptr %102, align 1, !tbaa !11
  %104 = sext i8 %103 to i32
  %105 = icmp eq i32 %104, 45
  br i1 %105, label %106, label %109

106:                                              ; preds = %101
  %107 = load ptr, ptr %7, align 8, !tbaa !5
  %108 = getelementptr inbounds i8, ptr %107, i32 1
  store ptr %108, ptr %7, align 8, !tbaa !5
  br label %109

109:                                              ; preds = %106, %101
  %110 = load ptr, ptr %7, align 8, !tbaa !5
  %111 = load i8, ptr %110, align 1, !tbaa !11
  %112 = icmp ne i8 %111, 0
  br i1 %112, label %114, label %113

113:                                              ; preds = %109
  br label %326

114:                                              ; preds = %109
  %115 = load ptr, ptr %7, align 8, !tbaa !5
  %116 = getelementptr inbounds i8, ptr %115, i32 1
  store ptr %116, ptr %7, align 8, !tbaa !5
  %117 = load i8, ptr %115, align 1, !tbaa !11
  store i8 %117, ptr %10, align 1, !tbaa !11
  store ptr null, ptr %9, align 8, !tbaa !5
  %118 = load i8, ptr %10, align 1, !tbaa !11
  %119 = sext i8 %118 to i32
  %120 = icmp eq i32 %119, 84
  br i1 %120, label %121, label %136

121:                                              ; preds = %114
  %122 = load ptr, ptr %7, align 8, !tbaa !5
  %123 = load i8, ptr %122, align 1, !tbaa !11
  %124 = sext i8 %123 to i32
  %125 = icmp eq i32 %124, 73
  br i1 %125, label %131, label %126

126:                                              ; preds = %121
  %127 = load ptr, ptr %7, align 8, !tbaa !5
  %128 = load i8, ptr %127, align 1, !tbaa !11
  %129 = sext i8 %128 to i32
  %130 = icmp eq i32 %129, 79
  br i1 %130, label %131, label %136

131:                                              ; preds = %126, %121
  %132 = load ptr, ptr %4, align 8, !tbaa !5
  %133 = load ptr, ptr %7, align 8, !tbaa !5
  %134 = getelementptr inbounds i8, ptr %133, i32 1
  store ptr %134, ptr %7, align 8, !tbaa !5
  %135 = call ptr @qh_skipfilename(ptr noundef %132, ptr noundef %134)
  store ptr %135, ptr %7, align 8, !tbaa !5
  br label %74, !llvm.loop !23

136:                                              ; preds = %126, %114
  %137 = load i8, ptr %10, align 1, !tbaa !11
  %138 = getelementptr inbounds [4 x i8], ptr %13, i64 0, i64 1
  store i8 %137, ptr %138, align 1, !tbaa !11
  %139 = load ptr, ptr %6, align 8, !tbaa !5
  %140 = getelementptr inbounds [4 x i8], ptr %13, i64 0, i64 0
  %141 = call ptr @strstr(ptr noundef %139, ptr noundef %140) #7
  %142 = icmp ne ptr %141, null
  br i1 %142, label %143, label %145

143:                                              ; preds = %136
  %144 = getelementptr inbounds [4 x i8], ptr %13, i64 0, i64 0
  store ptr %144, ptr %9, align 8, !tbaa !5
  br label %310

145:                                              ; preds = %136
  %146 = call ptr @__ctype_b_loc() #8
  %147 = load ptr, ptr %146, align 8, !tbaa !5
  %148 = load i8, ptr %10, align 1, !tbaa !11
  %149 = sext i8 %148 to i32
  %150 = sext i32 %149 to i64
  %151 = getelementptr inbounds i16, ptr %147, i64 %150
  %152 = load i16, ptr %151, align 2, !tbaa !18
  %153 = zext i16 %152 to i32
  %154 = and i32 %153, 256
  %155 = icmp ne i32 %154, 0
  br i1 %155, label %156, label %309

156:                                              ; preds = %145
  store i8 32, ptr %11, align 1, !tbaa !11
  store i8 32, ptr %12, align 1, !tbaa !11
  %157 = load i8, ptr %10, align 1, !tbaa !11
  %158 = getelementptr inbounds [5 x i8], ptr %14, i64 0, i64 1
  store i8 %157, ptr %158, align 1, !tbaa !11
  %159 = load i8, ptr %10, align 1, !tbaa !11
  %160 = getelementptr inbounds [6 x i8], ptr %15, i64 0, i64 1
  store i8 %159, ptr %160, align 1, !tbaa !11
  br label %161

161:                                              ; preds = %306, %156
  %162 = load ptr, ptr %9, align 8, !tbaa !5
  %163 = icmp ne ptr %162, null
  br i1 %163, label %182, label %164

164:                                              ; preds = %161
  %165 = load ptr, ptr %7, align 8, !tbaa !5
  %166 = load i8, ptr %165, align 1, !tbaa !11
  %167 = sext i8 %166 to i32
  %168 = icmp ne i32 %167, 0
  br i1 %168, label %169, label %182

169:                                              ; preds = %164
  %170 = call ptr @__ctype_b_loc() #8
  %171 = load ptr, ptr %170, align 8, !tbaa !5
  %172 = load ptr, ptr %7, align 8, !tbaa !5
  %173 = load i8, ptr %172, align 1, !tbaa !11
  %174 = sext i8 %173 to i32
  %175 = sext i32 %174 to i64
  %176 = getelementptr inbounds i16, ptr %171, i64 %175
  %177 = load i16, ptr %176, align 2, !tbaa !18
  %178 = zext i16 %177 to i32
  %179 = and i32 %178, 8192
  %180 = icmp ne i32 %179, 0
  %181 = xor i1 %180, true
  br label %182

182:                                              ; preds = %169, %164, %161
  %183 = phi i1 [ false, %164 ], [ false, %161 ], [ %181, %169 ]
  br i1 %183, label %184, label %308

184:                                              ; preds = %182
  %185 = load ptr, ptr %7, align 8, !tbaa !5
  %186 = getelementptr inbounds i8, ptr %185, i32 1
  store ptr %186, ptr %7, align 8, !tbaa !5
  %187 = load i8, ptr %185, align 1, !tbaa !11
  store i8 %187, ptr %11, align 1, !tbaa !11
  %188 = call ptr @__ctype_b_loc() #8
  %189 = load ptr, ptr %188, align 8, !tbaa !5
  %190 = load i8, ptr %11, align 1, !tbaa !11
  %191 = sext i8 %190 to i32
  %192 = sext i32 %191 to i64
  %193 = getelementptr inbounds i16, ptr %189, i64 %192
  %194 = load i16, ptr %193, align 2, !tbaa !18
  %195 = zext i16 %194 to i32
  %196 = and i32 %195, 1024
  %197 = icmp ne i32 %196, 0
  br i1 %197, label %198, label %224

198:                                              ; preds = %184
  %199 = load i8, ptr %11, align 1, !tbaa !11
  %200 = getelementptr inbounds [5 x i8], ptr %14, i64 0, i64 2
  store i8 %199, ptr %200, align 1, !tbaa !11
  %201 = load ptr, ptr %6, align 8, !tbaa !5
  %202 = getelementptr inbounds [5 x i8], ptr %14, i64 0, i64 0
  %203 = call ptr @strstr(ptr noundef %201, ptr noundef %202) #7
  %204 = icmp ne ptr %203, null
  br i1 %204, label %205, label %207

205:                                              ; preds = %198
  %206 = getelementptr inbounds [5 x i8], ptr %14, i64 0, i64 0
  store ptr %206, ptr %9, align 8, !tbaa !5
  br label %207

207:                                              ; preds = %205, %198
  %208 = load i8, ptr %12, align 1, !tbaa !11
  %209 = sext i8 %208 to i32
  %210 = icmp ne i32 %209, 32
  br i1 %210, label %211, label %223

211:                                              ; preds = %207
  %212 = load i8, ptr %12, align 1, !tbaa !11
  %213 = getelementptr inbounds [6 x i8], ptr %15, i64 0, i64 2
  store i8 %212, ptr %213, align 1, !tbaa !11
  %214 = load i8, ptr %11, align 1, !tbaa !11
  %215 = getelementptr inbounds [6 x i8], ptr %15, i64 0, i64 3
  store i8 %214, ptr %215, align 1, !tbaa !11
  %216 = load ptr, ptr %6, align 8, !tbaa !5
  %217 = getelementptr inbounds [6 x i8], ptr %15, i64 0, i64 0
  %218 = call ptr @strstr(ptr noundef %216, ptr noundef %217) #7
  %219 = icmp ne ptr %218, null
  br i1 %219, label %220, label %222

220:                                              ; preds = %211
  %221 = getelementptr inbounds [6 x i8], ptr %15, i64 0, i64 0
  store ptr %221, ptr %9, align 8, !tbaa !5
  br label %222

222:                                              ; preds = %220, %211
  br label %223

223:                                              ; preds = %222, %207
  br label %306

224:                                              ; preds = %184
  %225 = load i8, ptr %10, align 1, !tbaa !11
  %226 = sext i8 %225 to i32
  %227 = icmp eq i32 %226, 81
  br i1 %227, label %228, label %295

228:                                              ; preds = %224
  %229 = call ptr @__ctype_b_loc() #8
  %230 = load ptr, ptr %229, align 8, !tbaa !5
  %231 = load i8, ptr %11, align 1, !tbaa !11
  %232 = sext i8 %231 to i32
  %233 = sext i32 %232 to i64
  %234 = getelementptr inbounds i16, ptr %230, i64 %233
  %235 = load i16, ptr %234, align 2, !tbaa !18
  %236 = zext i16 %235 to i32
  %237 = and i32 %236, 2048
  %238 = icmp ne i32 %237, 0
  br i1 %238, label %239, label %295

239:                                              ; preds = %228
  %240 = load i8, ptr %12, align 1, !tbaa !11
  %241 = sext i8 %240 to i32
  %242 = icmp ne i32 %241, 98
  br i1 %242, label %243, label %295

243:                                              ; preds = %239
  %244 = load i8, ptr %12, align 1, !tbaa !11
  %245 = sext i8 %244 to i32
  %246 = icmp eq i32 %245, 32
  br i1 %246, label %258, label %247

247:                                              ; preds = %243
  %248 = call ptr @__ctype_b_loc() #8
  %249 = load ptr, ptr %248, align 8, !tbaa !5
  %250 = load i8, ptr %12, align 1, !tbaa !11
  %251 = sext i8 %250 to i32
  %252 = sext i32 %251 to i64
  %253 = getelementptr inbounds i16, ptr %249, i64 %252
  %254 = load i16, ptr %253, align 2, !tbaa !18
  %255 = zext i16 %254 to i32
  %256 = and i32 %255, 512
  %257 = icmp ne i32 %256, 0
  br i1 %257, label %258, label %295

258:                                              ; preds = %247, %243
  %259 = call ptr @__ctype_b_loc() #8
  %260 = load ptr, ptr %259, align 8, !tbaa !5
  %261 = load ptr, ptr %7, align 8, !tbaa !5
  %262 = load i8, ptr %261, align 1, !tbaa !11
  %263 = sext i8 %262 to i32
  %264 = sext i32 %263 to i64
  %265 = getelementptr inbounds i16, ptr %260, i64 %264
  %266 = load i16, ptr %265, align 2, !tbaa !18
  %267 = zext i16 %266 to i32
  %268 = and i32 %267, 2048
  %269 = icmp ne i32 %268, 0
  br i1 %269, label %270, label %284

270:                                              ; preds = %258
  %271 = load i8, ptr %11, align 1, !tbaa !11
  %272 = getelementptr inbounds [6 x i8], ptr %15, i64 0, i64 2
  store i8 %271, ptr %272, align 1, !tbaa !11
  %273 = load ptr, ptr %7, align 8, !tbaa !5
  %274 = getelementptr inbounds i8, ptr %273, i32 1
  store ptr %274, ptr %7, align 8, !tbaa !5
  %275 = load i8, ptr %273, align 1, !tbaa !11
  %276 = getelementptr inbounds [6 x i8], ptr %15, i64 0, i64 3
  store i8 %275, ptr %276, align 1, !tbaa !11
  %277 = load ptr, ptr %6, align 8, !tbaa !5
  %278 = getelementptr inbounds [6 x i8], ptr %15, i64 0, i64 0
  %279 = call ptr @strstr(ptr noundef %277, ptr noundef %278) #7
  %280 = icmp ne ptr %279, null
  br i1 %280, label %281, label %283

281:                                              ; preds = %270
  %282 = getelementptr inbounds [6 x i8], ptr %15, i64 0, i64 0
  store ptr %282, ptr %9, align 8, !tbaa !5
  br label %283

283:                                              ; preds = %281, %270
  br label %294

284:                                              ; preds = %258
  %285 = load i8, ptr %11, align 1, !tbaa !11
  %286 = getelementptr inbounds [5 x i8], ptr %14, i64 0, i64 2
  store i8 %285, ptr %286, align 1, !tbaa !11
  %287 = load ptr, ptr %6, align 8, !tbaa !5
  %288 = getelementptr inbounds [5 x i8], ptr %14, i64 0, i64 0
  %289 = call ptr @strstr(ptr noundef %287, ptr noundef %288) #7
  %290 = icmp ne ptr %289, null
  br i1 %290, label %291, label %293

291:                                              ; preds = %284
  %292 = getelementptr inbounds [5 x i8], ptr %14, i64 0, i64 0
  store ptr %292, ptr %9, align 8, !tbaa !5
  br label %293

293:                                              ; preds = %291, %284
  br label %294

294:                                              ; preds = %293, %283
  br label %305

295:                                              ; preds = %247, %239, %228, %224
  %296 = load ptr, ptr %7, align 8, !tbaa !5
  %297 = getelementptr inbounds i8, ptr %296, i64 -1
  %298 = call double @qh_strtod(ptr noundef %297, ptr noundef %8)
  %299 = load ptr, ptr %7, align 8, !tbaa !5
  %300 = load ptr, ptr %8, align 8, !tbaa !5
  %301 = icmp ult ptr %299, %300
  br i1 %301, label %302, label %304

302:                                              ; preds = %295
  %303 = load ptr, ptr %8, align 8, !tbaa !5
  store ptr %303, ptr %7, align 8, !tbaa !5
  br label %304

304:                                              ; preds = %302, %295
  br label %305

305:                                              ; preds = %304, %294
  br label %306

306:                                              ; preds = %305, %223
  %307 = load i8, ptr %11, align 1, !tbaa !11
  store i8 %307, ptr %12, align 1, !tbaa !11
  br label %161, !llvm.loop !24

308:                                              ; preds = %182
  br label %309

309:                                              ; preds = %308, %145
  br label %310

310:                                              ; preds = %309, %143
  %311 = load ptr, ptr %9, align 8, !tbaa !5
  %312 = icmp ne ptr %311, null
  br i1 %312, label %313, label %325

313:                                              ; preds = %310
  %314 = load ptr, ptr %9, align 8, !tbaa !5
  store i8 39, ptr %314, align 1, !tbaa !11
  %315 = load ptr, ptr %9, align 8, !tbaa !5
  %316 = load ptr, ptr %9, align 8, !tbaa !5
  %317 = call i64 @strlen(ptr noundef %316) #7
  %318 = sub i64 %317, 1
  %319 = getelementptr inbounds i8, ptr %315, i64 %318
  store i8 39, ptr %319, align 1, !tbaa !11
  %320 = load ptr, ptr %4, align 8, !tbaa !5
  %321 = load ptr, ptr %4, align 8, !tbaa !5
  %322 = getelementptr inbounds %struct.qhT, ptr %321, i32 0, i32 158
  %323 = load ptr, ptr %322, align 8, !tbaa !12
  %324 = load ptr, ptr %9, align 8, !tbaa !5
  call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %320, ptr noundef %323, i32 noundef 6029, ptr noundef @.str.3, ptr noundef %324)
  store i32 1, ptr %16, align 4, !tbaa !9
  br label %325

325:                                              ; preds = %313, %310
  br label %74, !llvm.loop !23

326:                                              ; preds = %113, %74
  %327 = load i32, ptr %16, align 4, !tbaa !9
  %328 = icmp ne i32 %327, 0
  br i1 %328, label %329, label %331

329:                                              ; preds = %326
  %330 = load ptr, ptr %4, align 8, !tbaa !5
  call void @qh_errexit(ptr noundef %330, i32 noundef 1, ptr noundef null, ptr noundef null)
  br label %331

331:                                              ; preds = %329, %326
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 6, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 5, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #6
  ret void
}

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #2

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

declare void @qh_fprintf(ptr noundef, ptr noundef, i32 noundef, ptr noundef, ...) #4

declare void @qh_errexit(ptr noundef, i32 noundef, ptr noundef, ptr noundef) #4

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

; Function Attrs: nounwind willreturn memory(none)
declare ptr @__ctype_b_loc() #5

declare ptr @qh_skipfilename(ptr noundef, ptr noundef) #4

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

declare double @qh_strtod(ptr noundef, ptr noundef) #4

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { nocallback nofree 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 = { "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 willreturn memory(none) "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) }
attributes #8 = { nounwind willreturn memory(none) }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!7, !7, i64 0}
!12 = !{!13, !6, i64 2424}
!13 = !{!"qhT", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20, !14, i64 24, !10, i64 32, !10, i64 36, !10, i64 40, !10, i64 44, !10, i64 48, !10, i64 52, !10, i64 56, !10, i64 60, !14, i64 64, !14, i64 72, !10, i64 80, !10, i64 84, !10, i64 88, !10, i64 92, !10, i64 96, !10, i64 100, !6, i64 104, !10, i64 112, !10, i64 116, !6, i64 120, !10, i64 128, !10, i64 132, !10, i64 136, !10, i64 140, !10, i64 144, !10, i64 148, !10, i64 152, !14, i64 160, !14, i64 168, !10, i64 176, !10, i64 180, !10, i64 184, !10, i64 188, !14, i64 192, !14, i64 200, !10, i64 208, !10, i64 212, !14, i64 216, !10, i64 224, !10, i64 228, !10, i64 232, !10, i64 236, !10, i64 240, !10, i64 244, !10, i64 248, !10, i64 252, !10, i64 256, !10, i64 260, !10, i64 264, !10, i64 268, !10, i64 272, !10, i64 276, !10, i64 280, !10, i64 284, !10, i64 288, !10, i64 292, !10, i64 296, !7, i64 300, !10, i64 416, !10, i64 420, !10, i64 424, !10, i64 428, !10, i64 432, !10, i64 436, !10, i64 440, !10, i64 444, !14, i64 448, !14, i64 456, !14, i64 464, !10, i64 472, !10, i64 476, !10, i64 480, !10, i64 484, !10, i64 488, !10, i64 492, !10, i64 496, !10, i64 500, !10, i64 504, !10, i64 508, !10, i64 512, !10, i64 516, !10, i64 520, !10, i64 524, !10, i64 528, !10, i64 532, !10, i64 536, !10, i64 540, !10, i64 544, !14, i64 552, !10, i64 560, !10, i64 564, !10, i64 568, !10, i64 572, !10, i64 576, !10, i64 580, !10, i64 584, !10, i64 588, !14, i64 592, !10, i64 600, !6, i64 608, !6, i64 616, !10, i64 624, !10, i64 628, !10, i64 632, !10, i64 636, !10, i64 640, !6, i64 648, !10, i64 656, !6, i64 664, !10, i64 672, !7, i64 676, !10, i64 932, !7, i64 936, !7, i64 1192, !10, i64 1704, !10, i64 1708, !10, i64 1712, !10, i64 1716, !10, i64 1720, !10, i64 1724, !6, i64 1728, !6, i64 1736, !6, i64 1744, !6, i64 1752, !14, i64 1760, !14, i64 1768, !14, i64 1776, !14, i64 1784, !14, i64 1792, !14, i64 1800, !14, i64 1808, !14, i64 1816, !14, i64 1824, !14, i64 1832, !14, i64 1840, !14, i64 1848, !14, i64 1856, !14, i64 1864, !6, i64 1872, !14, i64 1880, !14, i64 1888, !14, i64 1896, !14, i64 1904, !10, i64 1912, !7, i64 1916, !7, i64 1928, !7, i64 2128, !7, i64 2168, !7, i64 2368, !6, i64 2408, !6, i64 2416, !6, i64 2424, !6, i64 2432, !10, i64 2440, !10, i64 2444, !10, i64 2448, !6, i64 2456, !6, i64 2464, !6, i64 2472, !6, i64 2480, !6, i64 2488, !10, i64 2496, !10, i64 2500, !6, i64 2504, !10, i64 2512, !6, i64 2520, !10, i64 2528, !6, i64 2536, !6, i64 2544, !6, i64 2552, !6, i64 2560, !10, i64 2568, !10, i64 2572, !10, i64 2576, !10, i64 2580, !10, i64 2584, !10, i64 2588, !10, i64 2592, !10, i64 2596, !15, i64 2600, !10, i64 2608, !10, i64 2612, !10, i64 2616, !10, i64 2620, !10, i64 2624, !6, i64 2632, !6, i64 2640, !10, i64 2648, !10, i64 2652, !10, i64 2656, !14, i64 2664, !10, i64 2672, !14, i64 2680, !14, i64 2688, !14, i64 2696, !10, i64 2704, !10, i64 2708, !10, i64 2712, !10, i64 2716, !10, i64 2720, !14, i64 2728, !14, i64 2736, !10, i64 2744, !10, i64 2748, !10, i64 2752, !10, i64 2756, !10, i64 2760, !10, i64 2764, !14, i64 2768, !14, i64 2776, !10, i64 2784, !10, i64 2788, !10, i64 2792, !10, i64 2796, !6, i64 2800, !6, i64 2808, !6, i64 2816, !6, i64 2824, !6, i64 2832, !6, i64 2840, !6, i64 2848, !6, i64 2856, !6, i64 2864, !10, i64 2872, !6, i64 2880, !6, i64 2888, !10, i64 2896, !10, i64 2900, !10, i64 2904, !6, i64 2912, !14, i64 2920, !14, i64 2928, !14, i64 2936, !14, i64 2944, !10, i64 2952, !10, i64 2956, !10, i64 2960, !10, i64 2964, !10, i64 2968, !10, i64 2972, !6, i64 2976, !10, i64 2984, !10, i64 2988, !7, i64 2992, !7, i64 3192, !10, i64 3232, !14, i64 3240, !6, i64 3248, !6, i64 3256, !6, i64 3264, !16, i64 3272, !17, i64 3424}
!14 = !{!"double", !7, i64 0}
!15 = !{!"long", !7, i64 0}
!16 = !{!"qhmemT", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !6, i64 56, !10, i64 64, !6, i64 72, !6, i64 80, !10, i64 88, !10, i64 92, !10, i64 96, !10, i64 100, !10, i64 104, !10, i64 108, !10, i64 112, !10, i64 116, !10, i64 120, !10, i64 124, !10, i64 128, !10, i64 132, !10, i64 136, !10, i64 140, !10, i64 144}
!17 = !{!"qhstatT", !7, i64 0, !7, i64 1992, !7, i64 2256, !7, i64 4248, !7, i64 4746, !7, i64 4995, !7, i64 5248, !10, i64 5320, !10, i64 5324, !10, i64 5328, !10, i64 5332, !14, i64 5336}
!18 = !{!19, !19, i64 0}
!19 = !{!"short", !7, i64 0}
!20 = distinct !{!20, !21}
!21 = !{!"llvm.loop.mustprogress"}
!22 = distinct !{!22, !21}
!23 = distinct !{!23, !21}
!24 = distinct !{!24, !21}


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

@__const.qh_checkflags.chkkey = external hidden unnamed_addr constant [4 x i8], align 1
@__const.qh_checkflags.chkopt = external hidden unnamed_addr constant [5 x i8], align 1
@__const.qh_checkflags.chkopt2 = external hidden unnamed_addr constant [6 x i8], align 1
@.str = external hidden unnamed_addr constant [89 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [92 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [102 x i8], align 1

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

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

; Function Attrs: nounwind uwtable
define dso_local void @qh_checkflags(ptr noundef %0, ptr noundef %1, ptr noundef %2) local_unnamed_addr #1 {
  %4 = alloca ptr, align 8
  %5 = alloca [4 x i8], align 4
  %6 = alloca [5 x i8], align 1
  %7 = alloca [6 x i8], align 1
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #6
  %8 = load i32, ptr @__const.qh_checkflags.chkkey, align 1
  store i32 %8, ptr %5, align 4
  call void @llvm.lifetime.start.p0(i64 5, ptr nonnull %6) #6
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 1 dereferenceable(5) %6, ptr noundef nonnull align 1 dereferenceable(5) @__const.qh_checkflags.chkopt, i64 5, i1 false)
  call void @llvm.lifetime.start.p0(i64 6, ptr nonnull %7) #6
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 1 dereferenceable(6) %7, ptr noundef nonnull align 1 dereferenceable(6) @__const.qh_checkflags.chkopt2, i64 6, i1 false)
  %9 = load i8, ptr %2, align 1, !tbaa !5
  %.not = icmp eq i8 %9, 32
  br i1 %.not, label %10, label %15

10:                                               ; preds = %3
  %11 = tail call i64 @strlen(ptr noundef nonnull dereferenceable(1) %2) #7
  %12 = getelementptr i8, ptr %2, i64 %11
  %13 = getelementptr i8, ptr %12, i64 -1
  %14 = load i8, ptr %13, align 1, !tbaa !5
  %.not88 = icmp eq i8 %14, 32
  br i1 %.not88, label %18, label %15

15:                                               ; preds = %10, %3
  %16 = getelementptr inbounds i8, ptr %0, i64 2424
  %17 = load ptr, ptr %16, align 8, !tbaa !8
  tail call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %0, ptr noundef %17, i32 noundef 6026, ptr noundef nonnull @.str, ptr noundef nonnull %2) #6
  tail call void @qh_errexit(ptr noundef %0, i32 noundef 5, ptr noundef null, ptr noundef null) #6
  br label %18

18:                                               ; preds = %15, %10
  %19 = tail call ptr @strpbrk(ptr noundef nonnull %2, ptr noundef nonnull @.str.1) #7
  %.not89 = icmp eq ptr %19, null
  br i1 %.not89, label %23, label %20

20:                                               ; preds = %18
  %21 = getelementptr inbounds i8, ptr %0, i64 2424
  %22 = load ptr, ptr %21, align 8, !tbaa !8
  tail call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %0, ptr noundef %22, i32 noundef 6027, ptr noundef nonnull @.str.2, ptr noundef nonnull %2) #6
  tail call void @qh_errexit(ptr noundef %0, i32 noundef 5, ptr noundef null, ptr noundef null) #6
  br label %23

23:                                               ; preds = %20, %18
  %24 = load i8, ptr %1, align 1, !tbaa !5
  %.not90124 = icmp eq i8 %24, 0
  br i1 %.not90124, label %.outer._crit_edge.thread, label %.lr.ph

.lr.ph:                                           ; preds = %23
  %25 = tail call ptr @__ctype_b_loc() #8
  %26 = load ptr, ptr %25, align 8, !tbaa !16
  br label %27

27:                                               ; preds = %.lr.ph, %33
  %28 = phi i8 [ %24, %.lr.ph ], [ %35, %33 ]
  %.074125 = phi ptr [ %1, %.lr.ph ], [ %34, %33 ]
  %29 = sext i8 %28 to i64
  %30 = getelementptr inbounds i16, ptr %26, i64 %29
  %31 = load i16, ptr %30, align 2, !tbaa !17
  %32 = and i16 %31, 8192
  %.not91 = icmp eq i16 %32, 0
  br i1 %.not91, label %33, label %.preheader.lr.ph.lr.ph

33:                                               ; preds = %27
  %34 = getelementptr inbounds i8, ptr %.074125, i64 1
  %35 = load i8, ptr %34, align 1, !tbaa !5
  %.not90 = icmp eq i8 %35, 0
  br i1 %.not90, label %.outer._crit_edge.thread, label %27, !llvm.loop !19

.preheader.lr.ph.lr.ph:                           ; preds = %27
  %36 = tail call ptr @__ctype_b_loc() #8
  %37 = getelementptr inbounds i8, ptr %5, i64 1
  %38 = getelementptr inbounds i8, ptr %6, i64 1
  %39 = getelementptr inbounds i8, ptr %7, i64 1
  %40 = getelementptr inbounds i8, ptr %6, i64 2
  %41 = getelementptr inbounds i8, ptr %7, i64 2
  %42 = getelementptr inbounds i8, ptr %7, i64 3
  %43 = getelementptr inbounds i8, ptr %0, i64 2424
  br label %.preheader.lr.ph

.preheader.lr.ph:                                 ; preds = %.preheader.lr.ph.lr.ph, %.critedge4.thread
  %44 = phi i8 [ %28, %.preheader.lr.ph.lr.ph ], [ %.pr155, %.critedge4.thread ]
  %.0.ph138 = phi i32 [ 0, %.preheader.lr.ph.lr.ph ], [ %.1.ph, %.critedge4.thread ]
  %.175.ph137 = phi ptr [ %.074125, %.preheader.lr.ph.lr.ph ], [ %.6119.ph, %.critedge4.thread ]
  br label %.preheader

.preheader:                                       ; preds = %.preheader.lr.ph, %62
  %45 = phi i8 [ %44, %.preheader.lr.ph ], [ %65, %62 ]
  %.175130 = phi ptr [ %.175.ph137, %.preheader.lr.ph ], [ %64, %62 ]
  %46 = load ptr, ptr %36, align 8, !tbaa !16
  br label %47

47:                                               ; preds = %.preheader, %53
  %.2128 = phi ptr [ %.175130, %.preheader ], [ %54, %53 ]
  %48 = phi i8 [ %45, %.preheader ], [ %.pr, %53 ]
  %49 = sext i8 %48 to i64
  %50 = getelementptr inbounds i16, ptr %46, i64 %49
  %51 = load i16, ptr %50, align 2, !tbaa !17
  %52 = and i16 %51, 8192
  %.not94 = icmp eq i16 %52, 0
  br i1 %.not94, label %.critedge2, label %53

53:                                               ; preds = %47
  %54 = getelementptr inbounds i8, ptr %.2128, i64 1
  %.pr = load i8, ptr %54, align 1, !tbaa !5
  %.not93 = icmp eq i8 %.pr, 0
  br i1 %.not93, label %.critedge2, label %47, !llvm.loop !21

.critedge2:                                       ; preds = %53, %47
  %.lcssa = phi i8 [ 0, %53 ], [ %48, %47 ]
  %.2.lcssa = phi ptr [ %54, %53 ], [ %.2128, %47 ]
  %55 = icmp eq i8 %.lcssa, 45
  %spec.select.idx = zext i1 %55 to i64
  %spec.select = getelementptr inbounds i8, ptr %.2.lcssa, i64 %spec.select.idx
  %56 = load i8, ptr %spec.select, align 1, !tbaa !5
  %.not95 = icmp eq i8 %56, 0
  br i1 %.not95, label %.outer._crit_edge, label %57

57:                                               ; preds = %.critedge2
  %58 = getelementptr inbounds i8, ptr %spec.select, i64 1
  %59 = icmp eq i8 %56, 84
  br i1 %59, label %60, label %66

60:                                               ; preds = %57
  %61 = load i8, ptr %58, align 1, !tbaa !5
  switch i8 %61, label %66 [
    i8 73, label %62
    i8 79, label %62
  ]

62:                                               ; preds = %60, %60
  %63 = getelementptr inbounds i8, ptr %spec.select, i64 2
  %64 = call ptr @qh_skipfilename(ptr noundef %0, ptr noundef nonnull %63) #6
  %65 = load i8, ptr %64, align 1, !tbaa !5
  %.not92 = icmp eq i8 %65, 0
  br i1 %.not92, label %.outer._crit_edge, label %.preheader, !llvm.loop !22

66:                                               ; preds = %60, %57
  store i8 %56, ptr %37, align 1, !tbaa !5
  %67 = call ptr @strstr(ptr noundef nonnull dereferenceable(1) %2, ptr noundef nonnull dereferenceable(1) %5) #7
  %.not97 = icmp eq ptr %67, null
  br i1 %.not97, label %68, label %.critedge4

68:                                               ; preds = %66
  %69 = sext i8 %56 to i64
  %70 = getelementptr inbounds i16, ptr %46, i64 %69
  %71 = load i16, ptr %70, align 2, !tbaa !17
  %72 = and i16 %71, 256
  %.not98 = icmp eq i16 %72, 0
  br i1 %.not98, label %.critedge4.thread, label %73

73:                                               ; preds = %68
  store i8 %56, ptr %38, align 1, !tbaa !5
  store i8 %56, ptr %39, align 1, !tbaa !5
  %74 = icmp eq i8 %56, 81
  br label %75

75:                                               ; preds = %73, %select.unfold
  %.073135 = phi i8 [ 32, %73 ], [ %76, %select.unfold ]
  %.4134 = phi ptr [ %58, %73 ], [ %.5, %select.unfold ]
  %76 = load i8, ptr %.4134, align 1, !tbaa !5
  %.not100 = icmp eq i8 %76, 0
  br i1 %.not100, label %.outer._crit_edge, label %77

77:                                               ; preds = %75
  %78 = load ptr, ptr %36, align 8, !tbaa !16
  %79 = sext i8 %76 to i64
  %80 = getelementptr inbounds i16, ptr %78, i64 %79
  %81 = load i16, ptr %80, align 2, !tbaa !17
  %82 = zext i16 %81 to i32
  %83 = and i32 %82, 8192
  %.not101 = icmp eq i32 %83, 0
  br i1 %.not101, label %84, label %.critedge4.thread

84:                                               ; preds = %77
  %85 = getelementptr inbounds i8, ptr %.4134, i64 1
  %86 = and i32 %82, 1024
  %.not102 = icmp eq i32 %86, 0
  br i1 %.not102, label %91, label %87

87:                                               ; preds = %84
  store i8 %76, ptr %40, align 1, !tbaa !5
  %88 = call ptr @strstr(ptr noundef nonnull dereferenceable(1) %2, ptr noundef nonnull dereferenceable(1) %6) #7
  %.not107 = icmp eq ptr %88, null
  %spec.select111 = select i1 %.not107, ptr null, ptr %6
  %.not108 = icmp eq i8 %.073135, 32
  br i1 %.not108, label %select.unfold, label %89

89:                                               ; preds = %87
  store i8 %.073135, ptr %41, align 1, !tbaa !5
  store i8 %76, ptr %42, align 1, !tbaa !5
  %90 = call ptr @strstr(ptr noundef nonnull dereferenceable(1) %2, ptr noundef nonnull dereferenceable(1) %7) #7
  %.not109 = icmp eq ptr %90, null
  br i1 %.not109, label %select.unfold, label %.critedge4

91:                                               ; preds = %84
  br i1 %74, label %92, label %115

92:                                               ; preds = %91
  %93 = and i32 %82, 2048
  %94 = icmp ne i32 %93, 0
  %95 = icmp ne i8 %.073135, 98
  %or.cond = and i1 %95, %94
  br i1 %or.cond, label %96, label %115

96:                                               ; preds = %92
  %97 = icmp eq i8 %.073135, 32
  br i1 %97, label %103, label %98

98:                                               ; preds = %96
  %99 = sext i8 %.073135 to i64
  %100 = getelementptr inbounds i16, ptr %78, i64 %99
  %101 = load i16, ptr %100, align 2, !tbaa !17
  %102 = and i16 %101, 512
  %.not103 = icmp eq i16 %102, 0
  br i1 %.not103, label %115, label %103

103:                                              ; preds = %98, %96
  %104 = load i8, ptr %85, align 1, !tbaa !5
  %105 = sext i8 %104 to i64
  %106 = getelementptr inbounds i16, ptr %78, i64 %105
  %107 = load i16, ptr %106, align 2, !tbaa !17
  %108 = and i16 %107, 2048
  %.not104 = icmp eq i16 %108, 0
  br i1 %.not104, label %113, label %109

109:                                              ; preds = %103
  store i8 %76, ptr %41, align 1, !tbaa !5
  %110 = getelementptr inbounds i8, ptr %.4134, i64 2
  %111 = load i8, ptr %85, align 1, !tbaa !5
  store i8 %111, ptr %42, align 1, !tbaa !5
  %112 = call ptr @strstr(ptr noundef nonnull dereferenceable(1) %2, ptr noundef nonnull dereferenceable(1) %7) #7
  %.not106 = icmp eq ptr %112, null
  br i1 %.not106, label %select.unfold, label %.critedge4

113:                                              ; preds = %103
  store i8 %76, ptr %40, align 1, !tbaa !5
  %114 = call ptr @strstr(ptr noundef nonnull dereferenceable(1) %2, ptr noundef nonnull dereferenceable(1) %6) #7
  %.not105 = icmp eq ptr %114, null
  br i1 %.not105, label %select.unfold, label %.critedge4

115:                                              ; preds = %98, %92, %91
  %116 = call double @qh_strtod(ptr noundef nonnull %.4134, ptr noundef nonnull %4) #6
  %117 = load ptr, ptr %4, align 8, !tbaa !16
  %118 = icmp ult ptr %85, %117
  %spec.select115 = select i1 %118, ptr %117, ptr %85
  br label %select.unfold

select.unfold:                                    ; preds = %113, %109, %89, %115, %87
  %.278 = phi ptr [ %spec.select111, %87 ], [ null, %115 ], [ %spec.select111, %89 ], [ null, %109 ], [ null, %113 ]
  %.5 = phi ptr [ %85, %87 ], [ %spec.select115, %115 ], [ %85, %89 ], [ %110, %109 ], [ %85, %113 ]
  %.not99 = icmp eq ptr %.278, null
  br i1 %.not99, label %75, label %.critedge4, !llvm.loop !23

.critedge4:                                       ; preds = %113, %109, %89, %select.unfold, %66
  %.379 = phi ptr [ %5, %66 ], [ %7, %89 ], [ %7, %109 ], [ %6, %113 ], [ %.278, %select.unfold ]
  %.6 = phi ptr [ %58, %66 ], [ %85, %89 ], [ %110, %109 ], [ %85, %113 ], [ %.5, %select.unfold ]
  store i8 39, ptr %.379, align 1, !tbaa !5
  %119 = call i64 @strlen(ptr noundef nonnull dereferenceable(1) %.379) #7
  %120 = add i64 %119, -1
  %121 = getelementptr inbounds i8, ptr %.379, i64 %120
  store i8 39, ptr %121, align 1, !tbaa !5
  %122 = load ptr, ptr %43, align 8, !tbaa !8
  call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %0, ptr noundef %122, i32 noundef 6029, ptr noundef nonnull @.str.3, ptr noundef nonnull %.379) #6
  br label %.critedge4.thread

.critedge4.thread:                                ; preds = %77, %68, %.critedge4
  %.6119.ph = phi ptr [ %58, %68 ], [ %.6, %.critedge4 ], [ %.4134, %77 ]
  %.1.ph = phi i32 [ %.0.ph138, %68 ], [ 1, %.critedge4 ], [ %.0.ph138, %77 ]
  %.pr155 = load i8, ptr %.6119.ph, align 1, !tbaa !5
  %.not92129 = icmp eq i8 %.pr155, 0
  br i1 %.not92129, label %.outer._crit_edge, label %.preheader.lr.ph, !llvm.loop !22

.outer._crit_edge:                                ; preds = %.critedge4.thread, %62, %.critedge2, %75
  %.0.ph.lcssa = phi i32 [ %.0.ph138, %75 ], [ %.0.ph138, %.critedge2 ], [ %.0.ph138, %62 ], [ %.1.ph, %.critedge4.thread ]
  %.not96 = icmp eq i32 %.0.ph.lcssa, 0
  br i1 %.not96, label %.outer._crit_edge.thread, label %123

123:                                              ; preds = %.outer._crit_edge
  call void @qh_errexit(ptr noundef %0, i32 noundef 1, ptr noundef null, ptr noundef null) #6
  br label %.outer._crit_edge.thread

.outer._crit_edge.thread:                         ; preds = %33, %23, %123, %.outer._crit_edge
  call void @llvm.lifetime.end.p0(i64 6, ptr nonnull %7) #6
  call void @llvm.lifetime.end.p0(i64 5, ptr nonnull %6) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #6
  ret void
}

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #2

; Function Attrs: mustprogress nofree nounwind willreturn memory(argmem: read)
declare i64 @strlen(ptr nocapture noundef) local_unnamed_addr #3

declare void @qh_fprintf(ptr noundef, ptr noundef, i32 noundef, ptr noundef, ...) local_unnamed_addr #4

declare void @qh_errexit(ptr noundef, i32 noundef, ptr noundef, ptr noundef) local_unnamed_addr #4

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

; Function Attrs: mustprogress nofree nosync nounwind willreturn memory(none)
declare ptr @__ctype_b_loc() local_unnamed_addr #5

declare ptr @qh_skipfilename(ptr noundef, ptr noundef) local_unnamed_addr #4

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

declare double @qh_strtod(ptr noundef, ptr noundef) local_unnamed_addr #4

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { 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 #4 = { "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 nosync nounwind willreturn memory(none) "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) }
attributes #8 = { nounwind willreturn memory(none) }

!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 = !{!"omnipotent char", !7, i64 0}
!7 = !{!"Simple C/C++ TBAA"}
!8 = !{!9, !12, i64 2424}
!9 = !{!"qhT", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20, !11, i64 24, !10, i64 32, !10, i64 36, !10, i64 40, !10, i64 44, !10, i64 48, !10, i64 52, !10, i64 56, !10, i64 60, !11, i64 64, !11, i64 72, !10, i64 80, !10, i64 84, !10, i64 88, !10, i64 92, !10, i64 96, !10, i64 100, !12, i64 104, !10, i64 112, !10, i64 116, !12, i64 120, !10, i64 128, !10, i64 132, !10, i64 136, !10, i64 140, !10, i64 144, !10, i64 148, !10, i64 152, !11, i64 160, !11, i64 168, !10, i64 176, !10, i64 180, !10, i64 184, !10, i64 188, !11, i64 192, !11, i64 200, !10, i64 208, !10, i64 212, !11, i64 216, !10, i64 224, !10, i64 228, !10, i64 232, !10, i64 236, !10, i64 240, !10, i64 244, !10, i64 248, !10, i64 252, !10, i64 256, !10, i64 260, !10, i64 264, !10, i64 268, !10, i64 272, !10, i64 276, !10, i64 280, !10, i64 284, !10, i64 288, !10, i64 292, !10, i64 296, !6, i64 300, !10, i64 416, !10, i64 420, !10, i64 424, !10, i64 428, !10, i64 432, !10, i64 436, !10, i64 440, !10, i64 444, !11, i64 448, !11, i64 456, !11, i64 464, !10, i64 472, !10, i64 476, !10, i64 480, !10, i64 484, !10, i64 488, !10, i64 492, !10, i64 496, !10, i64 500, !10, i64 504, !10, i64 508, !10, i64 512, !10, i64 516, !10, i64 520, !10, i64 524, !10, i64 528, !10, i64 532, !10, i64 536, !10, i64 540, !10, i64 544, !11, i64 552, !10, i64 560, !10, i64 564, !10, i64 568, !10, i64 572, !10, i64 576, !10, i64 580, !10, i64 584, !10, i64 588, !11, i64 592, !10, i64 600, !12, i64 608, !12, i64 616, !10, i64 624, !10, i64 628, !10, i64 632, !10, i64 636, !10, i64 640, !12, i64 648, !10, i64 656, !12, i64 664, !10, i64 672, !6, i64 676, !10, i64 932, !6, i64 936, !6, i64 1192, !10, i64 1704, !10, i64 1708, !10, i64 1712, !10, i64 1716, !10, i64 1720, !10, i64 1724, !12, i64 1728, !12, i64 1736, !12, i64 1744, !12, i64 1752, !11, i64 1760, !11, i64 1768, !11, i64 1776, !11, i64 1784, !11, i64 1792, !11, i64 1800, !11, i64 1808, !11, i64 1816, !11, i64 1824, !11, i64 1832, !11, i64 1840, !11, i64 1848, !11, i64 1856, !11, i64 1864, !12, i64 1872, !11, i64 1880, !11, i64 1888, !11, i64 1896, !11, i64 1904, !10, i64 1912, !6, i64 1916, !6, i64 1928, !6, i64 2128, !6, i64 2168, !6, i64 2368, !12, i64 2408, !12, i64 2416, !12, i64 2424, !12, i64 2432, !10, i64 2440, !10, i64 2444, !10, i64 2448, !12, i64 2456, !12, i64 2464, !12, i64 2472, !12, i64 2480, !12, i64 2488, !10, i64 2496, !10, i64 2500, !12, i64 2504, !10, i64 2512, !12, i64 2520, !10, i64 2528, !12, i64 2536, !12, i64 2544, !12, i64 2552, !12, i64 2560, !10, i64 2568, !10, i64 2572, !10, i64 2576, !10, i64 2580, !10, i64 2584, !10, i64 2588, !10, i64 2592, !10, i64 2596, !13, i64 2600, !10, i64 2608, !10, i64 2612, !10, i64 2616, !10, i64 2620, !10, i64 2624, !12, i64 2632, !12, i64 2640, !10, i64 2648, !10, i64 2652, !10, i64 2656, !11, i64 2664, !10, i64 2672, !11, i64 2680, !11, i64 2688, !11, i64 2696, !10, i64 2704, !10, i64 2708, !10, i64 2712, !10, i64 2716, !10, i64 2720, !11, i64 2728, !11, i64 2736, !10, i64 2744, !10, i64 2748, !10, i64 2752, !10, i64 2756, !10, i64 2760, !10, i64 2764, !11, i64 2768, !11, i64 2776, !10, i64 2784, !10, i64 2788, !10, i64 2792, !10, i64 2796, !12, i64 2800, !12, i64 2808, !12, i64 2816, !12, i64 2824, !12, i64 2832, !12, i64 2840, !12, i64 2848, !12, i64 2856, !12, i64 2864, !10, i64 2872, !12, i64 2880, !12, i64 2888, !10, i64 2896, !10, i64 2900, !10, i64 2904, !12, i64 2912, !11, i64 2920, !11, i64 2928, !11, i64 2936, !11, i64 2944, !10, i64 2952, !10, i64 2956, !10, i64 2960, !10, i64 2964, !10, i64 2968, !10, i64 2972, !12, i64 2976, !10, i64 2984, !10, i64 2988, !6, i64 2992, !6, i64 3192, !10, i64 3232, !11, i64 3240, !12, i64 3248, !12, i64 3256, !12, i64 3264, !14, i64 3272, !15, i64 3424}
!10 = !{!"int", !6, i64 0}
!11 = !{!"double", !6, i64 0}
!12 = !{!"any pointer", !6, i64 0}
!13 = !{!"long", !6, i64 0}
!14 = !{!"qhmemT", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20, !12, i64 24, !12, i64 32, !12, i64 40, !12, i64 48, !12, i64 56, !10, i64 64, !12, i64 72, !12, i64 80, !10, i64 88, !10, i64 92, !10, i64 96, !10, i64 100, !10, i64 104, !10, i64 108, !10, i64 112, !10, i64 116, !10, i64 120, !10, i64 124, !10, i64 128, !10, i64 132, !10, i64 136, !10, i64 140, !10, i64 144}
!15 = !{!"qhstatT", !6, i64 0, !6, i64 1992, !6, i64 2256, !6, i64 4248, !6, i64 4746, !6, i64 4995, !6, i64 5248, !10, i64 5320, !10, i64 5324, !10, i64 5328, !10, i64 5332, !11, i64 5336}
!16 = !{!12, !12, i64 0}
!17 = !{!18, !18, i64 0}
!18 = !{!"short", !6, i64 0}
!19 = distinct !{!19, !20}
!20 = !{!"llvm.loop.mustprogress"}
!21 = distinct !{!21, !20}
!22 = distinct !{!22, !20}
!23 = distinct !{!23, !20}


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