; LLVM IR from libxsmm/libxsmm :: src (generator_rv64_instructions)

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

@stderr = external global ptr, align 8
@.str.1 = external hidden unnamed_addr constant [83 x i8], align 1
@libxsmm_ninit = external global i32, align 4
@libxsmm_verbosity = external global i32, align 4
@db_bpos = external hidden constant [32 x i32], align 16
@.str.9 = external hidden unnamed_addr constant [91 x i8], align 1
@__func__.libxsmm_rv64_instruction_rvv_setivli = external hidden unnamed_addr constant [37 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [57 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [59 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [60 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [59 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [84 x i8], align 1

; Function Attrs: nounwind
declare i32 @fprintf(ptr noundef, ptr noundef, ...) #0

declare void @libxsmm_handle_error(ptr noundef, i32 noundef, ptr noundef, ptr noundef, i32 noundef, i32 noundef) #1

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

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

; Function Attrs: nounwind uwtable
define dso_local void @libxsmm_rv64_instruction_rvv_setivli(ptr noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %4) #3 {
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca ptr, align 8
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  store ptr %0, ptr %6, align 8, !tbaa !5
  store i32 %1, ptr %7, align 4, !tbaa !9
  store i32 %2, ptr %8, align 4, !tbaa !9
  store i32 %3, ptr %9, align 4, !tbaa !9
  store i32 %4, ptr %10, align 4, !tbaa !9
  %15 = load ptr, ptr %6, align 8, !tbaa !5
  %16 = getelementptr inbounds %struct.libxsmm_generated_code, ptr %15, i32 0, i32 6
  %17 = load i32, ptr %16, align 4, !tbaa !11
  %18 = icmp ult i32 %17, 3001
  br i1 %18, label %19, label %30

19:                                               ; preds = %5
  %20 = load ptr, ptr @stderr, align 8, !tbaa !5
  %21 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %20, ptr noundef @.str.9) #4
  %22 = load ptr, ptr %6, align 8, !tbaa !5
  %23 = load i32, ptr @libxsmm_ninit, align 4, !tbaa !9
  %24 = icmp ult i32 1, %23
  br i1 %24, label %25, label %27

25:                                               ; preds = %19
  %26 = load i32, ptr @libxsmm_verbosity, align 4, !tbaa !9
  br label %28

27:                                               ; preds = %19
  br label %28

28:                                               ; preds = %27, %25
  %29 = phi i32 [ %26, %25 ], [ 1, %27 ]
  call void @libxsmm_handle_error(ptr noundef %22, i32 noundef 90000, ptr noundef @__func__.libxsmm_rv64_instruction_rvv_setivli, ptr noundef @.str.1, i32 noundef 400, i32 noundef %29)
  br label %177

30:                                               ; preds = %5
  %31 = load i32, ptr %8, align 4, !tbaa !9
  %32 = icmp ule i32 %31, 31
  br i1 %32, label %44, label %33

33:                                               ; preds = %30
  %34 = load ptr, ptr @stderr, align 8, !tbaa !5
  %35 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %34, ptr noundef @.str.10) #4
  %36 = load ptr, ptr %6, align 8, !tbaa !5
  %37 = load i32, ptr @libxsmm_ninit, align 4, !tbaa !9
  %38 = icmp ult i32 1, %37
  br i1 %38, label %39, label %41

39:                                               ; preds = %33
  %40 = load i32, ptr @libxsmm_verbosity, align 4, !tbaa !9
  br label %42

41:                                               ; preds = %33
  br label %42

42:                                               ; preds = %41, %39
  %43 = phi i32 [ %40, %39 ], [ 1, %41 ]
  call void @libxsmm_handle_error(ptr noundef %36, i32 noundef 90000, ptr noundef @__func__.libxsmm_rv64_instruction_rvv_setivli, ptr noundef @.str.1, i32 noundef 406, i32 noundef %43)
  br label %177

44:                                               ; preds = %30
  %45 = load i32, ptr %9, align 4, !tbaa !9
  %46 = icmp ugt i32 %45, 8
  br i1 %46, label %47, label %59

47:                                               ; preds = %44
  %48 = load ptr, ptr @stderr, align 8, !tbaa !5
  %49 = load i32, ptr %9, align 4, !tbaa !9
  %50 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %48, ptr noundef @.str.11, i32 noundef %49) #4
  %51 = load ptr, ptr %6, align 8, !tbaa !5
  %52 = load i32, ptr @libxsmm_ninit, align 4, !tbaa !9
  %53 = icmp ult i32 1, %52
  br i1 %53, label %54, label %56

54:                                               ; preds = %47
  %55 = load i32, ptr @libxsmm_verbosity, align 4, !tbaa !9
  br label %57

56:                                               ; preds = %47
  br label %57

57:                                               ; preds = %56, %54
  %58 = phi i32 [ %55, %54 ], [ 1, %56 ]
  call void @libxsmm_handle_error(ptr noundef %51, i32 noundef 90000, ptr noundef @__func__.libxsmm_rv64_instruction_rvv_setivli, ptr noundef @.str.1, i32 noundef 412, i32 noundef %58)
  br label %177

59:                                               ; preds = %44
  %60 = load i32, ptr %10, align 4, !tbaa !9
  %61 = icmp ugt i32 %60, 8
  br i1 %61, label %62, label %74

62:                                               ; preds = %59
  %63 = load ptr, ptr @stderr, align 8, !tbaa !5
  %64 = load i32, ptr %10, align 4, !tbaa !9
  %65 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %63, ptr noundef @.str.12, i32 noundef %64) #4
  %66 = load ptr, ptr %6, align 8, !tbaa !5
  %67 = load i32, ptr @libxsmm_ninit, align 4, !tbaa !9
  %68 = icmp ult i32 1, %67
  br i1 %68, label %69, label %71

69:                                               ; preds = %62
  %70 = load i32, ptr @libxsmm_verbosity, align 4, !tbaa !9
  br label %72

71:                                               ; preds = %62
  br label %72

72:                                               ; preds = %71, %69
  %73 = phi i32 [ %70, %69 ], [ 1, %71 ]
  call void @libxsmm_handle_error(ptr noundef %66, i32 noundef 90000, ptr noundef @__func__.libxsmm_rv64_instruction_rvv_setivli, ptr noundef @.str.1, i32 noundef 418, i32 noundef %73)
  br label %177

74:                                               ; preds = %59
  %75 = load i32, ptr %7, align 4, !tbaa !9
  %76 = icmp ugt i32 %75, 31
  br i1 %76, label %77, label %89

77:                                               ; preds = %74
  %78 = load ptr, ptr @stderr, align 8, !tbaa !5
  %79 = load i32, ptr %7, align 4, !tbaa !9
  %80 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %78, ptr noundef @.str.13, i32 noundef %79) #4
  %81 = load ptr, ptr %6, align 8, !tbaa !5
  %82 = load i32, ptr @libxsmm_ninit, align 4, !tbaa !9
  %83 = icmp ult i32 1, %82
  br i1 %83, label %84, label %86

