; LLVM IR from huawei-noah/bolt :: compute/tensor/tests/test_axpby.ll (Z9axpbyTestiPPc8DataType)

; 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] }

@.str = external hidden unnamed_addr constant [20 x i8], align 1
@stdout = external global ptr, align 8
@.str.1 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [18 x i8], align 1

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_Z9axpbyTestiPPc8DataType(i32 noundef %0, ptr noundef %1, i32 noundef %2) #0 {
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca float, align 4
  %10 = alloca float, align 4
  %11 = alloca %struct.TensorDesc, align 4
  %12 = alloca %struct.TensorDesc, align 4
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca ptr, align 8
  %16 = alloca %struct.TensorDesc, align 8
  %17 = alloca i32, align 4
  %18 = alloca %struct.TensorDesc, align 8
  %19 = alloca %struct.TensorDesc, align 8
  %20 = alloca i32, align 4
  %21 = alloca i32, align 4
  %22 = alloca %struct.TensorDesc, align 8
  %23 = alloca %struct.TensorDesc, align 8
  %24 = alloca i32, align 4
  %25 = alloca double, align 8
  %26 = alloca i32, align 4
  %27 = alloca %struct.TensorDesc, align 8
  %28 = alloca %struct.TensorDesc, align 8
  %29 = alloca double, align 8
  %30 = alloca double, align 8
  %31 = alloca [150 x i8], align 16
  %32 = alloca [120 x i8], align 16
  %33 = alloca double, align 8
  store i32 %0, ptr %4, align 4, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !9
  store i32 %2, ptr %6, align 4, !tbaa !11
  %34 = load i32, ptr %4, align 4, !tbaa !5
  %35 = icmp eq i32 %34, 4
  br i1 %35, label %46, label %36

36:                                               ; preds = %3
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #9
  %37 = call i64 (i64, ...) @syscall(i64 noundef 186) #9
  %38 = trunc i64 %37 to i32
  store i32 %38, ptr %7, align 4, !tbaa !5
  %39 = load i32, ptr %7, align 4, !tbaa !5
  %40 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %39)
  %41 = load ptr, ptr @stdout, align 8, !tbaa !9
  %42 = call i32 @fflush(ptr noundef %41)
  %43 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
  %44 = load ptr, ptr @stdout, align 8, !tbaa !9
  %45 = call i32 @fflush(ptr noundef %44)
  call void @exit(i32 noundef 1) #10
  unreachable

