; LLVM IR from openanolis/openssl :: fuzz (bignum)

; 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 [47 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [66 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [52 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [57 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [50 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [57 x i8], align 1
@stdout = external global ptr, align 8
@.str.6 = external hidden unnamed_addr constant [26 x i8], align 1

declare void @ERR_clear_error() #0

; Function Attrs: nounwind uwtable
define dso_local i32 @FuzzerTestOneInput(ptr noundef %0, i64 noundef %1) #1 {
  %3 = alloca ptr, align 8
  %4 = alloca i64, align 8
  %5 = alloca i32, align 4
  %6 = alloca i64, align 8
  %7 = alloca i64, align 8
  %8 = alloca i64, align 8
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca ptr, align 8
  %16 = alloca ptr, align 8
  store ptr %0, ptr %3, align 8, !tbaa !5
  store i64 %1, ptr %4, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #5
  store i32 0, ptr %5, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #5
  store i64 0, ptr %6, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #5
  store i64 0, ptr %7, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #5
  store i64 0, ptr %8, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #5
  store i32 0, ptr %9, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #5
  store i32 0, ptr %10, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #5
  %17 = call ptr @BN_new()
  store ptr %17, ptr %12, align 8, !tbaa !5
  %18 = call ptr @BN_new()
  store ptr %18, ptr %13, align 8, !tbaa !5
  %19 = call ptr @BN_new()
  store ptr %19, ptr %14, align 8, !tbaa !5
  %20 = call ptr @BN_new()
  store ptr %20, ptr %15, align 8, !tbaa !5
  %21 = call ptr @BN_new()
  store ptr %21, ptr %16, align 8, !tbaa !5
  %22 = call ptr @BN_CTX_new()
  store ptr %22, ptr %11, align 8, !tbaa !5
  %23 = load i64, ptr %4, align 8, !tbaa !9
  %24 = icmp ugt i64 %23, 2
  br i1 %24, label %25, label %65

25:                                               ; preds = %2
  %26 = load i64, ptr %4, align 8, !tbaa !9
  %27 = sub i64 %26, 3
  store i64 %27, ptr %4, align 8, !tbaa !9
  %28 = load ptr, ptr %3, align 8, !tbaa !5
  %29 = getelementptr inbounds i8, ptr %28, i64 0
  %30 = load i8, ptr %29, align 1, !tbaa !13
  %31 = zext i8 %30 to i64
  %32 = load i64, ptr %4, align 8, !tbaa !9
  %33 = mul i64 %31, %32
  %34 = udiv i64 %33, 255
  store i64 %34, ptr %6, align 8, !tbaa !9
  %35 = load ptr, ptr %3, align 8, !tbaa !5
  %36 = getelementptr inbounds i8, ptr %35, i32 1
  store ptr %36, ptr %3, align 8, !tbaa !5
  %37 = load ptr, ptr %3, align 8, !tbaa !5
  %38 = getelementptr inbounds i8, ptr %37, i64 0
  %39 = load i8, ptr %38, align 1, !tbaa !13
  %40 = zext i8 %39 to i64
  %41 = load i64, ptr %4, align 8, !tbaa !9
  %42 = load i64, ptr %6, align 8, !tbaa !9
  %43 = sub i64 %41, %42
  %44 = mul i64 %40, %43
  %45 = udiv i64 %44, 255
  store i64 %45, ptr %7, align 8, !tbaa !9
  %46 = load ptr, ptr %3, align 8, !tbaa !5
  %47 = getelementptr inbounds i8, ptr %46, i32 1
  store ptr %47, ptr %3, align 8, !tbaa !5
  %48 = load i64, ptr %4, align 8, !tbaa !9
  %49 = load i64, ptr %6, align 8, !tbaa !9
  %50 = sub i64 %48, %49
  %51 = load i64, ptr %7, align 8, !tbaa !9
  %52 = sub i64 %50, %51
  store i64 %52, ptr %8, align 8, !tbaa !9
  %53 = load ptr, ptr %3, align 8, !tbaa !5
  %54 = getelementptr inbounds i8, ptr %53, i64 0
  %55 = load i8, ptr %54, align 1, !tbaa !13
  %56 = zext i8 %55 to i32
  %57 = and i32 %56, 1
  store i32 %57, ptr %9, align 4, !tbaa !11
  %58 = load ptr, ptr %3, align 8, !tbaa !5
  %59 = getelementptr inbounds i8, ptr %58, i64 0
  %60 = load i8, ptr %59, align 1, !tbaa !13
  %61 = zext i8 %60 to i32
  %62 = and i32 %61, 4
  store i32 %62, ptr %10, align 4, !tbaa !11
  %63 = load ptr, ptr %3, align 8, !tbaa !5
  %64 = getelementptr inbounds i8, ptr %63, i32 1
  store ptr %64, ptr %3, align 8, !tbaa !5
  br label %65

65:                                               ; preds = %25, %2
  %66 = load ptr, ptr %3, align 8, !tbaa !5
  %67 = load i64, ptr %6, align 8, !tbaa !9
  %68 = trunc i64 %67 to i32
  %69 = load ptr, ptr %12, align 8, !tbaa !5
  %70 = call ptr @BN_bin2bn(ptr noundef %66, i32 noundef %68, ptr noundef %69)
  %71 = load ptr, ptr %12, align 8, !tbaa !5
  %72 = icmp eq ptr %70, %71
  br i1 %72, label %73, label %74

73:                                               ; preds = %65
  br label %76

74:                                               ; preds = %65
  call void @OPENSSL_die(ptr noundef @.str, ptr noundef @.str.1, i32 noundef 65) #6
  unreachable

75:                                               ; No predecessors!
  br label %76

76:                                               ; preds = %75, %73
  %77 = phi i32 [ 0, %73 ], [ 1, %75 ]
  %78 = load ptr, ptr %12, align 8, !tbaa !5
  %79 = load i32, ptr %9, align 4, !tbaa !11
  call void @BN_set_negative(ptr noundef %78, i32 noundef %79)
  %80 = load ptr, ptr %3, align 8, !tbaa !5
  %81 = load i64, ptr %6, align 8, !tbaa !9
  %82 = getelementptr inbounds i8, ptr %80, i64 %81
  %83 = load i64, ptr %7, align 8, !tbaa !9
  %84 = trunc i64 %83 to i32
  %85 = load ptr, ptr %13, align 8, !tbaa !5
  %86 = call ptr @BN_bin2bn(ptr noundef %82, i32 noundef %84, ptr noundef %85)
  %87 = load ptr, ptr %13, align 8, !tbaa !5
  %88 = icmp eq ptr %86, %87
  br i1 %88, label %89, label %90

89:                                               ; preds = %76
  br label %92

90:                                               ; preds = %76
  call void @OPENSSL_die(ptr noundef @.str.2, ptr noundef @.str.1, i32 noundef 67) #6
  unreachable

91:                                               ; No predecessors!
  br label %92

92:                                               ; preds = %91, %89
  %93 = phi i32 [ 0, %89 ], [ 1, %91 ]
  %94 = load ptr, ptr %3, align 8, !tbaa !5
  %95 = load i64, ptr %6, align 8, !tbaa !9
  %96 = getelementptr inbounds i8, ptr %94, i64 %95
  %97 = load i64, ptr %7, align 8, !tbaa !9
  %98 = getelementptr inbounds i8, ptr %96, i64 %97
  %99 = load i64, ptr %8, align 8, !tbaa !9
  %100 = trunc i64 %99 to i32
  %101 = load ptr, ptr %14, align 8, !tbaa !5
  %102 = call ptr @BN_bin2bn(ptr noundef %98, i32 noundef %100, ptr noundef %101)
  %103 = load ptr, ptr %14, align 8, !tbaa !5
  %104 = icmp eq ptr %102, %103
  br i1 %104, label %105, label %106

105:                                              ; preds = %92
  br label %108

106:                                              ; preds = %92
  call void @OPENSSL_die(ptr noundef @.str.3, ptr noundef @.str.1, i32 noundef 68) #6
  unreachable

107:                                              ; No predecessors!
  br label %108

108:                                              ; preds = %107, %105
  %109 = phi i32 [ 0, %105 ], [ 1, %107 ]
  %110 = load ptr, ptr %14, align 8, !tbaa !5
  %111 = load i32, ptr %10, align 4, !tbaa !11
  call void @BN_set_negative(ptr noundef %110, i32 noundef %111)
  %112 = load ptr, ptr %14, align 8, !tbaa !5
  %113 = call i32 @BN_is_zero(ptr noundef %112)
  %114 = icmp ne i32 %113, 0
  br i1 %114, label %115, label %116

115:                                              ; preds = %108
  store i32 1, ptr %5, align 4, !tbaa !11
  br label %170

116:                                              ; preds = %108
  %117 = load ptr, ptr %15, align 8, !tbaa !5
  %118 = load ptr, ptr %12, align 8, !tbaa !5
  %119 = load ptr, ptr %13, align 8, !tbaa !5
  %120 = load ptr, ptr %14, align 8, !tbaa !5
  %121 = load ptr, ptr %11, align 8, !tbaa !5
  %122 = call i32 @BN_mod_exp(ptr noundef %117, ptr noundef %118, ptr noundef %119, ptr noundef %120, ptr noundef %121)
  %123 = icmp ne i32 %122, 0
  br i1 %123, label %124, label %125

124:                                              ; preds = %116
  br label %127

125:                                              ; preds = %116
  call void @OPENSSL_die(ptr noundef @.str.4, ptr noundef @.str.1, i32 noundef 77) #6
  unreachable

126:                                              ; No predecessors!
  br label %127

127:                                              ; preds = %126, %124
  %128 = phi i32 [ 0, %124 ], [ 1, %126 ]
  %129 = load ptr, ptr %16, align 8, !tbaa !5
  %130 = load ptr, ptr %12, align 8, !tbaa !5
  %131 = load ptr, ptr %13, align 8, !tbaa !5
  %132 = load ptr, ptr %14, align 8, !tbaa !5
  %133 = load ptr, ptr %11, align 8, !tbaa !5
  %134 = call i32 @BN_mod_exp_simple(ptr noundef %129, ptr noundef %130, ptr noundef %131, ptr noundef %132, ptr noundef %133)
  %135 = icmp ne i32 %134, 0
  br i1 %135, label %136, label %137

136:                                              ; preds = %127
  br label %139

137:                                              ; preds = %127
  call void @OPENSSL_die(ptr noundef @.str.5, ptr noundef @.str.1, i32 noundef 78) #6
  unreachable

138:                                              ; No predecessors!
  br label %139

139:                                              ; preds = %138, %136
  %140 = phi i32 [ 0, %136 ], [ 1, %138 ]
  %141 = load ptr, ptr %15, align 8, !tbaa !5
  %142 = load ptr, ptr %16, align 8, !tbaa !5
  %143 = call i32 @BN_cmp(ptr noundef %141, ptr noundef %142)
  %144 = icmp eq i32 %143, 0
  %145 = zext i1 %144 to i32
  store i32 %145, ptr %5, align 4, !tbaa !11
  %146 = load i32, ptr %5, align 4, !tbaa !11
  %147 = icmp ne i32 %146, 0
  br i1 %147, label %169, label %148

148:                                              ; preds = %139
  %149 = load ptr, ptr @stdout, align 8, !tbaa !5
  %150 = load ptr, ptr %12, align 8, !tbaa !5
  %151 = call i32 @BN_print_fp(ptr noundef %149, ptr noundef %150)
  %152 = call i32 @putchar(i32 noundef 10)
  %153 = load ptr, ptr @stdout, align 8, !tbaa !5
  %154 = load ptr, ptr %13, align 8, !tbaa !5
  %155 = call i32 @BN_print_fp(ptr noundef %153, ptr noundef %154)
  %156 = call i32 @putchar(i32 noundef 10)
  %157 = load ptr, ptr @stdout, align 8, !tbaa !5
  %158 = load ptr, ptr %14, align 8, !tbaa !5
  %159 = call i32 @BN_print_fp(ptr noundef %157, ptr noundef %158)
  %160 = call i32 @putchar(i32 noundef 10)
  %161 = load ptr, ptr @stdout, align 8, !tbaa !5
  %162 = load ptr, ptr %15, align 8, !tbaa !5
  %163 = call i32 @BN_print_fp(ptr noundef %161, ptr noundef %162)
  %164 = call i32 @putchar(i32 noundef 10)
  %165 = load ptr, ptr @stdout, align 8, !tbaa !5
  %166 = load ptr, ptr %16, align 8, !tbaa !5
  %167 = call i32 @BN_print_fp(ptr noundef %165, ptr noundef %166)
  %168 = call i32 @putchar(i32 noundef 10)
  br label %169

169:                                              ; preds = %148, %139
  br label %170

170:                                              ; preds = %169, %115
  %171 = load i32, ptr %5, align 4, !tbaa !11
  %172 = icmp ne i32 %171, 0
  br i1 %172, label %173, label %174

173:                                              ; preds = %170
  br label %176

174:                                              ; preds = %170
  call void @OPENSSL_die(ptr noundef @.str.6, ptr noundef @.str.1, i32 noundef 95) #6
  unreachable

175:                                              ; No predecessors!
  br label %176

176:                                              ; preds = %175, %173
  %177 = phi i32 [ 0, %173 ], [ 1, %175 ]
  %178 = load ptr, ptr %12, align 8, !tbaa !5
  call void @BN_free(ptr noundef %178)
  %179 = load ptr, ptr %13, align 8, !tbaa !5
  call void @BN_free(ptr noundef %179)
  %180 = load ptr, ptr %14, align 8, !tbaa !5
  call void @BN_free(ptr noundef %180)
  %181 = load ptr, ptr %15, align 8, !tbaa !5
  call void @BN_free(ptr noundef %181)
  %182 = load ptr, ptr %16, align 8, !tbaa !5
  call void @BN_free(ptr noundef %182)
  %183 = load ptr, ptr %11, align 8, !tbaa !5
  call void @BN_CTX_free(ptr noundef %183)
  call void @ERR_clear_error()
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 4, 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
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #5
  ret i32 0
}

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

declare ptr @BN_new() #0

declare ptr @BN_CTX_new() #0

declare ptr @BN_bin2bn(ptr noundef, i32 noundef, ptr noundef) #0

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

declare void @BN_set_negative(ptr noundef, i32 noundef) #0

declare i32 @BN_is_zero(ptr noundef) #0

declare i32 @BN_mod_exp(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #0

declare i32 @BN_mod_exp_simple(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #0

declare i32 @BN_cmp(ptr noundef, ptr noundef) #0

declare i32 @BN_print_fp(ptr noundef, ptr noundef) #0

; Function Attrs: inlinehint nounwind uwtable
declare i32 @putchar(i32 noundef) #4

declare void @BN_free(ptr noundef) #0

declare void @BN_CTX_free(ptr noundef) #0

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

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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { 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 #4 = { 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 #5 = { nounwind }
attributes #6 = { noreturn }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"long", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!7, !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"

@.str = external hidden unnamed_addr constant [47 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [66 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [52 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [57 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [50 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [57 x i8], align 1
@stdout = external local_unnamed_addr global ptr, align 8
@.str.6 = external hidden unnamed_addr constant [26 x i8], align 1

declare void @ERR_clear_error() local_unnamed_addr #0

; Function Attrs: nounwind uwtable
define dso_local noundef i32 @FuzzerTestOneInput(ptr noundef %0, i64 noundef %1) local_unnamed_addr #1 {
  %3 = tail call ptr @BN_new() #4
  %4 = tail call ptr @BN_new() #4
  %5 = tail call ptr @BN_new() #4
  %6 = tail call ptr @BN_new() #4
  %7 = tail call ptr @BN_new() #4
  %8 = tail call ptr @BN_CTX_new() #4
  %9 = icmp ugt i64 %1, 2
  br i1 %9, label %10, label %30

10:                                               ; preds = %2
  %11 = add i64 %1, -3
  %12 = load i8, ptr %0, align 1, !tbaa !5
  %13 = zext i8 %12 to i64
  %14 = mul i64 %11, %13
  %15 = udiv i64 %14, 255
  %16 = getelementptr inbounds i8, ptr %0, i64 1
  %17 = load i8, ptr %16, align 1, !tbaa !5
  %18 = zext i8 %17 to i64
  %19 = sub i64 %11, %15
  %20 = mul i64 %19, %18
  %21 = udiv i64 %20, 255
  %22 = getelementptr inbounds i8, ptr %0, i64 2
  %23 = sub i64 %19, %21
  %24 = load i8, ptr %22, align 1, !tbaa !5
  %25 = zext i8 %24 to i32
  %26 = and i32 %25, 1
  %27 = and i32 %25, 4
  %28 = getelementptr inbounds i8, ptr %0, i64 3
  %29 = trunc i64 %23 to i32
  br label %30

30:                                               ; preds = %10, %2
  %.064 = phi i32 [ %26, %10 ], [ 0, %2 ]
  %.063 = phi i32 [ %27, %10 ], [ 0, %2 ]
  %.062 = phi i32 [ %29, %10 ], [ 0, %2 ]
  %.061 = phi i64 [ %21, %10 ], [ 0, %2 ]
  %.060 = phi i64 [ %15, %10 ], [ 0, %2 ]
  %.0 = phi ptr [ %28, %10 ], [ %0, %2 ]
  %31 = trunc i64 %.060 to i32
  %32 = tail call ptr @BN_bin2bn(ptr noundef %.0, i32 noundef %31, ptr noundef %3) #4
  %33 = icmp eq ptr %32, %3
  br i1 %33, label %35, label %34

34:                                               ; preds = %30
  tail call void @OPENSSL_die(ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, i32 noundef 65) #5
  unreachable

35:                                               ; preds = %30
  tail call void @BN_set_negative(ptr noundef %3, i32 noundef %.064) #4
  %36 = getelementptr inbounds i8, ptr %.0, i64 %.060
  %37 = trunc i64 %.061 to i32
  %38 = tail call ptr @BN_bin2bn(ptr noundef %36, i32 noundef %37, ptr noundef %4) #4
  %39 = icmp eq ptr %38, %4
  br i1 %39, label %41, label %40

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

41:                                               ; preds = %35
  %42 = getelementptr inbounds i8, ptr %36, i64 %.061
  %43 = tail call ptr @BN_bin2bn(ptr noundef %42, i32 noundef %.062, ptr noundef %5) #4
  %44 = icmp eq ptr %43, %5
  br i1 %44, label %46, label %45

45:                                               ; preds = %41
  tail call void @OPENSSL_die(ptr noundef nonnull @.str.3, ptr noundef nonnull @.str.1, i32 noundef 68) #5
  unreachable

46:                                               ; preds = %41
  tail call void @BN_set_negative(ptr noundef %5, i32 noundef %.063) #4
  %47 = tail call i32 @BN_is_zero(ptr noundef %5) #4
  %.not = icmp eq i32 %47, 0
  br i1 %.not, label %48, label %.critedge

48:                                               ; preds = %46
  %49 = tail call i32 @BN_mod_exp(ptr noundef %6, ptr noundef %3, ptr noundef %4, ptr noundef %5, ptr noundef %8) #4
  %.not69 = icmp eq i32 %49, 0
  br i1 %.not69, label %50, label %51

50:                                               ; preds = %48
  tail call void @OPENSSL_die(ptr noundef nonnull @.str.4, ptr noundef nonnull @.str.1, i32 noundef 77) #5
  unreachable

51:                                               ; preds = %48
  %52 = tail call i32 @BN_mod_exp_simple(ptr noundef %7, ptr noundef %3, ptr noundef %4, ptr noundef %5, ptr noundef %8) #4
  %.not70 = icmp eq i32 %52, 0
  br i1 %.not70, label %53, label %54

53:                                               ; preds = %51
  tail call void @OPENSSL_die(ptr noundef nonnull @.str.5, ptr noundef nonnull @.str.1, i32 noundef 78) #5
  unreachable

54:                                               ; preds = %51
  %55 = tail call i32 @BN_cmp(ptr noundef %6, ptr noundef %7) #4
  %56 = icmp eq i32 %55, 0
  br i1 %56, label %.critedge, label %57

57:                                               ; preds = %54
  %58 = load ptr, ptr @stdout, align 8, !tbaa !8
  %59 = tail call i32 @BN_print_fp(ptr noundef %58, ptr noundef %3) #4
  %60 = tail call i32 @putchar(i32 noundef 10)
  %61 = load ptr, ptr @stdout, align 8, !tbaa !8
  %62 = tail call i32 @BN_print_fp(ptr noundef %61, ptr noundef %4) #4
  %63 = tail call i32 @putchar(i32 noundef 10)
  %64 = load ptr, ptr @stdout, align 8, !tbaa !8
  %65 = tail call i32 @BN_print_fp(ptr noundef %64, ptr noundef %5) #4
  %66 = tail call i32 @putchar(i32 noundef 10)
  %67 = load ptr, ptr @stdout, align 8, !tbaa !8
  %68 = tail call i32 @BN_print_fp(ptr noundef %67, ptr noundef %6) #4
  %69 = tail call i32 @putchar(i32 noundef 10)
  %70 = load ptr, ptr @stdout, align 8, !tbaa !8
  %71 = tail call i32 @BN_print_fp(ptr noundef %70, ptr noundef %7) #4
  %72 = tail call i32 @putchar(i32 noundef 10)
  tail call void @OPENSSL_die(ptr noundef nonnull @.str.6, ptr noundef nonnull @.str.1, i32 noundef 95) #5
  unreachable

.critedge:                                        ; preds = %54, %46
  tail call void @BN_free(ptr noundef %3) #4
  tail call void @BN_free(ptr noundef %4) #4
  tail call void @BN_free(ptr noundef %5) #4
  tail call void @BN_free(ptr noundef %6) #4
  tail call void @BN_free(ptr noundef %7) #4
  tail call void @BN_CTX_free(ptr noundef %8) #4
  tail call void @ERR_clear_error() #4
  ret i32 0
}

declare ptr @BN_new() local_unnamed_addr #0

declare ptr @BN_CTX_new() local_unnamed_addr #0

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

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

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

declare i32 @BN_is_zero(ptr noundef) local_unnamed_addr #0

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

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

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

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

; Function Attrs: inlinehint nofree nounwind uwtable
declare noundef i32 @putchar(i32 noundef) local_unnamed_addr #3

declare void @BN_free(ptr noundef) local_unnamed_addr #0

declare void @BN_CTX_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 = { 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 #3 = { inlinehint nofree 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 }
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, !6, i64 0}
!6 = !{!"omnipotent char", !7, i64 0}
!7 = !{!"Simple C/C++ TBAA"}
!8 = !{!9, !9, i64 0}
!9 = !{!"any pointer", !6, i64 0}


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