; LLVM IR from specinfo-ua/UAPKI :: library/uapkic/src (ec)

; 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.EcCtx_st = type { ptr, ptr, ptr, ptr, i8, i8 }
%struct.ByteArray_st = type { ptr, i64 }
%struct.EcParamsCtx_st = type { i32, ptr, ptr, ptr, ptr, i8, i64, ptr, ptr, i32, ptr }
%struct.WordArray_st = type { ptr, i64 }

@.str = external hidden unnamed_addr constant [19 x i8], align 1
@default_opt_level = external global i32, align 4

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

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

declare void @stacktrace_create(ptr noundef, i64 noundef, i32 noundef, ptr noundef) #1

declare void @stacktrace_add(ptr noundef, i64 noundef, i32 noundef) #1

declare void @wa_free_private(ptr noundef) #1

declare void @ec_point_free(ptr noundef) #1

declare void @ec_precomp_free(ptr noundef) #1

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

declare ptr @wa_alloc_from_be(ptr noundef, i64 noundef) #1

declare i32 @int_cmp(ptr noundef, ptr noundef) #1

declare void @wa_change_len(ptr noundef, i64 noundef) #1

declare zeroext i1 @int_is_zero(ptr noundef) #1

; Function Attrs: nounwind uwtable
define dso_local i32 @ec_init_sign(ptr noundef %0, ptr noundef %1) #2 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #3
  store i32 0, ptr %5, align 4, !tbaa !9
  br label %7

7:                                                ; preds = %2
  %8 = load ptr, ptr %3, align 8, !tbaa !5
  %9 = icmp ne ptr %8, null
  br i1 %9, label %12, label %10

10:                                               ; preds = %7
  store i32 2, ptr %5, align 4, !tbaa !9
  %11 = load i32, ptr %5, align 4, !tbaa !9
  call void @stacktrace_create(ptr noundef @.str, i64 noundef 966, i32 noundef %11, ptr noundef null)
  br label %140

12:                                               ; preds = %7
  br label %13

13:                                               ; preds = %12
  br label %14

14:                                               ; preds = %13
  br label %15

15:                                               ; preds = %14
  %16 = load ptr, ptr %4, align 8, !tbaa !5
  %17 = icmp ne ptr %16, null
  br i1 %17, label %20, label %18

18:                                               ; preds = %15
  store i32 2, ptr %5, align 4, !tbaa !9
  %19 = load i32, ptr %5, align 4, !tbaa !9
  call void @stacktrace_create(ptr noundef @.str, i64 noundef 967, i32 noundef %19, ptr noundef null)
  br label %140

20:                                               ; preds = %15
  br label %21

21:                                               ; preds = %20
  br label %22

22:                                               ; preds = %21
  %23 = load ptr, ptr %3, align 8, !tbaa !5
  %24 = getelementptr inbounds %struct.EcCtx_st, ptr %23, i32 0, i32 0
  %25 = load ptr, ptr %24, align 8, !tbaa !11
  %26 = icmp eq ptr %25, null
  br i1 %26, label %27, label %32

27:                                               ; preds = %22
  br label %28

28:                                               ; preds = %27
  store i32 4, ptr %5, align 4, !tbaa !9
  %29 = load i32, ptr %5, align 4, !tbaa !9
  call void @stacktrace_create(ptr noundef @.str, i64 noundef 970, i32 noundef %29, ptr noundef null)
  br label %140

30:                                               ; No predecessors!
  br label %31

31:                                               ; preds = %30
  br label %32

32:                                               ; preds = %31, %22
  %33 = load ptr, ptr %3, align 8, !tbaa !5
  %34 = getelementptr inbounds %struct.EcCtx_st, ptr %33, i32 0, i32 2
  %35 = load ptr, ptr %34, align 8, !tbaa !14
  %36 = icmp ne ptr %35, null
  br i1 %36, label %37, label %45

37:                                               ; preds = %32
  %38 = load ptr, ptr %3, align 8, !tbaa !5
  %39 = getelementptr inbounds %struct.EcCtx_st, ptr %38, i32 0, i32 5
  store i8 0, ptr %39, align 1, !tbaa !15
  %40 = load ptr, ptr %3, align 8, !tbaa !5
  %41 = getelementptr inbounds %struct.EcCtx_st, ptr %40, i32 0, i32 2
  %42 = load ptr, ptr %41, align 8, !tbaa !14
  call void @ec_point_free(ptr noundef %42)
  %43 = load ptr, ptr %3, align 8, !tbaa !5
  %44 = getelementptr inbounds %struct.EcCtx_st, ptr %43, i32 0, i32 2
  store ptr null, ptr %44, align 8, !tbaa !14
  br label %45