46:                                               ; preds = %3
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #9
  %47 = load ptr, ptr %5, align 8, !tbaa !9
  %48 = getelementptr inbounds ptr, ptr %47, i64 1
  %49 = load ptr, ptr %48, align 8, !tbaa !9
  %50 = call i32 @atoi(ptr noundef %49) #11
  store i32 %50, ptr %8, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #9
  %51 = load ptr, ptr %5, align 8, !tbaa !9
  %52 = getelementptr inbounds ptr, ptr %51, i64 2
  %53 = load ptr, ptr %52, align 8, !tbaa !9
  %54 = call double @atof(ptr noundef %53) #11
  %55 = fptrunc double %54 to float
  store float %55, ptr %9, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #9
  %56 = load ptr, ptr %5, align 8, !tbaa !9
  %57 = getelementptr inbounds ptr, ptr %56, i64 3
  %58 = load ptr, ptr %57, align 8, !tbaa !9
  %59 = call double @atof(ptr noundef %58) #11
  %60 = fptrunc double %59 to float
  store float %60, ptr %10, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 92, ptr %11) #9
  %61 = load i32, ptr %6, align 4, !tbaa !11
  %62 = load i32, ptr %8, align 4, !tbaa !5
  call void @_Z8tensor1d8DataTypej(ptr dead_on_unwind writable sret(%struct.TensorDesc) align 4 %11, i32 noundef %61, i32 noundef %62)
  call void @llvm.lifetime.start.p0(i64 92, ptr %12) #9
  %63 = load i32, ptr %6, align 4, !tbaa !11
  %64 = load i32, ptr %8, align 4, !tbaa !5
  call void @_Z8tensor1d8DataTypej(ptr dead_on_unwind writable sret(%struct.TensorDesc) align 4 %12, i32 noundef %63, i32 noundef %64)
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #9
  %65 = load i32, ptr %8, align 4, !tbaa !5
  %66 = load i32, ptr %6, align 4, !tbaa !11
  %67 = call noundef ptr @_Z10ut_input_vj8DataType14UT_RANDOM_TYPE(i32 noundef %65, i32 noundef %66, i32 noundef 0)
  store ptr %67, ptr %13, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #9
  %68 = load i32, ptr %8, align 4, !tbaa !5
  %69 = load i32, ptr %6, align 4, !tbaa !11
  %70 = call noundef ptr @_Z10ut_input_vj8DataType14UT_RANDOM_TYPE(i32 noundef %68, i32 noundef %69, i32 noundef 0)
  store ptr %70, ptr %14, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #9
  %71 = load i32, ptr %8, align 4, !tbaa !5
  %72 = load i32, ptr %6, align 4, !tbaa !11
  %73 = call noundef ptr @_Z10ut_input_vj8DataType14UT_RANDOM_TYPE(i32 noundef %71, i32 noundef %72, i32 noundef 3)
  store ptr %73, ptr %15, align 8, !tbaa !9
  %74 = load ptr, ptr %15, align 8, !tbaa !9
  %75 = load ptr, ptr %14, align 8, !tbaa !9
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %16, ptr align 4 %12, i64 92, i1 false), !tbaa.struct !15
  %76 = call noundef i32 @_Z14tensorNumBytes10TensorDesc(ptr noundef byval(%struct.TensorDesc) align 8 %16)
  %77 = zext i32 %76 to i64
  call void @_Z10UNI_MEMCPYPvPKvm(ptr noundef %74, ptr noundef %75, i64 noundef %77)
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #9
  %78 = load float, ptr %9, align 4, !tbaa !13
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %18, ptr align 4 %11, i64 92, i1 false), !tbaa.struct !15
  %79 = load ptr, ptr %13, align 8, !tbaa !9
  %80 = load float, ptr %10, align 4, !tbaa !13
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %19, ptr align 4 %12, i64 92, i1 false), !tbaa.struct !15
  %81 = load ptr, ptr %14, align 8, !tbaa !9
  %82 = call i32 @vector_vector_axpby(float noundef %78, ptr noundef byval(%struct.TensorDesc) align 8 %18, ptr noundef %79, float noundef %80, ptr noundef byval(%struct.TensorDesc) align 8 %19, ptr noundef %81, i32 noundef 1)
  store i32 %82, ptr %17, align 4, !tbaa !19
  %83 = load i32, ptr %17, align 4, !tbaa !19
  %84 = icmp ne i32 %83, 0
  br i1 %84, label %85, label %97

85:                                               ; preds = %46
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #9
  %86 = call i64 (i64, ...) @syscall(i64 noundef 186) #9
  %87 = trunc i64 %86 to i32
  store i32 %87, ptr %20, align 4, !tbaa !5
  %88 = load i32, ptr %20, align 4, !tbaa !5
  %89 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %88)
  %90 = load ptr, ptr @stdout, align 8, !tbaa !9
  %91 = call i32 @fflush(ptr noundef %90)
  %92 = load i32, ptr %17, align 4, !tbaa !19
  %93 = call ptr @ee2str(i32 noundef %92)
  %94 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, ptr noundef %93)
  %95 = load ptr, ptr @stdout, align 8, !tbaa !9
  %96 = call i32 @fflush(ptr noundef %95)
  call void @exit(i32 noundef 1) #10
  unreachable

