; LLVM IR from UBIC-repo/core :: NtpEsk/NtpEsk.ll (ZN6NtpEsk12verifyNtpEskEP33NtpEskSignatureVerificationObject)

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

%class.Log = type { i8, i8, ptr, %"class.std::basic_filebuf" }
%"class.std::basic_filebuf" = type { %"class.std::basic_streambuf", %union.pthread_mutex_t, %"class.std::__basic_file", i32, %struct.__mbstate_t, %struct.__mbstate_t, %struct.__mbstate_t, ptr, i64, i8, i8, i8, i8, ptr, ptr, i8, ptr, ptr, i64, ptr, ptr }
%"class.std::basic_streambuf" = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, %"class.std::locale" }
%"class.std::locale" = type { ptr }
%union.pthread_mutex_t = type { %struct.__pthread_mutex_s }
%struct.__pthread_mutex_s = type { i32, i32, i32, i32, i32, i16, i16, %struct.__pthread_internal_list }
%struct.__pthread_internal_list = type { ptr, ptr }
%"class.std::__basic_file" = type <{ ptr, i8, [7 x i8] }>
%struct.__mbstate_t = type { i32, %union.anon }
%union.anon = type { i32 }

@.str = external hidden unnamed_addr constant [42 x i8], align 1
@__const._ZN6NtpEsk12verifyNtpEskEP33NtpEskSignatureVerificationObject.minHash = external hidden unnamed_addr constant [1 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [27 x i8], align 1

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN6NtpEsk12verifyNtpEskEP33NtpEskSignatureVerificationObject(ptr noundef %0) #0 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca i1, align 1
  %3 = alloca ptr, align 8
  %4 = alloca %class.Log, align 8
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca i8, align 1
  %11 = alloca i8, align 1
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca ptr, align 8
  %16 = alloca ptr, align 8
  %17 = alloca ptr, align 8
  %18 = alloca ptr, align 8
  %19 = alloca ptr, align 8
  %20 = alloca ptr, align 8
  %21 = alloca [1 x i8], align 1
  %22 = alloca %class.Log, align 8
  %23 = alloca i32, align 4
  %24 = alloca %class.Log, align 8
  %25 = alloca ptr, align 8
  %26 = alloca ptr, align 8
  %27 = alloca ptr, align 8
  %28 = alloca ptr, align 8
  %29 = alloca ptr, align 8
  %30 = alloca ptr, align 8
  %31 = alloca ptr, align 8
  %32 = alloca ptr, align 8
  %33 = alloca ptr, align 8
  store ptr %0, ptr %3, align 8, !tbaa !5
  %34 = load ptr, ptr %3, align 8, !tbaa !5
  %35 = call noundef ptr @_ZNK33NtpEskSignatureVerificationObject9getPubKeyEv(ptr noundef nonnull align 8 dereferenceable(128) %34)
  %36 = icmp eq ptr %35, null
  br i1 %36, label %63, label %37

37:                                               ; preds = %1
  %38 = load ptr, ptr %3, align 8, !tbaa !5
  %39 = call noundef ptr @_ZNK33NtpEskSignatureVerificationObject14getCurveParamsEv(ptr noundef nonnull align 8 dereferenceable(128) %38)
  %40 = icmp eq ptr %39, null
  br i1 %40, label %63, label %41

41:                                               ; preds = %37
  %42 = load ptr, ptr %3, align 8, !tbaa !5
  %43 = call noundef ptr @_ZNK33NtpEskSignatureVerificationObject4getREv(ptr noundef nonnull align 8 dereferenceable(128) %42)
  %44 = icmp eq ptr %43, null
  br i1 %44, label %63, label %45

45:                                               ; preds = %41
  %46 = load ptr, ptr %3, align 8, !tbaa !5
  %47 = call noundef ptr @_ZNK33NtpEskSignatureVerificationObject5getRpEv(ptr noundef nonnull align 8 dereferenceable(128) %46)
  %48 = icmp eq ptr %47, null
  br i1 %48, label %63, label %49

49:                                               ; preds = %45
  %50 = load ptr, ptr %3, align 8, !tbaa !5
  %51 = call noundef ptr @_ZNK33NtpEskSignatureVerificationObject5getSpEv(ptr noundef nonnull align 8 dereferenceable(128) %50)
  %52 = icmp eq ptr %51, null
  br i1 %52, label %63, label %53

53:                                               ; preds = %49
  %54 = load ptr, ptr %3, align 8, !tbaa !5
  %55 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK33NtpEskSignatureVerificationObject14getMessageHashEv(ptr noundef nonnull align 8 dereferenceable(128) %54)
  %56 = call noundef i64 @_ZNKSt6vectorIhSaIhEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %55) #6
  %57 = icmp ult i64 %56, 2
  br i1 %57, label %63, label %58

58:                                               ; preds = %53
  %59 = load ptr, ptr %3, align 8, !tbaa !5
  %60 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK33NtpEskSignatureVerificationObject17getNewMessageHashEv(ptr noundef nonnull align 8 dereferenceable(128) %59)
  %61 = call noundef i64 @_ZNKSt6vectorIhSaIhEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %60) #6
  %62 = icmp ult i64 %61, 2
  br i1 %62, label %63, label %70

