; 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.28 = external hidden unnamed_addr constant [88 x i8], align 1
@__func__.libxsmm_rv64_instruction_alu_move = external hidden unnamed_addr constant [34 x i8], align 1
@.str.29 = external hidden unnamed_addr constant [58 x i8], align 1
@.str.30 = external hidden unnamed_addr constant [58 x i8], align 1
@.str.31 = external hidden unnamed_addr constant [70 x i8], align 1
@.str.32 = external hidden unnamed_addr constant [81 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: nounwind uwtable
define dso_local void @libxsmm_rv64_instruction_alu_move(ptr noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %4) #2 {
  %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 i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca ptr, align 8
  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
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #4
  store i32 0, ptr %11, 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.28) #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_alu_move, ptr noundef @.str.1, i32 noundef 779, i32 noundef %29)
  store i32 1, ptr %12, align 4
  br label %201

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

33:                                               ; preds = %30
  %34 = load i32, ptr %9, align 4, !tbaa !9
  %35 = icmp ule i32 %34, 31
  br i1 %35, label %47, label %36

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

42:                                               ; preds = %36
  %43 = load i32, ptr @libxsmm_verbosity, align 4, !tbaa !9
  br label %45

44:                                               ; preds = %36
  br label %45

45:                                               ; preds = %44, %42
  %46 = phi i32 [ %43, %42 ], [ 1, %44 ]
  call void @libxsmm_handle_error(ptr noundef %39, i32 noundef 90000, ptr noundef @__func__.libxsmm_rv64_instruction_alu_move, ptr noundef @.str.1, i32 noundef 785, i32 noundef %46)
  store i32 1, ptr %12, align 4
  br label %201

47:                                               ; preds = %33
  %48 = load i32, ptr %10, align 4, !tbaa !9
  %49 = icmp sgt i32 %48, 4095
  br i1 %49, label %50, label %63

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

58:                                               ; preds = %50
  %59 = load i32, ptr @libxsmm_verbosity, align 4, !tbaa !9
  br label %61

60:                                               ; preds = %50
  br label %61

61:                                               ; preds = %60, %58
  %62 = phi i32 [ %59, %58 ], [ 1, %60 ]
  call void @libxsmm_handle_error(ptr noundef %55, i32 noundef 90000, ptr noundef @__func__.libxsmm_rv64_instruction_alu_move, ptr noundef @.str.1, i32 noundef 792, i32 noundef %62)
  store i32 1, ptr %12, align 4
  br label %201

63:                                               ; preds = %47
  %64 = load i32, ptr %7, align 4, !tbaa !9
  switch i32 %64, label %67 [
    i32 3, label %65
    i32 4099, label %65
    i32 8195, label %65
    i32 12291, label %65
    i32 12303, label %65
    i32 4103, label %65
    i32 8199, label %65
    i32 12295, label %65
    i32 16391, label %65
    i32 35, label %66
    i32 4131, label %66
    i32 8227, label %66
    i32 12323, label %66
    i32 16419, label %66
    i32 4135, label %66
    i32 8231, label %66
    i32 12327, label %66
    i32 16423, label %66
  ]

65:                                               ; preds = %63, %63, %63, %63, %63, %63, %63, %63, %63
  store i32 1, ptr %11, align 4, !tbaa !9
  br label %79

66:                                               ; preds = %63, %63, %63, %63, %63, %63, %63, %63, %63
  br label %79

67:                                               ; preds = %63
  %68 = load ptr, ptr @stderr, align 8, !tbaa !5
  %69 = load i32, ptr %7, align 4, !tbaa !9
  %70 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %68, ptr noundef @.str.31, i32 noundef %69) #4
  %71 = load ptr, ptr %6, align 8, !tbaa !5
  %72 = load i32, ptr @libxsmm_ninit, align 4, !tbaa !9
  %73 = icmp ult i32 1, %72
  br i1 %73, label %74, label %76

74:                                               ; preds = %67
  %75 = load i32, ptr @libxsmm_verbosity, align 4, !tbaa !9
  br label %77

76:                                               ; preds = %67
  br label %77

77:                                               ; preds = %76, %74
  %78 = phi i32 [ %75, %74 ], [ 1, %76 ]
  call void @libxsmm_handle_error(ptr noundef %71, i32 noundef 90000, ptr noundef @__func__.libxsmm_rv64_instruction_alu_move, ptr noundef @.str.1, i32 noundef 820, i32 noundef %78)
  store i32 1, ptr %12, align 4
  br label %201

79:                                               ; preds = %66, %65
  %80 = load ptr, ptr %6, align 8, !tbaa !5
  %81 = getelementptr inbounds %struct.libxsmm_generated_code, ptr %80, i32 0, i32 3
  %82 = load i32, ptr %81, align 8, !tbaa !13
  %83 = icmp ugt i32 %82, 1
  br i1 %83, label %84, label %189

84:                                               ; preds = %79
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #4
  %85 = load ptr, ptr %6, align 8, !tbaa !5
  %86 = getelementptr inbounds %struct.libxsmm_generated_code, ptr %85, i32 0, i32 2
  %87 = load i32, ptr %86, align 4, !tbaa !14
  %88 = udiv i32 %87, 4
  store i32 %88, ptr %13, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #4
  %89 = load ptr, ptr %6, align 8, !tbaa !5
  %90 = getelementptr inbounds %struct.libxsmm_generated_code, ptr %89, i32 0, i32 0
  %91 = load ptr, ptr %90, align 8, !tbaa !15
  store ptr %91, ptr %14, align 8, !tbaa !5
  %92 = load ptr, ptr %6, align 8, !tbaa !5
  %93 = getelementptr inbounds %struct.libxsmm_generated_code, ptr %92, i32 0, i32 1
  %94 = load i32, ptr %93, align 8, !tbaa !16
  %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 = sub i32 %94, %97
  %99 = icmp ult i32 %98, 4
  br i1 %99, label %100, label %109

100:                                              ; preds = %84
  %101 = load ptr, ptr %6, align 8, !tbaa !5
  %102 = load i32, ptr @libxsmm_ninit, align 4, !tbaa !9
  %103 = icmp ult i32 1, %102
  br i1 %103, label %104, label %106

104:                                              ; preds = %100
  %105 = load i32, ptr @libxsmm_verbosity, align 4, !tbaa !9
  br label %107

106:                                              ; preds = %100
  br label %107

107:                                              ; preds = %106, %104
  %108 = phi i32 [ %105, %104 ], [ 1, %106 ]
  call void @libxsmm_handle_error(ptr noundef %101, i32 noundef 90002, ptr noundef @__func__.libxsmm_rv64_instruction_alu_move, ptr noundef @.str.1, i32 noundef 830, i32 noundef %108)
  store i32 1, ptr %12, align 4
  br label %186

109:                                              ; preds = %84
  %110 = load i32, ptr %7, align 4, !tbaa !9
  %111 = load ptr, ptr %14, align 8, !tbaa !5
  %112 = load i32, ptr %13, align 4, !tbaa !9
  %113 = zext i32 %112 to i64
  %114 = getelementptr inbounds i32, ptr %111, i64 %113
  store i32 %110, ptr %114, align 4, !tbaa !9
  %115 = load i32, ptr %11, align 4, !tbaa !9
  %116 = icmp ne i32 %115, 0
  br i1 %116, label %117, label %138

117:                                              ; preds = %109
  %118 = load i32, ptr %9, align 4, !tbaa !9
  %119 = load i32, ptr getelementptr inbounds ([32 x i32], ptr @db_bpos, i64 0, i64 23), align 4, !tbaa !9
  %120 = shl i32 %118, %119
  %121 = and i32 3968, %120
  %122 = load ptr, ptr %14, align 8, !tbaa !5
  %123 = load i32, ptr %13, align 4, !tbaa !9
  %124 = zext i32 %123 to i64
  %125 = getelementptr inbounds i32, ptr %122, i64 %124
  %126 = load i32, ptr %125, align 4, !tbaa !9
  %127 = or i32 %126, %121
  store i32 %127, ptr %125, align 4, !tbaa !9
  %128 = load i32, ptr %10, align 4, !tbaa !9
  %129 = load i32, ptr getelementptr inbounds ([32 x i32], ptr @db_bpos, i64 0, i64 10), align 8, !tbaa !9
  %130 = shl i32 %128, %129
  %131 = and i32 -1048576, %130
  %132 = load ptr, ptr %14, align 8, !tbaa !5
  %133 = load i32, ptr %13, align 4, !tbaa !9
  %134 = zext i32 %133 to i64
  %135 = getelementptr inbounds i32, ptr %132, i64 %134
  %136 = load i32, ptr %135, align 4, !tbaa !9
  %137 = or i32 %136, %131
  store i32 %137, ptr %135, align 4, !tbaa !9
  br label %171

