; LLVM IR from jrl-umi3218/mc_rtc :: 3rd-party/qhull/src/libqhull_r (stat_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 }

@.str.233 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.234 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.235 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.236 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.237 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.238 = external hidden unnamed_addr constant [5 x i8], align 1

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

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

; Function Attrs: nounwind uwtable
define dso_local void @qh_printstatlevel(ptr noundef %0, ptr noundef %1, i32 noundef %2) #1 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  store i32 %2, ptr %6, align 4, !tbaa !9
  %7 = load i32, ptr %6, align 4, !tbaa !9
  %8 = icmp sge i32 %7, 249
  br i1 %8, label %19, label %9

9:                                                ; preds = %3
  %10 = load ptr, ptr %4, align 8, !tbaa !5
  %11 = getelementptr inbounds %struct.qhT, ptr %10, i32 0, i32 258
  %12 = getelementptr inbounds %struct.qhstatT, ptr %11, i32 0, i32 5
  %13 = load i32, ptr %6, align 4, !tbaa !9
  %14 = sext i32 %13 to i64
  %15 = getelementptr inbounds [249 x i8], ptr %12, i64 0, i64 %14
  %16 = load i8, ptr %15, align 1, !tbaa !11
  %17 = sext i8 %16 to i32
  %18 = icmp ne i32 %17, 0
  br i1 %18, label %19, label %20

19:                                               ; preds = %9, %3
  br label %257

20:                                               ; preds = %9
  %21 = load ptr, ptr %4, align 8, !tbaa !5
  %22 = getelementptr inbounds %struct.qhT, ptr %21, i32 0, i32 258
  %23 = getelementptr inbounds %struct.qhstatT, ptr %22, i32 0, i32 4
  %24 = load i32, ptr %6, align 4, !tbaa !9
  %25 = sext i32 %24 to i64
  %26 = getelementptr inbounds [249 x i8], ptr %23, i64 0, i64 %25
  %27 = load i8, ptr %26, align 1, !tbaa !11
  %28 = sext i8 %27 to i32
  %29 = icmp eq i32 %28, 0
  br i1 %29, label %30, label %40

30:                                               ; preds = %20
  %31 = load ptr, ptr %4, align 8, !tbaa !5
  %32 = load ptr, ptr %5, align 8, !tbaa !5
  %33 = load ptr, ptr %4, align 8, !tbaa !5
  %34 = getelementptr inbounds %struct.qhT, ptr %33, i32 0, i32 258
  %35 = getelementptr inbounds %struct.qhstatT, ptr %34, i32 0, i32 2
  %36 = load i32, ptr %6, align 4, !tbaa !9
  %37 = sext i32 %36 to i64
  %38 = getelementptr inbounds [249 x ptr], ptr %35, i64 0, i64 %37
  %39 = load ptr, ptr %38, align 8, !tbaa !5
  call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %31, ptr noundef %32, i32 noundef 9360, ptr noundef @.str.233, ptr noundef %39)
  br label %257

40:                                               ; preds = %20
  %41 = load ptr, ptr %4, align 8, !tbaa !5
  %42 = load i32, ptr %6, align 4, !tbaa !9
  %43 = call i32 @qh_nostatistic(ptr noundef %41, i32 noundef %42)
  %44 = icmp ne i32 %43, 0
  br i1 %44, label %54, label %45

45:                                               ; preds = %40
  %46 = load ptr, ptr %4, align 8, !tbaa !5
  %47 = getelementptr inbounds %struct.qhT, ptr %46, i32 0, i32 258
  %48 = getelementptr inbounds %struct.qhstatT, ptr %47, i32 0, i32 2
  %49 = load i32, ptr %6, align 4, !tbaa !9
  %50 = sext i32 %49 to i64
  %51 = getelementptr inbounds [249 x ptr], ptr %48, i64 0, i64 %50
  %52 = load ptr, ptr %51, align 8, !tbaa !5
  %53 = icmp ne ptr %52, null
  br i1 %53, label %55, label %54

54:                                               ; preds = %45, %40
  br label %257

