; LLVM IR from specinfo-ua/UAPKI :: library/uapkic/src (hash)

; 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.HashCtx_st = type { ptr, i32, ptr, ptr, ptr, ptr, ptr }

@.str = external hidden unnamed_addr constant [14 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local ptr @hash_alloc(i32 noundef %0) #0 {
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca ptr, align 8
  store i32 %0, ptr %2, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #5
  store i32 0, ptr %3, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #5
  store ptr null, ptr %4, align 8, !tbaa !9
  br label %5

5:                                                ; preds = %1
  %6 = call noalias ptr @malloc(i64 noundef 56) #6
  store ptr %6, ptr %4, align 8, !tbaa !9
  %7 = icmp eq ptr null, %6
  br i1 %7, label %8, label %10

8:                                                ; preds = %5
  store i32 1, ptr %3, align 4, !tbaa !5
  %9 = load i32, ptr %3, align 4, !tbaa !5
  call void @stacktrace_create(ptr noundef @.str, i64 noundef 69, i32 noundef %9, ptr noundef null)
  br label %475

10:                                               ; preds = %5
  br label %11

11:                                               ; preds = %10
  br label %12

12:                                               ; preds = %11
  %13 = load i32, ptr %2, align 4, !tbaa !5
  %14 = load ptr, ptr %4, align 8, !tbaa !9
  %15 = getelementptr inbounds %struct.HashCtx_st, ptr %14, i32 0, i32 1
  store i32 %13, ptr %15, align 8, !tbaa !11
  %16 = load ptr, ptr %4, align 8, !tbaa !9
  %17 = getelementptr inbounds %struct.HashCtx_st, ptr %16, i32 0, i32 1
  %18 = load i32, ptr %17, align 8, !tbaa !11
  switch i32 %18, label %469 [
    i32 1, label %19
    i32 2, label %50
    i32 3, label %81
    i32 4, label %112
    i32 5, label %133
    i32 6, label %154
    i32 7, label %175
    i32 8, label %196
    i32 9, label %217
    i32 10, label %238
    i32 11, label %259
    i32 12, label %280
    i32 13, label %301
    i32 14, label %322
    i32 15, label %343
    i32 16, label %364
    i32 17, label %385
    i32 18, label %406
    i32 19, label %427
    i32 20, label %448
  ]

19:                                               ; preds = %12
  br label %20

20:                                               ; preds = %19
  %21 = call ptr @dstu7564_alloc()
  %22 = load ptr, ptr %4, align 8, !tbaa !9
  %23 = getelementptr inbounds %struct.HashCtx_st, ptr %22, i32 0, i32 0
  store ptr %21, ptr %23, align 8, !tbaa !13
  %24 = icmp eq ptr null, %21
  br i1 %24, label %25, label %27

25:                                               ; preds = %20
  store i32 2, ptr %3, align 4, !tbaa !5
  %26 = load i32, ptr %3, align 4, !tbaa !5
  call void @stacktrace_add(ptr noundef @.str, i64 noundef 75, i32 noundef %26)
  br label %475

27:                                               ; preds = %20
  br label %28

28:                                               ; preds = %27
  br label %29

29:                                               ; preds = %28
  %30 = load ptr, ptr %4, align 8, !tbaa !9
  %31 = getelementptr inbounds %struct.HashCtx_st, ptr %30, i32 0, i32 0
  %32 = load ptr, ptr %31, align 8, !tbaa !13
  %33 = call i32 @dstu7564_init(ptr noundef %32, i64 noundef 32)
  store i32 %33, ptr %3, align 4, !tbaa !5
  %34 = icmp ne i32 %33, 0
  br i1 %34, label %35, label %39

35:                                               ; preds = %29
  %36 = load ptr, ptr %4, align 8, !tbaa !9
  %37 = getelementptr inbounds %struct.HashCtx_st, ptr %36, i32 0, i32 0
  %38 = load ptr, ptr %37, align 8, !tbaa !13
  call void @dstu7564_free(ptr noundef %38)
  br label %39

39:                                               ; preds = %35, %29
  %40 = load ptr, ptr %4, align 8, !tbaa !9
  %41 = getelementptr inbounds %struct.HashCtx_st, ptr %40, i32 0, i32 2
  store ptr @dstu7564_update, ptr %41, align 8, !tbaa !14
  %42 = load ptr, ptr %4, align 8, !tbaa !9
  %43 = getelementptr inbounds %struct.HashCtx_st, ptr %42, i32 0, i32 3
  store ptr @dstu7564_final, ptr %43, align 8, !tbaa !15
  %44 = load ptr, ptr %4, align 8, !tbaa !9
  %45 = getelementptr inbounds %struct.HashCtx_st, ptr %44, i32 0, i32 4
  store ptr @dstu7564_free, ptr %45, align 8, !tbaa !16
  %46 = load ptr, ptr %4, align 8, !tbaa !9
  %47 = getelementptr inbounds %struct.HashCtx_st, ptr %46, i32 0, i32 5
  store ptr @dstu7564_get_block_size, ptr %47, align 8, !tbaa !17
  %48 = load ptr, ptr %4, align 8, !tbaa !9
  %49 = getelementptr inbounds %struct.HashCtx_st, ptr %48, i32 0, i32 6
  store ptr @dstu7564_copy_with_alloc, ptr %49, align 8, !tbaa !18
  br label %474

50:                                               ; preds = %12
  br label %51

51:                                               ; preds = %50
  %52 = call ptr @dstu7564_alloc()
  %53 = load ptr, ptr %4, align 8, !tbaa !9
  %54 = getelementptr inbounds %struct.HashCtx_st, ptr %53, i32 0, i32 0
  store ptr %52, ptr %54, align 8, !tbaa !13
  %55 = icmp eq ptr null, %52
  br i1 %55, label %56, label %58

56:                                               ; preds = %51
  store i32 2, ptr %3, align 4, !tbaa !5
  %57 = load i32, ptr %3, align 4, !tbaa !5
  call void @stacktrace_add(ptr noundef @.str, i64 noundef 87, i32 noundef %57)
  br label %475

58:                                               ; preds = %51
  br label %59

59:                                               ; preds = %58
  br label %60

60:                                               ; preds = %59
  %61 = load ptr, ptr %4, align 8, !tbaa !9
  %62 = getelementptr inbounds %struct.HashCtx_st, ptr %61, i32 0, i32 0
  %63 = load ptr, ptr %62, align 8, !tbaa !13
  %64 = call i32 @dstu7564_init(ptr noundef %63, i64 noundef 48)
  store i32 %64, ptr %3, align 4, !tbaa !5
  %65 = icmp ne i32 %64, 0
  br i1 %65, label %66, label %70

66:                                               ; preds = %60
  %67 = load ptr, ptr %4, align 8, !tbaa !9
  %68 = getelementptr inbounds %struct.HashCtx_st, ptr %67, i32 0, i32 0
  %69 = load ptr, ptr %68, align 8, !tbaa !13
  call void @dstu7564_free(ptr noundef %69)
  br label %70

70:                                               ; preds = %66, %60
  %71 = load ptr, ptr %4, align 8, !tbaa !9
  %72 = getelementptr inbounds %struct.HashCtx_st, ptr %71, i32 0, i32 2
  store ptr @dstu7564_update, ptr %72, align 8, !tbaa !14
  %73 = load ptr, ptr %4, align 8, !tbaa !9
  %74 = getelementptr inbounds %struct.HashCtx_st, ptr %73, i32 0, i32 3
  store ptr @dstu7564_final, ptr %74, align 8, !tbaa !15
  %75 = load ptr, ptr %4, align 8, !tbaa !9
  %76 = getelementptr inbounds %struct.HashCtx_st, ptr %75, i32 0, i32 4
  store ptr @dstu7564_free, ptr %76, align 8, !tbaa !16
  %77 = load ptr, ptr %4, align 8, !tbaa !9
  %78 = getelementptr inbounds %struct.HashCtx_st, ptr %77, i32 0, i32 5
  store ptr @dstu7564_get_block_size, ptr %78, align 8, !tbaa !17
  %79 = load ptr, ptr %4, align 8, !tbaa !9
  %80 = getelementptr inbounds %struct.HashCtx_st, ptr %79, i32 0, i32 6
  store ptr @dstu7564_copy_with_alloc, ptr %80, align 8, !tbaa !18
  br label %474

81:                                               ; preds = %12
  br label %82

82:                                               ; preds = %81
  %83 = call ptr @dstu7564_alloc()
  %84 = load ptr, ptr %4, align 8, !tbaa !9
  %85 = getelementptr inbounds %struct.HashCtx_st, ptr %84, i32 0, i32 0
  store ptr %83, ptr %85, align 8, !tbaa !13
  %86 = icmp eq ptr null, %83
  br i1 %86, label %87, label %89

87:                                               ; preds = %82
  store i32 2, ptr %3, align 4, !tbaa !5
  %88 = load i32, ptr %3, align 4, !tbaa !5
  call void @stacktrace_add(ptr noundef @.str, i64 noundef 99, i32 noundef %88)
  br label %475

89:                                               ; preds = %82
  br label %90

90:                                               ; preds = %89
  br label %91

91:                                               ; preds = %90
  %92 = load ptr, ptr %4, align 8, !tbaa !9
  %93 = getelementptr inbounds %struct.HashCtx_st, ptr %92, i32 0, i32 0
  %94 = load ptr, ptr %93, align 8, !tbaa !13
  %95 = call i32 @dstu7564_init(ptr noundef %94, i64 noundef 64)
  store i32 %95, ptr %3, align 4, !tbaa !5
  %96 = icmp ne i32 %95, 0
  br i1 %96, label %97, label %101

97:                                               ; preds = %91
  %98 = load ptr, ptr %4, align 8, !tbaa !9
  %99 = getelementptr inbounds %struct.HashCtx_st, ptr %98, i32 0, i32 0
  %100 = load ptr, ptr %99, align 8, !tbaa !13
  call void @free(ptr noundef %100) #5
  br label %101

101:                                              ; preds = %97, %91
  %102 = load ptr, ptr %4, align 8, !tbaa !9
  %103 = getelementptr inbounds %struct.HashCtx_st, ptr %102, i32 0, i32 2
  store ptr @dstu7564_update, ptr %103, align 8, !tbaa !14
  %104 = load ptr, ptr %4, align 8, !tbaa !9
  %105 = getelementptr inbounds %struct.HashCtx_st, ptr %104, i32 0, i32 3
  store ptr @dstu7564_final, ptr %105, align 8, !tbaa !15
  %106 = load ptr, ptr %4, align 8, !tbaa !9
  %107 = getelementptr inbounds %struct.HashCtx_st, ptr %106, i32 0, i32 4
  store ptr @dstu7564_free, ptr %107, align 8, !tbaa !16
  %108 = load ptr, ptr %4, align 8, !tbaa !9
  %109 = getelementptr inbounds %struct.HashCtx_st, ptr %108, i32 0, i32 5
  store ptr @dstu7564_get_block_size, ptr %109, align 8, !tbaa !17
  %110 = load ptr, ptr %4, align 8, !tbaa !9
  %111 = getelementptr inbounds %struct.HashCtx_st, ptr %110, i32 0, i32 6
  store ptr @dstu7564_copy_with_alloc, ptr %111, align 8, !tbaa !18
  br label %474

112:                                              ; preds = %12
  br label %113

113:                                              ; preds = %112
  %114 = call ptr @gost34311_alloc(i32 noundef 1, ptr noundef null)
  %115 = load ptr, ptr %4, align 8, !tbaa !9
  %116 = getelementptr inbounds %struct.HashCtx_st, ptr %115, i32 0, i32 0
  store ptr %114, ptr %116, align 8, !tbaa !13
  %117 = icmp eq ptr null, %114
  br i1 %117, label %118, label %120

118:                                              ; preds = %113
  store i32 2, ptr %3, align 4, !tbaa !5
  %119 = load i32, ptr %3, align 4, !tbaa !5
  call void @stacktrace_add(ptr noundef @.str, i64 noundef 111, i32 noundef %119)
  br label %475

120:                                              ; preds = %113
  br label %121

121:                                              ; preds = %120
  br label %122

122:                                              ; preds = %121
  %123 = load ptr, ptr %4, align 8, !tbaa !9
  %124 = getelementptr inbounds %struct.HashCtx_st, ptr %123, i32 0, i32 2
  store ptr @gost34311_update, ptr %124, align 8, !tbaa !14
  %125 = load ptr, ptr %4, align 8, !tbaa !9
  %126 = getelementptr inbounds %struct.HashCtx_st, ptr %125, i32 0, i32 3
  store ptr @gost34311_final, ptr %126, align 8, !tbaa !15
  %127 = load ptr, ptr %4, align 8, !tbaa !9
  %128 = getelementptr inbounds %struct.HashCtx_st, ptr %127, i32 0, i32 4
  store ptr @gost34311_free, ptr %128, align 8, !tbaa !16
  %129 = load ptr, ptr %4, align 8, !tbaa !9
  %130 = getelementptr inbounds %struct.HashCtx_st, ptr %129, i32 0, i32 5
  store ptr @gost34311_get_block_size, ptr %130, align 8, !tbaa !17
  %131 = load ptr, ptr %4, align 8, !tbaa !9
  %132 = getelementptr inbounds %struct.HashCtx_st, ptr %131, i32 0, i32 6
  store ptr @gost34311_copy_with_alloc, ptr %132, align 8, !tbaa !18
  br label %474

133:                                              ; preds = %12
  br label %134

134:                                              ; preds = %133
  %135 = call ptr @sha1_alloc()
  %136 = load ptr, ptr %4, align 8, !tbaa !9
  %137 = getelementptr inbounds %struct.HashCtx_st, ptr %136, i32 0, i32 0
  store ptr %135, ptr %137, align 8, !tbaa !13
  %138 = icmp eq ptr null, %135
  br i1 %138, label %139, label %141

139:                                              ; preds = %134
  store i32 2, ptr %3, align 4, !tbaa !5
  %140 = load i32, ptr %3, align 4, !tbaa !5
  call void @stacktrace_add(ptr noundef @.str, i64 noundef 120, i32 noundef %140)
  br label %475

141:                                              ; preds = %134
  br label %142

142:                                              ; preds = %141
  br label %143

143:                                              ; preds = %142
  %144 = load ptr, ptr %4, align 8, !tbaa !9
  %145 = getelementptr inbounds %struct.HashCtx_st, ptr %144, i32 0, i32 2
  store ptr @sha1_update, ptr %145, align 8, !tbaa !14
  %146 = load ptr, ptr %4, align 8, !tbaa !9
  %147 = getelementptr inbounds %struct.HashCtx_st, ptr %146, i32 0, i32 3
  store ptr @sha1_final, ptr %147, align 8, !tbaa !15
  %148 = load ptr, ptr %4, align 8, !tbaa !9
  %149 = getelementptr inbounds %struct.HashCtx_st, ptr %148, i32 0, i32 4
  store ptr @sha1_free, ptr %149, align 8, !tbaa !16
  %150 = load ptr, ptr %4, align 8, !tbaa !9
  %151 = getelementptr inbounds %struct.HashCtx_st, ptr %150, i32 0, i32 5
  store ptr @sha1_get_block_size, ptr %151, align 8, !tbaa !17
  %152 = load ptr, ptr %4, align 8, !tbaa !9
  %153 = getelementptr inbounds %struct.HashCtx_st, ptr %152, i32 0, i32 6
  store ptr @sha1_copy_with_alloc, ptr %153, align 8, !tbaa !18
  br label %474

154:                                              ; preds = %12
  br label %155

155:                                              ; preds = %154
  %156 = call ptr @sha2_alloc(i32 noundef 0)
  %157 = load ptr, ptr %4, align 8, !tbaa !9
  %158 = getelementptr inbounds %struct.HashCtx_st, ptr %157, i32 0, i32 0
  store ptr %156, ptr %158, align 8, !tbaa !13
  %159 = icmp eq ptr null, %156
  br i1 %159, label %160, label %162

160:                                              ; preds = %155
  store i32 2, ptr %3, align 4, !tbaa !5
  %161 = load i32, ptr %3, align 4, !tbaa !5
  call void @stacktrace_add(ptr noundef @.str, i64 noundef 129, i32 noundef %161)
  br label %475

162:                                              ; preds = %155
  br label %163

163:                                              ; preds = %162
  br label %164

164:                                              ; preds = %163
  %165 = load ptr, ptr %4, align 8, !tbaa !9
  %166 = getelementptr inbounds %struct.HashCtx_st, ptr %165, i32 0, i32 2
  store ptr @sha2_update, ptr %166, align 8, !tbaa !14
  %167 = load ptr, ptr %4, align 8, !tbaa !9
  %168 = getelementptr inbounds %struct.HashCtx_st, ptr %167, i32 0, i32 3
  store ptr @sha2_final, ptr %168, align 8, !tbaa !15
  %169 = load ptr, ptr %4, align 8, !tbaa !9
  %170 = getelementptr inbounds %struct.HashCtx_st, ptr %169, i32 0, i32 4
  store ptr @sha2_free, ptr %170, align 8, !tbaa !16
  %171 = load ptr, ptr %4, align 8, !tbaa !9
  %172 = getelementptr inbounds %struct.HashCtx_st, ptr %171, i32 0, i32 5
  store ptr @sha2_get_block_size, ptr %172, align 8, !tbaa !17
  %173 = load ptr, ptr %4, align 8, !tbaa !9
  %174 = getelementptr inbounds %struct.HashCtx_st, ptr %173, i32 0, i32 6
  store ptr @sha2_copy_with_alloc, ptr %174, align 8, !tbaa !18
  br label %474

175:                                              ; preds = %12
  br label %176

176:                                              ; preds = %175
  %177 = call ptr @sha2_alloc(i32 noundef 1)
  %178 = load ptr, ptr %4, align 8, !tbaa !9
  %179 = getelementptr inbounds %struct.HashCtx_st, ptr %178, i32 0, i32 0
  store ptr %177, ptr %179, align 8, !tbaa !13
  %180 = icmp eq ptr null, %177
  br i1 %180, label %181, label %183

181:                                              ; preds = %176
  store i32 2, ptr %3, align 4, !tbaa !5
  %182 = load i32, ptr %3, align 4, !tbaa !5
  call void @stacktrace_add(ptr noundef @.str, i64 noundef 138, i32 noundef %182)
  br label %475

183:                                              ; preds = %176
  br label %184

184:                                              ; preds = %183
  br label %185

185:                                              ; preds = %184
  %186 = load ptr, ptr %4, align 8, !tbaa !9
  %187 = getelementptr inbounds %struct.HashCtx_st, ptr %186, i32 0, i32 2
  store ptr @sha2_update, ptr %187, align 8, !tbaa !14
  %188 = load ptr, ptr %4, align 8, !tbaa !9
  %189 = getelementptr inbounds %struct.HashCtx_st, ptr %188, i32 0, i32 3
  store ptr @sha2_final, ptr %189, align 8, !tbaa !15
  %190 = load ptr, ptr %4, align 8, !tbaa !9
  %191 = getelementptr inbounds %struct.HashCtx_st, ptr %190, i32 0, i32 4
  store ptr @sha2_free, ptr %191, align 8, !tbaa !16
  %192 = load ptr, ptr %4, align 8, !tbaa !9
  %193 = getelementptr inbounds %struct.HashCtx_st, ptr %192, i32 0, i32 5
  store ptr @sha2_get_block_size, ptr %193, align 8, !tbaa !17
  %194 = load ptr, ptr %4, align 8, !tbaa !9
  %195 = getelementptr inbounds %struct.HashCtx_st, ptr %194, i32 0, i32 6
  store ptr @sha2_copy_with_alloc, ptr %195, align 8, !tbaa !18
  br label %474

196:                                              ; preds = %12
  br label %197

197:                                              ; preds = %196
  %198 = call ptr @sha2_alloc(i32 noundef 2)
  %199 = load ptr, ptr %4, align 8, !tbaa !9
  %200 = getelementptr inbounds %struct.HashCtx_st, ptr %199, i32 0, i32 0
  store ptr %198, ptr %200, align 8, !tbaa !13
  %201 = icmp eq ptr null, %198
  br i1 %201, label %202, label %204

202:                                              ; preds = %197
  store i32 2, ptr %3, align 4, !tbaa !5
  %203 = load i32, ptr %3, align 4, !tbaa !5
  call void @stacktrace_add(ptr noundef @.str, i64 noundef 147, i32 noundef %203)
  br label %475

204:                                              ; preds = %197
  br label %205

205:                                              ; preds = %204
  br label %206

206:                                              ; preds = %205
  %207 = load ptr, ptr %4, align 8, !tbaa !9
  %208 = getelementptr inbounds %struct.HashCtx_st, ptr %207, i32 0, i32 2
  store ptr @sha2_update, ptr %208, align 8, !tbaa !14
  %209 = load ptr, ptr %4, align 8, !tbaa !9
  %210 = getelementptr inbounds %struct.HashCtx_st, ptr %209, i32 0, i32 3
  store ptr @sha2_final, ptr %210, align 8, !tbaa !15
  %211 = load ptr, ptr %4, align 8, !tbaa !9
  %212 = getelementptr inbounds %struct.HashCtx_st, ptr %211, i32 0, i32 4
  store ptr @sha2_free, ptr %212, align 8, !tbaa !16
  %213 = load ptr, ptr %4, align 8, !tbaa !9
  %214 = getelementptr inbounds %struct.HashCtx_st, ptr %213, i32 0, i32 5
  store ptr @sha2_get_block_size, ptr %214, align 8, !tbaa !17
  %215 = load ptr, ptr %4, align 8, !tbaa !9
  %216 = getelementptr inbounds %struct.HashCtx_st, ptr %215, i32 0, i32 6
  store ptr @sha2_copy_with_alloc, ptr %216, align 8, !tbaa !18
  br label %474

217:                                              ; preds = %12
  br label %218

218:                                              ; preds = %217
  %219 = call ptr @sha2_alloc(i32 noundef 3)
  %220 = load ptr, ptr %4, align 8, !tbaa !9
  %221 = getelementptr inbounds %struct.HashCtx_st, ptr %220, i32 0, i32 0
  store ptr %219, ptr %221, align 8, !tbaa !13
  %222 = icmp eq ptr null, %219
  br i1 %222, label %223, label %225

223:                                              ; preds = %218
  store i32 2, ptr %3, align 4, !tbaa !5
  %224 = load i32, ptr %3, align 4, !tbaa !5
  call void @stacktrace_add(ptr noundef @.str, i64 noundef 156, i32 noundef %224)
  br label %475

225:                                              ; preds = %218
  br label %226

226:                                              ; preds = %225
  br label %227

227:                                              ; preds = %226
  %228 = load ptr, ptr %4, align 8, !tbaa !9
  %229 = getelementptr inbounds %struct.HashCtx_st, ptr %228, i32 0, i32 2
  store ptr @sha2_update, ptr %229, align 8, !tbaa !14
  %230 = load ptr, ptr %4, align 8, !tbaa !9
  %231 = getelementptr inbounds %struct.HashCtx_st, ptr %230, i32 0, i32 3
  store ptr @sha2_final, ptr %231, align 8, !tbaa !15
  %232 = load ptr, ptr %4, align 8, !tbaa !9
  %233 = getelementptr inbounds %struct.HashCtx_st, ptr %232, i32 0, i32 4
  store ptr @sha2_free, ptr %233, align 8, !tbaa !16
  %234 = load ptr, ptr %4, align 8, !tbaa !9
  %235 = getelementptr inbounds %struct.HashCtx_st, ptr %234, i32 0, i32 5
  store ptr @sha2_get_block_size, ptr %235, align 8, !tbaa !17
  %236 = load ptr, ptr %4, align 8, !tbaa !9
  %237 = getelementptr inbounds %struct.HashCtx_st, ptr %236, i32 0, i32 6
  store ptr @sha2_copy_with_alloc, ptr %237, align 8, !tbaa !18
  br label %474

238:                                              ; preds = %12
  br label %239

239:                                              ; preds = %238
  %240 = call ptr @sha3_alloc(i32 noundef 0)
  %241 = load ptr, ptr %4, align 8, !tbaa !9
  %242 = getelementptr inbounds %struct.HashCtx_st, ptr %241, i32 0, i32 0
  store ptr %240, ptr %242, align 8, !tbaa !13
  %243 = icmp eq ptr null, %240
  br i1 %243, label %244, label %246

244:                                              ; preds = %239
  store i32 2, ptr %3, align 4, !tbaa !5
  %245 = load i32, ptr %3, align 4, !tbaa !5
  call void @stacktrace_add(ptr noundef @.str, i64 noundef 165, i32 noundef %245)
  br label %475

246:                                              ; preds = %239
  br label %247

247:                                              ; preds = %246
  br label %248

248:                                              ; preds = %247
  %249 = load ptr, ptr %4, align 8, !tbaa !9
  %250 = getelementptr inbounds %struct.HashCtx_st, ptr %249, i32 0, i32 2
  store ptr @sha3_update, ptr %250, align 8, !tbaa !14
  %251 = load ptr, ptr %4, align 8, !tbaa !9
  %252 = getelementptr inbounds %struct.HashCtx_st, ptr %251, i32 0, i32 3
  store ptr @sha3_final, ptr %252, align 8, !tbaa !15
  %253 = load ptr, ptr %4, align 8, !tbaa !9
  %254 = getelementptr inbounds %struct.HashCtx_st, ptr %253, i32 0, i32 4
  store ptr @sha3_free, ptr %254, align 8, !tbaa !16
  %255 = load ptr, ptr %4, align 8, !tbaa !9
  %256 = getelementptr inbounds %struct.HashCtx_st, ptr %255, i32 0, i32 5
  store ptr @sha3_get_block_size, ptr %256, align 8, !tbaa !17
  %257 = load ptr, ptr %4, align 8, !tbaa !9
  %258 = getelementptr inbounds %struct.HashCtx_st, ptr %257, i32 0, i32 6
  store ptr @sha3_copy_with_alloc, ptr %258, align 8, !tbaa !18
  br label %474

259:                                              ; preds = %12
  br label %260

260:                                              ; preds = %259
  %261 = call ptr @sha3_alloc(i32 noundef 1)
  %262 = load ptr, ptr %4, align 8, !tbaa !9
  %263 = getelementptr inbounds %struct.HashCtx_st, ptr %262, i32 0, i32 0
  store ptr %261, ptr %263, align 8, !tbaa !13
  %264 = icmp eq ptr null, %261
  br i1 %264, label %265, label %267

265:                                              ; preds = %260
  store i32 2, ptr %3, align 4, !tbaa !5
  %266 = load i32, ptr %3, align 4, !tbaa !5
  call void @stacktrace_add(ptr noundef @.str, i64 noundef 174, i32 noundef %266)
  br label %475

267:                                              ; preds = %260
  br label %268

268:                                              ; preds = %267
  br label %269

269:                                              ; preds = %268
  %270 = load ptr, ptr %4, align 8, !tbaa !9
  %271 = getelementptr inbounds %struct.HashCtx_st, ptr %270, i32 0, i32 2
  store ptr @sha3_update, ptr %271, align 8, !tbaa !14
  %272 = load ptr, ptr %4, align 8, !tbaa !9
  %273 = getelementptr inbounds %struct.HashCtx_st, ptr %272, i32 0, i32 3
  store ptr @sha3_final, ptr %273, align 8, !tbaa !15
  %274 = load ptr, ptr %4, align 8, !tbaa !9
  %275 = getelementptr inbounds %struct.HashCtx_st, ptr %274, i32 0, i32 4
  store ptr @sha3_free, ptr %275, align 8, !tbaa !16
  %276 = load ptr, ptr %4, align 8, !tbaa !9
  %277 = getelementptr inbounds %struct.HashCtx_st, ptr %276, i32 0, i32 5
  store ptr @sha3_get_block_size, ptr %277, align 8, !tbaa !17
  %278 = load ptr, ptr %4, align 8, !tbaa !9
  %279 = getelementptr inbounds %struct.HashCtx_st, ptr %278, i32 0, i32 6
  store ptr @sha3_copy_with_alloc, ptr %279, align 8, !tbaa !18
  br label %474

280:                                              ; preds = %12
  br label %281

281:                                              ; preds = %280
  %282 = call ptr @sha3_alloc(i32 noundef 2)
  %283 = load ptr, ptr %4, align 8, !tbaa !9
  %284 = getelementptr inbounds %struct.HashCtx_st, ptr %283, i32 0, i32 0
  store ptr %282, ptr %284, align 8, !tbaa !13
  %285 = icmp eq ptr null, %282
  br i1 %285, label %286, label %288

286:                                              ; preds = %281
  store i32 2, ptr %3, align 4, !tbaa !5
  %287 = load i32, ptr %3, align 4, !tbaa !5
  call void @stacktrace_add(ptr noundef @.str, i64 noundef 183, i32 noundef %287)
  br label %475

288:                                              ; preds = %281
  br label %289

289:                                              ; preds = %288
  br label %290

290:                                              ; preds = %289
  %291 = load ptr, ptr %4, align 8, !tbaa !9
  %292 = getelementptr inbounds %struct.HashCtx_st, ptr %291, i32 0, i32 2
  store ptr @sha3_update, ptr %292, align 8, !tbaa !14
  %293 = load ptr, ptr %4, align 8, !tbaa !9
  %294 = getelementptr inbounds %struct.HashCtx_st, ptr %293, i32 0, i32 3
  store ptr @sha3_final, ptr %294, align 8, !tbaa !15
  %295 = load ptr, ptr %4, align 8, !tbaa !9
  %296 = getelementptr inbounds %struct.HashCtx_st, ptr %295, i32 0, i32 4
  store ptr @sha3_free, ptr %296, align 8, !tbaa !16
  %297 = load ptr, ptr %4, align 8, !tbaa !9
  %298 = getelementptr inbounds %struct.HashCtx_st, ptr %297, i32 0, i32 5
  store ptr @sha3_get_block_size, ptr %298, align 8, !tbaa !17
  %299 = load ptr, ptr %4, align 8, !tbaa !9
  %300 = getelementptr inbounds %struct.HashCtx_st, ptr %299, i32 0, i32 6
  store ptr @sha3_copy_with_alloc, ptr %300, align 8, !tbaa !18
  br label %474

301:                                              ; preds = %12
  br label %302

302:                                              ; preds = %301
  %303 = call ptr @sha3_alloc(i32 noundef 3)
  %304 = load ptr, ptr %4, align 8, !tbaa !9
  %305 = getelementptr inbounds %struct.HashCtx_st, ptr %304, i32 0, i32 0
  store ptr %303, ptr %305, align 8, !tbaa !13
  %306 = icmp eq ptr null, %303
  br i1 %306, label %307, label %309

307:                                              ; preds = %302
  store i32 2, ptr %3, align 4, !tbaa !5
  %308 = load i32, ptr %3, align 4, !tbaa !5
  call void @stacktrace_add(ptr noundef @.str, i64 noundef 192, i32 noundef %308)
  br label %475

309:                                              ; preds = %302
  br label %310

310:                                              ; preds = %309
  br label %311

311:                                              ; preds = %310
  %312 = load ptr, ptr %4, align 8, !tbaa !9
  %313 = getelementptr inbounds %struct.HashCtx_st, ptr %312, i32 0, i32 2
  store ptr @sha3_update, ptr %313, align 8, !tbaa !14
  %314 = load ptr, ptr %4, align 8, !tbaa !9
  %315 = getelementptr inbounds %struct.HashCtx_st, ptr %314, i32 0, i32 3
  store ptr @sha3_final, ptr %315, align 8, !tbaa !15
  %316 = load ptr, ptr %4, align 8, !tbaa !9
  %317 = getelementptr inbounds %struct.HashCtx_st, ptr %316, i32 0, i32 4
  store ptr @sha3_free, ptr %317, align 8, !tbaa !16
  %318 = load ptr, ptr %4, align 8, !tbaa !9
  %319 = getelementptr inbounds %struct.HashCtx_st, ptr %318, i32 0, i32 5
  store ptr @sha3_get_block_size, ptr %319, align 8, !tbaa !17
  %320 = load ptr, ptr %4, align 8, !tbaa !9
  %321 = getelementptr inbounds %struct.HashCtx_st, ptr %320, i32 0, i32 6
  store ptr @sha3_copy_with_alloc, ptr %321, align 8, !tbaa !18
  br label %474

322:                                              ; preds = %12
  br label %323

323:                                              ; preds = %322
  %324 = call ptr @whirlpool_alloc()
  %325 = load ptr, ptr %4, align 8, !tbaa !9
  %326 = getelementptr inbounds %struct.HashCtx_st, ptr %325, i32 0, i32 0
  store ptr %324, ptr %326, align 8, !tbaa !13
  %327 = icmp eq ptr null, %324
  br i1 %327, label %328, label %330

328:                                              ; preds = %323
  store i32 2, ptr %3, align 4, !tbaa !5
  %329 = load i32, ptr %3, align 4, !tbaa !5
  call void @stacktrace_add(ptr noundef @.str, i64 noundef 201, i32 noundef %329)
  br label %475

330:                                              ; preds = %323
  br label %331

331:                                              ; preds = %330
  br label %332

332:                                              ; preds = %331
  %333 = load ptr, ptr %4, align 8, !tbaa !9
  %334 = getelementptr inbounds %struct.HashCtx_st, ptr %333, i32 0, i32 2
  store ptr @whirlpool_update, ptr %334, align 8, !tbaa !14
  %335 = load ptr, ptr %4, align 8, !tbaa !9
  %336 = getelementptr inbounds %struct.HashCtx_st, ptr %335, i32 0, i32 3
  store ptr @whirlpool_final, ptr %336, align 8, !tbaa !15
  %337 = load ptr, ptr %4, align 8, !tbaa !9
  %338 = getelementptr inbounds %struct.HashCtx_st, ptr %337, i32 0, i32 4
  store ptr @whirlpool_free, ptr %338, align 8, !tbaa !16
  %339 = load ptr, ptr %4, align 8, !tbaa !9
  %340 = getelementptr inbounds %struct.HashCtx_st, ptr %339, i32 0, i32 5
  store ptr @whirlpool_get_block_size, ptr %340, align 8, !tbaa !17
  %341 = load ptr, ptr %4, align 8, !tbaa !9
  %342 = getelementptr inbounds %struct.HashCtx_st, ptr %341, i32 0, i32 6
  store ptr @whirlpool_copy_with_alloc, ptr %342, align 8, !tbaa !18
  br label %474

343:                                              ; preds = %12
  br label %344

344:                                              ; preds = %343
  %345 = call ptr @sm3_alloc()
  %346 = load ptr, ptr %4, align 8, !tbaa !9
  %347 = getelementptr inbounds %struct.HashCtx_st, ptr %346, i32 0, i32 0
  store ptr %345, ptr %347, align 8, !tbaa !13
  %348 = icmp eq ptr null, %345
  br i1 %348, label %349, label %351

349:                                              ; preds = %344
  store i32 2, ptr %3, align 4, !tbaa !5
  %350 = load i32, ptr %3, align 4, !tbaa !5
  call void @stacktrace_add(ptr noundef @.str, i64 noundef 210, i32 noundef %350)
  br label %475

351:                                              ; preds = %344
  br label %352

352:                                              ; preds = %351
  br label %353

353:                                              ; preds = %352
  %354 = load ptr, ptr %4, align 8, !tbaa !9
  %355 = getelementptr inbounds %struct.HashCtx_st, ptr %354, i32 0, i32 2
  store ptr @sm3_update, ptr %355, align 8, !tbaa !14
  %356 = load ptr, ptr %4, align 8, !tbaa !9
  %357 = getelementptr inbounds %struct.HashCtx_st, ptr %356, i32 0, i32 3
  store ptr @sm3_final, ptr %357, align 8, !tbaa !15
  %358 = load ptr, ptr %4, align 8, !tbaa !9
  %359 = getelementptr inbounds %struct.HashCtx_st, ptr %358, i32 0, i32 4
  store ptr @sm3_free, ptr %359, align 8, !tbaa !16
  %360 = load ptr, ptr %4, align 8, !tbaa !9
  %361 = getelementptr inbounds %struct.HashCtx_st, ptr %360, i32 0, i32 5
  store ptr @sm3_get_block_size, ptr %361, align 8, !tbaa !17
  %362 = load ptr, ptr %4, align 8, !tbaa !9
  %363 = getelementptr inbounds %struct.HashCtx_st, ptr %362, i32 0, i32 6
  store ptr @sm3_copy_with_alloc, ptr %363, align 8, !tbaa !18
  br label %474

364:                                              ; preds = %12
  br label %365

365:                                              ; preds = %364
  %366 = call ptr @gostr3411_alloc(i32 noundef 0)
  %367 = load ptr, ptr %4, align 8, !tbaa !9
  %368 = getelementptr inbounds %struct.HashCtx_st, ptr %367, i32 0, i32 0
  store ptr %366, ptr %368, align 8, !tbaa !13
  %369 = icmp eq ptr null, %366
  br i1 %369, label %370, label %372

370:                                              ; preds = %365
  store i32 2, ptr %3, align 4, !tbaa !5
  %371 = load i32, ptr %3, align 4, !tbaa !5
  call void @stacktrace_add(ptr noundef @.str, i64 noundef 219, i32 noundef %371)
  br label %475

372:                                              ; preds = %365
  br label %373

373:                                              ; preds = %372
  br label %374

374:                                              ; preds = %373
  %375 = load ptr, ptr %4, align 8, !tbaa !9
  %376 = getelementptr inbounds %struct.HashCtx_st, ptr %375, i32 0, i32 2
  store ptr @gostr3411_update, ptr %376, align 8, !tbaa !14
  %377 = load ptr, ptr %4, align 8, !tbaa !9
  %378 = getelementptr inbounds %struct.HashCtx_st, ptr %377, i32 0, i32 3
  store ptr @gostr3411_final, ptr %378, align 8, !tbaa !15
  %379 = load ptr, ptr %4, align 8, !tbaa !9
  %380 = getelementptr inbounds %struct.HashCtx_st, ptr %379, i32 0, i32 4
  store ptr @gostr3411_free, ptr %380, align 8, !tbaa !16
  %381 = load ptr, ptr %4, align 8, !tbaa !9
  %382 = getelementptr inbounds %struct.HashCtx_st, ptr %381, i32 0, i32 5
  store ptr @gostr3411_get_block_size, ptr %382, align 8, !tbaa !17
  %383 = load ptr, ptr %4, align 8, !tbaa !9
  %384 = getelementptr inbounds %struct.HashCtx_st, ptr %383, i32 0, i32 6
  store ptr @gostr3411_copy_with_alloc, ptr %384, align 8, !tbaa !18
  br label %474

385:                                              ; preds = %12
  br label %386

386:                                              ; preds = %385
  %387 = call ptr @gostr3411_alloc(i32 noundef 1)
  %388 = load ptr, ptr %4, align 8, !tbaa !9
  %389 = getelementptr inbounds %struct.HashCtx_st, ptr %388, i32 0, i32 0
  store ptr %387, ptr %389, align 8, !tbaa !13
  %390 = icmp eq ptr null, %387
  br i1 %390, label %391, label %393

391:                                              ; preds = %386
  store i32 2, ptr %3, align 4, !tbaa !5
  %392 = load i32, ptr %3, align 4, !tbaa !5
  call void @stacktrace_add(ptr noundef @.str, i64 noundef 228, i32 noundef %392)
  br label %475

393:                                              ; preds = %386
  br label %394

394:                                              ; preds = %393
  br label %395

395:                                              ; preds = %394
  %396 = load ptr, ptr %4, align 8, !tbaa !9
  %397 = getelementptr inbounds %struct.HashCtx_st, ptr %396, i32 0, i32 2
  store ptr @gostr3411_update, ptr %397, align 8, !tbaa !14
  %398 = load ptr, ptr %4, align 8, !tbaa !9
  %399 = getelementptr inbounds %struct.HashCtx_st, ptr %398, i32 0, i32 3
  store ptr @gostr3411_final, ptr %399, align 8, !tbaa !15
  %400 = load ptr, ptr %4, align 8, !tbaa !9
  %401 = getelementptr inbounds %struct.HashCtx_st, ptr %400, i32 0, i32 4
  store ptr @gostr3411_free, ptr %401, align 8, !tbaa !16
  %402 = load ptr, ptr %4, align 8, !tbaa !9
  %403 = getelementptr inbounds %struct.HashCtx_st, ptr %402, i32 0, i32 5
  store ptr @gostr3411_get_block_size, ptr %403, align 8, !tbaa !17
  %404 = load ptr, ptr %4, align 8, !tbaa !9
  %405 = getelementptr inbounds %struct.HashCtx_st, ptr %404, i32 0, i32 6
  store ptr @gostr3411_copy_with_alloc, ptr %405, align 8, !tbaa !18
  br label %474

406:                                              ; preds = %12
  br label %407

407:                                              ; preds = %406
  %408 = call ptr @ripemd_alloc(i32 noundef 0)
  %409 = load ptr, ptr %4, align 8, !tbaa !9
  %410 = getelementptr inbounds %struct.HashCtx_st, ptr %409, i32 0, i32 0
  store ptr %408, ptr %410, align 8, !tbaa !13
  %411 = icmp eq ptr null, %408
  br i1 %411, label %412, label %414

412:                                              ; preds = %407
  store i32 2, ptr %3, align 4, !tbaa !5
  %413 = load i32, ptr %3, align 4, !tbaa !5
  call void @stacktrace_add(ptr noundef @.str, i64 noundef 237, i32 noundef %413)
  br label %475

414:                                              ; preds = %407
  br label %415

415:                                              ; preds = %414
  br label %416

416:                                              ; preds = %415
  %417 = load ptr, ptr %4, align 8, !tbaa !9
  %418 = getelementptr inbounds %struct.HashCtx_st, ptr %417, i32 0, i32 2
  store ptr @ripemd_update, ptr %418, align 8, !tbaa !14
  %419 = load ptr, ptr %4, align 8, !tbaa !9
  %420 = getelementptr inbounds %struct.HashCtx_st, ptr %419, i32 0, i32 3
  store ptr @ripemd_final, ptr %420, align 8, !tbaa !15
  %421 = load ptr, ptr %4, align 8, !tbaa !9
  %422 = getelementptr inbounds %struct.HashCtx_st, ptr %421, i32 0, i32 4
  store ptr @ripemd_free, ptr %422, align 8, !tbaa !16
  %423 = load ptr, ptr %4, align 8, !tbaa !9
  %424 = getelementptr inbounds %struct.HashCtx_st, ptr %423, i32 0, i32 5
  store ptr @ripemd_get_block_size, ptr %424, align 8, !tbaa !17
  %425 = load ptr, ptr %4, align 8, !tbaa !9
  %426 = getelementptr inbounds %struct.HashCtx_st, ptr %425, i32 0, i32 6
  store ptr @ripemd_copy_with_alloc, ptr %426, align 8, !tbaa !18
  br label %474

427:                                              ; preds = %12
  br label %428

428:                                              ; preds = %427
  %429 = call ptr @ripemd_alloc(i32 noundef 1)
  %430 = load ptr, ptr %4, align 8, !tbaa !9
  %431 = getelementptr inbounds %struct.HashCtx_st, ptr %430, i32 0, i32 0
  store ptr %429, ptr %431, align 8, !tbaa !13
  %432 = icmp eq ptr null, %429
  br i1 %432, label %433, label %435

433:                                              ; preds = %428
  store i32 2, ptr %3, align 4, !tbaa !5
  %434 = load i32, ptr %3, align 4, !tbaa !5
  call void @stacktrace_add(ptr noundef @.str, i64 noundef 246, i32 noundef %434)
  br label %475

435:                                              ; preds = %428
  br label %436

436:                                              ; preds = %435
  br label %437

437:                                              ; preds = %436
  %438 = load ptr, ptr %4, align 8, !tbaa !9
  %439 = getelementptr inbounds %struct.HashCtx_st, ptr %438, i32 0, i32 2
  store ptr @ripemd_update, ptr %439, align 8, !tbaa !14
  %440 = load ptr, ptr %4, align 8, !tbaa !9
  %441 = getelementptr inbounds %struct.HashCtx_st, ptr %440, i32 0, i32 3
  store ptr @ripemd_final, ptr %441, align 8, !tbaa !15
  %442 = load ptr, ptr %4, align 8, !tbaa !9
  %443 = getelementptr inbounds %struct.HashCtx_st, ptr %442, i32 0, i32 4
  store ptr @ripemd_free, ptr %443, align 8, !tbaa !16
  %444 = load ptr, ptr %4, align 8, !tbaa !9
  %445 = getelementptr inbounds %struct.HashCtx_st, ptr %444, i32 0, i32 5
  store ptr @ripemd_get_block_size, ptr %445, align 8, !tbaa !17
  %446 = load ptr, ptr %4, align 8, !tbaa !9
  %447 = getelementptr inbounds %struct.HashCtx_st, ptr %446, i32 0, i32 6
  store ptr @ripemd_copy_with_alloc, ptr %447, align 8, !tbaa !18
  br label %474

448:                                              ; preds = %12
  br label %449

449:                                              ; preds = %448
  %450 = call ptr @md5_alloc()
  %451 = load ptr, ptr %4, align 8, !tbaa !9
  %452 = getelementptr inbounds %struct.HashCtx_st, ptr %451, i32 0, i32 0
  store ptr %450, ptr %452, align 8, !tbaa !13
  %453 = icmp eq ptr null, %450
  br i1 %453, label %454, label %456

454:                                              ; preds = %449
  store i32 2, ptr %3, align 4, !tbaa !5
  %455 = load i32, ptr %3, align 4, !tbaa !5
  call void @stacktrace_add(ptr noundef @.str, i64 noundef 255, i32 noundef %455)
  br label %475

456:                                              ; preds = %449
  br label %457

457:                                              ; preds = %456
  br label %458

458:                                              ; preds = %457
  %459 = load ptr, ptr %4, align 8, !tbaa !9
  %460 = getelementptr inbounds %struct.HashCtx_st, ptr %459, i32 0, i32 2
  store ptr @md5_update, ptr %460, align 8, !tbaa !14
  %461 = load ptr, ptr %4, align 8, !tbaa !9
  %462 = getelementptr inbounds %struct.HashCtx_st, ptr %461, i32 0, i32 3
  store ptr @md5_final, ptr %462, align 8, !tbaa !15
  %463 = load ptr, ptr %4, align 8, !tbaa !9
  %464 = getelementptr inbounds %struct.HashCtx_st, ptr %463, i32 0, i32 4
  store ptr @md5_free, ptr %464, align 8, !tbaa !16
  %465 = load ptr, ptr %4, align 8, !tbaa !9
  %466 = getelementptr inbounds %struct.HashCtx_st, ptr %465, i32 0, i32 5
  store ptr @md5_get_block_size, ptr %466, align 8, !tbaa !17
  %467 = load ptr, ptr %4, align 8, !tbaa !9
  %468 = getelementptr inbounds %struct.HashCtx_st, ptr %467, i32 0, i32 6
  store ptr @md5_copy_with_alloc, ptr %468, align 8, !tbaa !18
  br label %474

469:                                              ; preds = %12
  br label %470

470:                                              ; preds = %469
  store i32 10, ptr %3, align 4, !tbaa !5
  %471 = load i32, ptr %3, align 4, !tbaa !5
  call void @stacktrace_create(ptr noundef @.str, i64 noundef 264, i32 noundef %471, ptr noundef null)
  br label %475

472:                                              ; No predecessors!
  br label %473

473:                                              ; preds = %472
  br label %474

474:                                              ; preds = %473, %458, %437, %416, %395, %374, %353, %332, %311, %290, %269, %248, %227, %206, %185, %164, %143, %122, %101, %70, %39
  br label %475

475:                                              ; preds = %474, %470, %454, %433, %412, %391, %370, %349, %328, %307, %286, %265, %244, %223, %202, %181, %160, %139, %118, %87, %56, %25, %8
  %476 = load i32, ptr %3, align 4, !tbaa !5
  %477 = icmp ne i32 %476, 0
  br i1 %477, label %478, label %480

478:                                              ; preds = %475
  %479 = load ptr, ptr %4, align 8, !tbaa !9
  call void @free(ptr noundef %479) #5
  store ptr null, ptr %4, align 8, !tbaa !9
  br label %480

480:                                              ; preds = %478, %475
  %481 = load ptr, ptr %4, align 8, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #5
  ret ptr %481
}

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

; Function Attrs: nounwind allocsize(0)
declare noalias ptr @malloc(i64 noundef) #2

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

declare ptr @dstu7564_alloc() #3

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

declare i32 @dstu7564_init(ptr noundef, i64 noundef) #3

declare void @dstu7564_free(ptr noundef) #3

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

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

declare i64 @dstu7564_get_block_size(ptr noundef) #3

declare ptr @dstu7564_copy_with_alloc(ptr noundef) #3

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

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

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

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

declare void @gost34311_free(ptr noundef) #3

declare i64 @gost34311_get_block_size(ptr noundef) #3

declare ptr @gost34311_copy_with_alloc(ptr noundef) #3

declare ptr @sha1_alloc() #3

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

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

declare void @sha1_free(ptr noundef) #3

declare i64 @sha1_get_block_size(ptr noundef) #3

declare ptr @sha1_copy_with_alloc(ptr noundef) #3

declare ptr @sha2_alloc(i32 noundef) #3

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

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

declare void @sha2_free(ptr noundef) #3

declare i64 @sha2_get_block_size(ptr noundef) #3

declare ptr @sha2_copy_with_alloc(ptr noundef) #3

declare ptr @sha3_alloc(i32 noundef) #3

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

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

declare void @sha3_free(ptr noundef) #3