84:                                               ; preds = %77
  %85 = load i32, ptr @libxsmm_verbosity, align 4, !tbaa !9
  br label %87

86:                                               ; preds = %77
  br label %87

87:                                               ; preds = %86, %84
  %88 = phi i32 [ %85, %84 ], [ 1, %86 ]
  call void @libxsmm_handle_error(ptr noundef %81, i32 noundef 90000, ptr noundef @__func__.libxsmm_rv64_instruction_rvv_setivli, ptr noundef @.str.1, i32 noundef 424, i32 noundef %88)
  br label %177

89:                                               ; preds = %74
  %90 = load ptr, ptr %6, align 8, !tbaa !5
  %91 = getelementptr inbounds %struct.libxsmm_generated_code, ptr %90, i32 0, i32 3
  %92 = load i32, ptr %91, align 8, !tbaa !13
  %93 = icmp ugt i32 %92, 1
  br i1 %93, label %94, label %166

94:                                               ; preds = %89
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #4
  %95 = load ptr, ptr %6, align 8, !tbaa !5
  %96 = getelementptr inbounds %struct.libxsmm_generated_code, ptr %95, i32 0, i32 2
  %97 = load i32, ptr %96, align 4, !tbaa !14
  %98 = udiv i32 %97, 4
  store i32 %98, ptr %11, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #4
  %99 = load ptr, ptr %6, align 8, !tbaa !5
  %100 = getelementptr inbounds %struct.libxsmm_generated_code, ptr %99, i32 0, i32 0
  %101 = load ptr, ptr %100, align 8, !tbaa !15
  store ptr %101, ptr %12, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #4
  %102 = load i32, ptr %9, align 4, !tbaa !9
  %103 = shl i32 %102, 3
  %104 = load i32, ptr %10, align 4, !tbaa !9
  %105 = or i32 %103, %104
  %106 = and i32 %105, 63
  store i32 %106, ptr %13, align 4, !tbaa !9
  %107 = load ptr, ptr %6, align 8, !tbaa !5
  %108 = getelementptr inbounds %struct.libxsmm_generated_code, ptr %107, i32 0, i32 1
  %109 = load i32, ptr %108, align 8, !tbaa !16
  %110 = load ptr, ptr %6, align 8, !tbaa !5
  %111 = getelementptr inbounds %struct.libxsmm_generated_code, ptr %110, i32 0, i32 2
  %112 = load i32, ptr %111, align 4, !tbaa !14
  %113 = sub i32 %109, %112
  %114 = icmp ult i32 %113, 4
  br i1 %114, label %115, label %124

