; LLVM IR from themisvaltinos/Partitioned-Hash-Join :: tests (test_helpers)

; 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.acutest_test_CMDLINE_OPTION_ = type { i8, ptr, i32, i32 }
%struct.acutest_test_ = type { ptr, ptr }
%struct.acutest_test_data_ = type { i8, double }

@acutest_verbose_level_ = external hidden global i32, align 4
@.str.6 = external hidden unnamed_addr constant [2 x i8], align 1
@acutest_argv0_ = external hidden global ptr, align 8
@acutest_colorize_ = external hidden global i32, align 4
@acutest_list_size_ = external hidden global i64, align 8
@acutest_test_data_ = external hidden global ptr, align 8
@stderr = external global ptr, align 8
@.str.16 = external hidden unnamed_addr constant [16 x i8], align 1
@acutest_cmdline_options_ = external hidden constant [16 x %struct.acutest_test_CMDLINE_OPTION_], align 16
@acutest_count_ = external hidden global i64, align 8
@acutest_no_exec_ = external hidden global i32, align 4
@acutest_tap_ = external hidden global i32, align 4
@acutest_no_summary_ = external hidden global i32, align 4
@acutest_worker_ = external hidden global i32, align 4
@.str.17 = external hidden unnamed_addr constant [7 x i8], align 1
@acutest_worker_index_ = external hidden global i32, align 4
@acutest_skip_mode_ = external hidden global i32, align 4
@.str.18 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [36 x i8], align 1
@acutest_stat_run_units_ = external hidden global i32, align 4
@.str.21 = external hidden unnamed_addr constant [36 x i8], align 1
@acutest_stat_failed_units_ = external hidden global i32, align 4
@.str.22 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.26 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.27 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.28 = external hidden unnamed_addr constant [5 x i8], align 1
@acutest_xml_output_ = external hidden global ptr, align 8
@.str.29 = external hidden unnamed_addr constant [40 x i8], align 1
@.str.30 = external hidden unnamed_addr constant [70 x i8], align 1
@.str.31 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.32 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.33 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.34 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.35 = external hidden unnamed_addr constant [14 x i8], align 1
@acutest_list_ = external dso_local constant [2 x %struct.acutest_test_], align 16

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

; Function Attrs: nounwind uwtable
declare hidden i32 @acutest_colored_printf_(i32 noundef, ptr noundef, ...) #1

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

; 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 i32 @main(i32 noundef %0, ptr noundef %1) #1 {
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  store i32 0, ptr %3, align 4
  store i32 %0, ptr %4, align 4, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #6
  %11 = load ptr, ptr %5, align 8, !tbaa !9
  %12 = getelementptr inbounds ptr, ptr %11, i64 0
  %13 = load ptr, ptr %12, align 8, !tbaa !9
  store ptr %13, ptr @acutest_argv0_, align 8, !tbaa !9
  %14 = call i32 @isatty(i32 noundef 1) #6
  store i32 %14, ptr @acutest_colorize_, align 4, !tbaa !5
  store i64 0, ptr @acutest_list_size_, align 8, !tbaa !11
  store i32 0, ptr %6, align 4, !tbaa !5
  br label %15

15:                                               ; preds = %25, %2
  %16 = load i32, ptr %6, align 4, !tbaa !5
  %17 = sext i32 %16 to i64
  %18 = getelementptr inbounds [0 x %struct.acutest_test_], ptr @acutest_list_, i64 0, i64 %17
  %19 = getelementptr inbounds %struct.acutest_test_, ptr %18, i32 0, i32 1
  %20 = load ptr, ptr %19, align 8, !tbaa !13
  %21 = icmp ne ptr %20, null
  br i1 %21, label %22, label %28

22:                                               ; preds = %15
  %23 = load i64, ptr @acutest_list_size_, align 8, !tbaa !11
  %24 = add i64 %23, 1
  store i64 %24, ptr @acutest_list_size_, align 8, !tbaa !11
  br label %25

25:                                               ; preds = %22
  %26 = load i32, ptr %6, align 4, !tbaa !5
  %27 = add nsw i32 %26, 1
  store i32 %27, ptr %6, align 4, !tbaa !5
  br label %15, !llvm.loop !15

28:                                               ; preds = %15
  %29 = load i64, ptr @acutest_list_size_, align 8, !tbaa !11
  %30 = call noalias ptr @calloc(i64 noundef %29, i64 noundef 16) #7
  store ptr %30, ptr @acutest_test_data_, align 8, !tbaa !9
  %31 = load ptr, ptr @acutest_test_data_, align 8, !tbaa !9
  %32 = icmp eq ptr %31, null
  br i1 %32, label %33, label %36

33:                                               ; preds = %28
  %34 = load ptr, ptr @stderr, align 8, !tbaa !9
  %35 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %34, ptr noundef @.str.16) #6
  call void @acutest_exit_(i32 noundef 2) #8
  unreachable

36:                                               ; preds = %28
  %37 = load i32, ptr %4, align 4, !tbaa !5
  %38 = load ptr, ptr %5, align 8, !tbaa !9
  %39 = call i32 @acutest_cmdline_read_(ptr noundef @acutest_cmdline_options_, i32 noundef %37, ptr noundef %38, ptr noundef @acutest_cmdline_callback_)
  call void @acutest_timer_init_()
  %40 = load i64, ptr @acutest_count_, align 8, !tbaa !11
  %41 = icmp eq i64 %40, 0
  br i1 %41, label %42, label %56