63:                                               ; preds = %58, %53, %49, %45, %41, %37, %1
  call void @llvm.lifetime.start.p0(i64 256, ptr %4) #6
  call void @_ZN3LogC1Eh(ptr noundef nonnull align 8 dereferenceable(256) %4, i8 noundef zeroext 3)
  %64 = invoke noundef nonnull align 8 dereferenceable(256) ptr @_ZN3LoglsEPKc(ptr noundef nonnull align 8 dereferenceable(256) %4, ptr noundef @.str)
          to label %65 unwind label %66

65:                                               ; preds = %63
  call void @_ZN3LogD1Ev(ptr noundef nonnull align 8 dereferenceable(256) %4) #6
  call void @llvm.lifetime.end.p0(i64 256, ptr %4) #6
  store i1 false, ptr %2, align 1
  br label %223

66:                                               ; preds = %63
  %67 = landingpad { ptr, i32 }
          cleanup
  %68 = extractvalue { ptr, i32 } %67, 0
  store ptr %68, ptr %5, align 8
  %69 = extractvalue { ptr, i32 } %67, 1
  store i32 %69, ptr %6, align 4
  call void @_ZN3LogD1Ev(ptr noundef nonnull align 8 dereferenceable(256) %4) #6
  call void @llvm.lifetime.end.p0(i64 256, ptr %4) #6
  br label %225

70:                                               ; preds = %58
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #6
  %71 = call ptr @BN_CTX_new()
  store ptr %71, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #6
  %72 = call ptr @BN_new()
  store ptr %72, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #6
  %73 = call ptr @BN_new()
  store ptr %73, ptr %9, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr %10) #6
  %74 = load ptr, ptr %3, align 8, !tbaa !5
  %75 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK33NtpEskSignatureVerificationObject14getMessageHashEv(ptr noundef nonnull align 8 dereferenceable(128) %74)
  %76 = call noundef i64 @_ZNKSt6vectorIhSaIhEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %75) #6
  %77 = trunc i64 %76 to i8
  store i8 %77, ptr %10, align 1, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 1, ptr %11) #6
  %78 = load ptr, ptr %3, align 8, !tbaa !5
  %79 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK33NtpEskSignatureVerificationObject17getNewMessageHashEv(ptr noundef nonnull align 8 dereferenceable(128) %78)
  %80 = call noundef i64 @_ZNKSt6vectorIhSaIhEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %79) #6
  %81 = trunc i64 %80 to i8
  store i8 %81, ptr %11, align 1, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #6
  %82 = load ptr, ptr %3, align 8, !tbaa !5
  %83 = call noundef ptr @_ZNK33NtpEskSignatureVerificationObject5getSpEv(ptr noundef nonnull align 8 dereferenceable(128) %82)
  store ptr %83, ptr %12, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #6
  %84 = load ptr, ptr %3, align 8, !tbaa !5
  %85 = call noundef ptr @_ZNK33NtpEskSignatureVerificationObject5getRpEv(ptr noundef nonnull align 8 dereferenceable(128) %84)
  store ptr %85, ptr %13, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #6
  %86 = load ptr, ptr %3, align 8, !tbaa !5
  %87 = call noundef ptr @_ZNK33NtpEskSignatureVerificationObject4getREv(ptr noundef nonnull align 8 dereferenceable(128) %86)
  store ptr %87, ptr %14, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #6
  %88 = call ptr @BN_new()
  store ptr %88, ptr %15, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #6
  %89 = load ptr, ptr %3, align 8, !tbaa !5
  %90 = call noundef ptr @_ZNK33NtpEskSignatureVerificationObject14getCurveParamsEv(ptr noundef nonnull align 8 dereferenceable(128) %89)
  store ptr %90, ptr %16, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #6
  %91 = load ptr, ptr %3, align 8, !tbaa !5
  %92 = call noundef ptr @_ZNK33NtpEskSignatureVerificationObject9getPubKeyEv(ptr noundef nonnull align 8 dereferenceable(128) %91)
  store ptr %92, ptr %17, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #6
  %93 = load ptr, ptr %16, align 8, !tbaa !5
  %94 = call ptr @EC_GROUP_get0_generator(ptr noundef %93)
  store ptr %94, ptr %18, align 8, !tbaa !5
  %95 = load ptr, ptr %16, align 8, !tbaa !5
  %96 = load ptr, ptr %14, align 8, !tbaa !5
  %97 = load ptr, ptr %15, align 8, !tbaa !5
  %98 = call i32 @EC_POINT_get_affine_coordinates_GFp(ptr noundef %95, ptr noundef %96, ptr noundef %97, ptr noundef null, ptr noundef null)
  %99 = load ptr, ptr %16, align 8, !tbaa !5
  %100 = load ptr, ptr %9, align 8, !tbaa !5
  %101 = load ptr, ptr %7, align 8, !tbaa !5
  %102 = call i32 @EC_GROUP_get_order(ptr noundef %99, ptr noundef %100, ptr noundef %101)
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #6
  %103 = load ptr, ptr %3, align 8, !tbaa !5
  %104 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK33NtpEskSignatureVerificationObject14getMessageHashEv(ptr noundef nonnull align 8 dereferenceable(128) %103)
  %105 = call noundef ptr @_ZNKSt6vectorIhSaIhEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %104) #6
  %106 = load i8, ptr %10, align 1, !tbaa !9
  %107 = zext i8 %106 to i32
  %108 = call ptr @BN_bin2bn(ptr noundef %105, i32 noundef %107, ptr noundef null)
  store ptr %108, ptr %19, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #6
  %109 = load ptr, ptr %3, align 8, !tbaa !5
  %110 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK33NtpEskSignatureVerificationObject17getNewMessageHashEv(ptr noundef nonnull align 8 dereferenceable(128) %109)
  %111 = call noundef ptr @_ZNKSt6vectorIhSaIhEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %110) #6
  %112 = load i8, ptr %11, align 1, !tbaa !9
  %113 = zext i8 %112 to i32
  %114 = call ptr @BN_bin2bn(ptr noundef %111, i32 noundef %113, ptr noundef null)
  store ptr %114, ptr %20, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr %21) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %21, ptr align 1 @__const._ZN6NtpEsk12verifyNtpEskEP33NtpEskSignatureVerificationObject.minHash, i64 1, i1 false)
  %115 = load ptr, ptr %20, align 8, !tbaa !5
  %116 = getelementptr inbounds [1 x i8], ptr %21, i64 0, i64 0
  %117 = call ptr @BN_bin2bn(ptr noundef %116, i32 noundef 1, ptr noundef null)
  %118 = call i32 @BN_cmp(ptr noundef %115, ptr noundef %117)
  %119 = icmp ne i32 %118, 1
  br i1 %119, label %120, label %128