declare i64 @sha3_get_block_size(ptr noundef) #3

declare ptr @sha3_copy_with_alloc(ptr noundef) #3

declare ptr @whirlpool_alloc() #3

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

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

declare void @whirlpool_free(ptr noundef) #3

declare i64 @whirlpool_get_block_size(ptr noundef) #3

declare ptr @whirlpool_copy_with_alloc(ptr noundef) #3

declare ptr @sm3_alloc() #3

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

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

declare void @sm3_free(ptr noundef) #3

declare i64 @sm3_get_block_size(ptr noundef) #3

declare ptr @sm3_copy_with_alloc(ptr noundef) #3

declare ptr @gostr3411_alloc(i32 noundef) #3

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

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

declare void @gostr3411_free(ptr noundef) #3

declare i64 @gostr3411_get_block_size(ptr noundef) #3

declare ptr @gostr3411_copy_with_alloc(ptr noundef) #3

declare ptr @ripemd_alloc(i32 noundef) #3

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

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

declare void @ripemd_free(ptr noundef) #3

declare i64 @ripemd_get_block_size(ptr noundef) #3

declare ptr @ripemd_copy_with_alloc(ptr noundef) #3

declare ptr @md5_alloc() #3

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

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

declare void @md5_free(ptr noundef) #3

