; LLVM IR from openssl/openssl :: crypto/ct (ct_oct)

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

@.str = external hidden unnamed_addr constant [68 x i8], align 1
@__func__.o2i_SCT_LIST = external hidden unnamed_addr constant [13 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 @ERR_new() #1

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

declare void @ERR_set_error(i32 noundef, i32 noundef, ptr 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: nounwind uwtable
declare dso_local ptr @o2i_SCT(ptr noundef, ptr noundef, i64 noundef) #2

declare void @SCT_free(ptr noundef) #1

; Function Attrs: nounwind uwtable
define dso_local ptr @o2i_SCT_LIST(ptr noundef %0, ptr noundef %1, i64 noundef %2) #2 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca i64, align 8
  %8 = alloca ptr, align 8
  %9 = alloca i64, align 8
  %10 = alloca i64, align 8
  %11 = alloca i32, align 4
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  store ptr %0, ptr %5, align 8, !tbaa !5
  store ptr %1, ptr %6, align 8, !tbaa !5
  store i64 %2, ptr %7, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #4
  store ptr null, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #4
  %14 = load i64, ptr %7, align 8, !tbaa !9
  %15 = icmp ult i64 %14, 2
  br i1 %15, label %19, label %16

16:                                               ; preds = %3
  %17 = load i64, ptr %7, align 8, !tbaa !9
  %18 = icmp ugt i64 %17, 65535
  br i1 %18, label %19, label %20

19:                                               ; preds = %16, %3
  call void @ERR_new()
  call void @ERR_set_debug(ptr noundef @.str, i32 noundef 260, ptr noundef @__func__.o2i_SCT_LIST)
  call void (i32, i32, ptr, ...) @ERR_set_error(i32 noundef 50, i32 noundef 105, ptr noundef null)
  store ptr null, ptr %4, align 8
  store i32 1, ptr %11, align 4
  br label %144

20:                                               ; preds = %16
  %21 = load ptr, ptr %6, align 8, !tbaa !5
  %22 = load ptr, ptr %21, align 8, !tbaa !5
  %23 = getelementptr inbounds i8, ptr %22, i64 0
  %24 = load i8, ptr %23, align 1, !tbaa !11
  %25 = zext i8 %24 to i32
  %26 = shl i32 %25, 8
  %27 = load ptr, ptr %6, align 8, !tbaa !5
  %28 = load ptr, ptr %27, align 8, !tbaa !5
  %29 = getelementptr inbounds i8, ptr %28, i64 1
  %30 = load i8, ptr %29, align 1, !tbaa !11
  %31 = zext i8 %30 to i32
  %32 = or i32 %26, %31
  %33 = zext i32 %32 to i64
  store i64 %33, ptr %9, align 8, !tbaa !9
  %34 = load ptr, ptr %6, align 8, !tbaa !5
  %35 = load ptr, ptr %34, align 8, !tbaa !5
  %36 = getelementptr inbounds i8, ptr %35, i64 2
  store ptr %36, ptr %34, align 8, !tbaa !5
  %37 = load i64, ptr %9, align 8, !tbaa !9
  %38 = load i64, ptr %7, align 8, !tbaa !9
  %39 = sub i64 %38, 2
  %40 = icmp ne i64 %37, %39
  br i1 %40, label %41, label %42

41:                                               ; preds = %20
  call void @ERR_new()
  call void @ERR_set_debug(ptr noundef @.str, i32 noundef 266, ptr noundef @__func__.o2i_SCT_LIST)
  call void (i32, i32, ptr, ...) @ERR_set_error(i32 noundef 50, i32 noundef 105, ptr noundef null)
  store ptr null, ptr %4, align 8
  store i32 1, ptr %11, align 4
  br label %144

42:                                               ; preds = %20
  %43 = load ptr, ptr %5, align 8, !tbaa !5
  %44 = icmp eq ptr %43, null
  br i1 %44, label %49, label %45

45:                                               ; preds = %42
  %46 = load ptr, ptr %5, align 8, !tbaa !5
  %47 = load ptr, ptr %46, align 8, !tbaa !5
  %48 = icmp eq ptr %47, null
  br i1 %48, label %49, label %55

49:                                               ; preds = %45, %42
  %50 = call ptr @OPENSSL_sk_new_null()
  store ptr %50, ptr %8, align 8, !tbaa !5
  %51 = load ptr, ptr %8, align 8, !tbaa !5
  %52 = icmp eq ptr %51, null
  br i1 %52, label %53, label %54

53:                                               ; preds = %49
  store ptr null, ptr %4, align 8
  store i32 1, ptr %11, align 4
  br label %144

54:                                               ; preds = %49
  br label %66

55:                                               ; preds = %45
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #4
  %56 = load ptr, ptr %5, align 8, !tbaa !5
  %57 = load ptr, ptr %56, align 8, !tbaa !5
  store ptr %57, ptr %8, align 8, !tbaa !5
  br label %58

58:                                               ; preds = %63, %55
  %59 = load ptr, ptr %8, align 8, !tbaa !5
  %60 = call ptr @ossl_check_SCT_sk_type(ptr noundef %59)
  %61 = call ptr @OPENSSL_sk_pop(ptr noundef %60)
  store ptr %61, ptr %12, align 8, !tbaa !5
  %62 = icmp ne ptr %61, null
  br i1 %62, label %63, label %65

63:                                               ; preds = %58
  %64 = load ptr, ptr %12, align 8, !tbaa !5
  call void @SCT_free(ptr noundef %64)
  br label %58, !llvm.loop !12

65:                                               ; preds = %58
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #4
  br label %66

66:                                               ; preds = %65, %54
  br label %67

67:                                               ; preds = %121, %66
  %68 = load i64, ptr %9, align 8, !tbaa !9
  %69 = icmp ugt i64 %68, 0
  br i1 %69, label %70, label %122

70:                                               ; preds = %67
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #4
  %71 = load i64, ptr %9, align 8, !tbaa !9
  %72 = icmp ult i64 %71, 2
  br i1 %72, label %73, label %74

73:                                               ; preds = %70
  call void @ERR_new()
  call void @ERR_set_debug(ptr noundef @.str, i32 noundef 287, ptr noundef @__func__.o2i_SCT_LIST)
  call void (i32, i32, ptr, ...) @ERR_set_error(i32 noundef 50, i32 noundef 105, ptr noundef null)
  store i32 6, ptr %11, align 4
  br label %119

74:                                               ; preds = %70
  %75 = load ptr, ptr %6, align 8, !tbaa !5
  %76 = load ptr, ptr %75, align 8, !tbaa !5
  %77 = getelementptr inbounds i8, ptr %76, i64 0
  %78 = load i8, ptr %77, align 1, !tbaa !11
  %79 = zext i8 %78 to i32
  %80 = shl i32 %79, 8
  %81 = load ptr, ptr %6, align 8, !tbaa !5
  %82 = load ptr, ptr %81, align 8, !tbaa !5
  %83 = getelementptr inbounds i8, ptr %82, i64 1
  %84 = load i8, ptr %83, align 1, !tbaa !11
  %85 = zext i8 %84 to i32
  %86 = or i32 %80, %85
  %87 = zext i32 %86 to i64
  store i64 %87, ptr %10, align 8, !tbaa !9
  %88 = load ptr, ptr %6, align 8, !tbaa !5
  %89 = load ptr, ptr %88, align 8, !tbaa !5
  %90 = getelementptr inbounds i8, ptr %89, i64 2
  store ptr %90, ptr %88, align 8, !tbaa !5
  %91 = load i64, ptr %9, align 8, !tbaa !9
  %92 = sub i64 %91, 2
  store i64 %92, ptr %9, align 8, !tbaa !9
  %93 = load i64, ptr %10, align 8, !tbaa !9
  %94 = icmp eq i64 %93, 0
  br i1 %94, label %99, label %95

95:                                               ; preds = %74
  %96 = load i64, ptr %10, align 8, !tbaa !9
  %97 = load i64, ptr %9, align 8, !tbaa !9
  %98 = icmp ugt i64 %96, %97
  br i1 %98, label %99, label %100

99:                                               ; preds = %95, %74
  call void @ERR_new()
  call void @ERR_set_debug(ptr noundef @.str, i32 noundef 294, ptr noundef @__func__.o2i_SCT_LIST)
  call void (i32, i32, ptr, ...) @ERR_set_error(i32 noundef 50, i32 noundef 105, ptr noundef null)
  store i32 6, ptr %11, align 4
  br label %119

100:                                              ; preds = %95
  %101 = load i64, ptr %10, align 8, !tbaa !9
  %102 = load i64, ptr %9, align 8, !tbaa !9
  %103 = sub i64 %102, %101
  store i64 %103, ptr %9, align 8, !tbaa !9
  %104 = load ptr, ptr %6, align 8, !tbaa !5
  %105 = load i64, ptr %10, align 8, !tbaa !9
  %106 = call ptr @o2i_SCT(ptr noundef null, ptr noundef %104, i64 noundef %105)
  store ptr %106, ptr %13, align 8, !tbaa !5
  %107 = icmp eq ptr %106, null
  br i1 %107, label %108, label %109

108:                                              ; preds = %100
  store i32 6, ptr %11, align 4
  br label %119

109:                                              ; preds = %100
  %110 = load ptr, ptr %8, align 8, !tbaa !5
  %111 = call ptr @ossl_check_SCT_sk_type(ptr noundef %110)
  %112 = load ptr, ptr %13, align 8, !tbaa !5
  %113 = call ptr @ossl_check_SCT_type(ptr noundef %112)
  %114 = call i32 @OPENSSL_sk_push(ptr noundef %111, ptr noundef %113)
  %115 = icmp ne i32 %114, 0
  br i1 %115, label %118, label %116

116:                                              ; preds = %109
  %117 = load ptr, ptr %13, align 8, !tbaa !5
  call void @SCT_free(ptr noundef %117)
  store i32 6, ptr %11, align 4
  br label %119

118:                                              ; preds = %109
  store i32 0, ptr %11, align 4
  br label %119

119:                                              ; preds = %118, %116, %108, %99, %73
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #4
  %120 = load i32, ptr %11, align 4
  switch i32 %120, label %144 [
    i32 0, label %121
    i32 6, label %134
  ]

121:                                              ; preds = %119
  br label %67, !llvm.loop !14

122:                                              ; preds = %67
  %123 = load ptr, ptr %5, align 8, !tbaa !5
  %124 = icmp ne ptr %123, null
  br i1 %124, label %125, label %132

125:                                              ; preds = %122
  %126 = load ptr, ptr %5, align 8, !tbaa !5
  %127 = load ptr, ptr %126, align 8, !tbaa !5
  %128 = icmp eq ptr %127, null
  br i1 %128, label %129, label %132

129:                                              ; preds = %125
  %130 = load ptr, ptr %8, align 8, !tbaa !5
  %131 = load ptr, ptr %5, align 8, !tbaa !5
  store ptr %130, ptr %131, align 8, !tbaa !5
  br label %132

132:                                              ; preds = %129, %125, %122
  %133 = load ptr, ptr %8, align 8, !tbaa !5
  store ptr %133, ptr %4, align 8
  store i32 1, ptr %11, align 4
  br label %144

134:                                              ; preds = %119
  %135 = load ptr, ptr %5, align 8, !tbaa !5
  %136 = icmp eq ptr %135, null
  br i1 %136, label %141, label %137

137:                                              ; preds = %134
  %138 = load ptr, ptr %5, align 8, !tbaa !5
  %139 = load ptr, ptr %138, align 8, !tbaa !5
  %140 = icmp eq ptr %139, null
  br i1 %140, label %141, label %143

141:                                              ; preds = %137, %134
  %142 = load ptr, ptr %8, align 8, !tbaa !5
  call void @SCT_LIST_free(ptr noundef %142)
  br label %143

143:                                              ; preds = %141, %137
  store ptr null, ptr %4, align 8
  store i32 1, ptr %11, align 4
  br label %144

144:                                              ; preds = %143, %132, %119, %53, %41, %19
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #4
  %145 = load ptr, ptr %4, align 8
  ret ptr %145
}

declare ptr @OPENSSL_sk_new_null() #1

declare ptr @OPENSSL_sk_pop(ptr noundef) #1

; Function Attrs: inlinehint nounwind uwtable
declare hidden ptr @ossl_check_SCT_sk_type(ptr noundef) #3

declare i32 @OPENSSL_sk_push(ptr noundef, ptr noundef) #1

; Function Attrs: inlinehint nounwind uwtable
declare hidden ptr @ossl_check_SCT_type(ptr noundef) #3

declare void @SCT_LIST_free(ptr noundef) #1

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 = { 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 = { 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 #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 = !{!7, !7, i64 0}
!12 = distinct !{!12, !13}
!13 = !{!"llvm.loop.mustprogress"}
!14 = distinct !{!14, !13}


; 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 [68 x i8], align 1
@__func__.o2i_SCT_LIST = external hidden unnamed_addr constant [13 x i8], align 1

declare void @ERR_new() local_unnamed_addr #0

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

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

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

declare void @SCT_free(ptr noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
define dso_local ptr @o2i_SCT_LIST(ptr noundef %0, ptr noundef %1, i64 noundef %2) local_unnamed_addr #1 {
  %4 = add i64 %2, -65536
  %or.cond = icmp ult i64 %4, -65534
  br i1 %or.cond, label %5, label %6

5:                                                ; preds = %3
  tail call void @ERR_new() #3
  tail call void @ERR_set_debug(ptr noundef nonnull @.str, i32 noundef 260, ptr noundef nonnull @__func__.o2i_SCT_LIST) #3
  tail call void (i32, i32, ptr, ...) @ERR_set_error(i32 noundef 50, i32 noundef 105, ptr noundef null) #3
  br label %64

6:                                                ; preds = %3
  %7 = load ptr, ptr %1, align 8, !tbaa !5
  %8 = load i8, ptr %7, align 1, !tbaa !9
  %9 = zext i8 %8 to i64
  %10 = shl nuw nsw i64 %9, 8
  %11 = getelementptr inbounds i8, ptr %7, i64 1
  %12 = load i8, ptr %11, align 1, !tbaa !9
  %13 = zext i8 %12 to i64
  %14 = or disjoint i64 %10, %13
  %15 = getelementptr inbounds i8, ptr %7, i64 2
  store ptr %15, ptr %1, align 8, !tbaa !5
  %16 = add nsw i64 %2, -2
  %.not = icmp eq i64 %14, %16
  br i1 %.not, label %18, label %17

17:                                               ; preds = %6
  tail call void @ERR_new() #3
  tail call void @ERR_set_debug(ptr noundef nonnull @.str, i32 noundef 266, ptr noundef nonnull @__func__.o2i_SCT_LIST) #3
  tail call void (i32, i32, ptr, ...) @ERR_set_error(i32 noundef 50, i32 noundef 105, ptr noundef null) #3
  br label %64

18:                                               ; preds = %6
  %19 = icmp eq ptr %0, null
  br i1 %19, label %25, label %20

20:                                               ; preds = %18
  %21 = load ptr, ptr %0, align 8, !tbaa !5
  %22 = icmp eq ptr %21, null
  br i1 %22, label %25, label %.preheader

.preheader:                                       ; preds = %20
  %23 = tail call ptr @ossl_check_SCT_sk_type(ptr noundef nonnull %21)
  %24 = tail call ptr @OPENSSL_sk_pop(ptr noundef %23) #3
  %.not5261 = icmp eq ptr %24, null
  br i1 %.not5261, label %.loopexit59, label %.lr.ph

25:                                               ; preds = %20, %18
  %26 = tail call ptr @OPENSSL_sk_new_null() #3
  %27 = icmp eq ptr %26, null
  br i1 %27, label %64, label %.loopexit59

.lr.ph:                                           ; preds = %.preheader, %.lr.ph
  %28 = phi ptr [ %30, %.lr.ph ], [ %24, %.preheader ]
  tail call void @SCT_free(ptr noundef nonnull %28) #3
  %29 = tail call ptr @ossl_check_SCT_sk_type(ptr noundef nonnull %21)
  %30 = tail call ptr @OPENSSL_sk_pop(ptr noundef %29) #3
  %.not52 = icmp eq ptr %30, null
  br i1 %.not52, label %.loopexit59, label %.lr.ph, !llvm.loop !10

.loopexit59:                                      ; preds = %.lr.ph, %.preheader, %25
  %.039 = phi ptr [ %26, %25 ], [ %21, %.preheader ], [ %21, %.lr.ph ]
  br label %31

31:                                               ; preds = %49, %.loopexit59
  %.041 = phi i64 [ %14, %.loopexit59 ], [ %50, %49 ]
  switch i64 %.041, label %33 [
    i64 0, label %55
    i64 1, label %32
  ]

32:                                               ; preds = %31
  tail call void @ERR_new() #3
  tail call void @ERR_set_debug(ptr noundef nonnull @.str, i32 noundef 287, ptr noundef nonnull @__func__.o2i_SCT_LIST) #3
  tail call void (i32, i32, ptr, ...) @ERR_set_error(i32 noundef 50, i32 noundef 105, ptr noundef null) #3
  br label %.loopexit

33:                                               ; preds = %31
  %34 = load ptr, ptr %1, align 8, !tbaa !5
  %35 = load i8, ptr %34, align 1, !tbaa !9
  %36 = zext i8 %35 to i64
  %37 = shl nuw nsw i64 %36, 8
  %38 = getelementptr inbounds i8, ptr %34, i64 1
  %39 = load i8, ptr %38, align 1, !tbaa !9
  %40 = zext i8 %39 to i64
  %41 = or disjoint i64 %37, %40
  %42 = getelementptr inbounds i8, ptr %34, i64 2
  store ptr %42, ptr %1, align 8, !tbaa !5
  %43 = add i64 %.041, -2
  %44 = add nsw i64 %41, -1
  %or.cond56.not = icmp ult i64 %44, %43
  br i1 %or.cond56.not, label %46, label %45

45:                                               ; preds = %33
  tail call void @ERR_new() #3
  tail call void @ERR_set_debug(ptr noundef nonnull @.str, i32 noundef 294, ptr noundef nonnull @__func__.o2i_SCT_LIST) #3
  tail call void (i32, i32, ptr, ...) @ERR_set_error(i32 noundef 50, i32 noundef 105, ptr noundef null) #3
  br label %.loopexit

46:                                               ; preds = %33
  %47 = tail call ptr @o2i_SCT(ptr noundef null, ptr noundef nonnull %1, i64 noundef %41)
  %48 = icmp eq ptr %47, null
  br i1 %48, label %.loopexit, label %49

49:                                               ; preds = %46
  %50 = sub i64 %43, %41
  %51 = tail call ptr @ossl_check_SCT_sk_type(ptr noundef nonnull %.039)
  %52 = tail call ptr @ossl_check_SCT_type(ptr noundef nonnull %47)
  %53 = tail call i32 @OPENSSL_sk_push(ptr noundef %51, ptr noundef %52) #3
  %.not55 = icmp eq i32 %53, 0
  br i1 %.not55, label %54, label %31

54:                                               ; preds = %49
  tail call void @SCT_free(ptr noundef nonnull %47) #3
  br label %.loopexit

55:                                               ; preds = %31
  br i1 %19, label %64, label %56

56:                                               ; preds = %55
  %57 = load ptr, ptr %0, align 8, !tbaa !5
  %58 = icmp eq ptr %57, null
  br i1 %58, label %59, label %64

59:                                               ; preds = %56
  store ptr %.039, ptr %0, align 8, !tbaa !5
  br label %64

.loopexit:                                        ; preds = %46, %32, %45, %54
  br i1 %19, label %63, label %60

60:                                               ; preds = %.loopexit
  %61 = load ptr, ptr %0, align 8, !tbaa !5
  %62 = icmp eq ptr %61, null
  br i1 %62, label %63, label %64

63:                                               ; preds = %60, %.loopexit
  tail call void @SCT_LIST_free(ptr noundef nonnull %.039) #3
  br label %64

64:                                               ; preds = %60, %63, %55, %56, %59, %25, %17, %5
  %.0 = phi ptr [ null, %5 ], [ null, %17 ], [ null, %25 ], [ %.039, %59 ], [ %.039, %56 ], [ %.039, %55 ], [ null, %63 ], [ null, %60 ]
  ret ptr %.0
}

declare ptr @OPENSSL_sk_new_null() local_unnamed_addr #0

declare ptr @OPENSSL_sk_pop(ptr noundef) local_unnamed_addr #0

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

declare i32 @OPENSSL_sk_push(ptr noundef, ptr noundef) local_unnamed_addr #0

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

declare void @SCT_LIST_free(ptr noundef) local_unnamed_addr #0

attributes #0 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { 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 }

!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 = !{!7, !7, i64 0}
!10 = distinct !{!10, !11}
!11 = !{!"llvm.loop.mustprogress"}


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