97:                                               ; preds = %46
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #9
  %98 = load float, ptr %9, align 4, !tbaa !13
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %22, ptr align 4 %11, i64 92, i1 false), !tbaa.struct !15
  %99 = load ptr, ptr %13, align 8, !tbaa !9
  %100 = load float, ptr %10, align 4, !tbaa !13
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %23, ptr align 4 %12, i64 92, i1 false), !tbaa.struct !15
  %101 = load ptr, ptr %15, align 8, !tbaa !9
  %102 = call i32 @vector_vector_axpby(float noundef %98, ptr noundef byval(%struct.TensorDesc) align 8 %22, ptr noundef %99, float noundef %100, ptr noundef byval(%struct.TensorDesc) align 8 %23, ptr noundef %101, i32 noundef 1)
  store i32 %102, ptr %21, align 4, !tbaa !19
  %103 = load i32, ptr %21, align 4, !tbaa !19
  %104 = icmp ne i32 %103, 0
  br i1 %104, label %105, label %117

105:                                              ; preds = %97
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #9
  %106 = call i64 (i64, ...) @syscall(i64 noundef 186) #9
  %107 = trunc i64 %106 to i32
  store i32 %107, ptr %24, align 4, !tbaa !5
  %108 = load i32, ptr %24, align 4, !tbaa !5
  %109 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %108)
  %110 = load ptr, ptr @stdout, align 8, !tbaa !9
  %111 = call i32 @fflush(ptr noundef %110)
  %112 = load i32, ptr %21, align 4, !tbaa !19
  %113 = call ptr @ee2str(i32 noundef %112)
  %114 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, ptr noundef %113)
  %115 = load ptr, ptr @stdout, align 8, !tbaa !9
  %116 = call i32 @fflush(ptr noundef %115)
  call void @exit(i32 noundef 1) #10
  unreachable

117:                                              ; preds = %97
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #9
  %118 = load ptr, ptr %14, align 8, !tbaa !9
  %119 = load ptr, ptr %15, align 8, !tbaa !9
  %120 = load i32, ptr %8, align 4, !tbaa !5
  %121 = load i32, ptr %6, align 4, !tbaa !11
  call void @_Z10ut_check_vPvS_j8DataTypef(ptr noundef %118, ptr noundef %119, i32 noundef %120, i32 noundef %121, float noundef 0x3F847AE140000000)
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #9
  %122 = call noundef double @_Z10ut_time_msv()
  store double %122, ptr %25, align 8, !tbaa !21
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #9
  store i32 0, ptr %26, align 4, !tbaa !5
  br label %123

123:                                              ; preds = %133, %117
  %124 = load i32, ptr %26, align 4, !tbaa !5
  %125 = icmp slt i32 %124, 6
  br i1 %125, label %127, label %126

126:                                              ; preds = %123
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #9
  br label %136

127:                                              ; preds = %123
  %128 = load float, ptr %9, align 4, !tbaa !13
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %27, ptr align 4 %11, i64 92, i1 false), !tbaa.struct !15
  %129 = load ptr, ptr %13, align 8, !tbaa !9
  %130 = load float, ptr %10, align 4, !tbaa !13
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %28, ptr align 4 %12, i64 92, i1 false), !tbaa.struct !15
  %131 = load ptr, ptr %14, align 8, !tbaa !9
  %132 = call i32 @vector_vector_axpby(float noundef %128, ptr noundef byval(%struct.TensorDesc) align 8 %27, ptr noundef %129, float noundef %130, ptr noundef byval(%struct.TensorDesc) align 8 %28, ptr noundef %131, i32 noundef 1)
  br label %133

133:                                              ; preds = %127
  %134 = load i32, ptr %26, align 4, !tbaa !5
  %135 = add nsw i32 %134, 1
  store i32 %135, ptr %26, align 4, !tbaa !5
  br label %123, !llvm.loop !23