declare i64 @md5_get_block_size(ptr noundef) #3

declare ptr @md5_copy_with_alloc(ptr noundef) #3

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

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

!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 8}
!12 = !{!"HashCtx_st", !10, i64 0, !6, i64 8, !10, i64 16, !10, i64 24, !10, i64 32, !10, i64 40, !10, i64 48}
!13 = !{!12, !10, i64 0}
!14 = !{!12, !10, i64 16}
!15 = !{!12, !10, i64 24}
!16 = !{!12, !10, i64 32}
!17 = !{!12, !10, i64 40}
!18 = !{!12, !10, i64 48}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

@.str = external hidden unnamed_addr constant [14 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local noundef ptr @hash_alloc(i32 noundef %0) local_unnamed_addr #0 {
  %2 = tail call noalias dereferenceable_or_null(56) ptr @malloc(i64 noundef 56) #4
  %3 = icmp eq ptr %2, null
  br i1 %3, label %4, label %5

4:                                                ; preds = %1
  tail call void @stacktrace_create(ptr noundef nonnull @.str, i64 noundef 69, i32 noundef 1, ptr noundef null) #5
  br label %.thread

5:                                                ; preds = %1
  %6 = getelementptr inbounds i8, ptr %2, i64 8
  store i32 %0, ptr %6, align 8, !tbaa !5
  switch i32 %0, label %201 [
    i32 1, label %7
    i32 2, label %15
    i32 3, label %23
    i32 4, label %31
    i32 5, label %41
    i32 6, label %51
    i32 7, label %61
    i32 8, label %71
    i32 9, label %81
    i32 10, label %91
    i32 11, label %101
    i32 12, label %111
    i32 13, label %121
    i32 14, label %131
    i32 15, label %141
    i32 16, label %151
    i32 17, label %161
    i32 18, label %171
    i32 19, label %181
    i32 20, label %191
  ]

7:                                                ; preds = %5
  %8 = tail call ptr @dstu7564_alloc() #5
  store ptr %8, ptr %2, align 8, !tbaa !11
  %9 = icmp eq ptr %8, null
  br i1 %9, label %10, label %11

10:                                               ; preds = %7
  tail call void @stacktrace_add(ptr noundef nonnull @.str, i64 noundef 75, i32 noundef 2) #5
  br label %.thread

11:                                               ; preds = %7
  %12 = tail call i32 @dstu7564_init(ptr noundef nonnull %8, i64 noundef 32) #5
  %.not159 = icmp eq i32 %12, 0
  br i1 %.not159, label %202, label %13

13:                                               ; preds = %11
  %14 = load ptr, ptr %2, align 8, !tbaa !11
  tail call void @dstu7564_free(ptr noundef %14) #5
  br label %.thread.critedge

15:                                               ; preds = %5
  %16 = tail call ptr @dstu7564_alloc() #5
  store ptr %16, ptr %2, align 8, !tbaa !11
  %17 = icmp eq ptr %16, null
  br i1 %17, label %18, label %19

18:                                               ; preds = %15
  tail call void @stacktrace_add(ptr noundef nonnull @.str, i64 noundef 87, i32 noundef 2) #5
  br label %.thread

19:                                               ; preds = %15
  %20 = tail call i32 @dstu7564_init(ptr noundef nonnull %16, i64 noundef 48) #5
  %.not158 = icmp eq i32 %20, 0
  br i1 %.not158, label %202, label %21

21:                                               ; preds = %19
  %22 = load ptr, ptr %2, align 8, !tbaa !11
  tail call void @dstu7564_free(ptr noundef %22) #5
  br label %.thread.critedge

23:                                               ; preds = %5
  %24 = tail call ptr @dstu7564_alloc() #5
  store ptr %24, ptr %2, align 8, !tbaa !11
  %25 = icmp eq ptr %24, null
  br i1 %25, label %26, label %27

26:                                               ; preds = %23
  tail call void @stacktrace_add(ptr noundef nonnull @.str, i64 noundef 99, i32 noundef 2) #5
  br label %.thread

27:                                               ; preds = %23
  %28 = tail call i32 @dstu7564_init(ptr noundef nonnull %24, i64 noundef 64) #5
  %.not = icmp eq i32 %28, 0
  br i1 %.not, label %202, label %29

29:                                               ; preds = %27
  %30 = load ptr, ptr %2, align 8, !tbaa !11
  tail call void @free(ptr noundef %30) #5
  br label %.thread.critedge

31:                                               ; preds = %5
  %32 = tail call ptr @gost34311_alloc(i32 noundef 1, ptr noundef null) #5
  store ptr %32, ptr %2, align 8, !tbaa !11
  %33 = icmp eq ptr %32, null
  br i1 %33, label %34, label %35

34:                                               ; preds = %31
  tail call void @stacktrace_add(ptr noundef nonnull @.str, i64 noundef 111, i32 noundef 2) #5
  br label %.thread

35:                                               ; preds = %31
  %36 = getelementptr inbounds i8, ptr %2, i64 16
  store ptr @gost34311_update, ptr %36, align 8, !tbaa !12
  %37 = getelementptr inbounds i8, ptr %2, i64 24
  store ptr @gost34311_final, ptr %37, align 8, !tbaa !13
  %38 = getelementptr inbounds i8, ptr %2, i64 32
  store ptr @gost34311_free, ptr %38, align 8, !tbaa !14
  %39 = getelementptr inbounds i8, ptr %2, i64 40
  store ptr @gost34311_get_block_size, ptr %39, align 8, !tbaa !15
  %40 = getelementptr inbounds i8, ptr %2, i64 48
  store ptr @gost34311_copy_with_alloc, ptr %40, align 8, !tbaa !16
  br label %.thread164

41:                                               ; preds = %5
  %42 = tail call ptr @sha1_alloc() #5
  store ptr %42, ptr %2, align 8, !tbaa !11
  %43 = icmp eq ptr %42, null
  br i1 %43, label %44, label %45

44:                                               ; preds = %41
  tail call void @stacktrace_add(ptr noundef nonnull @.str, i64 noundef 120, i32 noundef 2) #5
  br label %.thread

45:                                               ; preds = %41
  %46 = getelementptr inbounds i8, ptr %2, i64 16
  store ptr @sha1_update, ptr %46, align 8, !tbaa !12
  %47 = getelementptr inbounds i8, ptr %2, i64 24
  store ptr @sha1_final, ptr %47, align 8, !tbaa !13
  %48 = getelementptr inbounds i8, ptr %2, i64 32
  store ptr @sha1_free, ptr %48, align 8, !tbaa !14
  %49 = getelementptr inbounds i8, ptr %2, i64 40
  store ptr @sha1_get_block_size, ptr %49, align 8, !tbaa !15
  %50 = getelementptr inbounds i8, ptr %2, i64 48
  store ptr @sha1_copy_with_alloc, ptr %50, align 8, !tbaa !16
  br label %.thread164

51:                                               ; preds = %5
  %52 = tail call ptr @sha2_alloc(i32 noundef 0) #5
  store ptr %52, ptr %2, align 8, !tbaa !11
  %53 = icmp eq ptr %52, null
  br i1 %53, label %54, label %55

54:                                               ; preds = %51
  tail call void @stacktrace_add(ptr noundef nonnull @.str, i64 noundef 129, i32 noundef 2) #5
  br label %.thread

55:                                               ; preds = %51
  %56 = getelementptr inbounds i8, ptr %2, i64 16
  store ptr @sha2_update, ptr %56, align 8, !tbaa !12
  %57 = getelementptr inbounds i8, ptr %2, i64 24
  store ptr @sha2_final, ptr %57, align 8, !tbaa !13
  %58 = getelementptr inbounds i8, ptr %2, i64 32
  store ptr @sha2_free, ptr %58, align 8, !tbaa !14
  %59 = getelementptr inbounds i8, ptr %2, i64 40
  store ptr @sha2_get_block_size, ptr %59, align 8, !tbaa !15
  %60 = getelementptr inbounds i8, ptr %2, i64 48
  store ptr @sha2_copy_with_alloc, ptr %60, align 8, !tbaa !16
  br label %.thread164

61:                                               ; preds = %5
  %62 = tail call ptr @sha2_alloc(i32 noundef 1) #5
  store ptr %62, ptr %2, align 8, !tbaa !11
  %63 = icmp eq ptr %62, null
  br i1 %63, label %64, label %65

64:                                               ; preds = %61
  tail call void @stacktrace_add(ptr noundef nonnull @.str, i64 noundef 138, i32 noundef 2) #5
  br label %.thread

65:                                               ; preds = %61
  %66 = getelementptr inbounds i8, ptr %2, i64 16
  store ptr @sha2_update, ptr %66, align 8, !tbaa !12
  %67 = getelementptr inbounds i8, ptr %2, i64 24
  store ptr @sha2_final, ptr %67, align 8, !tbaa !13
  %68 = getelementptr inbounds i8, ptr %2, i64 32
  store ptr @sha2_free, ptr %68, align 8, !tbaa !14
  %69 = getelementptr inbounds i8, ptr %2, i64 40
  store ptr @sha2_get_block_size, ptr %69, align 8, !tbaa !15
  %70 = getelementptr inbounds i8, ptr %2, i64 48
  store ptr @sha2_copy_with_alloc, ptr %70, align 8, !tbaa !16
  br label %.thread164

71:                                               ; preds = %5
  %72 = tail call ptr @sha2_alloc(i32 noundef 2) #5
  store ptr %72, ptr %2, align 8, !tbaa !11
  %73 = icmp eq ptr %72, null
  br i1 %73, label %74, label %75

74:                                               ; preds = %71
  tail call void @stacktrace_add(ptr noundef nonnull @.str, i64 noundef 147, i32 noundef 2) #5
  br label %.thread

75:                                               ; preds = %71
  %76 = getelementptr inbounds i8, ptr %2, i64 16
  store ptr @sha2_update, ptr %76, align 8, !tbaa !12
  %77 = getelementptr inbounds i8, ptr %2, i64 24
  store ptr @sha2_final, ptr %77, align 8, !tbaa !13
  %78 = getelementptr inbounds i8, ptr %2, i64 32
  store ptr @sha2_free, ptr %78, align 8, !tbaa !14
  %79 = getelementptr inbounds i8, ptr %2, i64 40
  store ptr @sha2_get_block_size, ptr %79, align 8, !tbaa !15
  %80 = getelementptr inbounds i8, ptr %2, i64 48
  store ptr @sha2_copy_with_alloc, ptr %80, align 8, !tbaa !16
  br label %.thread164

81:                                               ; preds = %5
  %82 = tail call ptr @sha2_alloc(i32 noundef 3) #5
  store ptr %82, ptr %2, align 8, !tbaa !11
  %83 = icmp eq ptr %82, null
  br i1 %83, label %84, label %85

84:                                               ; preds = %81
  tail call void @stacktrace_add(ptr noundef nonnull @.str, i64 noundef 156, i32 noundef 2) #5
  br label %.thread

85:                                               ; preds = %81
  %86 = getelementptr inbounds i8, ptr %2, i64 16
  store ptr @sha2_update, ptr %86, align 8, !tbaa !12
  %87 = getelementptr inbounds i8, ptr %2, i64 24
  store ptr @sha2_final, ptr %87, align 8, !tbaa !13
  %88 = getelementptr inbounds i8, ptr %2, i64 32
  store ptr @sha2_free, ptr %88, align 8, !tbaa !14
  %89 = getelementptr inbounds i8, ptr %2, i64 40
  store ptr @sha2_get_block_size, ptr %89, align 8, !tbaa !15
  %90 = getelementptr inbounds i8, ptr %2, i64 48
  store ptr @sha2_copy_with_alloc, ptr %90, align 8, !tbaa !16
  br label %.thread164

91:                                               ; preds = %5
  %92 = tail call ptr @sha3_alloc(i32 noundef 0) #5
  store ptr %92, ptr %2, align 8, !tbaa !11
  %93 = icmp eq ptr %92, null
  br i1 %93, label %94, label %95

94:                                               ; preds = %91
  tail call void @stacktrace_add(ptr noundef nonnull @.str, i64 noundef 165, i32 noundef 2) #5
  br label %.thread

95:                                               ; preds = %91
  %96 = getelementptr inbounds i8, ptr %2, i64 16
  store ptr @sha3_update, ptr %96, align 8, !tbaa !12
  %97 = getelementptr inbounds i8, ptr %2, i64 24
  store ptr @sha3_final, ptr %97, align 8, !tbaa !13
  %98 = getelementptr inbounds i8, ptr %2, i64 32
  store ptr @sha3_free, ptr %98, align 8, !tbaa !14
  %99 = getelementptr inbounds i8, ptr %2, i64 40
  store ptr @sha3_get_block_size, ptr %99, align 8, !tbaa !15
  %100 = getelementptr inbounds i8, ptr %2, i64 48
  store ptr @sha3_copy_with_alloc, ptr %100, align 8, !tbaa !16
  br label %.thread164

101:                                              ; preds = %5
  %102 = tail call ptr @sha3_alloc(i32 noundef 1) #5
  store ptr %102, ptr %2, align 8, !tbaa !11
  %103 = icmp eq ptr %102, null
  br i1 %103, label %104, label %105

104:                                              ; preds = %101
  tail call void @stacktrace_add(ptr noundef nonnull @.str, i64 noundef 174, i32 noundef 2) #5
  br label %.thread

105:                                              ; preds = %101
  %106 = getelementptr inbounds i8, ptr %2, i64 16
  store ptr @sha3_update, ptr %106, align 8, !tbaa !12
  %107 = getelementptr inbounds i8, ptr %2, i64 24
  store ptr @sha3_final, ptr %107, align 8, !tbaa !13
  %108 = getelementptr inbounds i8, ptr %2, i64 32
  store ptr @sha3_free, ptr %108, align 8, !tbaa !14
  %109 = getelementptr inbounds i8, ptr %2, i64 40
  store ptr @sha3_get_block_size, ptr %109, align 8, !tbaa !15
  %110 = getelementptr inbounds i8, ptr %2, i64 48
  store ptr @sha3_copy_with_alloc, ptr %110, align 8, !tbaa !16
  br label %.thread164

111:                                              ; preds = %5
  %112 = tail call ptr @sha3_alloc(i32 noundef 2) #5
  store ptr %112, ptr %2, align 8, !tbaa !11
  %113 = icmp eq ptr %112, null
  br i1 %113, label %114, label %115

114:                                              ; preds = %111
  tail call void @stacktrace_add(ptr noundef nonnull @.str, i64 noundef 183, i32 noundef 2) #5
  br label %.thread

115:                                              ; preds = %111
  %116 = getelementptr inbounds i8, ptr %2, i64 16
  store ptr @sha3_update, ptr %116, align 8, !tbaa !12
  %117 = getelementptr inbounds i8, ptr %2, i64 24
  store ptr @sha3_final, ptr %117, align 8, !tbaa !13
  %118 = getelementptr inbounds i8, ptr %2, i64 32
  store ptr @sha3_free, ptr %118, align 8, !tbaa !14
  %119 = getelementptr inbounds i8, ptr %2, i64 40
  store ptr @sha3_get_block_size, ptr %119, align 8, !tbaa !15
  %120 = getelementptr inbounds i8, ptr %2, i64 48
  store ptr @sha3_copy_with_alloc, ptr %120, align 8, !tbaa !16
  br label %.thread164

121:                                              ; preds = %5
  %122 = tail call ptr @sha3_alloc(i32 noundef 3) #5
  store ptr %122, ptr %2, align 8, !tbaa !11
  %123 = icmp eq ptr %122, null
  br i1 %123, label %124, label %125

124:                                              ; preds = %121
  tail call void @stacktrace_add(ptr noundef nonnull @.str, i64 noundef 192, i32 noundef 2) #5
  br label %.thread

125:                                              ; preds = %121
  %126 = getelementptr inbounds i8, ptr %2, i64 16
  store ptr @sha3_update, ptr %126, align 8, !tbaa !12
  %127 = getelementptr inbounds i8, ptr %2, i64 24
  store ptr @sha3_final, ptr %127, align 8, !tbaa !13
  %128 = getelementptr inbounds i8, ptr %2, i64 32
  store ptr @sha3_free, ptr %128, align 8, !tbaa !14
  %129 = getelementptr inbounds i8, ptr %2, i64 40
  store ptr @sha3_get_block_size, ptr %129, align 8, !tbaa !15
  %130 = getelementptr inbounds i8, ptr %2, i64 48
  store ptr @sha3_copy_with_alloc, ptr %130, align 8, !tbaa !16
  br label %.thread164

131:                                              ; preds = %5
  %132 = tail call ptr @whirlpool_alloc() #5
  store ptr %132, ptr %2, align 8, !tbaa !11
  %133 = icmp eq ptr %132, null
  br i1 %133, label %134, label %135

134:                                              ; preds = %131
  tail call void @stacktrace_add(ptr noundef nonnull @.str, i64 noundef 201, i32 noundef 2) #5
  br label %.thread

135:                                              ; preds = %131
  %136 = getelementptr inbounds i8, ptr %2, i64 16
  store ptr @whirlpool_update, ptr %136, align 8, !tbaa !12
  %137 = getelementptr inbounds i8, ptr %2, i64 24
  store ptr @whirlpool_final, ptr %137, align 8, !tbaa !13
  %138 = getelementptr inbounds i8, ptr %2, i64 32
  store ptr @whirlpool_free, ptr %138, align 8, !tbaa !14
  %139 = getelementptr inbounds i8, ptr %2, i64 40
  store ptr @whirlpool_get_block_size, ptr %139, align 8, !tbaa !15
  %140 = getelementptr inbounds i8, ptr %2, i64 48
  store ptr @whirlpool_copy_with_alloc, ptr %140, align 8, !tbaa !16
  br label %.thread164

141:                                              ; preds = %5
  %142 = tail call ptr @sm3_alloc() #5
  store ptr %142, ptr %2, align 8, !tbaa !11
  %143 = icmp eq ptr %142, null
  br i1 %143, label %144, label %145

144:                                              ; preds = %141
  tail call void @stacktrace_add(ptr noundef nonnull @.str, i64 noundef 210, i32 noundef 2) #5
  br label %.thread

145:                                              ; preds = %141
  %146 = getelementptr inbounds i8, ptr %2, i64 16
  store ptr @sm3_update, ptr %146, align 8, !tbaa !12
  %147 = getelementptr inbounds i8, ptr %2, i64 24
  store ptr @sm3_final, ptr %147, align 8, !tbaa !13
  %148 = getelementptr inbounds i8, ptr %2, i64 32
  store ptr @sm3_free, ptr %148, align 8, !tbaa !14
  %149 = getelementptr inbounds i8, ptr %2, i64 40
  store ptr @sm3_get_block_size, ptr %149, align 8, !tbaa !15
  %150 = getelementptr inbounds i8, ptr %2, i64 48
  store ptr @sm3_copy_with_alloc, ptr %150, align 8, !tbaa !16
  br label %.thread164

151:                                              ; preds = %5
  %152 = tail call ptr @gostr3411_alloc(i32 noundef 0) #5
  store ptr %152, ptr %2, align 8, !tbaa !11
  %153 = icmp eq ptr %152, null
  br i1 %153, label %154, label %155

154:                                              ; preds = %151
  tail call void @stacktrace_add(ptr noundef nonnull @.str, i64 noundef 219, i32 noundef 2) #5
  br label %.thread

155:                                              ; preds = %151
  %156 = getelementptr inbounds i8, ptr %2, i64 16
  store ptr @gostr3411_update, ptr %156, align 8, !tbaa !12
  %157 = getelementptr inbounds i8, ptr %2, i64 24
  store ptr @gostr3411_final, ptr %157, align 8, !tbaa !13
  %158 = getelementptr inbounds i8, ptr %2, i64 32
  store ptr @gostr3411_free, ptr %158, align 8, !tbaa !14
  %159 = getelementptr inbounds i8, ptr %2, i64 40
  store ptr @gostr3411_get_block_size, ptr %159, align 8, !tbaa !15
  %160 = getelementptr inbounds i8, ptr %2, i64 48
  store ptr @gostr3411_copy_with_alloc, ptr %160, align 8, !tbaa !16
  br label %.thread164

161:                                              ; preds = %5
  %162 = tail call ptr @gostr3411_alloc(i32 noundef 1) #5
  store ptr %162, ptr %2, align 8, !tbaa !11
  %163 = icmp eq ptr %162, null
  br i1 %163, label %164, label %165

164:                                              ; preds = %161
  tail call void @stacktrace_add(ptr noundef nonnull @.str, i64 noundef 228, i32 noundef 2) #5
  br label %.thread

165:                                              ; preds = %161
  %166 = getelementptr inbounds i8, ptr %2, i64 16
  store ptr @gostr3411_update, ptr %166, align 8, !tbaa !12
  %167 = getelementptr inbounds i8, ptr %2, i64 24
  store ptr @gostr3411_final, ptr %167, align 8, !tbaa !13
  %168 = getelementptr inbounds i8, ptr %2, i64 32
  store ptr @gostr3411_free, ptr %168, align 8, !tbaa !14
  %169 = getelementptr inbounds i8, ptr %2, i64 40
  store ptr @gostr3411_get_block_size, ptr %169, align 8, !tbaa !15
  %170 = getelementptr inbounds i8, ptr %2, i64 48
  store ptr @gostr3411_copy_with_alloc, ptr %170, align 8, !tbaa !16
  br label %.thread164

171:                                              ; preds = %5
  %172 = tail call ptr @ripemd_alloc(i32 noundef 0) #5
  store ptr %172, ptr %2, align 8, !tbaa !11
  %173 = icmp eq ptr %172, null
  br i1 %173, label %174, label %175

174:                                              ; preds = %171
  tail call void @stacktrace_add(ptr noundef nonnull @.str, i64 noundef 237, i32 noundef 2) #5
  br label %.thread

175:                                              ; preds = %171
  %176 = getelementptr inbounds i8, ptr %2, i64 16
  store ptr @ripemd_update, ptr %176, align 8, !tbaa !12
  %177 = getelementptr inbounds i8, ptr %2, i64 24
  store ptr @ripemd_final, ptr %177, align 8, !tbaa !13
  %178 = getelementptr inbounds i8, ptr %2, i64 32
  store ptr @ripemd_free, ptr %178, align 8, !tbaa !14
  %179 = getelementptr inbounds i8, ptr %2, i64 40
  store ptr @ripemd_get_block_size, ptr %179, align 8, !tbaa !15
  %180 = getelementptr inbounds i8, ptr %2, i64 48
  store ptr @ripemd_copy_with_alloc, ptr %180, align 8, !tbaa !16
  br label %.thread164

181:                                              ; preds = %5
  %182 = tail call ptr @ripemd_alloc(i32 noundef 1) #5
  store ptr %182, ptr %2, align 8, !tbaa !11
  %183 = icmp eq ptr %182, null
  br i1 %183, label %184, label %185

184:                                              ; preds = %181
  tail call void @stacktrace_add(ptr noundef nonnull @.str, i64 noundef 246, i32 noundef 2) #5
  br label %.thread

185:                                              ; preds = %181
  %186 = getelementptr inbounds i8, ptr %2, i64 16
  store ptr @ripemd_update, ptr %186, align 8, !tbaa !12
  %187 = getelementptr inbounds i8, ptr %2, i64 24
  store ptr @ripemd_final, ptr %187, align 8, !tbaa !13
  %188 = getelementptr inbounds i8, ptr %2, i64 32
  store ptr @ripemd_free, ptr %188, align 8, !tbaa !14
  %189 = getelementptr inbounds i8, ptr %2, i64 40
  store ptr @ripemd_get_block_size, ptr %189, align 8, !tbaa !15
  %190 = getelementptr inbounds i8, ptr %2, i64 48
  store ptr @ripemd_copy_with_alloc, ptr %190, align 8, !tbaa !16
  br label %.thread164

191:                                              ; preds = %5
  %192 = tail call ptr @md5_alloc() #5
  store ptr %192, ptr %2, align 8, !tbaa !11
  %193 = icmp eq ptr %192, null
  br i1 %193, label %194, label %195

194:                                              ; preds = %191
  tail call void @stacktrace_add(ptr noundef nonnull @.str, i64 noundef 255, i32 noundef 2) #5
  br label %.thread

195:                                              ; preds = %191
  %196 = getelementptr inbounds i8, ptr %2, i64 16
  store ptr @md5_update, ptr %196, align 8, !tbaa !12
  %197 = getelementptr inbounds i8, ptr %2, i64 24
  store ptr @md5_final, ptr %197, align 8, !tbaa !13
  %198 = getelementptr inbounds i8, ptr %2, i64 32
  store ptr @md5_free, ptr %198, align 8, !tbaa !14
  %199 = getelementptr inbounds i8, ptr %2, i64 40
  store ptr @md5_get_block_size, ptr %199, align 8, !tbaa !15
  %200 = getelementptr inbounds i8, ptr %2, i64 48
  store ptr @md5_copy_with_alloc, ptr %200, align 8, !tbaa !16
  br label %.thread164

201:                                              ; preds = %5
  tail call void @stacktrace_create(ptr noundef nonnull @.str, i64 noundef 264, i32 noundef 10, ptr noundef null) #5
  br label %.thread

202:                                              ; preds = %27, %19, %11
  %203 = getelementptr inbounds i8, ptr %2, i64 16
  store ptr @dstu7564_update, ptr %203, align 8, !tbaa !12
  %204 = getelementptr inbounds i8, ptr %2, i64 24
  store ptr @dstu7564_final, ptr %204, align 8, !tbaa !13
  %205 = getelementptr inbounds i8, ptr %2, i64 32
  store ptr @dstu7564_free, ptr %205, align 8, !tbaa !14
  %206 = getelementptr inbounds i8, ptr %2, i64 40
  store ptr @dstu7564_get_block_size, ptr %206, align 8, !tbaa !15
  %207 = getelementptr inbounds i8, ptr %2, i64 48
  store ptr @dstu7564_copy_with_alloc, ptr %207, align 8, !tbaa !16
  br label %.thread164

.thread.critedge:                                 ; preds = %29, %21, %13
  %208 = getelementptr inbounds i8, ptr %2, i64 16
  store ptr @dstu7564_update, ptr %208, align 8, !tbaa !12
  %209 = getelementptr inbounds i8, ptr %2, i64 24
  store ptr @dstu7564_final, ptr %209, align 8, !tbaa !13
  %210 = getelementptr inbounds i8, ptr %2, i64 32
  store ptr @dstu7564_free, ptr %210, align 8, !tbaa !14
  %211 = getelementptr inbounds i8, ptr %2, i64 40
  store ptr @dstu7564_get_block_size, ptr %211, align 8, !tbaa !15
  %212 = getelementptr inbounds i8, ptr %2, i64 48
  store ptr @dstu7564_copy_with_alloc, ptr %212, align 8, !tbaa !16
  br label %.thread

.thread:                                          ; preds = %.thread.critedge, %10, %18, %26, %34, %44, %54, %64, %74, %84, %94, %104, %114, %124, %134, %144, %154, %164, %174, %184, %194, %201, %4
  tail call void @free(ptr noundef %2) #5
  br label %.thread164

.thread164:                                       ; preds = %202, %35, %45, %55, %65, %75, %85, %95, %105, %115, %125, %135, %145, %155, %165, %175, %185, %195, %.thread
  %.0 = phi ptr [ null, %.thread ], [ %2, %202 ], [ %2, %195 ], [ %2, %185 ], [ %2, %175 ], [ %2, %165 ], [ %2, %155 ], [ %2, %145 ], [ %2, %135 ], [ %2, %125 ], [ %2, %115 ], [ %2, %105 ], [ %2, %95 ], [ %2, %85 ], [ %2, %75 ], [ %2, %65 ], [ %2, %55 ], [ %2, %45 ], [ %2, %35 ]
  ret ptr %.0
}