45:                                               ; preds = %37, %32
  %46 = load ptr, ptr %3, align 8, !tbaa !5
  %47 = getelementptr inbounds %struct.EcCtx_st, ptr %46, i32 0, i32 3
  %48 = load ptr, ptr %47, align 8, !tbaa !16
  %49 = icmp ne ptr %48, null
  br i1 %49, label %50, label %56

50:                                               ; preds = %45
  %51 = load ptr, ptr %3, align 8, !tbaa !5
  %52 = getelementptr inbounds %struct.EcCtx_st, ptr %51, i32 0, i32 3
  %53 = load ptr, ptr %52, align 8, !tbaa !16
  call void @ec_precomp_free(ptr noundef %53)
  %54 = load ptr, ptr %3, align 8, !tbaa !5
  %55 = getelementptr inbounds %struct.EcCtx_st, ptr %54, i32 0, i32 3
  store ptr null, ptr %55, align 8, !tbaa !16
  br label %56

56:                                               ; preds = %50, %45
  %57 = load ptr, ptr %3, align 8, !tbaa !5
  %58 = getelementptr inbounds %struct.EcCtx_st, ptr %57, i32 0, i32 1
  %59 = load ptr, ptr %58, align 8, !tbaa !17
  %60 = icmp ne ptr %59, null
  br i1 %60, label %61, label %67

61:                                               ; preds = %56
  %62 = load ptr, ptr %3, align 8, !tbaa !5
  %63 = getelementptr inbounds %struct.EcCtx_st, ptr %62, i32 0, i32 1
  %64 = load ptr, ptr %63, align 8, !tbaa !17
  call void @wa_free_private(ptr noundef %64)
  %65 = load ptr, ptr %3, align 8, !tbaa !5
  %66 = getelementptr inbounds %struct.EcCtx_st, ptr %65, i32 0, i32 1
  store ptr null, ptr %66, align 8, !tbaa !17
  br label %67

67:                                               ; preds = %61, %56
  br label %68

68:                                               ; preds = %67
  %69 = load ptr, ptr %4, align 8, !tbaa !5
  %70 = getelementptr inbounds %struct.ByteArray_st, ptr %69, i32 0, i32 0
  %71 = load ptr, ptr %70, align 8, !tbaa !18
  %72 = load ptr, ptr %4, align 8, !tbaa !5
  %73 = getelementptr inbounds %struct.ByteArray_st, ptr %72, i32 0, i32 1
  %74 = load i64, ptr %73, align 8, !tbaa !21
  %75 = call ptr @wa_alloc_from_be(ptr noundef %71, i64 noundef %74)
  %76 = load ptr, ptr %3, align 8, !tbaa !5
  %77 = getelementptr inbounds %struct.EcCtx_st, ptr %76, i32 0, i32 1
  store ptr %75, ptr %77, align 8, !tbaa !17
  %78 = icmp eq ptr null, %75
  br i1 %78, label %79, label %81

79:                                               ; preds = %68
  store i32 2, ptr %5, align 4, !tbaa !9
  %80 = load i32, ptr %5, align 4, !tbaa !9
  call void @stacktrace_add(ptr noundef @.str, i64 noundef 989, i32 noundef %80)
  br label %140

81:                                               ; preds = %68
  br label %82

82:                                               ; preds = %81
  br label %83

83:                                               ; preds = %82
  %84 = load ptr, ptr %3, align 8, !tbaa !5
  %85 = getelementptr inbounds %struct.EcCtx_st, ptr %84, i32 0, i32 1
  %86 = load ptr, ptr %85, align 8, !tbaa !17
  %87 = load ptr, ptr %3, align 8, !tbaa !5
  %88 = getelementptr inbounds %struct.EcCtx_st, ptr %87, i32 0, i32 0
  %89 = load ptr, ptr %88, align 8, !tbaa !11
  %90 = getelementptr inbounds %struct.EcParamsCtx_st, ptr %89, i32 0, i32 2
  %91 = load ptr, ptr %90, align 8, !tbaa !22
  %92 = getelementptr inbounds %struct.WordArray_st, ptr %91, i32 0, i32 1
  %93 = load i64, ptr %92, align 8, !tbaa !24
  call void @wa_change_len(ptr noundef %86, i64 noundef %93)
  %94 = load ptr, ptr %3, align 8, !tbaa !5
  %95 = getelementptr inbounds %struct.EcCtx_st, ptr %94, i32 0, i32 1
  %96 = load ptr, ptr %95, align 8, !tbaa !17
  %97 = call zeroext i1 @int_is_zero(ptr noundef %96)
  br i1 %97, label %98, label %103

