; LLVM IR from cryspen/libcrux :: sys/hacl/c/src/msvc (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 [83 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 nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #4

; 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) #5

; 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: 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) #6 {
  %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 i32, align 4
  %25 = alloca i32, align 4
  %26 = alloca ptr, align 8
  %27 = alloca i32, align 4
  %28 = alloca ptr, align 8
  %29 = alloca ptr, align 8
  %30 = alloca ptr, align 8
  %31 = alloca i64, align 8
  %32 = alloca i32, align 4
  %33 = alloca i64, align 8
  %34 = alloca i64, align 8
  %35 = alloca i64, align 8
  %36 = alloca i8, align 1
  %37 = alloca i64, align 8
  %38 = alloca i8, align 1
  %39 = alloca i32, align 4
  %40 = alloca i32, align 4
  %41 = alloca i64, align 8
  %42 = alloca i64, align 8
  %43 = alloca i8, align 1
  %44 = alloca i8, align 1
  %45 = alloca i32, align 4
  %46 = alloca i32, align 4
  %47 = alloca ptr, align 8
  %48 = alloca ptr, align 8
  %49 = alloca i8, align 1
  %50 = 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) #7
  %51 = load i8, ptr %11, align 1, !tbaa !5
  %52 = call i32 @hash_len(i8 noundef zeroext %51)
  store i32 %52, ptr %20, align 4, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 1, ptr %21) #7
  %53 = load i32, ptr %15, align 4, !tbaa !8
  %54 = load i32, ptr %20, align 4, !tbaa !8
  %55 = sub i32 -1, %54
  %56 = sub i32 %55, 8
  %57 = icmp ule i32 %53, %56
  br i1 %57, label %58, label %65

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

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

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

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

79:                                               ; preds = %75
  %80 = call i32 (ptr, ...) @printf(ptr noundef @.str, ptr noundef @.str.1, i32 noundef 538)
  call void @exit(i32 noundef 253) #8
  unreachable

81:                                               ; preds = %75
  br label %82

82:                                               ; preds = %81
  br label %83

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

100:                                              ; preds = %83
  %101 = load i32, ptr %24, align 4, !tbaa !8
  %102 = zext i32 %101 to i64
  %103 = icmp ugt i64 %102, 2305843009213693951
  br i1 %103, label %104, label %106

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

106:                                              ; preds = %100
  br label %107

107:                                              ; preds = %106
  br label %108

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

136:                                              ; preds = %178, %108
  %137 = load i32, ptr %32, align 4, !tbaa !8
  %138 = load i32, ptr %27, align 4, !tbaa !8
  %139 = icmp ult i32 %137, %138
  br i1 %139, label %141, label %140

140:                                              ; preds = %136
  call void @llvm.lifetime.end.p0(i64 4, ptr %32) #7
  br label %181

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

178:                                              ; preds = %141
  %179 = load i32, ptr %32, align 4, !tbaa !8
  %180 = add i32 %179, 1
  store i32 %180, ptr %32, align 4, !tbaa !8
  br label %136, !llvm.loop !18

181:                                              ; preds = %140
  call void @llvm.lifetime.start.p0(i64 8, ptr %35) #7
  %182 = load i64, ptr %31, align 8, !tbaa !16
  store i64 %182, ptr %35, align 8, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 1, ptr %36) #7
  %183 = load i64, ptr %35, align 8, !tbaa !16
  %184 = icmp eq i64 %183, -1
  br i1 %184, label %185, label %232

185:                                              ; preds = %181
  call void @llvm.lifetime.start.p0(i64 8, ptr %37) #7
  %186 = load ptr, ptr %28, align 8, !tbaa !10
  %187 = getelementptr inbounds i64, ptr %186, i64 0
  %188 = load i64, ptr %187, align 8, !tbaa !16
  %189 = call i64 @Hacl_Bignum_ModInvLimb_mod_inv_uint64(i64 noundef %188)
  store i64 %189, ptr %37, align 8, !tbaa !16
  %190 = load i32, ptr %12, align 4, !tbaa !8
  %191 = sub i32 %190, 1
  %192 = udiv i32 %191, 64
  %193 = add i32 %192, 1
  %194 = load ptr, ptr %28, align 8, !tbaa !10
  %195 = load i64, ptr %37, align 8, !tbaa !16
  %196 = load ptr, ptr %29, align 8, !tbaa !10
  %197 = load ptr, ptr %26, align 8, !tbaa !10
  %198 = load i32, ptr %13, align 4, !tbaa !8
  %199 = load ptr, ptr %30, align 8, !tbaa !10
  %200 = load ptr, ptr %23, align 8, !tbaa !10
  call void @Hacl_Bignum_Exponentiation_bn_mod_exp_vartime_precomp_u64(i32 noundef %193, ptr noundef %194, i64 noundef %195, ptr noundef %196, ptr noundef %197, i32 noundef %198, ptr noundef %199, ptr noundef %200)
  call void @llvm.lifetime.start.p0(i64 1, ptr %38) #7
  %201 = load i32, ptr %12, align 4, !tbaa !8
  %202 = sub i32 %201, 1
  %203 = urem i32 %202, 8
  %204 = icmp eq i32 %203, 0
  br i1 %204, label %206, label %205

