; LLVM IR from jim-b/ECCSI-SAKKE :: src/data (communityParameters)

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

@p_bn = external hidden global ptr, align 8
@.str = external hidden unnamed_addr constant [65 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [49 x i8], align 1
@stdout = external global ptr, align 8
@.str.3 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [49 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [65 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [49 x i8], align 1
@NIST_P256_Curve = external hidden global ptr, align 8
@.str.8 = external hidden unnamed_addr constant [56 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [131 x i8], align 1
@G_string = external hidden global ptr, align 8
@G_string_len = external hidden global i64, align 8
@.str.10 = external hidden unnamed_addr constant [37 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [44 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [44 x i8], align 1
@G_point = external hidden global ptr, align 8
@.str.13 = external hidden unnamed_addr constant [50 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [55 x i8], align 1
@q_bn = external hidden global ptr, align 8
@.str.15 = external hidden unnamed_addr constant [65 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [45 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local signext i16 @community_initStorage() #0 {
  %1 = alloca i8, align 1
  %2 = alloca i8, align 1
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca i16, align 2
  %10 = alloca [1200 x i8], align 16
  %11 = alloca [1200 x i8], align 16
  %12 = alloca [1200 x i8], align 16
  %13 = alloca [1200 x i8], align 16
  %14 = alloca [1200 x i8], align 16
  %15 = alloca [1200 x i8], align 16
  %16 = alloca [1200 x i8], align 16
  %17 = alloca [1200 x i8], align 16
  %18 = alloca [1200 x i8], align 16
  %19 = alloca [1200 x i8], align 16
  call void @llvm.lifetime.start.p0(i64 1, ptr %1) #4
  store i8 0, ptr %1, align 1, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr %2) #4
  store i8 1, ptr %2, align 1, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #4
  store ptr null, ptr %3, align 8, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #4
  store ptr null, ptr %4, align 8, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #4
  store ptr null, ptr %5, align 8, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #4
  store ptr null, ptr %6, align 8, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #4
  store ptr null, ptr %7, align 8, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #4
  store ptr null, ptr %8, align 8, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 2, ptr %9) #4
  store i16 0, ptr %9, align 2, !tbaa !10
  %20 = call i32 @BN_hex2bn(ptr noundef @p_bn, ptr noundef @.str)
  %21 = icmp ne i32 %20, 0
  br i1 %21, label %28, label %22

22:                                               ; preds = %0
  call void @llvm.lifetime.start.p0(i64 1200, ptr %10) #4
  %23 = getelementptr inbounds [1200 x i8], ptr %10, i64 0, i64 0
  %24 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef %23, i64 noundef 1200, ptr noundef @.str.1, ptr noundef @.str.2) #4
  %25 = load ptr, ptr @stdout, align 8, !tbaa !8
  %26 = getelementptr inbounds [1200 x i8], ptr %10, i64 0, i64 0
  %27 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %25, ptr noundef @.str.3, ptr noundef %26) #4
  call void @llvm.lifetime.end.p0(i64 1200, ptr %10) #4
  store i8 1, ptr %1, align 1, !tbaa !5
  br label %61

28:                                               ; preds = %0
  %29 = call i32 @BN_dec2bn(ptr noundef %3, ptr noundef @.str.4)
  %30 = icmp ne i32 %29, 0
  br i1 %30, label %37, label %31

31:                                               ; preds = %28
  call void @llvm.lifetime.start.p0(i64 1200, ptr %11) #4
  %32 = getelementptr inbounds [1200 x i8], ptr %11, i64 0, i64 0
  %33 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef %32, i64 noundef 1200, ptr noundef @.str.1, ptr noundef @.str.5) #4
  %34 = load ptr, ptr @stdout, align 8, !tbaa !8
  %35 = getelementptr inbounds [1200 x i8], ptr %11, i64 0, i64 0
  %36 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %34, ptr noundef @.str.3, ptr noundef %35) #4
  call void @llvm.lifetime.end.p0(i64 1200, ptr %11) #4
  store i8 1, ptr %1, align 1, !tbaa !5
  br label %60

37:                                               ; preds = %28
  %38 = call i32 @BN_hex2bn(ptr noundef %4, ptr noundef @.str.6)
  %39 = icmp ne i32 %38, 0
  br i1 %39, label %46, label %40

40:                                               ; preds = %37
  call void @llvm.lifetime.start.p0(i64 1200, ptr %12) #4
  %41 = getelementptr inbounds [1200 x i8], ptr %12, i64 0, i64 0
  %42 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef %41, i64 noundef 1200, ptr noundef @.str.1, ptr noundef @.str.7) #4
  %43 = load ptr, ptr @stdout, align 8, !tbaa !8
  %44 = getelementptr inbounds [1200 x i8], ptr %12, i64 0, i64 0
  %45 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %43, ptr noundef @.str.3, ptr noundef %44) #4
  call void @llvm.lifetime.end.p0(i64 1200, ptr %12) #4
  store i8 1, ptr %1, align 1, !tbaa !5
  br label %59

46:                                               ; preds = %37
  %47 = load ptr, ptr @p_bn, align 8, !tbaa !8
  %48 = load ptr, ptr %3, align 8, !tbaa !8
  %49 = load ptr, ptr %4, align 8, !tbaa !8
  %50 = call ptr @EC_GROUP_new_curve_GFp(ptr noundef %47, ptr noundef %48, ptr noundef %49, ptr noundef null)
  store ptr %50, ptr @NIST_P256_Curve, align 8, !tbaa !8
  %51 = icmp ne ptr %50, null
  br i1 %51, label %58, label %52

52:                                               ; preds = %46
  call void @llvm.lifetime.start.p0(i64 1200, ptr %13) #4
  %53 = getelementptr inbounds [1200 x i8], ptr %13, i64 0, i64 0
  %54 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef %53, i64 noundef 1200, ptr noundef @.str.1, ptr noundef @.str.8) #4
  %55 = load ptr, ptr @stdout, align 8, !tbaa !8
  %56 = getelementptr inbounds [1200 x i8], ptr %13, i64 0, i64 0
  %57 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %55, ptr noundef @.str.3, ptr noundef %56) #4
  call void @llvm.lifetime.end.p0(i64 1200, ptr %13) #4
  store i8 1, ptr %1, align 1, !tbaa !5
  br label %58

