; LLVM IR from jim-b/ECCSI-SAKKE :: es-demo-2 (main)

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

@.str.2 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [63 x i8], align 1
@stdout = external global ptr, align 8
@.str.6 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [46 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [46 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [45 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [61 x i8], align 1
@__func__.main = external hidden unnamed_addr constant [5 x i8], align 1
@.str.26 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.27 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.28 = external hidden unnamed_addr constant [46 x i8], align 1
@.str.29 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.30 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.31 = external hidden unnamed_addr constant [46 x i8], align 1
@.str.32 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.33 = external hidden unnamed_addr constant [68 x i8], align 1
@.str.34 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.35 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.36 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.37 = external hidden unnamed_addr constant [39 x i8], align 1
@.str.38 = external hidden unnamed_addr constant [41 x i8], align 1
@.str.39 = external hidden unnamed_addr constant [46 x i8], align 1
@.str.40 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.41 = external hidden unnamed_addr constant [37 x i8], align 1

; Function Attrs: nounwind uwtable
declare dso_local signext i16 @main_addExampleCommunity() #0

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

; Function Attrs: nounwind
declare noalias ptr @strdup(ptr noundef) #2

; Function Attrs: nounwind willreturn memory(read)
declare i64 @strlen(ptr noundef) #3

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

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

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

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

; Function Attrs: nounwind uwtable
declare dso_local signext i16 @main_addExampleUserCharlie() #0

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

; Function Attrs: nounwind
declare ptr @strcpy(ptr noundef, ptr noundef) #2

; Function Attrs: nounwind
declare ptr @strcat(ptr noundef, ptr noundef) #2

; Function Attrs: nounwind uwtable
declare dso_local signext i16 @main_addExampleUserDylan() #0

; Function Attrs: nounwind uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca i64, align 8
  %8 = alloca ptr, align 8
  %9 = alloca i64, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca i64, align 8
  %13 = alloca ptr, align 8
  %14 = alloca i64, align 8
  %15 = alloca ptr, align 8
  %16 = alloca ptr, align 8
  %17 = alloca i64, align 8
  %18 = alloca i32, align 4
  %19 = alloca ptr, align 8
  %20 = alloca ptr, align 8
  %21 = alloca [1200 x i8], align 16
  %22 = alloca [1200 x i8], align 16
  %23 = alloca [1200 x i8], align 16
  %24 = alloca [1200 x i8], align 16
  %25 = alloca [1200 x i8], align 16
  %26 = alloca [1200 x i8], align 16
  %27 = alloca [1200 x i8], align 16
  %28 = alloca [1200 x i8], align 16
  %29 = alloca [1200 x i8], align 16
  %30 = alloca [1200 x i8], align 16
  %31 = alloca [1200 x i8], align 16
  %32 = alloca [1200 x i8], align 16
  %33 = alloca [1200 x i8], align 16
  %34 = alloca [1200 x i8], align 16
  %35 = alloca [1200 x i8], align 16
  %36 = alloca [1200 x i8], align 16
  %37 = alloca [1200 x i8], align 16
  %38 = alloca [1200 x i8], align 16
  %39 = alloca [1200 x i8], align 16
  %40 = alloca [1200 x i8], align 16
  %41 = alloca [1200 x i8], align 16
  %42 = alloca [1200 x i8], align 16
  %43 = alloca [1200 x i8], align 16
  store i32 0, ptr %3, align 4
  store i32 %0, ptr %4, align 4, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #7
  store ptr null, ptr %6, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #7
  store i64 0, ptr %7, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #7
  store ptr null, ptr %8, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #7
  store i64 0, ptr %9, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #7
  store ptr null, ptr %10, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #7
  store ptr null, ptr %11, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #7
  store i64 0, ptr %12, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #7
  store ptr null, ptr %13, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #7
  store i64 0, ptr %14, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #7
  store ptr null, ptr %15, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #7
  store ptr null, ptr %16, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #7
  store i64 0, ptr %17, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #7
  store i32 0, ptr %18, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #7
  store ptr null, ptr %19, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #7
  store ptr null, ptr %20, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 1200, ptr %21) #7
  %44 = getelementptr inbounds [1200 x i8], ptr %21, i64 0, i64 0
  %45 = call ptr @softwareVersion()
  %46 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef %44, i64 noundef 1200, ptr noundef @.str.17, ptr noundef %45) #7
  %47 = load ptr, ptr @stdout, align 8, !tbaa !9
  %48 = getelementptr inbounds [1200 x i8], ptr %21, i64 0, i64 0
  %49 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %47, ptr noundef @.str.18, ptr noundef %48) #7
  call void @llvm.lifetime.end.p0(i64 1200, ptr %21) #7
  %50 = call noalias ptr @calloc(i64 noundef 1, i64 noundef 255) #8
  store ptr %50, ptr %6, align 8, !tbaa !9
  %51 = load ptr, ptr %6, align 8, !tbaa !9
  %52 = call ptr @strcpy(ptr noundef %51, ptr noundef @.str.7) #7
  %53 = load ptr, ptr %6, align 8, !tbaa !9
  %54 = load ptr, ptr %6, align 8, !tbaa !9
  %55 = call i64 @strlen(ptr noundef %54) #9
  %56 = getelementptr inbounds i8, ptr %53, i64 %55
  %57 = getelementptr inbounds i8, ptr %56, i64 1
  %58 = call ptr @strcat(ptr noundef %57, ptr noundef @.str.8) #7
  %59 = load ptr, ptr %6, align 8, !tbaa !9
  %60 = call i64 @strlen(ptr noundef %59) #9
  %61 = load ptr, ptr %6, align 8, !tbaa !9
  %62 = load ptr, ptr %6, align 8, !tbaa !9
  %63 = call i64 @strlen(ptr noundef %62) #9
  %64 = add i64 %63, 1
  %65 = getelementptr inbounds i8, ptr %61, i64 %64
  %66 = call i64 @strlen(ptr noundef %65) #9
  %67 = add i64 %60, %66
  %68 = add i64 %67, 2
  store i64 %68, ptr %7, align 8, !tbaa !11
  %69 = call noalias ptr @calloc(i64 noundef 1, i64 noundef 255) #8
  store ptr %69, ptr %8, align 8, !tbaa !9
  %70 = load ptr, ptr %8, align 8, !tbaa !9
  %71 = call ptr @strcpy(ptr noundef %70, ptr noundef @.str.7) #7
  %72 = load ptr, ptr %8, align 8, !tbaa !9
  %73 = load ptr, ptr %8, align 8, !tbaa !9
  %74 = call i64 @strlen(ptr noundef %73) #9
  %75 = getelementptr inbounds i8, ptr %72, i64 %74
  %76 = getelementptr inbounds i8, ptr %75, i64 1
  %77 = call ptr @strcat(ptr noundef %76, ptr noundef @.str.13) #7
  %78 = load ptr, ptr %8, align 8, !tbaa !9
  %79 = call i64 @strlen(ptr noundef %78) #9
  %80 = load ptr, ptr %8, align 8, !tbaa !9
  %81 = load ptr, ptr %8, align 8, !tbaa !9
  %82 = call i64 @strlen(ptr noundef %81) #9
  %83 = add i64 %82, 1
  %84 = getelementptr inbounds i8, ptr %80, i64 %83
  %85 = call i64 @strlen(ptr noundef %84) #9
  %86 = add i64 %79, %85
  %87 = add i64 %86, 2
  store i64 %87, ptr %9, align 8, !tbaa !11
  %88 = call noalias ptr @strdup(ptr noundef @.str.2) #7
  store ptr %88, ptr %10, align 8, !tbaa !9
  %89 = call signext i16 @main_initialiseMSInCorrectOrder()
  %90 = call signext i16 @main_addExampleCommunity()
  %91 = sext i16 %90 to i32
  %92 = icmp ne i32 0, %91
  br i1 %92, label %93, label %94

93:                                               ; preds = %2
  call void @exit(i32 noundef 1) #10
  unreachable