42:                                               ; preds = %36
  store i32 0, ptr %6, align 4, !tbaa !5
  br label %43

43:                                               ; preds = %52, %42
  %44 = load i32, ptr %6, align 4, !tbaa !5
  %45 = sext i32 %44 to i64
  %46 = getelementptr inbounds [0 x %struct.acutest_test_], ptr @acutest_list_, i64 0, i64 %45
  %47 = getelementptr inbounds %struct.acutest_test_, ptr %46, i32 0, i32 1
  %48 = load ptr, ptr %47, align 8, !tbaa !13
  %49 = icmp ne ptr %48, null
  br i1 %49, label %50, label %55

50:                                               ; preds = %43
  %51 = load i32, ptr %6, align 4, !tbaa !5
  call void @acutest_remember_(i32 noundef %51)
  br label %52

52:                                               ; preds = %50
  %53 = load i32, ptr %6, align 4, !tbaa !5
  %54 = add nsw i32 %53, 1
  store i32 %54, ptr %6, align 4, !tbaa !5
  br label %43, !llvm.loop !17

55:                                               ; preds = %43
  br label %56

56:                                               ; preds = %55, %36
  %57 = load i32, ptr @acutest_no_exec_, align 4, !tbaa !5
  %58 = icmp slt i32 %57, 0
  br i1 %58, label %59, label %69

59:                                               ; preds = %56
  store i32 0, ptr @acutest_no_exec_, align 4, !tbaa !5
  %60 = load i64, ptr @acutest_count_, align 8, !tbaa !11
  %61 = icmp ule i64 %60, 1
  br i1 %61, label %62, label %63

62:                                               ; preds = %59
  store i32 1, ptr @acutest_no_exec_, align 4, !tbaa !5
  br label %68

63:                                               ; preds = %59
  %64 = call i32 @acutest_is_tracer_present_()
  %65 = icmp ne i32 %64, 0
  br i1 %65, label %66, label %67

66:                                               ; preds = %63
  store i32 1, ptr @acutest_no_exec_, align 4, !tbaa !5
  br label %67

67:                                               ; preds = %66, %63
  br label %68

68:                                               ; preds = %67, %62
  br label %69

69:                                               ; preds = %68, %56
  %70 = load i32, ptr @acutest_tap_, align 4, !tbaa !5
  %71 = icmp ne i32 %70, 0
  br i1 %71, label %72, label %84

72:                                               ; preds = %69
  %73 = load i32, ptr @acutest_verbose_level_, align 4, !tbaa !5
  %74 = icmp sgt i32 %73, 2
  br i1 %74, label %75, label %76

75:                                               ; preds = %72
  store i32 2, ptr @acutest_verbose_level_, align 4, !tbaa !5
  br label %76

76:                                               ; preds = %75, %72
  store i32 1, ptr @acutest_no_summary_, align 4, !tbaa !5
  %77 = load i32, ptr @acutest_worker_, align 4, !tbaa !5
  %78 = icmp ne i32 %77, 0
  br i1 %78, label %83, label %79

79:                                               ; preds = %76
  %80 = load i64, ptr @acutest_count_, align 8, !tbaa !11
  %81 = trunc i64 %80 to i32
  %82 = call i32 (ptr, ...) @printf(ptr noundef @.str.17, i32 noundef %81)
  br label %83

83:                                               ; preds = %79, %76
  br label %84

84:                                               ; preds = %83, %69
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #6
  %85 = load i32, ptr @acutest_worker_index_, align 4, !tbaa !5
  store i32 %85, ptr %7, align 4, !tbaa !5
  store i32 0, ptr %6, align 4, !tbaa !5
  br label %86

86:                                               ; preds = %120, %84
  %87 = load i32, ptr %6, align 4, !tbaa !5
  %88 = sext i32 %87 to i64
  %89 = getelementptr inbounds [0 x %struct.acutest_test_], ptr @acutest_list_, i64 0, i64 %88
  %90 = getelementptr inbounds %struct.acutest_test_, ptr %89, i32 0, i32 1
  %91 = load ptr, ptr %90, align 8, !tbaa !13
  %92 = icmp ne ptr %91, null
  br i1 %92, label %93, label %123

93:                                               ; preds = %86
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #6
  %94 = load ptr, ptr @acutest_test_data_, align 8, !tbaa !9
  %95 = load i32, ptr %6, align 4, !tbaa !5
  %96 = sext i32 %95 to i64
  %97 = getelementptr inbounds %struct.acutest_test_data_, ptr %94, i64 %96
  %98 = getelementptr inbounds %struct.acutest_test_data_, ptr %97, i32 0, i32 0
  %99 = load i8, ptr %98, align 8, !tbaa !18
  %100 = zext i8 %99 to i32
  %101 = and i32 %100, 1
  store i32 %101, ptr %8, align 4, !tbaa !5
  %102 = load i32, ptr @acutest_skip_mode_, align 4, !tbaa !5
  %103 = icmp ne i32 %102, 0
  br i1 %103, label %104, label %109

104:                                              ; preds = %93
  %105 = load i32, ptr %8, align 4, !tbaa !5
  %106 = icmp ne i32 %105, 0
  %107 = xor i1 %106, true
  %108 = zext i1 %107 to i32
  store i32 %108, ptr %8, align 4, !tbaa !5
  br label %109

109:                                              ; preds = %104, %93
  %110 = load i32, ptr %8, align 4, !tbaa !5
  %111 = icmp ne i32 %110, 0
  br i1 %111, label %112, label %119