58:                                               ; preds = %52, %46
  br label %59

59:                                               ; preds = %58, %40
  br label %60

60:                                               ; preds = %59, %31
  br label %61

61:                                               ; preds = %60, %22
  %62 = load i8, ptr %1, align 1, !tbaa !5
  %63 = icmp ne i8 %62, 0
  br i1 %63, label %69, label %64

64:                                               ; preds = %61
  %65 = call signext i16 @utils_convertHexStringToOctetString(ptr noundef @.str.9, i64 noundef 65, ptr noundef @G_string, ptr noundef @G_string_len)
  %66 = icmp ne i16 %65, 0
  br i1 %66, label %67, label %68

67:                                               ; preds = %64
  store i8 1, ptr %1, align 1, !tbaa !5
  br label %68

68:                                               ; preds = %67, %64
  br label %69

69:                                               ; preds = %68, %61
  %70 = load i8, ptr %1, align 1, !tbaa !5
  %71 = icmp ne i8 %70, 0
  br i1 %71, label %145, label %72

72:                                               ; preds = %69
  store i16 130, ptr %9, align 2, !tbaa !10
  br i1 true, label %79, label %73

73:                                               ; preds = %72
  call void @llvm.lifetime.start.p0(i64 1200, ptr %14) #4
  %74 = getelementptr inbounds [1200 x i8], ptr %14, i64 0, i64 0
  %75 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef %74, i64 noundef 1200, ptr noundef @.str.1, ptr noundef @.str.10) #4
  %76 = load ptr, ptr @stdout, align 8, !tbaa !8
  %77 = getelementptr inbounds [1200 x i8], ptr %14, i64 0, i64 0
  %78 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %76, ptr noundef @.str.3, ptr noundef %77) #4
  call void @llvm.lifetime.end.p0(i64 1200, ptr %14) #4
  br label %144