138:                                              ; preds = %109
  %139 = load i32, ptr %9, align 4, !tbaa !9
  %140 = load i32, ptr getelementptr inbounds ([32 x i32], ptr @db_bpos, i64 0, i64 10), align 8, !tbaa !9
  %141 = shl i32 %139, %140
  %142 = and i32 32505856, %141
  %143 = load ptr, ptr %14, align 8, !tbaa !5
  %144 = load i32, ptr %13, 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 %10, align 4, !tbaa !9
  %150 = and i32 %149, 31
  %151 = load i32, ptr getelementptr inbounds ([32 x i32], ptr @db_bpos, i64 0, i64 23), align 4, !tbaa !9
  %152 = shl i32 %150, %151
  %153 = and i32 3968, %152
  %154 = load ptr, ptr %14, align 8, !tbaa !5
  %155 = load i32, ptr %13, align 4, !tbaa !9
  %156 = zext i32 %155 to i64
  %157 = getelementptr inbounds i32, ptr %154, i64 %156
  %158 = load i32, ptr %157, align 4, !tbaa !9
  %159 = or i32 %158, %153
  store i32 %159, ptr %157, align 4, !tbaa !9
  %160 = load i32, ptr %10, align 4, !tbaa !9
  %161 = ashr i32 %160, 5
  %162 = load i32, ptr getelementptr inbounds ([32 x i32], ptr @db_bpos, i64 0, i64 12), align 16, !tbaa !9
  %163 = shl i32 %161, %162
  %164 = and i32 -33554432, %163
  %165 = load ptr, ptr %14, align 8, !tbaa !5
  %166 = load i32, ptr %13, align 4, !tbaa !9
  %167 = zext i32 %166 to i64
  %168 = getelementptr inbounds i32, ptr %165, i64 %167
  %169 = load i32, ptr %168, align 4, !tbaa !9
  %170 = or i32 %169, %164
  store i32 %170, ptr %168, align 4, !tbaa !9
  br label %171

171:                                              ; preds = %138, %117
  %172 = load i32, ptr %8, align 4, !tbaa !9
  %173 = load i32, ptr getelementptr inbounds ([32 x i32], ptr @db_bpos, i64 0, i64 11), align 4, !tbaa !9
  %174 = shl i32 %172, %173
  %175 = and i32 1015808, %174
  %176 = load ptr, ptr %14, align 8, !tbaa !5
  %177 = load i32, ptr %13, align 4, !tbaa !9
  %178 = zext i32 %177 to i64
  %179 = getelementptr inbounds i32, ptr %176, i64 %178
  %180 = load i32, ptr %179, align 4, !tbaa !9
  %181 = or i32 %180, %175
  store i32 %181, ptr %179, align 4, !tbaa !9
  %182 = load ptr, ptr %6, align 8, !tbaa !5
  %183 = getelementptr inbounds %struct.libxsmm_generated_code, ptr %182, i32 0, i32 2
  %184 = load i32, ptr %183, align 4, !tbaa !14
  %185 = add i32 %184, 4
  store i32 %185, ptr %183, align 4, !tbaa !14
  store i32 0, ptr %12, align 4
  br label %186

186:                                              ; preds = %171, %107
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #4
  %187 = load i32, ptr %12, align 4
  switch i32 %187, label %201 [
    i32 0, label %188
  ]

188:                                              ; preds = %186
  br label %200