94:                                               ; preds = %2
  %95 = call signext i16 @main_addExampleUserCharlie()
  %96 = sext i16 %95 to i32
  %97 = icmp ne i32 0, %96
  br i1 %97, label %98, label %99

98:                                               ; preds = %94
  call void @exit(i32 noundef 1) #10
  unreachable

99:                                               ; preds = %94
  %100 = call signext i16 @main_addExampleUserDylan()
  %101 = sext i16 %100 to i32
  %102 = icmp ne i32 0, %101
  br i1 %102, label %103, label %104

103:                                              ; preds = %99
  call void @exit(i32 noundef 1) #10
  unreachable

104:                                              ; preds = %99
  store i32 0, ptr %18, align 4, !tbaa !5
  br label %105

105:                                              ; preds = %313, %104
  %106 = load i32, ptr %18, align 4, !tbaa !5
  %107 = icmp ult i32 %106, 1
  br i1 %107, label %108, label %316

108:                                              ; preds = %105
  call void @llvm.lifetime.start.p0(i64 1200, ptr %22) #7
  %109 = getelementptr inbounds [1200 x i8], ptr %22, i64 0, i64 0
  %110 = load i32, ptr %18, align 4, !tbaa !5
  %111 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef %109, i64 noundef 1200, ptr noundef @.str.19, ptr noundef @.str.20, i32 noundef %110) #7
  %112 = load ptr, ptr @stdout, align 8, !tbaa !9
  %113 = getelementptr inbounds [1200 x i8], ptr %22, i64 0, i64 0
  %114 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %112, ptr noundef @.str.18, ptr noundef %113) #7
  call void @llvm.lifetime.end.p0(i64 1200, ptr %22) #7
  call void @llvm.lifetime.start.p0(i64 1200, ptr %23) #7
  %115 = getelementptr inbounds [1200 x i8], ptr %23, i64 0, i64 0
  %116 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef %115, i64 noundef 1200, ptr noundef @.str.21, ptr noundef @.str.20) #7
  %117 = load ptr, ptr @stdout, align 8, !tbaa !9
  %118 = getelementptr inbounds [1200 x i8], ptr %23, i64 0, i64 0
  %119 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %117, ptr noundef @.str.18, ptr noundef %118) #7
  call void @llvm.lifetime.end.p0(i64 1200, ptr %23) #7
  call void @llvm.lifetime.start.p0(i64 1200, ptr %24) #7
  %120 = getelementptr inbounds [1200 x i8], ptr %24, i64 0, i64 0
  %121 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef %120, i64 noundef 1200, ptr noundef @.str.22, ptr noundef @.str.20) #7
  %122 = load ptr, ptr @stdout, align 8, !tbaa !9
  %123 = getelementptr inbounds [1200 x i8], ptr %24, i64 0, i64 0
  %124 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %122, ptr noundef @.str.18, ptr noundef %123) #7
  call void @llvm.lifetime.end.p0(i64 1200, ptr %24) #7
  call void @llvm.lifetime.start.p0(i64 1200, ptr %25) #7
  %125 = getelementptr inbounds [1200 x i8], ptr %25, i64 0, i64 0
  %126 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef %125, i64 noundef 1200, ptr noundef @.str.21, ptr noundef @.str.20) #7
  %127 = load ptr, ptr @stdout, align 8, !tbaa !9
  %128 = getelementptr inbounds [1200 x i8], ptr %25, i64 0, i64 0
  %129 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %127, ptr noundef @.str.18, ptr noundef %128) #7
  call void @llvm.lifetime.end.p0(i64 1200, ptr %25) #7
  %130 = call signext i16 @ES_PRNG(ptr noundef %15, i8 noundef zeroext 16)
  %131 = load ptr, ptr %15, align 8, !tbaa !9
  call void @utils_printFormattedOctetString(i8 noundef zeroext 3, ptr noundef @.str.20, ptr noundef @.str.23, i8 noundef zeroext 8, ptr noundef %131, i64 noundef 16)
  call void @llvm.lifetime.start.p0(i64 1200, ptr %26) #7
  %132 = getelementptr inbounds [1200 x i8], ptr %26, i64 0, i64 0
  %133 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef %132, i64 noundef 1200, ptr noundef @.str.24, ptr noundef @.str.20) #7
  %134 = load ptr, ptr @stdout, align 8, !tbaa !9
  %135 = getelementptr inbounds [1200 x i8], ptr %26, i64 0, i64 0
  %136 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %134, ptr noundef @.str.18, ptr noundef %135) #7
  call void @llvm.lifetime.end.p0(i64 1200, ptr %26) #7
  %137 = load ptr, ptr %8, align 8, !tbaa !9
  %138 = load i64, ptr %9, align 8, !tbaa !11
  %139 = load ptr, ptr %10, align 8, !tbaa !9
  %140 = load ptr, ptr %15, align 8, !tbaa !9
  %141 = call zeroext i8 @sakke_generateSakkeEncapsulatedData(ptr noundef %13, ptr noundef %14, ptr noundef %137, i64 noundef %138, ptr noundef %139, ptr noundef %140, i64 noundef 16)
  %142 = icmp ne i8 %141, 0
  br i1 %142, label %143, label %149

143:                                              ; preds = %108
  call void @llvm.lifetime.start.p0(i64 1200, ptr %27) #7
  %144 = getelementptr inbounds [1200 x i8], ptr %27, i64 0, i64 0
  %145 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef %144, i64 noundef 1200, ptr noundef @.str.25, ptr noundef @.str.5, ptr noundef @__func__.main, i32 noundef 605) #7
  %146 = load ptr, ptr @stdout, align 8, !tbaa !9
  %147 = getelementptr inbounds [1200 x i8], ptr %27, i64 0, i64 0
  %148 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %146, ptr noundef @.str.6, ptr noundef %147) #7
  call void @llvm.lifetime.end.p0(i64 1200, ptr %27) #7
  call void @exit(i32 noundef 1) #10
  unreachable

149:                                              ; preds = %108
  br label %150

150:                                              ; preds = %167, %149
  %151 = call signext i16 @ES_PRNG(ptr noundef %19, i8 noundef zeroext 32)
  %152 = load ptr, ptr %19, align 8, !tbaa !9
  %153 = call ptr @BN_bin2bn(ptr noundef %152, i32 noundef 32, ptr noundef null)
  store ptr %153, ptr %20, align 8, !tbaa !9
  %154 = load ptr, ptr %20, align 8, !tbaa !9
  %155 = call ptr @BN_value_one()
  %156 = call i32 @BN_cmp(ptr noundef %154, ptr noundef %155)
  %157 = icmp sge i32 %156, 0
  br i1 %157, label %158, label %165

158:                                              ; preds = %150
  %159 = load ptr, ptr %20, align 8, !tbaa !9
  %160 = call ptr @community_getq_bn()
  %161 = call i32 @BN_cmp(ptr noundef %159, ptr noundef %160)
  %162 = icmp eq i32 %161, -1
  br i1 %162, label %163, label %165

163:                                              ; preds = %158
  %164 = load ptr, ptr %20, align 8, !tbaa !9
  call void @BN_clear_free(ptr noundef %164)
  store ptr null, ptr %20, align 8, !tbaa !9
  br label %168

165:                                              ; preds = %158, %150
  %166 = load ptr, ptr %20, align 8, !tbaa !9
  call void @BN_clear_free(ptr noundef %166)
  store ptr null, ptr %20, align 8, !tbaa !9
  br label %167

167:                                              ; preds = %165
  br i1 true, label %150, label %168

168:                                              ; preds = %167, %163
  %169 = load ptr, ptr %16, align 8, !tbaa !9
  %170 = icmp ne ptr null, %169
  br i1 %170, label %171, label %173

171:                                              ; preds = %168
  %172 = load ptr, ptr %16, align 8, !tbaa !9
  call void @free(ptr noundef %172) #7
  store ptr null, ptr %16, align 8, !tbaa !9
  store i64 0, ptr %17, align 8, !tbaa !11
  br label %173