112:                                              ; preds = %109
  %113 = load i32, ptr %6, align 4, !tbaa !5
  %114 = sext i32 %113 to i64
  %115 = getelementptr inbounds [0 x %struct.acutest_test_], ptr @acutest_list_, i64 0, i64 %114
  %116 = load i32, ptr %7, align 4, !tbaa !5
  %117 = add nsw i32 %116, 1
  store i32 %117, ptr %7, align 4, !tbaa !5
  %118 = load i32, ptr %6, align 4, !tbaa !5
  call void @acutest_run_(ptr noundef %115, i32 noundef %116, i32 noundef %118)
  br label %119

119:                                              ; preds = %112, %109
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #6
  br label %120

120:                                              ; preds = %119
  %121 = load i32, ptr %6, align 4, !tbaa !5
  %122 = add nsw i32 %121, 1
  store i32 %122, ptr %6, align 4, !tbaa !5
  br label %86, !llvm.loop !21

123:                                              ; preds = %86
  %124 = load i32, ptr @acutest_no_summary_, align 4, !tbaa !5
  %125 = icmp ne i32 %124, 0
  br i1 %125, label %167, label %126

126:                                              ; preds = %123
  %127 = load i32, ptr @acutest_verbose_level_, align 4, !tbaa !5
  %128 = icmp sge i32 %127, 1
  br i1 %128, label %129, label %167

129:                                              ; preds = %126
  %130 = load i32, ptr @acutest_verbose_level_, align 4, !tbaa !5
  %131 = icmp sge i32 %130, 3
  br i1 %131, label %132, label %146

132:                                              ; preds = %129
  %133 = call i32 (i32, ptr, ...) @acutest_colored_printf_(i32 noundef 3, ptr noundef @.str.18)
  %134 = load i64, ptr @acutest_list_size_, align 8, !tbaa !11
  %135 = trunc i64 %134 to i32
  %136 = call i32 (ptr, ...) @printf(ptr noundef @.str.19, i32 noundef %135)
  %137 = load i32, ptr @acutest_stat_run_units_, align 4, !tbaa !5
  %138 = call i32 (ptr, ...) @printf(ptr noundef @.str.20, i32 noundef %137)
  %139 = load i32, ptr @acutest_stat_failed_units_, align 4, !tbaa !5
  %140 = call i32 (ptr, ...) @printf(ptr noundef @.str.21, i32 noundef %139)
  %141 = load i64, ptr @acutest_list_size_, align 8, !tbaa !11
  %142 = trunc i64 %141 to i32
  %143 = load i32, ptr @acutest_stat_run_units_, align 4, !tbaa !5
  %144 = sub nsw i32 %142, %143
  %145 = call i32 (ptr, ...) @printf(ptr noundef @.str.22, i32 noundef %144)
  br label %146

146:                                              ; preds = %132, %129
  %147 = load i32, ptr @acutest_stat_failed_units_, align 4, !tbaa !5
  %148 = icmp eq i32 %147, 0
  br i1 %148, label %149, label %152

149:                                              ; preds = %146
  %150 = call i32 (i32, ptr, ...) @acutest_colored_printf_(i32 noundef 4, ptr noundef @.str.23)
  %151 = call i32 (ptr, ...) @printf(ptr noundef @.str.24)
  br label %161

152:                                              ; preds = %146
  %153 = call i32 (i32, ptr, ...) @acutest_colored_printf_(i32 noundef 5, ptr noundef @.str.25)
  %154 = load i32, ptr @acutest_stat_failed_units_, align 4, !tbaa !5
  %155 = load i32, ptr @acutest_stat_run_units_, align 4, !tbaa !5
  %156 = load i32, ptr @acutest_stat_failed_units_, align 4, !tbaa !5
  %157 = icmp eq i32 %156, 1
  %158 = zext i1 %157 to i64
  %159 = select i1 %157, ptr @.str.27, ptr @.str.28
  %160 = call i32 (ptr, ...) @printf(ptr noundef @.str.26, i32 noundef %154, i32 noundef %155, ptr noundef %159)
  br label %161

161:                                              ; preds = %152, %149
  %162 = load i32, ptr @acutest_verbose_level_, align 4, !tbaa !5
  %163 = icmp sge i32 %162, 3
  br i1 %163, label %164, label %166

164:                                              ; preds = %161
  %165 = call i32 (ptr, ...) @printf(ptr noundef @.str.6)
  br label %166

166:                                              ; preds = %164, %161
  br label %167

167:                                              ; preds = %166, %126, %123
  %168 = load ptr, ptr @acutest_xml_output_, align 8, !tbaa !9
  %169 = icmp ne ptr %168, null
  br i1 %169, label %170, label %247

170:                                              ; preds = %167
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #6
  %171 = load ptr, ptr %5, align 8, !tbaa !9
  %172 = getelementptr inbounds ptr, ptr %171, i64 0
  %173 = load ptr, ptr %172, align 8, !tbaa !9
  %174 = call ptr @__xpg_basename(ptr noundef %173) #6
  store ptr %174, ptr %9, align 8, !tbaa !9
  %175 = load ptr, ptr @acutest_xml_output_, align 8, !tbaa !9
  %176 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %175, ptr noundef @.str.29) #6
  %177 = load ptr, ptr @acutest_xml_output_, align 8, !tbaa !9
  %178 = load ptr, ptr %9, align 8, !tbaa !9
  %179 = load i64, ptr @acutest_list_size_, align 8, !tbaa !11
  %180 = trunc i64 %179 to i32
  %181 = load i32, ptr @acutest_stat_failed_units_, align 4, !tbaa !5
  %182 = load i32, ptr @acutest_stat_failed_units_, align 4, !tbaa !5
  %183 = load i64, ptr @acutest_list_size_, align 8, !tbaa !11
  %184 = trunc i64 %183 to i32
  %185 = load i32, ptr @acutest_stat_run_units_, align 4, !tbaa !5
  %186 = sub nsw i32 %184, %185
  %187 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %177, ptr noundef @.str.30, ptr noundef %178, i32 noundef %180, i32 noundef %181, i32 noundef %182, i32 noundef %186) #6
  store i32 0, ptr %6, align 4, !tbaa !5
  br label %188

