; LLVM IR from openssl/openssl :: crypto (params)

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%struct.ossl_param_st = type { ptr, i32, ptr, i64, i64 }

@.str = external hidden unnamed_addr constant [65 x i8], align 1
@__func__.OSSL_PARAM_set_int64 = external hidden unnamed_addr constant [21 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local i32 @OSSL_PARAM_set_int64(ptr noundef %0, i64 noundef %1) #0 {
  %3 = alloca i32, align 4
  %4 = alloca ptr, align 8
  %5 = alloca i64, align 8
  %6 = alloca i64, align 8
  %7 = alloca i32, align 4
  store ptr %0, ptr %4, align 8, !tbaa !5
  store i64 %1, ptr %5, align 8, !tbaa !9
  %8 = load ptr, ptr %4, align 8, !tbaa !5
  %9 = icmp eq ptr %8, null
  br i1 %9, label %10, label %11

10:                                               ; preds = %2
  call void @ERR_new()
  call void @ERR_set_debug(ptr noundef @.str, i32 noundef 779, ptr noundef @__func__.OSSL_PARAM_set_int64)
  call void (i32, i32, ptr, ...) @ERR_set_error(i32 noundef 15, i32 noundef 786690, ptr noundef null)
  store i32 0, ptr %3, align 4
  br label %143

11:                                               ; preds = %2
  %12 = load ptr, ptr %4, align 8, !tbaa !5
  %13 = getelementptr inbounds %struct.ossl_param_st, ptr %12, i32 0, i32 4
  store i64 0, ptr %13, align 8, !tbaa !11
  %14 = load ptr, ptr %4, align 8, !tbaa !5
  %15 = getelementptr inbounds %struct.ossl_param_st, ptr %14, i32 0, i32 1
  %16 = load i32, ptr %15, align 8, !tbaa !14
  %17 = icmp eq i32 %16, 1
  br i1 %17, label %18, label %55

18:                                               ; preds = %11
  %19 = load ptr, ptr %4, align 8, !tbaa !5
  %20 = getelementptr inbounds %struct.ossl_param_st, ptr %19, i32 0, i32 2
  %21 = load ptr, ptr %20, align 8, !tbaa !15
  %22 = icmp eq ptr %21, null
  br i1 %22, label %23, label %26

23:                                               ; preds = %18
  %24 = load ptr, ptr %4, align 8, !tbaa !5
  %25 = getelementptr inbounds %struct.ossl_param_st, ptr %24, i32 0, i32 4
  store i64 8, ptr %25, align 8, !tbaa !11
  store i32 1, ptr %3, align 4
  br label %143

26:                                               ; preds = %18
  %27 = load ptr, ptr %4, align 8, !tbaa !5
  %28 = getelementptr inbounds %struct.ossl_param_st, ptr %27, i32 0, i32 3
  %29 = load i64, ptr %28, align 8, !tbaa !16
  switch i64 %29, label %52 [
    i64 4, label %30
    i64 8, label %45
  ]

30:                                               ; preds = %26
  %31 = load i64, ptr %5, align 8, !tbaa !9
  %32 = icmp sge i64 %31, -2147483648
  br i1 %32, label %33, label %44

33:                                               ; preds = %30
  %34 = load i64, ptr %5, align 8, !tbaa !9
  %35 = icmp sle i64 %34, 2147483647
  br i1 %35, label %36, label %44

36:                                               ; preds = %33
  %37 = load ptr, ptr %4, align 8, !tbaa !5
  %38 = getelementptr inbounds %struct.ossl_param_st, ptr %37, i32 0, i32 4
  store i64 4, ptr %38, align 8, !tbaa !11
  %39 = load i64, ptr %5, align 8, !tbaa !9
  %40 = trunc i64 %39 to i32
  %41 = load ptr, ptr %4, align 8, !tbaa !5
  %42 = getelementptr inbounds %struct.ossl_param_st, ptr %41, i32 0, i32 2
  %43 = load ptr, ptr %42, align 8, !tbaa !15
  store i32 %40, ptr %43, align 4, !tbaa !17
  store i32 1, ptr %3, align 4
  br label %143

44:                                               ; preds = %33, %30
  call void @ERR_new()
  call void @ERR_set_debug(ptr noundef @.str, i32 noundef 796, ptr noundef @__func__.OSSL_PARAM_set_int64)
  call void (i32, i32, ptr, ...) @ERR_set_error(i32 noundef 15, i32 noundef 126, ptr noundef null)
  store i32 0, ptr %3, align 4
  br label %143

45:                                               ; preds = %26
  %46 = load ptr, ptr %4, align 8, !tbaa !5
  %47 = getelementptr inbounds %struct.ossl_param_st, ptr %46, i32 0, i32 4
  store i64 8, ptr %47, align 8, !tbaa !11
  %48 = load i64, ptr %5, align 8, !tbaa !9
  %49 = load ptr, ptr %4, align 8, !tbaa !5
  %50 = getelementptr inbounds %struct.ossl_param_st, ptr %49, i32 0, i32 2
  %51 = load ptr, ptr %50, align 8, !tbaa !15
  store i64 %48, ptr %51, align 8, !tbaa !9
  store i32 1, ptr %3, align 4
  br label %143

52:                                               ; preds = %26
  %53 = load ptr, ptr %4, align 8, !tbaa !5
  %54 = call i32 @general_set_int(ptr noundef %53, ptr noundef %5, i64 noundef 8)
  store i32 %54, ptr %3, align 4
  br label %143

55:                                               ; preds = %11
  %56 = load ptr, ptr %4, align 8, !tbaa !5
  %57 = getelementptr inbounds %struct.ossl_param_st, ptr %56, i32 0, i32 1
  %58 = load i32, ptr %57, align 8, !tbaa !14
  %59 = icmp eq i32 %58, 2
  br i1 %59, label %60, label %97

60:                                               ; preds = %55
  %61 = load i64, ptr %5, align 8, !tbaa !9
  %62 = icmp sge i64 %61, 0
  br i1 %62, label %63, label %97

63:                                               ; preds = %60
  %64 = load ptr, ptr %4, align 8, !tbaa !5
  %65 = getelementptr inbounds %struct.ossl_param_st, ptr %64, i32 0, i32 2
  %66 = load ptr, ptr %65, align 8, !tbaa !15
  %67 = icmp eq ptr %66, null
  br i1 %67, label %68, label %71

68:                                               ; preds = %63
  %69 = load ptr, ptr %4, align 8, !tbaa !5
  %70 = getelementptr inbounds %struct.ossl_param_st, ptr %69, i32 0, i32 4
  store i64 8, ptr %70, align 8, !tbaa !11
  store i32 1, ptr %3, align 4
  br label %143

71:                                               ; preds = %63
  %72 = load ptr, ptr %4, align 8, !tbaa !5
  %73 = getelementptr inbounds %struct.ossl_param_st, ptr %72, i32 0, i32 3
  %74 = load i64, ptr %73, align 8, !tbaa !16
  switch i64 %74, label %94 [
    i64 4, label %75
    i64 8, label %87
  ]

75:                                               ; preds = %71
  %76 = load i64, ptr %5, align 8, !tbaa !9
  %77 = icmp sle i64 %76, 4294967295
  br i1 %77, label %78, label %86

78:                                               ; preds = %75
  %79 = load ptr, ptr %4, align 8, !tbaa !5
  %80 = getelementptr inbounds %struct.ossl_param_st, ptr %79, i32 0, i32 4
  store i64 4, ptr %80, align 8, !tbaa !11
  %81 = load i64, ptr %5, align 8, !tbaa !9
  %82 = trunc i64 %81 to i32
  %83 = load ptr, ptr %4, align 8, !tbaa !5
  %84 = getelementptr inbounds %struct.ossl_param_st, ptr %83, i32 0, i32 2
  %85 = load ptr, ptr %84, align 8, !tbaa !15
  store i32 %82, ptr %85, align 4, !tbaa !17
  store i32 1, ptr %3, align 4
  br label %143

86:                                               ; preds = %75
  call void @ERR_new()
  call void @ERR_set_debug(ptr noundef @.str, i32 noundef 818, ptr noundef @__func__.OSSL_PARAM_set_int64)
  call void (i32, i32, ptr, ...) @ERR_set_error(i32 noundef 15, i32 noundef 126, ptr noundef null)
  store i32 0, ptr %3, align 4
  br label %143

87:                                               ; preds = %71
  %88 = load ptr, ptr %4, align 8, !tbaa !5
  %89 = getelementptr inbounds %struct.ossl_param_st, ptr %88, i32 0, i32 4
  store i64 8, ptr %89, align 8, !tbaa !11
  %90 = load i64, ptr %5, align 8, !tbaa !9
  %91 = load ptr, ptr %4, align 8, !tbaa !5
  %92 = getelementptr inbounds %struct.ossl_param_st, ptr %91, i32 0, i32 2
  %93 = load ptr, ptr %92, align 8, !tbaa !15
  store i64 %90, ptr %93, align 8, !tbaa !9
  store i32 1, ptr %3, align 4
  br label %143

94:                                               ; preds = %71
  %95 = load ptr, ptr %4, align 8, !tbaa !5
  %96 = call i32 @general_set_int(ptr noundef %95, ptr noundef %5, i64 noundef 8)
  store i32 %96, ptr %3, align 4
  br label %143

97:                                               ; preds = %60, %55
  %98 = load ptr, ptr %4, align 8, !tbaa !5
  %99 = getelementptr inbounds %struct.ossl_param_st, ptr %98, i32 0, i32 1
  %100 = load i32, ptr %99, align 8, !tbaa !14
  %101 = icmp eq i32 %100, 3
  br i1 %101, label %102, label %140

102:                                              ; preds = %97
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #3
  %103 = load ptr, ptr %4, align 8, !tbaa !5
  %104 = getelementptr inbounds %struct.ossl_param_st, ptr %103, i32 0, i32 2
  %105 = load ptr, ptr %104, align 8, !tbaa !15
  %106 = icmp eq ptr %105, null
  br i1 %106, label %107, label %110

107:                                              ; preds = %102
  %108 = load ptr, ptr %4, align 8, !tbaa !5
  %109 = getelementptr inbounds %struct.ossl_param_st, ptr %108, i32 0, i32 4
  store i64 8, ptr %109, align 8, !tbaa !11
  store i32 1, ptr %3, align 4
  store i32 1, ptr %7, align 4
  br label %139

110:                                              ; preds = %102
  %111 = load ptr, ptr %4, align 8, !tbaa !5
  %112 = getelementptr inbounds %struct.ossl_param_st, ptr %111, i32 0, i32 3
  %113 = load i64, ptr %112, align 8, !tbaa !16
  switch i64 %113, label %138 [
    i64 8, label %114
  ]

114:                                              ; preds = %110
  %115 = load i64, ptr %5, align 8, !tbaa !9
  %116 = icmp slt i64 %115, 0
  br i1 %116, label %117, label %120

117:                                              ; preds = %114
  %118 = load i64, ptr %5, align 8, !tbaa !9
  %119 = sub nsw i64 0, %118
  br label %122

120:                                              ; preds = %114
  %121 = load i64, ptr %5, align 8, !tbaa !9
  br label %122

122:                                              ; preds = %120, %117
  %123 = phi i64 [ %119, %117 ], [ %121, %120 ]
  store i64 %123, ptr %6, align 8, !tbaa !9
  %124 = load i64, ptr %6, align 8, !tbaa !9
  %125 = call i32 @real_shift()
  %126 = zext i32 %125 to i64
  %127 = lshr i64 %124, %126
  %128 = icmp eq i64 %127, 0
  br i1 %128, label %129, label %137

129:                                              ; preds = %122
  %130 = load ptr, ptr %4, align 8, !tbaa !5
  %131 = getelementptr inbounds %struct.ossl_param_st, ptr %130, i32 0, i32 4
  store i64 8, ptr %131, align 8, !tbaa !11
  %132 = load i64, ptr %5, align 8, !tbaa !9
  %133 = sitofp i64 %132 to double
  %134 = load ptr, ptr %4, align 8, !tbaa !5
  %135 = getelementptr inbounds %struct.ossl_param_st, ptr %134, i32 0, i32 2
  %136 = load ptr, ptr %135, align 8, !tbaa !15
  store double %133, ptr %136, align 8, !tbaa !18
  store i32 1, ptr %3, align 4
  store i32 1, ptr %7, align 4
  br label %139

137:                                              ; preds = %122
  call void @ERR_new()
  call void @ERR_set_debug(ptr noundef @.str, i32 noundef 843, ptr noundef @__func__.OSSL_PARAM_set_int64)
  call void (i32, i32, ptr, ...) @ERR_set_error(i32 noundef 15, i32 noundef 123, ptr noundef null)
  store i32 0, ptr %3, align 4
  store i32 1, ptr %7, align 4
  br label %139

138:                                              ; preds = %110
  call void @ERR_new()
  call void @ERR_set_debug(ptr noundef @.str, i32 noundef 846, ptr noundef @__func__.OSSL_PARAM_set_int64)
  call void (i32, i32, ptr, ...) @ERR_set_error(i32 noundef 15, i32 noundef 130, ptr noundef null)
  store i32 0, ptr %3, align 4
  store i32 1, ptr %7, align 4
  br label %139

139:                                              ; preds = %138, %137, %129, %107
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #3
  br label %143

140:                                              ; preds = %97
  br label %141

141:                                              ; preds = %140
  br label %142

142:                                              ; preds = %141
  call void @ERR_new()
  call void @ERR_set_debug(ptr noundef @.str, i32 noundef 850, ptr noundef @__func__.OSSL_PARAM_set_int64)
  call void (i32, i32, ptr, ...) @ERR_set_error(i32 noundef 15, i32 noundef 129, ptr noundef null)
  store i32 0, ptr %3, align 4
  br label %143

143:                                              ; preds = %142, %139, %94, %87, %86, %78, %68, %52, %45, %44, %36, %23, %10
  %144 = load i32, ptr %3, align 4
  ret i32 %144
}

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.start.p0(i64 immarg, ptr nocapture) #2

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

