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

; 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_meqn_elem = type { ptr, ptr, ptr, ptr, i32, %union.libxsmm_meqn_info, i32, i32, %struct.libxsmm_meqn_tmp_info, i32, i32, i32, %union.libxsmm_meqn_fusion_info }
%union.libxsmm_meqn_info = type { %struct.libxsmm_meqn_arg }
%struct.libxsmm_meqn_arg = type { i32, i32, i32, i32, i32, i32, i32, %struct.libxsmm_matrix_arg_attributes }
%struct.libxsmm_matrix_arg_attributes = type { i32, i32, i32, i32 }
%struct.libxsmm_meqn_tmp_info = type { i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32 }
%union.libxsmm_meqn_fusion_info = type { %struct.libxsmm_meqn_xgemm_fusion_info }
%struct.libxsmm_meqn_xgemm_fusion_info = type { i32, i32, i32, i32, i32 }
%struct.libxsmm_meqn_unary_op = type { i32, i32, i32, i32 }
%struct.libxsmm_meqn_binary_op = type { i32, i32, i32, i32, i32, i32 }
%struct.libxsmm_meqn_ternary_op = type { i32, i32, i32, i32, i32, i32 }

@.str = external hidden unnamed_addr constant [2 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [45 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [40 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [43 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [41 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.26 = external hidden unnamed_addr constant [43 x i8], align 1
@.str.27 = external hidden unnamed_addr constant [52 x i8], align 1

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

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

declare i32 @printf(ptr noundef, ...) #1

; Function Attrs: nounwind uwtable
define dso_local void @libxsmm_meqn_trv_print(ptr noundef %0, i32 noundef %1) #2 {
  %3 = alloca ptr, align 8
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  store ptr %0, ptr %3, align 8, !tbaa !5
  store i32 %1, ptr %4, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #3
  store i32 4, ptr %6, align 4, !tbaa !9
  store i32 0, ptr %5, align 4, !tbaa !9
  br label %7

7:                                                ; preds = %30, %2
  %8 = load i32, ptr %5, align 4, !tbaa !9
  %9 = load i32, ptr %4, align 4, !tbaa !9
  %10 = icmp slt i32 %8, %9
  br i1 %10, label %11, label %33

11:                                               ; preds = %7
  %12 = load i32, ptr %5, align 4, !tbaa !9
  %13 = load i32, ptr %4, align 4, !tbaa !9
  %14 = load i32, ptr %6, align 4, !tbaa !9
  %15 = sub nsw i32 %13, %14
  %16 = icmp slt i32 %12, %15
  br i1 %16, label %17, label %19

17:                                               ; preds = %11
  %18 = call i32 (ptr, ...) @printf(ptr noundef @.str)
  br label %29

19:                                               ; preds = %11
  %20 = load i32, ptr %5, align 4, !tbaa !9
  %21 = load i32, ptr %6, align 4, !tbaa !9
  %22 = srem i32 %20, %21
  %23 = icmp eq i32 %22, 0
  br i1 %23, label %24, label %26

24:                                               ; preds = %19
  %25 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
  br label %28

26:                                               ; preds = %19
  %27 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
  br label %28

28:                                               ; preds = %26, %24
  br label %29

29:                                               ; preds = %28, %17
  br label %30

30:                                               ; preds = %29
  %31 = load i32, ptr %5, align 4, !tbaa !9
  %32 = add nsw i32 %31, 1
  store i32 %32, ptr %5, align 4, !tbaa !9
  br label %7, !llvm.loop !11

33:                                               ; preds = %7
  %34 = load ptr, ptr %3, align 8, !tbaa !5
  %35 = getelementptr inbounds %struct.libxsmm_meqn_elem, ptr %34, i32 0, i32 4
  %36 = load i32, ptr %35, align 8, !tbaa !13
  %37 = icmp eq i32 %36, 8
  br i1 %37, label %38, label %73

38:                                               ; preds = %33
  %39 = load ptr, ptr %3, align 8, !tbaa !5
  %40 = getelementptr inbounds %struct.libxsmm_meqn_elem, ptr %39, i32 0, i32 0
  %41 = load ptr, ptr %40, align 8, !tbaa !13
  %42 = icmp eq ptr %41, null
  br i1 %42, label %43, label %70

43:                                               ; preds = %38
  %44 = load ptr, ptr %3, align 8, !tbaa !5
  %45 = getelementptr inbounds %struct.libxsmm_meqn_elem, ptr %44, i32 0, i32 1
  %46 = load ptr, ptr %45, align 8, !tbaa !13
  %47 = icmp eq ptr %46, null
  br i1 %47, label %48, label %70

48:                                               ; preds = %43
  %49 = load ptr, ptr %3, align 8, !tbaa !5
  %50 = getelementptr inbounds %struct.libxsmm_meqn_elem, ptr %49, i32 0, i32 5
  %51 = getelementptr inbounds %struct.libxsmm_meqn_arg, ptr %50, i32 0, i32 0
  %52 = load i32, ptr %51, align 4, !tbaa !13
  %53 = load ptr, ptr %3, align 8, !tbaa !5
  %54 = getelementptr inbounds %struct.libxsmm_meqn_elem, ptr %53, i32 0, i32 5
  %55 = getelementptr inbounds %struct.libxsmm_meqn_arg, ptr %54, i32 0, i32 1
  %56 = load i32, ptr %55, align 4, !tbaa !13
  %57 = load ptr, ptr %3, align 8, !tbaa !5
  %58 = getelementptr inbounds %struct.libxsmm_meqn_elem, ptr %57, i32 0, i32 5
  %59 = getelementptr inbounds %struct.libxsmm_meqn_arg, ptr %58, i32 0, i32 2
  %60 = load i32, ptr %59, align 4, !tbaa !13
  %61 = load ptr, ptr %3, align 8, !tbaa !5
  %62 = getelementptr inbounds %struct.libxsmm_meqn_elem, ptr %61, i32 0, i32 5
  %63 = getelementptr inbounds %struct.libxsmm_meqn_arg, ptr %62, i32 0, i32 3
  %64 = load i32, ptr %63, align 4, !tbaa !13
  %65 = load ptr, ptr %3, align 8, !tbaa !5
  %66 = getelementptr inbounds %struct.libxsmm_meqn_elem, ptr %65, i32 0, i32 5
  %67 = getelementptr inbounds %struct.libxsmm_meqn_arg, ptr %66, i32 0, i32 4
  %68 = load i32, ptr %67, align 4, !tbaa !13
  %69 = call i32 (ptr, ...) @printf(ptr noundef @.str.23, i32 noundef %52, i32 noundef %56, i32 noundef %60, i32 noundef %64, i32 noundef %68)
  br label %72

70:                                               ; preds = %43, %38
  %71 = call i32 (ptr, ...) @printf(ptr noundef @.str.7)
  br label %72

72:                                               ; preds = %70, %48
  br label %224

73:                                               ; preds = %33
  %74 = load ptr, ptr %3, align 8, !tbaa !5
  %75 = getelementptr inbounds %struct.libxsmm_meqn_elem, ptr %74, i32 0, i32 4
  %76 = load i32, ptr %75, align 8, !tbaa !13
  %77 = icmp eq i32 %76, 1
  br i1 %77, label %78, label %115

78:                                               ; preds = %73
  %79 = load ptr, ptr %3, align 8, !tbaa !5
  %80 = getelementptr inbounds %struct.libxsmm_meqn_elem, ptr %79, i32 0, i32 0
  %81 = load ptr, ptr %80, align 8, !tbaa !13
  %82 = icmp ne ptr %81, null
  br i1 %82, label %83, label %106

83:                                               ; preds = %78
  %84 = load ptr, ptr %3, align 8, !tbaa !5
  %85 = getelementptr inbounds %struct.libxsmm_meqn_elem, ptr %84, i32 0, i32 5
  %86 = getelementptr inbounds %struct.libxsmm_meqn_unary_op, ptr %85, i32 0, i32 0
  %87 = load i32, ptr %86, align 4, !tbaa !13
  %88 = load ptr, ptr %3, align 8, !tbaa !5
  %89 = getelementptr inbounds %struct.libxsmm_meqn_elem, ptr %88, i32 0, i32 5
  %90 = getelementptr inbounds %struct.libxsmm_meqn_unary_op, ptr %89, i32 0, i32 1
  %91 = load i32, ptr %90, align 4, !tbaa !13
  %92 = load ptr, ptr %3, align 8, !tbaa !5
  %93 = getelementptr inbounds %struct.libxsmm_meqn_elem, ptr %92, i32 0, i32 7
  %94 = load i32, ptr %93, align 4, !tbaa !13
  %95 = load ptr, ptr %3, align 8, !tbaa !5
  %96 = getelementptr inbounds %struct.libxsmm_meqn_elem, ptr %95, i32 0, i32 8
  %97 = getelementptr inbounds %struct.libxsmm_meqn_tmp_info, ptr %96, i32 0, i32 0
  %98 = load i32, ptr %97, align 8, !tbaa !13
  %99 = call i32 (ptr, ...) @printf(ptr noundef @.str.24, i32 noundef %87, i32 noundef %91, i32 noundef %94, i32 noundef %98)
  %100 = load ptr, ptr %3, align 8, !tbaa !5
  %101 = getelementptr inbounds %struct.libxsmm_meqn_elem, ptr %100, i32 0, i32 0
  %102 = load ptr, ptr %101, align 8, !tbaa !13
  %103 = load i32, ptr %4, align 4, !tbaa !9
  %104 = load i32, ptr %6, align 4, !tbaa !9
  %105 = add nsw i32 %103, %104
  call void @libxsmm_meqn_trv_print(ptr noundef %102, i32 noundef %105)
  br label %114

106:                                              ; preds = %78
  %107 = load ptr, ptr %3, align 8, !tbaa !5
  %108 = getelementptr inbounds %struct.libxsmm_meqn_elem, ptr %107, i32 0, i32 1
  %109 = load ptr, ptr %108, align 8, !tbaa !13
  %110 = icmp ne ptr %109, null
  br i1 %110, label %111, label %113

111:                                              ; preds = %106
  %112 = call i32 (ptr, ...) @printf(ptr noundef @.str.9)
  br label %113

113:                                              ; preds = %111, %106
  br label %114

114:                                              ; preds = %113, %83
  br label %223

115:                                              ; preds = %73
  %116 = load ptr, ptr %3, align 8, !tbaa !5
  %117 = getelementptr inbounds %struct.libxsmm_meqn_elem, ptr %116, i32 0, i32 4
  %118 = load i32, ptr %117, align 8, !tbaa !13
  %119 = icmp eq i32 %118, 2
  br i1 %119, label %120, label %162

120:                                              ; preds = %115
  %121 = load ptr, ptr %3, align 8, !tbaa !5
  %122 = getelementptr inbounds %struct.libxsmm_meqn_elem, ptr %121, i32 0, i32 0
  %123 = load ptr, ptr %122, align 8, !tbaa !13
  %124 = icmp ne ptr %123, null
  br i1 %124, label %125, label %159

125:                                              ; preds = %120
  %126 = load ptr, ptr %3, align 8, !tbaa !5
  %127 = getelementptr inbounds %struct.libxsmm_meqn_elem, ptr %126, i32 0, i32 1
  %128 = load ptr, ptr %127, align 8, !tbaa !13
  %129 = icmp ne ptr %128, null
  br i1 %129, label %130, label %159

130:                                              ; preds = %125
  %131 = load ptr, ptr %3, align 8, !tbaa !5
  %132 = getelementptr inbounds %struct.libxsmm_meqn_elem, ptr %131, i32 0, i32 5
  %133 = getelementptr inbounds %struct.libxsmm_meqn_binary_op, ptr %132, i32 0, i32 0
  %134 = load i32, ptr %133, align 4, !tbaa !13
  %135 = load ptr, ptr %3, align 8, !tbaa !5
  %136 = getelementptr inbounds %struct.libxsmm_meqn_elem, ptr %135, i32 0, i32 5
  %137 = getelementptr inbounds %struct.libxsmm_meqn_binary_op, ptr %136, i32 0, i32 1
  %138 = load i32, ptr %137, align 4, !tbaa !13
  %139 = load ptr, ptr %3, align 8, !tbaa !5
  %140 = getelementptr inbounds %struct.libxsmm_meqn_elem, ptr %139, i32 0, i32 7
  %141 = load i32, ptr %140, align 4, !tbaa !13
  %142 = load ptr, ptr %3, align 8, !tbaa !5
  %143 = getelementptr inbounds %struct.libxsmm_meqn_elem, ptr %142, i32 0, i32 8
  %144 = getelementptr inbounds %struct.libxsmm_meqn_tmp_info, ptr %143, i32 0, i32 0
  %145 = load i32, ptr %144, align 8, !tbaa !13
  %146 = call i32 (ptr, ...) @printf(ptr noundef @.str.25, i32 noundef %134, i32 noundef %138, i32 noundef %141, i32 noundef %145)
  %147 = load ptr, ptr %3, align 8, !tbaa !5
  %148 = getelementptr inbounds %struct.libxsmm_meqn_elem, ptr %147, i32 0, i32 0
  %149 = load ptr, ptr %148, align 8, !tbaa !13
  %150 = load i32, ptr %4, align 4, !tbaa !9
  %151 = load i32, ptr %6, align 4, !tbaa !9
  %152 = add nsw i32 %150, %151
  call void @libxsmm_meqn_trv_print(ptr noundef %149, i32 noundef %152)
  %153 = load ptr, ptr %3, align 8, !tbaa !5
  %154 = getelementptr inbounds %struct.libxsmm_meqn_elem, ptr %153, i32 0, i32 1
  %155 = load ptr, ptr %154, align 8, !tbaa !13
  %156 = load i32, ptr %4, align 4, !tbaa !9
  %157 = load i32, ptr %6, align 4, !tbaa !9
  %158 = add nsw i32 %156, %157
  call void @libxsmm_meqn_trv_print(ptr noundef %155, i32 noundef %158)
  br label %161

159:                                              ; preds = %125, %120
  %160 = call i32 (ptr, ...) @printf(ptr noundef @.str.11)
  br label %161

161:                                              ; preds = %159, %130
  br label %222

162:                                              ; preds = %115
  %163 = load ptr, ptr %3, align 8, !tbaa !5
  %164 = getelementptr inbounds %struct.libxsmm_meqn_elem, ptr %163, i32 0, i32 4
  %165 = load i32, ptr %164, align 8, !tbaa !13
  %166 = icmp eq i32 %165, 4
  br i1 %166, label %167, label %220

167:                                              ; preds = %162
  %168 = load ptr, ptr %3, align 8, !tbaa !5
  %169 = getelementptr inbounds %struct.libxsmm_meqn_elem, ptr %168, i32 0, i32 0
  %170 = load ptr, ptr %169, align 8, !tbaa !13
  %171 = icmp ne ptr %170, null
  br i1 %171, label %172, label %217

172:                                              ; preds = %167
  %173 = load ptr, ptr %3, align 8, !tbaa !5
  %174 = getelementptr inbounds %struct.libxsmm_meqn_elem, ptr %173, i32 0, i32 1
  %175 = load ptr, ptr %174, align 8, !tbaa !13
  %176 = icmp ne ptr %175, null
  br i1 %176, label %177, label %217

177:                                              ; preds = %172
  %178 = load ptr, ptr %3, align 8, !tbaa !5
  %179 = getelementptr inbounds %struct.libxsmm_meqn_elem, ptr %178, i32 0, i32 2
  %180 = load ptr, ptr %179, align 8, !tbaa !13
  %181 = icmp ne ptr %180, null
  br i1 %181, label %182, label %217

182:                                              ; preds = %177
  %183 = load ptr, ptr %3, align 8, !tbaa !5
  %184 = getelementptr inbounds %struct.libxsmm_meqn_elem, ptr %183, i32 0, i32 5
  %185 = getelementptr inbounds %struct.libxsmm_meqn_ternary_op, ptr %184, i32 0, i32 0
  %186 = load i32, ptr %185, align 4, !tbaa !13
  %187 = load ptr, ptr %3, align 8, !tbaa !5
  %188 = getelementptr inbounds %struct.libxsmm_meqn_elem, ptr %187, i32 0, i32 5
  %189 = getelementptr inbounds %struct.libxsmm_meqn_ternary_op, ptr %188, i32 0, i32 1
  %190 = load i32, ptr %189, align 4, !tbaa !13
  %191 = load ptr, ptr %3, align 8, !tbaa !5
  %192 = getelementptr inbounds %struct.libxsmm_meqn_elem, ptr %191, i32 0, i32 7
  %193 = load i32, ptr %192, align 4, !tbaa !13
  %194 = load ptr, ptr %3, align 8, !tbaa !5
  %195 = getelementptr inbounds %struct.libxsmm_meqn_elem, ptr %194, i32 0, i32 8
  %196 = getelementptr inbounds %struct.libxsmm_meqn_tmp_info, ptr %195, i32 0, i32 0
  %197 = load i32, ptr %196, align 8, !tbaa !13
  %198 = call i32 (ptr, ...) @printf(ptr noundef @.str.26, i32 noundef %186, i32 noundef %190, i32 noundef %193, i32 noundef %197)
  %199 = load ptr, ptr %3, align 8, !tbaa !5
  %200 = getelementptr inbounds %struct.libxsmm_meqn_elem, ptr %199, i32 0, i32 0
  %201 = load ptr, ptr %200, align 8, !tbaa !13
  %202 = load i32, ptr %4, align 4, !tbaa !9
  %203 = load i32, ptr %6, align 4, !tbaa !9
  %204 = add nsw i32 %202, %203
  call void @libxsmm_meqn_trv_print(ptr noundef %201, i32 noundef %204)
  %205 = load ptr, ptr %3, align 8, !tbaa !5
  %206 = getelementptr inbounds %struct.libxsmm_meqn_elem, ptr %205, i32 0, i32 1
  %207 = load ptr, ptr %206, align 8, !tbaa !13
  %208 = load i32, ptr %4, align 4, !tbaa !9
  %209 = load i32, ptr %6, align 4, !tbaa !9
  %210 = add nsw i32 %208, %209
  call void @libxsmm_meqn_trv_print(ptr noundef %207, i32 noundef %210)
  %211 = load ptr, ptr %3, align 8, !tbaa !5
  %212 = getelementptr inbounds %struct.libxsmm_meqn_elem, ptr %211, i32 0, i32 2
  %213 = load ptr, ptr %212, align 8, !tbaa !13
  %214 = load i32, ptr %4, align 4, !tbaa !9
  %215 = load i32, ptr %6, align 4, !tbaa !9
  %216 = add nsw i32 %214, %215
  call void @libxsmm_meqn_trv_print(ptr noundef %213, i32 noundef %216)
  br label %219

217:                                              ; preds = %177, %172, %167
  %218 = call i32 (ptr, ...) @printf(ptr noundef @.str.27)
  br label %219

219:                                              ; preds = %217, %182
  br label %221

220:                                              ; preds = %162
  br label %221

221:                                              ; preds = %220, %219
  br label %222

222:                                              ; preds = %221, %161
  br label %223

223:                                              ; preds = %222, %114
  br label %224

224:                                              ; preds = %223, %72
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #3
  ret void
}

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { 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 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = !{!7, !7, i64 0}


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

@.str = external hidden unnamed_addr constant [2 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [45 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [40 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [43 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [41 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.26 = external hidden unnamed_addr constant [43 x i8], align 1
@.str.27 = external hidden unnamed_addr constant [52 x i8], align 1

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

; Function Attrs: nofree nounwind uwtable
define dso_local void @libxsmm_meqn_trv_print(ptr nocapture noundef readonly %0, i32 noundef %1) local_unnamed_addr #1 {
  br label %tailrecurse

tailrecurse:                                      ; preds = %tailrecurse.backedge, %2
  %.tr = phi ptr [ %0, %2 ], [ %.tr.be, %tailrecurse.backedge ]
  %.tr63 = phi i32 [ %1, %2 ], [ %.tr63.be, %tailrecurse.backedge ]
  %3 = icmp sgt i32 %.tr63, 0
  br i1 %3, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %tailrecurse
  %4 = add nsw i32 %.tr63, -4
  br label %5

5:                                                ; preds = %.lr.ph, %5
  %.068 = phi i32 [ 0, %.lr.ph ], [ %10, %5 ]
  %6 = icmp slt i32 %.068, %4
  %7 = and i32 %.068, 3
  %8 = icmp eq i32 %7, 0
  %.str.1..str.2 = select i1 %8, ptr @.str.1, ptr @.str.2
  %.str.sink = select i1 %6, ptr @.str, ptr %.str.1..str.2
  %9 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) %.str.sink)
  %10 = add nuw nsw i32 %.068, 1
  %exitcond.not = icmp eq i32 %10, %.tr63
  br i1 %exitcond.not, label %._crit_edge, label %5, !llvm.loop !5

._crit_edge:                                      ; preds = %5, %tailrecurse
  %11 = getelementptr inbounds i8, ptr %.tr, i64 32
  %12 = load i32, ptr %11, align 8, !tbaa !7
  switch i32 %12, label %.loopexit [
    i32 8, label %13
    i32 1, label %34
    i32 2, label %52
    i32 4, label %71
  ]

13:                                               ; preds = %._crit_edge
  %14 = load ptr, ptr %.tr, align 8, !tbaa !7
  %15 = icmp eq ptr %14, null
  br i1 %15, label %16, label %32

16:                                               ; preds = %13
  %17 = getelementptr inbounds i8, ptr %.tr, i64 8
  %18 = load ptr, ptr %17, align 8, !tbaa !7
  %19 = icmp eq ptr %18, null
  br i1 %19, label %20, label %32

20:                                               ; preds = %16
  %21 = getelementptr inbounds i8, ptr %.tr, i64 36
  %22 = load i32, ptr %21, align 4, !tbaa !7
  %23 = getelementptr inbounds i8, ptr %.tr, i64 40
  %24 = load i32, ptr %23, align 4, !tbaa !7
  %25 = getelementptr inbounds i8, ptr %.tr, i64 44
  %26 = load i32, ptr %25, align 4, !tbaa !7
  %27 = getelementptr inbounds i8, ptr %.tr, i64 48
  %28 = load i32, ptr %27, align 4, !tbaa !7
  %29 = getelementptr inbounds i8, ptr %.tr, i64 52
  %30 = load i32, ptr %29, align 4, !tbaa !7
  %31 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.23, i32 noundef %22, i32 noundef %24, i32 noundef %26, i32 noundef %28, i32 noundef %30)
  br label %.loopexit

32:                                               ; preds = %16, %13
  %33 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.7)
  br label %.loopexit

34:                                               ; preds = %._crit_edge
  %35 = load ptr, ptr %.tr, align 8, !tbaa !7
  %.not61 = icmp eq ptr %35, null
  br i1 %.not61, label %47, label %36

36:                                               ; preds = %34
  %37 = getelementptr inbounds i8, ptr %.tr, i64 36
  %38 = load i32, ptr %37, align 4, !tbaa !7
  %39 = getelementptr inbounds i8, ptr %.tr, i64 40
  %40 = load i32, ptr %39, align 4, !tbaa !7
  %41 = getelementptr inbounds i8, ptr %.tr, i64 84
  %42 = load i32, ptr %41, align 4, !tbaa !7
  %43 = getelementptr inbounds i8, ptr %.tr, i64 88
  %44 = load i32, ptr %43, align 8, !tbaa !7
  %45 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.24, i32 noundef %38, i32 noundef %40, i32 noundef %42, i32 noundef %44)
  %46 = add nsw i32 %.tr63, 4
  br label %tailrecurse.backedge

tailrecurse.backedge:                             ; preds = %36, %57, %79
  %.tr.be.in = phi ptr [ %.tr, %36 ], [ %55, %57 ], [ %77, %79 ]
  %.tr63.be = phi i32 [ %46, %36 ], [ %68, %57 ], [ %90, %79 ]
  %.tr.be = load ptr, ptr %.tr.be.in, align 8, !tbaa !7
  br label %tailrecurse

47:                                               ; preds = %34
  %48 = getelementptr inbounds i8, ptr %.tr, i64 8
  %49 = load ptr, ptr %48, align 8, !tbaa !7
  %.not62 = icmp eq ptr %49, null
  br i1 %.not62, label %.loopexit, label %50

50:                                               ; preds = %47
  %51 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.9)
  br label %.loopexit

52:                                               ; preds = %._crit_edge
  %53 = load ptr, ptr %.tr, align 8, !tbaa !7
  %.not59 = icmp eq ptr %53, null
  br i1 %.not59, label %69, label %54

54:                                               ; preds = %52
  %55 = getelementptr inbounds i8, ptr %.tr, i64 8
  %56 = load ptr, ptr %55, align 8, !tbaa !7
  %.not60 = icmp eq ptr %56, null
  br i1 %.not60, label %69, label %57

57:                                               ; preds = %54
  %58 = getelementptr inbounds i8, ptr %.tr, i64 36
  %59 = load i32, ptr %58, align 4, !tbaa !7
  %60 = getelementptr inbounds i8, ptr %.tr, i64 40
  %61 = load i32, ptr %60, align 4, !tbaa !7
  %62 = getelementptr inbounds i8, ptr %.tr, i64 84
  %63 = load i32, ptr %62, align 4, !tbaa !7
  %64 = getelementptr inbounds i8, ptr %.tr, i64 88
  %65 = load i32, ptr %64, align 8, !tbaa !7
  %66 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.25, i32 noundef %59, i32 noundef %61, i32 noundef %63, i32 noundef %65)
  %67 = load ptr, ptr %.tr, align 8, !tbaa !7
  %68 = add nsw i32 %.tr63, 4
  tail call void @libxsmm_meqn_trv_print(ptr noundef %67, i32 noundef %68)
  br label %tailrecurse.backedge

69:                                               ; preds = %54, %52
  %70 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.11)
  br label %.loopexit

71:                                               ; preds = %._crit_edge
  %72 = load ptr, ptr %.tr, align 8, !tbaa !7
  %.not = icmp eq ptr %72, null
  br i1 %.not, label %92, label %73

73:                                               ; preds = %71
  %74 = getelementptr inbounds i8, ptr %.tr, i64 8
  %75 = load ptr, ptr %74, align 8, !tbaa !7
  %.not57 = icmp eq ptr %75, null
  br i1 %.not57, label %92, label %76

76:                                               ; preds = %73
  %77 = getelementptr inbounds i8, ptr %.tr, i64 16
  %78 = load ptr, ptr %77, align 8, !tbaa !7
  %.not58 = icmp eq ptr %78, null
  br i1 %.not58, label %92, label %79

79:                                               ; preds = %76
  %80 = getelementptr inbounds i8, ptr %.tr, i64 36
  %81 = load i32, ptr %80, align 4, !tbaa !7
  %82 = getelementptr inbounds i8, ptr %.tr, i64 40
  %83 = load i32, ptr %82, align 4, !tbaa !7
  %84 = getelementptr inbounds i8, ptr %.tr, i64 84
  %85 = load i32, ptr %84, align 4, !tbaa !7
  %86 = getelementptr inbounds i8, ptr %.tr, i64 88
  %87 = load i32, ptr %86, align 8, !tbaa !7
  %88 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.26, i32 noundef %81, i32 noundef %83, i32 noundef %85, i32 noundef %87)
  %89 = load ptr, ptr %.tr, align 8, !tbaa !7
  %90 = add nsw i32 %.tr63, 4
  tail call void @libxsmm_meqn_trv_print(ptr noundef %89, i32 noundef %90)
  %91 = load ptr, ptr %74, align 8, !tbaa !7
  tail call void @libxsmm_meqn_trv_print(ptr noundef %91, i32 noundef %90)
  br label %tailrecurse.backedge

92:                                               ; preds = %76, %73, %71
  %93 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.27)
  br label %.loopexit

.loopexit:                                        ; preds = %._crit_edge, %47, %50, %92, %69, %20, %32
  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 = { nofree 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" }

!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 = distinct !{!5, !6}
!6 = !{!"llvm.loop.mustprogress"}
!7 = !{!8, !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass