; LLVM IR from huawei-noah/bolt :: inference/engine/src (bolt_c)

; 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.ResultHandleInner = type { i32, ptr, i32 }
%struct.DataDesc = type { i32, i32, i32, [20 x i32], [128 x i8], ptr }

@.str.3 = external hidden unnamed_addr constant [20 x i8], align 1
@stdout = external global ptr, align 8
@.str.5 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [13 x i8], align 1
@__FUNCTION__.GetOutputDataInfoFromResultHandle = external hidden unnamed_addr constant [34 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [66 x i8], align 1

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_Z18assert_not_nullptrPKcS0_PKv(ptr noundef, ptr noundef, ptr noundef) #0

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

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

; Function Attrs: nounwind
declare i64 @syscall(i64 noundef, ...) #2

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

declare i32 @fflush(ptr noundef) #3

; Function Attrs: noreturn nounwind
declare void @exit(i32 noundef) #4

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_Z10UNI_STRCPYPcPKc(ptr noundef, ptr noundef) #0

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef i32 @_Z18DataType2DATA_TYPE8DataType(i32 noundef) #5

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef i32 @_Z22DataFormat2DATA_FORMAT10DataFormat(i32 noundef) #5

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_Z19print_result_handleP17ResultHandleInner(ptr noundef) #0

; Function Attrs: mustprogress uwtable
define dso_local void @GetOutputDataInfoFromResultHandle(ptr noundef %0, i32 noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5, ptr noundef %6, ptr noundef %7, ptr noundef %8) #6 {
  %10 = alloca ptr, align 8
  %11 = alloca i32, align 4
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca ptr, align 8
  %16 = alloca ptr, align 8
  %17 = alloca ptr, align 8
  %18 = alloca ptr, align 8
  %19 = alloca ptr, align 8
  %20 = alloca i32, align 4
  %21 = alloca ptr, align 8
  %22 = alloca i32, align 4
  store ptr %0, ptr %10, align 8, !tbaa !5
  store i32 %1, ptr %11, align 4, !tbaa !9
  store ptr %2, ptr %12, align 8, !tbaa !5
  store ptr %3, ptr %13, align 8, !tbaa !5
  store ptr %4, ptr %14, align 8, !tbaa !5
  store ptr %5, ptr %15, align 8, !tbaa !5
  store ptr %6, ptr %16, align 8, !tbaa !5
  store ptr %7, ptr %17, align 8, !tbaa !5
  store ptr %8, ptr %18, align 8, !tbaa !5
  %23 = load i32, ptr %11, align 4, !tbaa !9
  %24 = icmp sle i32 %23, 0
  br i1 %24, label %25, label %26

25:                                               ; preds = %9
  br label %148

26:                                               ; preds = %9
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #7
  %27 = load ptr, ptr %10, align 8, !tbaa !5
  store ptr %27, ptr %19, align 8, !tbaa !5
  %28 = load ptr, ptr %19, align 8, !tbaa !5
  call void @_Z18assert_not_nullptrPKcS0_PKv(ptr noundef @__FUNCTION__.GetOutputDataInfoFromResultHandle, ptr noundef @.str.22, ptr noundef %28)
  %29 = load ptr, ptr %19, align 8, !tbaa !5
  call void @_Z19print_result_handleP17ResultHandleInner(ptr noundef %29)
  %30 = load i32, ptr %11, align 4, !tbaa !9
  %31 = load ptr, ptr %19, align 8, !tbaa !5
  %32 = getelementptr inbounds %struct.ResultHandleInner, ptr %31, i32 0, i32 0
  %33 = load i32, ptr %32, align 8, !tbaa !11
  %34 = icmp ne i32 %30, %33
  br i1 %34, label %35, label %49

35:                                               ; preds = %26
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #7
  %36 = call i64 (i64, ...) @syscall(i64 noundef 186) #7
  %37 = trunc i64 %36 to i32
  store i32 %37, ptr %20, align 4, !tbaa !9
  %38 = load i32, ptr %20, align 4, !tbaa !9
  %39 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %38)
  %40 = load ptr, ptr @stdout, align 8, !tbaa !5
  %41 = call i32 @fflush(ptr noundef %40)
  %42 = load i32, ptr %11, align 4, !tbaa !9
  %43 = load ptr, ptr %19, align 8, !tbaa !5
  %44 = getelementptr inbounds %struct.ResultHandleInner, ptr %43, i32 0, i32 0
  %45 = load i32, ptr %44, align 8, !tbaa !11
  %46 = call i32 (ptr, ...) @printf(ptr noundef @.str.23, ptr noundef @__FUNCTION__.GetOutputDataInfoFromResultHandle, i32 noundef %42, i32 noundef %45)
  %47 = load ptr, ptr @stdout, align 8, !tbaa !5
  %48 = call i32 @fflush(ptr noundef %47)
  call void @exit(i32 noundef 1) #8
  unreachable