115:                                              ; preds = %94
  %116 = load ptr, ptr %6, align 8, !tbaa !5
  %117 = load i32, ptr @libxsmm_ninit, align 4, !tbaa !9
  %118 = icmp ult i32 1, %117
  br i1 %118, label %119, label %121

119:                                              ; preds = %115
  %120 = load i32, ptr @libxsmm_verbosity, align 4, !tbaa !9
  br label %122

121:                                              ; preds = %115
  br label %122

122:                                              ; preds = %121, %119
  %123 = phi i32 [ %120, %119 ], [ 1, %121 ]
  call void @libxsmm_handle_error(ptr noundef %116, i32 noundef 90002, ptr noundef @__func__.libxsmm_rv64_instruction_rvv_setivli, ptr noundef @.str.1, i32 noundef 435, i32 noundef %123)
  store i32 1, ptr %14, align 4
  br label %163

124:                                              ; preds = %94
  %125 = load ptr, ptr %12, align 8, !tbaa !5
  %126 = load i32, ptr %11, align 4, !tbaa !9
  %127 = zext i32 %126 to i64
  %128 = getelementptr inbounds i32, ptr %125, i64 %127
  store i32 -1073713065, ptr %128, align 4, !tbaa !9
  %129 = load i32, ptr %7, align 4, !tbaa !9
  %130 = load i32, ptr getelementptr inbounds ([32 x i32], ptr @db_bpos, i64 0, i64 11), align 4, !tbaa !9
  %131 = shl i32 %129, %130
  %132 = and i32 1015808, %131
  %133 = load ptr, ptr %12, align 8, !tbaa !5
  %134 = load i32, ptr %11, align 4, !tbaa !9
  %135 = zext i32 %134 to i64
  %136 = getelementptr inbounds i32, ptr %133, i64 %135
  %137 = load i32, ptr %136, align 4, !tbaa !9
  %138 = or i32 %137, %132
  store i32 %138, ptr %136, align 4, !tbaa !9
  %139 = load i32, ptr %8, align 4, !tbaa !9
  %140 = load i32, ptr getelementptr inbounds ([32 x i32], ptr @db_bpos, i64 0, i64 23), align 4, !tbaa !9
  %141 = shl i32 %139, %140
  %142 = and i32 3968, %141
  %143 = load ptr, ptr %12, align 8, !tbaa !5
  %144 = load i32, ptr %11, align 4, !tbaa !9
  %145 = zext i32 %144 to i64
  %146 = getelementptr inbounds i32, ptr %143, i64 %145
  %147 = load i32, ptr %146, align 4, !tbaa !9
  %148 = or i32 %147, %142
  store i32 %148, ptr %146, align 4, !tbaa !9
  %149 = load i32, ptr %13, align 4, !tbaa !9
  %150 = load i32, ptr getelementptr inbounds ([32 x i32], ptr @db_bpos, i64 0, i64 10), align 8, !tbaa !9
  %151 = shl i32 %149, %150
  %152 = and i32 2146435072, %151
  %153 = load ptr, ptr %12, align 8, !tbaa !5
  %154 = load i32, ptr %11, align 4, !tbaa !9
  %155 = zext i32 %154 to i64
  %156 = getelementptr inbounds i32, ptr %153, i64 %155
  %157 = load i32, ptr %156, align 4, !tbaa !9
  %158 = or i32 %157, %152
  store i32 %158, ptr %156, align 4, !tbaa !9
  %159 = load ptr, ptr %6, align 8, !tbaa !5
  %160 = getelementptr inbounds %struct.libxsmm_generated_code, ptr %159, i32 0, i32 2
  %161 = load i32, ptr %160, align 4, !tbaa !14
  %162 = add i32 %161, 4
  store i32 %162, ptr %160, align 4, !tbaa !14
  store i32 0, ptr %14, align 4
  br label %163