79:                                               ; preds = %72
  %80 = load i16, ptr %9, align 2, !tbaa !10
  %81 = zext i16 %80 to i32
  %82 = sub nsw i32 %81, 2
  %83 = sdiv i32 %82, 2
  %84 = sext i32 %83 to i64
  %85 = call noalias ptr @strndup(ptr noundef getelementptr inbounds (i8, ptr @.str.9, i64 2), i64 noundef %84) #4
  store ptr %85, ptr %7, align 8, !tbaa !8
  %86 = load i16, ptr %9, align 2, !tbaa !10
  %87 = zext i16 %86 to i32
  %88 = sub nsw i32 %87, 2
  %89 = sdiv i32 %88, 2
  %90 = sext i32 %89 to i64
  %91 = getelementptr inbounds i8, ptr getelementptr inbounds (i8, ptr @.str.9, i64 2), i64 %90
  %92 = load i16, ptr %9, align 2, !tbaa !10
  %93 = zext i16 %92 to i32
  %94 = sub nsw i32 %93, 2
  %95 = sdiv i32 %94, 2
  %96 = sext i32 %95 to i64
  %97 = call noalias ptr @strndup(ptr noundef %91, i64 noundef %96) #4
  store ptr %97, ptr %8, align 8, !tbaa !8
  %98 = load ptr, ptr %7, align 8, !tbaa !8
  %99 = call i32 @BN_hex2bn(ptr noundef %5, ptr noundef %98)
  %100 = icmp ne i32 %99, 0
  br i1 %100, label %107, label %101

101:                                              ; preds = %79
  call void @llvm.lifetime.start.p0(i64 1200, ptr %15) #4
  %102 = getelementptr inbounds [1200 x i8], ptr %15, i64 0, i64 0
  %103 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef %102, i64 noundef 1200, ptr noundef @.str.1, ptr noundef @.str.11) #4
  %104 = load ptr, ptr @stdout, align 8, !tbaa !8
  %105 = getelementptr inbounds [1200 x i8], ptr %15, i64 0, i64 0
  %106 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %104, ptr noundef @.str.3, ptr noundef %105) #4
  call void @llvm.lifetime.end.p0(i64 1200, ptr %15) #4
  br label %143

107:                                              ; preds = %79
  %108 = load ptr, ptr %8, align 8, !tbaa !8
  %109 = call i32 @BN_hex2bn(ptr noundef %6, ptr noundef %108)
  %110 = icmp ne i32 %109, 0
  br i1 %110, label %117, label %111

111:                                              ; preds = %107
  call void @llvm.lifetime.start.p0(i64 1200, ptr %16) #4
  %112 = getelementptr inbounds [1200 x i8], ptr %16, i64 0, i64 0
  %113 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef %112, i64 noundef 1200, ptr noundef @.str.1, ptr noundef @.str.12) #4
  %114 = load ptr, ptr @stdout, align 8, !tbaa !8
  %115 = getelementptr inbounds [1200 x i8], ptr %16, i64 0, i64 0
  %116 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %114, ptr noundef @.str.3, ptr noundef %115) #4
  call void @llvm.lifetime.end.p0(i64 1200, ptr %16) #4
  br label %142

117:                                              ; preds = %107
  %118 = load ptr, ptr @NIST_P256_Curve, align 8, !tbaa !8
  %119 = call ptr @EC_POINT_new(ptr noundef %118)
  store ptr %119, ptr @G_point, align 8, !tbaa !8
  %120 = icmp ne ptr %119, null
  br i1 %120, label %127, label %121

