; 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_double = external hidden unnamed_addr constant [22 x i8], align 1

declare void @ERR_new() #0

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

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

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

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

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

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

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

21:                                               ; preds = %14
  %22 = load ptr, ptr %4, align 8, !tbaa !5
  %23 = getelementptr inbounds %struct.ossl_param_st, ptr %22, i32 0, i32 2
  %24 = load ptr, ptr %23, align 8, !tbaa !16
  %25 = icmp eq ptr %24, null
  br i1 %25, label %26, label %29

26:                                               ; preds = %21
  %27 = load ptr, ptr %4, align 8, !tbaa !5
  %28 = getelementptr inbounds %struct.ossl_param_st, ptr %27, i32 0, i32 4
  store i64 8, ptr %28, align 8, !tbaa !11
  store i32 1, ptr %3, align 4
  store i32 1, ptr %10, align 4
  br label %154

29:                                               ; preds = %21
  %30 = load ptr, ptr %4, align 8, !tbaa !5
  %31 = getelementptr inbounds %struct.ossl_param_st, ptr %30, i32 0, i32 3
  %32 = load i64, ptr %31, align 8, !tbaa !17
  switch i64 %32, label %40 [
    i64 8, label %33
  ]

33:                                               ; preds = %29
  %34 = load ptr, ptr %4, align 8, !tbaa !5
  %35 = getelementptr inbounds %struct.ossl_param_st, ptr %34, i32 0, i32 4
  store i64 8, ptr %35, align 8, !tbaa !11
  %36 = load double, ptr %5, align 8, !tbaa !9
  %37 = load ptr, ptr %4, align 8, !tbaa !5
  %38 = getelementptr inbounds %struct.ossl_param_st, ptr %37, i32 0, i32 2
  %39 = load ptr, ptr %38, align 8, !tbaa !16
  store double %36, ptr %39, align 8, !tbaa !9
  store i32 1, ptr %3, align 4
  store i32 1, ptr %10, align 4
  br label %154

40:                                               ; preds = %29
  call void @ERR_new()
  call void @ERR_set_debug(ptr noundef @.str, i32 noundef 1254, ptr noundef @__func__.OSSL_PARAM_set_double)
  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 %10, align 4
  br label %154

41:                                               ; preds = %14
  %42 = load ptr, ptr %4, align 8, !tbaa !5
  %43 = getelementptr inbounds %struct.ossl_param_st, ptr %42, i32 0, i32 1
  %44 = load i32, ptr %43, align 8, !tbaa !15
  %45 = icmp eq i32 %44, 2
  br i1 %45, label %46, label %96

46:                                               ; preds = %41
  %47 = load ptr, ptr %4, align 8, !tbaa !5
  %48 = getelementptr inbounds %struct.ossl_param_st, ptr %47, i32 0, i32 2
  %49 = load ptr, ptr %48, align 8, !tbaa !16
  %50 = icmp eq ptr %49, null
  br i1 %50, label %51, label %54

51:                                               ; preds = %46
  %52 = load ptr, ptr %4, align 8, !tbaa !5
  %53 = getelementptr inbounds %struct.ossl_param_st, ptr %52, i32 0, i32 4
  store i64 8, ptr %53, align 8, !tbaa !11
  store i32 1, ptr %3, align 4
  store i32 1, ptr %10, align 4
  br label %154

54:                                               ; preds = %46
  %55 = load double, ptr %5, align 8, !tbaa !9
  %56 = load double, ptr %5, align 8, !tbaa !9
  %57 = fptoui double %56 to i64
  %58 = uitofp i64 %57 to double
  %59 = fcmp une double %55, %58
  br i1 %59, label %60, label %61

60:                                               ; preds = %54
  call void @ERR_new()
  call void @ERR_set_debug(ptr noundef @.str, i32 noundef 1266, ptr noundef @__func__.OSSL_PARAM_set_double)
  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 %10, align 4
  br label %154

61:                                               ; preds = %54
  %62 = load ptr, ptr %4, align 8, !tbaa !5
  %63 = getelementptr inbounds %struct.ossl_param_st, ptr %62, i32 0, i32 3
  %64 = load i64, ptr %63, align 8, !tbaa !17
  switch i64 %64, label %95 [
    i64 4, label %65
    i64 8, label %80
  ]

65:                                               ; preds = %61
  %66 = load double, ptr %5, align 8, !tbaa !9
  %67 = fcmp oge double %66, 0.000000e+00
  br i1 %67, label %68, label %79

68:                                               ; preds = %65
  %69 = load double, ptr %5, align 8, !tbaa !9
  %70 = fcmp olt double %69, 0x41F0000000000000
  br i1 %70, label %71, label %79