188:                                              ; preds = %239, %170
  %189 = load i32, ptr %6, align 4, !tbaa !5
  %190 = sext i32 %189 to i64
  %191 = getelementptr inbounds [0 x %struct.acutest_test_], ptr @acutest_list_, i64 0, i64 %190
  %192 = getelementptr inbounds %struct.acutest_test_, ptr %191, i32 0, i32 1
  %193 = load ptr, ptr %192, align 8, !tbaa !13
  %194 = icmp ne ptr %193, null
  br i1 %194, label %195, label %242

195:                                              ; preds = %188
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #6
  %196 = load ptr, ptr @acutest_test_data_, align 8, !tbaa !9
  %197 = load i32, ptr %6, align 4, !tbaa !5
  %198 = sext i32 %197 to i64
  %199 = getelementptr inbounds %struct.acutest_test_data_, ptr %196, i64 %198
  store ptr %199, ptr %10, align 8, !tbaa !9
  %200 = load ptr, ptr @acutest_xml_output_, align 8, !tbaa !9
  %201 = load i32, ptr %6, align 4, !tbaa !5
  %202 = sext i32 %201 to i64
  %203 = getelementptr inbounds [0 x %struct.acutest_test_], ptr @acutest_list_, i64 0, i64 %202
  %204 = getelementptr inbounds %struct.acutest_test_, ptr %203, i32 0, i32 0
  %205 = load ptr, ptr %204, align 8, !tbaa !22
  %206 = load ptr, ptr %10, align 8, !tbaa !9
  %207 = getelementptr inbounds %struct.acutest_test_data_, ptr %206, i32 0, i32 1
  %208 = load double, ptr %207, align 8, !tbaa !23
  %209 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %200, ptr noundef @.str.31, ptr noundef %205, double noundef %208) #6
  %210 = load ptr, ptr %10, align 8, !tbaa !9
  %211 = getelementptr inbounds %struct.acutest_test_data_, ptr %210, i32 0, i32 0
  %212 = load i8, ptr %211, align 8, !tbaa !18
  %213 = zext i8 %212 to i32
  %214 = and i32 %213, 4
  %215 = icmp ne i32 %214, 0
  br i1 %215, label %216, label %219

216:                                              ; preds = %195
  %217 = load ptr, ptr @acutest_xml_output_, align 8, !tbaa !9
  %218 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %217, ptr noundef @.str.32) #6
  br label %219

219:                                              ; preds = %216, %195
  %220 = load ptr, ptr %10, align 8, !tbaa !9
  %221 = getelementptr inbounds %struct.acutest_test_data_, ptr %220, i32 0, i32 0
  %222 = load i8, ptr %221, align 8, !tbaa !18
  %223 = zext i8 %222 to i32
  %224 = and i32 %223, 4
  %225 = icmp ne i32 %224, 0
  br i1 %225, label %236, label %226

226:                                              ; preds = %219
  %227 = load ptr, ptr %10, align 8, !tbaa !9
  %228 = getelementptr inbounds %struct.acutest_test_data_, ptr %227, i32 0, i32 0
  %229 = load i8, ptr %228, align 8, !tbaa !18
  %230 = zext i8 %229 to i32
  %231 = and i32 %230, 2
  %232 = icmp ne i32 %231, 0
  br i1 %232, label %236, label %233

233:                                              ; preds = %226
  %234 = load ptr, ptr @acutest_xml_output_, align 8, !tbaa !9
  %235 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %234, ptr noundef @.str.33) #6
  br label %236

236:                                              ; preds = %233, %226, %219
  %237 = load ptr, ptr @acutest_xml_output_, align 8, !tbaa !9
  %238 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %237, ptr noundef @.str.34) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #6
  br label %239

239:                                              ; preds = %236
  %240 = load i32, ptr %6, align 4, !tbaa !5
  %241 = add nsw i32 %240, 1
  store i32 %241, ptr %6, align 4, !tbaa !5
  br label %188, !llvm.loop !24

242:                                              ; preds = %188
  %243 = load ptr, ptr @acutest_xml_output_, align 8, !tbaa !9
  %244 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %243, ptr noundef @.str.35) #6
  %245 = load ptr, ptr @acutest_xml_output_, align 8, !tbaa !9
  %246 = call i32 @fclose(ptr noundef %245)
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #6
  br label %247

247:                                              ; preds = %242, %167
  call void @acutest_cleanup_()
  %248 = load i32, ptr @acutest_stat_failed_units_, align 4, !tbaa !5
  %249 = icmp eq i32 %248, 0
  %250 = zext i1 %249 to i64
  %251 = select i1 %249, i32 0, i32 1
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #6
  ret i32 %251
}

; Function Attrs: nounwind
declare i32 @isatty(i32 noundef) #3

; Function Attrs: nounwind allocsize(0,1)
declare noalias ptr @calloc(i64 noundef, i64 noundef) #4