120:                                              ; preds = %70
  call void @llvm.lifetime.start.p0(i64 256, ptr %22) #6
  call void @_ZN3LogC1Eh(ptr noundef nonnull align 8 dereferenceable(256) %22, i8 noundef zeroext 3)
  %121 = invoke noundef nonnull align 8 dereferenceable(256) ptr @_ZN3LoglsEPKc(ptr noundef nonnull align 8 dereferenceable(256) %22, ptr noundef @.str.1)
          to label %122 unwind label %124

122:                                              ; preds = %120
  call void @_ZN3LogD1Ev(ptr noundef nonnull align 8 dereferenceable(256) %22) #6
  call void @llvm.lifetime.end.p0(i64 256, ptr %22) #6
  %123 = load ptr, ptr %7, align 8, !tbaa !5
  call void @BN_CTX_free(ptr noundef %123)
  store i1 false, ptr %2, align 1
  store i32 1, ptr %23, align 4
  br label %221

124:                                              ; preds = %120
  %125 = landingpad { ptr, i32 }
          cleanup
  %126 = extractvalue { ptr, i32 } %125, 0
  store ptr %126, ptr %5, align 8
  %127 = extractvalue { ptr, i32 } %125, 1
  store i32 %127, ptr %6, align 4
  call void @_ZN3LogD1Ev(ptr noundef nonnull align 8 dereferenceable(256) %22) #6
  call void @llvm.lifetime.end.p0(i64 256, ptr %22) #6
  br label %222

128:                                              ; preds = %70
  %129 = load ptr, ptr %19, align 8, !tbaa !5
  %130 = getelementptr inbounds [1 x i8], ptr %21, i64 0, i64 0
  %131 = call ptr @BN_bin2bn(ptr noundef %130, i32 noundef 1, ptr noundef null)
  %132 = call i32 @BN_cmp(ptr noundef %129, ptr noundef %131)
  %133 = icmp ne i32 %132, 1
  br i1 %133, label %134, label %142

134:                                              ; preds = %128
  call void @llvm.lifetime.start.p0(i64 256, ptr %24) #6
  call void @_ZN3LogC1Eh(ptr noundef nonnull align 8 dereferenceable(256) %24, i8 noundef zeroext 3)
  %135 = invoke noundef nonnull align 8 dereferenceable(256) ptr @_ZN3LoglsEPKc(ptr noundef nonnull align 8 dereferenceable(256) %24, ptr noundef @.str.2)
          to label %136 unwind label %138

136:                                              ; preds = %134
  call void @_ZN3LogD1Ev(ptr noundef nonnull align 8 dereferenceable(256) %24) #6
  call void @llvm.lifetime.end.p0(i64 256, ptr %24) #6
  %137 = load ptr, ptr %7, align 8, !tbaa !5
  call void @BN_CTX_free(ptr noundef %137)
  store i1 false, ptr %2, align 1
  store i32 1, ptr %23, align 4
  br label %221

138:                                              ; preds = %134
  %139 = landingpad { ptr, i32 }
          cleanup
  %140 = extractvalue { ptr, i32 } %139, 0
  store ptr %140, ptr %5, align 8
  %141 = extractvalue { ptr, i32 } %139, 1
  store i32 %141, ptr %6, align 4
  call void @_ZN3LogD1Ev(ptr noundef nonnull align 8 dereferenceable(256) %24) #6
  call void @llvm.lifetime.end.p0(i64 256, ptr %24) #6
  br label %222

