; 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.33 = external hidden unnamed_addr constant [91 x i8], align 1
@__func__.libxsmm_rv64_instruction_alu_compute = external hidden unnamed_addr constant [37 x i8], align 1
@.str.34 = external hidden unnamed_addr constant [57 x i8], align 1
@.str.35 = external hidden unnamed_addr constant [73 x i8], align 1
@.str.36 = 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_alu_compute(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
  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
  %14 = load ptr, ptr %6, align 8, !tbaa !5
  %15 = getelementptr inbounds %struct.libxsmm_generated_code, ptr %14, i32 0, i32 6
  %16 = load i32, ptr %15, align 4, !tbaa !11
  %17 = icmp ult i32 %16, 3001
  br i1 %17, label %18, label %29

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

24:                                               ; preds = %18
  %25 = load i32, ptr @libxsmm_verbosity, align 4, !tbaa !9
  br label %27

26:                                               ; preds = %18
  br label %27

27:                                               ; preds = %26, %24
  %28 = phi i32 [ %25, %24 ], [ 1, %26 ]
  call void @libxsmm_handle_error(ptr noundef %21, i32 noundef 90000, ptr noundef @__func__.libxsmm_rv64_instruction_alu_compute, ptr noundef @.str.1, i32 noundef 872, i32 noundef %28)
  br label %148

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

32:                                               ; preds = %29
  %33 = load i32, ptr %9, align 4, !tbaa !9
  %34 = icmp ule i32 %33, 31
  br i1 %34, label %35, label %38

35:                                               ; preds = %32
  %36 = load i32, ptr %10, align 4, !tbaa !9
  %37 = icmp ule i32 %36, 31
  br i1 %37, label %49, label %38

38:                                               ; preds = %35, %32, %29
  %39 = load ptr, ptr @stderr, align 8, !tbaa !5
  %40 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %39, ptr noundef @.str.34) #4
  %41 = load ptr, ptr %6, align 8, !tbaa !5
  %42 = load i32, ptr @libxsmm_ninit, align 4, !tbaa !9
  %43 = icmp ult i32 1, %42
  br i1 %43, label %44, label %46

44:                                               ; preds = %38
  %45 = load i32, ptr @libxsmm_verbosity, align 4, !tbaa !9
  br label %47

46:                                               ; preds = %38
  br label %47

47:                                               ; preds = %46, %44
  %48 = phi i32 [ %45, %44 ], [ 1, %46 ]
  call void @libxsmm_handle_error(ptr noundef %41, i32 noundef 90000, ptr noundef @__func__.libxsmm_rv64_instruction_alu_compute, ptr noundef @.str.1, i32 noundef 878, i32 noundef %48)
  br label %148

49:                                               ; preds = %35
  %50 = load i32, ptr %7, align 4, !tbaa !9
  switch i32 %50, label %52 [
    i32 51, label %51
    i32 1073741875, label %51
    i32 24627, label %51
    i32 28723, label %51
    i32 16435, label %51
    i32 20531, label %51
    i32 4147, label %51
    i32 4155, label %51
    i32 8243, label %51
    i32 12339, label %51
    i32 1073762355, label %51
    i32 1073762363, label %51
    i32 20539, label %51
    i32 1073741883, label %51
    i32 33554483, label %51
    i32 33554491, label %51
    i32 33558579, label %51
    i32 33566771, label %51
    i32 33562675, label %51
    i32 33570867, label %51
    i32 33570875, label %51
    i32 33574963, label %51
    i32 33579059, label %51
    i32 33579067, label %51
    i32 33583155, label %51
    i32 33583163, label %51
    i32 83, label %51
    i32 33554515, label %51
    i32 134217811, label %51
    i32 167772243, label %51
    i32 268435539, label %51
    i32 301989971, label %51
    i32 402653267, label %51
    i32 436207699, label %51
    i32 1476395091, label %51
    i32 1509949523, label %51
    i32 67, label %51
    i32 33554499, label %51
    i32 71, label %51
    i32 33554503, label %51
    i32 79, label %51
    i32 33554511, label %51
    i32 75, label %51
    i32 33554507, label %51
    i32 671088723, label %51
    i32 704643155, label %51
    i32 671092819, label %51
    i32 704647251, label %51
    i32 -268435373, label %51
    i32 -536870829, label %51
    i32 20567, label %51
  ]

51:                                               ; preds = %49, %49, %49, %49, %49, %49, %49, %49, %49, %49, %49, %49, %49, %49, %49, %49, %49, %49, %49, %49, %49, %49, %49, %49, %49, %49, %49, %49, %49, %49, %49, %49, %49, %49, %49, %49, %49, %49, %49, %49, %49, %49, %49, %49, %49, %49, %49, %49, %49, %49, %49
  br label %64