; Function Attrs: mustprogress nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) memory(inaccessiblemem: readwrite)
declare noalias noundef ptr @malloc(i64 noundef) local_unnamed_addr #1

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

declare ptr @dstu7564_alloc() local_unnamed_addr #2

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

declare i32 @dstu7564_init(ptr noundef, i64 noundef) local_unnamed_addr #2

declare void @dstu7564_free(ptr noundef) #2

declare i32 @dstu7564_update(ptr noundef, ptr noundef) #2

declare i32 @dstu7564_final(ptr noundef, ptr noundef) #2

declare i64 @dstu7564_get_block_size(ptr noundef) #2

declare ptr @dstu7564_copy_with_alloc(ptr noundef) #2

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

declare ptr @gost34311_alloc(i32 noundef, ptr noundef) local_unnamed_addr #2

declare i32 @gost34311_update(ptr noundef, ptr noundef) #2

declare i32 @gost34311_final(ptr noundef, ptr noundef) #2

declare void @gost34311_free(ptr noundef) #2

declare i64 @gost34311_get_block_size(ptr noundef) #2

declare ptr @gost34311_copy_with_alloc(ptr noundef) #2

declare ptr @sha1_alloc() local_unnamed_addr #2

declare i32 @sha1_update(ptr noundef, ptr noundef) #2