98:                                               ; preds = %83
  br label %99

99:                                               ; preds = %98
  store i32 6, ptr %5, align 4, !tbaa !9
  %100 = load i32, ptr %5, align 4, !tbaa !9
  call void @stacktrace_create(ptr noundef @.str, i64 noundef 993, i32 noundef %100, ptr noundef null)
  br label %140

101:                                              ; No predecessors!
  br label %102

102:                                              ; preds = %101
  br label %103

103:                                              ; preds = %102, %83
  %104 = load ptr, ptr %3, align 8, !tbaa !5
  %105 = getelementptr inbounds %struct.EcCtx_st, ptr %104, i32 0, i32 1
  %106 = load ptr, ptr %105, align 8, !tbaa !17
  %107 = load ptr, ptr %3, align 8, !tbaa !5
  %108 = getelementptr inbounds %struct.EcCtx_st, ptr %107, i32 0, i32 0
  %109 = load ptr, ptr %108, align 8, !tbaa !11
  %110 = getelementptr inbounds %struct.EcParamsCtx_st, ptr %109, i32 0, i32 2
  %111 = load ptr, ptr %110, align 8, !tbaa !22
  %112 = call i32 @int_cmp(ptr noundef %106, ptr noundef %111)
  %113 = icmp sge i32 %112, 0
  br i1 %113, label %114, label %119

114:                                              ; preds = %103
  br label %115

115:                                              ; preds = %114
  store i32 6, ptr %5, align 4, !tbaa !9
  %116 = load i32, ptr %5, align 4, !tbaa !9
  call void @stacktrace_create(ptr noundef @.str, i64 noundef 997, i32 noundef %116, ptr noundef null)
  br label %140

117:                                              ; No predecessors!
  br label %118

118:                                              ; preds = %117
  br label %119

119:                                              ; preds = %118, %103
  %120 = load ptr, ptr %3, align 8, !tbaa !5
  %121 = getelementptr inbounds %struct.EcCtx_st, ptr %120, i32 0, i32 0
  %122 = load ptr, ptr %121, align 8, !tbaa !11
  %123 = getelementptr inbounds %struct.EcParamsCtx_st, ptr %122, i32 0, i32 10
  %124 = load ptr, ptr %123, align 8, !tbaa !26
  %125 = icmp eq ptr %124, null
  br i1 %125, label %126, label %137

126:                                              ; preds = %119
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #3
  %127 = load i32, ptr @default_opt_level, align 4, !tbaa !9
  %128 = lshr i32 %127, 8
  %129 = and i32 %128, 15
  store i32 %129, ptr %6, align 4, !tbaa !9
  %130 = load i32, ptr %6, align 4, !tbaa !9
  %131 = icmp eq i32 %130, 0
  br i1 %131, label %132, label %133

132:                                              ; preds = %126
  store i32 5, ptr %6, align 4, !tbaa !9
  br label %133

133:                                              ; preds = %132, %126
  %134 = load ptr, ptr %3, align 8, !tbaa !5
  %135 = load i32, ptr %6, align 4, !tbaa !9
  %136 = call i32 @ec_set_sign_precomp(ptr noundef %134, i32 noundef 0, i32 noundef %135)
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #3
  br label %137

137:                                              ; preds = %133, %119
  %138 = load ptr, ptr %3, align 8, !tbaa !5
  %139 = getelementptr inbounds %struct.EcCtx_st, ptr %138, i32 0, i32 4
  store i8 1, ptr %139, align 8, !tbaa !27
  br label %140

140:                                              ; preds = %137, %115, %99, %79, %28, %18, %10
  %141 = load i32, ptr %5, align 4, !tbaa !9
  %142 = icmp ne i32 %141, 0
  br i1 %142, label %143, label %149

143:                                              ; preds = %140
  %144 = load ptr, ptr %3, align 8, !tbaa !5
  %145 = icmp ne ptr %144, null
  br i1 %145, label %146, label %149

146:                                              ; preds = %143
  %147 = load ptr, ptr %3, align 8, !tbaa !5
  %148 = getelementptr inbounds %struct.EcCtx_st, ptr %147, i32 0, i32 4
  store i8 0, ptr %148, align 8, !tbaa !27
  br label %149