52:                                               ; preds = %49
  %53 = load ptr, ptr @stderr, align 8, !tbaa !5
  %54 = load i32, ptr %7, align 4, !tbaa !9
  %55 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %53, ptr noundef @.str.35, i32 noundef %54) #4
  %56 = load ptr, ptr %6, align 8, !tbaa !5
  %57 = load i32, ptr @libxsmm_ninit, align 4, !tbaa !9
  %58 = icmp ult i32 1, %57
  br i1 %58, label %59, label %61

59:                                               ; preds = %52
  %60 = load i32, ptr @libxsmm_verbosity, align 4, !tbaa !9
  br label %62

61:                                               ; preds = %52
  br label %62

62:                                               ; preds = %61, %59
  %63 = phi i32 [ %60, %59 ], [ 1, %61 ]
  call void @libxsmm_handle_error(ptr noundef %56, i32 noundef 90000, ptr noundef @__func__.libxsmm_rv64_instruction_alu_compute, ptr noundef @.str.1, i32 noundef 938, i32 noundef %63)
  br label %148

64:                                               ; preds = %51
  %65 = load ptr, ptr %6, align 8, !tbaa !5
  %66 = getelementptr inbounds %struct.libxsmm_generated_code, ptr %65, i32 0, i32 3
  %67 = load i32, ptr %66, align 8, !tbaa !13
  %68 = icmp ugt i32 %67, 1
  br i1 %68, label %69, label %137

69:                                               ; preds = %64
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #4
  %70 = load ptr, ptr %6, align 8, !tbaa !5
  %71 = getelementptr inbounds %struct.libxsmm_generated_code, ptr %70, i32 0, i32 2
  %72 = load i32, ptr %71, align 4, !tbaa !14
  %73 = udiv i32 %72, 4
  store i32 %73, ptr %11, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #4
  %74 = load ptr, ptr %6, align 8, !tbaa !5
  %75 = getelementptr inbounds %struct.libxsmm_generated_code, ptr %74, i32 0, i32 0
  %76 = load ptr, ptr %75, align 8, !tbaa !15
  store ptr %76, ptr %12, align 8, !tbaa !5
  %77 = load ptr, ptr %6, align 8, !tbaa !5
  %78 = getelementptr inbounds %struct.libxsmm_generated_code, ptr %77, i32 0, i32 1
  %79 = load i32, ptr %78, align 8, !tbaa !16
  %80 = load ptr, ptr %6, align 8, !tbaa !5
  %81 = getelementptr inbounds %struct.libxsmm_generated_code, ptr %80, i32 0, i32 2
  %82 = load i32, ptr %81, align 4, !tbaa !14
  %83 = sub i32 %79, %82
  %84 = icmp ult i32 %83, 4
  br i1 %84, label %85, label %94

85:                                               ; preds = %69
  %86 = load ptr, ptr %6, align 8, !tbaa !5
  %87 = load i32, ptr @libxsmm_ninit, align 4, !tbaa !9
  %88 = icmp ult i32 1, %87
  br i1 %88, label %89, label %91

89:                                               ; preds = %85
  %90 = load i32, ptr @libxsmm_verbosity, align 4, !tbaa !9
  br label %92

91:                                               ; preds = %85
  br label %92

92:                                               ; preds = %91, %89
  %93 = phi i32 [ %90, %89 ], [ 1, %91 ]
  call void @libxsmm_handle_error(ptr noundef %86, i32 noundef 90002, ptr noundef @__func__.libxsmm_rv64_instruction_alu_compute, ptr noundef @.str.1, i32 noundef 948, i32 noundef %93)
  store i32 1, ptr %13, align 4
  br label %134