55:                                               ; preds = %45
  %56 = load ptr, ptr %4, align 8, !tbaa !5
  %57 = getelementptr inbounds %struct.qhT, ptr %56, i32 0, i32 258
  %58 = getelementptr inbounds %struct.qhstatT, ptr %57, i32 0, i32 5
  %59 = load i32, ptr %6, align 4, !tbaa !9
  %60 = sext i32 %59 to i64
  %61 = getelementptr inbounds [249 x i8], ptr %58, i64 0, i64 %60
  store i8 1, ptr %61, align 1, !tbaa !11
  %62 = load ptr, ptr %4, align 8, !tbaa !5
  %63 = getelementptr inbounds %struct.qhT, ptr %62, i32 0, i32 258
  %64 = getelementptr inbounds %struct.qhstatT, ptr %63, i32 0, i32 3
  %65 = load i32, ptr %6, align 4, !tbaa !9
  %66 = sext i32 %65 to i64
  %67 = getelementptr inbounds [249 x i16], ptr %64, i64 0, i64 %66
  %68 = load i16, ptr %67, align 2, !tbaa !12
  %69 = sext i16 %68 to i32
  %70 = icmp ne i32 %69, -1
  br i1 %70, label %71, label %90

71:                                               ; preds = %55
  %72 = load ptr, ptr %4, align 8, !tbaa !5
  %73 = getelementptr inbounds %struct.qhT, ptr %72, i32 0, i32 258
  %74 = getelementptr inbounds %struct.qhstatT, ptr %73, i32 0, i32 0
  %75 = load ptr, ptr %4, align 8, !tbaa !5
  %76 = getelementptr inbounds %struct.qhT, ptr %75, i32 0, i32 258
  %77 = getelementptr inbounds %struct.qhstatT, ptr %76, i32 0, i32 3
  %78 = load i32, ptr %6, align 4, !tbaa !9
  %79 = sext i32 %78 to i64
  %80 = getelementptr inbounds [249 x i16], ptr %77, i64 0, i64 %79
  %81 = load i16, ptr %80, align 2, !tbaa !12
  %82 = trunc i16 %81 to i8
  %83 = zext i8 %82 to i64
  %84 = getelementptr inbounds [249 x %union.intrealT], ptr %74, i64 0, i64 %83
  %85 = load i32, ptr %84, align 8, !tbaa !11
  %86 = icmp eq i32 %85, 0
  br i1 %86, label %87, label %90

87:                                               ; preds = %71
  %88 = load ptr, ptr %4, align 8, !tbaa !5
  %89 = load ptr, ptr %5, align 8, !tbaa !5
  call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %88, ptr noundef %89, i32 noundef 9361, ptr noundef @.str.234)
  br label %247

90:                                               ; preds = %71, %55
  %91 = load ptr, ptr %4, align 8, !tbaa !5
  %92 = getelementptr inbounds %struct.qhT, ptr %91, i32 0, i32 258
  %93 = getelementptr inbounds %struct.qhstatT, ptr %92, i32 0, i32 4
  %94 = load i32, ptr %6, align 4, !tbaa !9
  %95 = sext i32 %94 to i64
  %96 = getelementptr inbounds [249 x i8], ptr %93, i64 0, i64 %95
  %97 = load i8, ptr %96, align 1, !tbaa !11
  %98 = sext i8 %97 to i32
  %99 = icmp sge i32 %98, 5
  br i1 %99, label %100, label %120

100:                                              ; preds = %90
  %101 = load ptr, ptr %4, align 8, !tbaa !5
  %102 = getelementptr inbounds %struct.qhT, ptr %101, i32 0, i32 258
  %103 = getelementptr inbounds %struct.qhstatT, ptr %102, i32 0, i32 3
  %104 = load i32, ptr %6, align 4, !tbaa !9
  %105 = sext i32 %104 to i64
  %106 = getelementptr inbounds [249 x i16], ptr %103, i64 0, i64 %105
  %107 = load i16, ptr %106, align 2, !tbaa !12
  %108 = sext i16 %107 to i32
  %109 = icmp eq i32 %108, -1
  br i1 %109, label %110, label %120