136:                                              ; preds = %126
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #9
  %137 = call noundef double @_Z10ut_time_msv()
  store double %137, ptr %29, align 8, !tbaa !21
  call void @llvm.lifetime.start.p0(i64 8, ptr %30) #9
  %138 = load double, ptr %29, align 8, !tbaa !21
  %139 = load double, ptr %25, align 8, !tbaa !21
  %140 = fsub double %138, %139
  %141 = fdiv double %140, 6.000000e+00
  store double %141, ptr %30, align 8, !tbaa !21
  call void @llvm.lifetime.start.p0(i64 150, ptr %31) #9
  call void @llvm.lifetime.start.p0(i64 120, ptr %32) #9
  %142 = getelementptr inbounds [120 x i8], ptr %32, i64 0, i64 0
  %143 = load float, ptr %9, align 4, !tbaa !13
  %144 = fpext float %143 to double
  %145 = load i32, ptr %8, align 4, !tbaa !5
  %146 = load float, ptr %10, align 4, !tbaa !13
  %147 = fpext float %146 to double
  %148 = load i32, ptr %8, align 4, !tbaa !5
  %149 = load i32, ptr %8, align 4, !tbaa !5
  %150 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef %142, ptr noundef @.str.3, double noundef %144, i32 noundef %145, double noundef %147, i32 noundef %148, i32 noundef %149) #9
  %151 = getelementptr inbounds [150 x i8], ptr %31, i64 0, i64 0
  %152 = getelementptr inbounds [120 x i8], ptr %32, i64 0, i64 0
  %153 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef %151, ptr noundef @.str.4, ptr noundef @.str.5, ptr noundef %152) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr %33) #9
  %154 = load i32, ptr %8, align 4, !tbaa !5
  %155 = uitofp i32 %154 to double
  %156 = fmul double 3.000000e+00, %155
  store double %156, ptr %33, align 8, !tbaa !21
  %157 = load i32, ptr %6, align 4, !tbaa !11
  %158 = getelementptr inbounds [150 x i8], ptr %31, i64 0, i64 0
  %159 = load double, ptr %33, align 8, !tbaa !21
  %160 = load double, ptr %30, align 8, !tbaa !21
  call void @_Z6ut_log8DataTypePcdd(i32 noundef %157, ptr noundef %158, double noundef %159, double noundef %160)
  %161 = load ptr, ptr %13, align 8, !tbaa !9
  call void @free(ptr noundef %161) #9
  %162 = load ptr, ptr %14, align 8, !tbaa !9
  call void @free(ptr noundef %162) #9
  %163 = load ptr, ptr %15, align 8, !tbaa !9
  call void @free(ptr noundef %163) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #9
  call void @llvm.lifetime.end.p0(i64 120, ptr %32) #9
  call void @llvm.lifetime.end.p0(i64 150, ptr %31) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #9
  call void @llvm.lifetime.end.p0(i64 92, ptr %12) #9
  call void @llvm.lifetime.end.p0(i64 92, ptr %11) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #9
  ret i32 0
}

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.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 willreturn memory(read) uwtable
declare i32 @atoi(ptr noundef nonnull) #5

; Function Attrs: inlinehint mustprogress nounwind willreturn memory(read) uwtable
declare double @atof(ptr noundef nonnull) #5

; 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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_Z10UNI_MEMCPYPvPKvm(ptr noundef, ptr noundef, i64 noundef) #6

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef i32 @_Z14tensorNumBytes10TensorDesc(ptr noundef byval(%struct.TensorDesc) align 8) #6

; 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) #7

declare i32 @vector_vector_axpby(float noundef, ptr noundef byval(%struct.TensorDesc) align 8, ptr noundef, float noundef, ptr noundef byval(%struct.TensorDesc) align 8, ptr noundef, i32 noundef) #3

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

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

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

declare noundef double @_Z10ut_time_msv() #3

; Function Attrs: nounwind
declare i32 @sprintf(ptr noundef, ptr noundef, ...) #2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_Z6ut_log8DataTypePcdd(i32 noundef, ptr noundef, double noundef, double noundef) #6

; Function Attrs: nounwind
declare void @free(ptr noundef) #2

attributes #0 = { 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 #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 nounwind willreturn memory(read) 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 = { 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 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #8 = { 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 #9 = { nounwind }
attributes #10 = { noreturn nounwind }
attributes #11 = { nounwind willreturn memory(read) }