71:                                               ; preds = %68
  %72 = load ptr, ptr %4, align 8, !tbaa !5
  %73 = getelementptr inbounds %struct.ossl_param_st, ptr %72, i32 0, i32 4
  store i64 4, ptr %73, align 8, !tbaa !11
  %74 = load double, ptr %5, align 8, !tbaa !9
  %75 = fptoui double %74 to i32
  %76 = load ptr, ptr %4, align 8, !tbaa !5
  %77 = getelementptr inbounds %struct.ossl_param_st, ptr %76, i32 0, i32 2
  %78 = load ptr, ptr %77, align 8, !tbaa !16
  store i32 %75, ptr %78, align 4, !tbaa !18
  store i32 1, ptr %3, align 4
  store i32 1, ptr %10, align 4
  br label %154

79:                                               ; preds = %68, %65
  call void @ERR_new()
  call void @ERR_set_debug(ptr noundef @.str, i32 noundef 1276, ptr noundef @__func__.OSSL_PARAM_set_double)
  call void (i32, i32, ptr, ...) @ERR_set_error(i32 noundef 15, i32 noundef 126, ptr noundef null)
  store i32 0, ptr %3, align 4
  store i32 1, ptr %10, align 4
  br label %154

80:                                               ; preds = %61
  %81 = load double, ptr %5, align 8, !tbaa !9
  %82 = fcmp oge double %81, 0.000000e+00
  br i1 %82, label %83, label %94

83:                                               ; preds = %80
  %84 = load double, ptr %5, align 8, !tbaa !9
  %85 = fcmp olt double %84, 0x43F0000000000000
  br i1 %85, label %86, label %94

86:                                               ; preds = %83
  %87 = load ptr, ptr %4, align 8, !tbaa !5
  %88 = getelementptr inbounds %struct.ossl_param_st, ptr %87, i32 0, i32 4
  store i64 8, ptr %88, align 8, !tbaa !11
  %89 = load double, ptr %5, align 8, !tbaa !9
  %90 = fptoui double %89 to i64
  %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 !16
  store i64 %90, ptr %93, align 8, !tbaa !19
  store i32 1, ptr %3, align 4
  store i32 1, ptr %10, align 4
  br label %154

94:                                               ; preds = %83, %80
  call void @ERR_new()
  call void @ERR_set_debug(ptr noundef @.str, i32 noundef 1284, ptr noundef @__func__.OSSL_PARAM_set_double)
  call void (i32, i32, ptr, ...) @ERR_set_error(i32 noundef 15, i32 noundef 126, ptr noundef null)
  store i32 0, ptr %3, align 4
  store i32 1, ptr %10, align 4
  br label %154

95:                                               ; preds = %61
  br label %152

96:                                               ; preds = %41
  %97 = load ptr, ptr %4, align 8, !tbaa !5
  %98 = getelementptr inbounds %struct.ossl_param_st, ptr %97, i32 0, i32 1
  %99 = load i32, ptr %98, align 8, !tbaa !15
  %100 = icmp eq i32 %99, 1
  br i1 %100, label %101, label %151

101:                                              ; preds = %96
  %102 = load ptr, ptr %4, align 8, !tbaa !5
  %103 = getelementptr inbounds %struct.ossl_param_st, ptr %102, i32 0, i32 2
  %104 = load ptr, ptr %103, align 8, !tbaa !16
  %105 = icmp eq ptr %104, null
  br i1 %105, label %106, label %109

106:                                              ; preds = %101
  %107 = load ptr, ptr %4, align 8, !tbaa !5
  %108 = getelementptr inbounds %struct.ossl_param_st, ptr %107, i32 0, i32 4
  store i64 8, ptr %108, align 8, !tbaa !11
  store i32 1, ptr %3, align 4
  store i32 1, ptr %10, align 4
  br label %154

109:                                              ; preds = %101
  %110 = load double, ptr %5, align 8, !tbaa !9
  %111 = load double, ptr %5, align 8, !tbaa !9
  %112 = fptosi double %111 to i64
  %113 = sitofp i64 %112 to double
  %114 = fcmp une double %110, %113
  br i1 %114, label %115, label %116

115:                                              ; preds = %109
  call void @ERR_new()
  call void @ERR_set_debug(ptr noundef @.str, i32 noundef 1297, ptr noundef @__func__.OSSL_PARAM_set_double)
  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 %10, align 4
  br label %154

