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

@.str.1 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [20 x i8], align 1
@stdout = external global ptr, align 8
@.str.13 = external hidden unnamed_addr constant [18 x i8], align 1
@__FUNCTION__.TransformDataType = external hidden unnamed_addr constant [18 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [52 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: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #2

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

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

declare i32 @fflush(ptr noundef) #4

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef i32 @_Z18HARDWARE_TYPE2Arch13HARDWARE_TYPE(i32 noundef) #6

; Function Attrs: mustprogress uwtable
define dso_local i32 @TransformDataType(ptr noundef %0, i32 noundef %1, ptr noundef %2, ptr noundef %3, i32 noundef %4, ptr noundef %5, ptr noundef %6, i32 noundef %7) #7 {
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca i32, align 4
  %14 = alloca ptr, align 8
  %15 = alloca ptr, align 8
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca ptr, align 8
  %21 = alloca %struct.TensorDesc, align 4
  %22 = alloca %struct.TensorDesc, align 4
  %23 = alloca i32, align 4
  %24 = alloca %struct.TensorDesc, align 8
  %25 = alloca i32, align 4
  %26 = alloca i32, align 4
  store ptr %0, ptr %9, align 8, !tbaa !5
  store i32 %1, ptr %10, align 4, !tbaa !9
  store ptr %2, ptr %11, align 8, !tbaa !5
  store ptr %3, ptr %12, align 8, !tbaa !5
  store i32 %4, ptr %13, align 4, !tbaa !9
  store ptr %5, ptr %14, align 8, !tbaa !5
  store ptr %6, ptr %15, align 8, !tbaa !5
  store i32 %7, ptr %16, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #8
  store i32 0, ptr %17, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #8
  %27 = load i32, ptr %10, align 4, !tbaa !9
  %28 = call noundef i32 @_Z18DATA_TYPE2DataType9DATA_TYPE(i32 noundef %27)
  store i32 %28, ptr %18, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #8
  %29 = load i32, ptr %13, align 4, !tbaa !9
  %30 = call noundef i32 @_Z18DATA_TYPE2DataType9DATA_TYPE(i32 noundef %29)
  store i32 %30, ptr %19, align 4, !tbaa !13
  %31 = load i32, ptr %16, align 4, !tbaa !11
  %32 = icmp eq i32 %31, 0
  br i1 %32, label %33, label %34

33:                                               ; preds = %8
  br label %118

34:                                               ; preds = %8
  %35 = load ptr, ptr %15, align 8, !tbaa !5
  %36 = icmp ne ptr %35, null
  br i1 %36, label %37, label %77

37:                                               ; preds = %34
  %38 = load i32, ptr %13, align 4, !tbaa !9
  %39 = icmp eq i32 %38, 5
  br i1 %39, label %43, label %40

40:                                               ; preds = %37
  %41 = load i32, ptr %13, align 4, !tbaa !9
  %42 = icmp eq i32 %41, 4
  br i1 %42, label %43, label %77

43:                                               ; preds = %40, %37
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #8
  %44 = load ptr, ptr %9, align 8, !tbaa !5
  store ptr %44, ptr %20, align 8, !tbaa !5
  %45 = load ptr, ptr %20, align 8, !tbaa !5
  call void @_Z18assert_not_nullptrPKcS0_PKv(ptr noundef @__FUNCTION__.TransformDataType, ptr noundef @.str.1, ptr noundef %45)
  %46 = load i32, ptr %13, align 4, !tbaa !9
  %47 = icmp eq i32 %46, 5
  br i1 %47, label %48, label %49

48:                                               ; preds = %43
  store i32 10, ptr %19, align 4, !tbaa !13
  br label %49

49:                                               ; preds = %48, %43
  call void @llvm.lifetime.start.p0(i64 92, ptr %21) #8
  %50 = load i32, ptr %18, align 4, !tbaa !13
  %51 = load i32, ptr %16, align 4, !tbaa !11
  call void @_Z8tensor1d8DataTypej(ptr dead_on_unwind writable sret(%struct.TensorDesc) align 4 %21, i32 noundef %50, i32 noundef %51)
  call void @llvm.lifetime.start.p0(i64 92, ptr %22) #8
  %52 = load i32, ptr %19, align 4, !tbaa !13
  %53 = load i32, ptr %16, align 4, !tbaa !11
  call void @_Z8tensor1d8DataTypej(ptr dead_on_unwind writable sret(%struct.TensorDesc) align 4 %22, i32 noundef %52, i32 noundef %53)
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %24, ptr align 4 %21, i64 92, i1 false), !tbaa.struct !15
  %54 = load ptr, ptr %11, align 8, !tbaa !5
  %55 = load ptr, ptr %14, align 8, !tbaa !5
  %56 = load ptr, ptr %15, align 8, !tbaa !5
  %57 = load ptr, ptr %20, align 8, !tbaa !5
  %58 = getelementptr inbounds %struct.ModelHandleInner, ptr %57, i32 0, i32 2
  %59 = load i32, ptr %58, align 8, !tbaa !19
  %60 = call noundef i32 @_Z18HARDWARE_TYPE2Arch13HARDWARE_TYPE(i32 noundef %59)
  %61 = call noundef i32 @_Z12quantize_cpu10TensorDescPKvPS_PvPf4Archi(ptr noundef byval(%struct.TensorDesc) align 8 %24, ptr noundef %54, ptr noundef %22, ptr noundef %55, ptr noundef %56, i32 noundef %60, i32 noundef 1)
  store i32 %61, ptr %23, align 4, !tbaa !23
  %62 = load i32, ptr %23, align 4, !tbaa !23
  %63 = icmp ne i32 %62, 0
  br i1 %63, label %64, label %76

64:                                               ; preds = %49
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #8
  %65 = call i64 (i64, ...) @syscall(i64 noundef 186) #8
  %66 = trunc i64 %65 to i32
  store i32 %66, ptr %25, align 4, !tbaa !11
  %67 = load i32, ptr %25, align 4, !tbaa !11
  %68 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %67)
  %69 = load ptr, ptr @stdout, align 8, !tbaa !5
  %70 = call i32 @fflush(ptr noundef %69)
  %71 = load i32, ptr %23, align 4, !tbaa !23
  %72 = call ptr @ee2str(i32 noundef %71)
  %73 = call i32 (ptr, ...) @printf(ptr noundef @.str.13, ptr noundef %72)
  %74 = load ptr, ptr @stdout, align 8, !tbaa !5
  %75 = call i32 @fflush(ptr noundef %74)
  call void @exit(i32 noundef 1) #9
  unreachable

