; LLVM IR from openssl/openssl :: apps/lib (opt)

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

@prog = external hidden global [40 x i8], align 16
@.str.2 = external hidden unnamed_addr constant [64 x i8], align 1
@.str.34 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.35 = external hidden unnamed_addr constant [37 x i8], align 1
@.str.36 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.37 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.38 = external hidden unnamed_addr constant [37 x i8], align 1
@.str.39 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.40 = external hidden unnamed_addr constant [39 x i8], align 1
@.str.41 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.42 = external hidden unnamed_addr constant [32 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 nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0

; Function Attrs: noreturn
declare void @OPENSSL_die(ptr noundef, ptr noundef, i32 noundef) #1

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

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

; Function Attrs: nounwind uwtable
define dso_local i32 @opt_verify(i32 noundef %0, ptr noundef %1) #3 {
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca i64, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca i32, 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) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #5
  store i64 0, ptr %7, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #5
  %12 = load ptr, ptr %5, align 8, !tbaa !9
  %13 = icmp ne ptr %12, null
  br i1 %13, label %14, label %15

14:                                               ; preds = %2
  br label %17

15:                                               ; preds = %2
  call void @OPENSSL_die(ptr noundef @.str.34, ptr noundef @.str.2, i32 noundef 717) #6
  unreachable

16:                                               ; No predecessors!
  br label %17

17:                                               ; preds = %16, %14
  %18 = phi i32 [ 0, %14 ], [ 1, %16 ]
  %19 = load i32, ptr %4, align 4, !tbaa !5
  %20 = icmp sgt i32 %19, 2000
  br i1 %20, label %21, label %22

21:                                               ; preds = %17
  br label %24

22:                                               ; preds = %17
  call void @OPENSSL_die(ptr noundef @.str.35, ptr noundef @.str.2, i32 noundef 718) #6
  unreachable

23:                                               ; No predecessors!
  br label %24

24:                                               ; preds = %23, %21
  %25 = phi i32 [ 0, %21 ], [ 1, %23 ]
  %26 = load i32, ptr %4, align 4, !tbaa !5
  %27 = icmp slt i32 %26, 2031
  br i1 %27, label %28, label %29

28:                                               ; preds = %24
  br label %31

29:                                               ; preds = %24
  call void @OPENSSL_die(ptr noundef @.str.36, ptr noundef @.str.2, i32 noundef 719) #6
  unreachable

30:                                               ; No predecessors!
  br label %31

31:                                               ; preds = %30, %28
  %32 = phi i32 [ 0, %28 ], [ 1, %30 ]
  %33 = load i32, ptr %4, align 4, !tbaa !5
  switch i32 %33, label %200 [
    i32 2000, label %34
    i32 2031, label %34
    i32 2001, label %35
    i32 2002, label %53
    i32 2003, label %74
    i32 2004, label %86
    i32 2029, label %95
    i32 2005, label %104
    i32 2006, label %119
    i32 2007, label %126
    i32 2008, label %133
    i32 2009, label %140
    i32 2010, label %200
    i32 2011, label %143
    i32 2012, label %146
    i32 2013, label %149
    i32 2014, label %152
    i32 2015, label %155
    i32 2016, label %158
    i32 2017, label %161
    i32 2018, label %164
    i32 2019, label %167
    i32 2020, label %170
    i32 2021, label %173
    i32 2022, label %176
    i32 2023, label %179
    i32 2024, label %182
    i32 2025, label %185
    i32 2026, label %188
    i32 2027, label %191
    i32 2028, label %194
    i32 2030, label %197
  ]

34:                                               ; preds = %31, %31
  store i32 0, ptr %3, align 4
  store i32 1, ptr %11, align 4
  br label %201

35:                                               ; preds = %31
  %36 = call ptr @opt_arg()
  %37 = call ptr @OBJ_txt2obj(ptr noundef %36, i32 noundef 0)
  store ptr %37, ptr %8, align 8, !tbaa !9
  %38 = load ptr, ptr %8, align 8, !tbaa !9
  %39 = icmp eq ptr %38, null
  br i1 %39, label %40, label %43

40:                                               ; preds = %35
  %41 = call ptr @opt_arg()
  %42 = call i32 (ptr, ...) @opt_printf_stderr(ptr noundef @.str.37, ptr noundef @prog, ptr noundef %41)
  store i32 0, ptr %3, align 4
  store i32 1, ptr %11, align 4
  br label %201