110:                                              ; preds = %100
  %111 = load ptr, ptr %4, align 8, !tbaa !5
  %112 = load ptr, ptr %5, align 8, !tbaa !5
  %113 = load ptr, ptr %4, align 8, !tbaa !5
  %114 = getelementptr inbounds %struct.qhT, ptr %113, i32 0, i32 258
  %115 = getelementptr inbounds %struct.qhstatT, ptr %114, i32 0, i32 0
  %116 = load i32, ptr %6, align 4, !tbaa !9
  %117 = sext i32 %116 to i64
  %118 = getelementptr inbounds [249 x %union.intrealT], ptr %115, i64 0, i64 %117
  %119 = load double, ptr %118, align 8, !tbaa !11
  call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %111, ptr noundef %112, i32 noundef 9362, ptr noundef @.str.235, double noundef %119)
  br label %246

120:                                              ; preds = %100, %90
  %121 = load ptr, ptr %4, align 8, !tbaa !5
  %122 = getelementptr inbounds %struct.qhT, ptr %121, i32 0, i32 258
  %123 = getelementptr inbounds %struct.qhstatT, ptr %122, i32 0, i32 4
  %124 = load i32, ptr %6, align 4, !tbaa !9
  %125 = sext i32 %124 to i64
  %126 = getelementptr inbounds [249 x i8], ptr %123, i64 0, i64 %125
  %127 = load i8, ptr %126, align 1, !tbaa !11
  %128 = sext i8 %127 to i32
  %129 = icmp sge i32 %128, 5
  br i1 %129, label %130, label %166

130:                                              ; preds = %120
  %131 = load ptr, ptr %4, align 8, !tbaa !5
  %132 = getelementptr inbounds %struct.qhT, ptr %131, i32 0, i32 258
  %133 = getelementptr inbounds %struct.qhstatT, ptr %132, i32 0, i32 3
  %134 = load i32, ptr %6, align 4, !tbaa !9
  %135 = sext i32 %134 to i64
  %136 = getelementptr inbounds [249 x i16], ptr %133, i64 0, i64 %135
  %137 = load i16, ptr %136, align 2, !tbaa !12
  %138 = sext i16 %137 to i32
  %139 = icmp ne i32 %138, -1
  br i1 %139, label %140, label %166

140:                                              ; preds = %130
  %141 = load ptr, ptr %4, align 8, !tbaa !5
  %142 = load ptr, ptr %5, align 8, !tbaa !5
  %143 = load ptr, ptr %4, align 8, !tbaa !5
  %144 = getelementptr inbounds %struct.qhT, ptr %143, i32 0, i32 258
  %145 = getelementptr inbounds %struct.qhstatT, ptr %144, i32 0, i32 0
  %146 = load i32, ptr %6, align 4, !tbaa !9
  %147 = sext i32 %146 to i64
  %148 = getelementptr inbounds [249 x %union.intrealT], ptr %145, i64 0, i64 %147
  %149 = load double, ptr %148, align 8, !tbaa !11
  %150 = load ptr, ptr %4, align 8, !tbaa !5
  %151 = getelementptr inbounds %struct.qhT, ptr %150, i32 0, i32 258
  %152 = getelementptr inbounds %struct.qhstatT, ptr %151, i32 0, i32 0
  %153 = load ptr, ptr %4, align 8, !tbaa !5
  %154 = getelementptr inbounds %struct.qhT, ptr %153, i32 0, i32 258
  %155 = getelementptr inbounds %struct.qhstatT, ptr %154, i32 0, i32 3
  %156 = load i32, ptr %6, align 4, !tbaa !9
  %157 = sext i32 %156 to i64
  %158 = getelementptr inbounds [249 x i16], ptr %155, i64 0, i64 %157
  %159 = load i16, ptr %158, align 2, !tbaa !12
  %160 = trunc i16 %159 to i8
  %161 = zext i8 %160 to i64
  %162 = getelementptr inbounds [249 x %union.intrealT], ptr %152, i64 0, i64 %161
  %163 = load i32, ptr %162, align 8, !tbaa !11
  %164 = sitofp i32 %163 to double
  %165 = fdiv double %149, %164
  call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %141, ptr noundef %142, i32 noundef 9363, ptr noundef @.str.235, double noundef %165)
  br label %245