76:                                               ; preds = %49
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #8
  call void @llvm.lifetime.end.p0(i64 92, ptr %22) #8
  call void @llvm.lifetime.end.p0(i64 92, ptr %21) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #8
  br label %117

77:                                               ; preds = %40, %34
  %78 = load i32, ptr %10, align 4, !tbaa !9
  %79 = icmp eq i32 %78, 0
  br i1 %79, label %80, label %86

80:                                               ; preds = %77
  %81 = load i32, ptr %19, align 4, !tbaa !13
  %82 = load ptr, ptr %11, align 8, !tbaa !5
  %83 = load ptr, ptr %14, align 8, !tbaa !5
  %84 = load i32, ptr %16, align 4, !tbaa !11
  %85 = call noundef i32 @_Z18transformFromFloat8DataTypePKfPvif(i32 noundef %81, ptr noundef %82, ptr noundef %83, i32 noundef %84, float noundef 1.000000e+00)
  br label %116

86:                                               ; preds = %77
  %87 = load i32, ptr %13, align 4, !tbaa !9
  %88 = icmp eq i32 %87, 0
  br i1 %88, label %89, label %95

89:                                               ; preds = %86
  %90 = load i32, ptr %18, align 4, !tbaa !13
  %91 = load ptr, ptr %11, align 8, !tbaa !5
  %92 = load ptr, ptr %14, align 8, !tbaa !5
  %93 = load i32, ptr %16, align 4, !tbaa !11
  %94 = call noundef i32 @_Z16transformToFloat8DataTypePKvPfif(i32 noundef %90, ptr noundef %91, ptr noundef %92, i32 noundef %93, float noundef 1.000000e+00)
  br label %115