!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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"_ZTS8DataType", !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"float", !7, i64 0}
!15 = !{i64 0, i64 4, !11, i64 4, i64 4, !16, i64 8, i64 4, !5, i64 12, i64 80, !18}
!16 = !{!17, !17, i64 0}
!17 = !{!"_ZTS10DataFormat", !7, i64 0}
!18 = !{!7, !7, i64 0}
!19 = !{!20, !20, i64 0}
!20 = !{!"_ZTS2EE", !7, i64 0}
!21 = !{!22, !22, i64 0}
!22 = !{!"double", !7, i64 0}
!23 = distinct !{!23, !24}
!24 = !{!"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.TensorDesc = type { i32, i32, i32, [20 x i32] }

@.str = external hidden unnamed_addr constant [20 x i8], align 1
@stdout = external local_unnamed_addr global ptr, align 8
@.str.1 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [18 x i8], align 1

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_Z9axpbyTestiPPc8DataType(i32 noundef %0, ptr nocapture noundef readonly %1, i32 noundef %2) local_unnamed_addr #0 {
  %4 = alloca %struct.TensorDesc, align 8
  %5 = alloca %struct.TensorDesc, align 8
  %6 = alloca [150 x i8], align 16
  %7 = alloca [120 x i8], align 16
  %8 = icmp eq i32 %0, 4
  br i1 %8, label %18, label %9

9:                                                ; preds = %3
  %10 = tail call i64 (i64, ...) @syscall(i64 noundef 186) #10
  %11 = trunc i64 %10 to i32
  %12 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str, i32 noundef %11)
  %13 = load ptr, ptr @stdout, align 8, !tbaa !5
  %14 = tail call i32 @fflush(ptr noundef %13)
  %15 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1)
  %16 = load ptr, ptr @stdout, align 8, !tbaa !5
  %17 = tail call i32 @fflush(ptr noundef %16)
  tail call void @exit(i32 noundef 1) #11
  unreachable

18:                                               ; preds = %3
  %19 = getelementptr inbounds i8, ptr %1, i64 8
  %20 = load ptr, ptr %19, align 8, !tbaa !5
  %21 = tail call i32 @atoi(ptr nocapture noundef %20) #12
  %22 = getelementptr inbounds i8, ptr %1, i64 16
  %23 = load ptr, ptr %22, align 8, !tbaa !5
  %24 = tail call double @atof(ptr noundef %23) #12
  %25 = fptrunc double %24 to float
  %26 = getelementptr inbounds i8, ptr %1, i64 24
  %27 = load ptr, ptr %26, align 8, !tbaa !5
  %28 = tail call double @atof(ptr noundef %27) #12
  %29 = fptrunc double %28 to float
  call void @llvm.lifetime.start.p0(i64 92, ptr nonnull %4) #10
  call void @_Z8tensor1d8DataTypej(ptr dead_on_unwind nonnull writable sret(%struct.TensorDesc) align 4 %4, i32 noundef %2, i32 noundef %21)
  call void @llvm.lifetime.start.p0(i64 92, ptr nonnull %5) #10
  call void @_Z8tensor1d8DataTypej(ptr dead_on_unwind nonnull writable sret(%struct.TensorDesc) align 4 %5, i32 noundef %2, i32 noundef %21)
  %30 = call noundef ptr @_Z10ut_input_vj8DataType14UT_RANDOM_TYPE(i32 noundef %21, i32 noundef %2, i32 noundef 0)
  %31 = call noundef ptr @_Z10ut_input_vj8DataType14UT_RANDOM_TYPE(i32 noundef %21, i32 noundef %2, i32 noundef 0)
  %32 = call noundef ptr @_Z10ut_input_vj8DataType14UT_RANDOM_TYPE(i32 noundef %21, i32 noundef %2, i32 noundef 3)
  %33 = call noundef i32 @_Z14tensorNumBytes10TensorDesc(ptr noundef nonnull byval(%struct.TensorDesc) align 8 %5)
  %34 = zext i32 %33 to i64
  call void @_Z10UNI_MEMCPYPvPKvm(ptr noundef %32, ptr noundef %31, i64 noundef %34)
  %35 = call i32 @vector_vector_axpby(float noundef %25, ptr noundef nonnull byval(%struct.TensorDesc) align 8 %4, ptr noundef %30, float noundef %29, ptr noundef nonnull byval(%struct.TensorDesc) align 8 %5, ptr noundef %31, i32 noundef 1)
  %.not = icmp eq i32 %35, 0
  br i1 %.not, label %46, label %36