43:                                               ; preds = %35
  %44 = load ptr, ptr %5, align 8, !tbaa !9
  %45 = load ptr, ptr %8, align 8, !tbaa !9
  %46 = call i32 @X509_VERIFY_PARAM_add0_policy(ptr noundef %44, ptr noundef %45)
  %47 = icmp ne i32 %46, 0
  br i1 %47, label %52, label %48

48:                                               ; preds = %43
  %49 = load ptr, ptr %8, align 8, !tbaa !9
  call void @ASN1_OBJECT_free(ptr noundef %49)
  %50 = call ptr @opt_arg()
  %51 = call i32 (ptr, ...) @opt_printf_stderr(ptr noundef @.str.38, ptr noundef @prog, ptr noundef %50)
  store i32 0, ptr %3, align 4
  store i32 1, ptr %11, align 4
  br label %201

52:                                               ; preds = %43
  br label %200

53:                                               ; preds = %31
  %54 = call ptr @opt_arg()
  %55 = call i32 @X509_PURPOSE_get_by_sname(ptr noundef %54)
  store i32 %55, ptr %6, align 4, !tbaa !5
  %56 = load i32, ptr %6, align 4, !tbaa !5
  %57 = icmp slt i32 %56, 0
  br i1 %57, label %58, label %61

58:                                               ; preds = %53
  %59 = call ptr @opt_arg()
  %60 = call i32 (ptr, ...) @opt_printf_stderr(ptr noundef @.str.39, ptr noundef @prog, ptr noundef %59)
  store i32 0, ptr %3, align 4
  store i32 1, ptr %11, align 4
  br label %201

61:                                               ; preds = %53
  %62 = load i32, ptr %6, align 4, !tbaa !5
  %63 = call ptr @X509_PURPOSE_get0(i32 noundef %62)
  store ptr %63, ptr %9, align 8, !tbaa !9
  %64 = load ptr, ptr %9, align 8, !tbaa !9
  %65 = call i32 @X509_PURPOSE_get_id(ptr noundef %64)
  store i32 %65, ptr %6, align 4, !tbaa !5
  %66 = load ptr, ptr %5, align 8, !tbaa !9
  %67 = load i32, ptr %6, align 4, !tbaa !5
  %68 = call i32 @X509_VERIFY_PARAM_set_purpose(ptr noundef %66, i32 noundef %67)
  %69 = icmp ne i32 %68, 0
  br i1 %69, label %73, label %70

70:                                               ; preds = %61
  %71 = call ptr @opt_arg()
  %72 = call i32 (ptr, ...) @opt_printf_stderr(ptr noundef @.str.40, ptr noundef @prog, ptr noundef %71)
  store i32 0, ptr %3, align 4
  store i32 1, ptr %11, align 4
  br label %201

73:                                               ; preds = %61
  br label %200

74:                                               ; preds = %31
  %75 = call ptr @opt_arg()
  %76 = call ptr @X509_VERIFY_PARAM_lookup(ptr noundef %75)
  store ptr %76, ptr %10, align 8, !tbaa !9
  %77 = load ptr, ptr %10, align 8, !tbaa !9
  %78 = icmp eq ptr %77, null
  br i1 %78, label %79, label %82

79:                                               ; preds = %74
  %80 = call ptr @opt_arg()
  %81 = call i32 (ptr, ...) @opt_printf_stderr(ptr noundef @.str.41, ptr noundef @prog, ptr noundef %80)
  store i32 0, ptr %3, align 4
  store i32 1, ptr %11, align 4
  br label %201

82:                                               ; preds = %74
  %83 = load ptr, ptr %5, align 8, !tbaa !9
  %84 = load ptr, ptr %10, align 8, !tbaa !9
  %85 = call i32 @X509_VERIFY_PARAM_set1(ptr noundef %83, ptr noundef %84)
  br label %200

86:                                               ; preds = %31
  %87 = call ptr @opt_arg()
  %88 = call i32 @atoi(ptr noundef %87) #7
  store i32 %88, ptr %6, align 4, !tbaa !5
  %89 = load i32, ptr %6, align 4, !tbaa !5
  %90 = icmp sge i32 %89, 0
  br i1 %90, label %91, label %94

91:                                               ; preds = %86
  %92 = load ptr, ptr %5, align 8, !tbaa !9
  %93 = load i32, ptr %6, align 4, !tbaa !5
  call void @X509_VERIFY_PARAM_set_depth(ptr noundef %92, i32 noundef %93)
  br label %94