; Function Attrs: nounwind
declare i32 @fprintf(ptr noundef, ptr noundef, ...) #3

; Function Attrs: noreturn nounwind uwtable
declare hidden void @acutest_exit_(i32 noundef) #5

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

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

; Function Attrs: nounwind uwtable
declare hidden void @acutest_timer_init_() #1

; Function Attrs: nounwind uwtable
declare hidden void @acutest_remember_(i32 noundef) #1

; Function Attrs: nounwind uwtable
declare hidden i32 @acutest_is_tracer_present_() #1

; Function Attrs: nounwind uwtable
declare hidden void @acutest_run_(ptr noundef, i32 noundef, i32 noundef) #1

; Function Attrs: nounwind
declare ptr @__xpg_basename(ptr noundef) #3

declare i32 @fclose(ptr noundef) #2

; Function Attrs: nounwind uwtable
declare hidden void @acutest_cleanup_() #1

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 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind "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 allocsize(0,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 #5 = { noreturn 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 #6 = { nounwind }
attributes #7 = { nounwind allocsize(0,1) }
attributes #8 = { noreturn }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"long", !7, i64 0}
!13 = !{!14, !10, i64 8}
!14 = !{!"acutest_test_", !10, i64 0, !10, i64 8}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.mustprogress"}
!17 = distinct !{!17, !16}
!18 = !{!19, !7, i64 0}
!19 = !{!"acutest_test_data_", !7, i64 0, !20, i64 8}
!20 = !{!"double", !7, i64 0}
!21 = distinct !{!21, !16}
!22 = !{!14, !10, i64 0}
!23 = !{!19, !20, i64 8}
!24 = distinct !{!24, !16}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%struct.acutest_test_CMDLINE_OPTION_ = type { i8, ptr, i32, i32 }
%struct.acutest_test_ = type { ptr, ptr }
%struct.acutest_test_data_ = type { i8, double }

@acutest_verbose_level_ = external hidden local_unnamed_addr global i32, align 4
@.str.6 = external hidden unnamed_addr constant [2 x i8], align 1
@acutest_argv0_ = external hidden local_unnamed_addr global ptr, align 8
@acutest_colorize_ = external hidden local_unnamed_addr global i32, align 4
@acutest_list_size_ = external hidden local_unnamed_addr global i64, align 8
@acutest_test_data_ = external hidden local_unnamed_addr global ptr, align 8
@stderr = external local_unnamed_addr global ptr, align 8
@.str.16 = external hidden unnamed_addr constant [16 x i8], align 1
@acutest_cmdline_options_ = external hidden constant [16 x %struct.acutest_test_CMDLINE_OPTION_], align 16
@acutest_count_ = external hidden local_unnamed_addr global i64, align 8
@acutest_no_exec_ = external hidden local_unnamed_addr global i32, align 4
@acutest_tap_ = external hidden local_unnamed_addr global i32, align 4
@acutest_no_summary_ = external hidden local_unnamed_addr global i32, align 4
@acutest_worker_ = external hidden local_unnamed_addr global i32, align 4
@.str.17 = external hidden unnamed_addr constant [7 x i8], align 1
@acutest_worker_index_ = external hidden local_unnamed_addr global i32, align 4
@acutest_skip_mode_ = external hidden local_unnamed_addr global i32, align 4
@.str.18 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [36 x i8], align 1
@acutest_stat_run_units_ = external hidden local_unnamed_addr global i32, align 4
@.str.21 = external hidden unnamed_addr constant [36 x i8], align 1
@acutest_stat_failed_units_ = external hidden local_unnamed_addr global i32, align 4
@.str.22 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.26 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.27 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.28 = external hidden unnamed_addr constant [5 x i8], align 1
@acutest_xml_output_ = external hidden local_unnamed_addr global ptr, align 8
@.str.29 = external hidden unnamed_addr constant [40 x i8], align 1
@.str.30 = external hidden unnamed_addr constant [70 x i8], align 1
@.str.31 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.32 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.33 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.34 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.35 = external hidden unnamed_addr constant [14 x i8], align 1
@acutest_list_ = external dso_local constant [2 x %struct.acutest_test_], align 16

; Function Attrs: nounwind uwtable
declare hidden i32 @acutest_colored_printf_(i32 noundef, ptr noundef, ...) local_unnamed_addr #0

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

; Function Attrs: nounwind uwtable
define dso_local range(i32 0, 2) i32 @main(i32 noundef %0, ptr noundef %1) local_unnamed_addr #0 {
  %3 = load ptr, ptr %1, align 8, !tbaa !5
  store ptr %3, ptr @acutest_argv0_, align 8, !tbaa !5
  %4 = tail call i32 @isatty(i32 noundef 1) #5
  store i32 %4, ptr @acutest_colorize_, align 4, !tbaa !9
  store i64 0, ptr @acutest_list_size_, align 8, !tbaa !11
  %5 = load ptr, ptr getelementptr inbounds (i8, ptr @acutest_list_, i64 8), align 8
  %.not44 = icmp eq ptr %5, null
  br i1 %.not44, label %10, label %.lr.ph

.lr.ph:                                           ; preds = %2, %.lr.ph
  %6 = phi i64 [ %7, %.lr.ph ], [ 0, %2 ]
  %7 = add nuw nsw i64 %6, 1
  %8 = getelementptr inbounds [0 x %struct.acutest_test_], ptr @acutest_list_, i64 0, i64 %7, i32 1
  %9 = load ptr, ptr %8, align 8, !tbaa !13
  %.not = icmp eq ptr %9, null
  br i1 %.not, label %._crit_edge, label %.lr.ph, !llvm.loop !15

