; LLVM IR from cryspen/libcrux :: sys/hacl/c/src (Hacl_RSAPSS)

; 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 = external hidden unnamed_addr constant [70 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [78 x i8], align 1

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

; Function Attrs: inlinehint nounwind uwtable
declare hidden i32 @hash_len(i8 noundef zeroext) #1

declare i32 @printf(ptr noundef, ...) #2

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

; Function Attrs: nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave.p0() #4

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #5

; Function Attrs: inlinehint nounwind uwtable
declare hidden void @Hacl_Bignum_Convert_bn_from_bytes_be_uint64(i32 noundef, ptr noundef, ptr noundef) #1

declare i64 @Hacl_Bignum_ModInvLimb_mod_inv_uint64(i64 noundef) #2

declare void @Hacl_Bignum_Exponentiation_bn_mod_exp_vartime_precomp_u64(i32 noundef, ptr noundef, i64 noundef, ptr noundef, ptr noundef, i32 noundef, ptr noundef, ptr noundef) #2

; Function Attrs: noinline nounwind uwtable
declare hidden i64 @FStar_UInt64_eq_mask(i64 noundef, i64 noundef) #6

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

; Function Attrs: inlinehint nounwind uwtable
declare hidden void @Hacl_Bignum_Convert_bn_to_bytes_be_uint64(i32 noundef, ptr noundef, ptr noundef) #1

; Function Attrs: nocallback nofree nosync nounwind willreturn
declare void @llvm.stackrestore.p0(ptr) #4

; Function Attrs: nounwind uwtable
define dso_local zeroext i1 @Hacl_RSAPSS_rsapss_verify(i8 noundef zeroext %0, i32 noundef %1, i32 noundef %2, ptr noundef %3, i32 noundef %4, i32 noundef %5, ptr noundef %6, i32 noundef %7, ptr noundef %8) #7 {
  %10 = alloca i1, align 1
  %11 = alloca i8, align 1
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca ptr, align 8
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca ptr, align 8
  %18 = alloca i32, align 4
  %19 = alloca ptr, align 8
  %20 = alloca i32, align 4
  %21 = alloca i8, align 1
  %22 = alloca i32, align 4
  %23 = alloca ptr, align 8
  %24 = alloca i64, align 8
  %25 = alloca i32, align 4
  %26 = alloca i32, align 4
  %27 = alloca i64, align 8
  %28 = alloca i32, align 4
  %29 = alloca ptr, align 8
  %30 = alloca ptr, align 8
  %31 = alloca ptr, align 8
  %32 = alloca i64, align 8
  %33 = alloca i32, align 4
  %34 = alloca i64, align 8
  %35 = alloca i64, align 8
  %36 = alloca i64, align 8
  %37 = alloca i8, align 1
  %38 = alloca i64, align 8
  %39 = alloca i8, align 1
  %40 = alloca i32, align 4
  %41 = alloca i32, align 4
  %42 = alloca i64, align 8
  %43 = alloca i64, align 8
  %44 = alloca i8, align 1
  %45 = alloca i8, align 1
  %46 = alloca i32, align 4
  %47 = alloca i32, align 4
  %48 = alloca ptr, align 8
  %49 = alloca i64, align 8
  %50 = alloca ptr, align 8
  %51 = alloca i8, align 1
  %52 = alloca i32, align 4
  store i8 %0, ptr %11, align 1, !tbaa !5
  store i32 %1, ptr %12, align 4, !tbaa !8
  store i32 %2, ptr %13, align 4, !tbaa !8
  store ptr %3, ptr %14, align 8, !tbaa !10
  store i32 %4, ptr %15, align 4, !tbaa !8
  store i32 %5, ptr %16, align 4, !tbaa !8
  store ptr %6, ptr %17, align 8, !tbaa !10
  store i32 %7, ptr %18, align 4, !tbaa !8
  store ptr %8, ptr %19, align 8, !tbaa !10
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #8
  %53 = load i8, ptr %11, align 1, !tbaa !5
  %54 = call i32 @hash_len(i8 noundef zeroext %53)
  store i32 %54, ptr %20, align 4, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 1, ptr %21) #8
  %55 = load i32, ptr %15, align 4, !tbaa !8
  %56 = load i32, ptr %20, align 4, !tbaa !8
  %57 = sub i32 -1, %56
  %58 = sub i32 %57, 8
  %59 = icmp ule i32 %55, %58
  br i1 %59, label %60, label %67