173:                                              ; preds = %171, %168
  call void @llvm.lifetime.start.p0(i64 1200, ptr %28) #7
  %174 = getelementptr inbounds [1200 x i8], ptr %28, i64 0, i64 0
  %175 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef %174, i64 noundef 1200, ptr noundef @.str.26, ptr noundef @.str.20) #7
  %176 = load ptr, ptr @stdout, align 8, !tbaa !9
  %177 = getelementptr inbounds [1200 x i8], ptr %28, i64 0, i64 0
  %178 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %176, ptr noundef @.str.18, ptr noundef %177) #7
  call void @llvm.lifetime.end.p0(i64 1200, ptr %28) #7
  %179 = load ptr, ptr %13, align 8, !tbaa !9
  %180 = load i64, ptr %14, align 8, !tbaa !11
  %181 = load ptr, ptr %6, align 8, !tbaa !9
  %182 = load i64, ptr %7, align 8, !tbaa !11
  %183 = load ptr, ptr %10, align 8, !tbaa !9
  %184 = load ptr, ptr %19, align 8, !tbaa !9
  %185 = call zeroext i8 @eccsi_sign(ptr noundef %179, i64 noundef %180, ptr noundef %181, i64 noundef %182, ptr noundef %183, ptr noundef %184, i64 noundef 32, ptr noundef %16, ptr noundef %17)
  %186 = icmp ne i8 %185, 0
  br i1 %186, label %187, label %193

187:                                              ; preds = %173
  call void @llvm.lifetime.start.p0(i64 1200, ptr %29) #7
  %188 = getelementptr inbounds [1200 x i8], ptr %29, i64 0, i64 0
  %189 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef %188, i64 noundef 1200, ptr noundef @.str.27, ptr noundef @.str.5, ptr noundef @__func__.main, i32 noundef 646) #7
  %190 = load ptr, ptr @stdout, align 8, !tbaa !9
  %191 = getelementptr inbounds [1200 x i8], ptr %29, i64 0, i64 0
  %192 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %190, ptr noundef @.str.6, ptr noundef %191) #7
  call void @llvm.lifetime.end.p0(i64 1200, ptr %29) #7
  call void @exit(i32 noundef 1) #10
  unreachable

193:                                              ; preds = %173
  call void @llvm.lifetime.start.p0(i64 1200, ptr %30) #7
  %194 = getelementptr inbounds [1200 x i8], ptr %30, i64 0, i64 0
  %195 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef %194, i64 noundef 1200, ptr noundef @.str.21, ptr noundef @.str.20) #7
  %196 = load ptr, ptr @stdout, align 8, !tbaa !9
  %197 = getelementptr inbounds [1200 x i8], ptr %30, i64 0, i64 0
  %198 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %196, ptr noundef @.str.18, ptr noundef %197) #7
  call void @llvm.lifetime.end.p0(i64 1200, ptr %30) #7
  call void @llvm.lifetime.start.p0(i64 1200, ptr %31) #7
  %199 = getelementptr inbounds [1200 x i8], ptr %31, i64 0, i64 0
  %200 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef %199, i64 noundef 1200, ptr noundef @.str.28, ptr noundef @.str.20) #7
  %201 = load ptr, ptr @stdout, align 8, !tbaa !9
  %202 = getelementptr inbounds [1200 x i8], ptr %31, i64 0, i64 0
  %203 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %201, ptr noundef @.str.18, ptr noundef %202) #7
  call void @llvm.lifetime.end.p0(i64 1200, ptr %31) #7
  call void @llvm.lifetime.start.p0(i64 1200, ptr %32) #7
  %204 = getelementptr inbounds [1200 x i8], ptr %32, i64 0, i64 0
  %205 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef %204, i64 noundef 1200, ptr noundef @.str.21, ptr noundef @.str.20) #7
  %206 = load ptr, ptr @stdout, align 8, !tbaa !9
  %207 = getelementptr inbounds [1200 x i8], ptr %32, i64 0, i64 0
  %208 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %206, ptr noundef @.str.18, ptr noundef %207) #7
  call void @llvm.lifetime.end.p0(i64 1200, ptr %32) #7
  %209 = load ptr, ptr %16, align 8, !tbaa !9
  %210 = load i64, ptr %17, align 8, !tbaa !11
  call void @utils_printFormattedOctetString(i8 noundef zeroext 3, ptr noundef @.str.20, ptr noundef @.str.29, i8 noundef zeroext 8, ptr noundef %209, i64 noundef %210)
  %211 = load ptr, ptr %13, align 8, !tbaa !9
  %212 = load i64, ptr %14, align 8, !tbaa !11
  call void @utils_printFormattedOctetString(i8 noundef zeroext 3, ptr noundef @.str.20, ptr noundef @.str.30, i8 noundef zeroext 8, ptr noundef %211, i64 noundef %212)
  br label %213

213:                                              ; preds = %193
  call void @llvm.lifetime.start.p0(i64 1200, ptr %33) #7
  %214 = getelementptr inbounds [1200 x i8], ptr %33, i64 0, i64 0
  %215 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef %214, i64 noundef 1200, ptr noundef @.str.21, ptr noundef @.str.20) #7
  %216 = load ptr, ptr @stdout, align 8, !tbaa !9
  %217 = getelementptr inbounds [1200 x i8], ptr %33, i64 0, i64 0
  %218 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %216, ptr noundef @.str.18, ptr noundef %217) #7
  call void @llvm.lifetime.end.p0(i64 1200, ptr %33) #7
  call void @llvm.lifetime.start.p0(i64 1200, ptr %34) #7
  %219 = getelementptr inbounds [1200 x i8], ptr %34, i64 0, i64 0
  %220 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef %219, i64 noundef 1200, ptr noundef @.str.31, ptr noundef @.str.20) #7
  %221 = load ptr, ptr @stdout, align 8, !tbaa !9
  %222 = getelementptr inbounds [1200 x i8], ptr %34, i64 0, i64 0
  %223 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %221, ptr noundef @.str.18, ptr noundef %222) #7
  call void @llvm.lifetime.end.p0(i64 1200, ptr %34) #7
  call void @llvm.lifetime.start.p0(i64 1200, ptr %35) #7
  %224 = getelementptr inbounds [1200 x i8], ptr %35, i64 0, i64 0
  %225 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef %224, i64 noundef 1200, ptr noundef @.str.21, ptr noundef @.str.20) #7
  %226 = load ptr, ptr @stdout, align 8, !tbaa !9
  %227 = getelementptr inbounds [1200 x i8], ptr %35, i64 0, i64 0
  %228 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %226, ptr noundef @.str.18, ptr noundef %227) #7
  call void @llvm.lifetime.end.p0(i64 1200, ptr %35) #7
  call void @llvm.lifetime.start.p0(i64 1200, ptr %36) #7
  %229 = getelementptr inbounds [1200 x i8], ptr %36, i64 0, i64 0
  %230 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef %229, i64 noundef 1200, ptr noundef @.str.32, ptr noundef @.str.20) #7
  %231 = load ptr, ptr @stdout, align 8, !tbaa !9
  %232 = getelementptr inbounds [1200 x i8], ptr %36, i64 0, i64 0
  %233 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %231, ptr noundef @.str.18, ptr noundef %232) #7
  call void @llvm.lifetime.end.p0(i64 1200, ptr %36) #7
  %234 = load ptr, ptr %13, align 8, !tbaa !9
  %235 = load i64, ptr %14, align 8, !tbaa !11
  %236 = load ptr, ptr %16, align 8, !tbaa !9
  %237 = load i64, ptr %17, align 8, !tbaa !11
  %238 = load ptr, ptr %6, align 8, !tbaa !9
  %239 = load i64, ptr %7, align 8, !tbaa !11
  %240 = load ptr, ptr %10, align 8, !tbaa !9
  %241 = call zeroext i8 @eccsi_verify(ptr noundef %234, i64 noundef %235, ptr noundef %236, i64 noundef %237, ptr noundef %238, i64 noundef %239, ptr noundef %240)
  %242 = icmp ne i8 %241, 0
  br i1 %242, label %243, label %254

