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

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

@.str = external hidden unnamed_addr constant [24 x i8], align 1
@gostr3411_self_test.H512_M1 = external hidden constant [64 x i8], align 16
@gostr3411_self_test.H256_M1 = external hidden constant [32 x i8], align 16
@gostr3411_self_test.H512_M2 = external hidden constant [64 x i8], align 16
@gostr3411_self_test.H256_M2 = external hidden constant [32 x i8], align 16
@gostr3411_self_test.ba_M1 = external hidden constant %struct.ByteArray_st, align 8
@gostr3411_self_test.ba_M2 = external hidden constant %struct.ByteArray_st, align 8

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

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

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

; Function Attrs: nounwind uwtable
declare dso_local void @gostr3411_free(ptr noundef) #0

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

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

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

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

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

4:                                                ; preds = %0
  %5 = call ptr @gostr3411_alloc(i32 noundef 1)
  store ptr %5, ptr %2, align 8, !tbaa !9
  %6 = icmp eq ptr null, %5
  br i1 %6, label %7, label %9

7:                                                ; preds = %4
  store i32 2, ptr %1, align 4, !tbaa !5
  %8 = load i32, ptr %1, align 4, !tbaa !5
  call void @stacktrace_add(ptr noundef @.str, i64 noundef 878, i32 noundef %8)
  br label %168

9:                                                ; preds = %4
  br label %10

10:                                               ; preds = %9
  br label %11

11:                                               ; preds = %10
  br label %12

12:                                               ; preds = %11
  %13 = load ptr, ptr %2, align 8, !tbaa !9
  %14 = call i32 @gostr3411_update(ptr noundef %13, ptr noundef @gostr3411_self_test.ba_M1)
  store i32 %14, ptr %1, align 4, !tbaa !5
  %15 = load i32, ptr %1, align 4, !tbaa !5
  %16 = icmp ne i32 %15, 0
  br i1 %16, label %17, label %19

17:                                               ; preds = %12
  %18 = load i32, ptr %1, align 4, !tbaa !5
  call void @stacktrace_add(ptr noundef @.str, i64 noundef 879, i32 noundef %18)
  br label %168

19:                                               ; preds = %12
  br label %20

20:                                               ; preds = %19
  br label %21

21:                                               ; preds = %20
  br label %22

22:                                               ; preds = %21
  %23 = load ptr, ptr %2, align 8, !tbaa !9
  %24 = call i32 @gostr3411_final(ptr noundef %23, ptr noundef %3)
  store i32 %24, ptr %1, align 4, !tbaa !5
  %25 = load i32, ptr %1, align 4, !tbaa !5
  %26 = icmp ne i32 %25, 0
  br i1 %26, label %27, label %29

27:                                               ; preds = %22
  %28 = load i32, ptr %1, align 4, !tbaa !5
  call void @stacktrace_add(ptr noundef @.str, i64 noundef 880, i32 noundef %28)
  br label %168

29:                                               ; preds = %22
  br label %30

30:                                               ; preds = %29
  br label %31

31:                                               ; preds = %30
  %32 = load ptr, ptr %3, align 8, !tbaa !9
  %33 = getelementptr inbounds %struct.ByteArray_st, ptr %32, i32 0, i32 1
  %34 = load i64, ptr %33, align 8, !tbaa !11
  %35 = icmp ne i64 %34, 64
  br i1 %35, label %42, label %36

36:                                               ; preds = %31
  %37 = load ptr, ptr %3, align 8, !tbaa !9
  %38 = getelementptr inbounds %struct.ByteArray_st, ptr %37, i32 0, i32 0
  %39 = load ptr, ptr %38, align 8, !tbaa !14
  %40 = call i32 @memcmp(ptr noundef %39, ptr noundef @gostr3411_self_test.H512_M1, i64 noundef 64) #5
  %41 = icmp ne i32 %40, 0
  br i1 %41, label %42, label %47

42:                                               ; preds = %36, %31
  br label %43

43:                                               ; preds = %42
  store i32 33, ptr %1, align 4, !tbaa !5
  %44 = load i32, ptr %1, align 4, !tbaa !5
  call void @stacktrace_create(ptr noundef @.str, i64 noundef 883, i32 noundef %44, ptr noundef null)
  br label %168

45:                                               ; No predecessors!
  br label %46

46:                                               ; preds = %45
  br label %47

