; 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 }
%struct.libxsmm_jump_label_tracker_struct = type { [512 x i32], [512 x %struct.libxsmm_jump_source_struct] }
%struct.libxsmm_jump_source_struct = type { [512 x i32], [512 x 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
@.str.75 = external hidden unnamed_addr constant [98 x i8], align 1
@__func__.libxsmm_rv64_instruction_cond_jump_to_label = external hidden unnamed_addr constant [44 x i8], align 1
@.str.76 = external hidden unnamed_addr constant [64 x i8], align 1
@.str.77 = external hidden unnamed_addr constant [85 x i8], align 1
@.str.78 = external hidden unnamed_addr constant [78 x i8], align 1
@.str.79 = external hidden unnamed_addr constant [91 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
declare dso_local void @libxsmm_rv64_instruction_cond_jump(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) #3

; Function Attrs: nounwind uwtable
define dso_local void @libxsmm_rv64_instruction_cond_jump_to_label(ptr noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %4, ptr noundef %5) #3 {
  %7 = alloca ptr, align 8
  %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
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  store ptr %0, ptr %7, align 8, !tbaa !5
  store i32 %1, ptr %8, align 4, !tbaa !9
  store i32 %2, ptr %9, align 4, !tbaa !9
  store i32 %3, ptr %10, align 4, !tbaa !9
  store i32 %4, ptr %11, align 4, !tbaa !9
  store ptr %5, ptr %12, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #4
  %18 = load ptr, ptr %7, align 8, !tbaa !5
  %19 = getelementptr inbounds %struct.libxsmm_generated_code, ptr %18, i32 0, i32 6
  %20 = load i32, ptr %19, align 4, !tbaa !11
  %21 = icmp ult i32 %20, 3001
  br i1 %21, label %22, label %33

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

28:                                               ; preds = %22
  %29 = load i32, ptr @libxsmm_verbosity, align 4, !tbaa !9
  br label %31

30:                                               ; preds = %22
  br label %31

31:                                               ; preds = %30, %28
  %32 = phi i32 [ %29, %28 ], [ 1, %30 ]
  call void @libxsmm_handle_error(ptr noundef %25, i32 noundef 90000, ptr noundef @__func__.libxsmm_rv64_instruction_cond_jump_to_label, ptr noundef @.str.1, i32 noundef 1619, i32 noundef %32)
  store i32 1, ptr %14, align 4
  br label %216

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

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

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

45:                                               ; preds = %39
  %46 = load i32, ptr @libxsmm_verbosity, align 4, !tbaa !9
  br label %48

47:                                               ; preds = %39
  br label %48

48:                                               ; preds = %47, %45
  %49 = phi i32 [ %46, %45 ], [ 1, %47 ]
  call void @libxsmm_handle_error(ptr noundef %42, i32 noundef 90000, ptr noundef @__func__.libxsmm_rv64_instruction_cond_jump_to_label, ptr noundef @.str.1, i32 noundef 1625, i32 noundef %49)
  store i32 1, ptr %14, align 4
  br label %216

50:                                               ; preds = %36
  %51 = load i32, ptr %11, align 4, !tbaa !9
  %52 = icmp ule i32 512, %51
  br i1 %52, label %53, label %62

53:                                               ; preds = %50
  %54 = load ptr, ptr %7, 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 = %53
  %58 = load i32, ptr @libxsmm_verbosity, align 4, !tbaa !9
  br label %60

59:                                               ; preds = %53
  br label %60

60:                                               ; preds = %59, %57
  %61 = phi i32 [ %58, %57 ], [ 1, %59 ]
  call void @libxsmm_handle_error(ptr noundef %54, i32 noundef 90025, ptr noundef @__func__.libxsmm_rv64_instruction_cond_jump_to_label, ptr noundef @.str.1, i32 noundef 1631, i32 noundef %61)
  store i32 1, ptr %14, align 4
  br label %216

62:                                               ; preds = %50
  %63 = load ptr, ptr %12, align 8, !tbaa !5
  %64 = getelementptr inbounds %struct.libxsmm_jump_label_tracker_struct, ptr %63, i32 0, i32 1
  %65 = load i32, ptr %11, align 4, !tbaa !9
  %66 = zext i32 %65 to i64
  %67 = getelementptr inbounds [512 x %struct.libxsmm_jump_source_struct], ptr %64, i64 0, i64 %66
  %68 = getelementptr inbounds %struct.libxsmm_jump_source_struct, ptr %67, i32 0, i32 2
  %69 = load i32, ptr %68, align 4, !tbaa !13
  %70 = icmp eq i32 %69, 511
  br i1 %70, label %71, label %80

71:                                               ; preds = %62
  %72 = load ptr, ptr %7, align 8, !tbaa !5
  %73 = load i32, ptr @libxsmm_ninit, align 4, !tbaa !9
  %74 = icmp ult i32 1, %73
  br i1 %74, label %75, label %77

75:                                               ; preds = %71
  %76 = load i32, ptr @libxsmm_verbosity, align 4, !tbaa !9
  br label %78

77:                                               ; preds = %71
  br label %78

78:                                               ; preds = %77, %75
  %79 = phi i32 [ %76, %75 ], [ 1, %77 ]
  call void @libxsmm_handle_error(ptr noundef %72, i32 noundef 90025, ptr noundef @__func__.libxsmm_rv64_instruction_cond_jump_to_label, ptr noundef @.str.1, i32 noundef 1637, i32 noundef %79)
  store i32 1, ptr %14, align 4
  br label %216

80:                                               ; preds = %62
  %81 = load i32, ptr %8, align 4, !tbaa !9
  switch i32 %81, label %83 [
    i32 99, label %82
    i32 20579, label %82
    i32 28771, label %82
    i32 16483, label %82
    i32 24675, label %82
    i32 4195, label %82
  ]

82:                                               ; preds = %80, %80, %80, %80, %80, %80
  br label %95

83:                                               ; preds = %80
  %84 = load ptr, ptr @stderr, align 8, !tbaa !5
  %85 = load i32, ptr %8, align 4, !tbaa !9
  %86 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %84, ptr noundef @.str.77, i32 noundef %85) #4
  %87 = load ptr, ptr %7, align 8, !tbaa !5
  %88 = load i32, ptr @libxsmm_ninit, align 4, !tbaa !9
  %89 = icmp ult i32 1, %88
  br i1 %89, label %90, label %92

90:                                               ; preds = %83
  %91 = load i32, ptr @libxsmm_verbosity, align 4, !tbaa !9
  br label %93

92:                                               ; preds = %83
  br label %93

93:                                               ; preds = %92, %90
  %94 = phi i32 [ %91, %90 ], [ 1, %92 ]
  call void @libxsmm_handle_error(ptr noundef %87, i32 noundef 90000, ptr noundef @__func__.libxsmm_rv64_instruction_cond_jump_to_label, ptr noundef @.str.1, i32 noundef 1651, i32 noundef %94)
  store i32 1, ptr %14, align 4
  br label %216

95:                                               ; preds = %82
  %96 = load ptr, ptr %12, align 8, !tbaa !5
  %97 = getelementptr inbounds %struct.libxsmm_jump_label_tracker_struct, ptr %96, i32 0, i32 1
  %98 = load i32, ptr %11, align 4, !tbaa !9
  %99 = zext i32 %98 to i64
  %100 = getelementptr inbounds [512 x %struct.libxsmm_jump_source_struct], ptr %97, i64 0, i64 %99
  %101 = getelementptr inbounds %struct.libxsmm_jump_source_struct, ptr %100, i32 0, i32 2
  %102 = load i32, ptr %101, align 4, !tbaa !13
  store i32 %102, ptr %13, align 4, !tbaa !9
  %103 = load i32, ptr %8, align 4, !tbaa !9
  %104 = load ptr, ptr %12, align 8, !tbaa !5
  %105 = getelementptr inbounds %struct.libxsmm_jump_label_tracker_struct, ptr %104, i32 0, i32 1
  %106 = load i32, ptr %11, align 4, !tbaa !9
  %107 = zext i32 %106 to i64
  %108 = getelementptr inbounds [512 x %struct.libxsmm_jump_source_struct], ptr %105, i64 0, i64 %107
  %109 = getelementptr inbounds %struct.libxsmm_jump_source_struct, ptr %108, i32 0, i32 0
  %110 = load i32, ptr %13, align 4, !tbaa !9
  %111 = zext i32 %110 to i64
  %112 = getelementptr inbounds [512 x i32], ptr %109, i64 0, i64 %111
  store i32 %103, ptr %112, align 4, !tbaa !9
  %113 = load ptr, ptr %7, align 8, !tbaa !5
  %114 = getelementptr inbounds %struct.libxsmm_generated_code, ptr %113, i32 0, i32 2
  %115 = load i32, ptr %114, align 4, !tbaa !15
  %116 = load ptr, ptr %12, align 8, !tbaa !5
  %117 = getelementptr inbounds %struct.libxsmm_jump_label_tracker_struct, ptr %116, i32 0, i32 1
  %118 = load i32, ptr %11, align 4, !tbaa !9
  %119 = zext i32 %118 to i64
  %120 = getelementptr inbounds [512 x %struct.libxsmm_jump_source_struct], ptr %117, i64 0, i64 %119
  %121 = getelementptr inbounds %struct.libxsmm_jump_source_struct, ptr %120, i32 0, i32 1
  %122 = load i32, ptr %13, align 4, !tbaa !9
  %123 = zext i32 %122 to i64
  %124 = getelementptr inbounds [512 x i32], ptr %121, i64 0, i64 %123
  store i32 %115, ptr %124, align 4, !tbaa !9
  %125 = load ptr, ptr %12, align 8, !tbaa !5
  %126 = getelementptr inbounds %struct.libxsmm_jump_label_tracker_struct, ptr %125, i32 0, i32 1
  %127 = load i32, ptr %11, align 4, !tbaa !9
  %128 = zext i32 %127 to i64
  %129 = getelementptr inbounds [512 x %struct.libxsmm_jump_source_struct], ptr %126, i64 0, i64 %128
  %130 = getelementptr inbounds %struct.libxsmm_jump_source_struct, ptr %129, i32 0, i32 2
  %131 = load i32, ptr %130, align 4, !tbaa !13
  %132 = add i32 %131, 1
  store i32 %132, ptr %130, align 4, !tbaa !13
  %133 = load ptr, ptr %7, align 8, !tbaa !5
  %134 = getelementptr inbounds %struct.libxsmm_generated_code, ptr %133, i32 0, i32 3
  %135 = load i32, ptr %134, align 8, !tbaa !16
  %136 = icmp ugt i32 %135, 1
  br i1 %136, label %137, label %204

137:                                              ; preds = %95
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #4
  %138 = load ptr, ptr %12, align 8, !tbaa !5
  %139 = getelementptr inbounds %struct.libxsmm_jump_label_tracker_struct, ptr %138, i32 0, i32 0
  %140 = load i32, ptr %11, align 4, !tbaa !9
  %141 = zext i32 %140 to i64
  %142 = getelementptr inbounds [512 x i32], ptr %139, i64 0, i64 %141
  %143 = load i32, ptr %142, align 4, !tbaa !9
  %144 = udiv i32 %143, 4
  store i32 %144, ptr %15, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #4
  %145 = load ptr, ptr %7, align 8, !tbaa !5
  %146 = getelementptr inbounds %struct.libxsmm_generated_code, ptr %145, i32 0, i32 2
  %147 = load i32, ptr %146, align 4, !tbaa !15
  %148 = udiv i32 %147, 4
  store i32 %148, ptr %16, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #4
  %149 = load i32, ptr %15, align 4, !tbaa !9
  %150 = icmp eq i32 %149, 0
  br i1 %150, label %151, label %152

151:                                              ; preds = %137
  br label %156

152:                                              ; preds = %137
  %153 = load i32, ptr %15, align 4, !tbaa !9
  %154 = load i32, ptr %16, align 4, !tbaa !9
  %155 = sub nsw i32 %153, %154
  br label %156

156:                                              ; preds = %152, %151
  %157 = phi i32 [ 0, %151 ], [ %155, %152 ]
  store i32 %157, ptr %17, align 4, !tbaa !9
  %158 = load ptr, ptr %7, align 8, !tbaa !5
  %159 = getelementptr inbounds %struct.libxsmm_generated_code, ptr %158, i32 0, i32 1
  %160 = load i32, ptr %159, align 8, !tbaa !17
  %161 = load ptr, ptr %7, align 8, !tbaa !5
  %162 = getelementptr inbounds %struct.libxsmm_generated_code, ptr %161, i32 0, i32 2
  %163 = load i32, ptr %162, align 4, !tbaa !15
  %164 = sub i32 %160, %163
  %165 = icmp ult i32 %164, 4
  br i1 %165, label %166, label %175

166:                                              ; preds = %156
  %167 = load ptr, ptr %7, align 8, !tbaa !5
  %168 = load i32, ptr @libxsmm_ninit, align 4, !tbaa !9
  %169 = icmp ult i32 1, %168
  br i1 %169, label %170, label %172

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

172:                                              ; preds = %166
  br label %173

173:                                              ; preds = %172, %170
  %174 = phi i32 [ %171, %170 ], [ 1, %172 ]
  call void @libxsmm_handle_error(ptr noundef %167, i32 noundef 90002, ptr noundef @__func__.libxsmm_rv64_instruction_cond_jump_to_label, ptr noundef @.str.1, i32 noundef 1669, i32 noundef %174)
  store i32 1, ptr %14, align 4
  br label %201

175:                                              ; preds = %156
  %176 = load i32, ptr %17, align 4, !tbaa !9
  %177 = icmp sgt i32 %176, 4095
  br i1 %177, label %178, label %190

178:                                              ; preds = %175
  %179 = load ptr, ptr @stderr, align 8, !tbaa !5
  %180 = load i32, ptr %17, align 4, !tbaa !9
  %181 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %179, ptr noundef @.str.78, i32 noundef %180) #4
  %182 = load ptr, ptr %7, align 8, !tbaa !5
  %183 = load i32, ptr @libxsmm_ninit, align 4, !tbaa !9
  %184 = icmp ult i32 1, %183
  br i1 %184, label %185, label %187

185:                                              ; preds = %178
  %186 = load i32, ptr @libxsmm_verbosity, align 4, !tbaa !9
  br label %188

187:                                              ; preds = %178
  br label %188

188:                                              ; preds = %187, %185
  %189 = phi i32 [ %186, %185 ], [ 1, %187 ]
  call void @libxsmm_handle_error(ptr noundef %182, i32 noundef 90000, ptr noundef @__func__.libxsmm_rv64_instruction_cond_jump_to_label, ptr noundef @.str.1, i32 noundef 1675, i32 noundef %189)
  store i32 1, ptr %14, align 4
  br label %201

190:                                              ; preds = %175
  %191 = load ptr, ptr %7, align 8, !tbaa !5
  %192 = load i32, ptr %8, align 4, !tbaa !9
  %193 = load i32, ptr %9, align 4, !tbaa !9
  %194 = load i32, ptr %10, align 4, !tbaa !9
  %195 = load i32, ptr %17, align 4, !tbaa !9
  %196 = sdiv i32 %195, 2
  call void @libxsmm_rv64_instruction_cond_jump(ptr noundef %191, i32 noundef %192, i32 noundef %193, i32 noundef %194, i32 noundef %196)
  %197 = load ptr, ptr %7, align 8, !tbaa !5
  %198 = getelementptr inbounds %struct.libxsmm_generated_code, ptr %197, i32 0, i32 2
  %199 = load i32, ptr %198, align 4, !tbaa !15
  %200 = add i32 %199, 4
  store i32 %200, ptr %198, align 4, !tbaa !15
  store i32 0, ptr %14, align 4
  br label %201

201:                                              ; preds = %190, %188, %173
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #4
  %202 = load i32, ptr %14, align 4
  switch i32 %202, label %216 [
    i32 0, label %203
  ]

203:                                              ; preds = %201
  br label %215

204:                                              ; preds = %95
  %205 = load ptr, ptr @stderr, align 8, !tbaa !5
  %206 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %205, ptr noundef @.str.79) #4
  %207 = load ptr, ptr %7, align 8, !tbaa !5
  %208 = load i32, ptr @libxsmm_ninit, align 4, !tbaa !9
  %209 = icmp ult i32 1, %208
  br i1 %209, label %210, label %212