243:                                              ; preds = %213
  call void @llvm.lifetime.start.p0(i64 1200, ptr %37) #7
  %244 = getelementptr inbounds [1200 x i8], ptr %37, i64 0, i64 0
  %245 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef %244, i64 noundef 1200, ptr noundef @.str.33, ptr noundef @.str.5, ptr noundef @__func__.main, i32 noundef 672) #7
  %246 = load ptr, ptr @stdout, align 8, !tbaa !9
  %247 = getelementptr inbounds [1200 x i8], ptr %37, i64 0, i64 0
  %248 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %246, ptr noundef @.str.6, ptr noundef %247) #7
  call void @llvm.lifetime.end.p0(i64 1200, ptr %37) #7
  call void @llvm.lifetime.start.p0(i64 1200, ptr %38) #7
  %249 = getelementptr inbounds [1200 x i8], ptr %38, i64 0, i64 0
  %250 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef %249, i64 noundef 1200, ptr noundef @.str.34, ptr noundef @.str.20) #7
  %251 = load ptr, ptr @stdout, align 8, !tbaa !9
  %252 = getelementptr inbounds [1200 x i8], ptr %38, i64 0, i64 0
  %253 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %251, ptr noundef @.str.35, ptr noundef %252) #7
  call void @llvm.lifetime.end.p0(i64 1200, ptr %38) #7
  call void @exit(i32 noundef 1) #10
  unreachable

254:                                              ; preds = %213
  call void @llvm.lifetime.start.p0(i64 1200, ptr %39) #7
  %255 = getelementptr inbounds [1200 x i8], ptr %39, i64 0, i64 0
  %256 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef %255, i64 noundef 1200, ptr noundef @.str.36, ptr noundef @.str.20) #7
  %257 = load ptr, ptr @stdout, align 8, !tbaa !9
  %258 = getelementptr inbounds [1200 x i8], ptr %39, i64 0, i64 0
  %259 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %257, ptr noundef @.str.18, ptr noundef %258) #7
  call void @llvm.lifetime.end.p0(i64 1200, ptr %39) #7
  call void @llvm.lifetime.start.p0(i64 1200, ptr %40) #7
  %260 = getelementptr inbounds [1200 x i8], ptr %40, i64 0, i64 0
  %261 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef %260, i64 noundef 1200, ptr noundef @.str.37, ptr noundef @.str.20) #7
  %262 = load ptr, ptr @stdout, align 8, !tbaa !9
  %263 = getelementptr inbounds [1200 x i8], ptr %40, i64 0, i64 0
  %264 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %262, ptr noundef @.str.18, ptr noundef %263) #7
  call void @llvm.lifetime.end.p0(i64 1200, ptr %40) #7
  call void @llvm.lifetime.start.p0(i64 1200, ptr %41) #7
  %265 = getelementptr inbounds [1200 x i8], ptr %41, i64 0, i64 0
  %266 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef %265, i64 noundef 1200, ptr noundef @.str.38, ptr noundef @.str.20) #7
  %267 = load ptr, ptr @stdout, align 8, !tbaa !9
  %268 = getelementptr inbounds [1200 x i8], ptr %41, i64 0, i64 0
  %269 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %267, ptr noundef @.str.18, ptr noundef %268) #7
  call void @llvm.lifetime.end.p0(i64 1200, ptr %41) #7
  call void @llvm.lifetime.start.p0(i64 1200, ptr %42) #7
  %270 = getelementptr inbounds [1200 x i8], ptr %42, i64 0, i64 0
  %271 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef %270, i64 noundef 1200, ptr noundef @.str.39, ptr noundef @.str.20) #7
  %272 = load ptr, ptr @stdout, align 8, !tbaa !9
  %273 = getelementptr inbounds [1200 x i8], ptr %42, i64 0, i64 0
  %274 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %272, ptr noundef @.str.18, ptr noundef %273) #7
  call void @llvm.lifetime.end.p0(i64 1200, ptr %42) #7
  store ptr null, ptr %11, align 8, !tbaa !9
  %275 = load ptr, ptr %13, align 8, !tbaa !9
  %276 = load i64, ptr %14, align 8, !tbaa !11
  %277 = load ptr, ptr %8, align 8, !tbaa !9
  %278 = load i64, ptr %9, align 8, !tbaa !11
  %279 = load ptr, ptr %10, align 8, !tbaa !9
  %280 = call zeroext i8 @sakke_extractSharedSecret(ptr noundef %275, i64 noundef %276, ptr noundef %277, i64 noundef %278, ptr noundef %279, ptr noundef %11, ptr noundef %12)
  %281 = zext i8 %280 to i32
  %282 = icmp eq i32 %281, 0
  br i1 %282, label %283, label %286

283:                                              ; preds = %254
  %284 = load ptr, ptr %11, align 8, !tbaa !9
  %285 = load i64, ptr %12, align 8, !tbaa !11
  call void @utils_printFormattedOctetString(i8 noundef zeroext 3, ptr noundef @.str.20, ptr noundef @.str.40, i8 noundef zeroext 8, ptr noundef %284, i64 noundef %285)
  br label %292

286:                                              ; preds = %254
  call void @llvm.lifetime.start.p0(i64 1200, ptr %43) #7
  %287 = getelementptr inbounds [1200 x i8], ptr %43, i64 0, i64 0
  %288 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef %287, i64 noundef 1200, ptr noundef @.str.41, ptr noundef @.str.20) #7
  %289 = load ptr, ptr @stdout, align 8, !tbaa !9
  %290 = getelementptr inbounds [1200 x i8], ptr %43, i64 0, i64 0
  %291 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %289, ptr noundef @.str.35, ptr noundef %290) #7
  call void @llvm.lifetime.end.p0(i64 1200, ptr %43) #7
  call void @exit(i32 noundef 1) #10
  unreachable

292:                                              ; preds = %283
  %293 = load ptr, ptr %19, align 8, !tbaa !9
  %294 = icmp ne ptr null, %293
  br i1 %294, label %295, label %297

295:                                              ; preds = %292
  %296 = load ptr, ptr %19, align 8, !tbaa !9
  call void @free(ptr noundef %296) #7
  store ptr null, ptr %19, align 8, !tbaa !9
  br label %297

297:                                              ; preds = %295, %292
  %298 = load ptr, ptr %15, align 8, !tbaa !9
  %299 = icmp ne ptr null, %298
  br i1 %299, label %300, label %302

300:                                              ; preds = %297
  %301 = load ptr, ptr %15, align 8, !tbaa !9
  call void @free(ptr noundef %301) #7
  store ptr null, ptr %15, align 8, !tbaa !9
  br label %302

302:                                              ; preds = %300, %297
  %303 = load ptr, ptr %11, align 8, !tbaa !9
  %304 = icmp ne ptr null, %303
  br i1 %304, label %305, label %307

305:                                              ; preds = %302
  %306 = load ptr, ptr %11, align 8, !tbaa !9
  call void @free(ptr noundef %306) #7
  store ptr null, ptr %11, align 8, !tbaa !9
  store i64 0, ptr %12, align 8, !tbaa !11
  br label %307

307:                                              ; preds = %305, %302
  %308 = load ptr, ptr %13, align 8, !tbaa !9
  %309 = icmp ne ptr null, %308
  br i1 %309, label %310, label %312

310:                                              ; preds = %307
  %311 = load ptr, ptr %13, align 8, !tbaa !9
  call void @free(ptr noundef %311) #7
  store ptr null, ptr %13, align 8, !tbaa !9
  store i64 0, ptr %14, align 8, !tbaa !11
  br label %312

312:                                              ; preds = %310, %307
  br label %313