189:                                              ; preds = %79
  %190 = load ptr, ptr @stderr, align 8, !tbaa !5
  %191 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %190, ptr noundef @.str.32) #4
  %192 = load ptr, ptr %6, align 8, !tbaa !5
  %193 = load i32, ptr @libxsmm_ninit, align 4, !tbaa !9
  %194 = icmp ult i32 1, %193
  br i1 %194, label %195, label %197

195:                                              ; preds = %189
  %196 = load i32, ptr @libxsmm_verbosity, align 4, !tbaa !9
  br label %198

197:                                              ; preds = %189
  br label %198

198:                                              ; preds = %197, %195
  %199 = phi i32 [ %196, %195 ], [ 1, %197 ]
  call void @libxsmm_handle_error(ptr noundef %192, i32 noundef 90000, ptr noundef @__func__.libxsmm_rv64_instruction_alu_move, ptr noundef @.str.1, i32 noundef 858, i32 noundef %199)
  store i32 1, ptr %12, align 4
  br label %201

200:                                              ; preds = %188
  store i32 0, ptr %12, align 4
  br label %201

201:                                              ; preds = %200, %198, %186, %77, %61, %45, %28
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #4
  %202 = load i32, ptr %12, align 4
  switch i32 %202, label %204 [
    i32 0, label %203
    i32 1, label %203
  ]

203:                                              ; preds = %201, %201
  ret void

204:                                              ; preds = %201
  unreachable
}

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

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

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 = { 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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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.28 = external hidden unnamed_addr constant [88 x i8], align 1
@__func__.libxsmm_rv64_instruction_alu_move = external hidden unnamed_addr constant [34 x i8], align 1
@.str.29 = external hidden unnamed_addr constant [58 x i8], align 1
@.str.30 = external hidden unnamed_addr constant [58 x i8], align 1
@.str.31 = external hidden unnamed_addr constant [70 x i8], align 1
@.str.32 = external hidden unnamed_addr constant [81 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_move(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.28) #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_move, ptr noundef nonnull @.str.1, i32 noundef 779, i32 noundef %15) #4
  br label %101

16:                                               ; preds = %5
  %17 = or i32 %3, %2
  %or.cond = icmp ult i32 %17, 32
  br i1 %or.cond, 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.29) #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_alu_move, ptr noundef nonnull @.str.1, i32 noundef 785, i32 noundef %24) #4
  br label %101

25:                                               ; preds = %16
  %26 = icmp sgt i32 %4, 4095
  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.30, i32 noundef %1, i32 noundef %4) #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_move, ptr noundef nonnull @.str.1, i32 noundef 792, i32 noundef %33) #4
  br label %101

34:                                               ; preds = %25
  switch i32 %1, label %36 [
    i32 3, label %35
    i32 4099, label %35
    i32 8195, label %35
    i32 12291, label %35
    i32 12303, label %35
    i32 4103, label %35
    i32 8199, label %35
    i32 12295, label %35
    i32 16391, label %35
    i32 35, label %43
    i32 4131, label %43
    i32 8227, label %43
    i32 12323, label %43
    i32 16419, label %43
    i32 4135, label %43
    i32 8231, label %43
    i32 12327, label %43
    i32 16423, label %43
  ]

35:                                               ; preds = %34, %34, %34, %34, %34, %34, %34, %34, %34
  br 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.31, i32 noundef %1) #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_alu_move, ptr noundef nonnull @.str.1, i32 noundef 820, i32 noundef %42) #4
  br label %101

43:                                               ; preds = %34, %34, %34, %34, %34, %34, %34, %34, %34, %35
  %.not = phi i1 [ true, %34 ], [ true, %34 ], [ true, %34 ], [ true, %34 ], [ true, %34 ], [ true, %34 ], [ true, %34 ], [ true, %34 ], [ true, %34 ], [ false, %35 ]
  %44 = getelementptr inbounds i8, ptr %0, i64 16
  %45 = load i32, ptr %44, align 8, !tbaa !13
  %46 = icmp ugt i32 %45, 1
  br i1 %46, label %47, label %94