._crit_edge:                                      ; preds = %.lr.ph
  store i64 %7, ptr @acutest_list_size_, align 8, !tbaa !11
  br label %10

10:                                               ; preds = %._crit_edge, %2
  %11 = phi i64 [ %7, %._crit_edge ], [ 0, %2 ]
  %12 = tail call noalias ptr @calloc(i64 noundef %11, i64 noundef 16) #6
  store ptr %12, ptr @acutest_test_data_, align 8, !tbaa !5
  %13 = icmp eq ptr %12, null
  br i1 %13, label %14, label %17

14:                                               ; preds = %10
  %15 = load ptr, ptr @stderr, align 8, !tbaa !5
  %16 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %15, ptr noundef nonnull @.str.16) #7
  tail call void @acutest_exit_(i32 noundef 2) #8
  unreachable

17:                                               ; preds = %10
  %18 = tail call i32 @acutest_cmdline_read_(ptr noundef nonnull @acutest_cmdline_options_, i32 noundef %0, ptr noundef nonnull %1, ptr noundef nonnull @acutest_cmdline_callback_)
  tail call void @acutest_timer_init_()
  %19 = load i64, ptr @acutest_count_, align 8, !tbaa !11
  %20 = icmp ne i64 %19, 0
  %or.cond60 = or i1 %20, %.not44
  br i1 %or.cond60, label %.loopexit, label %.lr.ph48

.lr.ph48:                                         ; preds = %17, %.lr.ph48
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph48 ], [ 0, %17 ]
  %21 = trunc nuw nsw i64 %indvars.iv to i32
  tail call void @acutest_remember_(i32 noundef %21)
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %22 = getelementptr inbounds [0 x %struct.acutest_test_], ptr @acutest_list_, i64 0, i64 %indvars.iv.next, i32 1
  %23 = load ptr, ptr %22, align 8, !tbaa !13
  %.not30 = icmp eq ptr %23, null
  br i1 %.not30, label %.loopexit, label %.lr.ph48, !llvm.loop !17

.loopexit:                                        ; preds = %.lr.ph48, %17
  %24 = load i32, ptr @acutest_no_exec_, align 4, !tbaa !9
  %25 = icmp slt i32 %24, 0
  br i1 %25, label %26, label %31

26:                                               ; preds = %.loopexit
  store i32 0, ptr @acutest_no_exec_, align 4, !tbaa !9
  %27 = load i64, ptr @acutest_count_, align 8, !tbaa !11
  %28 = icmp ult i64 %27, 2
  br i1 %28, label %.sink.split, label %29

29:                                               ; preds = %26
  %30 = tail call i32 @acutest_is_tracer_present_()
  %.not31 = icmp eq i32 %30, 0
  br i1 %.not31, label %31, label %.sink.split

.sink.split:                                      ; preds = %29, %26
  store i32 1, ptr @acutest_no_exec_, align 4, !tbaa !9
  br label %31

31:                                               ; preds = %.sink.split, %29, %.loopexit
  %32 = load i32, ptr @acutest_tap_, align 4, !tbaa !9
  %.not32 = icmp eq i32 %32, 0
  br i1 %.not32, label %43, label %33

33:                                               ; preds = %31
  %34 = load i32, ptr @acutest_verbose_level_, align 4, !tbaa !9
  %35 = icmp sgt i32 %34, 2
  br i1 %35, label %36, label %37

36:                                               ; preds = %33
  store i32 2, ptr @acutest_verbose_level_, align 4, !tbaa !9
  br label %37

37:                                               ; preds = %36, %33
  store i32 1, ptr @acutest_no_summary_, align 4, !tbaa !9
  %38 = load i32, ptr @acutest_worker_, align 4, !tbaa !9
  %.not33 = icmp eq i32 %38, 0
  br i1 %.not33, label %39, label %43

39:                                               ; preds = %37
  %40 = load i64, ptr @acutest_count_, align 8, !tbaa !11
  %41 = trunc i64 %40 to i32
  %42 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.17, i32 noundef %41)
  br label %43

43:                                               ; preds = %37, %39, %31
  br i1 %.not44, label %._crit_edge54, label %.lr.ph53.preheader

.lr.ph53.preheader:                               ; preds = %43
  %44 = load i32, ptr @acutest_worker_index_, align 4, !tbaa !9
  %.pre69 = load ptr, ptr @acutest_test_data_, align 8, !tbaa !5
  %.pre71 = load i32, ptr @acutest_skip_mode_, align 4, !tbaa !9
  br label %.lr.ph53

.lr.ph53:                                         ; preds = %.lr.ph53.preheader, %55
  %45 = phi i32 [ %.pre71, %.lr.ph53.preheader ], [ %56, %55 ]
  %46 = phi ptr [ %.pre69, %.lr.ph53.preheader ], [ %57, %55 ]
  %indvars.iv63 = phi i64 [ 0, %.lr.ph53.preheader ], [ %indvars.iv.next64, %55 ]
  %47 = phi ptr [ @acutest_list_, %.lr.ph53.preheader ], [ %58, %55 ]
  %.02650 = phi i32 [ %44, %.lr.ph53.preheader ], [ %.127, %55 ]
  %48 = getelementptr inbounds %struct.acutest_test_data_, ptr %46, i64 %indvars.iv63
  %49 = load i8, ptr %48, align 8, !tbaa !18
  %50 = trunc i8 %49 to i1
  %51 = icmp eq i32 %45, 0
  %.not42 = xor i1 %51, %50
  br i1 %.not42, label %55, label %52