205:                                              ; preds = %185
  store i8 1, ptr %38, align 1, !tbaa !12
  br label %226

206:                                              ; preds = %185
  call void @llvm.lifetime.start.p0(i64 4, ptr %39) #7
  %207 = load i32, ptr %12, align 4, !tbaa !8
  %208 = sub i32 %207, 1
  %209 = udiv i32 %208, 64
  store i32 %209, ptr %39, align 4, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 4, ptr %40) #7
  %210 = load i32, ptr %12, align 4, !tbaa !8
  %211 = sub i32 %210, 1
  %212 = urem i32 %211, 64
  store i32 %212, ptr %40, align 4, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 8, ptr %41) #7
  %213 = load ptr, ptr %23, align 8, !tbaa !10
  %214 = load i32, ptr %39, align 4, !tbaa !8
  %215 = zext i32 %214 to i64
  %216 = getelementptr inbounds i64, ptr %213, i64 %215
  %217 = load i64, ptr %216, align 8, !tbaa !16
  store i64 %217, ptr %41, align 8, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 8, ptr %42) #7
  %218 = load i64, ptr %41, align 8, !tbaa !16
  %219 = load i32, ptr %40, align 4, !tbaa !8
  %220 = zext i32 %219 to i64
  %221 = lshr i64 %218, %220
  %222 = and i64 %221, 1
  store i64 %222, ptr %42, align 8, !tbaa !16
  %223 = load i64, ptr %42, align 8, !tbaa !16
  %224 = icmp eq i64 %223, 0
  %225 = zext i1 %224 to i8
  store i8 %225, ptr %38, align 1, !tbaa !12
  call void @llvm.lifetime.end.p0(i64 8, ptr %42) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %41) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %40) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %39) #7
  br label %226

226:                                              ; preds = %206, %205
  %227 = load i8, ptr %38, align 1, !tbaa !12, !range !14, !noundef !15
  %228 = trunc i8 %227 to i1
  br i1 %228, label %229, label %230

229:                                              ; preds = %226
  store i8 1, ptr %36, align 1, !tbaa !12
  br label %231

230:                                              ; preds = %226
  store i8 0, ptr %36, align 1, !tbaa !12
  br label %231

231:                                              ; preds = %230, %229
  call void @llvm.lifetime.end.p0(i64 1, ptr %38) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %37) #7
  br label %233

232:                                              ; preds = %181
  store i8 0, ptr %36, align 1, !tbaa !12
  br label %233

233:                                              ; preds = %232, %231
  call void @llvm.lifetime.start.p0(i64 1, ptr %43) #7
  %234 = load i8, ptr %36, align 1, !tbaa !12, !range !14, !noundef !15
  %235 = trunc i8 %234 to i1
  %236 = zext i1 %235 to i8
  store i8 %236, ptr %43, align 1, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 1, ptr %44) #7
  %237 = load i8, ptr %43, align 1, !tbaa !12, !range !14, !noundef !15
  %238 = trunc i8 %237 to i1
  %239 = zext i1 %238 to i8
  store i8 %239, ptr %44, align 1, !tbaa !12
  %240 = load i8, ptr %44, align 1, !tbaa !12, !range !14, !noundef !15
  %241 = trunc i8 %240 to i1
  br i1 %241, label %242, label %280

242:                                              ; preds = %233
  call void @llvm.lifetime.start.p0(i64 4, ptr %45) #7
  %243 = load i32, ptr %12, align 4, !tbaa !8
  %244 = sub i32 %243, 1
  store i32 %244, ptr %45, align 4, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 4, ptr %46) #7
  %245 = load i32, ptr %45, align 4, !tbaa !8
  %246 = sub i32 %245, 1
  %247 = udiv i32 %246, 8
  %248 = add i32 %247, 1
  store i32 %248, ptr %46, align 4, !tbaa !8
  br label %249