declare i32 @sha1_final(ptr noundef, ptr noundef) #2

declare void @sha1_free(ptr noundef) #2

declare i64 @sha1_get_block_size(ptr noundef) #2

declare ptr @sha1_copy_with_alloc(ptr noundef) #2

declare ptr @sha2_alloc(i32 noundef) local_unnamed_addr #2

declare i32 @sha2_update(ptr noundef, ptr noundef) #2

declare i32 @sha2_final(ptr noundef, ptr noundef) #2

declare void @sha2_free(ptr noundef) #2

declare i64 @sha2_get_block_size(ptr noundef) #2

declare ptr @sha2_copy_with_alloc(ptr noundef) #2

declare ptr @sha3_alloc(i32 noundef) local_unnamed_addr #2

declare i32 @sha3_update(ptr noundef, ptr noundef) #2

declare i32 @sha3_final(ptr noundef, ptr noundef) #2

declare void @sha3_free(ptr noundef) #2

declare i64 @sha3_get_block_size(ptr noundef) #2

declare ptr @sha3_copy_with_alloc(ptr noundef) #2

declare ptr @whirlpool_alloc() local_unnamed_addr #2

declare i32 @whirlpool_update(ptr noundef, ptr noundef) #2

declare i32 @whirlpool_final(ptr noundef, ptr noundef) #2