142:                                              ; preds = %128
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #6
  %143 = load ptr, ptr %16, align 8, !tbaa !5
  %144 = call ptr @EC_POINT_new(ptr noundef %143)
  store ptr %144, ptr %25, align 8, !tbaa !5
  %145 = load ptr, ptr %16, align 8, !tbaa !5
  %146 = load ptr, ptr %25, align 8, !tbaa !5
  %147 = load ptr, ptr %9, align 8, !tbaa !5
  %148 = load ptr, ptr %18, align 8, !tbaa !5
  %149 = load ptr, ptr %19, align 8, !tbaa !5
  %150 = call i32 @EC_POINT_mul(ptr noundef %145, ptr noundef %146, ptr noundef %147, ptr noundef %148, ptr noundef %149, ptr noundef null)
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #6
  %151 = load ptr, ptr %16, align 8, !tbaa !5
  %152 = call ptr @EC_POINT_new(ptr noundef %151)
  store ptr %152, ptr %26, align 8, !tbaa !5
  %153 = load ptr, ptr %16, align 8, !tbaa !5
  %154 = load ptr, ptr %26, align 8, !tbaa !5
  %155 = load ptr, ptr %9, align 8, !tbaa !5
  %156 = load ptr, ptr %17, align 8, !tbaa !5
  %157 = load ptr, ptr %15, align 8, !tbaa !5
  %158 = call i32 @EC_POINT_mul(ptr noundef %153, ptr noundef %154, ptr noundef %155, ptr noundef %156, ptr noundef %157, ptr noundef null)
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #6
  %159 = load ptr, ptr %16, align 8, !tbaa !5
  %160 = call ptr @EC_POINT_new(ptr noundef %159)
  store ptr %160, ptr %27, align 8, !tbaa !5
  %161 = load ptr, ptr %16, align 8, !tbaa !5
  %162 = load ptr, ptr %27, align 8, !tbaa !5
  %163 = load ptr, ptr %25, align 8, !tbaa !5
  %164 = load ptr, ptr %26, align 8, !tbaa !5
  %165 = call i32 @EC_POINT_add(ptr noundef %161, ptr noundef %162, ptr noundef %163, ptr noundef %164, ptr noundef null)
  %166 = load ptr, ptr %8, align 8, !tbaa !5
  %167 = load ptr, ptr %12, align 8, !tbaa !5
  %168 = load ptr, ptr %9, align 8, !tbaa !5
  %169 = load ptr, ptr %7, align 8, !tbaa !5
  %170 = call ptr @BN_mod_inverse(ptr noundef %166, ptr noundef %167, ptr noundef %168, ptr noundef %169)
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #6
  %171 = call ptr @BN_new()
  store ptr %171, ptr %28, align 8, !tbaa !5
  %172 = load ptr, ptr %28, align 8, !tbaa !5
  %173 = load ptr, ptr %8, align 8, !tbaa !5
  %174 = load ptr, ptr %13, align 8, !tbaa !5
  %175 = load ptr, ptr %9, align 8, !tbaa !5
  %176 = load ptr, ptr %7, align 8, !tbaa !5
  %177 = call i32 @BN_mod_mul(ptr noundef %172, ptr noundef %173, ptr noundef %174, ptr noundef %175, ptr noundef %176)
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #6
  %178 = load ptr, ptr %16, align 8, !tbaa !5
  %179 = call ptr @EC_POINT_new(ptr noundef %178)
  store ptr %179, ptr %29, align 8, !tbaa !5
  %180 = load ptr, ptr %16, align 8, !tbaa !5
  %181 = load ptr, ptr %29, align 8, !tbaa !5
  %182 = load ptr, ptr %9, align 8, !tbaa !5
  %183 = load ptr, ptr %27, align 8, !tbaa !5
  %184 = load ptr, ptr %28, align 8, !tbaa !5
  %185 = call i32 @EC_POINT_mul(ptr noundef %180, ptr noundef %181, ptr noundef %182, ptr noundef %183, ptr noundef %184, ptr noundef null)
  call void @llvm.lifetime.start.p0(i64 8, ptr %30) #6
  %186 = call ptr @BN_new()
  store ptr %186, ptr %30, align 8, !tbaa !5
  %187 = load ptr, ptr %30, align 8, !tbaa !5
  %188 = load ptr, ptr %8, align 8, !tbaa !5
  %189 = load ptr, ptr %20, align 8, !tbaa !5
  %190 = load ptr, ptr %9, align 8, !tbaa !5
  %191 = load ptr, ptr %7, align 8, !tbaa !5
  %192 = call i32 @BN_mod_mul(ptr noundef %187, ptr noundef %188, ptr noundef %189, ptr noundef %190, ptr noundef %191)
  call void @llvm.lifetime.start.p0(i64 8, ptr %31) #6
  %193 = load ptr, ptr %16, align 8, !tbaa !5
  %194 = call ptr @EC_POINT_new(ptr noundef %193)
  store ptr %194, ptr %31, align 8, !tbaa !5
  %195 = load ptr, ptr %16, align 8, !tbaa !5
  %196 = load ptr, ptr %31, align 8, !tbaa !5
  %197 = load ptr, ptr %9, align 8, !tbaa !5
  %198 = load ptr, ptr %14, align 8, !tbaa !5
  %199 = load ptr, ptr %30, align 8, !tbaa !5
  %200 = call i32 @EC_POINT_mul(ptr noundef %195, ptr noundef %196, ptr noundef %197, ptr noundef %198, ptr noundef %199, ptr noundef null)
  call void @llvm.lifetime.start.p0(i64 8, ptr %32) #6
  %201 = load ptr, ptr %16, align 8, !tbaa !5
  %202 = call ptr @EC_POINT_new(ptr noundef %201)
  store ptr %202, ptr %32, align 8, !tbaa !5
  %203 = load ptr, ptr %16, align 8, !tbaa !5
  %204 = load ptr, ptr %32, align 8, !tbaa !5
  %205 = load ptr, ptr %29, align 8, !tbaa !5
  %206 = load ptr, ptr %31, align 8, !tbaa !5
  %207 = call i32 @EC_POINT_add(ptr noundef %203, ptr noundef %204, ptr noundef %205, ptr noundef %206, ptr noundef null)
  call void @llvm.lifetime.start.p0(i64 8, ptr %33) #6
  %208 = call ptr @BN_new()
  store ptr %208, ptr %33, align 8, !tbaa !5
  %209 = load ptr, ptr %16, align 8, !tbaa !5
  %210 = load ptr, ptr %32, align 8, !tbaa !5
  %211 = load ptr, ptr %33, align 8, !tbaa !5
  %212 = call i32 @EC_POINT_get_affine_coordinates_GFp(ptr noundef %209, ptr noundef %210, ptr noundef %211, ptr noundef null, ptr noundef null)
  %213 = load ptr, ptr %7, align 8, !tbaa !5
  call void @BN_CTX_free(ptr noundef %213)
  %214 = load ptr, ptr %33, align 8, !tbaa !5
  %215 = load ptr, ptr %13, align 8, !tbaa !5
  %216 = call i32 @BN_cmp(ptr noundef %214, ptr noundef %215)
  %217 = icmp eq i32 %216, 0
  br i1 %217, label %218, label %219