121:                                              ; preds = %117
  call void @llvm.lifetime.start.p0(i64 1200, ptr %17) #4
  %122 = getelementptr inbounds [1200 x i8], ptr %17, i64 0, i64 0
  %123 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef %122, i64 noundef 1200, ptr noundef @.str.1, ptr noundef @.str.13) #4
  %124 = load ptr, ptr @stdout, align 8, !tbaa !8
  %125 = getelementptr inbounds [1200 x i8], ptr %17, i64 0, i64 0
  %126 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %124, ptr noundef @.str.3, ptr noundef %125) #4
  call void @llvm.lifetime.end.p0(i64 1200, ptr %17) #4
  br label %141

127:                                              ; preds = %117
  %128 = load ptr, ptr @NIST_P256_Curve, align 8, !tbaa !8
  %129 = load ptr, ptr @G_point, align 8, !tbaa !8
  %130 = load ptr, ptr %5, align 8, !tbaa !8
  %131 = load ptr, ptr %6, align 8, !tbaa !8
  %132 = call i32 @EC_POINT_set_affine_coordinates(ptr noundef %128, ptr noundef %129, ptr noundef %130, ptr noundef %131, ptr noundef null)
  %133 = icmp ne i32 %132, 0
  br i1 %133, label %140, label %134

134:                                              ; preds = %127
  call void @llvm.lifetime.start.p0(i64 1200, ptr %18) #4
  %135 = getelementptr inbounds [1200 x i8], ptr %18, i64 0, i64 0
  %136 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef %135, i64 noundef 1200, ptr noundef @.str.1, ptr noundef @.str.14) #4
  %137 = load ptr, ptr @stdout, align 8, !tbaa !8
  %138 = getelementptr inbounds [1200 x i8], ptr %18, i64 0, i64 0
  %139 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %137, ptr noundef @.str.3, ptr noundef %138) #4
  call void @llvm.lifetime.end.p0(i64 1200, ptr %18) #4
  br label %140

140:                                              ; preds = %134, %127
  br label %141

141:                                              ; preds = %140, %121
  br label %142

142:                                              ; preds = %141, %111
  br label %143

143:                                              ; preds = %142, %101
  br label %144

144:                                              ; preds = %143, %73
  br label %145

145:                                              ; preds = %144, %69
  %146 = load i8, ptr %1, align 1, !tbaa !5
  %147 = icmp ne i8 %146, 0
  br i1 %147, label %159, label %148

148:                                              ; preds = %145
  %149 = call i32 @BN_hex2bn(ptr noundef @q_bn, ptr noundef @.str.15)
  %150 = icmp ne i32 %149, 0
  br i1 %150, label %157, label %151

151:                                              ; preds = %148
  call void @llvm.lifetime.start.p0(i64 1200, ptr %19) #4
  %152 = getelementptr inbounds [1200 x i8], ptr %19, i64 0, i64 0
  %153 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef %152, i64 noundef 1200, ptr noundef @.str.1, ptr noundef @.str.16) #4
  %154 = load ptr, ptr @stdout, align 8, !tbaa !8
  %155 = getelementptr inbounds [1200 x i8], ptr %19, i64 0, i64 0
  %156 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %154, ptr noundef @.str.3, ptr noundef %155) #4
  call void @llvm.lifetime.end.p0(i64 1200, ptr %19) #4
  br label %158

157:                                              ; preds = %148
  store i8 0, ptr %2, align 1, !tbaa !5
  br label %158

158:                                              ; preds = %157, %151
  br label %159

159:                                              ; preds = %158, %145
  %160 = load ptr, ptr %3, align 8, !tbaa !8
  call void @BN_clear_free(ptr noundef %160)
  %161 = load ptr, ptr %4, align 8, !tbaa !8
  call void @BN_clear_free(ptr noundef %161)
  %162 = load ptr, ptr %5, align 8, !tbaa !8
  call void @BN_clear_free(ptr noundef %162)
  %163 = load ptr, ptr %6, align 8, !tbaa !8
  call void @BN_clear_free(ptr noundef %163)
  %164 = load ptr, ptr %7, align 8, !tbaa !8
  %165 = icmp ne ptr null, %164
  br i1 %165, label %166, label %168