47:                                               ; preds = %46, %36
  %48 = load ptr, ptr %3, align 8, !tbaa !9
  call void @ba_free(ptr noundef %48)
  store ptr null, ptr %3, align 8, !tbaa !9
  br label %49

49:                                               ; preds = %47
  %50 = load ptr, ptr %2, align 8, !tbaa !9
  %51 = call i32 @gostr3411_update(ptr noundef %50, ptr noundef @gostr3411_self_test.ba_M2)
  store i32 %51, ptr %1, align 4, !tbaa !5
  %52 = load i32, ptr %1, align 4, !tbaa !5
  %53 = icmp ne i32 %52, 0
  br i1 %53, label %54, label %56

54:                                               ; preds = %49
  %55 = load i32, ptr %1, align 4, !tbaa !5
  call void @stacktrace_add(ptr noundef @.str, i64 noundef 888, i32 noundef %55)
  br label %168

56:                                               ; preds = %49
  br label %57

57:                                               ; preds = %56
  br label %58

58:                                               ; preds = %57
  br label %59

59:                                               ; preds = %58
  %60 = load ptr, ptr %2, align 8, !tbaa !9
  %61 = call i32 @gostr3411_final(ptr noundef %60, ptr noundef %3)
  store i32 %61, ptr %1, align 4, !tbaa !5
  %62 = load i32, ptr %1, align 4, !tbaa !5
  %63 = icmp ne i32 %62, 0
  br i1 %63, label %64, label %66

64:                                               ; preds = %59
  %65 = load i32, ptr %1, align 4, !tbaa !5
  call void @stacktrace_add(ptr noundef @.str, i64 noundef 889, i32 noundef %65)
  br label %168

66:                                               ; preds = %59
  br label %67

67:                                               ; preds = %66
  br label %68

68:                                               ; preds = %67
  %69 = load ptr, ptr %3, align 8, !tbaa !9
  %70 = getelementptr inbounds %struct.ByteArray_st, ptr %69, i32 0, i32 1
  %71 = load i64, ptr %70, align 8, !tbaa !11
  %72 = icmp ne i64 %71, 64
  br i1 %72, label %79, label %73

73:                                               ; preds = %68
  %74 = load ptr, ptr %3, align 8, !tbaa !9
  %75 = getelementptr inbounds %struct.ByteArray_st, ptr %74, i32 0, i32 0
  %76 = load ptr, ptr %75, align 8, !tbaa !14
  %77 = call i32 @memcmp(ptr noundef %76, ptr noundef @gostr3411_self_test.H512_M2, i64 noundef 64) #5
  %78 = icmp ne i32 %77, 0
  br i1 %78, label %79, label %84

79:                                               ; preds = %73, %68
  br label %80

80:                                               ; preds = %79
  store i32 33, ptr %1, align 4, !tbaa !5
  %81 = load i32, ptr %1, align 4, !tbaa !5
  call void @stacktrace_create(ptr noundef @.str, i64 noundef 892, i32 noundef %81, ptr noundef null)
  br label %168

82:                                               ; No predecessors!
  br label %83

83:                                               ; preds = %82
  br label %84

84:                                               ; preds = %83, %73
  %85 = load ptr, ptr %3, align 8, !tbaa !9
  call void @ba_free(ptr noundef %85)
  store ptr null, ptr %3, align 8, !tbaa !9
  %86 = load ptr, ptr %2, align 8, !tbaa !9
  call void @gostr3411_free(ptr noundef %86)
  br label %87

87:                                               ; preds = %84
  %88 = call ptr @gostr3411_alloc(i32 noundef 0)
  store ptr %88, ptr %2, align 8, !tbaa !9
  %89 = icmp eq ptr null, %88
  br i1 %89, label %90, label %92

90:                                               ; preds = %87
  store i32 2, ptr %1, align 4, !tbaa !5
  %91 = load i32, ptr %1, align 4, !tbaa !5
  call void @stacktrace_add(ptr noundef @.str, i64 noundef 898, i32 noundef %91)
  br label %168

92:                                               ; preds = %87
  br label %93

93:                                               ; preds = %92
  br label %94

94:                                               ; preds = %93
  br label %95

95:                                               ; preds = %94
  %96 = load ptr, ptr %2, align 8, !tbaa !9
  %97 = call i32 @gostr3411_update(ptr noundef %96, ptr noundef @gostr3411_self_test.ba_M1)
  store i32 %97, ptr %1, align 4, !tbaa !5
  %98 = load i32, ptr %1, align 4, !tbaa !5
  %99 = icmp ne i32 %98, 0
  br i1 %99, label %100, label %102