declare void @whirlpool_free(ptr noundef) #2

declare i64 @whirlpool_get_block_size(ptr noundef) #2

declare ptr @whirlpool_copy_with_alloc(ptr noundef) #2

declare ptr @sm3_alloc() local_unnamed_addr #2

declare i32 @sm3_update(ptr noundef, ptr noundef) #2

declare i32 @sm3_final(ptr noundef, ptr noundef) #2

declare void @sm3_free(ptr noundef) #2

declare i64 @sm3_get_block_size(ptr noundef) #2

declare ptr @sm3_copy_with_alloc(ptr noundef) #2

declare ptr @gostr3411_alloc(i32 noundef) local_unnamed_addr #2

declare i32 @gostr3411_update(ptr noundef, ptr noundef) #2

declare i32 @gostr3411_final(ptr noundef, ptr noundef) #2

declare void @gostr3411_free(ptr noundef) #2

declare i64 @gostr3411_get_block_size(ptr noundef) #2

declare ptr @gostr3411_copy_with_alloc(ptr noundef) #2

declare ptr @ripemd_alloc(i32 noundef) local_unnamed_addr #2

declare i32 @ripemd_update(ptr noundef, ptr noundef) #2

declare i32 @ripemd_final(ptr noundef, ptr noundef) #2