313:                                              ; preds = %312
  %314 = load i32, ptr %18, align 4, !tbaa !5
  %315 = add i32 %314, 1
  store i32 %315, ptr %18, align 4, !tbaa !5
  br label %105, !llvm.loop !13

316:                                              ; preds = %105
  call void (...) @community_deleteStorage()
  call void @ms_deleteParameterSets()
  %317 = load ptr, ptr %6, align 8, !tbaa !9
  call void @free(ptr noundef %317) #7
  %318 = load ptr, ptr %8, align 8, !tbaa !9
  call void @free(ptr noundef %318) #7
  %319 = load ptr, ptr %11, align 8, !tbaa !9
  call void @free(ptr noundef %319) #7
  %320 = load ptr, ptr %13, align 8, !tbaa !9
  call void @free(ptr noundef %320) #7
  %321 = load ptr, ptr %16, align 8, !tbaa !9
  call void @free(ptr noundef %321) #7
  %322 = load ptr, ptr %10, align 8, !tbaa !9
  call void @free(ptr noundef %322) #7
  %323 = load ptr, ptr %15, align 8, !tbaa !9
  call void @free(ptr noundef %323) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #7
  ret i32 0
}

declare ptr @softwareVersion() #5

; Function Attrs: noreturn nounwind
declare void @exit(i32 noundef) #6

declare signext i16 @ES_PRNG(ptr noundef, i8 noundef zeroext) #5

declare void @utils_printFormattedOctetString(i8 noundef zeroext, ptr noundef, ptr noundef, i8 noundef zeroext, ptr noundef, i64 noundef) #5

declare zeroext i8 @sakke_generateSakkeEncapsulatedData(ptr noundef, ptr noundef, ptr noundef, i64 noundef, ptr noundef, ptr noundef, i64 noundef) #5

declare ptr @BN_bin2bn(ptr noundef, i32 noundef, ptr noundef) #5

declare i32 @BN_cmp(ptr noundef, ptr noundef) #5

declare ptr @BN_value_one() #5

declare ptr @community_getq_bn() #5

declare void @BN_clear_free(ptr noundef) #5

declare zeroext i8 @eccsi_sign(ptr noundef, i64 noundef, ptr noundef, i64 noundef, ptr noundef, ptr noundef, i64 noundef, ptr noundef, ptr noundef) #5

declare zeroext i8 @eccsi_verify(ptr noundef, i64 noundef, ptr noundef, i64 noundef, ptr noundef, i64 noundef, ptr noundef) #5

declare zeroext i8 @sakke_extractSharedSecret(ptr noundef, i64 noundef, ptr noundef, i64 noundef, ptr noundef, ptr noundef, ptr noundef) #5

declare void @community_deleteStorage(...) #5

declare void @ms_deleteParameterSets() #5

; Function Attrs: nounwind uwtable
declare hidden signext i16 @main_initialiseMSInCorrectOrder() #0

attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 #3 = { nounwind willreturn memory(read) "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) "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 = { "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 = { noreturn 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 #7 = { nounwind }
attributes #8 = { nounwind allocsize(0,1) }
attributes #9 = { nounwind willreturn memory(read) }
attributes #10 = { noreturn 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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"long", !7, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}


; 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.2 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [63 x i8], align 1
@stdout = external local_unnamed_addr global ptr, align 8
@.str.6 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [46 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [46 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [45 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [61 x i8], align 1
@__func__.main = external hidden unnamed_addr constant [5 x i8], align 1
@.str.26 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.27 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.28 = external hidden unnamed_addr constant [46 x i8], align 1
@.str.29 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.30 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.31 = external hidden unnamed_addr constant [46 x i8], align 1
@.str.32 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.33 = external hidden unnamed_addr constant [68 x i8], align 1
@.str.34 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.35 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.36 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.37 = external hidden unnamed_addr constant [39 x i8], align 1
@.str.38 = external hidden unnamed_addr constant [41 x i8], align 1
@.str.39 = external hidden unnamed_addr constant [46 x i8], align 1
@.str.40 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.41 = external hidden unnamed_addr constant [37 x i8], align 1

; Function Attrs: nounwind uwtable
declare dso_local signext i16 @main_addExampleCommunity() local_unnamed_addr #0

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

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

; Function Attrs: mustprogress nofree nounwind willreturn memory(argmem: read)
declare i64 @strlen(ptr nocapture noundef) local_unnamed_addr #3

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

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

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

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

; Function Attrs: nounwind uwtable
declare dso_local signext i16 @main_addExampleUserCharlie() local_unnamed_addr #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 #6

; Function Attrs: mustprogress nofree nounwind willreturn memory(argmem: readwrite)
declare ptr @strcpy(ptr noalias noundef returned writeonly, ptr noalias nocapture noundef readonly) local_unnamed_addr #7

; Function Attrs: mustprogress nofree nounwind willreturn memory(argmem: readwrite)
declare ptr @strcat(ptr noalias noundef returned, ptr noalias nocapture noundef readonly) local_unnamed_addr #7

; Function Attrs: nounwind uwtable
declare dso_local signext i16 @main_addExampleUserDylan() local_unnamed_addr #0

; Function Attrs: nounwind uwtable
define dso_local noundef i32 @main(i32 noundef %0, ptr nocapture noundef readnone %1) local_unnamed_addr #0 {
  %3 = alloca ptr, align 8
  %4 = alloca i64, align 8
  %5 = alloca ptr, align 8
  %6 = alloca i64, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca i64, align 8
  %10 = alloca ptr, align 8
  %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
  %20 = alloca [1200 x i8], align 16
  %21 = alloca [1200 x i8], align 16
  %22 = alloca [1200 x i8], align 16
  %23 = alloca [1200 x i8], align 16
  %24 = alloca [1200 x i8], align 16
  %25 = alloca [1200 x i8], align 16
  %26 = alloca [1200 x i8], align 16
  %27 = alloca [1200 x i8], align 16
  %28 = alloca [1200 x i8], align 16
  %29 = alloca [1200 x i8], align 16
  %30 = alloca [1200 x i8], align 16
  %31 = alloca [1200 x i8], align 16
  %32 = alloca [1200 x i8], align 16
  %33 = alloca [1200 x i8], align 16
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #10
  store ptr null, ptr %3, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #10
  store i64 0, ptr %4, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #10
  store ptr null, ptr %5, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #10
  store i64 0, ptr %6, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #10
  store ptr null, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #10
  store ptr null, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #10
  store i64 0, ptr %9, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #10
  store ptr null, ptr %10, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1200, ptr nonnull %11) #10
  %34 = tail call ptr @softwareVersion() #10
  %35 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull dereferenceable(1) %11, i64 noundef 1200, ptr noundef nonnull @.str.17, ptr noundef %34) #10
  %36 = load ptr, ptr @stdout, align 8, !tbaa !5
  %37 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %36, ptr noundef nonnull @.str.18, ptr noundef nonnull %11) #10
  call void @llvm.lifetime.end.p0(i64 1200, ptr nonnull %11) #10
  %38 = call noalias dereferenceable_or_null(255) ptr @calloc(i64 noundef 1, i64 noundef 255) #11
  %39 = call ptr @strcpy(ptr noundef nonnull dereferenceable(1) %38, ptr noundef nonnull dereferenceable(1) @.str.7) #10
  %40 = call i64 @strlen(ptr noundef nonnull dereferenceable(1) %38) #12
  %41 = getelementptr inbounds i8, ptr %38, i64 %40
  %42 = getelementptr inbounds i8, ptr %41, i64 1
  %43 = call ptr @strcat(ptr noundef nonnull dereferenceable(1) %42, ptr noundef nonnull dereferenceable(1) @.str.8) #10
  %44 = call i64 @strlen(ptr noundef nonnull dereferenceable(1) %38) #12
  %45 = getelementptr i8, ptr %38, i64 %44
  %46 = getelementptr i8, ptr %45, i64 1
  %47 = call i64 @strlen(ptr noundef nonnull dereferenceable(1) %46) #12
  %48 = add i64 %44, 2
  %49 = add i64 %48, %47
  %50 = call noalias dereferenceable_or_null(255) ptr @calloc(i64 noundef 1, i64 noundef 255) #11
  %51 = call ptr @strcpy(ptr noundef nonnull dereferenceable(1) %50, ptr noundef nonnull dereferenceable(1) @.str.7) #10
  %52 = call i64 @strlen(ptr noundef nonnull dereferenceable(1) %50) #12
  %53 = getelementptr inbounds i8, ptr %50, i64 %52
  %54 = getelementptr inbounds i8, ptr %53, i64 1
  %55 = call ptr @strcat(ptr noundef nonnull dereferenceable(1) %54, ptr noundef nonnull dereferenceable(1) @.str.13) #10
  %56 = call i64 @strlen(ptr noundef nonnull dereferenceable(1) %50) #12
  %57 = getelementptr i8, ptr %50, i64 %56
  %58 = getelementptr i8, ptr %57, i64 1
  %59 = call i64 @strlen(ptr noundef nonnull dereferenceable(1) %58) #12
  %60 = add i64 %56, 2
  %61 = add i64 %60, %59
  %62 = call noalias ptr @strdup(ptr noundef nonnull @.str.2) #10
  %63 = call signext i16 @main_initialiseMSInCorrectOrder()
  %64 = call signext i16 @main_addExampleCommunity()
  %.not = icmp eq i16 %64, 0
  br i1 %.not, label %66, label %65

