; 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.37 = external hidden unnamed_addr constant [97 x i8], align 1
@__func__.libxsmm_rv64_instruction_alu_compute_imm12 = external hidden unnamed_addr constant [43 x i8], align 1
@.str.38 = external hidden unnamed_addr constant [59 x i8], align 1
@.str.39 = external hidden unnamed_addr constant [67 x i8], align 1
@.str.40 = external hidden unnamed_addr constant [79 x i8], align 1
@.str.41 = external hidden unnamed_addr constant [90 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_compute_imm12(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 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.37) #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_imm12, ptr noundef @.str.1, i32 noundef 984, i32 noundef %28)
  br label %161

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

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

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

41:                                               ; preds = %35
  %42 = load i32, ptr @libxsmm_verbosity, align 4, !tbaa !9
  br label %44

43:                                               ; preds = %35
  br label %44

44:                                               ; preds = %43, %41
  %45 = phi i32 [ %42, %41 ], [ 1, %43 ]
  call void @libxsmm_handle_error(ptr noundef %38, i32 noundef 90000, ptr noundef @__func__.libxsmm_rv64_instruction_alu_compute_imm12, ptr noundef @.str.1, i32 noundef 990, i32 noundef %45)
  br label %161

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

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

57:                                               ; preds = %49
  %58 = load i32, ptr @libxsmm_verbosity, align 4, !tbaa !9
  br label %60

59:                                               ; preds = %49
  br label %60

60:                                               ; preds = %59, %57
  %61 = phi i32 [ %58, %57 ], [ 1, %59 ]
  call void @libxsmm_handle_error(ptr noundef %54, i32 noundef 90000, ptr noundef @__func__.libxsmm_rv64_instruction_alu_compute_imm12, ptr noundef @.str.1, i32 noundef 996, i32 noundef %61)
  br label %161

62:                                               ; preds = %46
  %63 = load i32, ptr %7, align 4, !tbaa !9
  switch i32 %63, label %65 [
    i32 19, label %64
    i32 27, label %64
    i32 28787, label %64
    i32 24691, label %64
    i32 20595, label %64
    i32 24595, label %64
    i32 28691, label %64
    i32 16403, label %64
    i32 20499, label %64
    i32 20507, label %64
    i32 4115, label %64
    i32 4123, label %64
    i32 8211, label %64
    i32 12307, label %64
    i32 1073762323, label %64
    i32 1073762331, label %64
  ]

64:                                               ; preds = %62, %62, %62, %62, %62, %62, %62, %62, %62, %62, %62, %62, %62, %62, %62, %62
  br label %77

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

72:                                               ; preds = %65
  %73 = load i32, ptr @libxsmm_verbosity, align 4, !tbaa !9
  br label %75

74:                                               ; preds = %65
  br label %75

75:                                               ; preds = %74, %72
  %76 = phi i32 [ %73, %72 ], [ 1, %74 ]
  call void @libxsmm_handle_error(ptr noundef %69, i32 noundef 90000, ptr noundef @__func__.libxsmm_rv64_instruction_alu_compute_imm12, ptr noundef @.str.1, i32 noundef 1021, i32 noundef %76)
  br label %161

77:                                               ; preds = %64
  %78 = load ptr, ptr %6, align 8, !tbaa !5
  %79 = getelementptr inbounds %struct.libxsmm_generated_code, ptr %78, i32 0, i32 3
  %80 = load i32, ptr %79, align 8, !tbaa !13
  %81 = icmp ugt i32 %80, 1
  br i1 %81, label %82, label %150

82:                                               ; preds = %77
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #4
  %83 = load ptr, ptr %6, align 8, !tbaa !5
  %84 = getelementptr inbounds %struct.libxsmm_generated_code, ptr %83, i32 0, i32 2
  %85 = load i32, ptr %84, align 4, !tbaa !14
  %86 = udiv i32 %85, 4
  store i32 %86, ptr %11, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #4
  %87 = load ptr, ptr %6, align 8, !tbaa !5
  %88 = getelementptr inbounds %struct.libxsmm_generated_code, ptr %87, i32 0, i32 0
  %89 = load ptr, ptr %88, align 8, !tbaa !15
  store ptr %89, ptr %12, align 8, !tbaa !5
  %90 = load ptr, ptr %6, align 8, !tbaa !5
  %91 = getelementptr inbounds %struct.libxsmm_generated_code, ptr %90, i32 0, i32 1
  %92 = load i32, ptr %91, align 8, !tbaa !16
  %93 = load ptr, ptr %6, align 8, !tbaa !5
  %94 = getelementptr inbounds %struct.libxsmm_generated_code, ptr %93, i32 0, i32 2
  %95 = load i32, ptr %94, align 4, !tbaa !14
  %96 = sub i32 %92, %95
  %97 = icmp ult i32 %96, 4
  br i1 %97, label %98, label %107

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

102:                                              ; preds = %98
  %103 = load i32, ptr @libxsmm_verbosity, align 4, !tbaa !9
  br label %105

104:                                              ; preds = %98
  br label %105

105:                                              ; preds = %104, %102
  %106 = phi i32 [ %103, %102 ], [ 1, %104 ]
  call void @libxsmm_handle_error(ptr noundef %99, i32 noundef 90002, ptr noundef @__func__.libxsmm_rv64_instruction_alu_compute_imm12, ptr noundef @.str.1, i32 noundef 1031, i32 noundef %106)
  store i32 1, ptr %13, align 4
  br label %147

107:                                              ; preds = %82
  %108 = load i32, ptr %7, align 4, !tbaa !9
  %109 = load ptr, ptr %12, align 8, !tbaa !5
  %110 = load i32, ptr %11, align 4, !tbaa !9
  %111 = zext i32 %110 to i64
  %112 = getelementptr inbounds i32, ptr %109, i64 %111
  store i32 %108, ptr %112, align 4, !tbaa !9
  %113 = load i32, ptr %9, align 4, !tbaa !9
  %114 = load i32, ptr getelementptr inbounds ([32 x i32], ptr @db_bpos, i64 0, i64 23), align 4, !tbaa !9
  %115 = shl i32 %113, %114
  %116 = and i32 3968, %115
  %117 = load ptr, ptr %12, align 8, !tbaa !5
  %118 = load i32, ptr %11, align 4, !tbaa !9
  %119 = zext i32 %118 to i64
  %120 = getelementptr inbounds i32, ptr %117, i64 %119
  %121 = load i32, ptr %120, align 4, !tbaa !9
  %122 = or i32 %121, %116
  store i32 %122, ptr %120, align 4, !tbaa !9
  %123 = load i32, ptr %8, align 4, !tbaa !9
  %124 = load i32, ptr getelementptr inbounds ([32 x i32], ptr @db_bpos, i64 0, i64 11), align 4, !tbaa !9
  %125 = shl i32 %123, %124
  %126 = and i32 1015808, %125
  %127 = load ptr, ptr %12, align 8, !tbaa !5
  %128 = load i32, ptr %11, align 4, !tbaa !9
  %129 = zext i32 %128 to i64
  %130 = getelementptr inbounds i32, ptr %127, i64 %129
  %131 = load i32, ptr %130, align 4, !tbaa !9
  %132 = or i32 %131, %126
  store i32 %132, ptr %130, align 4, !tbaa !9
  %133 = load i32, ptr %10, align 4, !tbaa !9
  %134 = load i32, ptr getelementptr inbounds ([32 x i32], ptr @db_bpos, i64 0, i64 10), align 8, !tbaa !9
  %135 = shl i32 %133, %134
  %136 = and i32 -1048576, %135
  %137 = load ptr, ptr %12, align 8, !tbaa !5
  %138 = load i32, ptr %11, align 4, !tbaa !9
  %139 = zext i32 %138 to i64
  %140 = getelementptr inbounds i32, ptr %137, i64 %139
  %141 = load i32, ptr %140, align 4, !tbaa !9
  %142 = or i32 %141, %136
  store i32 %142, ptr %140, align 4, !tbaa !9
  %143 = load ptr, ptr %6, align 8, !tbaa !5
  %144 = getelementptr inbounds %struct.libxsmm_generated_code, ptr %143, i32 0, i32 2
  %145 = load i32, ptr %144, align 4, !tbaa !14
  %146 = add i32 %145, 4
  store i32 %146, ptr %144, align 4, !tbaa !14
  store i32 0, ptr %13, align 4
  br label %147

147:                                              ; preds = %107, %105
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #4
  %148 = load i32, ptr %13, align 4
  switch i32 %148, label %162 [
    i32 0, label %149
    i32 1, label %161
  ]

149:                                              ; preds = %147
  br label %161

150:                                              ; preds = %77
  %151 = load ptr, ptr @stderr, align 8, !tbaa !5
  %152 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %151, ptr noundef @.str.41) #4
  %153 = load ptr, ptr %6, align 8, !tbaa !5
  %154 = load i32, ptr @libxsmm_ninit, align 4, !tbaa !9
  %155 = icmp ult i32 1, %154
  br i1 %155, label %156, label %158

156:                                              ; preds = %150
  %157 = load i32, ptr @libxsmm_verbosity, align 4, !tbaa !9
  br label %159

158:                                              ; preds = %150
  br label %159

159:                                              ; preds = %158, %156
  %160 = phi i32 [ %157, %156 ], [ 1, %158 ]
  call void @libxsmm_handle_error(ptr noundef %153, i32 noundef 90000, ptr noundef @__func__.libxsmm_rv64_instruction_alu_compute_imm12, ptr noundef @.str.1, i32 noundef 1052, i32 noundef %160)
  br label %161

161:                                              ; preds = %159, %149, %147, %75, %60, %44, %27
  ret void

162:                                              ; preds = %147
  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.37 = external hidden unnamed_addr constant [97 x i8], align 1
@__func__.libxsmm_rv64_instruction_alu_compute_imm12 = external hidden unnamed_addr constant [43 x i8], align 1
@.str.38 = external hidden unnamed_addr constant [59 x i8], align 1
@.str.39 = external hidden unnamed_addr constant [67 x i8], align 1
@.str.40 = external hidden unnamed_addr constant [79 x i8], align 1
@.str.41 = external hidden unnamed_addr constant [90 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_imm12(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.37) #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_imm12, ptr noundef nonnull @.str.1, i32 noundef 984, i32 noundef %15) #4
  br label %84

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.38) #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_compute_imm12, ptr noundef nonnull @.str.1, i32 noundef 990, i32 noundef %24) #4
  br label %84

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.39, 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_compute_imm12, ptr noundef nonnull @.str.1, i32 noundef 996, i32 noundef %33) #4
  br label %84