116:                                              ; preds = %109
  %117 = load ptr, ptr %4, align 8, !tbaa !5
  %118 = getelementptr inbounds %struct.ossl_param_st, ptr %117, i32 0, i32 3
  %119 = load i64, ptr %118, align 8, !tbaa !17
  switch i64 %119, label %150 [
    i64 4, label %120
    i64 8, label %135
  ]

120:                                              ; preds = %116
  %121 = load double, ptr %5, align 8, !tbaa !9
  %122 = fcmp oge double %121, 0xC1E0000000000000
  br i1 %122, label %123, label %134

123:                                              ; preds = %120
  %124 = load double, ptr %5, align 8, !tbaa !9
  %125 = fcmp olt double %124, 0x41E0000000000000
  br i1 %125, label %126, label %134

126:                                              ; preds = %123
  %127 = load ptr, ptr %4, align 8, !tbaa !5
  %128 = getelementptr inbounds %struct.ossl_param_st, ptr %127, i32 0, i32 4
  store i64 4, ptr %128, align 8, !tbaa !11
  %129 = load double, ptr %5, align 8, !tbaa !9
  %130 = fptosi double %129 to i32
  %131 = load ptr, ptr %4, align 8, !tbaa !5
  %132 = getelementptr inbounds %struct.ossl_param_st, ptr %131, i32 0, i32 2
  %133 = load ptr, ptr %132, align 8, !tbaa !16
  store i32 %130, ptr %133, align 4, !tbaa !18
  store i32 1, ptr %3, align 4
  store i32 1, ptr %10, align 4
  br label %154

134:                                              ; preds = %123, %120
  call void @ERR_new()
  call void @ERR_set_debug(ptr noundef @.str, i32 noundef 1307, ptr noundef @__func__.OSSL_PARAM_set_double)
  call void (i32, i32, ptr, ...) @ERR_set_error(i32 noundef 15, i32 noundef 126, ptr noundef null)
  store i32 0, ptr %3, align 4
  store i32 1, ptr %10, align 4
  br label %154

135:                                              ; preds = %116
  %136 = load double, ptr %5, align 8, !tbaa !9
  %137 = fcmp oge double %136, 0xC3E0000000000000
  br i1 %137, label %138, label %149

138:                                              ; preds = %135
  %139 = load double, ptr %5, align 8, !tbaa !9
  %140 = fcmp olt double %139, 0x43E0000000000000
  br i1 %140, label %141, label %149

141:                                              ; preds = %138
  %142 = load ptr, ptr %4, align 8, !tbaa !5
  %143 = getelementptr inbounds %struct.ossl_param_st, ptr %142, i32 0, i32 4
  store i64 8, ptr %143, align 8, !tbaa !11
  %144 = load double, ptr %5, align 8, !tbaa !9
  %145 = fptosi double %144 to i64
  %146 = load ptr, ptr %4, align 8, !tbaa !5
  %147 = getelementptr inbounds %struct.ossl_param_st, ptr %146, i32 0, i32 2
  %148 = load ptr, ptr %147, align 8, !tbaa !16
  store i64 %145, ptr %148, align 8, !tbaa !19
  store i32 1, ptr %3, align 4
  store i32 1, ptr %10, align 4
  br label %154

149:                                              ; preds = %138, %135
  call void @ERR_new()
  call void @ERR_set_debug(ptr noundef @.str, i32 noundef 1315, ptr noundef @__func__.OSSL_PARAM_set_double)
  call void (i32, i32, ptr, ...) @ERR_set_error(i32 noundef 15, i32 noundef 126, ptr noundef null)
  store i32 0, ptr %3, align 4
  store i32 1, ptr %10, align 4
  br label %154

150:                                              ; preds = %116
  br label %151

151:                                              ; preds = %150, %96
  br label %152

152:                                              ; preds = %151, %95
  br label %153

153:                                              ; preds = %152
  call void @ERR_new()
  call void @ERR_set_debug(ptr noundef @.str, i32 noundef 1319, ptr noundef @__func__.OSSL_PARAM_set_double)
  call void (i32, i32, ptr, ...) @ERR_set_error(i32 noundef 15, i32 noundef 129, ptr noundef null)
  store i32 0, ptr %3, align 4
  store i32 1, ptr %10, align 4
  br label %154