60:                                               ; preds = %9
  %61 = load i32, ptr %16, align 4, !tbaa !8
  %62 = load i32, ptr %12, align 4, !tbaa !8
  %63 = sub i32 %62, 1
  %64 = udiv i32 %63, 8
  %65 = add i32 %64, 1
  %66 = icmp eq i32 %61, %65
  br label %67

67:                                               ; preds = %60, %9
  %68 = phi i1 [ false, %9 ], [ %66, %60 ]
  %69 = zext i1 %68 to i8
  store i8 %69, ptr %21, align 1, !tbaa !12
  %70 = load i8, ptr %21, align 1, !tbaa !12, !range !14, !noundef !15
  %71 = trunc i8 %70 to i1
  br i1 %71, label %72, label %273

72:                                               ; preds = %67
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #8
  %73 = load i32, ptr %12, align 4, !tbaa !8
  %74 = sub i32 %73, 1
  %75 = udiv i32 %74, 64
  %76 = add i32 %75, 1
  store i32 %76, ptr %22, align 4, !tbaa !8
  br label %77

77:                                               ; preds = %72
  %78 = load i32, ptr %22, align 4, !tbaa !8
  %79 = zext i32 %78 to i64
  %80 = icmp ugt i64 %79, 2305843009213693951
  br i1 %80, label %81, label %83

81:                                               ; preds = %77
  %82 = call i32 (ptr, ...) @printf(ptr noundef @.str, ptr noundef @.str.1, i32 noundef 538)
  call void @exit(i32 noundef 253) #9
  unreachable

83:                                               ; preds = %77
  br label %84

84:                                               ; preds = %83
  br label %85

85:                                               ; preds = %84
  %86 = load i32, ptr %22, align 4, !tbaa !8
  %87 = zext i32 %86 to i64
  %88 = call ptr @llvm.stacksave.p0()
  store ptr %88, ptr %23, align 8
  %89 = alloca i64, i64 %87, align 16
  store i64 %87, ptr %24, align 8
  %90 = load i32, ptr %22, align 4, !tbaa !8
  %91 = zext i32 %90 to i64
  %92 = mul i64 %91, 8
  call void @llvm.memset.p0.i64(ptr align 16 %89, i8 0, i64 %92, i1 false)
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #8
  %93 = load i32, ptr %12, align 4, !tbaa !8
  %94 = sub i32 %93, 1
  %95 = udiv i32 %94, 64
  %96 = add i32 %95, 1
  store i32 %96, ptr %25, align 4, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #8
  %97 = load i32, ptr %12, align 4, !tbaa !8
  %98 = sub i32 %97, 1
  %99 = udiv i32 %98, 8
  %100 = add i32 %99, 1
  store i32 %100, ptr %26, align 4, !tbaa !8
  br label %101

101:                                              ; preds = %85
  %102 = load i32, ptr %25, align 4, !tbaa !8
  %103 = zext i32 %102 to i64
  %104 = icmp ugt i64 %103, 2305843009213693951
  br i1 %104, label %105, label %107

105:                                              ; preds = %101
  %106 = call i32 (ptr, ...) @printf(ptr noundef @.str, ptr noundef @.str.1, i32 noundef 543)
  call void @exit(i32 noundef 253) #9
  unreachable

107:                                              ; preds = %101
  br label %108

108:                                              ; preds = %107
  br label %109