149:                                              ; preds = %146, %143, %140
  %150 = load i32, ptr %5, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #3
  ret i32 %150
}

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { 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 = !{!"int", !7, i64 0}
!11 = !{!12, !6, i64 0}
!12 = !{!"EcCtx_st", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !13, i64 32, !13, i64 33}
!13 = !{!"_Bool", !7, i64 0}
!14 = !{!12, !6, i64 16}
!15 = !{!12, !13, i64 33}
!16 = !{!12, !6, i64 24}
!17 = !{!12, !6, i64 8}
!18 = !{!19, !6, i64 0}
!19 = !{!"ByteArray_st", !6, i64 0, !20, i64 8}
!20 = !{!"long", !7, i64 0}
!21 = !{!19, !20, i64 8}
!22 = !{!23, !6, i64 16}
!23 = !{!"EcParamsCtx_st", !10, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !13, i64 40, !20, i64 48, !6, i64 56, !6, i64 64, !10, i64 72, !6, i64 80}
!24 = !{!25, !20, i64 8}
!25 = !{!"WordArray_st", !6, i64 0, !20, i64 8}
!26 = !{!23, !6, i64 80}
!27 = !{!12, !13, i64 32}


; 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 [19 x i8], align 1
@default_opt_level = external local_unnamed_addr global i32, align 4

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

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

declare void @wa_free_private(ptr noundef) local_unnamed_addr #0

declare void @ec_point_free(ptr noundef) local_unnamed_addr #0

declare void @ec_precomp_free(ptr noundef) local_unnamed_addr #0

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

declare ptr @wa_alloc_from_be(ptr noundef, i64 noundef) local_unnamed_addr #0

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

declare void @wa_change_len(ptr noundef, i64 noundef) local_unnamed_addr #0

declare zeroext i1 @int_is_zero(ptr noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
define dso_local range(i32 0, 7) i32 @ec_init_sign(ptr noundef %0, ptr noundef readonly %1) local_unnamed_addr #1 {
  %.not47 = icmp eq ptr %0, null
  br i1 %.not47, label %3, label %4

3:                                                ; preds = %2
  tail call void @stacktrace_create(ptr noundef nonnull @.str, i64 noundef 966, i32 noundef 2, ptr noundef null) #2
  br label %.thread

4:                                                ; preds = %2
  %.not = icmp eq ptr %1, null
  br i1 %.not, label %5, label %6

5:                                                ; preds = %4
  tail call void @stacktrace_create(ptr noundef nonnull @.str, i64 noundef 967, i32 noundef 2, ptr noundef null) #2
  br label %60

6:                                                ; preds = %4
  %7 = load ptr, ptr %0, align 8, !tbaa !5
  %8 = icmp eq ptr %7, null
  br i1 %8, label %9, label %10

9:                                                ; preds = %6
  tail call void @stacktrace_create(ptr noundef nonnull @.str, i64 noundef 970, i32 noundef 4, ptr noundef null) #2
  br label %60

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

13:                                               ; preds = %10
  %14 = getelementptr inbounds i8, ptr %0, i64 33
  store i8 0, ptr %14, align 1, !tbaa !12
  tail call void @ec_point_free(ptr noundef nonnull %12) #2
  store ptr null, ptr %11, align 8, !tbaa !11
  br label %15

15:                                               ; preds = %13, %10
  %16 = getelementptr inbounds i8, ptr %0, i64 24
  %17 = load ptr, ptr %16, align 8, !tbaa !13
  %.not42 = icmp eq ptr %17, null
  br i1 %.not42, label %19, label %18

18:                                               ; preds = %15
  tail call void @ec_precomp_free(ptr noundef nonnull %17) #2
  store ptr null, ptr %16, align 8, !tbaa !13
  br label %19

19:                                               ; preds = %18, %15
  %20 = getelementptr inbounds i8, ptr %0, i64 8
  %21 = load ptr, ptr %20, align 8, !tbaa !14
  %.not43 = icmp eq ptr %21, null
  br i1 %.not43, label %23, label %22

22:                                               ; preds = %19
  tail call void @wa_free_private(ptr noundef nonnull %21) #2
  store ptr null, ptr %20, align 8, !tbaa !14
  br label %23

23:                                               ; preds = %19, %22
  %24 = load ptr, ptr %1, align 8, !tbaa !15
  %25 = getelementptr inbounds i8, ptr %1, i64 8
  %26 = load i64, ptr %25, align 8, !tbaa !18
  %27 = tail call ptr @wa_alloc_from_be(ptr noundef %24, i64 noundef %26) #2
  store ptr %27, ptr %20, align 8, !tbaa !14
  %28 = icmp eq ptr %27, null
  br i1 %28, label %29, label %30

29:                                               ; preds = %23
  tail call void @stacktrace_add(ptr noundef nonnull @.str, i64 noundef 989, i32 noundef 2) #2
  br label %60

30:                                               ; preds = %23
  %31 = load ptr, ptr %0, align 8, !tbaa !5
  %32 = getelementptr inbounds i8, ptr %31, i64 16
  %33 = load ptr, ptr %32, align 8, !tbaa !19
  %34 = getelementptr inbounds i8, ptr %33, i64 8
  %35 = load i64, ptr %34, align 8, !tbaa !22
  tail call void @wa_change_len(ptr noundef nonnull %27, i64 noundef %35) #2
  %36 = load ptr, ptr %20, align 8, !tbaa !14
  %37 = tail call zeroext i1 @int_is_zero(ptr noundef %36) #2
  br i1 %37, label %38, label %39

38:                                               ; preds = %30
  tail call void @stacktrace_create(ptr noundef nonnull @.str, i64 noundef 993, i32 noundef 6, ptr noundef null) #2
  br label %60

39:                                               ; preds = %30
  %40 = load ptr, ptr %20, align 8, !tbaa !14
  %41 = load ptr, ptr %0, align 8, !tbaa !5
  %42 = getelementptr inbounds i8, ptr %41, i64 16
  %43 = load ptr, ptr %42, align 8, !tbaa !19
  %44 = tail call i32 @int_cmp(ptr noundef %40, ptr noundef %43) #2
  %45 = icmp sgt i32 %44, -1
  br i1 %45, label %46, label %47

46:                                               ; preds = %39
  tail call void @stacktrace_create(ptr noundef nonnull @.str, i64 noundef 997, i32 noundef 6, ptr noundef null) #2
  br label %60

47:                                               ; preds = %39
  %48 = load ptr, ptr %0, align 8, !tbaa !5
  %49 = getelementptr inbounds i8, ptr %48, i64 80
  %50 = load ptr, ptr %49, align 8, !tbaa !24
  %51 = icmp eq ptr %50, null
  br i1 %51, label %52, label %58

52:                                               ; preds = %47
  %53 = load i32, ptr @default_opt_level, align 4, !tbaa !25
  %54 = lshr i32 %53, 8
  %55 = and i32 %54, 15
  %56 = icmp eq i32 %55, 0
  %spec.store.select = select i1 %56, i32 5, i32 %55
  %57 = tail call i32 @ec_set_sign_precomp(ptr noundef nonnull %0, i32 noundef 0, i32 noundef %spec.store.select)
  br label %58

58:                                               ; preds = %52, %47
  %59 = getelementptr inbounds i8, ptr %0, i64 32
  store i8 1, ptr %59, align 8, !tbaa !26
  br label %.thread

60:                                               ; preds = %5, %9, %29, %38, %46
  %.0 = phi i32 [ 4, %9 ], [ 2, %29 ], [ 6, %38 ], [ 6, %46 ], [ 2, %5 ]
  %61 = getelementptr inbounds i8, ptr %0, i64 32
  store i8 0, ptr %61, align 8, !tbaa !26
  br label %.thread

.thread:                                          ; preds = %3, %58, %60
  %.046 = phi i32 [ %.0, %60 ], [ 2, %3 ], [ 0, %58 ]
  ret i32 %.046
}

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, !7, i64 0}
!6 = !{!"EcCtx_st", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !10, i64 32, !10, i64 33}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"_Bool", !8, i64 0}
!11 = !{!6, !7, i64 16}
!12 = !{!6, !10, i64 33}
!13 = !{!6, !7, i64 24}
!14 = !{!6, !7, i64 8}
!15 = !{!16, !7, i64 0}
!16 = !{!"ByteArray_st", !7, i64 0, !17, i64 8}
!17 = !{!"long", !8, i64 0}
!18 = !{!16, !17, i64 8}
!19 = !{!20, !7, i64 16}
!20 = !{!"EcParamsCtx_st", !21, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !7, i64 32, !10, i64 40, !17, i64 48, !7, i64 56, !7, i64 64, !21, i64 72, !7, i64 80}
!21 = !{!"int", !8, i64 0}
!22 = !{!23, !17, i64 8}
!23 = !{!"WordArray_st", !7, i64 0, !17, i64 8}
!24 = !{!20, !7, i64 80}
!25 = !{!21, !21, i64 0}
!26 = !{!6, !10, i64 32}


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