154:                                              ; preds = %153, %149, %141, %134, %126, %115, %106, %94, %86, %79, %71, %60, %51, %40, %33, %26, %13
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #3
  %155 = load i32, ptr %3, align 4
  ret i32 %155
}

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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { 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 = !{!"double", !7, i64 0}
!11 = !{!12, !14, i64 32}
!12 = !{!"ossl_param_st", !6, i64 0, !13, i64 8, !6, i64 16, !14, i64 24, !14, i64 32}
!13 = !{!"int", !7, i64 0}
!14 = !{!"long", !7, i64 0}
!15 = !{!12, !13, i64 8}
!16 = !{!12, !6, i64 16}
!17 = !{!12, !14, i64 24}
!18 = !{!13, !13, i64 0}
!19 = !{!14, !14, 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_double = external hidden unnamed_addr constant [22 x i8], align 1

declare void @ERR_new() local_unnamed_addr #0

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

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

; Function Attrs: nounwind uwtable
define dso_local range(i32 0, 2) i32 @OSSL_PARAM_set_double(ptr noundef %0, double noundef %1) local_unnamed_addr #1 {
  %3 = icmp eq ptr %0, null
  br i1 %3, label %4, label %5

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

5:                                                ; preds = %2
  %6 = getelementptr inbounds i8, ptr %0, i64 32
  store i64 0, ptr %6, align 8, !tbaa !5
  %7 = getelementptr inbounds i8, ptr %0, i64 8
  %8 = load i32, ptr %7, align 8, !tbaa !12
  switch i32 %8, label %67 [
    i32 3, label %9
    i32 2, label %19
    i32 1, label %43
  ]

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

13:                                               ; preds = %9
  store i64 8, ptr %6, align 8, !tbaa !5
  br label %68

14:                                               ; preds = %9
  %15 = getelementptr inbounds i8, ptr %0, i64 24
  %16 = load i64, ptr %15, align 8, !tbaa !14
  %cond = icmp eq i64 %16, 8
  br i1 %cond, label %17, label %18

17:                                               ; preds = %14
  store i64 8, ptr %6, align 8, !tbaa !5
  store double %1, ptr %11, align 8, !tbaa !15
  br label %68

18:                                               ; preds = %14
  tail call void @ERR_new() #2
  tail call void @ERR_set_debug(ptr noundef nonnull @.str, i32 noundef 1254, ptr noundef nonnull @__func__.OSSL_PARAM_set_double) #2
  tail call void (i32, i32, ptr, ...) @ERR_set_error(i32 noundef 15, i32 noundef 130, ptr noundef null) #2
  br label %68

19:                                               ; preds = %5
  %20 = getelementptr inbounds i8, ptr %0, i64 16
  %21 = load ptr, ptr %20, align 8, !tbaa !13
  %22 = icmp eq ptr %21, null
  br i1 %22, label %23, label %24

23:                                               ; preds = %19
  store i64 8, ptr %6, align 8, !tbaa !5
  br label %68

24:                                               ; preds = %19
  %25 = fptoui double %1 to i64
  %26 = uitofp i64 %25 to double
  %27 = fcmp une double %26, %1
  br i1 %27, label %28, label %29

28:                                               ; preds = %24
  tail call void @ERR_new() #2
  tail call void @ERR_set_debug(ptr noundef nonnull @.str, i32 noundef 1266, ptr noundef nonnull @__func__.OSSL_PARAM_set_double) #2
  tail call void (i32, i32, ptr, ...) @ERR_set_error(i32 noundef 15, i32 noundef 123, ptr noundef null) #2
  br label %68

29:                                               ; preds = %24
  %30 = getelementptr inbounds i8, ptr %0, i64 24
  %31 = load i64, ptr %30, align 8, !tbaa !14
  switch i64 %31, label %67 [
    i64 4, label %32
    i64 8, label %38
  ]

32:                                               ; preds = %29
  %33 = fcmp oge double %1, 0.000000e+00
  %34 = fcmp olt double %1, 0x41F0000000000000
  %or.cond = and i1 %33, %34
  br i1 %or.cond, label %35, label %37

35:                                               ; preds = %32
  store i64 4, ptr %6, align 8, !tbaa !5
  %36 = fptoui double %1 to i32
  store i32 %36, ptr %21, align 4, !tbaa !17
  br label %68

37:                                               ; preds = %32
  tail call void @ERR_new() #2
  tail call void @ERR_set_debug(ptr noundef nonnull @.str, i32 noundef 1276, ptr noundef nonnull @__func__.OSSL_PARAM_set_double) #2
  tail call void (i32, i32, ptr, ...) @ERR_set_error(i32 noundef 15, i32 noundef 126, ptr noundef null) #2
  br label %68

38:                                               ; preds = %29
  %39 = fcmp oge double %1, 0.000000e+00
  %40 = fcmp olt double %1, 0x43F0000000000000
  %or.cond3 = and i1 %39, %40
  br i1 %or.cond3, label %41, label %42

41:                                               ; preds = %38
  store i64 8, ptr %6, align 8, !tbaa !5
  store i64 %25, ptr %21, align 8, !tbaa !18
  br label %68

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

43:                                               ; preds = %5
  %44 = getelementptr inbounds i8, ptr %0, i64 16
  %45 = load ptr, ptr %44, align 8, !tbaa !13
  %46 = icmp eq ptr %45, null
  br i1 %46, label %47, label %48

47:                                               ; preds = %43
  store i64 8, ptr %6, align 8, !tbaa !5
  br label %68

48:                                               ; preds = %43
  %49 = fptosi double %1 to i64
  %50 = sitofp i64 %49 to double
  %51 = fcmp une double %50, %1
  br i1 %51, label %52, label %53

52:                                               ; preds = %48
  tail call void @ERR_new() #2
  tail call void @ERR_set_debug(ptr noundef nonnull @.str, i32 noundef 1297, ptr noundef nonnull @__func__.OSSL_PARAM_set_double) #2
  tail call void (i32, i32, ptr, ...) @ERR_set_error(i32 noundef 15, i32 noundef 123, ptr noundef null) #2
  br label %68

53:                                               ; preds = %48
  %54 = getelementptr inbounds i8, ptr %0, i64 24
  %55 = load i64, ptr %54, align 8, !tbaa !14
  switch i64 %55, label %67 [
    i64 4, label %56
    i64 8, label %62
  ]

56:                                               ; preds = %53
  %57 = fcmp oge double %1, 0xC1E0000000000000
  %58 = fcmp olt double %1, 0x41E0000000000000
  %or.cond5 = and i1 %57, %58
  br i1 %or.cond5, label %59, label %61

59:                                               ; preds = %56
  store i64 4, ptr %6, align 8, !tbaa !5
  %60 = fptosi double %1 to i32
  store i32 %60, ptr %45, align 4, !tbaa !17
  br label %68

61:                                               ; preds = %56
  tail call void @ERR_new() #2
  tail call void @ERR_set_debug(ptr noundef nonnull @.str, i32 noundef 1307, ptr noundef nonnull @__func__.OSSL_PARAM_set_double) #2
  tail call void (i32, i32, ptr, ...) @ERR_set_error(i32 noundef 15, i32 noundef 126, ptr noundef null) #2
  br label %68

62:                                               ; preds = %53
  %63 = fcmp oge double %1, 0xC3E0000000000000
  %64 = fcmp olt double %1, 0x43E0000000000000
  %or.cond7 = and i1 %63, %64
  br i1 %or.cond7, label %65, label %66

65:                                               ; preds = %62
  store i64 8, ptr %6, align 8, !tbaa !5
  store i64 %49, ptr %45, align 8, !tbaa !18
  br label %68

66:                                               ; preds = %62
  tail call void @ERR_new() #2
  tail call void @ERR_set_debug(ptr noundef nonnull @.str, i32 noundef 1315, ptr noundef nonnull @__func__.OSSL_PARAM_set_double) #2
  tail call void (i32, i32, ptr, ...) @ERR_set_error(i32 noundef 15, i32 noundef 126, ptr noundef null) #2
  br label %68

67:                                               ; preds = %5, %29, %53
  tail call void @ERR_new() #2
  tail call void @ERR_set_debug(ptr noundef nonnull @.str, i32 noundef 1319, ptr noundef nonnull @__func__.OSSL_PARAM_set_double) #2
  tail call void (i32, i32, ptr, ...) @ERR_set_error(i32 noundef 15, i32 noundef 129, ptr noundef null) #2
  br label %68

68:                                               ; preds = %67, %66, %65, %61, %59, %52, %47, %42, %41, %37, %35, %28, %23, %18, %17, %13, %4
  %.0 = phi i32 [ 0, %4 ], [ 1, %13 ], [ 1, %17 ], [ 0, %18 ], [ 1, %23 ], [ 0, %28 ], [ 0, %67 ], [ 1, %41 ], [ 0, %42 ], [ 1, %35 ], [ 0, %37 ], [ 1, %47 ], [ 0, %52 ], [ 1, %65 ], [ 0, %66 ], [ 1, %59 ], [ 0, %61 ]
  ret i32 %.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 = { 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, !11, i64 32}
!6 = !{!"ossl_param_st", !7, i64 0, !10, i64 8, !7, i64 16, !11, i64 24, !11, i64 32}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"int", !8, i64 0}
!11 = !{!"long", !8, i64 0}
!12 = !{!6, !10, i64 8}
!13 = !{!6, !7, i64 16}
!14 = !{!6, !11, i64 24}
!15 = !{!16, !16, i64 0}
!16 = !{!"double", !8, i64 0}
!17 = !{!10, !10, i64 0}
!18 = !{!11, !11, i64 0}


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