218:                                              ; preds = %142
  store i1 true, ptr %2, align 1
  store i32 1, ptr %23, align 4
  br label %220

219:                                              ; preds = %142
  store i1 false, ptr %2, align 1
  store i32 1, ptr %23, align 4
  br label %220

220:                                              ; preds = %219, %218
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #6
  br label %221

221:                                              ; preds = %220, %136, %122
  call void @llvm.lifetime.end.p0(i64 1, ptr %21) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #6
  br label %223

222:                                              ; preds = %138, %124
  call void @llvm.lifetime.end.p0(i64 1, ptr %21) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #6
  br label %225

223:                                              ; preds = %221, %65
  %224 = load i1, ptr %2, align 1
  ret i1 %224

225:                                              ; preds = %222, %66
  %226 = load ptr, ptr %5, align 8
  %227 = load i32, ptr %6, align 4
  %228 = insertvalue { ptr, i32 } poison, ptr %226, 0
  %229 = insertvalue { ptr, i32 } %228, i32 %227, 1
  resume { ptr, i32 } %229
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNK33NtpEskSignatureVerificationObject9getPubKeyEv(ptr noundef nonnull align 8 dereferenceable(128)) #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNK33NtpEskSignatureVerificationObject14getCurveParamsEv(ptr noundef nonnull align 8 dereferenceable(128)) #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNK33NtpEskSignatureVerificationObject4getREv(ptr noundef nonnull align 8 dereferenceable(128)) #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNK33NtpEskSignatureVerificationObject5getRpEv(ptr noundef nonnull align 8 dereferenceable(128)) #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNK33NtpEskSignatureVerificationObject5getSpEv(ptr noundef nonnull align 8 dereferenceable(128)) #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(24) ptr @_ZNK33NtpEskSignatureVerificationObject14getMessageHashEv(ptr noundef nonnull align 8 dereferenceable(128)) #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt6vectorIhSaIhEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(24) ptr @_ZNK33NtpEskSignatureVerificationObject17getNewMessageHashEv(ptr noundef nonnull align 8 dereferenceable(128)) #1 align 2

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

declare void @_ZN3LogC1Eh(ptr noundef nonnull align 8 dereferenceable(256), i8 noundef zeroext) unnamed_addr #3

declare noundef nonnull align 8 dereferenceable(256) ptr @_ZN3LoglsEPKc(ptr noundef nonnull align 8 dereferenceable(256), ptr noundef) #3

declare i32 @__gxx_personality_v0(...)

; Function Attrs: nounwind
declare void @_ZN3LogD1Ev(ptr noundef nonnull align 8 dereferenceable(256)) unnamed_addr #4

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

declare ptr @BN_CTX_new() #3

declare ptr @BN_new() #3

declare ptr @EC_GROUP_get0_generator(ptr noundef) #3

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNKSt6vectorIhSaIhEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24)) #1 align 2

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #5

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

declare void @BN_CTX_free(ptr noundef) #3

declare ptr @EC_POINT_new(ptr noundef) #3

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

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

declare ptr @BN_mod_inverse(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #3

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

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

%class.Log = type { i8, i8, ptr, %"class.std::basic_filebuf" }
%"class.std::basic_filebuf" = type { %"class.std::basic_streambuf", %union.pthread_mutex_t, %"class.std::__basic_file", i32, %struct.__mbstate_t, %struct.__mbstate_t, %struct.__mbstate_t, ptr, i64, i8, i8, i8, i8, ptr, ptr, i8, ptr, ptr, i64, ptr, ptr }
%"class.std::basic_streambuf" = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, %"class.std::locale" }
%"class.std::locale" = type { ptr }
%union.pthread_mutex_t = type { %struct.__pthread_mutex_s }
%struct.__pthread_mutex_s = type { i32, i32, i32, i32, i32, i16, i16, %struct.__pthread_internal_list }
%struct.__pthread_internal_list = type { ptr, ptr }
%"class.std::__basic_file" = type <{ ptr, i8, [7 x i8] }>
%struct.__mbstate_t = type { i32, %union.anon }
%union.anon = type { i32 }