109:                                              ; preds = %108
  %110 = load i32, ptr %25, align 4, !tbaa !8
  %111 = zext i32 %110 to i64
  %112 = alloca i64, i64 %111, align 16
  store i64 %111, ptr %27, align 8
  %113 = load i32, ptr %25, align 4, !tbaa !8
  %114 = zext i32 %113 to i64
  %115 = mul i64 %114, 8
  call void @llvm.memset.p0.i64(ptr align 16 %112, i8 0, i64 %115, i1 false)
  %116 = load i32, ptr %26, align 4, !tbaa !8
  %117 = load ptr, ptr %17, align 8, !tbaa !10
  call void @Hacl_Bignum_Convert_bn_from_bytes_be_uint64(i32 noundef %116, ptr noundef %117, ptr noundef %112)
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #8
  %118 = load i32, ptr %12, align 4, !tbaa !8
  %119 = sub i32 %118, 1
  %120 = udiv i32 %119, 64
  %121 = add i32 %120, 1
  store i32 %121, ptr %28, align 4, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #8
  %122 = load ptr, ptr %14, align 8, !tbaa !10
  store ptr %122, ptr %29, align 8, !tbaa !10
  call void @llvm.lifetime.start.p0(i64 8, ptr %30) #8
  %123 = load ptr, ptr %14, align 8, !tbaa !10
  %124 = load i32, ptr %28, align 4, !tbaa !8
  %125 = zext i32 %124 to i64
  %126 = getelementptr inbounds i64, ptr %123, i64 %125
  store ptr %126, ptr %30, align 8, !tbaa !10
  call void @llvm.lifetime.start.p0(i64 8, ptr %31) #8
  %127 = load ptr, ptr %14, align 8, !tbaa !10
  %128 = load i32, ptr %28, align 4, !tbaa !8
  %129 = zext i32 %128 to i64
  %130 = getelementptr inbounds i64, ptr %127, i64 %129
  %131 = load i32, ptr %28, align 4, !tbaa !8
  %132 = zext i32 %131 to i64
  %133 = getelementptr inbounds i64, ptr %130, i64 %132
  store ptr %133, ptr %31, align 8, !tbaa !10
  call void @llvm.lifetime.start.p0(i64 8, ptr %32) #8
  store i64 0, ptr %32, align 8, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 4, ptr %33) #8
  store i32 0, ptr %33, align 4, !tbaa !8
  br label %134

134:                                              ; preds = %174, %109
  %135 = load i32, ptr %33, align 4, !tbaa !8
  %136 = load i32, ptr %28, align 4, !tbaa !8
  %137 = icmp ult i32 %135, %136
  br i1 %137, label %139, label %138

138:                                              ; preds = %134
  call void @llvm.lifetime.end.p0(i64 4, ptr %33) #8
  br label %177

