; LLVM IR from openssl/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 [63 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 %68

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
  %35 = urem i64 %34, 512
  store i64 %35, ptr %6, align 8, !tbaa !9
  %36 = load ptr, ptr %3, align 8, !tbaa !5
  %37 = getelementptr inbounds i8, ptr %36, i32 1
  store ptr %37, ptr %3, align 8, !tbaa !5
  %38 = load ptr, ptr %3, align 8, !tbaa !5
  %39 = getelementptr inbounds i8, ptr %38, i64 0
  %40 = load i8, ptr %39, align 1, !tbaa !13
  %41 = zext i8 %40 to i64
  %42 = load i64, ptr %4, align 8, !tbaa !9
  %43 = load i64, ptr %6, align 8, !tbaa !9
  %44 = sub i64 %42, %43
  %45 = mul i64 %41, %44
  %46 = udiv i64 %45, 255
  %47 = urem i64 %46, 512
  store i64 %47, ptr %7, align 8, !tbaa !9
  %48 = load ptr, ptr %3, align 8, !tbaa !5
  %49 = getelementptr inbounds i8, ptr %48, i32 1
  store ptr %49, ptr %3, align 8, !tbaa !5
  %50 = load i64, ptr %4, align 8, !tbaa !9
  %51 = load i64, ptr %6, align 8, !tbaa !9
  %52 = sub i64 %50, %51
  %53 = load i64, ptr %7, align 8, !tbaa !9
  %54 = sub i64 %52, %53
  %55 = urem i64 %54, 512
  store i64 %55, ptr %8, align 8, !tbaa !9
  %56 = load ptr, ptr %3, align 8, !tbaa !5
  %57 = getelementptr inbounds i8, ptr %56, i64 0
  %58 = load i8, ptr %57, align 1, !tbaa !13
  %59 = zext i8 %58 to i32
  %60 = and i32 %59, 1
  store i32 %60, ptr %9, align 4, !tbaa !11
  %61 = load ptr, ptr %3, align 8, !tbaa !5
  %62 = getelementptr inbounds i8, ptr %61, i64 0
  %63 = load i8, ptr %62, align 1, !tbaa !13
  %64 = zext i8 %63 to i32
  %65 = and i32 %64, 4
  store i32 %65, ptr %10, align 4, !tbaa !11
  %66 = load ptr, ptr %3, align 8, !tbaa !5
  %67 = getelementptr inbounds i8, ptr %66, i32 1
  store ptr %67, ptr %3, align 8, !tbaa !5
  br label %68

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

76:                                               ; preds = %68
  br label %79

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

78:                                               ; No predecessors!
  br label %79

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

92:                                               ; preds = %79
  br label %95

93:                                               ; preds = %79
  call void @OPENSSL_die(ptr noundef @.str.2, ptr noundef @.str.1, i32 noundef 68) #6
  unreachable

94:                                               ; No predecessors!
  br label %95

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

108:                                              ; preds = %95
  br label %111

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

110:                                              ; No predecessors!
  br label %111

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

118:                                              ; preds = %111
  store i32 1, ptr %5, align 4, !tbaa !11
  br label %173

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

127:                                              ; preds = %119
  br label %130

128:                                              ; preds = %119
  call void @OPENSSL_die(ptr noundef @.str.4, ptr noundef @.str.1, i32 noundef 78) #6
  unreachable

129:                                              ; No predecessors!
  br label %130

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

139:                                              ; preds = %130
  br label %142

140:                                              ; preds = %130
  call void @OPENSSL_die(ptr noundef @.str.5, ptr noundef @.str.1, i32 noundef 79) #6
  unreachable

141:                                              ; No predecessors!
  br label %142

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

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

172:                                              ; preds = %151, %142
  br label %173

173:                                              ; preds = %172, %118
  %174 = load i32, ptr %5, align 4, !tbaa !11
  %175 = icmp ne i32 %174, 0
  br i1 %175, label %176, label %177

176:                                              ; preds = %173
  br label %179

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

178:                                              ; No predecessors!
  br label %179

179:                                              ; preds = %178, %176
  %180 = phi i32 [ 0, %176 ], [ 1, %178 ]
  %181 = load ptr, ptr %12, align 8, !tbaa !5
  call void @BN_free(ptr noundef %181)
  %182 = load ptr, ptr %13, align 8, !tbaa !5
  call void @BN_free(ptr noundef %182)
  %183 = load ptr, ptr %14, align 8, !tbaa !5
  call void @BN_free(ptr noundef %183)
  %184 = load ptr, ptr %15, align 8, !tbaa !5
  call void @BN_free(ptr noundef %184)
  %185 = load ptr, ptr %16, align 8, !tbaa !5
  call void @BN_free(ptr noundef %185)
  %186 = load ptr, ptr %11, align 8, !tbaa !5
  call void @BN_CTX_free(ptr noundef %186)
  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 [63 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 %33

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 = and i64 %15, 511
  %17 = getelementptr inbounds i8, ptr %0, i64 1
  %18 = load i8, ptr %17, align 1, !tbaa !5
  %19 = zext i8 %18 to i64
  %20 = sub i64 %11, %16
  %21 = mul i64 %20, %19
  %22 = udiv i64 %21, 255
  %23 = and i64 %22, 511
  %24 = getelementptr inbounds i8, ptr %0, i64 2
  %25 = sub i64 %20, %22
  %26 = load i8, ptr %24, align 1, !tbaa !5
  %27 = zext i8 %26 to i32
  %28 = and i32 %27, 1
  %29 = and i32 %27, 4
  %30 = getelementptr inbounds i8, ptr %0, i64 3
  %31 = trunc i64 %25 to i32
  %32 = and i32 %31, 511
  br label %33

33:                                               ; preds = %10, %2
  %.064 = phi i32 [ %28, %10 ], [ 0, %2 ]
  %.063 = phi i32 [ %29, %10 ], [ 0, %2 ]
  %.062 = phi i32 [ %32, %10 ], [ 0, %2 ]
  %.061 = phi i64 [ %23, %10 ], [ 0, %2 ]
  %.060 = phi i64 [ %16, %10 ], [ 0, %2 ]
  %.0 = phi ptr [ %30, %10 ], [ %0, %2 ]
  %34 = trunc nuw nsw i64 %.060 to i32
  %35 = tail call ptr @BN_bin2bn(ptr noundef %.0, i32 noundef %34, ptr noundef %3) #4
  %36 = icmp eq ptr %35, %3
  br i1 %36, label %38, label %37

37:                                               ; preds = %33
  tail call void @OPENSSL_die(ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, i32 noundef 66) #5
  unreachable

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

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

44:                                               ; preds = %38
  %45 = getelementptr inbounds i8, ptr %39, i64 %.061
  %46 = tail call ptr @BN_bin2bn(ptr noundef %45, i32 noundef %.062, ptr noundef %5) #4
  %47 = icmp eq ptr %46, %5
  br i1 %47, label %49, label %48

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

49:                                               ; preds = %44
  tail call void @BN_set_negative(ptr noundef %5, i32 noundef %.063) #4
  %50 = tail call i32 @BN_is_zero(ptr noundef %5) #4
  %.not = icmp eq i32 %50, 0
  br i1 %.not, label %51, label %.critedge

51:                                               ; preds = %49
  %52 = 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 %52, 0
  br i1 %.not69, label %53, label %54

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

54:                                               ; preds = %51
  %55 = 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 %55, 0
  br i1 %.not70, label %56, label %57

56:                                               ; preds = %54
  tail call void @OPENSSL_die(ptr noundef nonnull @.str.5, ptr noundef nonnull @.str.1, i32 noundef 79) #5
  unreachable

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

60:                                               ; preds = %57
  %61 = load ptr, ptr @stdout, align 8, !tbaa !8
  %62 = tail call i32 @BN_print_fp(ptr noundef %61, ptr noundef %3) #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 %4) #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 %5) #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 %6) #4
  %72 = tail call i32 @putchar(i32 noundef 10)
  %73 = load ptr, ptr @stdout, align 8, !tbaa !8
  %74 = tail call i32 @BN_print_fp(ptr noundef %73, ptr noundef %7) #4
  %75 = tail call i32 @putchar(i32 noundef 10)
  tail call void @OPENSSL_die(ptr noundef nonnull @.str.6, ptr noundef nonnull @.str.1, i32 noundef 96) #5
  unreachable

.critedge:                                        ; preds = %57, %49
  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