52:                                               ; preds = %.lr.ph53
  %53 = add nsw i32 %.02650, 1
  %54 = trunc nuw nsw i64 %indvars.iv63 to i32
  tail call void @acutest_run_(ptr noundef nonnull %47, i32 noundef %.02650, i32 noundef %54)
  %.pre = load ptr, ptr @acutest_test_data_, align 8, !tbaa !5
  %.pre70 = load i32, ptr @acutest_skip_mode_, align 4, !tbaa !9
  br label %55

55:                                               ; preds = %52, %.lr.ph53
  %56 = phi i32 [ %.pre70, %52 ], [ %45, %.lr.ph53 ]
  %57 = phi ptr [ %.pre, %52 ], [ %46, %.lr.ph53 ]
  %.127 = phi i32 [ %53, %52 ], [ %.02650, %.lr.ph53 ]
  %indvars.iv.next64 = add nuw nsw i64 %indvars.iv63, 1
  %58 = getelementptr inbounds [0 x %struct.acutest_test_], ptr @acutest_list_, i64 0, i64 %indvars.iv.next64
  %59 = getelementptr inbounds i8, ptr %58, i64 8
  %60 = load ptr, ptr %59, align 8, !tbaa !13
  %.not34 = icmp eq ptr %60, null
  br i1 %.not34, label %._crit_edge54, label %.lr.ph53, !llvm.loop !21

._crit_edge54:                                    ; preds = %55, %43
  %61 = load i32, ptr @acutest_no_summary_, align 4, !tbaa !9
  %62 = icmp eq i32 %61, 0
  %63 = load i32, ptr @acutest_verbose_level_, align 4
  %64 = icmp sgt i32 %63, 0
  %or.cond = select i1 %62, i1 %64, i1 false
  br i1 %or.cond, label %65, label %99

65:                                               ; preds = %._crit_edge54
  %66 = icmp ugt i32 %63, 2
  br i1 %66, label %67, label %81

67:                                               ; preds = %65
  %68 = tail call i32 (i32, ptr, ...) @acutest_colored_printf_(i32 noundef 3, ptr noundef nonnull @.str.18)
  %69 = load i64, ptr @acutest_list_size_, align 8, !tbaa !11
  %70 = trunc i64 %69 to i32
  %71 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.19, i32 noundef %70)
  %72 = load i32, ptr @acutest_stat_run_units_, align 4, !tbaa !9
  %73 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.20, i32 noundef %72)
  %74 = load i32, ptr @acutest_stat_failed_units_, align 4, !tbaa !9
  %75 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.21, i32 noundef %74)
  %76 = load i64, ptr @acutest_list_size_, align 8, !tbaa !11
  %77 = trunc i64 %76 to i32
  %78 = load i32, ptr @acutest_stat_run_units_, align 4, !tbaa !9
  %79 = sub nsw i32 %77, %78
  %80 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.22, i32 noundef %79)
  br label %81

81:                                               ; preds = %67, %65
  %82 = load i32, ptr @acutest_stat_failed_units_, align 4, !tbaa !9
  %83 = icmp eq i32 %82, 0
  br i1 %83, label %84, label %87

84:                                               ; preds = %81
  %85 = tail call i32 (i32, ptr, ...) @acutest_colored_printf_(i32 noundef 4, ptr noundef nonnull @.str.23)
  %86 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.24)
  br label %94

87:                                               ; preds = %81
  %88 = tail call i32 (i32, ptr, ...) @acutest_colored_printf_(i32 noundef 5, ptr noundef nonnull @.str.25)
  %89 = load i32, ptr @acutest_stat_failed_units_, align 4, !tbaa !9
  %90 = load i32, ptr @acutest_stat_run_units_, align 4, !tbaa !9
  %91 = icmp eq i32 %89, 1
  %92 = select i1 %91, ptr @.str.27, ptr @.str.28
  %93 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.26, i32 noundef %89, i32 noundef %90, ptr noundef nonnull %92)
  br label %94

94:                                               ; preds = %87, %84
  %95 = load i32, ptr @acutest_verbose_level_, align 4, !tbaa !9
  %96 = icmp sgt i32 %95, 2
  br i1 %96, label %97, label %99

97:                                               ; preds = %94
  %98 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.6)
  br label %99

99:                                               ; preds = %94, %97, %._crit_edge54
  %100 = load ptr, ptr @acutest_xml_output_, align 8, !tbaa !5
  %.not35 = icmp eq ptr %100, null
  br i1 %.not35, label %142, label %101

101:                                              ; preds = %99
  %102 = load ptr, ptr %1, align 8, !tbaa !5
  %103 = tail call ptr @__xpg_basename(ptr noundef %102) #5
  %104 = load ptr, ptr @acutest_xml_output_, align 8, !tbaa !5
  %105 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %104, ptr noundef nonnull @.str.29) #5
  %106 = load ptr, ptr @acutest_xml_output_, align 8, !tbaa !5
  %107 = load i64, ptr @acutest_list_size_, align 8, !tbaa !11
  %108 = trunc i64 %107 to i32
  %109 = load i32, ptr @acutest_stat_failed_units_, align 4, !tbaa !9
  %110 = load i32, ptr @acutest_stat_run_units_, align 4, !tbaa !9
  %111 = sub nsw i32 %108, %110
  %112 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %106, ptr noundef nonnull @.str.30, ptr noundef %103, i32 noundef %108, i32 noundef %109, i32 noundef %109, i32 noundef %111) #5
  br i1 %.not44, label %._crit_edge59, label %.lr.ph58