65:                                               ; preds = %2
  call void @exit(i32 noundef 1) #13
  unreachable

66:                                               ; preds = %2
  %67 = call signext i16 @main_addExampleUserCharlie()
  %.not38 = icmp eq i16 %67, 0
  br i1 %.not38, label %69, label %68

68:                                               ; preds = %66
  call void @exit(i32 noundef 1) #13
  unreachable

69:                                               ; preds = %66
  %70 = call signext i16 @main_addExampleUserDylan()
  %.not39 = icmp eq i16 %70, 0
  br i1 %.not39, label %72, label %71

71:                                               ; preds = %69
  call void @exit(i32 noundef 1) #13
  unreachable

72:                                               ; preds = %69
  call void @llvm.lifetime.start.p0(i64 1200, ptr nonnull %12) #10
  %73 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull dereferenceable(1) %12, i64 noundef 1200, ptr noundef nonnull @.str.19, ptr noundef nonnull @.str.20, i32 noundef 0) #10
  %74 = load ptr, ptr @stdout, align 8, !tbaa !5
  %75 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %74, ptr noundef nonnull @.str.18, ptr noundef nonnull %12) #10
  call void @llvm.lifetime.end.p0(i64 1200, ptr nonnull %12) #10
  call void @llvm.lifetime.start.p0(i64 1200, ptr nonnull %13) #10
  %76 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull dereferenceable(1) %13, i64 noundef 1200, ptr noundef nonnull @.str.21, ptr noundef nonnull @.str.20) #10
  %77 = load ptr, ptr @stdout, align 8, !tbaa !5
  %78 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %77, ptr noundef nonnull @.str.18, ptr noundef nonnull %13) #10
  call void @llvm.lifetime.end.p0(i64 1200, ptr nonnull %13) #10
  call void @llvm.lifetime.start.p0(i64 1200, ptr nonnull %14) #10
  %79 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull dereferenceable(1) %14, i64 noundef 1200, ptr noundef nonnull @.str.22, ptr noundef nonnull @.str.20) #10
  %80 = load ptr, ptr @stdout, align 8, !tbaa !5
  %81 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %80, ptr noundef nonnull @.str.18, ptr noundef nonnull %14) #10
  call void @llvm.lifetime.end.p0(i64 1200, ptr nonnull %14) #10
  call void @llvm.lifetime.start.p0(i64 1200, ptr nonnull %15) #10
  %82 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull dereferenceable(1) %15, i64 noundef 1200, ptr noundef nonnull @.str.21, ptr noundef nonnull @.str.20) #10
  %83 = load ptr, ptr @stdout, align 8, !tbaa !5
  %84 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %83, ptr noundef nonnull @.str.18, ptr noundef nonnull %15) #10
  call void @llvm.lifetime.end.p0(i64 1200, ptr nonnull %15) #10
  %85 = call signext i16 @ES_PRNG(ptr noundef nonnull %7, i8 noundef zeroext 16) #10
  %86 = load ptr, ptr %7, align 8, !tbaa !5
  call void @utils_printFormattedOctetString(i8 noundef zeroext 3, ptr noundef nonnull @.str.20, ptr noundef nonnull @.str.23, i8 noundef zeroext 8, ptr noundef %86, i64 noundef 16) #10
  call void @llvm.lifetime.start.p0(i64 1200, ptr nonnull %16) #10
  %87 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull dereferenceable(1) %16, i64 noundef 1200, ptr noundef nonnull @.str.24, ptr noundef nonnull @.str.20) #10
  %88 = load ptr, ptr @stdout, align 8, !tbaa !5
  %89 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %88, ptr noundef nonnull @.str.18, ptr noundef nonnull %16) #10
  call void @llvm.lifetime.end.p0(i64 1200, ptr nonnull %16) #10
  %90 = load ptr, ptr %7, align 8, !tbaa !5
  %91 = call zeroext i8 @sakke_generateSakkeEncapsulatedData(ptr noundef nonnull %5, ptr noundef nonnull %6, ptr noundef %50, i64 noundef %61, ptr noundef %62, ptr noundef %90, i64 noundef 16) #10
  %.not40 = icmp eq i8 %91, 0
  br i1 %.not40, label %.preheader, label %92

92:                                               ; preds = %72
  call void @llvm.lifetime.start.p0(i64 1200, ptr nonnull %17) #10
  %93 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull dereferenceable(1) %17, i64 noundef 1200, ptr noundef nonnull @.str.25, ptr noundef nonnull @.str.5, ptr noundef nonnull @__func__.main, i32 noundef 605) #10
  %94 = load ptr, ptr @stdout, align 8, !tbaa !5
  %95 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %94, ptr noundef nonnull @.str.6, ptr noundef nonnull %17) #10
  call void @llvm.lifetime.end.p0(i64 1200, ptr nonnull %17) #10
  call void @exit(i32 noundef 1) #13
  unreachable

.preheader:                                       ; preds = %72, %106
  %96 = call signext i16 @ES_PRNG(ptr noundef nonnull %10, i8 noundef zeroext 32) #10
  %97 = load ptr, ptr %10, align 8, !tbaa !5
  %98 = call ptr @BN_bin2bn(ptr noundef %97, i32 noundef 32, ptr noundef null) #10
  %99 = call ptr @BN_value_one() #10
  %100 = call i32 @BN_cmp(ptr noundef %98, ptr noundef %99) #10
  %101 = icmp sgt i32 %100, -1
  br i1 %101, label %102, label %106

102:                                              ; preds = %.preheader
  %103 = call ptr @community_getq_bn() #10
  %104 = call i32 @BN_cmp(ptr noundef %98, ptr noundef %103) #10
  %105 = icmp eq i32 %104, -1
  br i1 %105, label %107, label %106

106:                                              ; preds = %102, %.preheader
  call void @BN_clear_free(ptr noundef %98) #10
  br label %.preheader