94:                                               ; preds = %69
  %95 = load i32, ptr %7, align 4, !tbaa !9
  %96 = load ptr, ptr %12, align 8, !tbaa !5
  %97 = load i32, ptr %11, align 4, !tbaa !9
  %98 = zext i32 %97 to i64
  %99 = getelementptr inbounds i32, ptr %96, i64 %98
  store i32 %95, ptr %99, align 4, !tbaa !9
  %100 = load i32, ptr %8, align 4, !tbaa !9
  %101 = load i32, ptr getelementptr inbounds ([32 x i32], ptr @db_bpos, i64 0, i64 11), align 4, !tbaa !9
  %102 = shl i32 %100, %101
  %103 = and i32 1015808, %102
  %104 = load ptr, ptr %12, align 8, !tbaa !5
  %105 = load i32, ptr %11, align 4, !tbaa !9
  %106 = zext i32 %105 to i64
  %107 = getelementptr inbounds i32, ptr %104, i64 %106
  %108 = load i32, ptr %107, align 4, !tbaa !9
  %109 = or i32 %108, %103
  store i32 %109, ptr %107, align 4, !tbaa !9
  %110 = load i32, ptr %9, align 4, !tbaa !9
  %111 = load i32, ptr getelementptr inbounds ([32 x i32], ptr @db_bpos, i64 0, i64 10), align 8, !tbaa !9
  %112 = shl i32 %110, %111
  %113 = and i32 32505856, %112
  %114 = load ptr, ptr %12, align 8, !tbaa !5
  %115 = load i32, ptr %11, align 4, !tbaa !9
  %116 = zext i32 %115 to i64
  %117 = getelementptr inbounds i32, ptr %114, i64 %116
  %118 = load i32, ptr %117, align 4, !tbaa !9
  %119 = or i32 %118, %113
  store i32 %119, ptr %117, align 4, !tbaa !9
  %120 = load i32, ptr %10, align 4, !tbaa !9
  %121 = load i32, ptr getelementptr inbounds ([32 x i32], ptr @db_bpos, i64 0, i64 23), align 4, !tbaa !9
  %122 = shl i32 %120, %121
  %123 = and i32 3968, %122
  %124 = load ptr, ptr %12, align 8, !tbaa !5
  %125 = load i32, ptr %11, align 4, !tbaa !9
  %126 = zext i32 %125 to i64
  %127 = getelementptr inbounds i32, ptr %124, i64 %126
  %128 = load i32, ptr %127, align 4, !tbaa !9
  %129 = or i32 %128, %123
  store i32 %129, ptr %127, align 4, !tbaa !9
  %130 = load ptr, ptr %6, align 8, !tbaa !5
  %131 = getelementptr inbounds %struct.libxsmm_generated_code, ptr %130, i32 0, i32 2
  %132 = load i32, ptr %131, align 4, !tbaa !14
  %133 = add i32 %132, 4
  store i32 %133, ptr %131, align 4, !tbaa !14
  store i32 0, ptr %13, align 4
  br label %134

134:                                              ; preds = %94, %92
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #4
  %135 = load i32, ptr %13, align 4
  switch i32 %135, label %149 [
    i32 0, label %136
    i32 1, label %148
  ]

136:                                              ; preds = %134
  br label %148

137:                                              ; preds = %64
  %138 = load ptr, ptr @stderr, align 8, !tbaa !5
  %139 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %138, ptr noundef @.str.36) #4
  %140 = load ptr, ptr %6, align 8, !tbaa !5
  %141 = load i32, ptr @libxsmm_ninit, align 4, !tbaa !9
  %142 = icmp ult i32 1, %141
  br i1 %142, label %143, label %145

143:                                              ; preds = %137
  %144 = load i32, ptr @libxsmm_verbosity, align 4, !tbaa !9
  br label %146

145:                                              ; preds = %137
  br label %146

146:                                              ; preds = %145, %143
  %147 = phi i32 [ %144, %143 ], [ 1, %145 ]
  call void @libxsmm_handle_error(ptr noundef %140, i32 noundef 90000, ptr noundef @__func__.libxsmm_rv64_instruction_alu_compute, ptr noundef @.str.1, i32 noundef 970, i32 noundef %147)
  br label %148

148:                                              ; preds = %146, %136, %134, %62, %47, %27
  ret void

149:                                              ; preds = %134
  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.33 = external hidden unnamed_addr constant [91 x i8], align 1
@__func__.libxsmm_rv64_instruction_alu_compute = external hidden unnamed_addr constant [37 x i8], align 1
@.str.34 = external hidden unnamed_addr constant [57 x i8], align 1
@.str.35 = external hidden unnamed_addr constant [73 x i8], align 1
@.str.36 = 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_alu_compute(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.33) #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_alu_compute, ptr noundef nonnull @.str.1, i32 noundef 872, i32 noundef %15) #4
  br label %76

16:                                               ; preds = %5
  %17 = or i32 %3, %2
  %18 = or i32 %17, %4
  %or.cond3 = icmp ult i32 %18, 32
  br i1 %or.cond3, label %26, label %19

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

26:                                               ; preds = %16
  switch i32 %1, label %27 [
    i32 51, label %34
    i32 1073741875, label %34
    i32 24627, label %34
    i32 28723, label %34
    i32 16435, label %34
    i32 20531, label %34
    i32 4147, label %34
    i32 4155, label %34
    i32 8243, label %34
    i32 12339, label %34
    i32 1073762355, label %34
    i32 1073762363, label %34
    i32 20539, label %34
    i32 1073741883, label %34
    i32 33554483, label %34
    i32 33554491, label %34
    i32 33558579, label %34
    i32 33566771, label %34
    i32 33562675, label %34
    i32 33570867, label %34
    i32 33570875, label %34
    i32 33574963, label %34
    i32 33579059, label %34
    i32 33579067, label %34
    i32 33583155, label %34
    i32 33583163, label %34
    i32 83, label %34
    i32 33554515, label %34
    i32 134217811, label %34
    i32 167772243, label %34
    i32 268435539, label %34
    i32 301989971, label %34
    i32 402653267, label %34
    i32 436207699, label %34
    i32 1476395091, label %34
    i32 1509949523, label %34
    i32 67, label %34
    i32 33554499, label %34
    i32 71, label %34
    i32 33554503, label %34
    i32 79, label %34
    i32 33554511, label %34
    i32 75, label %34
    i32 33554507, label %34
    i32 671088723, label %34
    i32 704643155, label %34
    i32 671092819, label %34
    i32 704647251, label %34
    i32 -268435373, label %34
    i32 -536870829, label %34
    i32 20567, label %34
  ]

