; LLVM IR from openssl/openssl :: ssl/quic (uint_set)

; 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.uint_range_st = type { i64, i64 }
%struct.uint_set_item_st = type { %struct.anon, %struct.uint_range_st }
%struct.anon = type { ptr, ptr, ptr }

@.str = external hidden unnamed_addr constant [69 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [19 x i8], align 1
@__PRETTY_FUNCTION__.ossl_uint_set_remove = external hidden unnamed_addr constant [57 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [39 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

declare void @CRYPTO_free(ptr noundef, ptr noundef, i32 noundef) #1

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

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

; Function Attrs: nounwind uwtable
declare hidden ptr @create_set_item(i64 noundef, i64 noundef) #3

; Function Attrs: inlinehint nounwind uwtable
declare hidden ptr @ossl_list_uint_set_tail(ptr noundef) #2

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

; Function Attrs: inlinehint nounwind uwtable
declare hidden ptr @ossl_list_uint_set_prev(ptr noundef) #2

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

; Function Attrs: nounwind uwtable
define dso_local i32 @ossl_uint_set_remove(ptr noundef %0, ptr noundef %1) #3 {
  %3 = alloca i32, align 4
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca i64, align 8
  %10 = alloca i64, align 8
  %11 = alloca i32, align 4
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #5
  %12 = load ptr, ptr %5, align 8, !tbaa !5
  %13 = getelementptr inbounds %struct.uint_range_st, ptr %12, i32 0, i32 0
  %14 = load i64, ptr %13, align 8, !tbaa !9
  store i64 %14, ptr %9, align 8, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #5
  %15 = load ptr, ptr %5, align 8, !tbaa !5
  %16 = getelementptr inbounds %struct.uint_range_st, ptr %15, i32 0, i32 1
  %17 = load i64, ptr %16, align 8, !tbaa !13
  store i64 %17, ptr %10, align 8, !tbaa !12
  %18 = load i64, ptr %9, align 8, !tbaa !12
  %19 = load i64, ptr %10, align 8, !tbaa !12
  %20 = icmp ule i64 %18, %19
  %21 = zext i1 %20 to i32
  %22 = icmp ne i32 %21, 0
  %23 = zext i1 %22 to i32
  %24 = call i32 @ossl_assert_int(i32 noundef %23, ptr noundef @.str.1, ptr noundef @.str, i32 noundef 263)
  %25 = icmp ne i32 %24, 0
  br i1 %25, label %27, label %26

26:                                               ; preds = %2
  store i32 0, ptr %3, align 4
  store i32 1, ptr %11, align 4
  br label %163

27:                                               ; preds = %2
  %28 = load ptr, ptr %4, align 8, !tbaa !5
  %29 = call ptr @ossl_list_uint_set_tail(ptr noundef %28)
  store ptr %29, ptr %6, align 8, !tbaa !5
  br label %30

30:                                               ; preds = %160, %27
  %31 = load ptr, ptr %6, align 8, !tbaa !5
  %32 = icmp ne ptr %31, null
  br i1 %32, label %33, label %162

33:                                               ; preds = %30
  %34 = load ptr, ptr %6, align 8, !tbaa !5
  %35 = call ptr @ossl_list_uint_set_prev(ptr noundef %34)
  store ptr %35, ptr %7, align 8, !tbaa !5
  %36 = load i64, ptr %9, align 8, !tbaa !12
  %37 = load ptr, ptr %6, align 8, !tbaa !5
  %38 = getelementptr inbounds %struct.uint_set_item_st, ptr %37, i32 0, i32 1
  %39 = getelementptr inbounds %struct.uint_range_st, ptr %38, i32 0, i32 1
  %40 = load i64, ptr %39, align 8, !tbaa !14
  %41 = icmp ugt i64 %36, %40
  br i1 %41, label %42, label %43

42:                                               ; preds = %33
  br label %162

43:                                               ; preds = %33
  %44 = load i64, ptr %9, align 8, !tbaa !12
  %45 = load ptr, ptr %6, align 8, !tbaa !5
  %46 = getelementptr inbounds %struct.uint_set_item_st, ptr %45, i32 0, i32 1
  %47 = getelementptr inbounds %struct.uint_range_st, ptr %46, i32 0, i32 0
  %48 = load i64, ptr %47, align 8, !tbaa !17
  %49 = icmp ule i64 %44, %48
  br i1 %49, label %50, label %61

50:                                               ; preds = %43
  %51 = load i64, ptr %10, align 8, !tbaa !12
  %52 = load ptr, ptr %6, align 8, !tbaa !5
  %53 = getelementptr inbounds %struct.uint_set_item_st, ptr %52, i32 0, i32 1
  %54 = getelementptr inbounds %struct.uint_range_st, ptr %53, i32 0, i32 1
  %55 = load i64, ptr %54, align 8, !tbaa !14
  %56 = icmp uge i64 %51, %55
  br i1 %56, label %57, label %61

57:                                               ; preds = %50
  %58 = load ptr, ptr %4, align 8, !tbaa !5
  %59 = load ptr, ptr %6, align 8, !tbaa !5
  call void @ossl_list_uint_set_remove(ptr noundef %58, ptr noundef %59)
  %60 = load ptr, ptr %6, align 8, !tbaa !5
  call void @CRYPTO_free(ptr noundef %60, ptr noundef @.str, i32 noundef 280)
  br label %159

61:                                               ; preds = %50, %43
  %62 = load i64, ptr %9, align 8, !tbaa !12
  %63 = load ptr, ptr %6, align 8, !tbaa !5
  %64 = getelementptr inbounds %struct.uint_set_item_st, ptr %63, i32 0, i32 1
  %65 = getelementptr inbounds %struct.uint_range_st, ptr %64, i32 0, i32 0
  %66 = load i64, ptr %65, align 8, !tbaa !17
  %67 = icmp ule i64 %62, %66
  br i1 %67, label %68, label %90

68:                                               ; preds = %61
  %69 = load i64, ptr %10, align 8, !tbaa !12
  %70 = load ptr, ptr %6, align 8, !tbaa !5
  %71 = getelementptr inbounds %struct.uint_set_item_st, ptr %70, i32 0, i32 1
  %72 = getelementptr inbounds %struct.uint_range_st, ptr %71, i32 0, i32 0
  %73 = load i64, ptr %72, align 8, !tbaa !17
  %74 = icmp uge i64 %69, %73
  br i1 %74, label %75, label %90

75:                                               ; preds = %68
  %76 = load i64, ptr %10, align 8, !tbaa !12
  %77 = load ptr, ptr %6, align 8, !tbaa !5
  %78 = getelementptr inbounds %struct.uint_set_item_st, ptr %77, i32 0, i32 1
  %79 = getelementptr inbounds %struct.uint_range_st, ptr %78, i32 0, i32 1
  %80 = load i64, ptr %79, align 8, !tbaa !14
  %81 = icmp ult i64 %76, %80
  br i1 %81, label %82, label %83

82:                                               ; preds = %75
  br label %84

83:                                               ; preds = %75
  call void @__assert_fail(ptr noundef @.str.2, ptr noundef @.str, i32 noundef 287, ptr noundef @__PRETTY_FUNCTION__.ossl_uint_set_remove) #6
  unreachable

84:                                               ; preds = %82
  %85 = load i64, ptr %10, align 8, !tbaa !12
  %86 = add i64 %85, 1
  %87 = load ptr, ptr %6, align 8, !tbaa !5
  %88 = getelementptr inbounds %struct.uint_set_item_st, ptr %87, i32 0, i32 1
  %89 = getelementptr inbounds %struct.uint_range_st, ptr %88, i32 0, i32 0
  store i64 %86, ptr %89, align 8, !tbaa !17
  br label %158

90:                                               ; preds = %68, %61
  %91 = load i64, ptr %10, align 8, !tbaa !12
  %92 = load ptr, ptr %6, align 8, !tbaa !5
  %93 = getelementptr inbounds %struct.uint_set_item_st, ptr %92, i32 0, i32 1
  %94 = getelementptr inbounds %struct.uint_range_st, ptr %93, i32 0, i32 1
  %95 = load i64, ptr %94, align 8, !tbaa !14
  %96 = icmp uge i64 %91, %95
  br i1 %96, label %97, label %117

97:                                               ; preds = %90
  %98 = load i64, ptr %9, align 8, !tbaa !12
  %99 = load ptr, ptr %6, align 8, !tbaa !5
  %100 = getelementptr inbounds %struct.uint_set_item_st, ptr %99, i32 0, i32 1
  %101 = getelementptr inbounds %struct.uint_range_st, ptr %100, i32 0, i32 0
  %102 = load i64, ptr %101, align 8, !tbaa !17
  %103 = icmp ugt i64 %98, %102
  br i1 %103, label %104, label %105

104:                                              ; preds = %97
  br label %106

105:                                              ; preds = %97
  call void @__assert_fail(ptr noundef @.str.3, ptr noundef @.str, i32 noundef 295, ptr noundef @__PRETTY_FUNCTION__.ossl_uint_set_remove) #6
  unreachable

106:                                              ; preds = %104
  %107 = load i64, ptr %9, align 8, !tbaa !12
  %108 = icmp ugt i64 %107, 0
  br i1 %108, label %109, label %110

109:                                              ; preds = %106
  br label %111

110:                                              ; preds = %106
  call void @__assert_fail(ptr noundef @.str.4, ptr noundef @.str, i32 noundef 296, ptr noundef @__PRETTY_FUNCTION__.ossl_uint_set_remove) #6
  unreachable

111:                                              ; preds = %109
  %112 = load i64, ptr %9, align 8, !tbaa !12
  %113 = sub i64 %112, 1
  %114 = load ptr, ptr %6, align 8, !tbaa !5
  %115 = getelementptr inbounds %struct.uint_set_item_st, ptr %114, i32 0, i32 1
  %116 = getelementptr inbounds %struct.uint_range_st, ptr %115, i32 0, i32 1
  store i64 %113, ptr %116, align 8, !tbaa !14
  br label %162

117:                                              ; preds = %90
  %118 = load i64, ptr %9, align 8, !tbaa !12
  %119 = load ptr, ptr %6, align 8, !tbaa !5
  %120 = getelementptr inbounds %struct.uint_set_item_st, ptr %119, i32 0, i32 1
  %121 = getelementptr inbounds %struct.uint_range_st, ptr %120, i32 0, i32 0
  %122 = load i64, ptr %121, align 8, !tbaa !17
  %123 = icmp ugt i64 %118, %122
  br i1 %123, label %124, label %147

124:                                              ; preds = %117
  %125 = load i64, ptr %10, align 8, !tbaa !12
  %126 = load ptr, ptr %6, align 8, !tbaa !5
  %127 = getelementptr inbounds %struct.uint_set_item_st, ptr %126, i32 0, i32 1
  %128 = getelementptr inbounds %struct.uint_range_st, ptr %127, i32 0, i32 1
  %129 = load i64, ptr %128, align 8, !tbaa !14
  %130 = icmp ult i64 %125, %129
  br i1 %130, label %131, label %147

131:                                              ; preds = %124
  %132 = load i64, ptr %10, align 8, !tbaa !12
  %133 = add i64 %132, 1
  %134 = load ptr, ptr %6, align 8, !tbaa !5
  %135 = getelementptr inbounds %struct.uint_set_item_st, ptr %134, i32 0, i32 1
  %136 = getelementptr inbounds %struct.uint_range_st, ptr %135, i32 0, i32 1
  %137 = load i64, ptr %136, align 8, !tbaa !14
  %138 = call ptr @create_set_item(i64 noundef %133, i64 noundef %137)
  store ptr %138, ptr %8, align 8, !tbaa !5
  %139 = load ptr, ptr %4, align 8, !tbaa !5
  %140 = load ptr, ptr %6, align 8, !tbaa !5
  %141 = load ptr, ptr %8, align 8, !tbaa !5
  call void @ossl_list_uint_set_insert_after(ptr noundef %139, ptr noundef %140, ptr noundef %141)
  %142 = load i64, ptr %9, align 8, !tbaa !12
  %143 = sub i64 %142, 1
  %144 = load ptr, ptr %6, align 8, !tbaa !5
  %145 = getelementptr inbounds %struct.uint_set_item_st, ptr %144, i32 0, i32 1
  %146 = getelementptr inbounds %struct.uint_range_st, ptr %145, i32 0, i32 1
  store i64 %143, ptr %146, align 8, !tbaa !14
  br label %162

147:                                              ; preds = %124, %117
  %148 = load ptr, ptr %6, align 8, !tbaa !5
  %149 = getelementptr inbounds %struct.uint_set_item_st, ptr %148, i32 0, i32 1
  %150 = load ptr, ptr %5, align 8, !tbaa !5
  %151 = call i32 @uint_range_overlaps(ptr noundef %149, ptr noundef %150)
  %152 = icmp ne i32 %151, 0
  br i1 %152, label %154, label %153

153:                                              ; preds = %147
  br label %155

154:                                              ; preds = %147
  call void @__assert_fail(ptr noundef @.str.5, ptr noundef @.str, i32 noundef 311, ptr noundef @__PRETTY_FUNCTION__.ossl_uint_set_remove) #6
  unreachable

155:                                              ; preds = %153
  br label %156

156:                                              ; preds = %155
  br label %157

157:                                              ; preds = %156
  br label %158

158:                                              ; preds = %157, %84
  br label %159

159:                                              ; preds = %158, %57
  br label %160

160:                                              ; preds = %159
  %161 = load ptr, ptr %7, align 8, !tbaa !5
  store ptr %161, ptr %6, align 8, !tbaa !5
  br label %30, !llvm.loop !18

162:                                              ; preds = %131, %111, %42, %30
  store i32 1, ptr %3, align 4
  store i32 1, ptr %11, align 4
  br label %163

163:                                              ; preds = %162, %26
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #5
  %164 = load i32, ptr %3, align 4
  ret i32 %164
}

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) #4

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { inlinehint 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 = { 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 #4 = { noreturn 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 #5 = { nounwind }
attributes #6 = { noreturn 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, !11, i64 0}
!10 = !{!"uint_range_st", !11, i64 0, !11, i64 8}
!11 = !{!"long", !7, i64 0}
!12 = !{!11, !11, i64 0}
!13 = !{!10, !11, i64 8}
!14 = !{!15, !11, i64 32}
!15 = !{!"uint_set_item_st", !16, i64 0, !10, i64 24}
!16 = !{!"", !6, i64 0, !6, i64 8, !6, i64 16}
!17 = !{!15, !11, i64 24}
!18 = distinct !{!18, !19}
!19 = !{!"llvm.loop.mustprogress"}


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

@.str = external hidden unnamed_addr constant [69 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [19 x i8], align 1
@__PRETTY_FUNCTION__.ossl_uint_set_remove = external hidden unnamed_addr constant [57 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [39 x i8], align 1

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

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

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

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

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

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

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

; Function Attrs: nounwind uwtable
define dso_local range(i32 0, 2) i32 @ossl_uint_set_remove(ptr noundef %0, ptr noundef %1) local_unnamed_addr #2 {
  %3 = load i64, ptr %1, align 8, !tbaa !5
  %4 = getelementptr inbounds i8, ptr %1, i64 8
  %5 = load i64, ptr %4, align 8, !tbaa !10
  %6 = icmp ule i64 %3, %5
  %7 = zext i1 %6 to i32
  %8 = tail call i32 @ossl_assert_int(i32 noundef %7, ptr noundef nonnull @.str.1, ptr noundef nonnull @.str, i32 noundef 263)
  %.not = icmp eq i32 %8, 0
  br i1 %.not, label %.loopexit, label %9

9:                                                ; preds = %2
  %10 = tail call ptr @ossl_list_uint_set_tail(ptr noundef %0)
  %.not5175 = icmp eq ptr %10, null
  br i1 %.not5175, label %.loopexit, label %.lr.ph

.lr.ph:                                           ; preds = %9
  %11 = add nuw i64 %5, 1
  br label %12

12:                                               ; preds = %.lr.ph, %34
  %.04576 = phi ptr [ %10, %.lr.ph ], [ %13, %34 ]
  %13 = tail call ptr @ossl_list_uint_set_prev(ptr noundef nonnull %.04576)
  %14 = getelementptr inbounds i8, ptr %.04576, i64 24
  %15 = getelementptr inbounds i8, ptr %.04576, i64 32
  %16 = load i64, ptr %15, align 8, !tbaa !11
  %17 = icmp ugt i64 %3, %16
  br i1 %17, label %.loopexit, label %18

18:                                               ; preds = %12
  %19 = load i64, ptr %14, align 8, !tbaa !15
  %.not52 = icmp ugt i64 %3, %19
  %.not53 = icmp ult i64 %5, %16
  %or.cond = or i1 %.not53, %.not52
  br i1 %or.cond, label %21, label %20

20:                                               ; preds = %18
  tail call void @ossl_list_uint_set_remove(ptr noundef %0, ptr noundef nonnull %.04576)
  tail call void @CRYPTO_free(ptr noundef nonnull %.04576, ptr noundef nonnull @.str, i32 noundef 280) #4
  br label %34

21:                                               ; preds = %18
  %.not55 = icmp ult i64 %5, %19
  %or.cond58 = or i1 %.not52, %.not55
  br i1 %or.cond58, label %25, label %22

22:                                               ; preds = %21
  br i1 %.not53, label %24, label %23

23:                                               ; preds = %22
  tail call void @__assert_fail(ptr noundef nonnull @.str.2, ptr noundef nonnull @.str, i32 noundef 287, ptr noundef nonnull @__PRETTY_FUNCTION__.ossl_uint_set_remove) #5
  unreachable

24:                                               ; preds = %22
  store i64 %11, ptr %14, align 8, !tbaa !15
  br label %34

25:                                               ; preds = %21
  br i1 %.not53, label %28, label %26

26:                                               ; preds = %25
  br i1 %.not52, label %.loopexit.sink.split, label %27

27:                                               ; preds = %26
  tail call void @__assert_fail(ptr noundef nonnull @.str.3, ptr noundef nonnull @.str, i32 noundef 295, ptr noundef nonnull @__PRETTY_FUNCTION__.ossl_uint_set_remove) #5
  unreachable

28:                                               ; preds = %25
  br i1 %.not52, label %29, label %31

29:                                               ; preds = %28
  %30 = tail call ptr @create_set_item(i64 noundef %11, i64 noundef %16)
  tail call void @ossl_list_uint_set_insert_after(ptr noundef %0, ptr noundef nonnull %.04576, ptr noundef %30)
  br label %.loopexit.sink.split

31:                                               ; preds = %28
  %32 = tail call i32 @uint_range_overlaps(ptr noundef nonnull %14, ptr noundef nonnull %1)
  %.not57 = icmp eq i32 %32, 0
  br i1 %.not57, label %34, label %33

33:                                               ; preds = %31
  tail call void @__assert_fail(ptr noundef nonnull @.str.5, ptr noundef nonnull @.str, i32 noundef 311, ptr noundef nonnull @__PRETTY_FUNCTION__.ossl_uint_set_remove) #5
  unreachable

34:                                               ; preds = %20, %31, %24
  %.not51 = icmp eq ptr %13, null
  br i1 %.not51, label %.loopexit, label %12, !llvm.loop !16

.loopexit.sink.split:                             ; preds = %26, %29
  %.sink106 = getelementptr inbounds i8, ptr %.04576, i64 32
  %35 = add i64 %3, -1
  store i64 %35, ptr %.sink106, align 8, !tbaa !11
  br label %.loopexit

.loopexit:                                        ; preds = %12, %34, %.loopexit.sink.split, %9, %2
  %.0 = phi i32 [ 0, %2 ], [ 1, %9 ], [ 1, %.loopexit.sink.split ], [ 1, %34 ], [ 1, %12 ]
  ret i32 %.0
}

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #3

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

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 = { inlinehint 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 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 = { noreturn 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 }
attributes #5 = { noreturn 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, !7, i64 0}
!6 = !{!"uint_range_st", !7, i64 0, !7, i64 8}
!7 = !{!"long", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!6, !7, i64 8}
!11 = !{!12, !7, i64 32}
!12 = !{!"uint_set_item_st", !13, i64 0, !6, i64 24}
!13 = !{!"", !14, i64 0, !14, i64 8, !14, i64 16}
!14 = !{!"any pointer", !8, i64 0}
!15 = !{!12, !7, i64 24}
!16 = distinct !{!16, !17}
!17 = !{!"llvm.loop.mustprogress"}


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