@.str = external hidden unnamed_addr constant [42 x i8], align 1
@__const._ZN6NtpEsk12verifyNtpEskEP33NtpEskSignatureVerificationObject.minHash = external hidden unnamed_addr constant [1 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [27 x i8], align 1

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN6NtpEsk12verifyNtpEskEP33NtpEskSignatureVerificationObject(ptr noundef nonnull %0) local_unnamed_addr #0 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca %class.Log, align 8
  %3 = alloca [1 x i8], align 1
  %4 = alloca %class.Log, align 8
  %5 = alloca %class.Log, align 8
  %6 = tail call noundef ptr @_ZNK33NtpEskSignatureVerificationObject9getPubKeyEv(ptr noundef nonnull align 8 dereferenceable(128) %0)
  %7 = icmp eq ptr %6, null
  br i1 %7, label %28, label %8

8:                                                ; preds = %1
  %9 = tail call noundef ptr @_ZNK33NtpEskSignatureVerificationObject14getCurveParamsEv(ptr noundef nonnull align 8 dereferenceable(128) %0)
  %10 = icmp eq ptr %9, null
  br i1 %10, label %28, label %11

11:                                               ; preds = %8
  %12 = tail call noundef ptr @_ZNK33NtpEskSignatureVerificationObject4getREv(ptr noundef nonnull align 8 dereferenceable(128) %0)
  %13 = icmp eq ptr %12, null
  br i1 %13, label %28, label %14

14:                                               ; preds = %11
  %15 = tail call noundef ptr @_ZNK33NtpEskSignatureVerificationObject5getRpEv(ptr noundef nonnull align 8 dereferenceable(128) %0)
  %16 = icmp eq ptr %15, null
  br i1 %16, label %28, label %17

17:                                               ; preds = %14
  %18 = tail call noundef ptr @_ZNK33NtpEskSignatureVerificationObject5getSpEv(ptr noundef nonnull align 8 dereferenceable(128) %0)
  %19 = icmp eq ptr %18, null
  br i1 %19, label %28, label %20

20:                                               ; preds = %17
  %21 = tail call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK33NtpEskSignatureVerificationObject14getMessageHashEv(ptr noundef nonnull align 8 dereferenceable(128) %0)
  %22 = tail call noundef i64 @_ZNKSt6vectorIhSaIhEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %21) #5
  %23 = icmp ult i64 %22, 2
  br i1 %23, label %28, label %24

24:                                               ; preds = %20
  %25 = tail call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK33NtpEskSignatureVerificationObject17getNewMessageHashEv(ptr noundef nonnull align 8 dereferenceable(128) %0)
  %26 = tail call noundef i64 @_ZNKSt6vectorIhSaIhEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %25) #5
  %27 = icmp ult i64 %26, 2
  br i1 %27, label %28, label %33

28:                                               ; preds = %24, %20, %17, %14, %11, %8, %1
  call void @llvm.lifetime.start.p0(i64 256, ptr nonnull %2) #5
  call void @_ZN3LogC1Eh(ptr noundef nonnull align 8 dereferenceable(256) %2, i8 noundef zeroext 3)
  %29 = invoke noundef nonnull align 8 dereferenceable(256) ptr @_ZN3LoglsEPKc(ptr noundef nonnull align 8 dereferenceable(256) %2, ptr noundef nonnull @.str)
          to label %30 unwind label %31

30:                                               ; preds = %28
  call void @_ZN3LogD1Ev(ptr noundef nonnull align 8 dereferenceable(256) %2) #5
  call void @llvm.lifetime.end.p0(i64 256, ptr nonnull %2) #5
  br label %100

31:                                               ; preds = %28
  %32 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3LogD1Ev(ptr noundef nonnull align 8 dereferenceable(256) %2) #5
  call void @llvm.lifetime.end.p0(i64 256, ptr nonnull %2) #5
  br label %101