166:                                              ; preds = %130, %120
  %167 = load ptr, ptr %4, align 8, !tbaa !5
  %168 = getelementptr inbounds %struct.qhT, ptr %167, i32 0, i32 258
  %169 = getelementptr inbounds %struct.qhstatT, ptr %168, i32 0, i32 4
  %170 = load i32, ptr %6, align 4, !tbaa !9
  %171 = sext i32 %170 to i64
  %172 = getelementptr inbounds [249 x i8], ptr %169, i64 0, i64 %171
  %173 = load i8, ptr %172, align 1, !tbaa !11
  %174 = sext i8 %173 to i32
  %175 = icmp slt i32 %174, 5
  br i1 %175, label %176, label %196

176:                                              ; preds = %166
  %177 = load ptr, ptr %4, align 8, !tbaa !5
  %178 = getelementptr inbounds %struct.qhT, ptr %177, i32 0, i32 258
  %179 = getelementptr inbounds %struct.qhstatT, ptr %178, i32 0, i32 3
  %180 = load i32, ptr %6, align 4, !tbaa !9
  %181 = sext i32 %180 to i64
  %182 = getelementptr inbounds [249 x i16], ptr %179, i64 0, i64 %181
  %183 = load i16, ptr %182, align 2, !tbaa !12
  %184 = sext i16 %183 to i32
  %185 = icmp eq i32 %184, -1
  br i1 %185, label %186, label %196

186:                                              ; preds = %176
  %187 = load ptr, ptr %4, align 8, !tbaa !5
  %188 = load ptr, ptr %5, align 8, !tbaa !5
  %189 = load ptr, ptr %4, align 8, !tbaa !5
  %190 = getelementptr inbounds %struct.qhT, ptr %189, i32 0, i32 258
  %191 = getelementptr inbounds %struct.qhstatT, ptr %190, i32 0, i32 0
  %192 = load i32, ptr %6, align 4, !tbaa !9
  %193 = sext i32 %192 to i64
  %194 = getelementptr inbounds [249 x %union.intrealT], ptr %191, i64 0, i64 %193
  %195 = load i32, ptr %194, align 8, !tbaa !11
  call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %187, ptr noundef %188, i32 noundef 9364, ptr noundef @.str.236, i32 noundef %195)
  br label %244

196:                                              ; preds = %176, %166
  %197 = load ptr, ptr %4, align 8, !tbaa !5
  %198 = getelementptr inbounds %struct.qhT, ptr %197, i32 0, i32 258
  %199 = getelementptr inbounds %struct.qhstatT, ptr %198, i32 0, i32 4
  %200 = load i32, ptr %6, align 4, !tbaa !9
  %201 = sext i32 %200 to i64
  %202 = getelementptr inbounds [249 x i8], ptr %199, i64 0, i64 %201
  %203 = load i8, ptr %202, align 1, !tbaa !11
  %204 = sext i8 %203 to i32
  %205 = icmp slt i32 %204, 5
  br i1 %205, label %206, label %243

206:                                              ; preds = %196
  %207 = load ptr, ptr %4, align 8, !tbaa !5
  %208 = getelementptr inbounds %struct.qhT, ptr %207, i32 0, i32 258
  %209 = getelementptr inbounds %struct.qhstatT, ptr %208, i32 0, i32 3
  %210 = load i32, ptr %6, align 4, !tbaa !9
  %211 = sext i32 %210 to i64
  %212 = getelementptr inbounds [249 x i16], ptr %209, i64 0, i64 %211
  %213 = load i16, ptr %212, align 2, !tbaa !12
  %214 = sext i16 %213 to i32
  %215 = icmp ne i32 %214, -1
  br i1 %215, label %216, label %243