107:                                              ; preds = %102
  call void @BN_clear_free(ptr noundef %98) #10
  call void @llvm.lifetime.start.p0(i64 1200, ptr nonnull %18) #10
  %108 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull dereferenceable(1) %18, i64 noundef 1200, ptr noundef nonnull @.str.26, ptr noundef nonnull @.str.20) #10
  %109 = load ptr, ptr @stdout, align 8, !tbaa !5
  %110 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %109, ptr noundef nonnull @.str.18, ptr noundef nonnull %18) #10
  call void @llvm.lifetime.end.p0(i64 1200, ptr nonnull %18) #10
  %111 = load ptr, ptr %5, align 8, !tbaa !5
  %112 = load i64, ptr %6, align 8, !tbaa !9
  %113 = load ptr, ptr %10, align 8, !tbaa !5
  %114 = call zeroext i8 @eccsi_sign(ptr noundef %111, i64 noundef %112, ptr noundef %38, i64 noundef %49, ptr noundef %62, ptr noundef %113, i64 noundef 32, ptr noundef nonnull %8, ptr noundef nonnull %9) #10
  %.not42 = icmp eq i8 %114, 0
  br i1 %.not42, label %119, label %115

115:                                              ; preds = %107
  call void @llvm.lifetime.start.p0(i64 1200, ptr nonnull %19) #10
  %116 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull dereferenceable(1) %19, i64 noundef 1200, ptr noundef nonnull @.str.27, ptr noundef nonnull @.str.5, ptr noundef nonnull @__func__.main, i32 noundef 646) #10
  %117 = load ptr, ptr @stdout, align 8, !tbaa !5
  %118 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %117, ptr noundef nonnull @.str.6, ptr noundef nonnull %19) #10
  call void @llvm.lifetime.end.p0(i64 1200, ptr nonnull %19) #10
  call void @exit(i32 noundef 1) #13
  unreachable

119:                                              ; preds = %107
  call void @llvm.lifetime.start.p0(i64 1200, ptr nonnull %20) #10
  %120 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull dereferenceable(1) %20, i64 noundef 1200, ptr noundef nonnull @.str.21, ptr noundef nonnull @.str.20) #10
  %121 = load ptr, ptr @stdout, align 8, !tbaa !5
  %122 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %121, ptr noundef nonnull @.str.18, ptr noundef nonnull %20) #10
  call void @llvm.lifetime.end.p0(i64 1200, ptr nonnull %20) #10
  call void @llvm.lifetime.start.p0(i64 1200, ptr nonnull %21) #10
  %123 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull dereferenceable(1) %21, i64 noundef 1200, ptr noundef nonnull @.str.28, ptr noundef nonnull @.str.20) #10
  %124 = load ptr, ptr @stdout, align 8, !tbaa !5
  %125 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %124, ptr noundef nonnull @.str.18, ptr noundef nonnull %21) #10
  call void @llvm.lifetime.end.p0(i64 1200, ptr nonnull %21) #10
  call void @llvm.lifetime.start.p0(i64 1200, ptr nonnull %22) #10
  %126 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull dereferenceable(1) %22, i64 noundef 1200, ptr noundef nonnull @.str.21, ptr noundef nonnull @.str.20) #10
  %127 = load ptr, ptr @stdout, align 8, !tbaa !5
  %128 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %127, ptr noundef nonnull @.str.18, ptr noundef nonnull %22) #10
  call void @llvm.lifetime.end.p0(i64 1200, ptr nonnull %22) #10
  %129 = load ptr, ptr %8, align 8, !tbaa !5
  %130 = load i64, ptr %9, align 8, !tbaa !9
  call void @utils_printFormattedOctetString(i8 noundef zeroext 3, ptr noundef nonnull @.str.20, ptr noundef nonnull @.str.29, i8 noundef zeroext 8, ptr noundef %129, i64 noundef %130) #10
  %131 = load ptr, ptr %5, align 8, !tbaa !5
  %132 = load i64, ptr %6, align 8, !tbaa !9
  call void @utils_printFormattedOctetString(i8 noundef zeroext 3, ptr noundef nonnull @.str.20, ptr noundef nonnull @.str.30, i8 noundef zeroext 8, ptr noundef %131, i64 noundef %132) #10
  call void @llvm.lifetime.start.p0(i64 1200, ptr nonnull %23) #10
  %133 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull dereferenceable(1) %23, i64 noundef 1200, ptr noundef nonnull @.str.21, ptr noundef nonnull @.str.20) #10
  %134 = load ptr, ptr @stdout, align 8, !tbaa !5
  %135 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %134, ptr noundef nonnull @.str.18, ptr noundef nonnull %23) #10
  call void @llvm.lifetime.end.p0(i64 1200, ptr nonnull %23) #10
  call void @llvm.lifetime.start.p0(i64 1200, ptr nonnull %24) #10
  %136 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull dereferenceable(1) %24, i64 noundef 1200, ptr noundef nonnull @.str.31, ptr noundef nonnull @.str.20) #10
  %137 = load ptr, ptr @stdout, align 8, !tbaa !5
  %138 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %137, ptr noundef nonnull @.str.18, ptr noundef nonnull %24) #10
  call void @llvm.lifetime.end.p0(i64 1200, ptr nonnull %24) #10
  call void @llvm.lifetime.start.p0(i64 1200, ptr nonnull %25) #10
  %139 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull dereferenceable(1) %25, i64 noundef 1200, ptr noundef nonnull @.str.21, ptr noundef nonnull @.str.20) #10
  %140 = load ptr, ptr @stdout, align 8, !tbaa !5
  %141 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %140, ptr noundef nonnull @.str.18, ptr noundef nonnull %25) #10
  call void @llvm.lifetime.end.p0(i64 1200, ptr nonnull %25) #10
  call void @llvm.lifetime.start.p0(i64 1200, ptr nonnull %26) #10
  %142 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull dereferenceable(1) %26, i64 noundef 1200, ptr noundef nonnull @.str.32, ptr noundef nonnull @.str.20) #10
  %143 = load ptr, ptr @stdout, align 8, !tbaa !5
  %144 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %143, ptr noundef nonnull @.str.18, ptr noundef nonnull %26) #10
  call void @llvm.lifetime.end.p0(i64 1200, ptr nonnull %26) #10
  %145 = load ptr, ptr %5, align 8, !tbaa !5
  %146 = load i64, ptr %6, align 8, !tbaa !9
  %147 = load ptr, ptr %8, align 8, !tbaa !5
  %148 = load i64, ptr %9, align 8, !tbaa !9
  %149 = call zeroext i8 @eccsi_verify(ptr noundef %145, i64 noundef %146, ptr noundef %147, i64 noundef %148, ptr noundef %38, i64 noundef %49, ptr noundef %62) #10
  %.not43 = icmp eq i8 %149, 0
  br i1 %.not43, label %157, label %150

150:                                              ; preds = %119
  call void @llvm.lifetime.start.p0(i64 1200, ptr nonnull %27) #10
  %151 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull dereferenceable(1) %27, i64 noundef 1200, ptr noundef nonnull @.str.33, ptr noundef nonnull @.str.5, ptr noundef nonnull @__func__.main, i32 noundef 672) #10
  %152 = load ptr, ptr @stdout, align 8, !tbaa !5
  %153 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %152, ptr noundef nonnull @.str.6, ptr noundef nonnull %27) #10
  call void @llvm.lifetime.end.p0(i64 1200, ptr nonnull %27) #10
  call void @llvm.lifetime.start.p0(i64 1200, ptr nonnull %28) #10
  %154 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull dereferenceable(1) %28, i64 noundef 1200, ptr noundef nonnull @.str.34, ptr noundef nonnull @.str.20) #10
  %155 = load ptr, ptr @stdout, align 8, !tbaa !5
  %156 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %155, ptr noundef nonnull @.str.35, ptr noundef nonnull %28) #10
  call void @llvm.lifetime.end.p0(i64 1200, ptr nonnull %28) #10
  call void @exit(i32 noundef 1) #13
  unreachable