166:                                              ; preds = %159
  %167 = load ptr, ptr %7, align 8, !tbaa !8
  call void @free(ptr noundef %167) #4
  br label %168

168:                                              ; preds = %166, %159
  %169 = load ptr, ptr %8, align 8, !tbaa !8
  %170 = icmp ne ptr null, %169
  br i1 %170, label %171, label %173

171:                                              ; preds = %168
  %172 = load ptr, ptr %8, align 8, !tbaa !8
  call void @free(ptr noundef %172) #4
  br label %173

173:                                              ; preds = %171, %168
  %174 = load i8, ptr %2, align 1, !tbaa !5
  %175 = zext i8 %174 to i16
  call void @llvm.lifetime.end.p0(i64 2, ptr %9) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %2) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %1) #4
  ret i16 %175
}

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

declare i32 @BN_hex2bn(ptr noundef, ptr noundef) #2

; Function Attrs: nounwind
declare i32 @snprintf(ptr noundef, i64 noundef, ptr noundef, ...) #3

; Function Attrs: nounwind
declare i32 @fprintf(ptr noundef, ptr noundef, ...) #3

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

declare i32 @BN_dec2bn(ptr noundef, ptr noundef) #2

declare ptr @EC_GROUP_new_curve_GFp(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #2

declare signext i16 @utils_convertHexStringToOctetString(ptr noundef, i64 noundef, ptr noundef, ptr noundef) #2

; Function Attrs: nounwind
declare noalias ptr @strndup(ptr noundef, i64 noundef) #3

declare ptr @EC_POINT_new(ptr noundef) #2

declare i32 @EC_POINT_set_affine_coordinates(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #2

declare void @BN_clear_free(ptr noundef) #2

; Function Attrs: nounwind
declare void @free(ptr noundef) #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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { 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 #4 = { nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"omnipotent char", !7, i64 0}
!7 = !{!"Simple C/C++ TBAA"}
!8 = !{!9, !9, i64 0}
!9 = !{!"any pointer", !6, i64 0}
!10 = !{!11, !11, i64 0}
!11 = !{!"short", !6, 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"

@p_bn = external hidden global ptr, align 8
@.str = external hidden unnamed_addr constant [65 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [49 x i8], align 1
@stdout = external local_unnamed_addr global ptr, align 8
@.str.3 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [49 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [65 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [49 x i8], align 1
@NIST_P256_Curve = external hidden local_unnamed_addr global ptr, align 8
@.str.8 = external hidden unnamed_addr constant [56 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [131 x i8], align 1
@G_string = external hidden global ptr, align 8
@G_string_len = external hidden global i64, align 8
@.str.11 = external hidden unnamed_addr constant [44 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [44 x i8], align 1
@G_point = external hidden local_unnamed_addr global ptr, align 8
@.str.13 = external hidden unnamed_addr constant [50 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [55 x i8], align 1
@q_bn = external hidden global ptr, align 8
@.str.15 = external hidden unnamed_addr constant [65 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [45 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local signext range(i16 0, 2) i16 @community_initStorage() local_unnamed_addr #0 {
  %1 = alloca ptr, align 8
  %2 = alloca ptr, align 8
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca [1200 x i8], align 16
  %6 = alloca [1200 x i8], align 16
  %7 = alloca [1200 x i8], align 16
  %8 = alloca [1200 x i8], align 16
  %9 = alloca [1200 x i8], align 16
  %10 = alloca [1200 x i8], align 16
  %11 = alloca [1200 x i8], align 16
  %12 = alloca [1200 x i8], align 16
  %13 = alloca [1200 x i8], align 16
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %1) #6
  store ptr null, ptr %1, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #6
  store ptr null, ptr %2, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #6
  store ptr null, ptr %3, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #6
  store ptr null, ptr %4, align 8, !tbaa !5
  %14 = tail call i32 @BN_hex2bn(ptr noundef nonnull @p_bn, ptr noundef nonnull @.str) #6
  %.not = icmp eq i32 %14, 0
  br i1 %.not, label %15, label %19

15:                                               ; preds = %0
  call void @llvm.lifetime.start.p0(i64 1200, ptr nonnull %5) #6
  %16 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull dereferenceable(1) %5, i64 noundef 1200, ptr noundef nonnull @.str.1, ptr noundef nonnull @.str.2) #6
  %17 = load ptr, ptr @stdout, align 8, !tbaa !5
  %18 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %17, ptr noundef nonnull @.str.3, ptr noundef nonnull %5) #6
  call void @llvm.lifetime.end.p0(i64 1200, ptr nonnull %5) #6
  br label %.thread

19:                                               ; preds = %0
  %20 = call i32 @BN_dec2bn(ptr noundef nonnull %1, ptr noundef nonnull @.str.4) #6
  %.not16 = icmp eq i32 %20, 0
  br i1 %.not16, label %21, label %25

21:                                               ; preds = %19
  call void @llvm.lifetime.start.p0(i64 1200, ptr nonnull %6) #6
  %22 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull dereferenceable(1) %6, i64 noundef 1200, ptr noundef nonnull @.str.1, ptr noundef nonnull @.str.5) #6
  %23 = load ptr, ptr @stdout, align 8, !tbaa !5
  %24 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %23, ptr noundef nonnull @.str.3, ptr noundef nonnull %6) #6
  call void @llvm.lifetime.end.p0(i64 1200, ptr nonnull %6) #6
  br label %.thread

25:                                               ; preds = %19
  %26 = call i32 @BN_hex2bn(ptr noundef nonnull %2, ptr noundef nonnull @.str.6) #6
  %.not17 = icmp eq i32 %26, 0
  br i1 %.not17, label %27, label %31

27:                                               ; preds = %25
  call void @llvm.lifetime.start.p0(i64 1200, ptr nonnull %7) #6
  %28 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull dereferenceable(1) %7, i64 noundef 1200, ptr noundef nonnull @.str.1, ptr noundef nonnull @.str.7) #6
  %29 = load ptr, ptr @stdout, align 8, !tbaa !5
  %30 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %29, ptr noundef nonnull @.str.3, ptr noundef nonnull %7) #6
  call void @llvm.lifetime.end.p0(i64 1200, ptr nonnull %7) #6
  br label %.thread

31:                                               ; preds = %25
  %32 = load ptr, ptr @p_bn, align 8, !tbaa !5
  %33 = load ptr, ptr %1, align 8, !tbaa !5
  %34 = load ptr, ptr %2, align 8, !tbaa !5
  %35 = call ptr @EC_GROUP_new_curve_GFp(ptr noundef %32, ptr noundef %33, ptr noundef %34, ptr noundef null) #6
  store ptr %35, ptr @NIST_P256_Curve, align 8, !tbaa !5
  %.not18 = icmp eq ptr %35, null
  br i1 %.not18, label %36, label %40

36:                                               ; preds = %31
  call void @llvm.lifetime.start.p0(i64 1200, ptr nonnull %8) #6
  %37 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull dereferenceable(1) %8, i64 noundef 1200, ptr noundef nonnull @.str.1, ptr noundef nonnull @.str.8) #6
  %38 = load ptr, ptr @stdout, align 8, !tbaa !5
  %39 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %38, ptr noundef nonnull @.str.3, ptr noundef nonnull %8) #6
  call void @llvm.lifetime.end.p0(i64 1200, ptr nonnull %8) #6
  br label %.thread

40:                                               ; preds = %31
  %41 = call signext i16 @utils_convertHexStringToOctetString(ptr noundef nonnull @.str.9, i64 noundef 65, ptr noundef nonnull @G_string, ptr noundef nonnull @G_string_len) #6
  %.not20 = icmp eq i16 %41, 0
  br i1 %.not20, label %42, label %.thread

42:                                               ; preds = %40
  %43 = call noalias ptr @strndup(ptr noundef nonnull getelementptr inbounds (i8, ptr @.str.9, i64 2), i64 noundef 64) #6
  %44 = call noalias ptr @strndup(ptr noundef nonnull getelementptr inbounds (i8, ptr @.str.9, i64 66), i64 noundef 64) #6
  %45 = call i32 @BN_hex2bn(ptr noundef nonnull %3, ptr noundef %43) #6
  %.not22 = icmp eq i32 %45, 0
  br i1 %.not22, label %46, label %50

46:                                               ; preds = %42
  call void @llvm.lifetime.start.p0(i64 1200, ptr nonnull %9) #6
  %47 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull dereferenceable(1) %9, i64 noundef 1200, ptr noundef nonnull @.str.1, ptr noundef nonnull @.str.11) #6
  %48 = load ptr, ptr @stdout, align 8, !tbaa !5
  %49 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %48, ptr noundef nonnull @.str.3, ptr noundef nonnull %9) #6
  call void @llvm.lifetime.end.p0(i64 1200, ptr nonnull %9) #6
  br label %72