139:                                              ; preds = %134
  call void @llvm.lifetime.start.p0(i64 8, ptr %34) #8
  %140 = load i32, ptr %33, align 4, !tbaa !8
  %141 = zext i32 %140 to i64
  %142 = getelementptr inbounds i64, ptr %112, i64 %141
  %143 = load i64, ptr %142, align 8, !tbaa !16
  %144 = load ptr, ptr %29, align 8, !tbaa !10
  %145 = load i32, ptr %33, align 4, !tbaa !8
  %146 = zext i32 %145 to i64
  %147 = getelementptr inbounds i64, ptr %144, i64 %146
  %148 = load i64, ptr %147, align 8, !tbaa !16
  %149 = call i64 @FStar_UInt64_eq_mask(i64 noundef %143, i64 noundef %148)
  store i64 %149, ptr %34, align 8, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 8, ptr %35) #8
  %150 = load i32, ptr %33, align 4, !tbaa !8
  %151 = zext i32 %150 to i64
  %152 = getelementptr inbounds i64, ptr %112, i64 %151
  %153 = load i64, ptr %152, align 8, !tbaa !16
  %154 = load ptr, ptr %29, align 8, !tbaa !10
  %155 = load i32, ptr %33, align 4, !tbaa !8
  %156 = zext i32 %155 to i64
  %157 = getelementptr inbounds i64, ptr %154, i64 %156
  %158 = load i64, ptr %157, align 8, !tbaa !16
  %159 = call i64 @FStar_UInt64_gte_mask(i64 noundef %153, i64 noundef %158)
  %160 = xor i64 %159, -1
  store i64 %160, ptr %35, align 8, !tbaa !16
  %161 = load i64, ptr %34, align 8, !tbaa !16
  %162 = load i64, ptr %32, align 8, !tbaa !16
  %163 = and i64 %161, %162
  %164 = load i64, ptr %34, align 8, !tbaa !16
  %165 = xor i64 %164, -1
  %166 = load i64, ptr %35, align 8, !tbaa !16
  %167 = and i64 %166, -1
  %168 = load i64, ptr %35, align 8, !tbaa !16
  %169 = xor i64 %168, -1
  %170 = and i64 %169, 0
  %171 = or i64 %167, %170
  %172 = and i64 %165, %171
  %173 = or i64 %163, %172
  store i64 %173, ptr %32, align 8, !tbaa !16
  call void @llvm.lifetime.end.p0(i64 8, ptr %35) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %34) #8
  br label %174

174:                                              ; preds = %139
  %175 = load i32, ptr %33, align 4, !tbaa !8
  %176 = add i32 %175, 1
  store i32 %176, ptr %33, align 4, !tbaa !8
  br label %134, !llvm.loop !18

177:                                              ; preds = %138
  call void @llvm.lifetime.start.p0(i64 8, ptr %36) #8
  %178 = load i64, ptr %32, align 8, !tbaa !16
  store i64 %178, ptr %36, align 8, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 1, ptr %37) #8
  %179 = load i64, ptr %36, align 8, !tbaa !16
  %180 = icmp eq i64 %179, -1
  br i1 %180, label %181, label %225

181:                                              ; preds = %177
  call void @llvm.lifetime.start.p0(i64 8, ptr %38) #8
  %182 = load ptr, ptr %29, align 8, !tbaa !10
  %183 = getelementptr inbounds i64, ptr %182, i64 0
  %184 = load i64, ptr %183, align 8, !tbaa !16
  %185 = call i64 @Hacl_Bignum_ModInvLimb_mod_inv_uint64(i64 noundef %184)
  store i64 %185, ptr %38, align 8, !tbaa !16
  %186 = load i32, ptr %12, align 4, !tbaa !8
  %187 = sub i32 %186, 1
  %188 = udiv i32 %187, 64
  %189 = add i32 %188, 1
  %190 = load ptr, ptr %29, align 8, !tbaa !10
  %191 = load i64, ptr %38, align 8, !tbaa !16
  %192 = load ptr, ptr %30, align 8, !tbaa !10
  %193 = load i32, ptr %13, align 4, !tbaa !8
  %194 = load ptr, ptr %31, align 8, !tbaa !10
  call void @Hacl_Bignum_Exponentiation_bn_mod_exp_vartime_precomp_u64(i32 noundef %189, ptr noundef %190, i64 noundef %191, ptr noundef %192, ptr noundef %112, i32 noundef %193, ptr noundef %194, ptr noundef %89)
  call void @llvm.lifetime.start.p0(i64 1, ptr %39) #8
  %195 = load i32, ptr %12, align 4, !tbaa !8
  %196 = sub i32 %195, 1
  %197 = urem i32 %196, 8
  %198 = icmp eq i32 %197, 0
  br i1 %198, label %200, label %199

199:                                              ; preds = %181
  store i8 1, ptr %39, align 1, !tbaa !12
  br label %219

200:                                              ; preds = %181
  call void @llvm.lifetime.start.p0(i64 4, ptr %40) #8
  %201 = load i32, ptr %12, align 4, !tbaa !8
  %202 = sub i32 %201, 1
  %203 = udiv i32 %202, 64
  store i32 %203, ptr %40, align 4, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 4, ptr %41) #8
  %204 = load i32, ptr %12, align 4, !tbaa !8
  %205 = sub i32 %204, 1
  %206 = urem i32 %205, 64
  store i32 %206, ptr %41, align 4, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 8, ptr %42) #8
  %207 = load i32, ptr %40, align 4, !tbaa !8
  %208 = zext i32 %207 to i64
  %209 = getelementptr inbounds i64, ptr %89, i64 %208
  %210 = load i64, ptr %209, align 8, !tbaa !16
  store i64 %210, ptr %42, align 8, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 8, ptr %43) #8
  %211 = load i64, ptr %42, align 8, !tbaa !16
  %212 = load i32, ptr %41, align 4, !tbaa !8
  %213 = zext i32 %212 to i64
  %214 = lshr i64 %211, %213
  %215 = and i64 %214, 1
  store i64 %215, ptr %43, align 8, !tbaa !16
  %216 = load i64, ptr %43, align 8, !tbaa !16
  %217 = icmp eq i64 %216, 0
  %218 = zext i1 %217 to i8
  store i8 %218, ptr %39, align 1, !tbaa !12
  call void @llvm.lifetime.end.p0(i64 8, ptr %43) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %42) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %41) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %40) #8
  br label %219

219:                                              ; preds = %200, %199
  %220 = load i8, ptr %39, align 1, !tbaa !12, !range !14, !noundef !15
  %221 = trunc i8 %220 to i1
  br i1 %221, label %222, label %223

222:                                              ; preds = %219
  store i8 1, ptr %37, align 1, !tbaa !12
  br label %224

223:                                              ; preds = %219
  store i8 0, ptr %37, align 1, !tbaa !12
  br label %224

224:                                              ; preds = %223, %222
  call void @llvm.lifetime.end.p0(i64 1, ptr %39) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %38) #8
  br label %226

225:                                              ; preds = %177
  store i8 0, ptr %37, align 1, !tbaa !12
  br label %226

226:                                              ; preds = %225, %224
  call void @llvm.lifetime.start.p0(i64 1, ptr %44) #8
  %227 = load i8, ptr %37, align 1, !tbaa !12, !range !14, !noundef !15
  %228 = trunc i8 %227 to i1
  %229 = zext i1 %228 to i8
  store i8 %229, ptr %44, align 1, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 1, ptr %45) #8
  %230 = load i8, ptr %44, align 1, !tbaa !12, !range !14, !noundef !15
  %231 = trunc i8 %230 to i1
  %232 = zext i1 %231 to i8
  store i8 %232, ptr %45, align 1, !tbaa !12
  %233 = load i8, ptr %45, align 1, !tbaa !12, !range !14, !noundef !15
  %234 = trunc i8 %233 to i1
  br i1 %234, label %235, label %270

235:                                              ; preds = %226
  call void @llvm.lifetime.start.p0(i64 4, ptr %46) #8
  %236 = load i32, ptr %12, align 4, !tbaa !8
  %237 = sub i32 %236, 1
  store i32 %237, ptr %46, align 4, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 4, ptr %47) #8
  %238 = load i32, ptr %46, align 4, !tbaa !8
  %239 = sub i32 %238, 1
  %240 = udiv i32 %239, 8
  %241 = add i32 %240, 1
  store i32 %241, ptr %47, align 4, !tbaa !8
  br label %242

242:                                              ; preds = %235
  %243 = load i32, ptr %47, align 4, !tbaa !8
  %244 = zext i32 %243 to i64
  %245 = icmp ugt i64 %244, -1
  br i1 %245, label %246, label %248

246:                                              ; preds = %242
  %247 = call i32 (ptr, ...) @printf(ptr noundef @.str, ptr noundef @.str.1, i32 noundef 603)
  call void @exit(i32 noundef 253) #9
  unreachable

248:                                              ; preds = %242
  br label %249