163:                                              ; preds = %124, %122
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #4
  %164 = load i32, ptr %14, align 4
  switch i32 %164, label %178 [
    i32 0, label %165
    i32 1, label %177
  ]

165:                                              ; preds = %163
  br label %177

166:                                              ; preds = %89
  %167 = load ptr, ptr @stderr, align 8, !tbaa !5
  %168 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %167, ptr noundef @.str.14) #4
  %169 = load ptr, ptr %6, align 8, !tbaa !5
  %170 = load i32, ptr @libxsmm_ninit, align 4, !tbaa !9
  %171 = icmp ult i32 1, %170
  br i1 %171, label %172, label %174

172:                                              ; preds = %166
  %173 = load i32, ptr @libxsmm_verbosity, align 4, !tbaa !9
  br label %175

174:                                              ; preds = %166
  br label %175

175:                                              ; preds = %174, %172
  %176 = phi i32 [ %173, %172 ], [ 1, %174 ]
  call void @libxsmm_handle_error(ptr noundef %169, i32 noundef 90000, ptr noundef @__func__.libxsmm_rv64_instruction_rvv_setivli, ptr noundef @.str.1, i32 noundef 453, i32 noundef %176)
  br label %177

177:                                              ; preds = %175, %165, %163, %87, %72, %57, %42, %28
  ret void

178:                                              ; preds = %163
  unreachable
}

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

!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, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !10, i64 28}
!12 = !{!"libxsmm_generated_code", !6, i64 0, !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20, !10, i64 24, !10, i64 28}
!13 = !{!12, !10, i64 16}
!14 = !{!12, !10, i64 12}
!15 = !{!12, !6, i64 0}
!16 = !{!12, !10, i64 8}


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