210:                                              ; preds = %204
  %211 = load i32, ptr @libxsmm_verbosity, align 4, !tbaa !9
  br label %213

212:                                              ; preds = %204
  br label %213

213:                                              ; preds = %212, %210
  %214 = phi i32 [ %211, %210 ], [ 1, %212 ]
  call void @libxsmm_handle_error(ptr noundef %207, i32 noundef 90000, ptr noundef @__func__.libxsmm_rv64_instruction_cond_jump_to_label, ptr noundef @.str.1, i32 noundef 1688, i32 noundef %214)
  store i32 1, ptr %14, align 4
  br label %216

215:                                              ; preds = %203
  store i32 0, ptr %14, align 4
  br label %216

216:                                              ; preds = %215, %213, %201, %93, %78, %60, %48, %31
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #4
  %217 = load i32, ptr %14, align 4
  switch i32 %217, label %219 [
    i32 0, label %218
    i32 1, label %218
  ]

218:                                              ; preds = %216, %216
  ret void

219:                                              ; preds = %216
  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 = !{!14, !10, i64 4096}
!14 = !{!"libxsmm_jump_source_struct", !7, i64 0, !7, i64 2048, !10, i64 4096}
!15 = !{!12, !10, i64 12}
!16 = !{!12, !10, i64 16}
!17 = !{!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"

%struct.libxsmm_jump_source_struct = type { [512 x i32], [512 x i32], i32 }

@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
@.str.75 = external hidden unnamed_addr constant [98 x i8], align 1
@__func__.libxsmm_rv64_instruction_cond_jump_to_label = external hidden unnamed_addr constant [44 x i8], align 1
@.str.76 = external hidden unnamed_addr constant [64 x i8], align 1
@.str.77 = external hidden unnamed_addr constant [85 x i8], align 1
@.str.78 = external hidden unnamed_addr constant [78 x i8], align 1
@.str.79 = external hidden unnamed_addr constant [91 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
declare dso_local void @libxsmm_rv64_instruction_cond_jump(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #2

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

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

17:                                               ; preds = %6
  %18 = or i32 %3, %2
  %or.cond = icmp ult i32 %18, 32
  br i1 %or.cond, label %26, label %19

19:                                               ; preds = %17
  %20 = load ptr, ptr @stderr, align 8, !tbaa !11
  %21 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %20, ptr noundef nonnull @.str.76) #4
  %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_cond_jump_to_label, ptr noundef nonnull @.str.1, i32 noundef 1625, i32 noundef %25) #5
  br label %104

26:                                               ; preds = %17
  %27 = icmp ugt i32 %4, 511
  br i1 %27, label %28, label %33

28:                                               ; preds = %26
  %29 = load i32, ptr @libxsmm_ninit, align 4, !tbaa !12
  %30 = icmp ugt i32 %29, 1
  %31 = load i32, ptr @libxsmm_verbosity, align 4
  %32 = select i1 %30, i32 %31, i32 1
  tail call void @libxsmm_handle_error(ptr noundef nonnull %0, i32 noundef 90025, ptr noundef nonnull @__func__.libxsmm_rv64_instruction_cond_jump_to_label, ptr noundef nonnull @.str.1, i32 noundef 1631, i32 noundef %32) #5
  br label %104

33:                                               ; preds = %26
  %34 = getelementptr inbounds i8, ptr %5, i64 2048
  %35 = zext nneg i32 %4 to i64
  %36 = getelementptr inbounds [512 x %struct.libxsmm_jump_source_struct], ptr %34, i64 0, i64 %35
  %37 = getelementptr inbounds i8, ptr %36, i64 4096
  %38 = load i32, ptr %37, align 4, !tbaa !13
  %39 = icmp eq i32 %38, 511
  br i1 %39, label %40, label %45

40:                                               ; preds = %33
  %41 = load i32, ptr @libxsmm_ninit, align 4, !tbaa !12
  %42 = icmp ugt i32 %41, 1
  %43 = load i32, ptr @libxsmm_verbosity, align 4
  %44 = select i1 %42, i32 %43, i32 1
  tail call void @libxsmm_handle_error(ptr noundef nonnull %0, i32 noundef 90025, ptr noundef nonnull @__func__.libxsmm_rv64_instruction_cond_jump_to_label, ptr noundef nonnull @.str.1, i32 noundef 1637, i32 noundef %44) #5
  br label %104

45:                                               ; preds = %33
  %46 = add i32 %1, -99
  %47 = tail call i32 @llvm.fshl.i32(i32 %46, i32 %46, i32 20)
  switch i32 %47, label %48 [
    i32 0, label %55
    i32 5, label %55
    i32 7, label %55
    i32 4, label %55
    i32 6, label %55
    i32 1, label %55
  ]

48:                                               ; preds = %45
  %49 = load ptr, ptr @stderr, align 8, !tbaa !11
  %50 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %49, ptr noundef nonnull @.str.77, i32 noundef %1) #4
  %51 = load i32, ptr @libxsmm_ninit, align 4, !tbaa !12
  %52 = icmp ugt i32 %51, 1
  %53 = load i32, ptr @libxsmm_verbosity, align 4
  %54 = select i1 %52, i32 %53, i32 1
  tail call void @libxsmm_handle_error(ptr noundef nonnull %0, i32 noundef 90000, ptr noundef nonnull @__func__.libxsmm_rv64_instruction_cond_jump_to_label, ptr noundef nonnull @.str.1, i32 noundef 1651, i32 noundef %54) #5
  br label %104