95:                                               ; preds = %86
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #8
  %96 = call i64 (i64, ...) @syscall(i64 noundef 186) #8
  %97 = trunc i64 %96 to i32
  store i32 %97, ptr %26, align 4, !tbaa !11
  %98 = load i32, ptr %26, align 4, !tbaa !11
  %99 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %98)
  %100 = load ptr, ptr @stdout, align 8, !tbaa !5
  %101 = call i32 @fflush(ptr noundef %100)
  %102 = call ptr @GetDataTypeString()
  %103 = load i32, ptr %10, align 4, !tbaa !9
  %104 = zext i32 %103 to i64
  %105 = getelementptr inbounds ptr, ptr %102, i64 %104
  %106 = load ptr, ptr %105, align 8, !tbaa !5
  %107 = call ptr @GetDataTypeString()
  %108 = load i32, ptr %13, align 4, !tbaa !9
  %109 = zext i32 %108 to i64
  %110 = getelementptr inbounds ptr, ptr %107, i64 %109
  %111 = load ptr, ptr %110, align 8, !tbaa !5
  %112 = call i32 (ptr, ...) @printf(ptr noundef @.str.16, ptr noundef @__FUNCTION__.TransformDataType, ptr noundef %106, ptr noundef %111)
  %113 = load ptr, ptr @stdout, align 8, !tbaa !5
  %114 = call i32 @fflush(ptr noundef %113)
  call void @exit(i32 noundef 1) #9
  unreachable

115:                                              ; preds = %89
  br label %116

116:                                              ; preds = %115, %80
  br label %117

117:                                              ; preds = %116, %76
  br label %118

118:                                              ; preds = %117, %33
  %119 = load i32, ptr %17, align 4, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #8
  ret i32 %119
}

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef i32 @_Z18DATA_TYPE2DataType9DATA_TYPE(i32 noundef) #6

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_Z8tensor1d8DataTypej(ptr dead_on_unwind noalias writable sret(%struct.TensorDesc) align 4, i32 noundef, i32 noundef) #6

declare noundef i32 @_Z12quantize_cpu10TensorDescPKvPS_PvPf4Archi(ptr noundef byval(%struct.TensorDesc) align 8, ptr noundef, ptr noundef, ptr noundef, ptr noundef, i32 noundef, i32 noundef) #4

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef i32 @_Z18transformFromFloat8DataTypePKfPvif(i32 noundef, ptr noundef, ptr noundef, i32 noundef, float noundef) #6

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef i32 @_Z16transformToFloat8DataTypePKvPfif(i32 noundef, ptr noundef, ptr noundef, i32 noundef, float noundef) #6

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

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 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { 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 = { "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 = { 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 #6 = { 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 #7 = { 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 #8 = { nounwind }
attributes #9 = { 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 = !{!"_ZTS9DATA_TYPE", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"_ZTS8DataType", !7, i64 0}
!15 = !{i64 0, i64 4, !13, i64 4, i64 4, !16, i64 8, i64 4, !11, i64 12, i64 80, !18}
!16 = !{!17, !17, i64 0}
!17 = !{!"_ZTS10DataFormat", !7, i64 0}
!18 = !{!7, !7, i64 0}
!19 = !{!20, !21, i64 16}
!20 = !{!"_ZTS16ModelHandleInner", !6, i64 0, !6, i64 8, !21, i64 16, !6, i64 24, !22, i64 32}
!21 = !{!"_ZTS13HARDWARE_TYPE", !7, i64 0}
!22 = !{!"bool", !7, i64 0}
!23 = !{!24, !24, i64 0}
!24 = !{!"_ZTS2EE", !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"

%struct.TensorDesc = type { i32, i32, i32, [20 x i32] }

@.str.1 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [20 x i8], align 1
@stdout = external local_unnamed_addr global ptr, align 8
@.str.13 = external hidden unnamed_addr constant [18 x i8], align 1
@__FUNCTION__.TransformDataType = external hidden unnamed_addr constant [18 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [52 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: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1

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

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #2

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @TransformDataType(ptr noundef %0, i32 noundef %1, ptr noundef %2, ptr nocapture noundef readnone %3, i32 noundef %4, ptr noundef %5, ptr noundef %6, i32 noundef %7) local_unnamed_addr #7 {
  %9 = alloca %struct.TensorDesc, align 4
  %10 = alloca %struct.TensorDesc, align 4
  %11 = alloca %struct.TensorDesc, align 8
  %12 = tail call noundef i32 @_Z18DATA_TYPE2DataType9DATA_TYPE(i32 noundef %1)
  %13 = tail call noundef i32 @_Z18DATA_TYPE2DataType9DATA_TYPE(i32 noundef %4)
  %14 = icmp eq i32 %7, 0
  br i1 %14, label %59, label %15

15:                                               ; preds = %8
  %.not = icmp ne ptr %6, null
  %16 = and i32 %4, -2
  %or.cond = icmp eq i32 %16, 4
  %or.cond40 = and i1 %or.cond, %.not
  br i1 %or.cond40, label %17, label %34

17:                                               ; preds = %15
  %18 = icmp eq i32 %4, 5
  tail call void @_Z18assert_not_nullptrPKcS0_PKv(ptr noundef nonnull @__FUNCTION__.TransformDataType, ptr noundef nonnull @.str.1, ptr noundef %0)
  %spec.select = select i1 %18, i32 10, i32 %13
  call void @llvm.lifetime.start.p0(i64 92, ptr nonnull %9) #9
  call void @_Z8tensor1d8DataTypej(ptr dead_on_unwind nonnull writable sret(%struct.TensorDesc) align 4 %9, i32 noundef %12, i32 noundef %7)
  call void @llvm.lifetime.start.p0(i64 92, ptr nonnull %10) #9
  call void @_Z8tensor1d8DataTypej(ptr dead_on_unwind nonnull writable sret(%struct.TensorDesc) align 4 %10, i32 noundef %spec.select, i32 noundef %7)
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(92) %11, ptr noundef nonnull align 4 dereferenceable(92) %9, i64 92, i1 false), !tbaa.struct !5
  %19 = getelementptr inbounds i8, ptr %0, i64 16
  %20 = load i32, ptr %19, align 8, !tbaa !15
  %21 = call noundef i32 @_Z18HARDWARE_TYPE2Arch13HARDWARE_TYPE(i32 noundef %20)
  %22 = call noundef i32 @_Z12quantize_cpu10TensorDescPKvPS_PvPf4Archi(ptr noundef nonnull byval(%struct.TensorDesc) align 8 %11, ptr noundef %2, ptr noundef nonnull %10, ptr noundef %5, ptr noundef nonnull %6, i32 noundef %21, i32 noundef 1)
  %.not39 = icmp eq i32 %22, 0
  br i1 %.not39, label %33, label %23

23:                                               ; preds = %17
  %24 = call i64 (i64, ...) @syscall(i64 noundef 186) #9
  %25 = trunc i64 %24 to i32
  %26 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.3, i32 noundef %25)
  %27 = load ptr, ptr @stdout, align 8, !tbaa !20
  %28 = call i32 @fflush(ptr noundef %27)
  %29 = call ptr @ee2str(i32 noundef %22)
  %30 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.13, ptr noundef %29)
  %31 = load ptr, ptr @stdout, align 8, !tbaa !20
  %32 = call i32 @fflush(ptr noundef %31)
  call void @exit(i32 noundef 1) #10
  unreachable

33:                                               ; preds = %17
  call void @llvm.lifetime.end.p0(i64 92, ptr nonnull %10) #9
  call void @llvm.lifetime.end.p0(i64 92, ptr nonnull %9) #9
  br label %59

34:                                               ; preds = %15
  %35 = icmp eq i32 %1, 0
  br i1 %35, label %36, label %38

36:                                               ; preds = %34
  %37 = tail call noundef i32 @_Z18transformFromFloat8DataTypePKfPvif(i32 noundef %13, ptr noundef %2, ptr noundef %5, i32 noundef %7, float noundef 1.000000e+00)
  br label %59

38:                                               ; preds = %34
  %39 = icmp eq i32 %4, 0
  br i1 %39, label %40, label %42

40:                                               ; preds = %38
  %41 = tail call noundef i32 @_Z16transformToFloat8DataTypePKvPfif(i32 noundef %12, ptr noundef %2, ptr noundef %5, i32 noundef %7, float noundef 1.000000e+00)
  br label %59

42:                                               ; preds = %38
  %43 = tail call i64 (i64, ...) @syscall(i64 noundef 186) #9
  %44 = trunc i64 %43 to i32
  %45 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.3, i32 noundef %44)
  %46 = load ptr, ptr @stdout, align 8, !tbaa !20
  %47 = tail call i32 @fflush(ptr noundef %46)
  %48 = tail call ptr @GetDataTypeString()
  %49 = zext i32 %1 to i64
  %50 = getelementptr inbounds ptr, ptr %48, i64 %49
  %51 = load ptr, ptr %50, align 8, !tbaa !20
  %52 = tail call ptr @GetDataTypeString()
  %53 = zext i32 %4 to i64
  %54 = getelementptr inbounds ptr, ptr %52, i64 %53
  %55 = load ptr, ptr %54, align 8, !tbaa !20
  %56 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.16, ptr noundef nonnull @__FUNCTION__.TransformDataType, ptr noundef %51, ptr noundef %55)
  %57 = load ptr, ptr @stdout, align 8, !tbaa !20
  %58 = tail call i32 @fflush(ptr noundef %57)
  tail call void @exit(i32 noundef 1) #10
  unreachable

59:                                               ; preds = %33, %40, %36, %8
  ret i32 0
}

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_Z8tensor1d8DataTypej(ptr dead_on_unwind noalias writable sret(%struct.TensorDesc) align 4, i32 noundef, i32 noundef) local_unnamed_addr #6

declare noundef i32 @_Z12quantize_cpu10TensorDescPKvPS_PvPf4Archi(ptr noundef byval(%struct.TensorDesc) align 8, ptr noundef, ptr noundef, ptr noundef, ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #8

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef i32 @_Z18transformFromFloat8DataTypePKfPvif(i32 noundef, ptr noundef, ptr noundef, i32 noundef, float noundef) local_unnamed_addr #6

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef i32 @_Z16transformToFloat8DataTypePKvPfif(i32 noundef, ptr noundef, ptr noundef, i32 noundef, float noundef) local_unnamed_addr #6

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

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 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { 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 = { 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 #5 = { 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 #6 = { 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 #7 = { 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 #8 = { "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 #9 = { nounwind }
attributes #10 = { 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 = !{i64 0, i64 4, !6, i64 4, i64 4, !10, i64 8, i64 4, !12, i64 12, i64 80, !14}
!6 = !{!7, !7, i64 0}
!7 = !{!"_ZTS8DataType", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!11, !11, i64 0}
!11 = !{!"_ZTS10DataFormat", !8, i64 0}
!12 = !{!13, !13, i64 0}
!13 = !{!"int", !8, i64 0}
!14 = !{!8, !8, i64 0}
!15 = !{!16, !18, i64 16}
!16 = !{!"_ZTS16ModelHandleInner", !17, i64 0, !17, i64 8, !18, i64 16, !17, i64 24, !19, i64 32}
!17 = !{!"any pointer", !8, i64 0}
!18 = !{!"_ZTS13HARDWARE_TYPE", !8, i64 0}
!19 = !{!"bool", !8, i64 0}
!20 = !{!17, !17, i64 0}


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