100:                                              ; preds = %95
  %101 = load i32, ptr %1, align 4, !tbaa !5
  call void @stacktrace_add(ptr noundef @.str, i64 noundef 899, i32 noundef %101)
  br label %168

102:                                              ; preds = %95
  br label %103

103:                                              ; preds = %102
  br label %104

104:                                              ; preds = %103
  br label %105

105:                                              ; preds = %104
  %106 = load ptr, ptr %2, align 8, !tbaa !9
  %107 = call i32 @gostr3411_final(ptr noundef %106, ptr noundef %3)
  store i32 %107, ptr %1, align 4, !tbaa !5
  %108 = load i32, ptr %1, align 4, !tbaa !5
  %109 = icmp ne i32 %108, 0
  br i1 %109, label %110, label %112

110:                                              ; preds = %105
  %111 = load i32, ptr %1, align 4, !tbaa !5
  call void @stacktrace_add(ptr noundef @.str, i64 noundef 900, i32 noundef %111)
  br label %168

112:                                              ; preds = %105
  br label %113

113:                                              ; preds = %112
  br label %114

114:                                              ; preds = %113
  %115 = load ptr, ptr %3, align 8, !tbaa !9
  %116 = getelementptr inbounds %struct.ByteArray_st, ptr %115, i32 0, i32 1
  %117 = load i64, ptr %116, align 8, !tbaa !11
  %118 = icmp ne i64 %117, 32
  br i1 %118, label %125, label %119

119:                                              ; preds = %114
  %120 = load ptr, ptr %3, align 8, !tbaa !9
  %121 = getelementptr inbounds %struct.ByteArray_st, ptr %120, i32 0, i32 0
  %122 = load ptr, ptr %121, align 8, !tbaa !14
  %123 = call i32 @memcmp(ptr noundef %122, ptr noundef @gostr3411_self_test.H256_M1, i64 noundef 32) #5
  %124 = icmp ne i32 %123, 0
  br i1 %124, label %125, label %130

125:                                              ; preds = %119, %114
  br label %126

126:                                              ; preds = %125
  store i32 33, ptr %1, align 4, !tbaa !5
  %127 = load i32, ptr %1, align 4, !tbaa !5
  call void @stacktrace_create(ptr noundef @.str, i64 noundef 903, i32 noundef %127, ptr noundef null)
  br label %168

128:                                              ; No predecessors!
  br label %129

129:                                              ; preds = %128
  br label %130

130:                                              ; preds = %129, %119
  %131 = load ptr, ptr %3, align 8, !tbaa !9
  call void @ba_free(ptr noundef %131)
  store ptr null, ptr %3, align 8, !tbaa !9
  br label %132

132:                                              ; preds = %130
  %133 = load ptr, ptr %2, align 8, !tbaa !9
  %134 = call i32 @gostr3411_update(ptr noundef %133, ptr noundef @gostr3411_self_test.ba_M2)
  store i32 %134, ptr %1, align 4, !tbaa !5
  %135 = load i32, ptr %1, align 4, !tbaa !5
  %136 = icmp ne i32 %135, 0
  br i1 %136, label %137, label %139

137:                                              ; preds = %132
  %138 = load i32, ptr %1, align 4, !tbaa !5
  call void @stacktrace_add(ptr noundef @.str, i64 noundef 908, i32 noundef %138)
  br label %168

139:                                              ; preds = %132
  br label %140

140:                                              ; preds = %139
  br label %141

141:                                              ; preds = %140
  br label %142

142:                                              ; preds = %141
  %143 = load ptr, ptr %2, align 8, !tbaa !9
  %144 = call i32 @gostr3411_final(ptr noundef %143, ptr noundef %3)
  store i32 %144, ptr %1, align 4, !tbaa !5
  %145 = load i32, ptr %1, align 4, !tbaa !5
  %146 = icmp ne i32 %145, 0
  br i1 %146, label %147, label %149

147:                                              ; preds = %142
  %148 = load i32, ptr %1, align 4, !tbaa !5
  call void @stacktrace_add(ptr noundef @.str, i64 noundef 909, i32 noundef %148)
  br label %168

149:                                              ; preds = %142
  br label %150

150:                                              ; preds = %149
  br label %151