47:                                               ; preds = %43
  %48 = getelementptr inbounds i8, ptr %0, i64 12
  %49 = load i32, ptr %48, align 4, !tbaa !14
  %50 = getelementptr inbounds i8, ptr %0, i64 8
  %51 = load i32, ptr %50, align 8, !tbaa !15
  %52 = sub i32 %51, %49
  %53 = icmp ult i32 %52, 4
  br i1 %53, label %54, label %59

54:                                               ; preds = %47
  %55 = load i32, ptr @libxsmm_ninit, align 4, !tbaa !12
  %56 = icmp ugt i32 %55, 1
  %57 = load i32, ptr @libxsmm_verbosity, align 4
  %58 = select i1 %56, i32 %57, i32 1
  tail call void @libxsmm_handle_error(ptr noundef nonnull %0, i32 noundef 90002, ptr noundef nonnull @__func__.libxsmm_rv64_instruction_alu_move, ptr noundef nonnull @.str.1, i32 noundef 830, i32 noundef %58) #4
  br label %101

59:                                               ; preds = %47
  %60 = load ptr, ptr %0, align 8, !tbaa !16
  %61 = lshr i32 %49, 2
  %62 = zext nneg i32 %61 to i64
  %63 = getelementptr inbounds i32, ptr %60, i64 %62
  br i1 %.not, label %72, label %64

64:                                               ; preds = %59
  %65 = load i32, ptr getelementptr inbounds (i8, ptr @db_bpos, i64 92), align 4, !tbaa !12
  %66 = shl i32 %3, %65
  %67 = and i32 %66, 3968
  %68 = load i32, ptr getelementptr inbounds (i8, ptr @db_bpos, i64 40), align 8, !tbaa !12
  %69 = shl i32 %4, %68
  %70 = and i32 %69, -1048576
  %71 = or disjoint i32 %67, %70
  br label %86

72:                                               ; preds = %59
  %73 = load i32, ptr getelementptr inbounds (i8, ptr @db_bpos, i64 40), align 8, !tbaa !12
  %74 = shl i32 %3, %73
  %75 = and i32 %74, 32505856
  %76 = and i32 %4, 31
  %77 = load i32, ptr getelementptr inbounds (i8, ptr @db_bpos, i64 92), align 4, !tbaa !12
  %78 = shl i32 %76, %77
  %79 = and i32 %78, 3968
  %80 = or disjoint i32 %75, %79
  %81 = ashr i32 %4, 5
  %82 = load i32, ptr getelementptr inbounds (i8, ptr @db_bpos, i64 48), align 16, !tbaa !12
  %83 = shl i32 %81, %82
  %84 = and i32 %83, -33554432
  %85 = or disjoint i32 %80, %84
  br label %86

86:                                               ; preds = %72, %64
  %.pn = phi i32 [ %85, %72 ], [ %71, %64 ]
  %87 = load i32, ptr getelementptr inbounds (i8, ptr @db_bpos, i64 44), align 4, !tbaa !12
  %88 = shl i32 %2, %87
  %89 = and i32 %88, 1015808
  %90 = or i32 %.pn, %89
  %91 = or i32 %90, %1
  store i32 %91, ptr %63, align 4, !tbaa !12
  %92 = load i32, ptr %48, align 4, !tbaa !14
  %93 = add i32 %92, 4
  store i32 %93, ptr %48, align 4, !tbaa !14
  br label %101

94:                                               ; preds = %43
  %95 = load ptr, ptr @stderr, align 8, !tbaa !11
  %96 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %95, ptr noundef nonnull @.str.32) #3
  %97 = load i32, ptr @libxsmm_ninit, align 4, !tbaa !12
  %98 = icmp ugt i32 %97, 1
  %99 = load i32, ptr @libxsmm_verbosity, align 4
  %100 = select i1 %98, i32 %99, i32 1
  tail call void @libxsmm_handle_error(ptr noundef nonnull %0, i32 noundef 90000, ptr noundef nonnull @__func__.libxsmm_rv64_instruction_alu_move, ptr noundef nonnull @.str.1, i32 noundef 858, i32 noundef %100) #4
  br label %101

101:                                              ; preds = %54, %86, %94, %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