34:                                               ; preds = %25
  switch i32 %1, label %35 [
    i32 19, label %42
    i32 27, label %42
    i32 28787, label %42
    i32 24691, label %42
    i32 20595, label %42
    i32 24595, label %42
    i32 28691, label %42
    i32 16403, label %42
    i32 20499, label %42
    i32 20507, label %42
    i32 4115, label %42
    i32 4123, label %42
    i32 8211, label %42
    i32 12307, label %42
    i32 1073762323, label %42
    i32 1073762331, label %42
  ]

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

42:                                               ; preds = %34, %34, %34, %34, %34, %34, %34, %34, %34, %34, %34, %34, %34, %34, %34, %34
  %43 = getelementptr inbounds i8, ptr %0, i64 16
  %44 = load i32, ptr %43, align 8, !tbaa !13
  %45 = icmp ugt i32 %44, 1
  br i1 %45, label %46, label %77

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

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

58:                                               ; preds = %46
  %59 = load ptr, ptr %0, align 8, !tbaa !16
  %60 = lshr i32 %48, 2
  %61 = zext nneg i32 %60 to i64
  %62 = getelementptr inbounds i32, ptr %59, i64 %61
  %63 = load i32, ptr getelementptr inbounds (i8, ptr @db_bpos, i64 92), align 4, !tbaa !12
  %64 = shl i32 %3, %63
  %65 = and i32 %64, 3968
  %66 = load i32, ptr getelementptr inbounds (i8, ptr @db_bpos, i64 44), align 4, !tbaa !12
  %67 = shl i32 %2, %66
  %68 = and i32 %67, 1015808
  %69 = or disjoint i32 %65, %68
  %70 = load i32, ptr getelementptr inbounds (i8, ptr @db_bpos, i64 40), align 8, !tbaa !12
  %71 = shl i32 %4, %70
  %72 = and i32 %71, -1048576
  %73 = or disjoint i32 %69, %72
  %74 = or i32 %73, %1
  store i32 %74, ptr %62, align 4, !tbaa !12
  %75 = load i32, ptr %47, align 4, !tbaa !14
  %76 = add i32 %75, 4
  store i32 %76, ptr %47, align 4, !tbaa !14
  br label %84

77:                                               ; preds = %42
  %78 = load ptr, ptr @stderr, align 8, !tbaa !11
  %79 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %78, ptr noundef nonnull @.str.41) #3
  %80 = load i32, ptr @libxsmm_ninit, align 4, !tbaa !12
  %81 = icmp ugt i32 %80, 1
  %82 = load i32, ptr @libxsmm_verbosity, align 4
  %83 = select i1 %81, i32 %82, i32 1
  tail call void @libxsmm_handle_error(ptr noundef nonnull %0, i32 noundef 90000, ptr noundef nonnull @__func__.libxsmm_rv64_instruction_alu_compute_imm12, ptr noundef nonnull @.str.1, i32 noundef 1052, i32 noundef %83) #4
  br label %84

84:                                               ; preds = %53, %58, %77, %35, %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