36:                                               ; preds = %18
  %37 = call i64 (i64, ...) @syscall(i64 noundef 186) #10
  %38 = trunc i64 %37 to i32
  %39 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str, i32 noundef %38)
  %40 = load ptr, ptr @stdout, align 8, !tbaa !5
  %41 = call i32 @fflush(ptr noundef %40)
  %42 = call ptr @ee2str(i32 noundef %35)
  %43 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2, ptr noundef %42)
  %44 = load ptr, ptr @stdout, align 8, !tbaa !5
  %45 = call i32 @fflush(ptr noundef %44)
  call void @exit(i32 noundef 1) #11
  unreachable

46:                                               ; preds = %18
  %47 = call i32 @vector_vector_axpby(float noundef %25, ptr noundef nonnull byval(%struct.TensorDesc) align 8 %4, ptr noundef %30, float noundef %29, ptr noundef nonnull byval(%struct.TensorDesc) align 8 %5, ptr noundef %32, i32 noundef 1)
  %.not56 = icmp eq i32 %47, 0
  br i1 %.not56, label %58, label %48

48:                                               ; preds = %46
  %49 = call i64 (i64, ...) @syscall(i64 noundef 186) #10
  %50 = trunc i64 %49 to i32
  %51 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str, i32 noundef %50)
  %52 = load ptr, ptr @stdout, align 8, !tbaa !5
  %53 = call i32 @fflush(ptr noundef %52)
  %54 = call ptr @ee2str(i32 noundef %47)
  %55 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2, ptr noundef %54)
  %56 = load ptr, ptr @stdout, align 8, !tbaa !5
  %57 = call i32 @fflush(ptr noundef %56)
  call void @exit(i32 noundef 1) #11
  unreachable