94:                                               ; preds = %91, %86
  br label %200

95:                                               ; preds = %31
  %96 = call ptr @opt_arg()
  %97 = call i32 @atoi(ptr noundef %96) #7
  store i32 %97, ptr %6, align 4, !tbaa !5
  %98 = load i32, ptr %6, align 4, !tbaa !5
  %99 = icmp sge i32 %98, 0
  br i1 %99, label %100, label %103

100:                                              ; preds = %95
  %101 = load ptr, ptr %5, align 8, !tbaa !9
  %102 = load i32, ptr %6, align 4, !tbaa !5
  call void @X509_VERIFY_PARAM_set_auth_level(ptr noundef %101, i32 noundef %102)
  br label %103

103:                                              ; preds = %100, %95
  br label %200

104:                                              ; preds = %31
  %105 = call ptr @opt_arg()
  %106 = call i32 @opt_intmax(ptr noundef %105, ptr noundef %7)
  %107 = icmp ne i32 %106, 0
  br i1 %107, label %109, label %108

108:                                              ; preds = %104
  store i32 0, ptr %3, align 4
  store i32 1, ptr %11, align 4
  br label %201

109:                                              ; preds = %104
  %110 = load i64, ptr %7, align 8, !tbaa !11
  %111 = load i64, ptr %7, align 8, !tbaa !11
  %112 = icmp ne i64 %110, %111
  br i1 %112, label %113, label %116

113:                                              ; preds = %109
  %114 = call ptr @opt_arg()
  %115 = call i32 (ptr, ...) @opt_printf_stderr(ptr noundef @.str.42, ptr noundef @prog, ptr noundef %114)
  store i32 0, ptr %3, align 4
  store i32 1, ptr %11, align 4
  br label %201

116:                                              ; preds = %109
  %117 = load ptr, ptr %5, align 8, !tbaa !9
  %118 = load i64, ptr %7, align 8, !tbaa !11
  call void @X509_VERIFY_PARAM_set_time(ptr noundef %117, i64 noundef %118)
  br label %200

119:                                              ; preds = %31
  %120 = load ptr, ptr %5, align 8, !tbaa !9
  %121 = call ptr @opt_arg()
  %122 = call i32 @X509_VERIFY_PARAM_set1_host(ptr noundef %120, ptr noundef %121, i64 noundef 0)
  %123 = icmp ne i32 %122, 0
  br i1 %123, label %125, label %124

124:                                              ; preds = %119
  store i32 0, ptr %3, align 4
  store i32 1, ptr %11, align 4
  br label %201

125:                                              ; preds = %119
  br label %200

126:                                              ; preds = %31
  %127 = load ptr, ptr %5, align 8, !tbaa !9
  %128 = call ptr @opt_arg()
  %129 = call i32 @X509_VERIFY_PARAM_set1_email(ptr noundef %127, ptr noundef %128, i64 noundef 0)
  %130 = icmp ne i32 %129, 0
  br i1 %130, label %132, label %131

131:                                              ; preds = %126
  store i32 0, ptr %3, align 4
  store i32 1, ptr %11, align 4
  br label %201

132:                                              ; preds = %126
  br label %200

133:                                              ; preds = %31
  %134 = load ptr, ptr %5, align 8, !tbaa !9
  %135 = call ptr @opt_arg()
  %136 = call i32 @X509_VERIFY_PARAM_set1_ip_asc(ptr noundef %134, ptr noundef %135)
  %137 = icmp ne i32 %136, 0
  br i1 %137, label %139, label %138

138:                                              ; preds = %133
  store i32 0, ptr %3, align 4
  store i32 1, ptr %11, align 4
  br label %201

139:                                              ; preds = %133
  br label %200

140:                                              ; preds = %31
  %141 = load ptr, ptr %5, align 8, !tbaa !9
  %142 = call i32 @X509_VERIFY_PARAM_set_flags(ptr noundef %141, i64 noundef 16)
  br label %200

143:                                              ; preds = %31
  %144 = load ptr, ptr %5, align 8, !tbaa !9
  %145 = call i32 @X509_VERIFY_PARAM_set_flags(ptr noundef %144, i64 noundef 4)
  br label %200

146:                                              ; preds = %31
  %147 = load ptr, ptr %5, align 8, !tbaa !9
  %148 = call i32 @X509_VERIFY_PARAM_set_flags(ptr noundef %147, i64 noundef 12)
  br label %200