151:                                              ; preds = %150
  %152 = load ptr, ptr %3, align 8, !tbaa !9
  %153 = getelementptr inbounds %struct.ByteArray_st, ptr %152, i32 0, i32 1
  %154 = load i64, ptr %153, align 8, !tbaa !11
  %155 = icmp ne i64 %154, 32
  br i1 %155, label %162, label %156

156:                                              ; preds = %151
  %157 = load ptr, ptr %3, align 8, !tbaa !9
  %158 = getelementptr inbounds %struct.ByteArray_st, ptr %157, i32 0, i32 0
  %159 = load ptr, ptr %158, align 8, !tbaa !14
  %160 = call i32 @memcmp(ptr noundef %159, ptr noundef @gostr3411_self_test.H256_M2, i64 noundef 32) #5
  %161 = icmp ne i32 %160, 0
  br i1 %161, label %162, label %167

162:                                              ; preds = %156, %151
  br label %163

163:                                              ; preds = %162
  store i32 33, ptr %1, align 4, !tbaa !5
  %164 = load i32, ptr %1, align 4, !tbaa !5
  call void @stacktrace_create(ptr noundef @.str, i64 noundef 912, i32 noundef %164, ptr noundef null)
  br label %168

165:                                              ; No predecessors!
  br label %166

166:                                              ; preds = %165
  br label %167

167:                                              ; preds = %166, %156
  br label %168

168:                                              ; preds = %167, %163, %147, %137, %126, %110, %100, %90, %80, %64, %54, %43, %27, %17, %7
  %169 = load ptr, ptr %2, align 8, !tbaa !9
  call void @gostr3411_free(ptr noundef %169)
  %170 = load ptr, ptr %3, align 8, !tbaa !9
  call void @ba_free(ptr noundef %170)
  %171 = load i32, ptr %1, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %2) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %1) #4
  ret i32 %171
}

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