50:                                               ; preds = %42
  %51 = call i32 @BN_hex2bn(ptr noundef nonnull %4, ptr noundef %44) #6
  %.not23 = icmp eq i32 %51, 0
  br i1 %.not23, label %52, label %56

52:                                               ; preds = %50
  call void @llvm.lifetime.start.p0(i64 1200, ptr nonnull %10) #6
  %53 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull dereferenceable(1) %10, i64 noundef 1200, ptr noundef nonnull @.str.1, ptr noundef nonnull @.str.12) #6
  %54 = load ptr, ptr @stdout, align 8, !tbaa !5
  %55 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %54, ptr noundef nonnull @.str.3, ptr noundef nonnull %10) #6
  call void @llvm.lifetime.end.p0(i64 1200, ptr nonnull %10) #6
  br label %72

56:                                               ; preds = %50
  %57 = load ptr, ptr @NIST_P256_Curve, align 8, !tbaa !5
  %58 = call ptr @EC_POINT_new(ptr noundef %57) #6
  store ptr %58, ptr @G_point, align 8, !tbaa !5
  %.not24 = icmp eq ptr %58, null
  br i1 %.not24, label %59, label %63

59:                                               ; preds = %56
  call void @llvm.lifetime.start.p0(i64 1200, ptr nonnull %11) #6
  %60 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull dereferenceable(1) %11, i64 noundef 1200, ptr noundef nonnull @.str.1, ptr noundef nonnull @.str.13) #6
  %61 = load ptr, ptr @stdout, align 8, !tbaa !5
  %62 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %61, ptr noundef nonnull @.str.3, ptr noundef nonnull %11) #6
  call void @llvm.lifetime.end.p0(i64 1200, ptr nonnull %11) #6
  br label %72

