; LLVM IR from aws/s2n-tls :: tests/unit (s2n_hash_all_algs_test)

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

%struct.s2n_debug_info = type { ptr, ptr }
%struct.s2n_result = type { i32 }
%struct.s2n_hash_state = type { ptr, i32, i8, i64, %union.anon }
%union.anon = type { %struct.s2n_hash_evp_digest }
%struct.s2n_hash_evp_digest = type { %struct.s2n_evp_digest, %struct.s2n_evp_digest }
%struct.s2n_evp_digest = type { ptr, ptr }
%struct.s2n_blob = type { ptr, i32, i32, i8 }

@_s2n_debug_info = external thread_local global %struct.s2n_debug_info, align 8
@s2n_errno = external thread_local global i32, align 4
@.str.17 = external hidden unnamed_addr constant [106 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [106 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [106 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [106 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [106 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [106 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [106 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [106 x i8], align 1

; Function Attrs: nounwind uwtable
declare dso_local i32 @s2n_hash_test_state(ptr noundef, i32 noundef, ptr noundef) #0

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

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare nonnull ptr @llvm.threadlocal.address.p0(ptr nonnull) #3

; Function Attrs: nounwind willreturn memory(read)
declare ptr @strrchr(ptr noundef, i32 noundef) #4

declare i32 @s2n_calculate_stacktrace() #5

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

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

declare i32 @s2n_hash_new(ptr noundef) #5

; Function Attrs: nounwind willreturn memory(read)
declare i32 @memcmp(ptr noundef, ptr noundef, i64 noundef) #4

declare i32 @s2n_hash_free(ptr noundef) #5

; Function Attrs: nounwind uwtable
define dso_local i32 @s2n_hash_test(i32 noundef %0, ptr noundef %1) #0 {
  %3 = alloca %struct.s2n_result, align 4
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  %6 = alloca %struct.s2n_hash_state, align 8
  %7 = alloca i32, align 4
  %8 = alloca %struct.s2n_result, align 4
  %9 = alloca %struct.s2n_blob, align 8
  %10 = alloca [100 x i8], align 16
  %11 = alloca %struct.s2n_result, align 4
  store i32 %0, ptr %4, align 4, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 56, ptr %6) #7
  call void @llvm.memset.p0.i64(ptr align 8 %6, i8 0, i64 56, i1 false)
  br label %12

12:                                               ; preds = %2
  %13 = call i32 @s2n_hash_new(ptr noundef %6)
  %14 = icmp sgt i32 %13, -1
  br i1 %14, label %17, label %15

15:                                               ; preds = %12
  %16 = getelementptr inbounds %struct.s2n_result, ptr %3, i32 0, i32 0
  store i32 -1, ptr %16, align 4, !tbaa !11
  store i32 1, ptr %7, align 4
  br label %424

17:                                               ; preds = %12
  br label %18

18:                                               ; preds = %17
  br label %19

19:                                               ; preds = %18
  br label %20

20:                                               ; preds = %19
  %21 = getelementptr inbounds %struct.s2n_hash_state, ptr %6, i32 0, i32 3
  %22 = load i64, ptr %21, align 8, !tbaa !13
  %23 = icmp eq i64 %22, 0
  br i1 %23, label %58, label %24

24:                                               ; preds = %20
  br label %25

25:                                               ; preds = %24
  br label %26

26:                                               ; preds = %25
  %27 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %28 = getelementptr inbounds %struct.s2n_debug_info, ptr %27, i32 0, i32 0
  store ptr @.str.17, ptr %28, align 8, !tbaa !16
  %29 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %30 = getelementptr inbounds %struct.s2n_debug_info, ptr %29, i32 0, i32 0
  %31 = load ptr, ptr %30, align 8, !tbaa !16
  %32 = getelementptr inbounds i8, ptr %31, i64 21
  %33 = call ptr @strrchr(ptr noundef %32, i32 noundef 47) #8
  %34 = icmp ne ptr %33, null
  br i1 %34, label %35, label %42

35:                                               ; preds = %26
  %36 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %37 = getelementptr inbounds %struct.s2n_debug_info, ptr %36, i32 0, i32 0
  %38 = load ptr, ptr %37, align 8, !tbaa !16
  %39 = getelementptr inbounds i8, ptr %38, i64 21
  %40 = call ptr @strrchr(ptr noundef %39, i32 noundef 47) #8
  %41 = getelementptr inbounds i8, ptr %40, i64 1
  br label %47

42:                                               ; preds = %26
  %43 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %44 = getelementptr inbounds %struct.s2n_debug_info, ptr %43, i32 0, i32 0
  %45 = load ptr, ptr %44, align 8, !tbaa !16
  %46 = getelementptr inbounds i8, ptr %45, i64 21
  br label %47

47:                                               ; preds = %42, %35
  %48 = phi ptr [ %41, %35 ], [ %46, %42 ]
  %49 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %50 = getelementptr inbounds %struct.s2n_debug_info, ptr %49, i32 0, i32 1
  store ptr %48, ptr %50, align 8, !tbaa !18
  %51 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  store i32 402653194, ptr %51, align 4, !tbaa !5
  %52 = call i32 @s2n_calculate_stacktrace()
  br label %53

53:                                               ; preds = %47
  br label %54

54:                                               ; preds = %53
  %55 = getelementptr inbounds %struct.s2n_result, ptr %3, i32 0, i32 0
  store i32 -1, ptr %55, align 4, !tbaa !11
  store i32 1, ptr %7, align 4
  br label %424

56:                                               ; No predecessors!
  br label %57

57:                                               ; preds = %56
  br label %58

58:                                               ; preds = %57, %20
  br label %59

59:                                               ; preds = %58
  br label %60

60:                                               ; preds = %59
  br label %61

61:                                               ; preds = %60
  %62 = getelementptr inbounds %struct.s2n_hash_state, ptr %6, i32 0, i32 2
  %63 = load i8, ptr %62, align 4, !tbaa !19
  %64 = zext i8 %63 to i32
  %65 = icmp eq i32 %64, 0
  br i1 %65, label %100, label %66

66:                                               ; preds = %61
  br label %67

67:                                               ; preds = %66
  br label %68

68:                                               ; preds = %67
  %69 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %70 = getelementptr inbounds %struct.s2n_debug_info, ptr %69, i32 0, i32 0
  store ptr @.str.18, ptr %70, align 8, !tbaa !16
  %71 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %72 = getelementptr inbounds %struct.s2n_debug_info, ptr %71, i32 0, i32 0
  %73 = load ptr, ptr %72, align 8, !tbaa !16
  %74 = getelementptr inbounds i8, ptr %73, i64 21
  %75 = call ptr @strrchr(ptr noundef %74, i32 noundef 47) #8
  %76 = icmp ne ptr %75, null
  br i1 %76, label %77, label %84

77:                                               ; preds = %68
  %78 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %79 = getelementptr inbounds %struct.s2n_debug_info, ptr %78, i32 0, i32 0
  %80 = load ptr, ptr %79, align 8, !tbaa !16
  %81 = getelementptr inbounds i8, ptr %80, i64 21
  %82 = call ptr @strrchr(ptr noundef %81, i32 noundef 47) #8
  %83 = getelementptr inbounds i8, ptr %82, i64 1
  br label %89

84:                                               ; preds = %68
  %85 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %86 = getelementptr inbounds %struct.s2n_debug_info, ptr %85, i32 0, i32 0
  %87 = load ptr, ptr %86, align 8, !tbaa !16
  %88 = getelementptr inbounds i8, ptr %87, i64 21
  br label %89

89:                                               ; preds = %84, %77
  %90 = phi ptr [ %83, %77 ], [ %88, %84 ]
  %91 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %92 = getelementptr inbounds %struct.s2n_debug_info, ptr %91, i32 0, i32 1
  store ptr %90, ptr %92, align 8, !tbaa !18
  %93 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  store i32 402653194, ptr %93, align 4, !tbaa !5
  %94 = call i32 @s2n_calculate_stacktrace()
  br label %95

95:                                               ; preds = %89
  br label %96

96:                                               ; preds = %95
  %97 = getelementptr inbounds %struct.s2n_result, ptr %3, i32 0, i32 0
  store i32 -1, ptr %97, align 4, !tbaa !11
  store i32 1, ptr %7, align 4
  br label %424

98:                                               ; No predecessors!
  br label %99

99:                                               ; preds = %98
  br label %100

100:                                              ; preds = %99, %61
  br label %101

101:                                              ; preds = %100
  br label %102

102:                                              ; preds = %101
  br label %103

103:                                              ; preds = %102
  %104 = load i32, ptr %4, align 4, !tbaa !5
  %105 = call i32 @s2n_hash_init(ptr noundef %6, i32 noundef %104)
  %106 = icmp sgt i32 %105, -1
  br i1 %106, label %109, label %107

107:                                              ; preds = %103
  %108 = getelementptr inbounds %struct.s2n_result, ptr %3, i32 0, i32 0
  store i32 -1, ptr %108, align 4, !tbaa !11
  store i32 1, ptr %7, align 4
  br label %424

109:                                              ; preds = %103
  br label %110

110:                                              ; preds = %109
  br label %111

111:                                              ; preds = %110
  br label %112

112:                                              ; preds = %111
  %113 = getelementptr inbounds %struct.s2n_hash_state, ptr %6, i32 0, i32 3
  %114 = load i64, ptr %113, align 8, !tbaa !13
  %115 = icmp eq i64 %114, 0
  br i1 %115, label %150, label %116

116:                                              ; preds = %112
  br label %117

117:                                              ; preds = %116
  br label %118

118:                                              ; preds = %117
  %119 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %120 = getelementptr inbounds %struct.s2n_debug_info, ptr %119, i32 0, i32 0
  store ptr @.str.19, ptr %120, align 8, !tbaa !16
  %121 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %122 = getelementptr inbounds %struct.s2n_debug_info, ptr %121, i32 0, i32 0
  %123 = load ptr, ptr %122, align 8, !tbaa !16
  %124 = getelementptr inbounds i8, ptr %123, i64 21
  %125 = call ptr @strrchr(ptr noundef %124, i32 noundef 47) #8
  %126 = icmp ne ptr %125, null
  br i1 %126, label %127, label %134

127:                                              ; preds = %118
  %128 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %129 = getelementptr inbounds %struct.s2n_debug_info, ptr %128, i32 0, i32 0
  %130 = load ptr, ptr %129, align 8, !tbaa !16
  %131 = getelementptr inbounds i8, ptr %130, i64 21
  %132 = call ptr @strrchr(ptr noundef %131, i32 noundef 47) #8
  %133 = getelementptr inbounds i8, ptr %132, i64 1
  br label %139

134:                                              ; preds = %118
  %135 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %136 = getelementptr inbounds %struct.s2n_debug_info, ptr %135, i32 0, i32 0
  %137 = load ptr, ptr %136, align 8, !tbaa !16
  %138 = getelementptr inbounds i8, ptr %137, i64 21
  br label %139

139:                                              ; preds = %134, %127
  %140 = phi ptr [ %133, %127 ], [ %138, %134 ]
  %141 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %142 = getelementptr inbounds %struct.s2n_debug_info, ptr %141, i32 0, i32 1
  store ptr %140, ptr %142, align 8, !tbaa !18
  %143 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  store i32 402653194, ptr %143, align 4, !tbaa !5
  %144 = call i32 @s2n_calculate_stacktrace()
  br label %145

145:                                              ; preds = %139
  br label %146

146:                                              ; preds = %145
  %147 = getelementptr inbounds %struct.s2n_result, ptr %3, i32 0, i32 0
  store i32 -1, ptr %147, align 4, !tbaa !11
  store i32 1, ptr %7, align 4
  br label %424

148:                                              ; No predecessors!
  br label %149

149:                                              ; preds = %148
  br label %150

150:                                              ; preds = %149, %112
  br label %151

151:                                              ; preds = %150
  br label %152

152:                                              ; preds = %151
  br label %153

153:                                              ; preds = %152
  %154 = getelementptr inbounds %struct.s2n_hash_state, ptr %6, i32 0, i32 2
  %155 = load i8, ptr %154, align 4, !tbaa !19
  %156 = zext i8 %155 to i32
  %157 = icmp eq i32 %156, 1
  br i1 %157, label %192, label %158

158:                                              ; preds = %153
  br label %159

159:                                              ; preds = %158
  br label %160

160:                                              ; preds = %159
  %161 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %162 = getelementptr inbounds %struct.s2n_debug_info, ptr %161, i32 0, i32 0
  store ptr @.str.20, ptr %162, align 8, !tbaa !16
  %163 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %164 = getelementptr inbounds %struct.s2n_debug_info, ptr %163, i32 0, i32 0
  %165 = load ptr, ptr %164, align 8, !tbaa !16
  %166 = getelementptr inbounds i8, ptr %165, i64 21
  %167 = call ptr @strrchr(ptr noundef %166, i32 noundef 47) #8
  %168 = icmp ne ptr %167, null
  br i1 %168, label %169, label %176

169:                                              ; preds = %160
  %170 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %171 = getelementptr inbounds %struct.s2n_debug_info, ptr %170, i32 0, i32 0
  %172 = load ptr, ptr %171, align 8, !tbaa !16
  %173 = getelementptr inbounds i8, ptr %172, i64 21
  %174 = call ptr @strrchr(ptr noundef %173, i32 noundef 47) #8
  %175 = getelementptr inbounds i8, ptr %174, i64 1
  br label %181

176:                                              ; preds = %160
  %177 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %178 = getelementptr inbounds %struct.s2n_debug_info, ptr %177, i32 0, i32 0
  %179 = load ptr, ptr %178, align 8, !tbaa !16
  %180 = getelementptr inbounds i8, ptr %179, i64 21
  br label %181

181:                                              ; preds = %176, %169
  %182 = phi ptr [ %175, %169 ], [ %180, %176 ]
  %183 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %184 = getelementptr inbounds %struct.s2n_debug_info, ptr %183, i32 0, i32 1
  store ptr %182, ptr %184, align 8, !tbaa !18
  %185 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  store i32 402653194, ptr %185, align 4, !tbaa !5
  %186 = call i32 @s2n_calculate_stacktrace()
  br label %187

187:                                              ; preds = %181
  br label %188

188:                                              ; preds = %187
  %189 = getelementptr inbounds %struct.s2n_result, ptr %3, i32 0, i32 0
  store i32 -1, ptr %189, align 4, !tbaa !11
  store i32 1, ptr %7, align 4
  br label %424

190:                                              ; No predecessors!
  br label %191

191:                                              ; preds = %190
  br label %192

192:                                              ; preds = %191, %153
  br label %193

193:                                              ; preds = %192
  br label %194

194:                                              ; preds = %193
  br label %195

195:                                              ; preds = %194
  %196 = load i32, ptr %4, align 4, !tbaa !5
  %197 = load ptr, ptr %5, align 8, !tbaa !9
  %198 = call i32 @s2n_hash_test_state(ptr noundef %6, i32 noundef %196, ptr noundef %197)
  %199 = getelementptr inbounds %struct.s2n_result, ptr %8, i32 0, i32 0
  store i32 %198, ptr %199, align 4
  %200 = getelementptr inbounds %struct.s2n_result, ptr %8, i32 0, i32 0
  %201 = load i32, ptr %200, align 4
  %202 = call zeroext i1 @s2n_result_is_ok(i32 %201)
  br i1 %202, label %205, label %203

203:                                              ; preds = %195
  %204 = getelementptr inbounds %struct.s2n_result, ptr %3, i32 0, i32 0
  store i32 -1, ptr %204, align 4, !tbaa !11
  store i32 1, ptr %7, align 4
  br label %424

205:                                              ; preds = %195
  br label %206

206:                                              ; preds = %205
  br label %207

207:                                              ; preds = %206
  call void @llvm.lifetime.start.p0(i64 24, ptr %9) #7
  call void @llvm.memset.p0.i64(ptr align 8 %9, i8 0, i64 24, i1 false)
  call void @llvm.lifetime.start.p0(i64 100, ptr %10) #7
  call void @llvm.memset.p0.i64(ptr align 16 %10, i8 0, i64 100, i1 false)
  br label %208

208:                                              ; preds = %207
  %209 = getelementptr inbounds [100 x i8], ptr %10, i64 0, i64 0
  %210 = call i32 @s2n_blob_init(ptr noundef %9, ptr noundef %209, i32 noundef 100)
  %211 = icmp sgt i32 %210, -1
  br i1 %211, label %214, label %212

212:                                              ; preds = %208
  %213 = getelementptr inbounds %struct.s2n_result, ptr %3, i32 0, i32 0
  store i32 -1, ptr %213, align 4, !tbaa !11
  store i32 1, ptr %7, align 4
  br label %412

214:                                              ; preds = %208
  br label %215

215:                                              ; preds = %214
  br label %216

216:                                              ; preds = %215
  br label %217

217:                                              ; preds = %216
  %218 = call i32 @s2n_hash_reset(ptr noundef %6)
  %219 = icmp sgt i32 %218, -1
  br i1 %219, label %222, label %220

220:                                              ; preds = %217
  %221 = getelementptr inbounds %struct.s2n_result, ptr %3, i32 0, i32 0
  store i32 -1, ptr %221, align 4, !tbaa !11
  store i32 1, ptr %7, align 4
  br label %412

222:                                              ; preds = %217
  br label %223

223:                                              ; preds = %222
  br label %224

224:                                              ; preds = %223
  br label %225

225:                                              ; preds = %224
  %226 = getelementptr inbounds %struct.s2n_hash_state, ptr %6, i32 0, i32 3
  %227 = load i64, ptr %226, align 8, !tbaa !13
  %228 = icmp eq i64 %227, 0
  br i1 %228, label %263, label %229

229:                                              ; preds = %225
  br label %230

230:                                              ; preds = %229
  br label %231

231:                                              ; preds = %230
  %232 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %233 = getelementptr inbounds %struct.s2n_debug_info, ptr %232, i32 0, i32 0
  store ptr @.str.21, ptr %233, align 8, !tbaa !16
  %234 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %235 = getelementptr inbounds %struct.s2n_debug_info, ptr %234, i32 0, i32 0
  %236 = load ptr, ptr %235, align 8, !tbaa !16
  %237 = getelementptr inbounds i8, ptr %236, i64 21
  %238 = call ptr @strrchr(ptr noundef %237, i32 noundef 47) #8
  %239 = icmp ne ptr %238, null
  br i1 %239, label %240, label %247

240:                                              ; preds = %231
  %241 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %242 = getelementptr inbounds %struct.s2n_debug_info, ptr %241, i32 0, i32 0
  %243 = load ptr, ptr %242, align 8, !tbaa !16
  %244 = getelementptr inbounds i8, ptr %243, i64 21
  %245 = call ptr @strrchr(ptr noundef %244, i32 noundef 47) #8
  %246 = getelementptr inbounds i8, ptr %245, i64 1
  br label %252

247:                                              ; preds = %231
  %248 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %249 = getelementptr inbounds %struct.s2n_debug_info, ptr %248, i32 0, i32 0
  %250 = load ptr, ptr %249, align 8, !tbaa !16
  %251 = getelementptr inbounds i8, ptr %250, i64 21
  br label %252

252:                                              ; preds = %247, %240
  %253 = phi ptr [ %246, %240 ], [ %251, %247 ]
  %254 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %255 = getelementptr inbounds %struct.s2n_debug_info, ptr %254, i32 0, i32 1
  store ptr %253, ptr %255, align 8, !tbaa !18
  %256 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  store i32 402653194, ptr %256, align 4, !tbaa !5
  %257 = call i32 @s2n_calculate_stacktrace()
  br label %258

258:                                              ; preds = %252
  br label %259

259:                                              ; preds = %258
  %260 = getelementptr inbounds %struct.s2n_result, ptr %3, i32 0, i32 0
  store i32 -1, ptr %260, align 4, !tbaa !11
  store i32 1, ptr %7, align 4
  br label %412

261:                                              ; No predecessors!
  br label %262

262:                                              ; preds = %261
  br label %263

263:                                              ; preds = %262, %225
  br label %264

264:                                              ; preds = %263
  br label %265

265:                                              ; preds = %264
  br label %266

266:                                              ; preds = %265
  %267 = getelementptr inbounds %struct.s2n_hash_state, ptr %6, i32 0, i32 2
  %268 = load i8, ptr %267, align 4, !tbaa !19
  %269 = zext i8 %268 to i32
  %270 = icmp eq i32 %269, 1
  br i1 %270, label %305, label %271

271:                                              ; preds = %266
  br label %272

272:                                              ; preds = %271
  br label %273

273:                                              ; preds = %272
  %274 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %275 = getelementptr inbounds %struct.s2n_debug_info, ptr %274, i32 0, i32 0
  store ptr @.str.22, ptr %275, align 8, !tbaa !16
  %276 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %277 = getelementptr inbounds %struct.s2n_debug_info, ptr %276, i32 0, i32 0
  %278 = load ptr, ptr %277, align 8, !tbaa !16
  %279 = getelementptr inbounds i8, ptr %278, i64 21
  %280 = call ptr @strrchr(ptr noundef %279, i32 noundef 47) #8
  %281 = icmp ne ptr %280, null
  br i1 %281, label %282, label %289

282:                                              ; preds = %273
  %283 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %284 = getelementptr inbounds %struct.s2n_debug_info, ptr %283, i32 0, i32 0
  %285 = load ptr, ptr %284, align 8, !tbaa !16
  %286 = getelementptr inbounds i8, ptr %285, i64 21
  %287 = call ptr @strrchr(ptr noundef %286, i32 noundef 47) #8
  %288 = getelementptr inbounds i8, ptr %287, i64 1
  br label %294

289:                                              ; preds = %273
  %290 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %291 = getelementptr inbounds %struct.s2n_debug_info, ptr %290, i32 0, i32 0
  %292 = load ptr, ptr %291, align 8, !tbaa !16
  %293 = getelementptr inbounds i8, ptr %292, i64 21
  br label %294

294:                                              ; preds = %289, %282
  %295 = phi ptr [ %288, %282 ], [ %293, %289 ]
  %296 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %297 = getelementptr inbounds %struct.s2n_debug_info, ptr %296, i32 0, i32 1
  store ptr %295, ptr %297, align 8, !tbaa !18
  %298 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  store i32 402653194, ptr %298, align 4, !tbaa !5
  %299 = call i32 @s2n_calculate_stacktrace()
  br label %300

300:                                              ; preds = %294
  br label %301

301:                                              ; preds = %300
  %302 = getelementptr inbounds %struct.s2n_result, ptr %3, i32 0, i32 0
  store i32 -1, ptr %302, align 4, !tbaa !11
  store i32 1, ptr %7, align 4
  br label %412

303:                                              ; No predecessors!
  br label %304

304:                                              ; preds = %303
  br label %305

305:                                              ; preds = %304, %266
  br label %306

306:                                              ; preds = %305
  br label %307

307:                                              ; preds = %306
  br label %308

308:                                              ; preds = %307
  %309 = load i32, ptr %4, align 4, !tbaa !5
  %310 = call i32 @s2n_hash_test_state(ptr noundef %6, i32 noundef %309, ptr noundef %9)
  %311 = getelementptr inbounds %struct.s2n_result, ptr %11, i32 0, i32 0
  store i32 %310, ptr %311, align 4
  %312 = getelementptr inbounds %struct.s2n_result, ptr %11, i32 0, i32 0
  %313 = load i32, ptr %312, align 4
  %314 = call zeroext i1 @s2n_result_is_ok(i32 %313)
  br i1 %314, label %317, label %315

315:                                              ; preds = %308
  %316 = getelementptr inbounds %struct.s2n_result, ptr %3, i32 0, i32 0
  store i32 -1, ptr %316, align 4, !tbaa !11
  store i32 1, ptr %7, align 4
  br label %412

317:                                              ; preds = %308
  br label %318

318:                                              ; preds = %317
  br label %319

319:                                              ; preds = %318
  br label %320

320:                                              ; preds = %319
  %321 = load ptr, ptr %5, align 8, !tbaa !9
  %322 = getelementptr inbounds %struct.s2n_blob, ptr %321, i32 0, i32 1
  %323 = load i32, ptr %322, align 8, !tbaa !20
  %324 = getelementptr inbounds %struct.s2n_blob, ptr %9, i32 0, i32 1
  %325 = load i32, ptr %324, align 8, !tbaa !20
  %326 = icmp eq i32 %323, %325
  br i1 %326, label %361, label %327

327:                                              ; preds = %320
  br label %328

328:                                              ; preds = %327
  br label %329

329:                                              ; preds = %328
  %330 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %331 = getelementptr inbounds %struct.s2n_debug_info, ptr %330, i32 0, i32 0
  store ptr @.str.23, ptr %331, align 8, !tbaa !16
  %332 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %333 = getelementptr inbounds %struct.s2n_debug_info, ptr %332, i32 0, i32 0
  %334 = load ptr, ptr %333, align 8, !tbaa !16
  %335 = getelementptr inbounds i8, ptr %334, i64 21
  %336 = call ptr @strrchr(ptr noundef %335, i32 noundef 47) #8
  %337 = icmp ne ptr %336, null
  br i1 %337, label %338, label %345

338:                                              ; preds = %329
  %339 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %340 = getelementptr inbounds %struct.s2n_debug_info, ptr %339, i32 0, i32 0
  %341 = load ptr, ptr %340, align 8, !tbaa !16
  %342 = getelementptr inbounds i8, ptr %341, i64 21
  %343 = call ptr @strrchr(ptr noundef %342, i32 noundef 47) #8
  %344 = getelementptr inbounds i8, ptr %343, i64 1
  br label %350

345:                                              ; preds = %329
  %346 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %347 = getelementptr inbounds %struct.s2n_debug_info, ptr %346, i32 0, i32 0
  %348 = load ptr, ptr %347, align 8, !tbaa !16
  %349 = getelementptr inbounds i8, ptr %348, i64 21
  br label %350

350:                                              ; preds = %345, %338
  %351 = phi ptr [ %344, %338 ], [ %349, %345 ]
  %352 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %353 = getelementptr inbounds %struct.s2n_debug_info, ptr %352, i32 0, i32 1
  store ptr %351, ptr %353, align 8, !tbaa !18
  %354 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  store i32 402653194, ptr %354, align 4, !tbaa !5
  %355 = call i32 @s2n_calculate_stacktrace()
  br label %356

356:                                              ; preds = %350
  br label %357

357:                                              ; preds = %356
  %358 = getelementptr inbounds %struct.s2n_result, ptr %3, i32 0, i32 0
  store i32 -1, ptr %358, align 4, !tbaa !11
  store i32 1, ptr %7, align 4
  br label %412

359:                                              ; No predecessors!
  br label %360

360:                                              ; preds = %359
  br label %361

361:                                              ; preds = %360, %320
  br label %362

362:                                              ; preds = %361
  br label %363

363:                                              ; preds = %362
  br label %364

364:                                              ; preds = %363
  %365 = load ptr, ptr %5, align 8, !tbaa !9
  %366 = getelementptr inbounds %struct.s2n_blob, ptr %365, i32 0, i32 0
  %367 = load ptr, ptr %366, align 8, !tbaa !22
  %368 = getelementptr inbounds %struct.s2n_blob, ptr %9, i32 0, i32 0
  %369 = load ptr, ptr %368, align 8, !tbaa !22
  %370 = getelementptr inbounds %struct.s2n_blob, ptr %9, i32 0, i32 1
  %371 = load i32, ptr %370, align 8, !tbaa !20
  %372 = zext i32 %371 to i64
  %373 = call i32 @memcmp(ptr noundef %367, ptr noundef %369, i64 noundef %372) #8
  %374 = icmp eq i32 %373, 0
  br i1 %374, label %409, label %375

375:                                              ; preds = %364
  br label %376

376:                                              ; preds = %375
  br label %377

377:                                              ; preds = %376
  %378 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %379 = getelementptr inbounds %struct.s2n_debug_info, ptr %378, i32 0, i32 0
  store ptr @.str.24, ptr %379, align 8, !tbaa !16
  %380 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %381 = getelementptr inbounds %struct.s2n_debug_info, ptr %380, i32 0, i32 0
  %382 = load ptr, ptr %381, align 8, !tbaa !16
  %383 = getelementptr inbounds i8, ptr %382, i64 21
  %384 = call ptr @strrchr(ptr noundef %383, i32 noundef 47) #8
  %385 = icmp ne ptr %384, null
  br i1 %385, label %386, label %393

386:                                              ; preds = %377
  %387 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %388 = getelementptr inbounds %struct.s2n_debug_info, ptr %387, i32 0, i32 0
  %389 = load ptr, ptr %388, align 8, !tbaa !16
  %390 = getelementptr inbounds i8, ptr %389, i64 21
  %391 = call ptr @strrchr(ptr noundef %390, i32 noundef 47) #8
  %392 = getelementptr inbounds i8, ptr %391, i64 1
  br label %398

393:                                              ; preds = %377
  %394 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %395 = getelementptr inbounds %struct.s2n_debug_info, ptr %394, i32 0, i32 0
  %396 = load ptr, ptr %395, align 8, !tbaa !16
  %397 = getelementptr inbounds i8, ptr %396, i64 21
  br label %398

398:                                              ; preds = %393, %386
  %399 = phi ptr [ %392, %386 ], [ %397, %393 ]
  %400 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %401 = getelementptr inbounds %struct.s2n_debug_info, ptr %400, i32 0, i32 1
  store ptr %399, ptr %401, align 8, !tbaa !18
  %402 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  store i32 402653194, ptr %402, align 4, !tbaa !5
  %403 = call i32 @s2n_calculate_stacktrace()
  br label %404

404:                                              ; preds = %398
  br label %405

405:                                              ; preds = %404
  %406 = getelementptr inbounds %struct.s2n_result, ptr %3, i32 0, i32 0
  store i32 -1, ptr %406, align 4, !tbaa !11
  store i32 1, ptr %7, align 4
  br label %412

407:                                              ; No predecessors!
  br label %408

408:                                              ; preds = %407
  br label %409

409:                                              ; preds = %408, %364
  br label %410

410:                                              ; preds = %409
  br label %411

411:                                              ; preds = %410
  store i32 0, ptr %7, align 4
  br label %412

412:                                              ; preds = %411, %405, %357, %315, %301, %259, %220, %212
  call void @llvm.lifetime.end.p0(i64 100, ptr %10) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %9) #7
  %413 = load i32, ptr %7, align 4
  switch i32 %413, label %424 [
    i32 0, label %414
  ]

414:                                              ; preds = %412
  br label %415

415:                                              ; preds = %414
  %416 = call i32 @s2n_hash_free(ptr noundef %6)
  %417 = icmp sgt i32 %416, -1
  br i1 %417, label %420, label %418

418:                                              ; preds = %415
  %419 = getelementptr inbounds %struct.s2n_result, ptr %3, i32 0, i32 0
  store i32 -1, ptr %419, align 4, !tbaa !11
  store i32 1, ptr %7, align 4
  br label %424

420:                                              ; preds = %415
  br label %421

421:                                              ; preds = %420
  br label %422

422:                                              ; preds = %421
  %423 = getelementptr inbounds %struct.s2n_result, ptr %3, i32 0, i32 0
  store i32 0, ptr %423, align 4, !tbaa !11
  store i32 1, ptr %7, align 4
  br label %424

424:                                              ; preds = %422, %418, %412, %203, %188, %146, %107, %96, %54, %15
  call void @llvm.lifetime.end.p0(i64 56, ptr %6) #7
  %425 = getelementptr inbounds %struct.s2n_result, ptr %3, i32 0, i32 0
  %426 = load i32, ptr %425, align 4
  ret i32 %426
}

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

; Function Attrs: inlinehint nounwind uwtable
declare hidden zeroext i1 @s2n_result_is_ok(i32) #6

declare i32 @s2n_hash_reset(ptr noundef) #5

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = !{!12, !6, i64 0}
!12 = !{!"", !6, i64 0}
!13 = !{!14, !15, i64 16}
!14 = !{!"s2n_hash_state", !10, i64 0, !6, i64 8, !7, i64 12, !15, i64 16, !7, i64 24}
!15 = !{!"long", !7, i64 0}
!16 = !{!17, !10, i64 0}
!17 = !{!"s2n_debug_info", !10, i64 0, !10, i64 8}
!18 = !{!17, !10, i64 8}
!19 = !{!14, !7, i64 12}
!20 = !{!21, !6, i64 8}
!21 = !{!"s2n_blob", !10, i64 0, !6, i64 8, !6, i64 12, !6, i64 16}
!22 = !{!21, !10, 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"

%struct.s2n_debug_info = type { ptr, ptr }
%struct.s2n_hash_state = type { ptr, i32, i8, i64, %union.anon }
%union.anon = type { %struct.s2n_hash_evp_digest }
%struct.s2n_hash_evp_digest = type { %struct.s2n_evp_digest, %struct.s2n_evp_digest }
%struct.s2n_evp_digest = type { ptr, ptr }
%struct.s2n_blob = type { ptr, i32, i32, i8 }

@_s2n_debug_info = external thread_local local_unnamed_addr global %struct.s2n_debug_info, align 8
@s2n_errno = external thread_local local_unnamed_addr global i32, align 4
@.str.17 = external hidden unnamed_addr constant [106 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [106 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [106 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [106 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [106 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [106 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [106 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [106 x i8], align 1

; Function Attrs: nounwind uwtable
declare dso_local i32 @s2n_hash_test_state(ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #0

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

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

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare nonnull ptr @llvm.threadlocal.address.p0(ptr nonnull) #3

; Function Attrs: mustprogress nofree nounwind willreturn memory(argmem: read)
declare ptr @strrchr(ptr noundef, i32 noundef) local_unnamed_addr #4

declare i32 @s2n_calculate_stacktrace() local_unnamed_addr #5

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

declare i32 @s2n_blob_init(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #5

declare i32 @s2n_hash_new(ptr noundef) local_unnamed_addr #5

declare i32 @s2n_hash_free(ptr noundef) local_unnamed_addr #5

; Function Attrs: nounwind uwtable
define dso_local range(i32 -1, 1) i32 @s2n_hash_test(i32 noundef %0, ptr noundef %1) local_unnamed_addr #0 {
  %3 = alloca %struct.s2n_hash_state, align 8
  %4 = alloca %struct.s2n_blob, align 8
  %5 = alloca [100 x i8], align 16
  call void @llvm.lifetime.start.p0(i64 56, ptr nonnull %3) #8
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(56) %3, i8 0, i64 56, i1 false)
  %6 = call i32 @s2n_hash_new(ptr noundef nonnull %3) #8
  %7 = icmp sgt i32 %6, -1
  br i1 %7, label %8, label %95

8:                                                ; preds = %2
  %9 = getelementptr inbounds i8, ptr %3, i64 16
  %10 = load i64, ptr %9, align 8, !tbaa !5
  %11 = icmp eq i64 %10, 0
  br i1 %11, label %20, label %12

12:                                               ; preds = %8
  %13 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  store ptr @.str.17, ptr %13, align 8, !tbaa !12
  %14 = call ptr @strrchr(ptr noundef nonnull dereferenceable(1) getelementptr inbounds (i8, ptr @.str.17, i64 21), i32 noundef 47) #9
  %.not = icmp eq ptr %14, null
  %15 = getelementptr inbounds i8, ptr %14, i64 1
  %16 = select i1 %.not, ptr getelementptr inbounds (i8, ptr @.str.17, i64 21), ptr %15
  %17 = getelementptr inbounds i8, ptr %13, i64 8
  store ptr %16, ptr %17, align 8, !tbaa !14
  %18 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  store i32 402653194, ptr %18, align 4, !tbaa !15
  %19 = call i32 @s2n_calculate_stacktrace() #8
  br label %95

20:                                               ; preds = %8
  %21 = getelementptr inbounds i8, ptr %3, i64 12
  %22 = load i8, ptr %21, align 4, !tbaa !16
  %23 = icmp eq i8 %22, 0
  br i1 %23, label %32, label %24

24:                                               ; preds = %20
  %25 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  store ptr @.str.18, ptr %25, align 8, !tbaa !12
  %26 = call ptr @strrchr(ptr noundef nonnull dereferenceable(1) getelementptr inbounds (i8, ptr @.str.18, i64 21), i32 noundef 47) #9
  %.not17 = icmp eq ptr %26, null
  %27 = getelementptr inbounds i8, ptr %26, i64 1
  %28 = select i1 %.not17, ptr getelementptr inbounds (i8, ptr @.str.18, i64 21), ptr %27
  %29 = getelementptr inbounds i8, ptr %25, i64 8
  store ptr %28, ptr %29, align 8, !tbaa !14
  %30 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  store i32 402653194, ptr %30, align 4, !tbaa !15
  %31 = call i32 @s2n_calculate_stacktrace() #8
  br label %95

32:                                               ; preds = %20
  %33 = call i32 @s2n_hash_init(ptr noundef nonnull %3, i32 noundef %0) #8
  %34 = icmp sgt i32 %33, -1
  br i1 %34, label %35, label %95

35:                                               ; preds = %32
  %36 = load i64, ptr %9, align 8, !tbaa !5
  %37 = icmp eq i64 %36, 0
  br i1 %37, label %46, label %38

38:                                               ; preds = %35
  %39 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  store ptr @.str.19, ptr %39, align 8, !tbaa !12
  %40 = call ptr @strrchr(ptr noundef nonnull dereferenceable(1) getelementptr inbounds (i8, ptr @.str.19, i64 21), i32 noundef 47) #9
  %.not18 = icmp eq ptr %40, null
  %41 = getelementptr inbounds i8, ptr %40, i64 1
  %42 = select i1 %.not18, ptr getelementptr inbounds (i8, ptr @.str.19, i64 21), ptr %41
  %43 = getelementptr inbounds i8, ptr %39, i64 8
  store ptr %42, ptr %43, align 8, !tbaa !14
  %44 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  store i32 402653194, ptr %44, align 4, !tbaa !15
  %45 = call i32 @s2n_calculate_stacktrace() #8
  br label %95

46:                                               ; preds = %35
  %47 = load i8, ptr %21, align 4, !tbaa !16
  %48 = icmp eq i8 %47, 1
  br i1 %48, label %57, label %49

49:                                               ; preds = %46
  %50 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  store ptr @.str.20, ptr %50, align 8, !tbaa !12
  %51 = call ptr @strrchr(ptr noundef nonnull dereferenceable(1) getelementptr inbounds (i8, ptr @.str.20, i64 21), i32 noundef 47) #9
  %.not19 = icmp eq ptr %51, null
  %52 = getelementptr inbounds i8, ptr %51, i64 1
  %53 = select i1 %.not19, ptr getelementptr inbounds (i8, ptr @.str.20, i64 21), ptr %52
  %54 = getelementptr inbounds i8, ptr %50, i64 8
  store ptr %53, ptr %54, align 8, !tbaa !14
  %55 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  store i32 402653194, ptr %55, align 4, !tbaa !15
  %56 = call i32 @s2n_calculate_stacktrace() #8
  br label %95

57:                                               ; preds = %46
  %58 = call i32 @s2n_hash_test_state(ptr noundef nonnull %3, i32 noundef %0, ptr noundef %1)
  %59 = call zeroext i1 @s2n_result_is_ok(i32 %58)
  br i1 %59, label %60, label %95

60:                                               ; preds = %57
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %4) #8
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %4, i8 0, i64 24, i1 false)
  call void @llvm.lifetime.start.p0(i64 100, ptr nonnull %5) #8
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(100) %5, i8 0, i64 100, i1 false)
  %61 = call i32 @s2n_blob_init(ptr noundef nonnull %4, ptr noundef nonnull %5, i32 noundef 100) #8
  %62 = icmp sgt i32 %61, -1
  br i1 %62, label %63, label %.critedge

63:                                               ; preds = %60
  %64 = call i32 @s2n_hash_reset(ptr noundef nonnull %3) #8
  %65 = icmp sgt i32 %64, -1
  br i1 %65, label %66, label %.critedge

66:                                               ; preds = %63
  %67 = load i64, ptr %9, align 8, !tbaa !5
  %68 = icmp eq i64 %67, 0
  br i1 %68, label %69, label %.critedge.sink.split

69:                                               ; preds = %66
  %70 = load i8, ptr %21, align 4, !tbaa !16
  %71 = icmp eq i8 %70, 1
  br i1 %71, label %72, label %.critedge.sink.split

72:                                               ; preds = %69
  %73 = call i32 @s2n_hash_test_state(ptr noundef nonnull %3, i32 noundef %0, ptr noundef nonnull %4)
  %74 = call zeroext i1 @s2n_result_is_ok(i32 %73)
  br i1 %74, label %75, label %.critedge

75:                                               ; preds = %72
  %76 = getelementptr inbounds i8, ptr %1, i64 8
  %77 = load i32, ptr %76, align 8, !tbaa !17
  %78 = getelementptr inbounds i8, ptr %4, i64 8
  %79 = load i32, ptr %78, align 8, !tbaa !17
  %80 = icmp eq i32 %77, %79
  br i1 %80, label %81, label %.critedge.sink.split

81:                                               ; preds = %75
  %82 = load ptr, ptr %1, align 8, !tbaa !19
  %83 = load ptr, ptr %4, align 8, !tbaa !19
  %84 = zext i32 %77 to i64
  %bcmp = call i32 @bcmp(ptr %82, ptr %83, i64 %84)
  %85 = icmp eq i32 %bcmp, 0
  br i1 %85, label %86, label %.critedge.sink.split

86:                                               ; preds = %81
  call void @llvm.lifetime.end.p0(i64 100, ptr nonnull %5) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %4) #8
  %87 = call i32 @s2n_hash_free(ptr noundef nonnull %3) #8
  %.lobit = ashr i32 %87, 31
  br label %95

.critedge.sink.split:                             ; preds = %81, %75, %69, %66
  %.str.21.sink = phi ptr [ @.str.21, %66 ], [ @.str.22, %69 ], [ @.str.23, %75 ], [ @.str.24, %81 ]
  %.sink29 = phi ptr [ getelementptr inbounds (i8, ptr @.str.21, i64 21), %66 ], [ getelementptr inbounds (i8, ptr @.str.22, i64 21), %69 ], [ getelementptr inbounds (i8, ptr @.str.23, i64 21), %75 ], [ getelementptr inbounds (i8, ptr @.str.24, i64 21), %81 ]
  %88 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  store ptr %.str.21.sink, ptr %88, align 8, !tbaa !12
  %89 = call ptr @strrchr(ptr noundef nonnull dereferenceable(1) %.sink29, i32 noundef 47) #9
  %.not20 = icmp eq ptr %89, null
  %90 = getelementptr inbounds i8, ptr %89, i64 1
  %91 = select i1 %.not20, ptr %.sink29, ptr %90
  %92 = getelementptr inbounds i8, ptr %88, i64 8
  store ptr %91, ptr %92, align 8, !tbaa !14
  %93 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  store i32 402653194, ptr %93, align 4, !tbaa !15
  %94 = call i32 @s2n_calculate_stacktrace() #8
  br label %.critedge

.critedge:                                        ; preds = %.critedge.sink.split, %72, %63, %60
  call void @llvm.lifetime.end.p0(i64 100, ptr nonnull %5) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %4) #8
  br label %95

95:                                               ; preds = %86, %.critedge, %57, %32, %2, %49, %38, %24, %12
  %.sroa.07.1 = phi i32 [ -1, %49 ], [ -1, %38 ], [ -1, %24 ], [ -1, %12 ], [ -1, %2 ], [ -1, %32 ], [ -1, %57 ], [ -1, %.critedge ], [ %.lobit, %86 ]
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %3) #8
  ret i32 %.sroa.07.1
}

declare i32 @s2n_hash_init(ptr noundef, i32 noundef) local_unnamed_addr #5

; Function Attrs: inlinehint nounwind uwtable
declare hidden zeroext i1 @s2n_result_is_ok(i32) local_unnamed_addr #6

declare i32 @s2n_hash_reset(ptr noundef) local_unnamed_addr #5

; Function Attrs: nofree nounwind willreturn memory(argmem: read)
declare i32 @bcmp(ptr nocapture, ptr nocapture, i64) local_unnamed_addr #7

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

!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, !11, i64 16}
!6 = !{!"s2n_hash_state", !7, i64 0, !10, i64 8, !8, i64 12, !11, i64 16, !8, i64 24}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"int", !8, i64 0}
!11 = !{!"long", !8, i64 0}
!12 = !{!13, !7, i64 0}
!13 = !{!"s2n_debug_info", !7, i64 0, !7, i64 8}
!14 = !{!13, !7, i64 8}
!15 = !{!10, !10, i64 0}
!16 = !{!6, !8, i64 12}
!17 = !{!18, !10, i64 8}
!18 = !{!"s2n_blob", !7, i64 0, !10, i64 8, !10, i64 12, !10, i64 16}
!19 = !{!18, !7, i64 0}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,SROAPass,SimplifyCFGPass