149:                                              ; preds = %31
  %150 = load ptr, ptr %5, align 8, !tbaa !9
  %151 = call i32 @X509_VERIFY_PARAM_set_flags(ptr noundef %150, i64 noundef 128)
  br label %200

152:                                              ; preds = %31
  %153 = load ptr, ptr %5, align 8, !tbaa !9
  %154 = call i32 @X509_VERIFY_PARAM_set_flags(ptr noundef %153, i64 noundef 256)
  br label %200

155:                                              ; preds = %31
  %156 = load ptr, ptr %5, align 8, !tbaa !9
  %157 = call i32 @X509_VERIFY_PARAM_set_flags(ptr noundef %156, i64 noundef 512)
  br label %200

158:                                              ; preds = %31
  %159 = load ptr, ptr %5, align 8, !tbaa !9
  %160 = call i32 @X509_VERIFY_PARAM_set_flags(ptr noundef %159, i64 noundef 1024)
  br label %200

161:                                              ; preds = %31
  %162 = load ptr, ptr %5, align 8, !tbaa !9
  %163 = call i32 @X509_VERIFY_PARAM_set_flags(ptr noundef %162, i64 noundef 32)
  br label %200

164:                                              ; preds = %31
  %165 = load ptr, ptr %5, align 8, !tbaa !9
  %166 = call i32 @X509_VERIFY_PARAM_set_flags(ptr noundef %165, i64 noundef 4096)
  br label %200

167:                                              ; preds = %31
  %168 = load ptr, ptr %5, align 8, !tbaa !9
  %169 = call i32 @X509_VERIFY_PARAM_set_flags(ptr noundef %168, i64 noundef 8192)
  br label %200

170:                                              ; preds = %31
  %171 = load ptr, ptr %5, align 8, !tbaa !9
  %172 = call i32 @X509_VERIFY_PARAM_set_flags(ptr noundef %171, i64 noundef 2048)
  br label %200

173:                                              ; preds = %31
  %174 = load ptr, ptr %5, align 8, !tbaa !9
  %175 = call i32 @X509_VERIFY_PARAM_set_flags(ptr noundef %174, i64 noundef 16384)
  br label %200

176:                                              ; preds = %31
  %177 = load ptr, ptr %5, align 8, !tbaa !9
  %178 = call i32 @X509_VERIFY_PARAM_set_flags(ptr noundef %177, i64 noundef 32768)
  br label %200

179:                                              ; preds = %31
  %180 = load ptr, ptr %5, align 8, !tbaa !9
  %181 = call i32 @X509_VERIFY_PARAM_set_flags(ptr noundef %180, i64 noundef 65536)
  br label %200

182:                                              ; preds = %31
  %183 = load ptr, ptr %5, align 8, !tbaa !9
  %184 = call i32 @X509_VERIFY_PARAM_set_flags(ptr noundef %183, i64 noundef 196608)
  br label %200

185:                                              ; preds = %31
  %186 = load ptr, ptr %5, align 8, !tbaa !9
  %187 = call i32 @X509_VERIFY_PARAM_set_flags(ptr noundef %186, i64 noundef 131072)
  br label %200

188:                                              ; preds = %31
  %189 = load ptr, ptr %5, align 8, !tbaa !9
  %190 = call i32 @X509_VERIFY_PARAM_set_flags(ptr noundef %189, i64 noundef 524288)
  br label %200

191:                                              ; preds = %31
  %192 = load ptr, ptr %5, align 8, !tbaa !9
  %193 = call i32 @X509_VERIFY_PARAM_set_flags(ptr noundef %192, i64 noundef 1048576)
  br label %200

194:                                              ; preds = %31
  %195 = load ptr, ptr %5, align 8, !tbaa !9
  %196 = call i32 @X509_VERIFY_PARAM_set_flags(ptr noundef %195, i64 noundef 2097152)
  br label %200

197:                                              ; preds = %31
  %198 = load ptr, ptr %5, align 8, !tbaa !9
  %199 = call i32 @X509_VERIFY_PARAM_set_flags(ptr noundef %198, i64 noundef 64)
  br label %200

200:                                              ; preds = %197, %194, %191, %188, %185, %182, %179, %176, %173, %170, %167, %164, %161, %158, %155, %152, %149, %146, %143, %140, %139, %132, %125, %116, %103, %94, %82, %73, %52, %31, %31
  store i32 1, ptr %3, align 4
  store i32 1, ptr %11, align 4
  br label %201