55:                                               ; preds = %45, %45, %45, %45, %45, %45
  %56 = zext i32 %38 to i64
  %57 = getelementptr inbounds [512 x i32], ptr %36, i64 0, i64 %56
  store i32 %1, ptr %57, align 4, !tbaa !12
  %58 = getelementptr inbounds i8, ptr %0, i64 12
  %59 = load i32, ptr %58, align 4, !tbaa !15
  %60 = getelementptr inbounds i8, ptr %36, i64 2048
  %61 = getelementptr inbounds [512 x i32], ptr %60, i64 0, i64 %56
  store i32 %59, ptr %61, align 4, !tbaa !12
  %62 = load i32, ptr %37, align 4, !tbaa !13
  %63 = add i32 %62, 1
  store i32 %63, ptr %37, align 4, !tbaa !13
  %64 = getelementptr inbounds i8, ptr %0, i64 16
  %65 = load i32, ptr %64, align 8, !tbaa !16
  %66 = icmp ugt i32 %65, 1
  br i1 %66, label %67, label %97

67:                                               ; preds = %55
  %68 = getelementptr inbounds [512 x i32], ptr %5, i64 0, i64 %35
  %69 = load i32, ptr %68, align 4, !tbaa !12
  %70 = lshr i32 %69, 2
  %71 = lshr i32 %59, 2
  %72 = icmp ult i32 %69, 4
  %73 = sub nsw i32 %70, %71
  %74 = select i1 %72, i32 0, i32 %73
  %75 = getelementptr inbounds i8, ptr %0, i64 8
  %76 = load i32, ptr %75, align 8, !tbaa !17
  %77 = sub i32 %76, %59
  %78 = icmp ult i32 %77, 4
  br i1 %78, label %79, label %84

79:                                               ; preds = %67
  %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 90002, ptr noundef nonnull @__func__.libxsmm_rv64_instruction_cond_jump_to_label, ptr noundef nonnull @.str.1, i32 noundef 1669, i32 noundef %83) #5
  br label %104

84:                                               ; preds = %67
  %85 = icmp sgt i32 %74, 4095
  br i1 %85, label %86, label %93

86:                                               ; preds = %84
  %87 = load ptr, ptr @stderr, align 8, !tbaa !11
  %88 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %87, ptr noundef nonnull @.str.78, i32 noundef %74) #4
  %89 = load i32, ptr @libxsmm_ninit, align 4, !tbaa !12
  %90 = icmp ugt i32 %89, 1
  %91 = load i32, ptr @libxsmm_verbosity, align 4
  %92 = select i1 %90, i32 %91, i32 1
  tail call void @libxsmm_handle_error(ptr noundef nonnull %0, i32 noundef 90000, ptr noundef nonnull @__func__.libxsmm_rv64_instruction_cond_jump_to_label, ptr noundef nonnull @.str.1, i32 noundef 1675, i32 noundef %92) #5
  br label %104

93:                                               ; preds = %84
  %94 = sdiv i32 %74, 2
  tail call void @libxsmm_rv64_instruction_cond_jump(ptr noundef nonnull %0, i32 noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %94)
  %95 = load i32, ptr %58, align 4, !tbaa !15
  %96 = add i32 %95, 4
  store i32 %96, ptr %58, align 4, !tbaa !15
  br label %104

97:                                               ; preds = %55
  %98 = load ptr, ptr @stderr, align 8, !tbaa !11
  %99 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %98, ptr noundef nonnull @.str.79) #4
  %100 = load i32, ptr @libxsmm_ninit, align 4, !tbaa !12
  %101 = icmp ugt i32 %100, 1
  %102 = load i32, ptr @libxsmm_verbosity, align 4
  %103 = select i1 %101, i32 %102, i32 1
  tail call void @libxsmm_handle_error(ptr noundef nonnull %0, i32 noundef 90000, ptr noundef nonnull @__func__.libxsmm_rv64_instruction_cond_jump_to_label, ptr noundef nonnull @.str.1, i32 noundef 1688, i32 noundef %103) #5
  br label %104

104:                                              ; preds = %79, %86, %93, %97, %48, %40, %28, %19, %10
  ret void
}

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.fshl.i32(i32, i32, i32) #3

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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { cold nounwind }
attributes #5 = { 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 = !{!14, !10, i64 4096}
!14 = !{!"libxsmm_jump_source_struct", !8, i64 0, !8, i64 2048, !10, i64 4096}
!15 = !{!6, !10, i64 12}
!16 = !{!6, !10, i64 16}
!17 = !{!6, !10, i64 8}


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