249:                                              ; preds = %242
  %250 = load i32, ptr %46, align 4, !tbaa !8
  %251 = zext i32 %250 to i64
  %252 = icmp ugt i64 %251, -1
  br i1 %252, label %253, label %255

253:                                              ; preds = %249
  %254 = call i32 (ptr, ...) @printf(ptr noundef @.str, ptr noundef @.str.1, i32 noundef 603)
  call void @exit(i32 noundef 253) #8
  unreachable

255:                                              ; preds = %249
  br label %256

256:                                              ; preds = %255
  br label %257

257:                                              ; preds = %256
  call void @llvm.lifetime.start.p0(i64 8, ptr %47) #7
  %258 = load i32, ptr %46, align 4, !tbaa !8
  %259 = zext i32 %258 to i64
  %260 = mul i64 %259, 1
  %261 = alloca i8, i64 %260, align 16
  store ptr %261, ptr %47, align 8, !tbaa !10
  %262 = load ptr, ptr %47, align 8, !tbaa !10
  %263 = load i32, ptr %46, align 4, !tbaa !8
  %264 = zext i32 %263 to i64
  %265 = mul i64 %264, 1
  call void @llvm.memset.p0.i64(ptr align 1 %262, i8 0, i64 %265, i1 false)
  call void @llvm.lifetime.start.p0(i64 8, ptr %48) #7
  %266 = load ptr, ptr %23, align 8, !tbaa !10
  store ptr %266, ptr %48, align 8, !tbaa !10
  %267 = load i32, ptr %46, align 4, !tbaa !8
  %268 = load ptr, ptr %48, align 8, !tbaa !10
  %269 = load ptr, ptr %47, align 8, !tbaa !10
  call void @Hacl_Bignum_Convert_bn_to_bytes_be_uint64(i32 noundef %267, ptr noundef %268, ptr noundef %269)
  call void @llvm.lifetime.start.p0(i64 1, ptr %49) #7
  %270 = load i8, ptr %11, align 1, !tbaa !5
  %271 = load i32, ptr %15, align 4, !tbaa !8
  %272 = load i32, ptr %18, align 4, !tbaa !8
  %273 = load ptr, ptr %19, align 8, !tbaa !10
  %274 = load i32, ptr %45, align 4, !tbaa !8
  %275 = load ptr, ptr %47, align 8, !tbaa !10
  %276 = call zeroext i1 @pss_verify(i8 noundef zeroext %270, i32 noundef %271, i32 noundef %272, ptr noundef %273, i32 noundef %274, ptr noundef %275)
  %277 = zext i1 %276 to i8
  store i8 %277, ptr %49, align 1, !tbaa !12
  %278 = load i8, ptr %49, align 1, !tbaa !12, !range !14, !noundef !15
  %279 = trunc i8 %278 to i1
  store i1 %279, ptr %10, align 1
  store i32 1, ptr %50, align 4
  call void @llvm.lifetime.end.p0(i64 1, ptr %49) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %48) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %47) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %46) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %45) #7
  br label %281

280:                                              ; preds = %233
  store i1 false, ptr %10, align 1
  store i32 1, ptr %50, align 4
  br label %281

281:                                              ; preds = %280, %257
  call void @llvm.lifetime.end.p0(i64 1, ptr %44) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %43) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %36) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %35) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #7
  br label %283

282:                                              ; preds = %65
  store i1 false, ptr %10, align 1
  store i32 1, ptr %50, align 4
  br label %283

283:                                              ; preds = %282, %281
  call void @llvm.lifetime.end.p0(i64 1, ptr %21) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #7
  %284 = load i1, ptr %10, align 1
  ret i1 %284
}

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

; 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 nounwind willreturn memory(argmem: write) }
attributes #5 = { 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 #6 = { 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 }
attributes #8 = { 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 nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #1

; 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 #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) local_unnamed_addr #2

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

; 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: 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 #4 {
  %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 %.critedge

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

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

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

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

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

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

.critedge:                                        ; preds = %9, %.critedge91, %25, %45
  %.1 = phi i1 [ %59, %.critedge91 ], [ false, %25 ], [ false, %45 ], [ false, %9 ]
  ret i1 %.1
}

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

; 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 nounwind willreturn memory(argmem: write) }
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 = { 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 #4 = { 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 }

!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