216:                                              ; preds = %206
  %217 = load ptr, ptr %4, align 8, !tbaa !5
  %218 = load ptr, ptr %5, align 8, !tbaa !5
  %219 = load ptr, ptr %4, align 8, !tbaa !5
  %220 = getelementptr inbounds %struct.qhT, ptr %219, i32 0, i32 258
  %221 = getelementptr inbounds %struct.qhstatT, ptr %220, i32 0, i32 0
  %222 = load i32, ptr %6, align 4, !tbaa !9
  %223 = sext i32 %222 to i64
  %224 = getelementptr inbounds [249 x %union.intrealT], ptr %221, i64 0, i64 %223
  %225 = load i32, ptr %224, align 8, !tbaa !11
  %226 = sitofp i32 %225 to double
  %227 = load ptr, ptr %4, align 8, !tbaa !5
  %228 = getelementptr inbounds %struct.qhT, ptr %227, i32 0, i32 258
  %229 = getelementptr inbounds %struct.qhstatT, ptr %228, i32 0, i32 0
  %230 = load ptr, ptr %4, align 8, !tbaa !5
  %231 = getelementptr inbounds %struct.qhT, ptr %230, i32 0, i32 258
  %232 = getelementptr inbounds %struct.qhstatT, ptr %231, i32 0, i32 3
  %233 = load i32, ptr %6, align 4, !tbaa !9
  %234 = sext i32 %233 to i64
  %235 = getelementptr inbounds [249 x i16], ptr %232, i64 0, i64 %234
  %236 = load i16, ptr %235, align 2, !tbaa !12
  %237 = trunc i16 %236 to i8
  %238 = zext i8 %237 to i64
  %239 = getelementptr inbounds [249 x %union.intrealT], ptr %229, i64 0, i64 %238
  %240 = load i32, ptr %239, align 8, !tbaa !11
  %241 = sitofp i32 %240 to double
  %242 = fdiv double %226, %241
  call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %217, ptr noundef %218, i32 noundef 9365, ptr noundef @.str.237, double noundef %242)
  br label %243

243:                                              ; preds = %216, %206, %196
  br label %244

244:                                              ; preds = %243, %186
  br label %245

245:                                              ; preds = %244, %140
  br label %246

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

247:                                              ; preds = %246, %87
  %248 = load ptr, ptr %4, align 8, !tbaa !5
  %249 = load ptr, ptr %5, align 8, !tbaa !5
  %250 = load ptr, ptr %4, align 8, !tbaa !5
  %251 = getelementptr inbounds %struct.qhT, ptr %250, i32 0, i32 258
  %252 = getelementptr inbounds %struct.qhstatT, ptr %251, i32 0, i32 2
  %253 = load i32, ptr %6, align 4, !tbaa !9
  %254 = sext i32 %253 to i64
  %255 = getelementptr inbounds [249 x ptr], ptr %252, i64 0, i64 %254
  %256 = load ptr, ptr %255, align 8, !tbaa !5
  call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %248, ptr noundef %249, i32 noundef 9366, ptr noundef @.str.238, ptr noundef %256)
  br label %257

257:                                              ; preds = %247, %54, %30, %19
  ret void
}

attributes #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 = { 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" }

!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, !13, i64 0}
!13 = !{!"short", !7, i64 0}


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

%union.intrealT = type { double }

@.str.233 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.234 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.235 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.236 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.237 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.238 = external hidden unnamed_addr constant [5 x i8], align 1

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

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

; Function Attrs: nounwind uwtable
define dso_local void @qh_printstatlevel(ptr noundef %0, ptr noundef %1, i32 noundef %2) local_unnamed_addr #1 {
  %4 = icmp sgt i32 %2, 248
  br i1 %4, label %59, label %5

5:                                                ; preds = %3
  %6 = getelementptr inbounds i8, ptr %0, i64 3424
  %7 = getelementptr inbounds i8, ptr %0, i64 8419
  %8 = sext i32 %2 to i64
  %9 = getelementptr inbounds [249 x i8], ptr %7, i64 0, i64 %8
  %10 = load i8, ptr %9, align 1, !tbaa !5
  %.not = icmp eq i8 %10, 0
  br i1 %.not, label %11, label %59

11:                                               ; preds = %5
  %12 = getelementptr inbounds i8, ptr %0, i64 8170
  %13 = getelementptr inbounds [249 x i8], ptr %12, i64 0, i64 %8
  %14 = load i8, ptr %13, align 1, !tbaa !5
  %15 = icmp eq i8 %14, 0
  br i1 %15, label %16, label %20

16:                                               ; preds = %11
  %17 = getelementptr inbounds i8, ptr %0, i64 5680
  %18 = getelementptr inbounds [249 x ptr], ptr %17, i64 0, i64 %8
  %19 = load ptr, ptr %18, align 8, !tbaa !8
  tail call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef nonnull %0, ptr noundef %1, i32 noundef 9360, ptr noundef nonnull @.str.233, ptr noundef %19) #2
  br label %59