.lr.ph58:                                         ; preds = %101, %132
  %indvars.iv66 = phi i64 [ %indvars.iv.next67, %132 ], [ 0, %101 ]
  %113 = phi ptr [ %135, %132 ], [ @acutest_list_, %101 ]
  %114 = load ptr, ptr @acutest_test_data_, align 8, !tbaa !5
  %115 = getelementptr inbounds %struct.acutest_test_data_, ptr %114, i64 %indvars.iv66
  %116 = load ptr, ptr @acutest_xml_output_, align 8, !tbaa !5
  %117 = load ptr, ptr %113, align 8, !tbaa !22
  %118 = getelementptr inbounds i8, ptr %115, i64 8
  %119 = load double, ptr %118, align 8, !tbaa !23
  %120 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %116, ptr noundef nonnull @.str.31, ptr noundef %117, double noundef %119) #5
  %121 = load i8, ptr %115, align 8, !tbaa !18
  %122 = and i8 %121, 4
  %.not37 = icmp eq i8 %122, 0
  br i1 %.not37, label %126, label %123

123:                                              ; preds = %.lr.ph58
  %124 = load ptr, ptr @acutest_xml_output_, align 8, !tbaa !5
  %125 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %124, ptr noundef nonnull @.str.32) #5
  %.pre72 = load i8, ptr %115, align 8, !tbaa !18
  br label %126

126:                                              ; preds = %123, %.lr.ph58
  %127 = phi i8 [ %.pre72, %123 ], [ %121, %.lr.ph58 ]
  %128 = and i8 %127, 6
  %or.cond43 = icmp eq i8 %128, 0
  br i1 %or.cond43, label %129, label %132

129:                                              ; preds = %126
  %130 = load ptr, ptr @acutest_xml_output_, align 8, !tbaa !5
  %131 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %130, ptr noundef nonnull @.str.33) #5
  br label %132

132:                                              ; preds = %129, %126
  %133 = load ptr, ptr @acutest_xml_output_, align 8, !tbaa !5
  %134 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %133, ptr noundef nonnull @.str.34) #5
  %indvars.iv.next67 = add nuw nsw i64 %indvars.iv66, 1
  %135 = getelementptr inbounds [0 x %struct.acutest_test_], ptr @acutest_list_, i64 0, i64 %indvars.iv.next67
  %136 = getelementptr inbounds i8, ptr %135, i64 8
  %137 = load ptr, ptr %136, align 8, !tbaa !13
  %.not36 = icmp eq ptr %137, null
  br i1 %.not36, label %._crit_edge59, label %.lr.ph58, !llvm.loop !24

._crit_edge59:                                    ; preds = %132, %101
  %138 = load ptr, ptr @acutest_xml_output_, align 8, !tbaa !5
  %139 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %138, ptr noundef nonnull @.str.35) #5
  %140 = load ptr, ptr @acutest_xml_output_, align 8, !tbaa !5
  %141 = tail call i32 @fclose(ptr noundef %140)
  br label %142

142:                                              ; preds = %._crit_edge59, %99
  tail call void @acutest_cleanup_()
  %143 = load i32, ptr @acutest_stat_failed_units_, align 4, !tbaa !9
  %144 = icmp ne i32 %143, 0
  %145 = zext i1 %144 to i32
  ret i32 %145
}

; Function Attrs: nounwind
declare i32 @isatty(i32 noundef) local_unnamed_addr #2

; Function Attrs: mustprogress nofree nounwind willreturn allockind("alloc,zeroed") allocsize(0,1) memory(inaccessiblemem: readwrite)
declare noalias noundef ptr @calloc(i64 noundef, i64 noundef) local_unnamed_addr #3

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

; Function Attrs: noreturn nounwind uwtable
declare hidden void @acutest_exit_(i32 noundef) local_unnamed_addr #4

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

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

; Function Attrs: nounwind uwtable
declare hidden void @acutest_timer_init_() local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare hidden void @acutest_remember_(i32 noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare hidden i32 @acutest_is_tracer_present_() local_unnamed_addr #0

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

; Function Attrs: nounwind
declare ptr @__xpg_basename(ptr noundef) local_unnamed_addr #2

; Function Attrs: nofree nounwind
declare noundef i32 @fclose(ptr nocapture noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
declare hidden void @acutest_cleanup_() local_unnamed_addr #0

attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nofree nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { 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 nofree nounwind willreturn allockind("alloc,zeroed") allocsize(0,1) memory(inaccessiblemem: readwrite) "alloc-family"="malloc" "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 = { noreturn 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 #5 = { nounwind }
attributes #6 = { nounwind allocsize(0,1) }
attributes #7 = { cold nounwind }
attributes #8 = { noreturn }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"long", !7, i64 0}
!13 = !{!14, !6, i64 8}
!14 = !{!"acutest_test_", !6, i64 0, !6, i64 8}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.mustprogress"}
!17 = distinct !{!17, !16}
!18 = !{!19, !7, i64 0}
!19 = !{!"acutest_test_data_", !7, i64 0, !20, i64 8}
!20 = !{!"double", !7, i64 0}
!21 = distinct !{!21, !16}
!22 = !{!14, !6, i64 0}
!23 = !{!19, !20, i64 8}
!24 = distinct !{!24, !16}


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