; LLVM IR from jermp/2i_bench :: external/CRoaring/tests/vendor/cmocka/cmocka.ll (cmocka_run_group_tests)

; 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.CMUnitTestState = type { ptr, ptr, ptr, ptr, i32, double }
%struct.CMUnitTest = type { ptr, ptr, ptr, ptr }

@.str.5 = external hidden unnamed_addr constant [95 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [46 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [45 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [19 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 nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1

; 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
declare dso_local void @_assert_true(i64 noundef, ptr noundef, ptr noundef, i32 noundef) #2

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #3

; Function Attrs: nounwind uwtable
define dso_local i32 @_cmocka_run_group_tests(ptr noundef %0, ptr noundef %1, i64 noundef %2, ptr noundef %3, ptr noundef %4) #2 {
  %6 = alloca i32, align 4
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca i64, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca i64, align 8
  %16 = alloca i64, align 8
  %17 = alloca i64, align 8
  %18 = alloca i64, align 8
  %19 = alloca i64, align 8
  %20 = alloca double, align 8
  %21 = alloca i64, align 8
  %22 = alloca i32, align 4
  %23 = alloca i32, align 4
  %24 = alloca %struct.CMUnitTestState, align 8
  %25 = alloca ptr, align 8
  %26 = alloca i64, align 8
  store ptr %0, ptr %7, align 8, !tbaa !5
  store ptr %1, ptr %8, align 8, !tbaa !5
  store i64 %2, ptr %9, align 8, !tbaa !9
  store ptr %3, ptr %10, align 8, !tbaa !5
  store ptr %4, ptr %11, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #4
  %27 = call ptr @check_point_allocated_blocks()
  store ptr %27, ptr %13, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #4
  store ptr null, ptr %14, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #4
  store i64 0, ptr %15, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #4
  store i64 0, ptr %16, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #4
  store i64 0, ptr %17, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #4
  store i64 0, ptr %18, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #4
  store i64 0, ptr %19, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #4
  store double 0.000000e+00, ptr %20, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #4
  call void @_assert_true(i64 noundef 1, ptr noundef @.str.19, ptr noundef @.str.5, i32 noundef 2321)
  %28 = load i64, ptr %9, align 8, !tbaa !9
  %29 = mul i64 48, %28
  %30 = call ptr @libc_malloc(i64 noundef %29)
  store ptr %30, ptr %12, align 8, !tbaa !5
  %31 = load ptr, ptr %12, align 8, !tbaa !5
  %32 = icmp eq ptr %31, null
  br i1 %32, label %33, label %34

33:                                               ; preds = %5
  store i32 -1, ptr %6, align 4
  store i32 1, ptr %23, align 4
  br label %209

34:                                               ; preds = %5
  %35 = load i64, ptr %9, align 8, !tbaa !9
  call void @cmprintf_group_start(i64 noundef %35)
  store i64 0, ptr %21, align 8, !tbaa !9
  br label %36

36:                                               ; preds = %53, %34
  %37 = load i64, ptr %21, align 8, !tbaa !9
  %38 = load i64, ptr %9, align 8, !tbaa !9
  %39 = icmp ult i64 %37, %38
  br i1 %39, label %40, label %56

40:                                               ; preds = %36
  %41 = load ptr, ptr %12, align 8, !tbaa !5
  %42 = load i64, ptr %21, align 8, !tbaa !9
  %43 = getelementptr inbounds %struct.CMUnitTestState, ptr %41, i64 %42
  call void @llvm.memset.p0.i64(ptr align 8 %24, i8 0, i64 48, i1 false)
  %44 = getelementptr inbounds %struct.CMUnitTestState, ptr %24, i32 0, i32 0
  %45 = getelementptr inbounds %struct.CMUnitTestState, ptr %24, i32 0, i32 1
  %46 = load ptr, ptr %8, align 8, !tbaa !5
  %47 = load i64, ptr %21, align 8, !tbaa !9
  %48 = getelementptr inbounds %struct.CMUnitTest, ptr %46, i64 %47
  store ptr %48, ptr %45, align 8, !tbaa !13
  %49 = getelementptr inbounds %struct.CMUnitTestState, ptr %24, i32 0, i32 2
  %50 = getelementptr inbounds %struct.CMUnitTestState, ptr %24, i32 0, i32 3
  %51 = getelementptr inbounds %struct.CMUnitTestState, ptr %24, i32 0, i32 4
  store i32 0, ptr %51, align 8, !tbaa !16
  %52 = getelementptr inbounds %struct.CMUnitTestState, ptr %24, i32 0, i32 5
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %43, ptr align 8 %24, i64 48, i1 false), !tbaa.struct !17
  br label %53

53:                                               ; preds = %40
  %54 = load i64, ptr %21, align 8, !tbaa !9
  %55 = add i64 %54, 1
  store i64 %55, ptr %21, align 8, !tbaa !9
  br label %36, !llvm.loop !19

56:                                               ; preds = %36
  store i32 0, ptr %22, align 4, !tbaa !18
  %57 = load ptr, ptr %10, align 8, !tbaa !5
  %58 = icmp ne ptr %57, null
  br i1 %58, label %59, label %63

59:                                               ; preds = %56
  %60 = load ptr, ptr %10, align 8, !tbaa !5
  %61 = load ptr, ptr %13, align 8, !tbaa !5
  %62 = call i32 @cmocka_run_group_fixture(ptr noundef @.str.20, ptr noundef %60, ptr noundef null, ptr noundef %14, ptr noundef %61)
  store i32 %62, ptr %22, align 4, !tbaa !18
  br label %63

63:                                               ; preds = %59, %56
  %64 = load i32, ptr %22, align 4, !tbaa !18
  %65 = icmp eq i32 %64, 0
  br i1 %65, label %66, label %167

66:                                               ; preds = %63
  store i64 0, ptr %21, align 8, !tbaa !9
  br label %67

67:                                               ; preds = %163, %66
  %68 = load i64, ptr %21, align 8, !tbaa !9
  %69 = load i64, ptr %9, align 8, !tbaa !9
  %70 = icmp ult i64 %68, %69
  br i1 %70, label %71, label %166

71:                                               ; preds = %67
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #4
  %72 = load ptr, ptr %12, align 8, !tbaa !5
  %73 = load i64, ptr %21, align 8, !tbaa !9
  %74 = getelementptr inbounds %struct.CMUnitTestState, ptr %72, i64 %73
  store ptr %74, ptr %25, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #4
  %75 = load i64, ptr %21, align 8, !tbaa !9
  %76 = add i64 %75, 1
  store i64 %76, ptr %26, align 8, !tbaa !9
  %77 = load i64, ptr %26, align 8, !tbaa !9
  %78 = load ptr, ptr %25, align 8, !tbaa !5
  %79 = getelementptr inbounds %struct.CMUnitTestState, ptr %78, i32 0, i32 1
  %80 = load ptr, ptr %79, align 8, !tbaa !13
  %81 = getelementptr inbounds %struct.CMUnitTest, ptr %80, i32 0, i32 0
  %82 = load ptr, ptr %81, align 8, !tbaa !21
  call void @cmprintf(i32 noundef 0, i64 noundef %77, ptr noundef %82, ptr noundef null)
  %83 = load ptr, ptr %14, align 8, !tbaa !5
  %84 = icmp ne ptr %83, null
  br i1 %84, label %85, label %91

85:                                               ; preds = %71
  %86 = load ptr, ptr %14, align 8, !tbaa !5
  %87 = load ptr, ptr %12, align 8, !tbaa !5
  %88 = load i64, ptr %21, align 8, !tbaa !9
  %89 = getelementptr inbounds %struct.CMUnitTestState, ptr %87, i64 %88
  %90 = getelementptr inbounds %struct.CMUnitTestState, ptr %89, i32 0, i32 2
  store ptr %86, ptr %90, align 8, !tbaa !23
  br label %91

91:                                               ; preds = %85, %71
  %92 = load ptr, ptr %25, align 8, !tbaa !5
  %93 = call i32 @cmocka_run_one_tests(ptr noundef %92)
  store i32 %93, ptr %22, align 4, !tbaa !18
  %94 = load i64, ptr %17, align 8, !tbaa !9
  %95 = add i64 %94, 1
  store i64 %95, ptr %17, align 8, !tbaa !9
  %96 = load ptr, ptr %25, align 8, !tbaa !5
  %97 = getelementptr inbounds %struct.CMUnitTestState, ptr %96, i32 0, i32 5
  %98 = load double, ptr %97, align 8, !tbaa !24
  %99 = load double, ptr %20, align 8, !tbaa !11
  %100 = fadd double %99, %98
  store double %100, ptr %20, align 8, !tbaa !11
  %101 = load i32, ptr %22, align 4, !tbaa !18
  %102 = icmp eq i32 %101, 0
  br i1 %102, label %103, label %153

103:                                              ; preds = %91
  %104 = load ptr, ptr %25, align 8, !tbaa !5
  %105 = getelementptr inbounds %struct.CMUnitTestState, ptr %104, i32 0, i32 4
  %106 = load i32, ptr %105, align 8, !tbaa !16
  switch i32 %106, label %143 [
    i32 1, label %107
    i32 4, label %119
    i32 2, label %131
  ]

107:                                              ; preds = %103
  %108 = load i64, ptr %26, align 8, !tbaa !9
  %109 = load ptr, ptr %25, align 8, !tbaa !5
  %110 = getelementptr inbounds %struct.CMUnitTestState, ptr %109, i32 0, i32 1
  %111 = load ptr, ptr %110, align 8, !tbaa !13
  %112 = getelementptr inbounds %struct.CMUnitTest, ptr %111, i32 0, i32 0
  %113 = load ptr, ptr %112, align 8, !tbaa !21
  %114 = load ptr, ptr %25, align 8, !tbaa !5
  %115 = getelementptr inbounds %struct.CMUnitTestState, ptr %114, i32 0, i32 3
  %116 = load ptr, ptr %115, align 8, !tbaa !25
  call void @cmprintf(i32 noundef 1, i64 noundef %108, ptr noundef %113, ptr noundef %116)
  %117 = load i64, ptr %16, align 8, !tbaa !9
  %118 = add i64 %117, 1
  store i64 %118, ptr %16, align 8, !tbaa !9
  br label %152

119:                                              ; preds = %103
  %120 = load i64, ptr %26, align 8, !tbaa !9
  %121 = load ptr, ptr %25, align 8, !tbaa !5
  %122 = getelementptr inbounds %struct.CMUnitTestState, ptr %121, i32 0, i32 1
  %123 = load ptr, ptr %122, align 8, !tbaa !13
  %124 = getelementptr inbounds %struct.CMUnitTest, ptr %123, i32 0, i32 0
  %125 = load ptr, ptr %124, align 8, !tbaa !21
  %126 = load ptr, ptr %25, align 8, !tbaa !5
  %127 = getelementptr inbounds %struct.CMUnitTestState, ptr %126, i32 0, i32 3
  %128 = load ptr, ptr %127, align 8, !tbaa !25
  call void @cmprintf(i32 noundef 4, i64 noundef %120, ptr noundef %125, ptr noundef %128)
  %129 = load i64, ptr %19, align 8, !tbaa !9
  %130 = add i64 %129, 1
  store i64 %130, ptr %19, align 8, !tbaa !9
  br label %152

131:                                              ; preds = %103
  %132 = load i64, ptr %26, align 8, !tbaa !9
  %133 = load ptr, ptr %25, align 8, !tbaa !5
  %134 = getelementptr inbounds %struct.CMUnitTestState, ptr %133, i32 0, i32 1
  %135 = load ptr, ptr %134, align 8, !tbaa !13
  %136 = getelementptr inbounds %struct.CMUnitTest, ptr %135, i32 0, i32 0
  %137 = load ptr, ptr %136, align 8, !tbaa !21
  %138 = load ptr, ptr %25, align 8, !tbaa !5
  %139 = getelementptr inbounds %struct.CMUnitTestState, ptr %138, i32 0, i32 3
  %140 = load ptr, ptr %139, align 8, !tbaa !25
  call void @cmprintf(i32 noundef 2, i64 noundef %132, ptr noundef %137, ptr noundef %140)
  %141 = load i64, ptr %15, align 8, !tbaa !9
  %142 = add i64 %141, 1
  store i64 %142, ptr %15, align 8, !tbaa !9
  br label %152

143:                                              ; preds = %103
  %144 = load i64, ptr %26, align 8, !tbaa !9
  %145 = load ptr, ptr %25, align 8, !tbaa !5
  %146 = getelementptr inbounds %struct.CMUnitTestState, ptr %145, i32 0, i32 1
  %147 = load ptr, ptr %146, align 8, !tbaa !13
  %148 = getelementptr inbounds %struct.CMUnitTest, ptr %147, i32 0, i32 0
  %149 = load ptr, ptr %148, align 8, !tbaa !21
  call void @cmprintf(i32 noundef 3, i64 noundef %144, ptr noundef %149, ptr noundef @.str.21)
  %150 = load i64, ptr %18, align 8, !tbaa !9
  %151 = add i64 %150, 1
  store i64 %151, ptr %18, align 8, !tbaa !9
  br label %152

152:                                              ; preds = %143, %131, %119, %107
  br label %162

153:                                              ; preds = %91
  %154 = load i64, ptr %26, align 8, !tbaa !9
  %155 = load ptr, ptr %25, align 8, !tbaa !5
  %156 = getelementptr inbounds %struct.CMUnitTestState, ptr %155, i32 0, i32 1
  %157 = load ptr, ptr %156, align 8, !tbaa !13
  %158 = getelementptr inbounds %struct.CMUnitTest, ptr %157, i32 0, i32 0
  %159 = load ptr, ptr %158, align 8, !tbaa !21
  call void @cmprintf(i32 noundef 3, i64 noundef %154, ptr noundef %159, ptr noundef @.str.22)
  %160 = load i64, ptr %18, align 8, !tbaa !9
  %161 = add i64 %160, 1
  store i64 %161, ptr %18, align 8, !tbaa !9
  br label %162

162:                                              ; preds = %153, %152
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #4
  br label %163

163:                                              ; preds = %162
  %164 = load i64, ptr %21, align 8, !tbaa !9
  %165 = add i64 %164, 1
  store i64 %165, ptr %21, align 8, !tbaa !9
  br label %67, !llvm.loop !26

166:                                              ; preds = %67
  br label %171

167:                                              ; preds = %63
  %168 = load ptr, ptr %7, align 8, !tbaa !5
  call void @cmprintf(i32 noundef 3, i64 noundef 0, ptr noundef %168, ptr noundef @.str.23)
  %169 = load i64, ptr %18, align 8, !tbaa !9
  %170 = add i64 %169, 1
  store i64 %170, ptr %18, align 8, !tbaa !9
  br label %171

171:                                              ; preds = %167, %166
  %172 = load ptr, ptr %11, align 8, !tbaa !5
  %173 = icmp ne ptr %172, null
  br i1 %173, label %174, label %178

174:                                              ; preds = %171
  %175 = load ptr, ptr %11, align 8, !tbaa !5
  %176 = load ptr, ptr %13, align 8, !tbaa !5
  %177 = call i32 @cmocka_run_group_fixture(ptr noundef @.str.24, ptr noundef null, ptr noundef %175, ptr noundef %14, ptr noundef %176)
  store i32 %177, ptr %22, align 4, !tbaa !18
  br label %178

178:                                              ; preds = %174, %171
  %179 = load ptr, ptr %7, align 8, !tbaa !5
  %180 = load i64, ptr %17, align 8, !tbaa !9
  %181 = load i64, ptr %16, align 8, !tbaa !9
  %182 = load i64, ptr %15, align 8, !tbaa !9
  %183 = load i64, ptr %18, align 8, !tbaa !9
  %184 = load i64, ptr %19, align 8, !tbaa !9
  %185 = load double, ptr %20, align 8, !tbaa !11
  %186 = load ptr, ptr %12, align 8, !tbaa !5
  call void @cmprintf_group_finish(ptr noundef %179, i64 noundef %180, i64 noundef %181, i64 noundef %182, i64 noundef %183, i64 noundef %184, double noundef %185, ptr noundef %186)
  store i64 0, ptr %21, align 8, !tbaa !9
  br label %187

187:                                              ; preds = %199, %178
  %188 = load i64, ptr %21, align 8, !tbaa !9
  %189 = load i64, ptr %9, align 8, !tbaa !9
  %190 = icmp ult i64 %188, %189
  br i1 %190, label %191, label %202

191:                                              ; preds = %187
  %192 = load ptr, ptr %12, align 8, !tbaa !5
  %193 = load i64, ptr %21, align 8, !tbaa !9
  %194 = getelementptr inbounds %struct.CMUnitTestState, ptr %192, i64 %193
  %195 = getelementptr inbounds %struct.CMUnitTestState, ptr %194, i32 0, i32 3
  %196 = load ptr, ptr %195, align 8, !tbaa !25
  %197 = ptrtoint ptr %196 to i64
  %198 = inttoptr i64 %197 to ptr
  call void @vcm_free_error(ptr noundef %198)
  br label %199

199:                                              ; preds = %191
  %200 = load i64, ptr %21, align 8, !tbaa !9
  %201 = add i64 %200, 1
  store i64 %201, ptr %21, align 8, !tbaa !9
  br label %187, !llvm.loop !27

202:                                              ; preds = %187
  %203 = load ptr, ptr %12, align 8, !tbaa !5
  call void @libc_free(ptr noundef %203)
  %204 = load ptr, ptr %13, align 8, !tbaa !5
  call void @fail_if_blocks_allocated(ptr noundef %204, ptr noundef @.str.25)
  %205 = load i64, ptr %15, align 8, !tbaa !9
  %206 = load i64, ptr %18, align 8, !tbaa !9
  %207 = add i64 %205, %206
  %208 = trunc i64 %207 to i32
  store i32 %208, ptr %6, align 4
  store i32 1, ptr %23, align 4
  br label %209

209:                                              ; preds = %202, %33
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #4
  %210 = load i32, ptr %6, align 4
  ret i32 %210
}

; Function Attrs: nounwind uwtable
declare hidden ptr @libc_malloc(i64 noundef) #2

; Function Attrs: nounwind uwtable
declare hidden void @cmprintf_group_start(i64 noundef) #2

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

; Function Attrs: nounwind uwtable
declare hidden void @cmprintf(i32 noundef, i64 noundef, ptr noundef, ptr noundef) #2

; Function Attrs: nounwind uwtable
declare hidden i32 @cmocka_run_one_tests(ptr noundef) #2

; Function Attrs: nounwind uwtable
declare hidden void @cmprintf_group_finish(ptr noundef, i64 noundef, i64 noundef, i64 noundef, i64 noundef, i64 noundef, double noundef, ptr noundef) #2

; Function Attrs: nounwind uwtable
declare hidden void @vcm_free_error(ptr noundef) #2

; Function Attrs: nounwind uwtable
declare hidden void @libc_free(ptr noundef) #2

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

; Function Attrs: nounwind uwtable
declare hidden ptr @check_point_allocated_blocks() #2

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 #3 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #4 = { 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 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"long", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"double", !7, i64 0}
!13 = !{!14, !6, i64 8}
!14 = !{!"CMUnitTestState", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !15, i64 32, !12, i64 40}
!15 = !{!"int", !7, i64 0}
!16 = !{!14, !15, i64 32}
!17 = !{i64 0, i64 8, !5, i64 8, i64 8, !5, i64 16, i64 8, !5, i64 24, i64 8, !5, i64 32, i64 4, !18, i64 40, i64 8, !11}
!18 = !{!15, !15, i64 0}
!19 = distinct !{!19, !20}
!20 = !{!"llvm.loop.mustprogress"}
!21 = !{!22, !6, i64 0}
!22 = !{!"CMUnitTest", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!23 = !{!14, !6, i64 16}
!24 = !{!14, !12, i64 40}
!25 = !{!14, !6, i64 24}
!26 = distinct !{!26, !20}
!27 = distinct !{!27, !20}


; 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.CMUnitTestState = type { ptr, ptr, ptr, ptr, i32, double }
%struct.CMUnitTest = type { ptr, ptr, ptr, ptr }

@.str.5 = external hidden unnamed_addr constant [95 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [46 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [45 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [19 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
declare dso_local void @_assert_true(i64 noundef, ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #1

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

; Function Attrs: nounwind uwtable
define dso_local i32 @_cmocka_run_group_tests(ptr noundef %0, ptr noundef %1, i64 noundef %2, ptr noundef %3, ptr noundef %4) local_unnamed_addr #1 {
  %6 = alloca ptr, align 8
  %7 = tail call ptr @check_point_allocated_blocks()
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #3
  store ptr null, ptr %6, align 8, !tbaa !5
  tail call void @_assert_true(i64 noundef 1, ptr noundef nonnull @.str.19, ptr noundef nonnull @.str.5, i32 noundef 2321)
  %8 = mul i64 %2, 48
  %9 = tail call ptr @libc_malloc(i64 noundef %8)
  %10 = icmp eq ptr %9, null
  br i1 %10, label %71, label %11

11:                                               ; preds = %5
  tail call void @cmprintf_group_start(i64 noundef %2)
  %.not114 = icmp eq i64 %2, 0
  br i1 %.not114, label %._crit_edge, label %.lr.ph.preheader

.lr.ph.preheader:                                 ; preds = %11
  %xtraiter = and i64 %2, 1
  %12 = icmp eq i64 %2, 1
  br i1 %12, label %._crit_edge.loopexit.unr-lcssa, label %.lr.ph.preheader.new

.lr.ph.preheader.new:                             ; preds = %.lr.ph.preheader
  %unroll_iter = and i64 %2, -2
  br label %.lr.ph

.lr.ph:                                           ; preds = %.lr.ph, %.lr.ph.preheader.new
  %.07696 = phi i64 [ 0, %.lr.ph.preheader.new ], [ %18, %.lr.ph ]
  %niter = phi i64 [ 0, %.lr.ph.preheader.new ], [ %niter.next.1, %.lr.ph ]
  %13 = getelementptr inbounds %struct.CMUnitTestState, ptr %9, i64 %.07696
  %14 = getelementptr inbounds %struct.CMUnitTest, ptr %1, i64 %.07696
  store ptr null, ptr %13, align 8, !tbaa !5
  %.sroa.2.0..sroa_idx = getelementptr inbounds i8, ptr %13, i64 8
  store ptr %14, ptr %.sroa.2.0..sroa_idx, align 8, !tbaa !5
  %.sroa.3.0..sroa_idx = getelementptr inbounds i8, ptr %13, i64 16
  %15 = or disjoint i64 %.07696, 1
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(32) %.sroa.3.0..sroa_idx, i8 0, i64 32, i1 false)
  %16 = getelementptr inbounds %struct.CMUnitTestState, ptr %9, i64 %15
  %17 = getelementptr inbounds %struct.CMUnitTest, ptr %1, i64 %15
  store ptr null, ptr %16, align 8, !tbaa !5
  %.sroa.2.0..sroa_idx.1 = getelementptr inbounds i8, ptr %16, i64 8
  store ptr %17, ptr %.sroa.2.0..sroa_idx.1, align 8, !tbaa !5
  %.sroa.3.0..sroa_idx.1 = getelementptr inbounds i8, ptr %16, i64 16
  %18 = add nuw i64 %.07696, 2
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(32) %.sroa.3.0..sroa_idx.1, i8 0, i64 32, i1 false)
  %niter.next.1 = add i64 %niter, 2
  %niter.ncmp.1 = icmp eq i64 %niter.next.1, %unroll_iter
  br i1 %niter.ncmp.1, label %._crit_edge.loopexit.unr-lcssa, label %.lr.ph, !llvm.loop !9

._crit_edge.loopexit.unr-lcssa:                   ; preds = %.lr.ph, %.lr.ph.preheader
  %.07696.unr = phi i64 [ 0, %.lr.ph.preheader ], [ %18, %.lr.ph ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %._crit_edge, label %.lr.ph.epil

.lr.ph.epil:                                      ; preds = %._crit_edge.loopexit.unr-lcssa
  %19 = getelementptr inbounds %struct.CMUnitTestState, ptr %9, i64 %.07696.unr
  %20 = getelementptr inbounds %struct.CMUnitTest, ptr %1, i64 %.07696.unr
  store ptr null, ptr %19, align 8, !tbaa !5
  %.sroa.2.0..sroa_idx.epil = getelementptr inbounds i8, ptr %19, i64 8
  store ptr %20, ptr %.sroa.2.0..sroa_idx.epil, align 8, !tbaa !5
  %.sroa.3.0..sroa_idx.epil = getelementptr inbounds i8, ptr %19, i64 16
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(32) %.sroa.3.0..sroa_idx.epil, i8 0, i64 32, i1 false)
  br label %._crit_edge

._crit_edge:                                      ; preds = %.lr.ph.epil, %._crit_edge.loopexit.unr-lcssa, %11
  %.not = icmp eq ptr %3, null
  br i1 %.not, label %.critedge, label %21

21:                                               ; preds = %._crit_edge
  %22 = call i32 @cmocka_run_group_fixture(ptr noundef nonnull @.str.20, ptr noundef nonnull %3, ptr noundef null, ptr noundef nonnull %6, ptr noundef %7)
  %23 = icmp eq i32 %22, 0
  br i1 %23, label %.critedge, label %62

.critedge:                                        ; preds = %._crit_edge, %21
  br i1 %.not114, label %.loopexit, label %.lr.ph104

.lr.ph104:                                        ; preds = %.critedge, %61
  %.071103 = phi i64 [ %.1, %61 ], [ 0, %.critedge ]
  %.072102 = phi i64 [ %.173, %61 ], [ 0, %.critedge ]
  %.177101 = phi i64 [ %25, %61 ], [ 0, %.critedge ]
  %.079100 = phi double [ %36, %61 ], [ 0.000000e+00, %.critedge ]
  %.08199 = phi i64 [ %.182, %61 ], [ 0, %.critedge ]
  %.08498 = phi i64 [ %.185, %61 ], [ 0, %.critedge ]
  %24 = getelementptr inbounds %struct.CMUnitTestState, ptr %9, i64 %.177101
  %25 = add nuw i64 %.177101, 1
  %26 = getelementptr inbounds i8, ptr %24, i64 8
  %27 = load ptr, ptr %26, align 8, !tbaa !11
  %28 = load ptr, ptr %27, align 8, !tbaa !15
  call void @cmprintf(i32 noundef 0, i64 noundef %25, ptr noundef %28, ptr noundef null)
  %29 = load ptr, ptr %6, align 8, !tbaa !5
  %.not95 = icmp eq ptr %29, null
  br i1 %.not95, label %32, label %30

30:                                               ; preds = %.lr.ph104
  %31 = getelementptr inbounds i8, ptr %24, i64 16
  store ptr %29, ptr %31, align 8, !tbaa !17
  br label %32

32:                                               ; preds = %30, %.lr.ph104
  %33 = call i32 @cmocka_run_one_tests(ptr noundef nonnull %24)
  %34 = getelementptr inbounds i8, ptr %24, i64 40
  %35 = load double, ptr %34, align 8, !tbaa !18
  %36 = fadd double %.079100, %35
  %37 = icmp eq i32 %33, 0
  br i1 %37, label %38, label %57

38:                                               ; preds = %32
  %39 = getelementptr inbounds i8, ptr %24, i64 32
  %40 = load i32, ptr %39, align 8, !tbaa !19
  %41 = load ptr, ptr %26, align 8, !tbaa !11
  %42 = load ptr, ptr %41, align 8, !tbaa !15
  switch i32 %40, label %55 [
    i32 1, label %43
    i32 4, label %47
    i32 2, label %51
  ]

43:                                               ; preds = %38
  %44 = getelementptr inbounds i8, ptr %24, i64 24
  %45 = load ptr, ptr %44, align 8, !tbaa !20
  call void @cmprintf(i32 noundef 1, i64 noundef %25, ptr noundef %42, ptr noundef %45)
  %46 = add i64 %.072102, 1
  br label %61

47:                                               ; preds = %38
  %48 = getelementptr inbounds i8, ptr %24, i64 24
  %49 = load ptr, ptr %48, align 8, !tbaa !20
  call void @cmprintf(i32 noundef 4, i64 noundef %25, ptr noundef %42, ptr noundef %49)
  %50 = add i64 %.08199, 1
  br label %61

51:                                               ; preds = %38
  %52 = getelementptr inbounds i8, ptr %24, i64 24
  %53 = load ptr, ptr %52, align 8, !tbaa !20
  call void @cmprintf(i32 noundef 2, i64 noundef %25, ptr noundef %42, ptr noundef %53)
  %54 = add i64 %.071103, 1
  br label %61

55:                                               ; preds = %38
  call void @cmprintf(i32 noundef 3, i64 noundef %25, ptr noundef %42, ptr noundef nonnull @.str.21)
  %56 = add i64 %.08498, 1
  br label %61

57:                                               ; preds = %32
  %58 = load ptr, ptr %26, align 8, !tbaa !11
  %59 = load ptr, ptr %58, align 8, !tbaa !15
  call void @cmprintf(i32 noundef 3, i64 noundef %25, ptr noundef %59, ptr noundef nonnull @.str.22)
  %60 = add i64 %.08498, 1
  br label %61

61:                                               ; preds = %43, %47, %51, %55, %57
  %.185 = phi i64 [ %56, %55 ], [ %.08498, %51 ], [ %.08498, %47 ], [ %.08498, %43 ], [ %60, %57 ]
  %.182 = phi i64 [ %.08199, %55 ], [ %.08199, %51 ], [ %50, %47 ], [ %.08199, %43 ], [ %.08199, %57 ]
  %.173 = phi i64 [ %.072102, %55 ], [ %.072102, %51 ], [ %.072102, %47 ], [ %46, %43 ], [ %.072102, %57 ]
  %.1 = phi i64 [ %.071103, %55 ], [ %54, %51 ], [ %.071103, %47 ], [ %.071103, %43 ], [ %.071103, %57 ]
  %exitcond118.not = icmp eq i64 %25, %2
  br i1 %exitcond118.not, label %.loopexit, label %.lr.ph104, !llvm.loop !21

62:                                               ; preds = %21
  call void @cmprintf(i32 noundef 3, i64 noundef 0, ptr noundef %0, ptr noundef nonnull @.str.23)
  br label %.loopexit

.loopexit:                                        ; preds = %61, %.critedge, %62
  %.188 = phi i64 [ 0, %62 ], [ 0, %.critedge ], [ %2, %61 ]
  %.286 = phi i64 [ 1, %62 ], [ 0, %.critedge ], [ %.185, %61 ]
  %.283 = phi i64 [ 0, %62 ], [ 0, %.critedge ], [ %.182, %61 ]
  %.180 = phi double [ 0.000000e+00, %62 ], [ 0.000000e+00, %.critedge ], [ %36, %61 ]
  %.274 = phi i64 [ 0, %62 ], [ 0, %.critedge ], [ %.173, %61 ]
  %.2 = phi i64 [ 0, %62 ], [ 0, %.critedge ], [ %.1, %61 ]
  %.not94 = icmp eq ptr %4, null
  br i1 %.not94, label %65, label %63

63:                                               ; preds = %.loopexit
  %64 = call i32 @cmocka_run_group_fixture(ptr noundef nonnull @.str.24, ptr noundef null, ptr noundef nonnull %4, ptr noundef nonnull %6, ptr noundef %7)
  br label %65

65:                                               ; preds = %63, %.loopexit
  call void @cmprintf_group_finish(ptr noundef %0, i64 noundef %.188, i64 noundef %.274, i64 noundef %.2, i64 noundef %.286, i64 noundef %.283, double noundef %.180, ptr noundef nonnull %9)
  br i1 %.not114, label %._crit_edge113, label %.lr.ph112

.lr.ph112:                                        ; preds = %65, %.lr.ph112
  %.278110 = phi i64 [ %68, %.lr.ph112 ], [ 0, %65 ]
  %66 = getelementptr inbounds %struct.CMUnitTestState, ptr %9, i64 %.278110, i32 3
  %67 = load ptr, ptr %66, align 8, !tbaa !20
  call void @vcm_free_error(ptr noundef %67)
  %68 = add nuw i64 %.278110, 1
  %exitcond119.not = icmp eq i64 %68, %2
  br i1 %exitcond119.not, label %._crit_edge113, label %.lr.ph112, !llvm.loop !22

._crit_edge113:                                   ; preds = %.lr.ph112, %65
  call void @libc_free(ptr noundef nonnull %9)
  call void @fail_if_blocks_allocated(ptr noundef %7, ptr noundef nonnull @.str.25)
  %69 = add i64 %.2, %.286
  %70 = trunc i64 %69 to i32
  br label %71

71:                                               ; preds = %5, %._crit_edge113
  %.0 = phi i32 [ %70, %._crit_edge113 ], [ -1, %5 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #3
  ret i32 %.0
}

; Function Attrs: nounwind uwtable
declare hidden ptr @libc_malloc(i64 noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
declare hidden void @cmprintf_group_start(i64 noundef) local_unnamed_addr #1

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

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

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

; Function Attrs: nounwind uwtable
declare hidden void @cmprintf_group_finish(ptr noundef, i64 noundef, i64 noundef, i64 noundef, i64 noundef, i64 noundef, double noundef, ptr noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
declare hidden void @vcm_free_error(ptr noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
declare hidden void @libc_free(ptr noundef) local_unnamed_addr #1

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

; Function Attrs: nounwind uwtable
declare hidden ptr @check_point_allocated_blocks() local_unnamed_addr #1

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: write) }
attributes #3 = { 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 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = !{!12, !6, i64 8}
!12 = !{!"CMUnitTestState", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !13, i64 32, !14, i64 40}
!13 = !{!"int", !7, i64 0}
!14 = !{!"double", !7, i64 0}
!15 = !{!16, !6, i64 0}
!16 = !{!"CMUnitTest", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!17 = !{!12, !6, i64 16}
!18 = !{!12, !14, i64 40}
!19 = !{!12, !13, i64 32}
!20 = !{!12, !6, i64 24}
!21 = distinct !{!21, !10}
!22 = distinct !{!22, !10}


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