declare void @ripemd_free(ptr noundef) #2

declare i64 @ripemd_get_block_size(ptr noundef) #2

declare ptr @ripemd_copy_with_alloc(ptr noundef) #2

declare ptr @md5_alloc() local_unnamed_addr #2

declare i32 @md5_update(ptr noundef, ptr noundef) #2

declare i32 @md5_final(ptr noundef, ptr noundef) #2

declare void @md5_free(ptr noundef) #2

declare i64 @md5_get_block_size(ptr noundef) #2

declare ptr @md5_copy_with_alloc(ptr noundef) #2

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 nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) memory(inaccessiblemem: readwrite) "alloc-family"="malloc" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #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 = { mustprogress nounwind willreturn allockind("free") memory(argmem: readwrite, inaccessiblemem: readwrite) "alloc-family"="malloc" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nounwind allocsize(0) }
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, !10, i64 8}
!6 = !{!"HashCtx_st", !7, i64 0, !10, i64 8, !7, i64 16, !7, i64 24, !7, i64 32, !7, i64 40, !7, i64 48}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"int", !8, i64 0}
!11 = !{!6, !7, i64 0}
!12 = !{!6, !7, i64 16}
!13 = !{!6, !7, i64 24}
!14 = !{!6, !7, i64 32}
!15 = !{!6, !7, i64 40}
!16 = !{!6, !7, i64 48}


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