33:                                               ; preds = %24
  %34 = tail call ptr @BN_CTX_new()
  %35 = tail call ptr @BN_new()
  %36 = tail call ptr @BN_new()
  %37 = tail call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK33NtpEskSignatureVerificationObject14getMessageHashEv(ptr noundef nonnull align 8 dereferenceable(128) %0)
  %38 = tail call noundef i64 @_ZNKSt6vectorIhSaIhEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %37) #5
  %39 = trunc i64 %38 to i32
  %40 = tail call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK33NtpEskSignatureVerificationObject17getNewMessageHashEv(ptr noundef nonnull align 8 dereferenceable(128) %0)
  %41 = tail call noundef i64 @_ZNKSt6vectorIhSaIhEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %40) #5
  %42 = trunc i64 %41 to i32
  %43 = tail call noundef ptr @_ZNK33NtpEskSignatureVerificationObject5getSpEv(ptr noundef nonnull align 8 dereferenceable(128) %0)
  %44 = tail call noundef ptr @_ZNK33NtpEskSignatureVerificationObject5getRpEv(ptr noundef nonnull align 8 dereferenceable(128) %0)
  %45 = tail call noundef ptr @_ZNK33NtpEskSignatureVerificationObject4getREv(ptr noundef nonnull align 8 dereferenceable(128) %0)
  %46 = tail call ptr @BN_new()
  %47 = tail call noundef ptr @_ZNK33NtpEskSignatureVerificationObject14getCurveParamsEv(ptr noundef nonnull align 8 dereferenceable(128) %0)
  %48 = tail call noundef ptr @_ZNK33NtpEskSignatureVerificationObject9getPubKeyEv(ptr noundef nonnull align 8 dereferenceable(128) %0)
  %49 = tail call ptr @EC_GROUP_get0_generator(ptr noundef %47)
  %50 = tail call i32 @EC_POINT_get_affine_coordinates_GFp(ptr noundef %47, ptr noundef %45, ptr noundef %46, ptr noundef null, ptr noundef null)
  %51 = tail call i32 @EC_GROUP_get_order(ptr noundef %47, ptr noundef %36, ptr noundef %34)
  %52 = tail call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK33NtpEskSignatureVerificationObject14getMessageHashEv(ptr noundef nonnull align 8 dereferenceable(128) %0)
  %53 = tail call noundef ptr @_ZNKSt6vectorIhSaIhEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %52) #5
  %54 = and i32 %39, 255
  %55 = tail call ptr @BN_bin2bn(ptr noundef %53, i32 noundef %54, ptr noundef null)
  %56 = tail call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK33NtpEskSignatureVerificationObject17getNewMessageHashEv(ptr noundef nonnull align 8 dereferenceable(128) %0)
  %57 = tail call noundef ptr @_ZNKSt6vectorIhSaIhEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %56) #5
  %58 = and i32 %42, 255
  %59 = tail call ptr @BN_bin2bn(ptr noundef %57, i32 noundef %58, ptr noundef null)
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %3) #5
  %60 = load i8, ptr @__const._ZN6NtpEsk12verifyNtpEskEP33NtpEskSignatureVerificationObject.minHash, align 1
  store i8 %60, ptr %3, align 1
  %61 = call ptr @BN_bin2bn(ptr noundef nonnull %3, i32 noundef 1, ptr noundef null)
  %62 = call i32 @BN_cmp(ptr noundef %59, ptr noundef %61)
  %.not = icmp eq i32 %62, 1
  br i1 %.not, label %68, label %63

63:                                               ; preds = %33
  call void @llvm.lifetime.start.p0(i64 256, ptr nonnull %4) #5
  call void @_ZN3LogC1Eh(ptr noundef nonnull align 8 dereferenceable(256) %4, i8 noundef zeroext 3)
  %64 = invoke noundef nonnull align 8 dereferenceable(256) ptr @_ZN3LoglsEPKc(ptr noundef nonnull align 8 dereferenceable(256) %4, ptr noundef nonnull @.str.1)
          to label %65 unwind label %66

65:                                               ; preds = %63
  call void @_ZN3LogD1Ev(ptr noundef nonnull align 8 dereferenceable(256) %4) #5
  call void @llvm.lifetime.end.p0(i64 256, ptr nonnull %4) #5
  call void @BN_CTX_free(ptr noundef %34)
  br label %98

66:                                               ; preds = %63
  %67 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3LogD1Ev(ptr noundef nonnull align 8 dereferenceable(256) %4) #5
  call void @llvm.lifetime.end.p0(i64 256, ptr nonnull %4) #5
  br label %99

68:                                               ; preds = %33
  %69 = call ptr @BN_bin2bn(ptr noundef nonnull %3, i32 noundef 1, ptr noundef null)
  %70 = call i32 @BN_cmp(ptr noundef %55, ptr noundef %69)
  %.not89 = icmp eq i32 %70, 1
  br i1 %.not89, label %76, label %71

71:                                               ; preds = %68
  call void @llvm.lifetime.start.p0(i64 256, ptr nonnull %5) #5
  call void @_ZN3LogC1Eh(ptr noundef nonnull align 8 dereferenceable(256) %5, i8 noundef zeroext 3)
  %72 = invoke noundef nonnull align 8 dereferenceable(256) ptr @_ZN3LoglsEPKc(ptr noundef nonnull align 8 dereferenceable(256) %5, ptr noundef nonnull @.str.2)
          to label %73 unwind label %74

73:                                               ; preds = %71
  call void @_ZN3LogD1Ev(ptr noundef nonnull align 8 dereferenceable(256) %5) #5
  call void @llvm.lifetime.end.p0(i64 256, ptr nonnull %5) #5
  call void @BN_CTX_free(ptr noundef %34)
  br label %98

74:                                               ; preds = %71
  %75 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3LogD1Ev(ptr noundef nonnull align 8 dereferenceable(256) %5) #5
  call void @llvm.lifetime.end.p0(i64 256, ptr nonnull %5) #5
  br label %99

