; LLVM IR from machinefi/psa-crypto-esp32 :: psa_layer (psa_crypto_ecp)

; 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.iotex_ecp_keypair = type { %struct.iotex_ecp_group, %struct.iotex_mpi, %struct.iotex_ecp_point }
%struct.iotex_ecp_group = type { i32, %struct.iotex_mpi, %struct.iotex_mpi, %struct.iotex_mpi, %struct.iotex_ecp_point, %struct.iotex_mpi, i64, i64, i32, ptr, ptr, ptr, ptr, ptr, i64 }
%struct.iotex_mpi = type { i32, i64, ptr }
%struct.iotex_ecp_point = type { %struct.iotex_mpi, %struct.iotex_mpi, %struct.iotex_mpi }

; Function Attrs: nounwind uwtable
define dso_local i32 @iotex_psa_ecp_load_representation(i16 noundef zeroext %0, i64 noundef %1, ptr noundef %2, i64 noundef %3, ptr noundef %4) #0 {
  %6 = alloca i32, align 4
  %7 = alloca i16, align 2
  %8 = alloca i64, align 8
  %9 = alloca ptr, align 8
  %10 = alloca i64, align 8
  %11 = alloca ptr, align 8
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca ptr, align 8
  %15 = alloca i64, align 8
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  store i16 %0, ptr %7, align 2, !tbaa !5
  store i64 %1, ptr %8, align 8, !tbaa !9
  store ptr %2, ptr %9, align 8, !tbaa !11
  store i64 %3, ptr %10, align 8, !tbaa !9
  store ptr %4, ptr %11, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #5
  store i32 0, ptr %12, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #5
  store ptr null, ptr %14, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #5
  %18 = load i64, ptr %10, align 8, !tbaa !9
  store i64 %18, ptr %15, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #5
  %19 = load i64, ptr %8, align 8, !tbaa !9
  %20 = icmp ne i64 %19, 0
  %21 = zext i1 %20 to i32
  store i32 %21, ptr %16, align 4, !tbaa !13
  %22 = load i16, ptr %7, align 2, !tbaa !5
  %23 = zext i16 %22 to i32
  %24 = and i32 %23, 28672
  %25 = icmp eq i32 %24, 16384
  br i1 %25, label %26, label %50

26:                                               ; preds = %5
  %27 = load i16, ptr %7, align 2, !tbaa !5
  %28 = zext i16 %27 to i32
  %29 = and i32 %28, -12289
  %30 = and i32 %29, -256
  %31 = icmp eq i32 %30, 16640
  br i1 %31, label %32, label %36

32:                                               ; preds = %26
  %33 = load i16, ptr %7, align 2, !tbaa !5
  %34 = zext i16 %33 to i32
  %35 = and i32 %34, 255
  br label %37

36:                                               ; preds = %26
  br label %37

37:                                               ; preds = %36, %32
  %38 = phi i32 [ %35, %32 ], [ 0, %36 ]
  %39 = trunc i32 %38 to i8
  %40 = zext i8 %39 to i32
  %41 = icmp ne i32 %40, 65
  br i1 %41, label %42, label %50

42:                                               ; preds = %37
  %43 = load i64, ptr %10, align 8, !tbaa !9
  %44 = and i64 %43, 1
  %45 = icmp eq i64 %44, 0
  br i1 %45, label %46, label %47

46:                                               ; preds = %42
  store i32 -135, ptr %6, align 4
  store i32 1, ptr %17, align 4
  br label %155

47:                                               ; preds = %42
  %48 = load i64, ptr %10, align 8, !tbaa !9
  %49 = udiv i64 %48, 2
  store i64 %49, ptr %15, align 8, !tbaa !9
  br label %50

50:                                               ; preds = %47, %37, %5
  %51 = load i32, ptr %16, align 4, !tbaa !13
  %52 = icmp ne i32 %51, 0
  br i1 %52, label %53, label %61

53:                                               ; preds = %50
  %54 = load i64, ptr %15, align 8, !tbaa !9
  %55 = load i64, ptr %8, align 8, !tbaa !9
  %56 = add i64 %55, 7
  %57 = udiv i64 %56, 8
  %58 = icmp ne i64 %54, %57
  br i1 %58, label %59, label %60

59:                                               ; preds = %53
  store i32 -135, ptr %6, align 4
  store i32 1, ptr %17, align 4
  br label %155