49:                                               ; preds = %26
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #7
  %50 = load ptr, ptr %19, align 8, !tbaa !5
  %51 = getelementptr inbounds %struct.ResultHandleInner, ptr %50, i32 0, i32 1
  %52 = load ptr, ptr %51, align 8, !tbaa !14
  store ptr %52, ptr %21, align 8, !tbaa !5
  %53 = load ptr, ptr %21, align 8, !tbaa !5
  call void @_Z18assert_not_nullptrPKcS0_PKv(ptr noundef @__FUNCTION__.GetOutputDataInfoFromResultHandle, ptr noundef @.str.21, ptr noundef %53)
  %54 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_Z18assert_not_nullptrPKcS0_PKv(ptr noundef @__FUNCTION__.GetOutputDataInfoFromResultHandle, ptr noundef @.str.5, ptr noundef %54)
  %55 = load ptr, ptr %13, align 8, !tbaa !5
  call void @_Z18assert_not_nullptrPKcS0_PKv(ptr noundef @__FUNCTION__.GetOutputDataInfoFromResultHandle, ptr noundef @.str.7, ptr noundef %55)
  %56 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_Z18assert_not_nullptrPKcS0_PKv(ptr noundef @__FUNCTION__.GetOutputDataInfoFromResultHandle, ptr noundef @.str.8, ptr noundef %56)
  %57 = load ptr, ptr %15, align 8, !tbaa !5
  call void @_Z18assert_not_nullptrPKcS0_PKv(ptr noundef @__FUNCTION__.GetOutputDataInfoFromResultHandle, ptr noundef @.str.9, ptr noundef %57)
  %58 = load ptr, ptr %16, align 8, !tbaa !5
  call void @_Z18assert_not_nullptrPKcS0_PKv(ptr noundef @__FUNCTION__.GetOutputDataInfoFromResultHandle, ptr noundef @.str.10, ptr noundef %58)
  %59 = load ptr, ptr %17, align 8, !tbaa !5
  call void @_Z18assert_not_nullptrPKcS0_PKv(ptr noundef @__FUNCTION__.GetOutputDataInfoFromResultHandle, ptr noundef @.str.11, ptr noundef %59)
  %60 = load ptr, ptr %18, align 8, !tbaa !5
  call void @_Z18assert_not_nullptrPKcS0_PKv(ptr noundef @__FUNCTION__.GetOutputDataInfoFromResultHandle, ptr noundef @.str.12, ptr noundef %60)
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #7
  store i32 0, ptr %22, align 4, !tbaa !9
  br label %61

61:                                               ; preds = %144, %49
  %62 = load i32, ptr %22, align 4, !tbaa !9
  %63 = load i32, ptr %11, align 4, !tbaa !9
  %64 = icmp slt i32 %62, %63
  br i1 %64, label %66, label %65

65:                                               ; preds = %61
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #7
  br label %147