20:                                               ; preds = %11
  %21 = tail call i32 @qh_nostatistic(ptr noundef nonnull %0, i32 noundef %2)
  %.not63 = icmp eq i32 %21, 0
  br i1 %.not63, label %22, label %59

22:                                               ; preds = %20
  %23 = getelementptr inbounds i8, ptr %0, i64 5680
  %24 = getelementptr inbounds [249 x ptr], ptr %23, i64 0, i64 %8
  %25 = load ptr, ptr %24, align 8, !tbaa !8
  %.not64 = icmp eq ptr %25, null
  br i1 %.not64, label %59, label %26

26:                                               ; preds = %22
  store i8 1, ptr %9, align 1, !tbaa !5
  %27 = getelementptr inbounds i8, ptr %0, i64 7672
  %28 = getelementptr inbounds [249 x i16], ptr %27, i64 0, i64 %8
  %29 = load i16, ptr %28, align 2, !tbaa !10
  %.not65 = icmp eq i16 %29, -1
  br i1 %.not65, label %37, label %30

30:                                               ; preds = %26
  %31 = and i16 %29, 255
  %32 = zext nneg i16 %31 to i64
  %33 = getelementptr inbounds [249 x %union.intrealT], ptr %6, i64 0, i64 %32
  %34 = load i32, ptr %33, align 8, !tbaa !5
  %35 = icmp eq i32 %34, 0
  br i1 %35, label %36, label %.thread

36:                                               ; preds = %30
  tail call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef nonnull %0, ptr noundef %1, i32 noundef 9361, ptr noundef nonnull @.str.234) #2
  br label %57

37:                                               ; preds = %26
  %38 = load i8, ptr %13, align 1, !tbaa !5
  %39 = icmp sgt i8 %38, 4
  %40 = getelementptr inbounds [249 x %union.intrealT], ptr %6, i64 0, i64 %8
  br i1 %39, label %44, label %50

.thread:                                          ; preds = %30
  %41 = load i8, ptr %13, align 1, !tbaa !5
  %42 = icmp sgt i8 %41, 4
  %43 = getelementptr inbounds [249 x %union.intrealT], ptr %6, i64 0, i64 %8
  br i1 %42, label %46, label %52

44:                                               ; preds = %37
  %45 = load double, ptr %40, align 8, !tbaa !5
  tail call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef nonnull %0, ptr noundef %1, i32 noundef 9362, ptr noundef nonnull @.str.235, double noundef %45) #2
  br label %57

46:                                               ; preds = %.thread
  %47 = load double, ptr %43, align 8, !tbaa !5
  %48 = sitofp i32 %34 to double
  %49 = fdiv double %47, %48
  tail call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef nonnull %0, ptr noundef %1, i32 noundef 9363, ptr noundef nonnull @.str.235, double noundef %49) #2
  br label %57

50:                                               ; preds = %37
  %51 = load i32, ptr %40, align 8, !tbaa !5
  tail call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef nonnull %0, ptr noundef %1, i32 noundef 9364, ptr noundef nonnull @.str.236, i32 noundef %51) #2
  br label %57

52:                                               ; preds = %.thread
  %53 = load i32, ptr %43, align 8, !tbaa !5
  %54 = sitofp i32 %53 to double
  %55 = sitofp i32 %34 to double
  %56 = fdiv double %54, %55
  tail call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef nonnull %0, ptr noundef %1, i32 noundef 9365, ptr noundef nonnull @.str.237, double noundef %56) #2
  br label %57

57:                                               ; preds = %44, %50, %52, %46, %36
  %58 = load ptr, ptr %24, align 8, !tbaa !8
  tail call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef nonnull %0, ptr noundef %1, i32 noundef 9366, ptr noundef nonnull @.str.238, ptr noundef %58) #2
  br label %59

59:                                               ; preds = %20, %22, %3, %5, %57, %16
  ret void
}

attributes #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 = { 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 = { nounwind }

!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, !9, i64 0}
!9 = !{!"any pointer", !6, i64 0}
!10 = !{!11, !11, i64 0}
!11 = !{!"short", !6, i64 0}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,InstCombinePass,JumpThreadingPass,SROAPass,SimplifyCFGPass,TailCallElimPass