201:                                              ; preds = %200, %138, %131, %124, %113, %108, %79, %70, %58, %48, %40, %34
  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 4, ptr %6) #5
  %202 = load i32, ptr %3, align 4
  ret i32 %202
}

declare ptr @OBJ_txt2obj(ptr noundef, i32 noundef) #2

; Function Attrs: nounwind uwtable
declare dso_local ptr @opt_arg() #3

declare i32 @X509_VERIFY_PARAM_add0_policy(ptr noundef, ptr noundef) #2

declare void @ASN1_OBJECT_free(ptr noundef) #2

declare i32 @X509_PURPOSE_get_by_sname(ptr noundef) #2

declare ptr @X509_PURPOSE_get0(i32 noundef) #2

declare i32 @X509_PURPOSE_get_id(ptr noundef) #2

declare i32 @X509_VERIFY_PARAM_set_purpose(ptr noundef, i32 noundef) #2

declare ptr @X509_VERIFY_PARAM_lookup(ptr noundef) #2

declare i32 @X509_VERIFY_PARAM_set1(ptr noundef, ptr noundef) #2

; Function Attrs: inlinehint nounwind willreturn memory(read) uwtable
declare i32 @atoi(ptr noundef nonnull) #4

declare void @X509_VERIFY_PARAM_set_depth(ptr noundef, i32 noundef) #2

declare void @X509_VERIFY_PARAM_set_auth_level(ptr noundef, i32 noundef) #2

declare void @X509_VERIFY_PARAM_set_time(ptr noundef, i64 noundef) #2

declare i32 @X509_VERIFY_PARAM_set1_host(ptr noundef, ptr noundef, i64 noundef) #2

declare i32 @X509_VERIFY_PARAM_set1_email(ptr noundef, ptr noundef, i64 noundef) #2

declare i32 @X509_VERIFY_PARAM_set1_ip_asc(ptr noundef, ptr noundef) #2

declare i32 @X509_VERIFY_PARAM_set_flags(ptr noundef, i64 noundef) #2

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { noreturn "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 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 = { inlinehint nounwind willreturn memory(read) 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 = { noreturn }
attributes #7 = { nounwind willreturn memory(read) }

!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}


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