66:                                               ; preds = %61
  %67 = load ptr, ptr %12, align 8, !tbaa !5
  %68 = load i32, ptr %22, align 4, !tbaa !9
  %69 = sext i32 %68 to i64
  %70 = getelementptr inbounds ptr, ptr %67, i64 %69
  %71 = load ptr, ptr %70, align 8, !tbaa !5
  %72 = load ptr, ptr %21, align 8, !tbaa !5
  %73 = load i32, ptr %22, align 4, !tbaa !9
  %74 = sext i32 %73 to i64
  %75 = getelementptr inbounds %struct.DataDesc, ptr %72, i64 %74
  %76 = getelementptr inbounds %struct.DataDesc, ptr %75, i32 0, i32 4
  %77 = getelementptr inbounds [128 x i8], ptr %76, i64 0, i64 0
  call void @_Z10UNI_STRCPYPcPKc(ptr noundef %71, ptr noundef %77)
  %78 = load ptr, ptr %21, align 8, !tbaa !5
  %79 = load i32, ptr %22, align 4, !tbaa !9
  %80 = sext i32 %79 to i64
  %81 = getelementptr inbounds %struct.DataDesc, ptr %78, i64 %80
  %82 = getelementptr inbounds %struct.DataDesc, ptr %81, i32 0, i32 0
  %83 = load i32, ptr %82, align 8, !tbaa !15
  %84 = call noundef i32 @_Z18DataType2DATA_TYPE8DataType(i32 noundef %83)
  %85 = load ptr, ptr %17, align 8, !tbaa !5
  %86 = load i32, ptr %22, align 4, !tbaa !9
  %87 = sext i32 %86 to i64
  %88 = getelementptr inbounds i32, ptr %85, i64 %87
  store i32 %84, ptr %88, align 4, !tbaa !19
  %89 = load ptr, ptr %21, align 8, !tbaa !5
  %90 = load i32, ptr %22, align 4, !tbaa !9
  %91 = sext i32 %90 to i64
  %92 = getelementptr inbounds %struct.DataDesc, ptr %89, i64 %91
  %93 = getelementptr inbounds %struct.DataDesc, ptr %92, i32 0, i32 1
  %94 = load i32, ptr %93, align 4, !tbaa !21
  %95 = call noundef i32 @_Z22DataFormat2DATA_FORMAT10DataFormat(i32 noundef %94)
  %96 = load ptr, ptr %18, align 8, !tbaa !5
  %97 = load i32, ptr %22, align 4, !tbaa !9
  %98 = sext i32 %97 to i64
  %99 = getelementptr inbounds i32, ptr %96, i64 %98
  store i32 %95, ptr %99, align 4, !tbaa !22
  %100 = load ptr, ptr %21, align 8, !tbaa !5
  %101 = load i32, ptr %22, align 4, !tbaa !9
  %102 = sext i32 %101 to i64
  %103 = getelementptr inbounds %struct.DataDesc, ptr %100, i64 %102
  %104 = getelementptr inbounds %struct.DataDesc, ptr %103, i32 0, i32 3
  %105 = getelementptr inbounds [20 x i32], ptr %104, i64 0, i64 0
  %106 = load i32, ptr %105, align 4, !tbaa !9
  %107 = load ptr, ptr %13, align 8, !tbaa !5
  %108 = load i32, ptr %22, align 4, !tbaa !9
  %109 = sext i32 %108 to i64
  %110 = getelementptr inbounds i32, ptr %107, i64 %109
  store i32 %106, ptr %110, align 4, !tbaa !9
  %111 = load ptr, ptr %21, align 8, !tbaa !5
  %112 = load i32, ptr %22, align 4, !tbaa !9
  %113 = sext i32 %112 to i64
  %114 = getelementptr inbounds %struct.DataDesc, ptr %111, i64 %113
  %115 = getelementptr inbounds %struct.DataDesc, ptr %114, i32 0, i32 3
  %116 = getelementptr inbounds [20 x i32], ptr %115, i64 0, i64 1
  %117 = load i32, ptr %116, align 4, !tbaa !9
  %118 = load ptr, ptr %14, align 8, !tbaa !5
  %119 = load i32, ptr %22, align 4, !tbaa !9
  %120 = sext i32 %119 to i64
  %121 = getelementptr inbounds i32, ptr %118, i64 %120
  store i32 %117, ptr %121, align 4, !tbaa !9
  %122 = load ptr, ptr %21, align 8, !tbaa !5
  %123 = load i32, ptr %22, align 4, !tbaa !9
  %124 = sext i32 %123 to i64
  %125 = getelementptr inbounds %struct.DataDesc, ptr %122, i64 %124
  %126 = getelementptr inbounds %struct.DataDesc, ptr %125, i32 0, i32 3
  %127 = getelementptr inbounds [20 x i32], ptr %126, i64 0, i64 2
  %128 = load i32, ptr %127, align 4, !tbaa !9
  %129 = load ptr, ptr %15, align 8, !tbaa !5
  %130 = load i32, ptr %22, align 4, !tbaa !9
  %131 = sext i32 %130 to i64
  %132 = getelementptr inbounds i32, ptr %129, i64 %131
  store i32 %128, ptr %132, align 4, !tbaa !9
  %133 = load ptr, ptr %21, align 8, !tbaa !5
  %134 = load i32, ptr %22, align 4, !tbaa !9
  %135 = sext i32 %134 to i64
  %136 = getelementptr inbounds %struct.DataDesc, ptr %133, i64 %135
  %137 = getelementptr inbounds %struct.DataDesc, ptr %136, i32 0, i32 3
  %138 = getelementptr inbounds [20 x i32], ptr %137, i64 0, i64 3
  %139 = load i32, ptr %138, align 4, !tbaa !9
  %140 = load ptr, ptr %16, align 8, !tbaa !5
  %141 = load i32, ptr %22, align 4, !tbaa !9
  %142 = sext i32 %141 to i64
  %143 = getelementptr inbounds i32, ptr %140, i64 %142
  store i32 %139, ptr %143, align 4, !tbaa !9
  br label %144