157:                                              ; preds = %119
  call void @llvm.lifetime.start.p0(i64 1200, ptr nonnull %29) #10
  %158 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull dereferenceable(1) %29, i64 noundef 1200, ptr noundef nonnull @.str.36, ptr noundef nonnull @.str.20) #10
  %159 = load ptr, ptr @stdout, align 8, !tbaa !5
  %160 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %159, ptr noundef nonnull @.str.18, ptr noundef nonnull %29) #10
  call void @llvm.lifetime.end.p0(i64 1200, ptr nonnull %29) #10
  call void @llvm.lifetime.start.p0(i64 1200, ptr nonnull %30) #10
  %161 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull dereferenceable(1) %30, i64 noundef 1200, ptr noundef nonnull @.str.37, ptr noundef nonnull @.str.20) #10
  %162 = load ptr, ptr @stdout, align 8, !tbaa !5
  %163 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %162, ptr noundef nonnull @.str.18, ptr noundef nonnull %30) #10
  call void @llvm.lifetime.end.p0(i64 1200, ptr nonnull %30) #10
  call void @llvm.lifetime.start.p0(i64 1200, ptr nonnull %31) #10
  %164 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull dereferenceable(1) %31, i64 noundef 1200, ptr noundef nonnull @.str.38, ptr noundef nonnull @.str.20) #10
  %165 = load ptr, ptr @stdout, align 8, !tbaa !5
  %166 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %165, ptr noundef nonnull @.str.18, ptr noundef nonnull %31) #10
  call void @llvm.lifetime.end.p0(i64 1200, ptr nonnull %31) #10
  call void @llvm.lifetime.start.p0(i64 1200, ptr nonnull %32) #10
  %167 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull dereferenceable(1) %32, i64 noundef 1200, ptr noundef nonnull @.str.39, ptr noundef nonnull @.str.20) #10
  %168 = load ptr, ptr @stdout, align 8, !tbaa !5
  %169 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %168, ptr noundef nonnull @.str.18, ptr noundef nonnull %32) #10
  call void @llvm.lifetime.end.p0(i64 1200, ptr nonnull %32) #10
  store ptr null, ptr %3, align 8, !tbaa !5
  %170 = load ptr, ptr %5, align 8, !tbaa !5
  %171 = load i64, ptr %6, align 8, !tbaa !9
  %172 = call zeroext i8 @sakke_extractSharedSecret(ptr noundef %170, i64 noundef %171, ptr noundef %50, i64 noundef %61, ptr noundef %62, ptr noundef nonnull %3, ptr noundef nonnull %4) #10
  %173 = icmp eq i8 %172, 0
  br i1 %173, label %174, label %178

174:                                              ; preds = %157
  %175 = load ptr, ptr %3, align 8, !tbaa !5
  %176 = load i64, ptr %4, align 8, !tbaa !9
  call void @utils_printFormattedOctetString(i8 noundef zeroext 3, ptr noundef nonnull @.str.20, ptr noundef nonnull @.str.40, i8 noundef zeroext 8, ptr noundef %175, i64 noundef %176) #10
  %177 = load ptr, ptr %10, align 8, !tbaa !5
  %.not44 = icmp eq ptr %177, null
  br i1 %.not44, label %183, label %182

178:                                              ; preds = %157
  call void @llvm.lifetime.start.p0(i64 1200, ptr nonnull %33) #10
  %179 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull dereferenceable(1) %33, i64 noundef 1200, ptr noundef nonnull @.str.41, ptr noundef nonnull @.str.20) #10
  %180 = load ptr, ptr @stdout, align 8, !tbaa !5
  %181 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %180, ptr noundef nonnull @.str.35, ptr noundef nonnull %33) #10
  call void @llvm.lifetime.end.p0(i64 1200, ptr nonnull %33) #10
  call void @exit(i32 noundef 1) #13
  unreachable

182:                                              ; preds = %174
  call void @free(ptr noundef nonnull %177) #10
  store ptr null, ptr %10, align 8, !tbaa !5
  br label %183

183:                                              ; preds = %182, %174
  %184 = load ptr, ptr %7, align 8, !tbaa !5
  %.not45 = icmp eq ptr %184, null
  br i1 %.not45, label %186, label %185

185:                                              ; preds = %183
  call void @free(ptr noundef nonnull %184) #10
  store ptr null, ptr %7, align 8, !tbaa !5
  br label %186

186:                                              ; preds = %185, %183
  %187 = load ptr, ptr %3, align 8, !tbaa !5
  %.not46 = icmp eq ptr %187, null
  br i1 %.not46, label %189, label %188

188:                                              ; preds = %186
  call void @free(ptr noundef nonnull %187) #10
  store ptr null, ptr %3, align 8, !tbaa !5
  store i64 0, ptr %4, align 8, !tbaa !9
  br label %189

189:                                              ; preds = %188, %186
  %190 = load ptr, ptr %5, align 8, !tbaa !5
  %.not47 = icmp eq ptr %190, null
  br i1 %.not47, label %.critedge, label %191

191:                                              ; preds = %189
  call void @free(ptr noundef nonnull %190) #10
  store ptr null, ptr %5, align 8, !tbaa !5
  store i64 0, ptr %6, align 8, !tbaa !9
  br label %.critedge

.critedge:                                        ; preds = %191, %189
  call void (...) @community_deleteStorage() #10
  call void @ms_deleteParameterSets() #10
  call void @free(ptr noundef %38) #10
  call void @free(ptr noundef %50) #10
  %192 = load ptr, ptr %3, align 8, !tbaa !5
  call void @free(ptr noundef %192) #10
  %193 = load ptr, ptr %5, align 8, !tbaa !5
  call void @free(ptr noundef %193) #10
  %194 = load ptr, ptr %8, align 8, !tbaa !5
  call void @free(ptr noundef %194) #10
  call void @free(ptr noundef %62) #10
  %195 = load ptr, ptr %7, align 8, !tbaa !5
  call void @free(ptr noundef %195) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #10
  ret i32 0
}

declare ptr @softwareVersion() local_unnamed_addr #8

; Function Attrs: noreturn nounwind
declare void @exit(i32 noundef) local_unnamed_addr #9

declare signext i16 @ES_PRNG(ptr noundef, i8 noundef zeroext) local_unnamed_addr #8

declare void @utils_printFormattedOctetString(i8 noundef zeroext, ptr noundef, ptr noundef, i8 noundef zeroext, ptr noundef, i64 noundef) local_unnamed_addr #8

declare zeroext i8 @sakke_generateSakkeEncapsulatedData(ptr noundef, ptr noundef, ptr noundef, i64 noundef, ptr noundef, ptr noundef, i64 noundef) local_unnamed_addr #8

declare ptr @BN_bin2bn(ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #8

declare i32 @BN_cmp(ptr noundef, ptr noundef) local_unnamed_addr #8

declare ptr @BN_value_one() local_unnamed_addr #8

declare ptr @community_getq_bn() local_unnamed_addr #8

declare void @BN_clear_free(ptr noundef) local_unnamed_addr #8

declare zeroext i8 @eccsi_sign(ptr noundef, i64 noundef, ptr noundef, i64 noundef, ptr noundef, ptr noundef, i64 noundef, ptr noundef, ptr noundef) local_unnamed_addr #8

declare zeroext i8 @eccsi_verify(ptr noundef, i64 noundef, ptr noundef, i64 noundef, ptr noundef, i64 noundef, ptr noundef) local_unnamed_addr #8

declare zeroext i8 @sakke_extractSharedSecret(ptr noundef, i64 noundef, ptr noundef, i64 noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #8

declare void @community_deleteStorage(...) local_unnamed_addr #8

declare void @ms_deleteParameterSets() local_unnamed_addr #8

; Function Attrs: nounwind uwtable
declare hidden signext i16 @main_initialiseMSInCorrectOrder() local_unnamed_addr #0

attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 #3 = { mustprogress nofree nounwind willreturn memory(argmem: read) "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 = { 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 #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 = { 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 #7 = { mustprogress nofree nounwind willreturn memory(argmem: readwrite) "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 #8 = { "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 #9 = { noreturn 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 #10 = { nounwind }
attributes #11 = { nounwind allocsize(0,1) }
attributes #12 = { nounwind willreturn memory(read) }
attributes #13 = { noreturn nounwind }

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

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


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,ReassociatePass,SCCPPass,SROAPass,SimplifyCFGPass,TailCallElimPass