@prog = external hidden global [40 x i8], align 16
@.str.2 = external hidden unnamed_addr constant [64 x i8], align 1
@.str.34 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.35 = external hidden unnamed_addr constant [37 x i8], align 1
@.str.36 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.37 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.38 = external hidden unnamed_addr constant [37 x i8], align 1
@.str.39 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.40 = external hidden unnamed_addr constant [39 x i8], align 1
@.str.41 = external hidden unnamed_addr constant [28 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: noreturn
declare void @OPENSSL_die(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #1

declare i32 @opt_printf_stderr(ptr noundef, ...) local_unnamed_addr #2

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

; Function Attrs: nounwind uwtable
define dso_local range(i32 0, 2) i32 @opt_verify(i32 noundef %0, ptr noundef %1) local_unnamed_addr #3 {
  %3 = alloca i64, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #5
  store i64 0, ptr %3, align 8, !tbaa !5
  %.not = icmp eq ptr %1, null
  br i1 %.not, label %4, label %5

4:                                                ; preds = %2
  tail call void @OPENSSL_die(ptr noundef nonnull @.str.34, ptr noundef nonnull @.str.2, i32 noundef 717) #6
  unreachable

5:                                                ; preds = %2
  %6 = icmp sgt i32 %0, 2000
  br i1 %6, label %8, label %7

7:                                                ; preds = %5
  tail call void @OPENSSL_die(ptr noundef nonnull @.str.35, ptr noundef nonnull @.str.2, i32 noundef 718) #6
  unreachable

8:                                                ; preds = %5
  %9 = icmp ult i32 %0, 2031
  br i1 %9, label %11, label %10

10:                                               ; preds = %8
  tail call void @OPENSSL_die(ptr noundef nonnull @.str.36, ptr noundef nonnull @.str.2, i32 noundef 719) #6
  unreachable

11:                                               ; preds = %8
  switch i32 %0, label %111 [
    i32 2028, label %107
    i32 2027, label %105
    i32 2001, label %12
    i32 2002, label %24
    i32 2003, label %38
    i32 2004, label %47
    i32 2029, label %52
    i32 2005, label %57
    i32 2006, label %62
    i32 2007, label %65
    i32 2008, label %68
    i32 2009, label %71
    i32 2030, label %109
    i32 2011, label %73
    i32 2012, label %75
    i32 2013, label %77
    i32 2014, label %79
    i32 2015, label %81
    i32 2016, label %83
    i32 2017, label %85
    i32 2018, label %87
    i32 2019, label %89
    i32 2020, label %91
    i32 2021, label %93
    i32 2022, label %95
    i32 2023, label %97
    i32 2024, label %99
    i32 2025, label %101
    i32 2026, label %103
  ]

12:                                               ; preds = %11
  %13 = tail call ptr @opt_arg()
  %14 = tail call ptr @OBJ_txt2obj(ptr noundef %13, i32 noundef 0) #5
  %15 = icmp eq ptr %14, null
  br i1 %15, label %16, label %19

16:                                               ; preds = %12
  %17 = tail call ptr @opt_arg()
  %18 = tail call i32 (ptr, ...) @opt_printf_stderr(ptr noundef nonnull @.str.37, ptr noundef nonnull @prog, ptr noundef %17) #5
  br label %112

19:                                               ; preds = %12
  %20 = tail call i32 @X509_VERIFY_PARAM_add0_policy(ptr noundef nonnull %1, ptr noundef nonnull %14) #5
  %.not58 = icmp eq i32 %20, 0
  br i1 %.not58, label %21, label %111

21:                                               ; preds = %19
  tail call void @ASN1_OBJECT_free(ptr noundef nonnull %14) #5
  %22 = tail call ptr @opt_arg()
  %23 = tail call i32 (ptr, ...) @opt_printf_stderr(ptr noundef nonnull @.str.38, ptr noundef nonnull @prog, ptr noundef %22) #5
  br label %112

24:                                               ; preds = %11
  %25 = tail call ptr @opt_arg()
  %26 = tail call i32 @X509_PURPOSE_get_by_sname(ptr noundef %25) #5
  %27 = icmp slt i32 %26, 0
  br i1 %27, label %28, label %31

28:                                               ; preds = %24
  %29 = tail call ptr @opt_arg()
  %30 = tail call i32 (ptr, ...) @opt_printf_stderr(ptr noundef nonnull @.str.39, ptr noundef nonnull @prog, ptr noundef %29) #5
  br label %112

31:                                               ; preds = %24
  %32 = tail call ptr @X509_PURPOSE_get0(i32 noundef %26) #5
  %33 = tail call i32 @X509_PURPOSE_get_id(ptr noundef %32) #5
  %34 = tail call i32 @X509_VERIFY_PARAM_set_purpose(ptr noundef nonnull %1, i32 noundef %33) #5
  %.not57 = icmp eq i32 %34, 0
  br i1 %.not57, label %35, label %111

35:                                               ; preds = %31
  %36 = tail call ptr @opt_arg()
  %37 = tail call i32 (ptr, ...) @opt_printf_stderr(ptr noundef nonnull @.str.40, ptr noundef nonnull @prog, ptr noundef %36) #5
  br label %112

38:                                               ; preds = %11
  %39 = tail call ptr @opt_arg()
  %40 = tail call ptr @X509_VERIFY_PARAM_lookup(ptr noundef %39) #5
  %41 = icmp eq ptr %40, null
  br i1 %41, label %42, label %45

42:                                               ; preds = %38
  %43 = tail call ptr @opt_arg()
  %44 = tail call i32 (ptr, ...) @opt_printf_stderr(ptr noundef nonnull @.str.41, ptr noundef nonnull @prog, ptr noundef %43) #5
  br label %112

45:                                               ; preds = %38
  %46 = tail call i32 @X509_VERIFY_PARAM_set1(ptr noundef nonnull %1, ptr noundef nonnull %40) #5
  br label %111

47:                                               ; preds = %11
  %48 = tail call ptr @opt_arg()
  %49 = tail call i32 @atoi(ptr nocapture noundef %48) #7
  %50 = icmp sgt i32 %49, -1
  br i1 %50, label %51, label %111

51:                                               ; preds = %47
  tail call void @X509_VERIFY_PARAM_set_depth(ptr noundef nonnull %1, i32 noundef %49) #5
  br label %111

52:                                               ; preds = %11
  %53 = tail call ptr @opt_arg()
  %54 = tail call i32 @atoi(ptr nocapture noundef %53) #7
  %55 = icmp sgt i32 %54, -1
  br i1 %55, label %56, label %111

56:                                               ; preds = %52
  tail call void @X509_VERIFY_PARAM_set_auth_level(ptr noundef nonnull %1, i32 noundef %54) #5
  br label %111

57:                                               ; preds = %11
  %58 = tail call ptr @opt_arg()
  %59 = call i32 @opt_intmax(ptr noundef %58, ptr noundef nonnull %3)
  %.not56 = icmp eq i32 %59, 0
  br i1 %.not56, label %112, label %60

60:                                               ; preds = %57
  %61 = load i64, ptr %3, align 8, !tbaa !5
  call void @X509_VERIFY_PARAM_set_time(ptr noundef nonnull %1, i64 noundef %61) #5
  br label %111

62:                                               ; preds = %11
  %63 = tail call ptr @opt_arg()
  %64 = tail call i32 @X509_VERIFY_PARAM_set1_host(ptr noundef nonnull %1, ptr noundef %63, i64 noundef 0) #5
  %.not55 = icmp eq i32 %64, 0
  br i1 %.not55, label %112, label %111

65:                                               ; preds = %11
  %66 = tail call ptr @opt_arg()
  %67 = tail call i32 @X509_VERIFY_PARAM_set1_email(ptr noundef nonnull %1, ptr noundef %66, i64 noundef 0) #5
  %.not54 = icmp eq i32 %67, 0
  br i1 %.not54, label %112, label %111

68:                                               ; preds = %11
  %69 = tail call ptr @opt_arg()
  %70 = tail call i32 @X509_VERIFY_PARAM_set1_ip_asc(ptr noundef nonnull %1, ptr noundef %69) #5
  %.not53 = icmp eq i32 %70, 0
  br i1 %.not53, label %112, label %111

71:                                               ; preds = %11
  %72 = tail call i32 @X509_VERIFY_PARAM_set_flags(ptr noundef nonnull %1, i64 noundef 16) #5
  br label %111

73:                                               ; preds = %11
  %74 = tail call i32 @X509_VERIFY_PARAM_set_flags(ptr noundef nonnull %1, i64 noundef 4) #5
  br label %111

75:                                               ; preds = %11
  %76 = tail call i32 @X509_VERIFY_PARAM_set_flags(ptr noundef nonnull %1, i64 noundef 12) #5
  br label %111

77:                                               ; preds = %11
  %78 = tail call i32 @X509_VERIFY_PARAM_set_flags(ptr noundef nonnull %1, i64 noundef 128) #5
  br label %111

79:                                               ; preds = %11
  %80 = tail call i32 @X509_VERIFY_PARAM_set_flags(ptr noundef nonnull %1, i64 noundef 256) #5
  br label %111

81:                                               ; preds = %11
  %82 = tail call i32 @X509_VERIFY_PARAM_set_flags(ptr noundef nonnull %1, i64 noundef 512) #5
  br label %111

83:                                               ; preds = %11
  %84 = tail call i32 @X509_VERIFY_PARAM_set_flags(ptr noundef nonnull %1, i64 noundef 1024) #5
  br label %111

85:                                               ; preds = %11
  %86 = tail call i32 @X509_VERIFY_PARAM_set_flags(ptr noundef nonnull %1, i64 noundef 32) #5
  br label %111

87:                                               ; preds = %11
  %88 = tail call i32 @X509_VERIFY_PARAM_set_flags(ptr noundef nonnull %1, i64 noundef 4096) #5
  br label %111

89:                                               ; preds = %11
  %90 = tail call i32 @X509_VERIFY_PARAM_set_flags(ptr noundef nonnull %1, i64 noundef 8192) #5
  br label %111

91:                                               ; preds = %11
  %92 = tail call i32 @X509_VERIFY_PARAM_set_flags(ptr noundef nonnull %1, i64 noundef 2048) #5
  br label %111

93:                                               ; preds = %11
  %94 = tail call i32 @X509_VERIFY_PARAM_set_flags(ptr noundef nonnull %1, i64 noundef 16384) #5
  br label %111

95:                                               ; preds = %11
  %96 = tail call i32 @X509_VERIFY_PARAM_set_flags(ptr noundef nonnull %1, i64 noundef 32768) #5
  br label %111

97:                                               ; preds = %11
  %98 = tail call i32 @X509_VERIFY_PARAM_set_flags(ptr noundef nonnull %1, i64 noundef 65536) #5
  br label %111

99:                                               ; preds = %11
  %100 = tail call i32 @X509_VERIFY_PARAM_set_flags(ptr noundef nonnull %1, i64 noundef 196608) #5
  br label %111

101:                                              ; preds = %11
  %102 = tail call i32 @X509_VERIFY_PARAM_set_flags(ptr noundef nonnull %1, i64 noundef 131072) #5
  br label %111

103:                                              ; preds = %11
  %104 = tail call i32 @X509_VERIFY_PARAM_set_flags(ptr noundef nonnull %1, i64 noundef 524288) #5
  br label %111

105:                                              ; preds = %11
  %106 = tail call i32 @X509_VERIFY_PARAM_set_flags(ptr noundef nonnull %1, i64 noundef 1048576) #5
  br label %111

107:                                              ; preds = %11
  %108 = tail call i32 @X509_VERIFY_PARAM_set_flags(ptr noundef nonnull %1, i64 noundef 2097152) #5
  br label %111

109:                                              ; preds = %11
  %110 = tail call i32 @X509_VERIFY_PARAM_set_flags(ptr noundef nonnull %1, i64 noundef 64) #5
  br label %111

111:                                              ; preds = %68, %65, %62, %52, %56, %47, %51, %31, %19, %109, %107, %105, %103, %101, %99, %97, %95, %93, %91, %89, %87, %85, %83, %81, %79, %77, %75, %73, %71, %60, %45, %11
  br label %112

112:                                              ; preds = %68, %65, %62, %57, %111, %42, %35, %28, %21, %16
  %.0 = phi i32 [ 1, %111 ], [ 0, %42 ], [ 0, %28 ], [ 0, %35 ], [ 0, %16 ], [ 0, %21 ], [ 0, %57 ], [ 0, %62 ], [ 0, %65 ], [ 0, %68 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #5
  ret i32 %.0
}

declare ptr @OBJ_txt2obj(ptr noundef, i32 noundef) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
declare dso_local ptr @opt_arg() local_unnamed_addr #3

declare i32 @X509_VERIFY_PARAM_add0_policy(ptr noundef, ptr noundef) local_unnamed_addr #2

declare void @ASN1_OBJECT_free(ptr noundef) local_unnamed_addr #2

declare i32 @X509_PURPOSE_get_by_sname(ptr noundef) local_unnamed_addr #2

declare ptr @X509_PURPOSE_get0(i32 noundef) local_unnamed_addr #2

declare i32 @X509_PURPOSE_get_id(ptr noundef) local_unnamed_addr #2

declare i32 @X509_VERIFY_PARAM_set_purpose(ptr noundef, i32 noundef) local_unnamed_addr #2

declare ptr @X509_VERIFY_PARAM_lookup(ptr noundef) local_unnamed_addr #2

declare i32 @X509_VERIFY_PARAM_set1(ptr noundef, ptr noundef) local_unnamed_addr #2

; Function Attrs: inlinehint mustprogress nofree nounwind willreturn memory(read) uwtable
declare i32 @atoi(ptr nocapture noundef nonnull) local_unnamed_addr #4

declare void @X509_VERIFY_PARAM_set_depth(ptr noundef, i32 noundef) local_unnamed_addr #2

declare void @X509_VERIFY_PARAM_set_auth_level(ptr noundef, i32 noundef) local_unnamed_addr #2

declare void @X509_VERIFY_PARAM_set_time(ptr noundef, i64 noundef) local_unnamed_addr #2

declare i32 @X509_VERIFY_PARAM_set1_host(ptr noundef, ptr noundef, i64 noundef) local_unnamed_addr #2

declare i32 @X509_VERIFY_PARAM_set1_email(ptr noundef, ptr noundef, i64 noundef) local_unnamed_addr #2

declare i32 @X509_VERIFY_PARAM_set1_ip_asc(ptr noundef, ptr noundef) local_unnamed_addr #2

declare i32 @X509_VERIFY_PARAM_set_flags(ptr noundef, i64 noundef) local_unnamed_addr #2

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { noreturn "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 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 = { inlinehint mustprogress nofree nounwind willreturn memory(read) 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 = { noreturn nounwind }
attributes #7 = { nounwind willreturn memory(read) }

!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 = !{!"long", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,SROAPass,SimplifyCFGPass,TailCallElimPass