27:                                               ; preds = %26
  %28 = load ptr, ptr @stderr, align 8, !tbaa !11
  %29 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %28, ptr noundef nonnull @.str.35, i32 noundef %1) #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_alu_compute, ptr noundef nonnull @.str.1, i32 noundef 938, i32 noundef %33) #4
  br label %76

34:                                               ; preds = %26, %26, %26, %26, %26, %26, %26, %26, %26, %26, %26, %26, %26, %26, %26, %26, %26, %26, %26, %26, %26, %26, %26, %26, %26, %26, %26, %26, %26, %26, %26, %26, %26, %26, %26, %26, %26, %26, %26, %26, %26, %26, %26, %26, %26, %26, %26, %26, %26, %26, %26
  %35 = getelementptr inbounds i8, ptr %0, i64 16
  %36 = load i32, ptr %35, align 8, !tbaa !13
  %37 = icmp ugt i32 %36, 1
  br i1 %37, label %38, label %69

38:                                               ; preds = %34
  %39 = getelementptr inbounds i8, ptr %0, i64 12
  %40 = load i32, ptr %39, align 4, !tbaa !14
  %41 = getelementptr inbounds i8, ptr %0, i64 8
  %42 = load i32, ptr %41, align 8, !tbaa !15
  %43 = sub i32 %42, %40
  %44 = icmp ult i32 %43, 4
  br i1 %44, label %45, label %50

45:                                               ; preds = %38
  %46 = load i32, ptr @libxsmm_ninit, align 4, !tbaa !12
  %47 = icmp ugt i32 %46, 1
  %48 = load i32, ptr @libxsmm_verbosity, align 4
  %49 = select i1 %47, i32 %48, i32 1
  tail call void @libxsmm_handle_error(ptr noundef nonnull %0, i32 noundef 90002, ptr noundef nonnull @__func__.libxsmm_rv64_instruction_alu_compute, ptr noundef nonnull @.str.1, i32 noundef 948, i32 noundef %49) #4
  br label %76

50:                                               ; preds = %38
  %51 = load ptr, ptr %0, align 8, !tbaa !16
  %52 = lshr i32 %40, 2
  %53 = zext nneg i32 %52 to i64
  %54 = getelementptr inbounds i32, ptr %51, i64 %53
  %55 = load i32, ptr getelementptr inbounds (i8, ptr @db_bpos, i64 44), align 4, !tbaa !12
  %56 = shl i32 %2, %55
  %57 = and i32 %56, 1015808
  %58 = load i32, ptr getelementptr inbounds (i8, ptr @db_bpos, i64 40), align 8, !tbaa !12
  %59 = shl i32 %3, %58
  %60 = and i32 %59, 32505856
  %61 = or disjoint i32 %57, %60
  %62 = load i32, ptr getelementptr inbounds (i8, ptr @db_bpos, i64 92), align 4, !tbaa !12
  %63 = shl i32 %4, %62
  %64 = and i32 %63, 3968
  %65 = or disjoint i32 %61, %64
  %66 = or i32 %65, %1
  store i32 %66, ptr %54, align 4, !tbaa !12
  %67 = load i32, ptr %39, align 4, !tbaa !14
  %68 = add i32 %67, 4
  store i32 %68, ptr %39, align 4, !tbaa !14
  br label %76

69:                                               ; preds = %34
  %70 = load ptr, ptr @stderr, align 8, !tbaa !11
  %71 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %70, ptr noundef nonnull @.str.36) #3
  %72 = load i32, ptr @libxsmm_ninit, align 4, !tbaa !12
  %73 = icmp ugt i32 %72, 1
  %74 = load i32, ptr @libxsmm_verbosity, align 4
  %75 = select i1 %73, i32 %74, i32 1
  tail call void @libxsmm_handle_error(ptr noundef nonnull %0, i32 noundef 90000, ptr noundef nonnull @__func__.libxsmm_rv64_instruction_alu_compute, ptr noundef nonnull @.str.1, i32 noundef 970, i32 noundef %75) #4
  br label %76

76:                                               ; preds = %45, %50, %69, %27, %19, %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