63:                                               ; preds = %56
  %64 = load ptr, ptr @NIST_P256_Curve, align 8, !tbaa !5
  %65 = load ptr, ptr %3, align 8, !tbaa !5
  %66 = load ptr, ptr %4, align 8, !tbaa !5
  %67 = call i32 @EC_POINT_set_affine_coordinates(ptr noundef %64, ptr noundef nonnull %58, ptr noundef %65, ptr noundef %66, ptr noundef null) #6
  %.not25 = icmp eq i32 %67, 0
  br i1 %.not25, label %68, label %72

68:                                               ; preds = %63
  call void @llvm.lifetime.start.p0(i64 1200, ptr nonnull %12) #6
  %69 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull dereferenceable(1) %12, i64 noundef 1200, ptr noundef nonnull @.str.1, ptr noundef nonnull @.str.14) #6
  %70 = load ptr, ptr @stdout, align 8, !tbaa !5
  %71 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %70, ptr noundef nonnull @.str.3, ptr noundef nonnull %12) #6
  call void @llvm.lifetime.end.p0(i64 1200, ptr nonnull %12) #6
  br label %72

72:                                               ; preds = %63, %68, %59, %52, %46
  %73 = call i32 @BN_hex2bn(ptr noundef nonnull @q_bn, ptr noundef nonnull @.str.15) #6
  %.not26 = icmp eq i32 %73, 0
  br i1 %.not26, label %74, label %.thread