declare void @ba_free(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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { 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 #4 = { nounwind }
attributes #5 = { 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, !13, i64 8}
!12 = !{!"ByteArray_st", !10, i64 0, !13, i64 8}
!13 = !{!"long", !7, i64 0}
!14 = !{!12, !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.ByteArray_st = type { ptr, i64 }

@.str = external hidden unnamed_addr constant [24 x i8], align 1
@gostr3411_self_test.H512_M1 = external hidden constant [64 x i8], align 16
@gostr3411_self_test.H256_M1 = external hidden constant [32 x i8], align 16
@gostr3411_self_test.H512_M2 = external hidden constant [64 x i8], align 16
@gostr3411_self_test.H256_M2 = external hidden constant [32 x i8], align 16
@gostr3411_self_test.ba_M1 = external hidden constant %struct.ByteArray_st, align 8
@gostr3411_self_test.ba_M2 = external hidden constant %struct.ByteArray_st, align 8

; Function Attrs: nounwind uwtable
declare dso_local ptr @gostr3411_alloc(i32 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

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

; Function Attrs: nounwind uwtable
declare dso_local void @gostr3411_free(ptr noundef) local_unnamed_addr #0

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

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

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

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

; Function Attrs: nounwind uwtable
define dso_local i32 @gostr3411_self_test() local_unnamed_addr #0 {
  %1 = alloca ptr, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %1) #4
  store ptr null, ptr %1, align 8, !tbaa !5
  %2 = tail call ptr @gostr3411_alloc(i32 noundef 1)
  %3 = icmp eq ptr %2, null
  br i1 %3, label %4, label %5

4:                                                ; preds = %0
  tail call void @stacktrace_add(ptr noundef nonnull @.str, i64 noundef 878, i32 noundef 2) #4
  br label %61

5:                                                ; preds = %0
  %6 = tail call i32 @gostr3411_update(ptr noundef nonnull %2, ptr noundef nonnull @gostr3411_self_test.ba_M1)
  %.not = icmp eq i32 %6, 0
  br i1 %.not, label %8, label %7

7:                                                ; preds = %5
  tail call void @stacktrace_add(ptr noundef nonnull @.str, i64 noundef 879, i32 noundef %6) #4
  br label %61

8:                                                ; preds = %5
  %9 = call i32 @gostr3411_final(ptr noundef nonnull %2, ptr noundef nonnull %1)
  %.not45 = icmp eq i32 %9, 0
  br i1 %.not45, label %11, label %10

10:                                               ; preds = %8
  call void @stacktrace_add(ptr noundef nonnull @.str, i64 noundef 880, i32 noundef %9) #4
  br label %61

11:                                               ; preds = %8
  %12 = load ptr, ptr %1, align 8, !tbaa !5
  %13 = getelementptr inbounds i8, ptr %12, i64 8
  %14 = load i64, ptr %13, align 8, !tbaa !9
  %.not46 = icmp eq i64 %14, 64
  br i1 %.not46, label %15, label %17

15:                                               ; preds = %11
  %16 = load ptr, ptr %12, align 8, !tbaa !12
  %bcmp = call i32 @bcmp(ptr noundef nonnull dereferenceable(64) %16, ptr noundef nonnull dereferenceable(64) @gostr3411_self_test.H512_M1, i64 64)
  %.not47 = icmp eq i32 %bcmp, 0
  br i1 %.not47, label %18, label %17

17:                                               ; preds = %11, %15
  call void @stacktrace_create(ptr noundef nonnull @.str, i64 noundef 883, i32 noundef 33, ptr noundef null) #4
  br label %61

18:                                               ; preds = %15
  call void @ba_free(ptr noundef nonnull %12) #4
  store ptr null, ptr %1, align 8, !tbaa !5
  %19 = call i32 @gostr3411_update(ptr noundef nonnull %2, ptr noundef nonnull @gostr3411_self_test.ba_M2)
  %.not48 = icmp eq i32 %19, 0
  br i1 %.not48, label %21, label %20

20:                                               ; preds = %18
  call void @stacktrace_add(ptr noundef nonnull @.str, i64 noundef 888, i32 noundef %19) #4
  br label %61

21:                                               ; preds = %18
  %22 = call i32 @gostr3411_final(ptr noundef nonnull %2, ptr noundef nonnull %1)
  %.not49 = icmp eq i32 %22, 0
  br i1 %.not49, label %24, label %23

23:                                               ; preds = %21
  call void @stacktrace_add(ptr noundef nonnull @.str, i64 noundef 889, i32 noundef %22) #4
  br label %61

24:                                               ; preds = %21
  %25 = load ptr, ptr %1, align 8, !tbaa !5
  %26 = getelementptr inbounds i8, ptr %25, i64 8
  %27 = load i64, ptr %26, align 8, !tbaa !9
  %.not50 = icmp eq i64 %27, 64
  br i1 %.not50, label %28, label %30

28:                                               ; preds = %24
  %29 = load ptr, ptr %25, align 8, !tbaa !12
  %bcmp51 = call i32 @bcmp(ptr noundef nonnull dereferenceable(64) %29, ptr noundef nonnull dereferenceable(64) @gostr3411_self_test.H512_M2, i64 64)
  %.not52 = icmp eq i32 %bcmp51, 0
  br i1 %.not52, label %31, label %30

30:                                               ; preds = %24, %28
  call void @stacktrace_create(ptr noundef nonnull @.str, i64 noundef 892, i32 noundef 33, ptr noundef null) #4
  br label %61

31:                                               ; preds = %28
  call void @ba_free(ptr noundef nonnull %25) #4
  store ptr null, ptr %1, align 8, !tbaa !5
  call void @gostr3411_free(ptr noundef nonnull %2)
  %32 = call ptr @gostr3411_alloc(i32 noundef 0)
  %33 = icmp eq ptr %32, null
  br i1 %33, label %34, label %35

34:                                               ; preds = %31
  call void @stacktrace_add(ptr noundef nonnull @.str, i64 noundef 898, i32 noundef 2) #4
  br label %61

35:                                               ; preds = %31
  %36 = call i32 @gostr3411_update(ptr noundef nonnull %32, ptr noundef nonnull @gostr3411_self_test.ba_M1)
  %.not53 = icmp eq i32 %36, 0
  br i1 %.not53, label %38, label %37

37:                                               ; preds = %35
  call void @stacktrace_add(ptr noundef nonnull @.str, i64 noundef 899, i32 noundef %36) #4
  br label %61

38:                                               ; preds = %35
  %39 = call i32 @gostr3411_final(ptr noundef nonnull %32, ptr noundef nonnull %1)
  %.not54 = icmp eq i32 %39, 0
  br i1 %.not54, label %41, label %40

40:                                               ; preds = %38
  call void @stacktrace_add(ptr noundef nonnull @.str, i64 noundef 900, i32 noundef %39) #4
  br label %61

41:                                               ; preds = %38
  %42 = load ptr, ptr %1, align 8, !tbaa !5
  %43 = getelementptr inbounds i8, ptr %42, i64 8
  %44 = load i64, ptr %43, align 8, !tbaa !9
  %.not55 = icmp eq i64 %44, 32
  br i1 %.not55, label %45, label %47

45:                                               ; preds = %41
  %46 = load ptr, ptr %42, align 8, !tbaa !12
  %bcmp56 = call i32 @bcmp(ptr noundef nonnull dereferenceable(32) %46, ptr noundef nonnull dereferenceable(32) @gostr3411_self_test.H256_M1, i64 32)
  %.not57 = icmp eq i32 %bcmp56, 0
  br i1 %.not57, label %48, label %47

47:                                               ; preds = %41, %45
  call void @stacktrace_create(ptr noundef nonnull @.str, i64 noundef 903, i32 noundef 33, ptr noundef null) #4
  br label %61

48:                                               ; preds = %45
  call void @ba_free(ptr noundef nonnull %42) #4
  store ptr null, ptr %1, align 8, !tbaa !5
  %49 = call i32 @gostr3411_update(ptr noundef nonnull %32, ptr noundef nonnull @gostr3411_self_test.ba_M2)
  %.not58 = icmp eq i32 %49, 0
  br i1 %.not58, label %51, label %50

50:                                               ; preds = %48
  call void @stacktrace_add(ptr noundef nonnull @.str, i64 noundef 908, i32 noundef %49) #4
  br label %61

51:                                               ; preds = %48
  %52 = call i32 @gostr3411_final(ptr noundef nonnull %32, ptr noundef nonnull %1)
  %.not59 = icmp eq i32 %52, 0
  br i1 %.not59, label %54, label %53

53:                                               ; preds = %51
  call void @stacktrace_add(ptr noundef nonnull @.str, i64 noundef 909, i32 noundef %52) #4
  br label %61

54:                                               ; preds = %51
  %55 = load ptr, ptr %1, align 8, !tbaa !5
  %56 = getelementptr inbounds i8, ptr %55, i64 8
  %57 = load i64, ptr %56, align 8, !tbaa !9
  %.not60 = icmp eq i64 %57, 32
  br i1 %.not60, label %58, label %60

58:                                               ; preds = %54
  %59 = load ptr, ptr %55, align 8, !tbaa !12
  %bcmp61 = call i32 @bcmp(ptr noundef nonnull dereferenceable(32) %59, ptr noundef nonnull dereferenceable(32) @gostr3411_self_test.H256_M2, i64 32)
  %.not62 = icmp eq i32 %bcmp61, 0
  br i1 %.not62, label %61, label %60

60:                                               ; preds = %54, %58
  call void @stacktrace_create(ptr noundef nonnull @.str, i64 noundef 912, i32 noundef 33, ptr noundef null) #4
  br label %61

61:                                               ; preds = %58, %60, %53, %50, %47, %40, %37, %34, %30, %23, %20, %17, %10, %7, %4
  %.032 = phi i32 [ 2, %4 ], [ %6, %7 ], [ %9, %10 ], [ 33, %17 ], [ %19, %20 ], [ %22, %23 ], [ 33, %30 ], [ 2, %34 ], [ %36, %37 ], [ %39, %40 ], [ 33, %47 ], [ %49, %50 ], [ %52, %53 ], [ 33, %60 ], [ 0, %58 ]
  %.0 = phi ptr [ null, %4 ], [ %2, %7 ], [ %2, %10 ], [ %2, %17 ], [ %2, %20 ], [ %2, %23 ], [ %2, %30 ], [ null, %34 ], [ %32, %37 ], [ %32, %40 ], [ %32, %47 ], [ %32, %50 ], [ %32, %53 ], [ %32, %60 ], [ %32, %58 ]
  call void @gostr3411_free(ptr noundef %.0)
  %62 = load ptr, ptr %1, align 8, !tbaa !5
  call void @ba_free(ptr noundef %62) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %1) #4
  ret i32 %.032
}

declare void @ba_free(ptr noundef) local_unnamed_addr #2

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

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 = { "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 = { nofree nounwind willreturn memory(argmem: read) }
attributes #4 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !11, i64 8}
!10 = !{!"ByteArray_st", !6, i64 0, !11, i64 8}
!11 = !{!"long", !7, i64 0}
!12 = !{!10, !6, i64 0}


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