249:                                              ; preds = %248
  br label %250

250:                                              ; preds = %249
  %251 = load i32, ptr %47, align 4, !tbaa !8
  %252 = zext i32 %251 to i64
  %253 = call ptr @llvm.stacksave.p0()
  store ptr %253, ptr %48, align 8
  %254 = alloca i8, i64 %252, align 16
  store i64 %252, ptr %49, align 8
  %255 = load i32, ptr %47, align 4, !tbaa !8
  %256 = zext i32 %255 to i64
  %257 = mul i64 %256, 1
  call void @llvm.memset.p0.i64(ptr align 16 %254, i8 0, i64 %257, i1 false)
  call void @llvm.lifetime.start.p0(i64 8, ptr %50) #8
  store ptr %89, ptr %50, align 8, !tbaa !10
  %258 = load i32, ptr %47, align 4, !tbaa !8
  %259 = load ptr, ptr %50, align 8, !tbaa !10
  call void @Hacl_Bignum_Convert_bn_to_bytes_be_uint64(i32 noundef %258, ptr noundef %259, ptr noundef %254)
  call void @llvm.lifetime.start.p0(i64 1, ptr %51) #8
  %260 = load i8, ptr %11, align 1, !tbaa !5
  %261 = load i32, ptr %15, align 4, !tbaa !8
  %262 = load i32, ptr %18, align 4, !tbaa !8
  %263 = load ptr, ptr %19, align 8, !tbaa !10
  %264 = load i32, ptr %46, align 4, !tbaa !8
  %265 = call zeroext i1 @pss_verify(i8 noundef zeroext %260, i32 noundef %261, i32 noundef %262, ptr noundef %263, i32 noundef %264, ptr noundef %254)
  %266 = zext i1 %265 to i8
  store i8 %266, ptr %51, align 1, !tbaa !12
  %267 = load i8, ptr %51, align 1, !tbaa !12, !range !14, !noundef !15
  %268 = trunc i8 %267 to i1
  store i1 %268, ptr %10, align 1
  store i32 1, ptr %52, align 4
  call void @llvm.lifetime.end.p0(i64 1, ptr %51) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %50) #8
  %269 = load ptr, ptr %48, align 8
  call void @llvm.stackrestore.p0(ptr %269)
  call void @llvm.lifetime.end.p0(i64 4, ptr %47) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %46) #8
  br label %271

270:                                              ; preds = %226
  store i1 false, ptr %10, align 1
  store i32 1, ptr %52, align 4
  br label %271

271:                                              ; preds = %270, %250
  call void @llvm.lifetime.end.p0(i64 1, ptr %45) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %44) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %37) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %36) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #8
  %272 = load ptr, ptr %23, align 8
  call void @llvm.stackrestore.p0(ptr %272)
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #8
  br label %274

273:                                              ; preds = %67
  store i1 false, ptr %10, align 1
  store i32 1, ptr %52, align 4
  br label %274

274:                                              ; preds = %273, %271
  call void @llvm.lifetime.end.p0(i64 1, ptr %21) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #8
  %275 = load i1, ptr %10, align 1
  ret i1 %275
}

; Function Attrs: noinline nounwind uwtable
declare hidden i64 @FStar_UInt64_gte_mask(i64 noundef, i64 noundef) #6

; Function Attrs: inlinehint nounwind uwtable
declare hidden zeroext i1 @pss_verify(i8 noundef zeroext, i32 noundef, i32 noundef, ptr noundef, i32 noundef, ptr noundef) #1

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { inlinehint 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 = { "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 = { 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 #4 = { nocallback nofree nosync nounwind willreturn }
attributes #5 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #6 = { noinline 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 #7 = { 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 #8 = { nounwind }
attributes #9 = { 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 = !{!"omnipotent char", !7, i64 0}
!7 = !{!"Simple C/C++ TBAA"}
!8 = !{!9, !9, i64 0}
!9 = !{!"int", !6, i64 0}
!10 = !{!11, !11, i64 0}
!11 = !{!"any pointer", !6, i64 0}
!12 = !{!13, !13, i64 0}
!13 = !{!"_Bool", !6, i64 0}
!14 = !{i8 0, i8 2}
!15 = !{}
!16 = !{!17, !17, i64 0}
!17 = !{!"long", !6, i64 0}
!18 = distinct !{!18, !19}
!19 = !{!"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"

; Function Attrs: inlinehint nounwind uwtable
declare hidden i32 @hash_len(i8 noundef zeroext) local_unnamed_addr #0

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave.p0() #1

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #2

; Function Attrs: inlinehint nounwind uwtable
declare hidden void @Hacl_Bignum_Convert_bn_from_bytes_be_uint64(i32 noundef, ptr noundef, ptr noundef) local_unnamed_addr #0

declare i64 @Hacl_Bignum_ModInvLimb_mod_inv_uint64(i64 noundef) local_unnamed_addr #3

declare void @Hacl_Bignum_Exponentiation_bn_mod_exp_vartime_precomp_u64(i32 noundef, ptr noundef, i64 noundef, ptr noundef, ptr noundef, i32 noundef, ptr noundef, ptr noundef) local_unnamed_addr #3

; Function Attrs: noinline nounwind uwtable
declare hidden i64 @FStar_UInt64_eq_mask(i64 noundef, i64 noundef) local_unnamed_addr #4

; Function Attrs: inlinehint nounwind uwtable
declare hidden void @Hacl_Bignum_Convert_bn_to_bytes_be_uint64(i32 noundef, ptr noundef, ptr noundef) local_unnamed_addr #0

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn
declare void @llvm.stackrestore.p0(ptr) #1

; Function Attrs: nounwind uwtable
define dso_local zeroext i1 @Hacl_RSAPSS_rsapss_verify(i8 noundef zeroext %0, i32 noundef %1, i32 noundef %2, ptr noundef %3, i32 noundef %4, i32 noundef %5, ptr noundef %6, i32 noundef %7, ptr noundef %8) local_unnamed_addr #5 {
  %10 = tail call i32 @hash_len(i8 noundef zeroext %0)
  %11 = sub i32 -9, %10
  %.not = icmp uge i32 %11, %4
  %12 = add i32 %1, -1
  %13 = lshr i32 %12, 3
  %14 = add nuw nsw i32 %13, 1
  %15 = icmp eq i32 %14, %5
  %16 = select i1 %.not, i1 %15, i1 false
  br i1 %16, label %17, label %62

17:                                               ; preds = %9
  %18 = lshr i32 %12, 6
  %19 = add nuw nsw i32 %18, 1
  %20 = zext nneg i32 %19 to i64
  %21 = tail call ptr @llvm.stacksave.p0()
  %22 = alloca i64, i64 %20, align 16
  %23 = shl nuw nsw i64 %20, 3
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(1) %22, i8 0, i64 %23, i1 false)
  %24 = alloca i64, i64 %20, align 16
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(1) %24, i8 0, i64 %23, i1 false)
  call void @Hacl_Bignum_Convert_bn_from_bytes_be_uint64(i32 noundef %5, ptr noundef %6, ptr noundef nonnull %24)
  %25 = getelementptr inbounds i64, ptr %3, i64 %20
  br label %28

26:                                               ; preds = %28
  %27 = icmp eq i64 %39, -1
  br i1 %27, label %40, label %.critedge

28:                                               ; preds = %17, %28
  %indvars.iv = phi i64 [ 0, %17 ], [ %indvars.iv.next, %28 ]
  %.07383 = phi i64 [ 0, %17 ], [ %39, %28 ]
  %29 = getelementptr inbounds i64, ptr %24, i64 %indvars.iv
  %30 = load i64, ptr %29, align 8, !tbaa !5
  %31 = getelementptr inbounds i64, ptr %3, i64 %indvars.iv
  %32 = load i64, ptr %31, align 8, !tbaa !5
  %33 = call i64 @FStar_UInt64_eq_mask(i64 noundef %30, i64 noundef %32)
  %34 = load i64, ptr %29, align 8, !tbaa !5
  %35 = load i64, ptr %31, align 8, !tbaa !5
  %36 = call i64 @FStar_UInt64_gte_mask(i64 noundef %34, i64 noundef %35)
  %37 = and i64 %33, %.07383
  %.demorgan = or i64 %36, %33
  %38 = xor i64 %.demorgan, -1
  %39 = or i64 %37, %38
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %20
  br i1 %exitcond.not, label %26, label %28, !llvm.loop !9

40:                                               ; preds = %26
  %41 = getelementptr inbounds i64, ptr %25, i64 %20
  %42 = load i64, ptr %3, align 8, !tbaa !5
  %43 = call i64 @Hacl_Bignum_ModInvLimb_mod_inv_uint64(i64 noundef %42) #6
  call void @Hacl_Bignum_Exponentiation_bn_mod_exp_vartime_precomp_u64(i32 noundef %19, ptr noundef nonnull %3, i64 noundef %43, ptr noundef nonnull %25, ptr noundef nonnull %24, i32 noundef %2, ptr noundef nonnull %41, ptr noundef nonnull %22) #6
  %44 = and i32 %12, 7
  %45 = icmp eq i32 %44, 0
  br i1 %45, label %46, label %.critedge81

46:                                               ; preds = %40
  %47 = and i32 %12, 56
  %48 = zext nneg i32 %18 to i64
  %49 = getelementptr inbounds i64, ptr %22, i64 %48
  %50 = load i64, ptr %49, align 8, !tbaa !5
  %51 = zext nneg i32 %47 to i64
  %52 = shl nuw nsw i64 1, %51
  %53 = and i64 %50, %52
  %54 = icmp eq i64 %53, 0
  br i1 %54, label %.critedge81, label %.critedge

.critedge81:                                      ; preds = %40, %46
  %55 = add i32 %1, -2
  %56 = lshr i32 %55, 3
  %57 = add nuw nsw i32 %56, 1
  %58 = zext nneg i32 %57 to i64
  %59 = call ptr @llvm.stacksave.p0()
  %60 = alloca i8, i64 %58, align 16
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(1) %60, i8 0, i64 %58, i1 false)
  call void @Hacl_Bignum_Convert_bn_to_bytes_be_uint64(i32 noundef %57, ptr noundef nonnull %22, ptr noundef nonnull %60)
  %61 = call zeroext i1 @pss_verify(i8 noundef zeroext %0, i32 noundef %4, i32 noundef %7, ptr noundef %8, i32 noundef %12, ptr noundef nonnull %60)
  call void @llvm.stackrestore.p0(ptr %59)
  br label %.critedge

.critedge:                                        ; preds = %46, %26, %.critedge81
  %.0 = phi i1 [ %61, %.critedge81 ], [ false, %26 ], [ false, %46 ]
  call void @llvm.stackrestore.p0(ptr %21)
  br label %62

62:                                               ; preds = %9, %.critedge
  %.1 = phi i1 [ %.0, %.critedge ], [ false, %9 ]
  ret i1 %.1
}

; Function Attrs: noinline nounwind uwtable
declare hidden i64 @FStar_UInt64_gte_mask(i64 noundef, i64 noundef) local_unnamed_addr #4

; Function Attrs: inlinehint nounwind uwtable
declare hidden zeroext i1 @pss_verify(i8 noundef zeroext, i32 noundef, i32 noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #0

attributes #0 = { inlinehint 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 }
attributes #2 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
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 = { noinline 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 #5 = { 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 #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 = !{!"long", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,LCSSAPass,LoopRotatePass,LoopUnrollPass,ReassociatePass,SCCPPass,SROAPass,SimplifyCFGPass,TailCallElimPass