; Function Attrs: nounwind uwtable
declare hidden i32 @general_set_int(ptr noundef, ptr noundef, i64 noundef) #0

; Function Attrs: nounwind uwtable
declare hidden i32 @real_shift() #0

attributes #0 = { 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 #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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = !{!10, !10, i64 0}
!10 = !{!"long", !7, i64 0}
!11 = !{!12, !10, i64 32}
!12 = !{!"ossl_param_st", !6, i64 0, !13, i64 8, !6, i64 16, !10, i64 24, !10, i64 32}
!13 = !{!"int", !7, i64 0}
!14 = !{!12, !13, i64 8}
!15 = !{!12, !6, i64 16}
!16 = !{!12, !10, i64 24}
!17 = !{!13, !13, i64 0}
!18 = !{!19, !19, i64 0}
!19 = !{!"double", !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 [65 x i8], align 1
@__func__.OSSL_PARAM_set_int64 = external hidden unnamed_addr constant [21 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local i32 @OSSL_PARAM_set_int64(ptr noundef %0, i64 noundef %1) local_unnamed_addr #0 {
  %3 = alloca i64, align 8
  store i64 %1, ptr %3, align 8, !tbaa !5
  %4 = icmp eq ptr %0, null
  br i1 %4, label %5, label %6

5:                                                ; preds = %2
  tail call void @ERR_new() #3
  tail call void @ERR_set_debug(ptr noundef nonnull @.str, i32 noundef 779, ptr noundef nonnull @__func__.OSSL_PARAM_set_int64) #3
  tail call void (i32, i32, ptr, ...) @ERR_set_error(i32 noundef 15, i32 noundef 786690, ptr noundef null) #3
  br label %68

6:                                                ; preds = %2
  %7 = getelementptr inbounds i8, ptr %0, i64 32
  store i64 0, ptr %7, align 8, !tbaa !9
  %8 = getelementptr inbounds i8, ptr %0, i64 8
  %9 = load i32, ptr %8, align 8, !tbaa !13
  %10 = icmp eq i32 %9, 1
  br i1 %10, label %11, label %27

11:                                               ; preds = %6
  %12 = getelementptr inbounds i8, ptr %0, i64 16
  %13 = load ptr, ptr %12, align 8, !tbaa !14
  %14 = icmp eq ptr %13, null
  br i1 %14, label %15, label %16

15:                                               ; preds = %11
  store i64 8, ptr %7, align 8, !tbaa !9
  br label %68

16:                                               ; preds = %11
  %17 = getelementptr inbounds i8, ptr %0, i64 24
  %18 = load i64, ptr %17, align 8, !tbaa !15
  switch i64 %18, label %25 [
    i64 4, label %19
    i64 8, label %24
  ]

19:                                               ; preds = %16
  %20 = add i64 %1, 2147483648
  %or.cond = icmp ult i64 %20, 4294967296
  br i1 %or.cond, label %21, label %23

21:                                               ; preds = %19
  store i64 4, ptr %7, align 8, !tbaa !9
  %22 = trunc i64 %1 to i32
  store i32 %22, ptr %13, align 4, !tbaa !16
  br label %68

23:                                               ; preds = %19
  tail call void @ERR_new() #3
  tail call void @ERR_set_debug(ptr noundef nonnull @.str, i32 noundef 796, ptr noundef nonnull @__func__.OSSL_PARAM_set_int64) #3
  tail call void (i32, i32, ptr, ...) @ERR_set_error(i32 noundef 15, i32 noundef 126, ptr noundef null) #3
  br label %68

24:                                               ; preds = %16
  store i64 8, ptr %7, align 8, !tbaa !9
  store i64 %1, ptr %13, align 8, !tbaa !5
  br label %68

25:                                               ; preds = %16
  %26 = call i32 @general_set_int(ptr noundef nonnull %0, ptr noundef nonnull %3, i64 noundef 8)
  br label %68

27:                                               ; preds = %6
  %28 = icmp eq i32 %9, 2
  %29 = icmp sgt i64 %1, -1
  %or.cond3 = and i1 %29, %28
  br i1 %or.cond3, label %30, label %46

30:                                               ; preds = %27
  %31 = getelementptr inbounds i8, ptr %0, i64 16
  %32 = load ptr, ptr %31, align 8, !tbaa !14
  %33 = icmp eq ptr %32, null
  br i1 %33, label %34, label %35

34:                                               ; preds = %30
  store i64 8, ptr %7, align 8, !tbaa !9
  br label %68

35:                                               ; preds = %30
  %36 = getelementptr inbounds i8, ptr %0, i64 24
  %37 = load i64, ptr %36, align 8, !tbaa !15
  switch i64 %37, label %44 [
    i64 4, label %38
    i64 8, label %43
  ]

38:                                               ; preds = %35
  %39 = icmp ult i64 %1, 4294967296
  br i1 %39, label %40, label %42

40:                                               ; preds = %38
  store i64 4, ptr %7, align 8, !tbaa !9
  %41 = trunc nuw i64 %1 to i32
  store i32 %41, ptr %32, align 4, !tbaa !16
  br label %68

42:                                               ; preds = %38
  tail call void @ERR_new() #3
  tail call void @ERR_set_debug(ptr noundef nonnull @.str, i32 noundef 818, ptr noundef nonnull @__func__.OSSL_PARAM_set_int64) #3
  tail call void (i32, i32, ptr, ...) @ERR_set_error(i32 noundef 15, i32 noundef 126, ptr noundef null) #3
  br label %68

43:                                               ; preds = %35
  store i64 8, ptr %7, align 8, !tbaa !9
  store i64 %1, ptr %32, align 8, !tbaa !5
  br label %68

44:                                               ; preds = %35
  %45 = call i32 @general_set_int(ptr noundef nonnull %0, ptr noundef nonnull %3, i64 noundef 8)
  br label %68

46:                                               ; preds = %27
  %47 = icmp eq i32 %9, 3
  br i1 %47, label %48, label %67

48:                                               ; preds = %46
  %49 = getelementptr inbounds i8, ptr %0, i64 16
  %50 = load ptr, ptr %49, align 8, !tbaa !14
  %51 = icmp eq ptr %50, null
  br i1 %51, label %52, label %53

52:                                               ; preds = %48
  store i64 8, ptr %7, align 8, !tbaa !9
  br label %68

53:                                               ; preds = %48
  %54 = getelementptr inbounds i8, ptr %0, i64 24
  %55 = load i64, ptr %54, align 8, !tbaa !15
  %cond = icmp eq i64 %55, 8
  br i1 %cond, label %56, label %66

56:                                               ; preds = %53
  %57 = tail call i64 @llvm.abs.i64(i64 %1, i1 true)
  %58 = tail call i32 @real_shift()
  %59 = zext nneg i32 %58 to i64
  %60 = lshr i64 %57, %59
  %61 = icmp eq i64 %60, 0
  br i1 %61, label %62, label %65

62:                                               ; preds = %56
  store i64 8, ptr %7, align 8, !tbaa !9
  %63 = sitofp i64 %1 to double
  %64 = load ptr, ptr %49, align 8, !tbaa !14
  store double %63, ptr %64, align 8, !tbaa !17
  br label %68

65:                                               ; preds = %56
  tail call void @ERR_new() #3
  tail call void @ERR_set_debug(ptr noundef nonnull @.str, i32 noundef 843, ptr noundef nonnull @__func__.OSSL_PARAM_set_int64) #3
  tail call void (i32, i32, ptr, ...) @ERR_set_error(i32 noundef 15, i32 noundef 123, ptr noundef null) #3
  br label %68

66:                                               ; preds = %53
  tail call void @ERR_new() #3
  tail call void @ERR_set_debug(ptr noundef nonnull @.str, i32 noundef 846, ptr noundef nonnull @__func__.OSSL_PARAM_set_int64) #3
  tail call void (i32, i32, ptr, ...) @ERR_set_error(i32 noundef 15, i32 noundef 130, ptr noundef null) #3
  br label %68

67:                                               ; preds = %46
  tail call void @ERR_new() #3
  tail call void @ERR_set_debug(ptr noundef nonnull @.str, i32 noundef 850, ptr noundef nonnull @__func__.OSSL_PARAM_set_int64) #3
  tail call void (i32, i32, ptr, ...) @ERR_set_error(i32 noundef 15, i32 noundef 129, ptr noundef null) #3
  br label %68

68:                                               ; preds = %52, %62, %65, %66, %67, %44, %43, %42, %40, %34, %25, %24, %23, %21, %15, %5
  %.1 = phi i32 [ 0, %5 ], [ 1, %15 ], [ %26, %25 ], [ 1, %24 ], [ 1, %21 ], [ 0, %23 ], [ 1, %34 ], [ %45, %44 ], [ 1, %43 ], [ 1, %40 ], [ 0, %42 ], [ 0, %67 ], [ 1, %52 ], [ 1, %62 ], [ 0, %65 ], [ 0, %66 ]
  ret i32 %.1
}

declare void @ERR_new() local_unnamed_addr #1

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

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

; Function Attrs: nounwind uwtable
declare hidden i32 @general_set_int(ptr noundef, ptr noundef, i64 noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare hidden i32 @real_shift() local_unnamed_addr #0

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i64 @llvm.abs.i64(i64, i1 immarg) #2

attributes #0 = { 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 #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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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 = !{!"long", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !6, i64 32}
!10 = !{!"ossl_param_st", !11, i64 0, !12, i64 8, !11, i64 16, !6, i64 24, !6, i64 32}
!11 = !{!"any pointer", !7, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!10, !12, i64 8}
!14 = !{!10, !11, i64 16}
!15 = !{!10, !6, i64 24}
!16 = !{!12, !12, i64 0}
!17 = !{!18, !18, i64 0}
!18 = !{!"double", !7, i64 0}


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