76:                                               ; preds = %68
  %77 = call ptr @EC_POINT_new(ptr noundef %47)
  %78 = call i32 @EC_POINT_mul(ptr noundef %47, ptr noundef %77, ptr noundef %36, ptr noundef %49, ptr noundef %55, ptr noundef null)
  %79 = call ptr @EC_POINT_new(ptr noundef %47)
  %80 = call i32 @EC_POINT_mul(ptr noundef %47, ptr noundef %79, ptr noundef %36, ptr noundef %48, ptr noundef %46, ptr noundef null)
  %81 = call ptr @EC_POINT_new(ptr noundef %47)
  %82 = call i32 @EC_POINT_add(ptr noundef %47, ptr noundef %81, ptr noundef %77, ptr noundef %79, ptr noundef null)
  %83 = call ptr @BN_mod_inverse(ptr noundef %35, ptr noundef %43, ptr noundef %36, ptr noundef %34)
  %84 = call ptr @BN_new()
  %85 = call i32 @BN_mod_mul(ptr noundef %84, ptr noundef %35, ptr noundef %44, ptr noundef %36, ptr noundef %34)
  %86 = call ptr @EC_POINT_new(ptr noundef %47)
  %87 = call i32 @EC_POINT_mul(ptr noundef %47, ptr noundef %86, ptr noundef %36, ptr noundef %81, ptr noundef %84, ptr noundef null)
  %88 = call ptr @BN_new()
  %89 = call i32 @BN_mod_mul(ptr noundef %88, ptr noundef %35, ptr noundef %59, ptr noundef %36, ptr noundef %34)
  %90 = call ptr @EC_POINT_new(ptr noundef %47)
  %91 = call i32 @EC_POINT_mul(ptr noundef %47, ptr noundef %90, ptr noundef %36, ptr noundef %45, ptr noundef %88, ptr noundef null)
  %92 = call ptr @EC_POINT_new(ptr noundef %47)
  %93 = call i32 @EC_POINT_add(ptr noundef %47, ptr noundef %92, ptr noundef %86, ptr noundef %90, ptr noundef null)
  %94 = call ptr @BN_new()
  %95 = call i32 @EC_POINT_get_affine_coordinates_GFp(ptr noundef %47, ptr noundef %92, ptr noundef %94, ptr noundef null, ptr noundef null)
  call void @BN_CTX_free(ptr noundef %34)
  %96 = call i32 @BN_cmp(ptr noundef %94, ptr noundef %44)
  %97 = icmp eq i32 %96, 0
  br label %98

98:                                               ; preds = %76, %73, %65
  %.1 = phi i1 [ false, %65 ], [ false, %73 ], [ %97, %76 ]
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %3) #5
  br label %100

99:                                               ; preds = %74, %66
  %.pn = phi { ptr, i32 } [ %67, %66 ], [ %75, %74 ]
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %3) #5
  br label %101

100:                                              ; preds = %98, %30
  %.2 = phi i1 [ false, %30 ], [ %.1, %98 ]
  ret i1 %.2

101:                                              ; preds = %99, %31
  %.pn91 = phi { ptr, i32 } [ %32, %31 ], [ %.pn, %99 ]
  resume { ptr, i32 } %.pn91
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNK33NtpEskSignatureVerificationObject9getPubKeyEv(ptr noundef nonnull align 8 dereferenceable(128)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNK33NtpEskSignatureVerificationObject14getCurveParamsEv(ptr noundef nonnull align 8 dereferenceable(128)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNK33NtpEskSignatureVerificationObject4getREv(ptr noundef nonnull align 8 dereferenceable(128)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNK33NtpEskSignatureVerificationObject5getRpEv(ptr noundef nonnull align 8 dereferenceable(128)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNK33NtpEskSignatureVerificationObject5getSpEv(ptr noundef nonnull align 8 dereferenceable(128)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(24) ptr @_ZNK33NtpEskSignatureVerificationObject14getMessageHashEv(ptr noundef nonnull align 8 dereferenceable(128)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt6vectorIhSaIhEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(24) ptr @_ZNK33NtpEskSignatureVerificationObject17getNewMessageHashEv(ptr noundef nonnull align 8 dereferenceable(128)) local_unnamed_addr #1 align 2

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

declare void @_ZN3LogC1Eh(ptr noundef nonnull align 8 dereferenceable(256), i8 noundef zeroext) unnamed_addr #3

declare noundef nonnull align 8 dereferenceable(256) ptr @_ZN3LoglsEPKc(ptr noundef nonnull align 8 dereferenceable(256), ptr noundef) local_unnamed_addr #3

declare i32 @__gxx_personality_v0(...)

; Function Attrs: nounwind
declare void @_ZN3LogD1Ev(ptr noundef nonnull align 8 dereferenceable(256)) unnamed_addr #4

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

declare ptr @BN_CTX_new() local_unnamed_addr #3

declare ptr @BN_new() local_unnamed_addr #3

declare ptr @EC_GROUP_get0_generator(ptr noundef) local_unnamed_addr #3

declare i32 @EC_POINT_get_affine_coordinates_GFp(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #3

declare i32 @EC_GROUP_get_order(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #3

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNKSt6vectorIhSaIhEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #1 align 2

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

declare void @BN_CTX_free(ptr noundef) local_unnamed_addr #3

declare ptr @EC_POINT_new(ptr noundef) local_unnamed_addr #3

declare i32 @EC_POINT_mul(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #3

declare i32 @EC_POINT_add(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #3

declare ptr @BN_mod_inverse(ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #3

declare i32 @BN_mod_mul(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #3

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

!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)"}


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