@stderr = external local_unnamed_addr global ptr, align 8
@.str.1 = external hidden unnamed_addr constant [83 x i8], align 1
@libxsmm_ninit = external local_unnamed_addr global i32, align 4
@libxsmm_verbosity = external local_unnamed_addr global i32, align 4
@db_bpos = external hidden local_unnamed_addr constant [32 x i32], align 16
@.str.9 = external hidden unnamed_addr constant [91 x i8], align 1
@__func__.libxsmm_rv64_instruction_rvv_setivli = external hidden unnamed_addr constant [37 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [57 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [59 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [60 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [59 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [84 x i8], align 1

; Function Attrs: nofree nounwind
declare noundef i32 @fprintf(ptr nocapture noundef, ptr nocapture noundef readonly, ...) local_unnamed_addr #0

declare void @libxsmm_handle_error(ptr noundef, i32 noundef, ptr noundef, ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
define dso_local void @libxsmm_rv64_instruction_rvv_setivli(ptr noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %4) local_unnamed_addr #2 {
  %6 = getelementptr inbounds i8, ptr %0, i64 28
  %7 = load i32, ptr %6, align 4, !tbaa !5
  %8 = icmp ult i32 %7, 3001
  br i1 %8, label %9, label %16

9:                                                ; preds = %5
  %10 = load ptr, ptr @stderr, align 8, !tbaa !11
  %11 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %10, ptr noundef nonnull @.str.9) #3
  %12 = load i32, ptr @libxsmm_ninit, align 4, !tbaa !12
  %13 = icmp ugt i32 %12, 1
  %14 = load i32, ptr @libxsmm_verbosity, align 4
  %15 = select i1 %13, i32 %14, i32 1
  tail call void @libxsmm_handle_error(ptr noundef nonnull %0, i32 noundef 90000, ptr noundef nonnull @__func__.libxsmm_rv64_instruction_rvv_setivli, ptr noundef nonnull @.str.1, i32 noundef 400, i32 noundef %15) #4
  br label %96

16:                                               ; preds = %5
  %17 = icmp ult i32 %2, 32
  br i1 %17, label %25, label %18

18:                                               ; preds = %16
  %19 = load ptr, ptr @stderr, align 8, !tbaa !11
  %20 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %19, ptr noundef nonnull @.str.10) #3
  %21 = load i32, ptr @libxsmm_ninit, align 4, !tbaa !12
  %22 = icmp ugt i32 %21, 1
  %23 = load i32, ptr @libxsmm_verbosity, align 4
  %24 = select i1 %22, i32 %23, i32 1
  tail call void @libxsmm_handle_error(ptr noundef nonnull %0, i32 noundef 90000, ptr noundef nonnull @__func__.libxsmm_rv64_instruction_rvv_setivli, ptr noundef nonnull @.str.1, i32 noundef 406, i32 noundef %24) #4
  br label %96

25:                                               ; preds = %16
  %26 = icmp ugt i32 %3, 8
  br i1 %26, label %27, label %34

27:                                               ; preds = %25
  %28 = load ptr, ptr @stderr, align 8, !tbaa !11
  %29 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %28, ptr noundef nonnull @.str.11, i32 noundef %3) #3
  %30 = load i32, ptr @libxsmm_ninit, align 4, !tbaa !12
  %31 = icmp ugt i32 %30, 1
  %32 = load i32, ptr @libxsmm_verbosity, align 4
  %33 = select i1 %31, i32 %32, i32 1
  tail call void @libxsmm_handle_error(ptr noundef nonnull %0, i32 noundef 90000, ptr noundef nonnull @__func__.libxsmm_rv64_instruction_rvv_setivli, ptr noundef nonnull @.str.1, i32 noundef 412, i32 noundef %33) #4
  br label %96

34:                                               ; preds = %25
  %35 = icmp ugt i32 %4, 8
  br i1 %35, label %36, label %43

36:                                               ; preds = %34
  %37 = load ptr, ptr @stderr, align 8, !tbaa !11
  %38 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %37, ptr noundef nonnull @.str.12, i32 noundef %4) #3
  %39 = load i32, ptr @libxsmm_ninit, align 4, !tbaa !12
  %40 = icmp ugt i32 %39, 1
  %41 = load i32, ptr @libxsmm_verbosity, align 4
  %42 = select i1 %40, i32 %41, i32 1
  tail call void @libxsmm_handle_error(ptr noundef nonnull %0, i32 noundef 90000, ptr noundef nonnull @__func__.libxsmm_rv64_instruction_rvv_setivli, ptr noundef nonnull @.str.1, i32 noundef 418, i32 noundef %42) #4
  br label %96

43:                                               ; preds = %34
  %44 = icmp ugt i32 %1, 31
  br i1 %44, label %45, label %52

45:                                               ; preds = %43
  %46 = load ptr, ptr @stderr, align 8, !tbaa !11
  %47 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %46, ptr noundef nonnull @.str.13, i32 noundef %1) #3
  %48 = load i32, ptr @libxsmm_ninit, align 4, !tbaa !12
  %49 = icmp ugt i32 %48, 1
  %50 = load i32, ptr @libxsmm_verbosity, align 4
  %51 = select i1 %49, i32 %50, i32 1
  tail call void @libxsmm_handle_error(ptr noundef nonnull %0, i32 noundef 90000, ptr noundef nonnull @__func__.libxsmm_rv64_instruction_rvv_setivli, ptr noundef nonnull @.str.1, i32 noundef 424, i32 noundef %51) #4
  br label %96

52:                                               ; preds = %43
  %53 = getelementptr inbounds i8, ptr %0, i64 16
  %54 = load i32, ptr %53, align 8, !tbaa !13
  %55 = icmp ugt i32 %54, 1
  br i1 %55, label %56, label %89

56:                                               ; preds = %52
  %57 = getelementptr inbounds i8, ptr %0, i64 12
  %58 = load i32, ptr %57, align 4, !tbaa !14
  %59 = getelementptr inbounds i8, ptr %0, i64 8
  %60 = load i32, ptr %59, align 8, !tbaa !15
  %61 = sub i32 %60, %58
  %62 = icmp ult i32 %61, 4
  br i1 %62, label %63, label %68

63:                                               ; preds = %56
  %64 = load i32, ptr @libxsmm_ninit, align 4, !tbaa !12
  %65 = icmp ugt i32 %64, 1
  %66 = load i32, ptr @libxsmm_verbosity, align 4
  %67 = select i1 %65, i32 %66, i32 1
  tail call void @libxsmm_handle_error(ptr noundef nonnull %0, i32 noundef 90002, ptr noundef nonnull @__func__.libxsmm_rv64_instruction_rvv_setivli, ptr noundef nonnull @.str.1, i32 noundef 435, i32 noundef %67) #4
  br label %96

68:                                               ; preds = %56
  %69 = shl nuw nsw i32 %3, 3
  %.masked = and i32 %69, 56
  %70 = or i32 %.masked, %4
  %71 = load ptr, ptr %0, align 8, !tbaa !16
  %72 = lshr i32 %58, 2
  %73 = zext nneg i32 %72 to i64
  %74 = getelementptr inbounds i32, ptr %71, i64 %73
  %75 = load i32, ptr getelementptr inbounds (i8, ptr @db_bpos, i64 44), align 4, !tbaa !12
  %76 = shl i32 %1, %75
  %77 = and i32 %76, 1015808
  %78 = or disjoint i32 %77, -1073713065
  %79 = load i32, ptr getelementptr inbounds (i8, ptr @db_bpos, i64 92), align 4, !tbaa !12
  %80 = shl i32 %2, %79
  %81 = and i32 %80, 3968
  %82 = or disjoint i32 %81, %78
  %83 = load i32, ptr getelementptr inbounds (i8, ptr @db_bpos, i64 40), align 8, !tbaa !12
  %84 = shl i32 %70, %83
  %85 = and i32 %84, 1072693248
  %86 = or disjoint i32 %85, %82
  store i32 %86, ptr %74, align 4, !tbaa !12
  %87 = load i32, ptr %57, align 4, !tbaa !14
  %88 = add i32 %87, 4
  store i32 %88, ptr %57, align 4, !tbaa !14
  br label %96

89:                                               ; preds = %52
  %90 = load ptr, ptr @stderr, align 8, !tbaa !11
  %91 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %90, ptr noundef nonnull @.str.14) #3
  %92 = load i32, ptr @libxsmm_ninit, align 4, !tbaa !12
  %93 = icmp ugt i32 %92, 1
  %94 = load i32, ptr @libxsmm_verbosity, align 4
  %95 = select i1 %93, i32 %94, i32 1
  tail call void @libxsmm_handle_error(ptr noundef nonnull %0, i32 noundef 90000, ptr noundef nonnull @__func__.libxsmm_rv64_instruction_rvv_setivli, ptr noundef nonnull @.str.1, i32 noundef 453, i32 noundef %95) #4
  br label %96

96:                                               ; preds = %63, %68, %89, %45, %36, %27, %18, %9
  ret void
}

attributes #0 = { nofree 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 #1 = { "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 = { 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 #3 = { cold nounwind }
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, !10, i64 28}
!6 = !{!"libxsmm_generated_code", !7, i64 0, !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20, !10, i64 24, !10, i64 28}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"int", !8, i64 0}
!11 = !{!7, !7, i64 0}
!12 = !{!10, !10, i64 0}
!13 = !{!6, !10, i64 16}
!14 = !{!6, !10, i64 12}
!15 = !{!6, !10, i64 8}
!16 = !{!6, !7, i64 0}


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