144:                                              ; preds = %66
  %145 = load i32, ptr %22, align 4, !tbaa !9
  %146 = add nsw i32 %145, 1
  store i32 %146, ptr %22, align 4, !tbaa !9
  br label %61, !llvm.loop !24

147:                                              ; preds = %65
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #7
  br label %148

148:                                              ; preds = %147, %25
  ret void
}

attributes #0 = { inlinehint mustprogress 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 #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 #3 = { "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 = { noreturn 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 #5 = { inlinehint mustprogress 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 #6 = { mustprogress 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 #7 = { nounwind }
attributes #8 = { noreturn 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++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !10, i64 0}
!12 = !{!"_ZTS17ResultHandleInner", !10, i64 0, !6, i64 8, !13, i64 16}
!13 = !{!"_ZTS13HARDWARE_TYPE", !7, i64 0}
!14 = !{!12, !6, i64 8}
!15 = !{!16, !17, i64 0}
!16 = !{!"_ZTS8DataDesc", !17, i64 0, !18, i64 4, !10, i64 8, !7, i64 12, !7, i64 92, !6, i64 224}
!17 = !{!"_ZTS8DataType", !7, i64 0}
!18 = !{!"_ZTS10DataFormat", !7, i64 0}
!19 = !{!20, !20, i64 0}
!20 = !{!"_ZTS9DATA_TYPE", !7, i64 0}
!21 = !{!16, !18, i64 4}
!22 = !{!23, !23, i64 0}
!23 = !{!"_ZTS11DATA_FORMAT", !7, i64 0}
!24 = distinct !{!24, !25}
!25 = !{!"llvm.loop.mustprogress"}


; 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.DataDesc = type { i32, i32, i32, [20 x i32], [128 x i8], ptr }