60:                                               ; preds = %53
  br label %64

61:                                               ; preds = %50
  %62 = load i64, ptr %15, align 8, !tbaa !9
  %63 = mul i64 %62, 8
  store i64 %63, ptr %8, align 8, !tbaa !9
  br label %64

64:                                               ; preds = %61, %60
  %65 = call noalias ptr @calloc(i64 noundef 1, i64 noundef 344) #6
  store ptr %65, ptr %14, align 8, !tbaa !11
  %66 = load ptr, ptr %14, align 8, !tbaa !11
  %67 = icmp eq ptr %66, null
  br i1 %67, label %68, label %69

68:                                               ; preds = %64
  store i32 -141, ptr %6, align 4
  store i32 1, ptr %17, align 4
  br label %155

69:                                               ; preds = %64
  %70 = load ptr, ptr %14, align 8, !tbaa !11
  call void @iotex_ecp_keypair_init(ptr noundef %70)
  %71 = load i16, ptr %7, align 2, !tbaa !5
  %72 = zext i16 %71 to i32
  %73 = and i32 %72, -12289
  %74 = and i32 %73, -256
  %75 = icmp eq i32 %74, 16640
  br i1 %75, label %76, label %80

76:                                               ; preds = %69
  %77 = load i16, ptr %7, align 2, !tbaa !5
  %78 = zext i16 %77 to i32
  %79 = and i32 %78, 255
  br label %81

80:                                               ; preds = %69
  br label %81

81:                                               ; preds = %80, %76
  %82 = phi i32 [ %79, %76 ], [ 0, %80 ]
  %83 = trunc i32 %82 to i8
  %84 = load i64, ptr %8, align 8, !tbaa !9
  %85 = load i32, ptr %16, align 4, !tbaa !13
  %86 = icmp ne i32 %85, 0
  %87 = xor i1 %86, true
  %88 = zext i1 %87 to i32
  %89 = call i32 @iotex_ecc_group_of_psa(i8 noundef zeroext %83, i64 noundef %84, i32 noundef %88)
  store i32 %89, ptr %12, align 4, !tbaa !13
  %90 = load i32, ptr %12, align 4, !tbaa !13
  %91 = icmp eq i32 %90, 0
  br i1 %91, label %92, label %93

92:                                               ; preds = %81
  store i32 -134, ptr %13, align 4, !tbaa !13
  br label %147

93:                                               ; preds = %81
  %94 = load ptr, ptr %14, align 8, !tbaa !11
  %95 = getelementptr inbounds %struct.iotex_ecp_keypair, ptr %94, i32 0, i32 0
  %96 = load i32, ptr %12, align 4, !tbaa !13
  %97 = call i32 @iotex_ecp_group_load(ptr noundef %95, i32 noundef %96)
  %98 = call i32 @iotex_to_psa_error(i32 noundef %97)
  store i32 %98, ptr %13, align 4, !tbaa !13
  %99 = load i32, ptr %13, align 4, !tbaa !13
  %100 = icmp ne i32 %99, 0
  br i1 %100, label %101, label %102

101:                                              ; preds = %93
  br label %147

102:                                              ; preds = %93
  %103 = load i16, ptr %7, align 2, !tbaa !5
  %104 = zext i16 %103 to i32
  %105 = and i32 %104, 28672
  %106 = icmp eq i32 %105, 16384
  br i1 %106, label %107, label %130

107:                                              ; preds = %102
  %108 = load ptr, ptr %14, align 8, !tbaa !11
  %109 = getelementptr inbounds %struct.iotex_ecp_keypair, ptr %108, i32 0, i32 0
  %110 = load ptr, ptr %14, align 8, !tbaa !11
  %111 = getelementptr inbounds %struct.iotex_ecp_keypair, ptr %110, i32 0, i32 2
  %112 = load ptr, ptr %9, align 8, !tbaa !11
  %113 = load i64, ptr %10, align 8, !tbaa !9
  %114 = call i32 @iotex_ecp_point_read_binary(ptr noundef %109, ptr noundef %111, ptr noundef %112, i64 noundef %113)
  %115 = call i32 @iotex_to_psa_error(i32 noundef %114)
  store i32 %115, ptr %13, align 4, !tbaa !13
  %116 = load i32, ptr %13, align 4, !tbaa !13
  %117 = icmp ne i32 %116, 0
  br i1 %117, label %118, label %119

118:                                              ; preds = %107
  br label %147

119:                                              ; preds = %107
  %120 = load ptr, ptr %14, align 8, !tbaa !11
  %121 = getelementptr inbounds %struct.iotex_ecp_keypair, ptr %120, i32 0, i32 0
  %122 = load ptr, ptr %14, align 8, !tbaa !11
  %123 = getelementptr inbounds %struct.iotex_ecp_keypair, ptr %122, i32 0, i32 2
  %124 = call i32 @iotex_ecp_check_pubkey(ptr noundef %121, ptr noundef %123)
  %125 = call i32 @iotex_to_psa_error(i32 noundef %124)
  store i32 %125, ptr %13, align 4, !tbaa !13
  %126 = load i32, ptr %13, align 4, !tbaa !13
  %127 = icmp ne i32 %126, 0
  br i1 %127, label %128, label %129

128:                                              ; preds = %119
  br label %147

129:                                              ; preds = %119
  br label %144

130:                                              ; preds = %102
  %131 = load ptr, ptr %14, align 8, !tbaa !11
  %132 = getelementptr inbounds %struct.iotex_ecp_keypair, ptr %131, i32 0, i32 0
  %133 = getelementptr inbounds %struct.iotex_ecp_group, ptr %132, i32 0, i32 0
  %134 = load i32, ptr %133, align 8, !tbaa !15
  %135 = load ptr, ptr %14, align 8, !tbaa !11
  %136 = load ptr, ptr %9, align 8, !tbaa !11
  %137 = load i64, ptr %10, align 8, !tbaa !9
  %138 = call i32 @iotex_ecp_read_key(i32 noundef %134, ptr noundef %135, ptr noundef %136, i64 noundef %137)
  %139 = call i32 @iotex_to_psa_error(i32 noundef %138)
  store i32 %139, ptr %13, align 4, !tbaa !13
  %140 = load i32, ptr %13, align 4, !tbaa !13
  %141 = icmp ne i32 %140, 0
  br i1 %141, label %142, label %143

142:                                              ; preds = %130
  br label %147

143:                                              ; preds = %130
  br label %144

144:                                              ; preds = %143, %129
  %145 = load ptr, ptr %14, align 8, !tbaa !11
  %146 = load ptr, ptr %11, align 8, !tbaa !11
  store ptr %145, ptr %146, align 8, !tbaa !11
  br label %147

147:                                              ; preds = %144, %142, %128, %118, %101, %92
  %148 = load i32, ptr %13, align 4, !tbaa !13
  %149 = icmp ne i32 %148, 0
  br i1 %149, label %150, label %153

150:                                              ; preds = %147
  %151 = load ptr, ptr %14, align 8, !tbaa !11
  call void @iotex_ecp_keypair_free(ptr noundef %151)
  %152 = load ptr, ptr %14, align 8, !tbaa !11
  call void @free(ptr noundef %152) #5
  br label %153

153:                                              ; preds = %150, %147
  %154 = load i32, ptr %13, align 4, !tbaa !13
  store i32 %154, ptr %6, align 4
  store i32 1, ptr %17, align 4
  br label %155

155:                                              ; preds = %153, %68, %59, %46
  call void @llvm.lifetime.end.p0(i64 4, 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 4, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #5
  %156 = load i32, ptr %6, align 4
  ret i32 %156
}

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

; Function Attrs: nounwind allocsize(0,1)
declare noalias ptr @calloc(i64 noundef, i64 noundef) #2

declare void @iotex_ecp_keypair_init(ptr noundef) #3

declare i32 @iotex_ecc_group_of_psa(i8 noundef zeroext, i64 noundef, i32 noundef) #3

declare i32 @iotex_to_psa_error(i32 noundef) #3

declare i32 @iotex_ecp_group_load(ptr noundef, i32 noundef) #3

declare i32 @iotex_ecp_point_read_binary(ptr noundef, ptr noundef, ptr noundef, i64 noundef) #3

declare i32 @iotex_ecp_check_pubkey(ptr noundef, ptr noundef) #3

declare i32 @iotex_ecp_read_key(i32 noundef, ptr noundef, ptr noundef, i64 noundef) #3

declare void @iotex_ecp_keypair_free(ptr noundef) #3

; Function Attrs: nounwind
declare void @free(ptr noundef) #4

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

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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nounwind allocsize(0,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 #3 = { "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 "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 = { nounwind allocsize(0,1) }

!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 = !{!"short", !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 = !{!"any pointer", !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"int", !7, i64 0}
!15 = !{!16, !14, i64 0}
!16 = !{!"iotex_ecp_keypair", !17, i64 0, !18, i64 248, !19, i64 272}
!17 = !{!"iotex_ecp_group", !14, i64 0, !18, i64 8, !18, i64 32, !18, i64 56, !19, i64 80, !18, i64 152, !10, i64 176, !10, i64 184, !14, i64 192, !12, i64 200, !12, i64 208, !12, i64 216, !12, i64 224, !12, i64 232, !10, i64 240}
!18 = !{!"iotex_mpi", !14, i64 0, !10, i64 8, !12, i64 16}
!19 = !{!"iotex_ecp_point", !18, i64 0, !18, i64 24, !18, i64 48}


; 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"

; Function Attrs: nounwind uwtable
define dso_local i32 @iotex_psa_ecp_load_representation(i16 noundef zeroext %0, i64 noundef %1, ptr noundef %2, i64 noundef %3, ptr nocapture noundef writeonly %4) local_unnamed_addr #0 {
  %.not = icmp eq i64 %1, 0
  %6 = zext i16 %0 to i32
  %7 = and i32 %6, 28672
  %8 = icmp eq i32 %7, 16384
  br i1 %8, label %9, label %18

9:                                                ; preds = %5
  %10 = and i32 %6, 52992
  %11 = icmp eq i32 %10, 16640
  %12 = and i16 %0, 255
  %.not5354 = icmp eq i16 %12, 65
  %.not53 = and i1 %.not5354, %11
  br i1 %.not53, label %18, label %13

13:                                               ; preds = %9
  %14 = and i64 %3, 1
  %15 = icmp eq i64 %14, 0
  br i1 %15, label %52, label %16

16:                                               ; preds = %13
  %17 = lshr i64 %3, 1
  br label %18

18:                                               ; preds = %16, %9, %5
  %.041 = phi i64 [ %17, %16 ], [ %3, %9 ], [ %3, %5 ]
  br i1 %.not, label %22, label %19

19:                                               ; preds = %18
  %20 = add i64 %1, 7
  %21 = lshr i64 %20, 3
  %.not55 = icmp eq i64 %.041, %21
  br i1 %.not55, label %24, label %52

22:                                               ; preds = %18
  %23 = shl i64 %.041, 3
  br label %24

24:                                               ; preds = %19, %22
  %.043 = phi i64 [ %1, %19 ], [ %23, %22 ]
  %25 = tail call noalias dereferenceable_or_null(344) ptr @calloc(i64 noundef 1, i64 noundef 344) #4
  %26 = icmp eq ptr %25, null
  br i1 %26, label %52, label %27

27:                                               ; preds = %24
  tail call void @iotex_ecp_keypair_init(ptr noundef nonnull %25) #5
  %28 = and i32 %6, 52992
  %29 = icmp eq i32 %28, 16640
  %30 = trunc i16 %0 to i8
  %31 = select i1 %29, i8 %30, i8 0
  %32 = zext i1 %.not to i32
  %33 = tail call i32 @iotex_ecc_group_of_psa(i8 noundef zeroext %31, i64 noundef %.043, i32 noundef %32) #5
  %34 = icmp eq i32 %33, 0
  br i1 %34, label %51, label %35

35:                                               ; preds = %27
  %36 = tail call i32 @iotex_ecp_group_load(ptr noundef nonnull %25, i32 noundef %33) #5
  %37 = tail call i32 @iotex_to_psa_error(i32 noundef %36) #5
  %.not56 = icmp eq i32 %37, 0
  br i1 %.not56, label %38, label %51

38:                                               ; preds = %35
  br i1 %8, label %39, label %46

39:                                               ; preds = %38
  %40 = getelementptr inbounds i8, ptr %25, i64 272
  %41 = tail call i32 @iotex_ecp_point_read_binary(ptr noundef nonnull %25, ptr noundef nonnull %40, ptr noundef %2, i64 noundef %3) #5
  %42 = tail call i32 @iotex_to_psa_error(i32 noundef %41) #5
  %.not58 = icmp eq i32 %42, 0
  br i1 %.not58, label %43, label %51

43:                                               ; preds = %39
  %44 = tail call i32 @iotex_ecp_check_pubkey(ptr noundef nonnull %25, ptr noundef nonnull %40) #5
  %45 = tail call i32 @iotex_to_psa_error(i32 noundef %44) #5
  %.not59 = icmp eq i32 %45, 0
  br i1 %.not59, label %50, label %51

46:                                               ; preds = %38
  %47 = load i32, ptr %25, align 8, !tbaa !5
  %48 = tail call i32 @iotex_ecp_read_key(i32 noundef %47, ptr noundef nonnull %25, ptr noundef %2, i64 noundef %3) #5
  %49 = tail call i32 @iotex_to_psa_error(i32 noundef %48) #5
  %.not57 = icmp eq i32 %49, 0
  br i1 %.not57, label %50, label %51

50:                                               ; preds = %43, %46
  store ptr %25, ptr %4, align 8, !tbaa !15
  br label %52

51:                                               ; preds = %35, %39, %43, %46, %27
  %.1.ph = phi i32 [ -134, %27 ], [ %49, %46 ], [ %45, %43 ], [ %42, %39 ], [ %37, %35 ]
  tail call void @iotex_ecp_keypair_free(ptr noundef nonnull %25) #5
  tail call void @free(ptr noundef nonnull %25) #5
  br label %52

52:                                               ; preds = %50, %51, %24, %19, %13
  %.0 = phi i32 [ -135, %13 ], [ -135, %19 ], [ -141, %24 ], [ %.1.ph, %51 ], [ 0, %50 ]
  ret i32 %.0
}

; Function Attrs: mustprogress nofree nounwind willreturn allockind("alloc,zeroed") allocsize(0,1) memory(inaccessiblemem: readwrite)
declare noalias noundef ptr @calloc(i64 noundef, i64 noundef) local_unnamed_addr #1

declare void @iotex_ecp_keypair_init(ptr noundef) local_unnamed_addr #2

declare i32 @iotex_ecc_group_of_psa(i8 noundef zeroext, i64 noundef, i32 noundef) local_unnamed_addr #2

declare i32 @iotex_to_psa_error(i32 noundef) local_unnamed_addr #2

declare i32 @iotex_ecp_group_load(ptr noundef, i32 noundef) local_unnamed_addr #2

declare i32 @iotex_ecp_point_read_binary(ptr noundef, ptr noundef, ptr noundef, i64 noundef) local_unnamed_addr #2

declare i32 @iotex_ecp_check_pubkey(ptr noundef, ptr noundef) local_unnamed_addr #2

declare i32 @iotex_ecp_read_key(i32 noundef, ptr noundef, ptr noundef, i64 noundef) local_unnamed_addr #2

declare void @iotex_ecp_keypair_free(ptr noundef) local_unnamed_addr #2

; Function Attrs: mustprogress nounwind willreturn allockind("free") memory(argmem: readwrite, inaccessiblemem: readwrite)
declare void @free(ptr allocptr nocapture noundef) local_unnamed_addr #3

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 = { mustprogress nofree nounwind willreturn allockind("alloc,zeroed") allocsize(0,1) memory(inaccessiblemem: readwrite) "alloc-family"="malloc" "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 = { "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 = { mustprogress nounwind willreturn allockind("free") memory(argmem: readwrite, inaccessiblemem: readwrite) "alloc-family"="malloc" "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 allocsize(0,1) }
attributes #5 = { 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, !8, i64 0}
!6 = !{!"iotex_ecp_keypair", !7, i64 0, !11, i64 248, !14, i64 272}
!7 = !{!"iotex_ecp_group", !8, i64 0, !11, i64 8, !11, i64 32, !11, i64 56, !14, i64 80, !11, i64 152, !12, i64 176, !12, i64 184, !8, i64 192, !13, i64 200, !13, i64 208, !13, i64 216, !13, i64 224, !13, i64 232, !12, i64 240}
!8 = !{!"int", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!"iotex_mpi", !8, i64 0, !12, i64 8, !13, i64 16}
!12 = !{!"long", !9, i64 0}
!13 = !{!"any pointer", !9, i64 0}
!14 = !{!"iotex_ecp_point", !11, i64 0, !11, i64 24, !11, i64 48}
!15 = !{!13, !13, i64 0}


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