74:                                               ; preds = %72
  call void @llvm.lifetime.start.p0(i64 1200, ptr nonnull %13) #6
  %75 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull dereferenceable(1) %13, i64 noundef 1200, ptr noundef nonnull @.str.1, ptr noundef nonnull @.str.16) #6
  %76 = load ptr, ptr @stdout, align 8, !tbaa !5
  %77 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %76, ptr noundef nonnull @.str.3, ptr noundef nonnull %13) #6
  call void @llvm.lifetime.end.p0(i64 1200, ptr nonnull %13) #6
  br label %.thread

.thread:                                          ; preds = %15, %27, %36, %21, %40, %72, %74
  %.038 = phi ptr [ %44, %74 ], [ %44, %72 ], [ null, %40 ], [ null, %21 ], [ null, %36 ], [ null, %27 ], [ null, %15 ]
  %.01236 = phi ptr [ %43, %74 ], [ %43, %72 ], [ null, %40 ], [ null, %21 ], [ null, %36 ], [ null, %27 ], [ null, %15 ]
  %.013 = phi i16 [ 1, %74 ], [ 0, %72 ], [ 1, %40 ], [ 1, %21 ], [ 1, %36 ], [ 1, %27 ], [ 1, %15 ]
  %78 = load ptr, ptr %1, align 8, !tbaa !5
  call void @BN_clear_free(ptr noundef %78) #6
  %79 = load ptr, ptr %2, align 8, !tbaa !5
  call void @BN_clear_free(ptr noundef %79) #6
  %80 = load ptr, ptr %3, align 8, !tbaa !5
  call void @BN_clear_free(ptr noundef %80) #6
  %81 = load ptr, ptr %4, align 8, !tbaa !5
  call void @BN_clear_free(ptr noundef %81) #6
  %.not27 = icmp eq ptr %.01236, null
  br i1 %.not27, label %83, label %82

82:                                               ; preds = %.thread
  call void @free(ptr noundef nonnull %.01236) #6
  br label %83

83:                                               ; preds = %82, %.thread
  %.not28 = icmp eq ptr %.038, null
  br i1 %.not28, label %85, label %84

84:                                               ; preds = %83
  call void @free(ptr noundef nonnull %.038) #6
  br label %85

85:                                               ; preds = %84, %83
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %1) #6
  ret i16 %.013
}

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

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

; Function Attrs: nofree nounwind
declare noundef i32 @snprintf(ptr noalias nocapture noundef writeonly, i64 noundef, ptr nocapture noundef readonly, ...) local_unnamed_addr #3

; Function Attrs: nofree nounwind
declare noundef i32 @fprintf(ptr nocapture noundef, ptr nocapture noundef readonly, ...) local_unnamed_addr #3

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

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

declare ptr @EC_GROUP_new_curve_GFp(ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

declare signext i16 @utils_convertHexStringToOctetString(ptr noundef, i64 noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

; Function Attrs: mustprogress nofree nounwind willreturn memory(argmem: readwrite, inaccessiblemem: readwrite)
declare noalias ptr @strndup(ptr nocapture noundef readonly, i64 noundef) local_unnamed_addr #4

declare ptr @EC_POINT_new(ptr noundef) local_unnamed_addr #2

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

declare void @BN_clear_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 #5

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 nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { nofree 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 #4 = { mustprogress nofree nounwind willreturn 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 #5 = { 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 #6 = { 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"}


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