@.str.3 = external hidden unnamed_addr constant [20 x i8], align 1
@stdout = external local_unnamed_addr global ptr, align 8
@.str.5 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [13 x i8], align 1
@__FUNCTION__.GetOutputDataInfoFromResultHandle = external hidden unnamed_addr constant [34 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [66 x i8], align 1

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_Z18assert_not_nullptrPKcS0_PKv(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #0

; Function Attrs: nounwind
declare i64 @syscall(i64 noundef, ...) local_unnamed_addr #1

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

; Function Attrs: nofree nounwind
declare noundef i32 @fflush(ptr nocapture noundef) local_unnamed_addr #2

; Function Attrs: noreturn nounwind
declare void @exit(i32 noundef) local_unnamed_addr #3

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_Z10UNI_STRCPYPcPKc(ptr noundef, ptr noundef) local_unnamed_addr #0

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef i32 @_Z18DataType2DATA_TYPE8DataType(i32 noundef) local_unnamed_addr #4

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef i32 @_Z22DataFormat2DATA_FORMAT10DataFormat(i32 noundef) local_unnamed_addr #4

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_Z19print_result_handleP17ResultHandleInner(ptr noundef) local_unnamed_addr #0

; Function Attrs: mustprogress uwtable
define dso_local void @GetOutputDataInfoFromResultHandle(ptr noundef %0, i32 noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5, ptr noundef %6, ptr noundef %7, ptr noundef %8) local_unnamed_addr #5 {
  %10 = icmp slt i32 %1, 1
  br i1 %10, label %.loopexit, label %11

11:                                               ; preds = %9
  tail call void @_Z18assert_not_nullptrPKcS0_PKv(ptr noundef nonnull @__FUNCTION__.GetOutputDataInfoFromResultHandle, ptr noundef nonnull @.str.22, ptr noundef %0)
  tail call void @_Z19print_result_handleP17ResultHandleInner(ptr noundef %0)
  %12 = load i32, ptr %0, align 8, !tbaa !5
  %.not = icmp eq i32 %12, %1
  br i1 %.not, label %.lr.ph.preheader, label %13

13:                                               ; preds = %11
  %14 = tail call i64 (i64, ...) @syscall(i64 noundef 186) #6
  %15 = trunc i64 %14 to i32
  %16 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.3, i32 noundef %15)
  %17 = load ptr, ptr @stdout, align 8, !tbaa !12
  %18 = tail call i32 @fflush(ptr noundef %17)
  %19 = load i32, ptr %0, align 8, !tbaa !5
  %20 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.23, ptr noundef nonnull @__FUNCTION__.GetOutputDataInfoFromResultHandle, i32 noundef %1, i32 noundef %19)
  %21 = load ptr, ptr @stdout, align 8, !tbaa !12
  %22 = tail call i32 @fflush(ptr noundef %21)
  tail call void @exit(i32 noundef 1) #7
  unreachable

.lr.ph.preheader:                                 ; preds = %11
  %23 = getelementptr inbounds i8, ptr %0, i64 8
  %24 = load ptr, ptr %23, align 8, !tbaa !13
  tail call void @_Z18assert_not_nullptrPKcS0_PKv(ptr noundef nonnull @__FUNCTION__.GetOutputDataInfoFromResultHandle, ptr noundef nonnull @.str.21, ptr noundef %24)
  tail call void @_Z18assert_not_nullptrPKcS0_PKv(ptr noundef nonnull @__FUNCTION__.GetOutputDataInfoFromResultHandle, ptr noundef nonnull @.str.5, ptr noundef %2)
  tail call void @_Z18assert_not_nullptrPKcS0_PKv(ptr noundef nonnull @__FUNCTION__.GetOutputDataInfoFromResultHandle, ptr noundef nonnull @.str.7, ptr noundef %3)
  tail call void @_Z18assert_not_nullptrPKcS0_PKv(ptr noundef nonnull @__FUNCTION__.GetOutputDataInfoFromResultHandle, ptr noundef nonnull @.str.8, ptr noundef %4)
  tail call void @_Z18assert_not_nullptrPKcS0_PKv(ptr noundef nonnull @__FUNCTION__.GetOutputDataInfoFromResultHandle, ptr noundef nonnull @.str.9, ptr noundef %5)
  tail call void @_Z18assert_not_nullptrPKcS0_PKv(ptr noundef nonnull @__FUNCTION__.GetOutputDataInfoFromResultHandle, ptr noundef nonnull @.str.10, ptr noundef %6)
  tail call void @_Z18assert_not_nullptrPKcS0_PKv(ptr noundef nonnull @__FUNCTION__.GetOutputDataInfoFromResultHandle, ptr noundef nonnull @.str.11, ptr noundef %7)
  tail call void @_Z18assert_not_nullptrPKcS0_PKv(ptr noundef nonnull @__FUNCTION__.GetOutputDataInfoFromResultHandle, ptr noundef nonnull @.str.12, ptr noundef %8)
  %wide.trip.count = zext nneg i32 %1 to i64
  br label %.lr.ph

.lr.ph:                                           ; preds = %.lr.ph.preheader, %.lr.ph
  %indvars.iv = phi i64 [ 0, %.lr.ph.preheader ], [ %indvars.iv.next, %.lr.ph ]
  %25 = getelementptr inbounds ptr, ptr %2, i64 %indvars.iv
  %26 = load ptr, ptr %25, align 8, !tbaa !12
  %27 = getelementptr inbounds %struct.DataDesc, ptr %24, i64 %indvars.iv
  %28 = getelementptr inbounds i8, ptr %27, i64 92
  tail call void @_Z10UNI_STRCPYPcPKc(ptr noundef %26, ptr noundef nonnull %28)
  %29 = load i32, ptr %27, align 8, !tbaa !14
  %30 = tail call noundef i32 @_Z18DataType2DATA_TYPE8DataType(i32 noundef %29)
  %31 = getelementptr inbounds i32, ptr %7, i64 %indvars.iv
  store i32 %30, ptr %31, align 4, !tbaa !18
  %32 = getelementptr inbounds i8, ptr %27, i64 4
  %33 = load i32, ptr %32, align 4, !tbaa !20
  %34 = tail call noundef i32 @_Z22DataFormat2DATA_FORMAT10DataFormat(i32 noundef %33)
  %35 = getelementptr inbounds i32, ptr %8, i64 %indvars.iv
  store i32 %34, ptr %35, align 4, !tbaa !21
  %36 = getelementptr inbounds i8, ptr %27, i64 12
  %37 = load i32, ptr %36, align 4, !tbaa !23
  %38 = getelementptr inbounds i32, ptr %3, i64 %indvars.iv
  store i32 %37, ptr %38, align 4, !tbaa !23
  %39 = getelementptr inbounds i8, ptr %27, i64 16
  %40 = load i32, ptr %39, align 4, !tbaa !23
  %41 = getelementptr inbounds i32, ptr %4, i64 %indvars.iv
  store i32 %40, ptr %41, align 4, !tbaa !23
  %42 = getelementptr inbounds i8, ptr %27, i64 20
  %43 = load i32, ptr %42, align 4, !tbaa !23
  %44 = getelementptr inbounds i32, ptr %5, i64 %indvars.iv
  store i32 %43, ptr %44, align 4, !tbaa !23
  %45 = getelementptr inbounds i8, ptr %27, i64 24
  %46 = load i32, ptr %45, align 4, !tbaa !23
  %47 = getelementptr inbounds i32, ptr %6, i64 %indvars.iv
  store i32 %46, ptr %47, align 4, !tbaa !23
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond.not, label %.loopexit, label %.lr.ph, !llvm.loop !24

.loopexit:                                        ; preds = %.lr.ph, %9
  ret void
}

attributes #0 = { inlinehint mustprogress 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 #1 = { 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 #2 = { 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 #3 = { noreturn 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 #4 = { inlinehint mustprogress 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 #5 = { mustprogress 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 #6 = { nounwind }
attributes #7 = { noreturn 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, !7, i64 0}
!6 = !{!"_ZTS17ResultHandleInner", !7, i64 0, !10, i64 8, !11, i64 16}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"any pointer", !8, i64 0}
!11 = !{!"_ZTS13HARDWARE_TYPE", !8, i64 0}
!12 = !{!10, !10, i64 0}
!13 = !{!6, !10, i64 8}
!14 = !{!15, !16, i64 0}
!15 = !{!"_ZTS8DataDesc", !16, i64 0, !17, i64 4, !7, i64 8, !8, i64 12, !8, i64 92, !10, i64 224}
!16 = !{!"_ZTS8DataType", !8, i64 0}
!17 = !{!"_ZTS10DataFormat", !8, i64 0}
!18 = !{!19, !19, i64 0}
!19 = !{!"_ZTS9DATA_TYPE", !8, i64 0}
!20 = !{!15, !17, i64 4}
!21 = !{!22, !22, i64 0}
!22 = !{!"_ZTS11DATA_FORMAT", !8, i64 0}
!23 = !{!7, !7, i64 0}
!24 = distinct !{!24, !25}
!25 = !{!"llvm.loop.mustprogress"}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,SCCPPass,SROAPass,SimplifyCFGPass,TailCallElimPass