58:                                               ; preds = %46
  call void @_Z10ut_check_vPvS_j8DataTypef(ptr noundef %31, ptr noundef %32, i32 noundef %21, i32 noundef %2, float noundef 0x3F847AE140000000)
  %59 = call noundef double @_Z10ut_time_msv()
  %60 = call i32 @vector_vector_axpby(float noundef %25, ptr noundef nonnull byval(%struct.TensorDesc) align 8 %4, ptr noundef %30, float noundef %29, ptr noundef nonnull byval(%struct.TensorDesc) align 8 %5, ptr noundef %31, i32 noundef 1)
  %61 = call i32 @vector_vector_axpby(float noundef %25, ptr noundef nonnull byval(%struct.TensorDesc) align 8 %4, ptr noundef %30, float noundef %29, ptr noundef nonnull byval(%struct.TensorDesc) align 8 %5, ptr noundef %31, i32 noundef 1)
  %62 = call i32 @vector_vector_axpby(float noundef %25, ptr noundef nonnull byval(%struct.TensorDesc) align 8 %4, ptr noundef %30, float noundef %29, ptr noundef nonnull byval(%struct.TensorDesc) align 8 %5, ptr noundef %31, i32 noundef 1)
  %63 = call i32 @vector_vector_axpby(float noundef %25, ptr noundef nonnull byval(%struct.TensorDesc) align 8 %4, ptr noundef %30, float noundef %29, ptr noundef nonnull byval(%struct.TensorDesc) align 8 %5, ptr noundef %31, i32 noundef 1)
  %64 = call i32 @vector_vector_axpby(float noundef %25, ptr noundef nonnull byval(%struct.TensorDesc) align 8 %4, ptr noundef %30, float noundef %29, ptr noundef nonnull byval(%struct.TensorDesc) align 8 %5, ptr noundef %31, i32 noundef 1)
  %65 = call i32 @vector_vector_axpby(float noundef %25, ptr noundef nonnull byval(%struct.TensorDesc) align 8 %4, ptr noundef %30, float noundef %29, ptr noundef nonnull byval(%struct.TensorDesc) align 8 %5, ptr noundef %31, i32 noundef 1)
  %66 = call noundef double @_Z10ut_time_msv()
  %67 = fsub double %66, %59
  %68 = fdiv double %67, 6.000000e+00
  call void @llvm.lifetime.start.p0(i64 150, ptr nonnull %6) #10
  call void @llvm.lifetime.start.p0(i64 120, ptr nonnull %7) #10
  %69 = fpext float %25 to double
  %70 = fpext float %29 to double
  %71 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef nonnull dereferenceable(1) %7, ptr noundef nonnull dereferenceable(1) @.str.3, double noundef %69, i32 noundef %21, double noundef %70, i32 noundef %21, i32 noundef %21) #10
  %72 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef nonnull dereferenceable(1) %6, ptr noundef nonnull dereferenceable(1) @.str.4, ptr noundef nonnull @.str.5, ptr noundef nonnull %7) #10
  %73 = uitofp i32 %21 to double
  %74 = fmul double %73, 3.000000e+00
  call void @_Z6ut_log8DataTypePcdd(i32 noundef %2, ptr noundef nonnull %6, double noundef %74, double noundef %68)
  call void @free(ptr noundef %30) #10
  call void @free(ptr noundef %31) #10
  call void @free(ptr noundef %32) #10
  call void @llvm.lifetime.end.p0(i64 120, ptr nonnull %7) #10
  call void @llvm.lifetime.end.p0(i64 150, ptr nonnull %6) #10
  call void @llvm.lifetime.end.p0(i64 92, ptr nonnull %5) #10
  call void @llvm.lifetime.end.p0(i64 92, ptr nonnull %4) #10
  ret i32 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: nounwind
declare i64 @syscall(i64 noundef, ...) local_unnamed_addr #2

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

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

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

; Function Attrs: inlinehint mustprogress nofree nounwind willreturn memory(read) uwtable
declare i32 @atoi(ptr nocapture noundef nonnull) local_unnamed_addr #5

; Function Attrs: inlinehint mustprogress nofree nounwind willreturn memory(read) uwtable
declare double @atof(ptr nocapture noundef nonnull) local_unnamed_addr #5

; 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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_Z10UNI_MEMCPYPvPKvm(ptr noundef, ptr noundef, i64 noundef) local_unnamed_addr #6

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef i32 @_Z14tensorNumBytes10TensorDesc(ptr noundef byval(%struct.TensorDesc) align 8) local_unnamed_addr #6

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

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

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

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

declare noundef double @_Z10ut_time_msv() local_unnamed_addr #7

; Function Attrs: nofree nounwind
declare noundef i32 @sprintf(ptr noalias nocapture noundef writeonly, ptr nocapture noundef readonly, ...) local_unnamed_addr #3

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_Z6ut_log8DataTypePcdd(i32 noundef, ptr noundef, double noundef, double noundef) local_unnamed_addr #6

; Function Attrs: mustprogress nounwind willreturn allockind("free") memory(argmem: readwrite, inaccessiblemem: readwrite)
declare void @free(ptr allocptr nocapture noundef) local_unnamed_addr #9

attributes #0 = { 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 #1 = { mustprogress 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 = { 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 #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 nofree nounwind willreturn memory(read) 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 = { 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 = { "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 = { 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 #9 = { mustprogress nounwind willreturn allockind("free") memory(argmem: readwrite, inaccessiblemem: readwrite) "alloc-family"="malloc" "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 #10 = { nounwind }
attributes #11 = { noreturn nounwind }
attributes #12 = { nounwind willreturn memory(read) }

!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"}


; Effective O3 passes: DSEPass,EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,LoopRotatePass,MemCpyOptPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass