; LLVM IR from NVIDIA/DALI :: dali/operators/math/expressions (broadcasting)

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

%"class.dali::span.8" = type { ptr, i64 }
%"class.dali::SmallVector.9" = type { %union.anon.12, i64 }
%union.anon.12 = type { %struct.anon.13, [152 x i8] }
%struct.anon.13 = type { ptr, i64 }
%class.anon = type { ptr, ptr }
%class.anon.14 = type { ptr, ptr }
%"class.dali::SmallVector.15" = type { %union.anon.16, i64 }
%union.anon.16 = type { %struct.anon.17, [8 x i8] }
%struct.anon.17 = type { ptr, i64 }
%class.anon.18 = type { ptr, ptr, ptr }
%class.anon.19 = type { ptr, ptr, ptr, ptr, ptr, ptr }
%"struct.dali::TensorShape" = type { %"struct.dali::TensorShapeBase" }
%"struct.dali::TensorShapeBase" = type { %"class.dali::SmallVector" }
%"class.dali::SmallVector" = type { %union.anon.5, i64 }
%union.anon.5 = type { %struct.anon, [32 x i8] }
%struct.anon = type { ptr, i64 }

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

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK4dali15TensorShapeBaseINS_11SmallVectorIlLm6ESaIlEEELin1EE10sample_dimEv(ptr noundef nonnull align 8 dereferenceable(56)) #1 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN4dali15TensorShapeBaseINS_11SmallVectorIlLm6ESaIlEEELin1EED2Ev(ptr noundef nonnull align 8 dereferenceable(56)) unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(56) ptr @_ZN4dali11TensorShapeILin1EEaSERKS1_(ptr noundef nonnull align 8 dereferenceable(56), ptr noundef nonnull align 8 dereferenceable(56)) #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4dali11TensorShapeILin1EEC2Ev(ptr noundef nonnull align 8 dereferenceable(56)) unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(56) ptr @_ZN4dali11TensorShapeILin1EEaSEOS1_(ptr noundef nonnull align 8 dereferenceable(56), ptr noundef nonnull align 8 dereferenceable(56)) #3 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4dali4expr29SimplifyShapesForBroadcastingENS_4spanIPNS_11TensorShapeILin1EEELln1EEE(ptr %0, i64 %1) #3 personality ptr @__gxx_personality_v0 {
  %3 = alloca %"class.dali::span.8", align 8
  %4 = alloca i32, align 4
  %5 = alloca %"class.dali::SmallVector.9", align 8
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca %class.anon, align 8
  %11 = alloca %class.anon.14, align 8
  %12 = alloca %"class.dali::SmallVector.15", align 8
  %13 = alloca i64, align 8
  %14 = alloca i32, align 4
  %15 = alloca %class.anon.18, align 8
  %16 = alloca %class.anon.19, align 8
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  %21 = alloca %"struct.dali::TensorShape", align 8
  %22 = alloca i32, align 4
  %23 = getelementptr inbounds { ptr, i64 }, ptr %3, i32 0, i32 0
  store ptr %0, ptr %23, align 8
  %24 = getelementptr inbounds { ptr, i64 }, ptr %3, i32 0, i32 1
  store i64 %1, ptr %24, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #6
  %25 = call noundef i64 @_ZNK4dali4spanIPNS_11TensorShapeILin1EEELln1EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(16) %3) #6
  %26 = trunc i64 %25 to i32
  store i32 %26, ptr %4, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 176, ptr %5) #6
  call void @_ZN4dali11SmallVectorINS_11TensorShapeILin1EEELm3ESaIS2_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(176) %5)
  %27 = load i32, ptr %4, align 4, !tbaa !5
  %28 = sext i32 %27 to i64
  invoke void @_ZN4dali11SmallVectorINS_11TensorShapeILin1EEELm3ESaIS2_EE6resizeEm(ptr noundef nonnull align 8 dereferenceable(176) %5, i64 noundef %28)
          to label %29 unwind label %39

29:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #6
  %30 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNK4dali4spanIPNS_11TensorShapeILin1EEELln1EEixEl(ptr noundef nonnull align 8 dereferenceable(16) %3, i64 noundef 0)
          to label %31 unwind label %43

31:                                               ; preds = %29
  %32 = load ptr, ptr %30, align 8, !tbaa !9
  %33 = call noundef i32 @_ZNK4dali15TensorShapeBaseINS_11SmallVectorIlLm6ESaIlEEELin1EE10sample_dimEv(ptr noundef nonnull align 8 dereferenceable(56) %32) #6
  store i32 %33, ptr %8, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #6
  store i32 1, ptr %9, align 4, !tbaa !5
  br label %34

34:                                               ; preds = %68, %31
  %35 = load i32, ptr %9, align 4, !tbaa !5
  %36 = load i32, ptr %4, align 4, !tbaa !5
  %37 = icmp slt i32 %35, %36
  br i1 %37, label %47, label %38

38:                                               ; preds = %34
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #6
  br label %71

39:                                               ; preds = %2
  %40 = landingpad { ptr, i32 }
          cleanup
  %41 = extractvalue { ptr, i32 } %40, 0
  store ptr %41, ptr %6, align 8
  %42 = extractvalue { ptr, i32 } %40, 1
  store i32 %42, ptr %7, align 4
  br label %263

43:                                               ; preds = %29
  %44 = landingpad { ptr, i32 }
          cleanup
  %45 = extractvalue { ptr, i32 } %44, 0
  store ptr %45, ptr %6, align 8
  %46 = extractvalue { ptr, i32 } %44, 1
  store i32 %46, ptr %7, align 4
  br label %262

47:                                               ; preds = %34
  %48 = load i32, ptr %9, align 4, !tbaa !5
  %49 = sext i32 %48 to i64
  %50 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNK4dali4spanIPNS_11TensorShapeILin1EEELln1EEixEl(ptr noundef nonnull align 8 dereferenceable(16) %3, i64 noundef %49)
          to label %51 unwind label %63

51:                                               ; preds = %47
  %52 = load ptr, ptr %50, align 8, !tbaa !9
  %53 = call noundef i32 @_ZNK4dali15TensorShapeBaseINS_11SmallVectorIlLm6ESaIlEEELin1EE10sample_dimEv(ptr noundef nonnull align 8 dereferenceable(56) %52) #6
  %54 = load i32, ptr %8, align 4, !tbaa !5
  %55 = icmp sgt i32 %53, %54
  br i1 %55, label %56, label %67

56:                                               ; preds = %51
  %57 = load i32, ptr %9, align 4, !tbaa !5
  %58 = sext i32 %57 to i64
  %59 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNK4dali4spanIPNS_11TensorShapeILin1EEELln1EEixEl(ptr noundef nonnull align 8 dereferenceable(16) %3, i64 noundef %58)
          to label %60 unwind label %63

60:                                               ; preds = %56
  %61 = load ptr, ptr %59, align 8, !tbaa !9
  %62 = call noundef i32 @_ZNK4dali15TensorShapeBaseINS_11SmallVectorIlLm6ESaIlEEELin1EE10sample_dimEv(ptr noundef nonnull align 8 dereferenceable(56) %61) #6
  store i32 %62, ptr %8, align 4, !tbaa !5
  br label %67

63:                                               ; preds = %56, %47
  %64 = landingpad { ptr, i32 }
          cleanup
  %65 = extractvalue { ptr, i32 } %64, 0
  store ptr %65, ptr %6, align 8
  %66 = extractvalue { ptr, i32 } %64, 1
  store i32 %66, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #6
  br label %262

67:                                               ; preds = %60, %51
  br label %68

68:                                               ; preds = %67
  %69 = load i32, ptr %9, align 4, !tbaa !5
  %70 = add nsw i32 %69, 1
  store i32 %70, ptr %9, align 4, !tbaa !5
  br label %34, !llvm.loop !11

71:                                               ; preds = %38
  call void @llvm.lifetime.start.p0(i64 16, ptr %10) #6
  %72 = getelementptr inbounds %class.anon, ptr %10, i32 0, i32 0
  store ptr %3, ptr %72, align 8, !tbaa !9
  %73 = getelementptr inbounds %class.anon, ptr %10, i32 0, i32 1
  store ptr %8, ptr %73, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 16, ptr %11) #6
  %74 = getelementptr inbounds %class.anon.14, ptr %11, i32 0, i32 0
  store ptr %4, ptr %74, align 8, !tbaa !9
  %75 = getelementptr inbounds %class.anon.14, ptr %11, i32 0, i32 1
  store ptr %10, ptr %75, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 32, ptr %12) #6
  invoke void @_ZN4dali11SmallVectorIlLm3ESaIlEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %12)
          to label %76 unwind label %98

76:                                               ; preds = %71
  %77 = load i32, ptr %4, align 4, !tbaa !5
  %78 = sext i32 %77 to i64
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #6
  store i64 1, ptr %13, align 8, !tbaa !13
  invoke void @_ZN4dali11SmallVectorIlLm3ESaIlEE6resizeEmRKl(ptr noundef nonnull align 8 dereferenceable(32) %12, i64 noundef %78, ptr noundef nonnull align 8 dereferenceable(8) %13)
          to label %79 unwind label %102

79:                                               ; preds = %76
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #6
  store i32 0, ptr %14, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 24, ptr %15) #6
  %80 = getelementptr inbounds %class.anon.18, ptr %15, i32 0, i32 0
  store ptr %4, ptr %80, align 8, !tbaa !9
  %81 = getelementptr inbounds %class.anon.18, ptr %15, i32 0, i32 1
  store ptr %10, ptr %81, align 8, !tbaa !9
  %82 = getelementptr inbounds %class.anon.18, ptr %15, i32 0, i32 2
  store ptr %14, ptr %82, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 48, ptr %16) #6
  %83 = getelementptr inbounds %class.anon.19, ptr %16, i32 0, i32 0
  store ptr %14, ptr %83, align 8, !tbaa !9
  %84 = getelementptr inbounds %class.anon.19, ptr %16, i32 0, i32 1
  store ptr %4, ptr %84, align 8, !tbaa !9
  %85 = getelementptr inbounds %class.anon.19, ptr %16, i32 0, i32 2
  store ptr %5, ptr %85, align 8, !tbaa !9
  %86 = getelementptr inbounds %class.anon.19, ptr %16, i32 0, i32 3
  store ptr %12, ptr %86, align 8, !tbaa !9
  %87 = getelementptr inbounds %class.anon.19, ptr %16, i32 0, i32 4
  store ptr %8, ptr %87, align 8, !tbaa !9
  %88 = getelementptr inbounds %class.anon.19, ptr %16, i32 0, i32 5
  store ptr %10, ptr %88, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #6
  store i32 0, ptr %17, align 4, !tbaa !5
  br label %89

89:                                               ; preds = %111, %79
  %90 = load i32, ptr %17, align 4, !tbaa !5
  %91 = load i32, ptr %8, align 4, !tbaa !5
  %92 = icmp slt i32 %90, %91
  br i1 %92, label %93, label %114

93:                                               ; preds = %89
  %94 = load i32, ptr %17, align 4, !tbaa !5
  %95 = invoke noundef zeroext i1 @"_ZZN4dali4expr29SimplifyShapesForBroadcastingENS_4spanIPNS_11TensorShapeILin1EEELln1EEEENK3$_1clEi"(ptr noundef nonnull align 8 dereferenceable(16) %11, i32 noundef %94)
          to label %96 unwind label %106

96:                                               ; preds = %93
  br i1 %95, label %110, label %97

97:                                               ; preds = %96
  br label %114

98:                                               ; preds = %71
  %99 = landingpad { ptr, i32 }
          cleanup
  %100 = extractvalue { ptr, i32 } %99, 0
  store ptr %100, ptr %6, align 8
  %101 = extractvalue { ptr, i32 } %99, 1
  store i32 %101, ptr %7, align 4
  br label %261

102:                                              ; preds = %76
  %103 = landingpad { ptr, i32 }
          cleanup
  %104 = extractvalue { ptr, i32 } %103, 0
  store ptr %104, ptr %6, align 8
  %105 = extractvalue { ptr, i32 } %103, 1
  store i32 %105, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #6
  br label %260

106:                                              ; preds = %190, %184, %155, %150, %93
  %107 = landingpad { ptr, i32 }
          cleanup
  %108 = extractvalue { ptr, i32 } %107, 0
  store ptr %108, ptr %6, align 8
  %109 = extractvalue { ptr, i32 } %107, 1
  store i32 %109, ptr %7, align 4
  br label %259

110:                                              ; preds = %96
  br label %111

111:                                              ; preds = %110
  %112 = load i32, ptr %17, align 4, !tbaa !5
  %113 = add nsw i32 %112, 1
  store i32 %113, ptr %17, align 4, !tbaa !5
  br label %89, !llvm.loop !15

114:                                              ; preds = %97, %89
  %115 = load i32, ptr %17, align 4, !tbaa !5
  %116 = load i32, ptr %8, align 4, !tbaa !5
  %117 = icmp slt i32 %115, %116
  br i1 %117, label %118, label %193

118:                                              ; preds = %114
  %119 = load i32, ptr %17, align 4, !tbaa !5
  store i32 %119, ptr %14, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #6
  store i32 0, ptr %18, align 4, !tbaa !5
  br label %120

120:                                              ; preds = %136, %118
  %121 = load i32, ptr %18, align 4, !tbaa !5
  %122 = load i32, ptr %4, align 4, !tbaa !5
  %123 = icmp slt i32 %121, %122
  br i1 %123, label %125, label %124

124:                                              ; preds = %120
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #6
  br label %143

125:                                              ; preds = %120
  %126 = load i32, ptr %18, align 4, !tbaa !5
  %127 = load i32, ptr %17, align 4, !tbaa !5
  %128 = invoke noundef i64 @"_ZZN4dali4expr29SimplifyShapesForBroadcastingENS_4spanIPNS_11TensorShapeILin1EEELln1EEEENK3$_0clEii"(ptr noundef nonnull align 8 dereferenceable(16) %10, i32 noundef %126, i32 noundef %127)
          to label %129 unwind label %139

129:                                              ; preds = %125
  %130 = load i32, ptr %18, align 4, !tbaa !5
  %131 = sext i32 %130 to i64
  %132 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN4dali11SmallVectorIlLm3ESaIlEEixEl(ptr noundef nonnull align 8 dereferenceable(32) %12, i64 noundef %131)
          to label %133 unwind label %139

133:                                              ; preds = %129
  %134 = load i64, ptr %132, align 8, !tbaa !13
  %135 = mul nsw i64 %134, %128
  store i64 %135, ptr %132, align 8, !tbaa !13
  br label %136

136:                                              ; preds = %133
  %137 = load i32, ptr %18, align 4, !tbaa !5
  %138 = add nsw i32 %137, 1
  store i32 %138, ptr %18, align 4, !tbaa !5
  br label %120, !llvm.loop !16

139:                                              ; preds = %129, %125
  %140 = landingpad { ptr, i32 }
          cleanup
  %141 = extractvalue { ptr, i32 } %140, 0
  store ptr %141, ptr %6, align 8
  %142 = extractvalue { ptr, i32 } %140, 1
  store i32 %142, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #6
  br label %259

143:                                              ; preds = %124
  %144 = load i32, ptr %17, align 4, !tbaa !5
  %145 = add nsw i32 %144, 1
  store i32 %145, ptr %17, align 4, !tbaa !5
  br label %146

146:                                              ; preds = %187, %143
  %147 = load i32, ptr %17, align 4, !tbaa !5
  %148 = load i32, ptr %8, align 4, !tbaa !5
  %149 = icmp slt i32 %147, %148
  br i1 %149, label %150, label %190

150:                                              ; preds = %146
  %151 = load i32, ptr %17, align 4, !tbaa !5
  %152 = invoke noundef zeroext i1 @"_ZZN4dali4expr29SimplifyShapesForBroadcastingENS_4spanIPNS_11TensorShapeILin1EEELln1EEEENK3$_1clEi"(ptr noundef nonnull align 8 dereferenceable(16) %11, i32 noundef %151)
          to label %153 unwind label %106

153:                                              ; preds = %150
  br i1 %152, label %154, label %155

154:                                              ; preds = %153
  br label %187

155:                                              ; preds = %153
  %156 = load i32, ptr %17, align 4, !tbaa !5
  %157 = invoke noundef zeroext i1 @"_ZZN4dali4expr29SimplifyShapesForBroadcastingENS_4spanIPNS_11TensorShapeILin1EEELln1EEEENK3$_2clEi"(ptr noundef nonnull align 8 dereferenceable(24) %15, i32 noundef %156)
          to label %158 unwind label %106

158:                                              ; preds = %155
  br i1 %157, label %159, label %184

159:                                              ; preds = %158
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #6
  store i32 0, ptr %19, align 4, !tbaa !5
  br label %160

160:                                              ; preds = %176, %159
  %161 = load i32, ptr %19, align 4, !tbaa !5
  %162 = load i32, ptr %4, align 4, !tbaa !5
  %163 = icmp slt i32 %161, %162
  br i1 %163, label %165, label %164

164:                                              ; preds = %160
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #6
  br label %183

165:                                              ; preds = %160
  %166 = load i32, ptr %19, align 4, !tbaa !5
  %167 = load i32, ptr %17, align 4, !tbaa !5
  %168 = invoke noundef i64 @"_ZZN4dali4expr29SimplifyShapesForBroadcastingENS_4spanIPNS_11TensorShapeILin1EEELln1EEEENK3$_0clEii"(ptr noundef nonnull align 8 dereferenceable(16) %10, i32 noundef %166, i32 noundef %167)
          to label %169 unwind label %179

169:                                              ; preds = %165
  %170 = load i32, ptr %19, align 4, !tbaa !5
  %171 = sext i32 %170 to i64
  %172 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN4dali11SmallVectorIlLm3ESaIlEEixEl(ptr noundef nonnull align 8 dereferenceable(32) %12, i64 noundef %171)
          to label %173 unwind label %179

173:                                              ; preds = %169
  %174 = load i64, ptr %172, align 8, !tbaa !13
  %175 = mul nsw i64 %174, %168
  store i64 %175, ptr %172, align 8, !tbaa !13
  br label %176

176:                                              ; preds = %173
  %177 = load i32, ptr %19, align 4, !tbaa !5
  %178 = add nsw i32 %177, 1
  store i32 %178, ptr %19, align 4, !tbaa !5
  br label %160, !llvm.loop !17

179:                                              ; preds = %169, %165
  %180 = landingpad { ptr, i32 }
          cleanup
  %181 = extractvalue { ptr, i32 } %180, 0
  store ptr %181, ptr %6, align 8
  %182 = extractvalue { ptr, i32 } %180, 1
  store i32 %182, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #6
  br label %259

183:                                              ; preds = %164
  br label %187

184:                                              ; preds = %158
  %185 = load i32, ptr %17, align 4, !tbaa !5
  invoke void @"_ZZN4dali4expr29SimplifyShapesForBroadcastingENS_4spanIPNS_11TensorShapeILin1EEELln1EEEENK3$_3clEi"(ptr noundef nonnull align 8 dereferenceable(48) %16, i32 noundef %185)
          to label %186 unwind label %106

186:                                              ; preds = %184
  br label %187

187:                                              ; preds = %186, %183, %154
  %188 = load i32, ptr %17, align 4, !tbaa !5
  %189 = add nsw i32 %188, 1
  store i32 %189, ptr %17, align 4, !tbaa !5
  br label %146, !llvm.loop !18

190:                                              ; preds = %146
  %191 = load i32, ptr %17, align 4, !tbaa !5
  invoke void @"_ZZN4dali4expr29SimplifyShapesForBroadcastingENS_4spanIPNS_11TensorShapeILin1EEELln1EEEENK3$_3clEi"(ptr noundef nonnull align 8 dereferenceable(48) %16, i32 noundef %191)
          to label %192 unwind label %106

192:                                              ; preds = %190
  br label %193

193:                                              ; preds = %192, %114
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #6
  store i32 0, ptr %20, align 4, !tbaa !5
  br label %194

194:                                              ; preds = %229, %193
  %195 = load i32, ptr %20, align 4, !tbaa !5
  %196 = load i32, ptr %4, align 4, !tbaa !5
  %197 = icmp slt i32 %195, %196
  br i1 %197, label %199, label %198

198:                                              ; preds = %194
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #6
  br label %233

199:                                              ; preds = %194
  %200 = load i32, ptr %20, align 4, !tbaa !5
  %201 = sext i32 %200 to i64
  %202 = invoke noundef nonnull align 8 dereferenceable(56) ptr @_ZN4dali11SmallVectorINS_11TensorShapeILin1EEELm3ESaIS2_EEixEl(ptr noundef nonnull align 8 dereferenceable(176) %5, i64 noundef %201)
          to label %203 unwind label %215

203:                                              ; preds = %199
  %204 = invoke noundef i64 @_ZN4dali6volumeINS_11TensorShapeILin1EEEEEDTcl6volumeclsr4daliE5beginfp_Eclsr4daliE3endfp_EEERKT_(ptr noundef nonnull align 8 dereferenceable(56) %202)
          to label %205 unwind label %215

205:                                              ; preds = %203
  %206 = icmp eq i64 %204, 1
  br i1 %206, label %207, label %228

207:                                              ; preds = %205
  call void @llvm.lifetime.start.p0(i64 56, ptr %21) #6
  call void @llvm.memset.p0.i64(ptr align 8 %21, i8 0, i64 56, i1 false)
  invoke void @_ZN4dali11TensorShapeILin1EEC2Ev(ptr noundef nonnull align 8 dereferenceable(56) %21)
          to label %208 unwind label %219

208:                                              ; preds = %207
  %209 = load i32, ptr %20, align 4, !tbaa !5
  %210 = sext i32 %209 to i64
  %211 = invoke noundef nonnull align 8 dereferenceable(56) ptr @_ZN4dali11SmallVectorINS_11TensorShapeILin1EEELm3ESaIS2_EEixEl(ptr noundef nonnull align 8 dereferenceable(176) %5, i64 noundef %210)
          to label %212 unwind label %223

212:                                              ; preds = %208
  %213 = invoke noundef nonnull align 8 dereferenceable(56) ptr @_ZN4dali11TensorShapeILin1EEaSEOS1_(ptr noundef nonnull align 8 dereferenceable(56) %211, ptr noundef nonnull align 8 dereferenceable(56) %21)
          to label %214 unwind label %223

214:                                              ; preds = %212
  call void @_ZN4dali15TensorShapeBaseINS_11SmallVectorIlLm6ESaIlEEELin1EED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %21) #6
  call void @llvm.lifetime.end.p0(i64 56, ptr %21) #6
  br label %228

215:                                              ; preds = %203, %199
  %216 = landingpad { ptr, i32 }
          cleanup
  %217 = extractvalue { ptr, i32 } %216, 0
  store ptr %217, ptr %6, align 8
  %218 = extractvalue { ptr, i32 } %216, 1
  store i32 %218, ptr %7, align 4
  br label %232

219:                                              ; preds = %207
  %220 = landingpad { ptr, i32 }
          cleanup
  %221 = extractvalue { ptr, i32 } %220, 0
  store ptr %221, ptr %6, align 8
  %222 = extractvalue { ptr, i32 } %220, 1
  store i32 %222, ptr %7, align 4
  br label %227

223:                                              ; preds = %212, %208
  %224 = landingpad { ptr, i32 }
          cleanup
  %225 = extractvalue { ptr, i32 } %224, 0
  store ptr %225, ptr %6, align 8
  %226 = extractvalue { ptr, i32 } %224, 1
  store i32 %226, ptr %7, align 4
  call void @_ZN4dali15TensorShapeBaseINS_11SmallVectorIlLm6ESaIlEEELin1EED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %21) #6
  br label %227

227:                                              ; preds = %223, %219
  call void @llvm.lifetime.end.p0(i64 56, ptr %21) #6
  br label %232

228:                                              ; preds = %214, %205
  br label %229

229:                                              ; preds = %228
  %230 = load i32, ptr %20, align 4, !tbaa !5
  %231 = add nsw i32 %230, 1
  store i32 %231, ptr %20, align 4, !tbaa !5
  br label %194, !llvm.loop !19

232:                                              ; preds = %227, %215
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #6
  br label %259

233:                                              ; preds = %198
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #6
  store i32 0, ptr %22, align 4, !tbaa !5
  br label %234

234:                                              ; preds = %251, %233
  %235 = load i32, ptr %22, align 4, !tbaa !5
  %236 = load i32, ptr %4, align 4, !tbaa !5
  %237 = icmp slt i32 %235, %236
  br i1 %237, label %239, label %238

238:                                              ; preds = %234
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #6
  br label %258

239:                                              ; preds = %234
  %240 = load i32, ptr %22, align 4, !tbaa !5
  %241 = sext i32 %240 to i64
  %242 = invoke noundef nonnull align 8 dereferenceable(56) ptr @_ZN4dali11SmallVectorINS_11TensorShapeILin1EEELm3ESaIS2_EEixEl(ptr noundef nonnull align 8 dereferenceable(176) %5, i64 noundef %241)
          to label %243 unwind label %254

243:                                              ; preds = %239
  %244 = load i32, ptr %22, align 4, !tbaa !5
  %245 = sext i32 %244 to i64
  %246 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNK4dali4spanIPNS_11TensorShapeILin1EEELln1EEixEl(ptr noundef nonnull align 8 dereferenceable(16) %3, i64 noundef %245)
          to label %247 unwind label %254

247:                                              ; preds = %243
  %248 = load ptr, ptr %246, align 8, !tbaa !9
  %249 = invoke noundef nonnull align 8 dereferenceable(56) ptr @_ZN4dali11TensorShapeILin1EEaSERKS1_(ptr noundef nonnull align 8 dereferenceable(56) %248, ptr noundef nonnull align 8 dereferenceable(56) %242)
          to label %250 unwind label %254

250:                                              ; preds = %247
  br label %251

251:                                              ; preds = %250
  %252 = load i32, ptr %22, align 4, !tbaa !5
  %253 = add nsw i32 %252, 1
  store i32 %253, ptr %22, align 4, !tbaa !5
  br label %234, !llvm.loop !20

254:                                              ; preds = %247, %243, %239
  %255 = landingpad { ptr, i32 }
          cleanup
  %256 = extractvalue { ptr, i32 } %255, 0
  store ptr %256, ptr %6, align 8
  %257 = extractvalue { ptr, i32 } %255, 1
  store i32 %257, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #6
  br label %259

258:                                              ; preds = %238
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #6
  call void @llvm.lifetime.end.p0(i64 48, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #6
  call void @_ZN4dali11SmallVectorIlLm3ESaIlEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %12) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #6
  call void @_ZN4dali11SmallVectorINS_11TensorShapeILin1EEELm3ESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(176) %5) #6
  call void @llvm.lifetime.end.p0(i64 176, ptr %5) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #6
  ret void

259:                                              ; preds = %254, %232, %179, %139, %106
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #6
  call void @llvm.lifetime.end.p0(i64 48, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #6
  br label %260

260:                                              ; preds = %259, %102
  call void @_ZN4dali11SmallVectorIlLm3ESaIlEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %12) #6
  br label %261

261:                                              ; preds = %260, %98
  call void @llvm.lifetime.end.p0(i64 32, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %10) #6
  br label %262

262:                                              ; preds = %261, %63, %43
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #6
  br label %263

263:                                              ; preds = %262, %39
  call void @_ZN4dali11SmallVectorINS_11TensorShapeILin1EEELm3ESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(176) %5) #6
  call void @llvm.lifetime.end.p0(i64 176, ptr %5) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #6
  br label %264

264:                                              ; preds = %263
  %265 = load ptr, ptr %6, align 8
  %266 = load i32, ptr %7, align 4
  %267 = insertvalue { ptr, i32 } poison, ptr %265, 0
  %268 = insertvalue { ptr, i32 } %267, i32 %266, 1
  resume { ptr, i32 } %268
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNK4dali4spanIPNS_11TensorShapeILin1EEELln1EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(16)) #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4dali11SmallVectorINS_11TensorShapeILin1EEELm3ESaIS2_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(176)) unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4dali11SmallVectorINS_11TensorShapeILin1EEELm3ESaIS2_EE6resizeEm(ptr noundef nonnull align 8 dereferenceable(176), i64 noundef) #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZNK4dali4spanIPNS_11TensorShapeILin1EEELln1EEixEl(ptr noundef nonnull align 8 dereferenceable(16), i64 noundef) #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4dali11SmallVectorIlLm3ESaIlEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4dali11SmallVectorIlLm3ESaIlEE6resizeEmRKl(ptr noundef nonnull align 8 dereferenceable(32), i64 noundef, ptr noundef nonnull align 8 dereferenceable(8)) #3 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare hidden noundef zeroext i1 @"_ZZN4dali4expr29SimplifyShapesForBroadcastingENS_4spanIPNS_11TensorShapeILin1EEELln1EEEENK3$_1clEi"(ptr noundef nonnull align 8 dereferenceable(16), i32 noundef) #4 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare hidden noundef i64 @"_ZZN4dali4expr29SimplifyShapesForBroadcastingENS_4spanIPNS_11TensorShapeILin1EEELln1EEEENK3$_0clEii"(ptr noundef nonnull align 8 dereferenceable(16), i32 noundef, i32 noundef) #4 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZN4dali11SmallVectorIlLm3ESaIlEEixEl(ptr noundef nonnull align 8 dereferenceable(32), i64 noundef) #4 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare hidden noundef zeroext i1 @"_ZZN4dali4expr29SimplifyShapesForBroadcastingENS_4spanIPNS_11TensorShapeILin1EEELln1EEEENK3$_2clEi"(ptr noundef nonnull align 8 dereferenceable(24), i32 noundef) #4 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare hidden void @"_ZZN4dali4expr29SimplifyShapesForBroadcastingENS_4spanIPNS_11TensorShapeILin1EEELln1EEEENK3$_3clEi"(ptr noundef nonnull align 8 dereferenceable(48), i32 noundef) #4 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef i64 @_ZN4dali6volumeINS_11TensorShapeILin1EEEEEDTcl6volumeclsr4daliE5beginfp_Eclsr4daliE3endfp_EEERKT_(ptr noundef nonnull align 8 dereferenceable(56)) #4

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(56) ptr @_ZN4dali11SmallVectorINS_11TensorShapeILin1EEELm3ESaIS2_EEixEl(ptr noundef nonnull align 8 dereferenceable(176), i64 noundef) #4 align 2

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #5

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4dali11SmallVectorIlLm3ESaIlEED2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4dali11SmallVectorINS_11TensorShapeILin1EEELm3ESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(176)) unnamed_addr #1 align 2

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { 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 #3 = { 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 #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 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #6 = { 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 = !{!"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 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = !{!14, !14, i64 0}
!14 = !{!"long", !7, i64 0}
!15 = distinct !{!15, !12}
!16 = distinct !{!16, !12}
!17 = distinct !{!17, !12}
!18 = distinct !{!18, !12}
!19 = distinct !{!19, !12}
!20 = distinct !{!20, !12}


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

%"class.dali::span.8" = type { ptr, i64 }
%"class.dali::SmallVector.9" = type { %union.anon.12, i64 }
%union.anon.12 = type { %struct.anon.13, [152 x i8] }
%struct.anon.13 = type { ptr, i64 }
%class.anon = type { ptr, ptr }
%class.anon.14 = type { ptr, ptr }
%"class.dali::SmallVector.15" = type { %union.anon.16, i64 }
%union.anon.16 = type { %struct.anon.17, [8 x i8] }
%struct.anon.17 = type { ptr, i64 }
%class.anon.18 = type { ptr, ptr, ptr }
%class.anon.19 = type { ptr, ptr, ptr, ptr, ptr, ptr }
%"struct.dali::TensorShape" = type { %"struct.dali::TensorShapeBase" }
%"struct.dali::TensorShapeBase" = type { %"class.dali::SmallVector" }
%"class.dali::SmallVector" = type { %union.anon.5, i64 }
%union.anon.5 = type { %struct.anon, [32 x i8] }
%struct.anon = type { ptr, i64 }

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

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK4dali15TensorShapeBaseINS_11SmallVectorIlLm6ESaIlEEELin1EE10sample_dimEv(ptr noundef nonnull align 8 dereferenceable(56)) local_unnamed_addr #1 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN4dali15TensorShapeBaseINS_11SmallVectorIlLm6ESaIlEEELin1EED2Ev(ptr noundef nonnull align 8 dereferenceable(56)) unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(56) ptr @_ZN4dali11TensorShapeILin1EEaSERKS1_(ptr noundef nonnull align 8 dereferenceable(56), ptr noundef nonnull align 8 dereferenceable(56)) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4dali11TensorShapeILin1EEC2Ev(ptr noundef nonnull align 8 dereferenceable(56)) unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(56) ptr @_ZN4dali11TensorShapeILin1EEaSEOS1_(ptr noundef nonnull align 8 dereferenceable(56), ptr noundef nonnull align 8 dereferenceable(56)) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4dali4expr29SimplifyShapesForBroadcastingENS_4spanIPNS_11TensorShapeILin1EEELln1EEE(ptr %0, i64 %1) local_unnamed_addr #3 personality ptr @__gxx_personality_v0 {
  %3 = alloca %"class.dali::span.8", align 8
  %4 = alloca i32, align 4
  %5 = alloca %"class.dali::SmallVector.9", align 8
  %6 = alloca i32, align 4
  %7 = alloca %class.anon, align 8
  %8 = alloca %class.anon.14, align 8
  %9 = alloca %"class.dali::SmallVector.15", align 8
  %10 = alloca i64, align 8
  %11 = alloca i32, align 4
  %12 = alloca %class.anon.18, align 8
  %13 = alloca %class.anon.19, align 8
  %14 = alloca %"struct.dali::TensorShape", align 8
  store ptr %0, ptr %3, align 8
  %15 = getelementptr inbounds i8, ptr %3, i64 8
  store i64 %1, ptr %15, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #6
  %16 = call noundef i64 @_ZNK4dali4spanIPNS_11TensorShapeILin1EEELln1EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(16) %3) #6
  %17 = trunc i64 %16 to i32
  store i32 %17, ptr %4, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 176, ptr nonnull %5) #6
  call void @_ZN4dali11SmallVectorINS_11TensorShapeILin1EEELm3ESaIS2_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(176) %5)
  %sext = shl i64 %16, 32
  %18 = ashr exact i64 %sext, 32
  invoke void @_ZN4dali11SmallVectorINS_11TensorShapeILin1EEELm3ESaIS2_EE6resizeEm(ptr noundef nonnull align 8 dereferenceable(176) %5, i64 noundef %18)
          to label %19 unwind label %29

19:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #6
  %20 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK4dali4spanIPNS_11TensorShapeILin1EEELln1EEixEl(ptr noundef nonnull align 8 dereferenceable(16) %3, i64 noundef 0)
  %21 = load ptr, ptr %20, align 8, !tbaa !9
  %22 = call noundef i32 @_ZNK4dali15TensorShapeBaseINS_11SmallVectorIlLm6ESaIlEEELin1EE10sample_dimEv(ptr noundef nonnull align 8 dereferenceable(56) %21) #6
  store i32 %22, ptr %6, align 4, !tbaa !5
  %23 = load i32, ptr %4, align 4, !tbaa !5
  %24 = icmp sgt i32 %23, 1
  br i1 %24, label %.lr.ph, label %._crit_edge

._crit_edge:                                      ; preds = %40, %19
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %7) #6
  store ptr %3, ptr %7, align 8, !tbaa !9
  %25 = getelementptr inbounds i8, ptr %7, i64 8
  store ptr %6, ptr %25, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %8) #6
  store ptr %4, ptr %8, align 8, !tbaa !9
  %26 = getelementptr inbounds i8, ptr %8, i64 8
  store ptr %7, ptr %26, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %9) #6
  call void @_ZN4dali11SmallVectorIlLm3ESaIlEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %9)
  %27 = load i32, ptr %4, align 4, !tbaa !5
  %28 = sext i32 %27 to i64
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #6
  store i64 1, ptr %10, align 8, !tbaa !11
  invoke void @_ZN4dali11SmallVectorIlLm3ESaIlEE6resizeEmRKl(ptr noundef nonnull align 8 dereferenceable(32) %9, i64 noundef %28, ptr noundef nonnull align 8 dereferenceable(8) %10)
          to label %44 unwind label %56

29:                                               ; preds = %2
  %30 = landingpad { ptr, i32 }
          cleanup
  br label %140

.lr.ph:                                           ; preds = %19, %40
  %indvars.iv = phi i64 [ %indvars.iv.next, %40 ], [ 1, %19 ]
  %31 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK4dali4spanIPNS_11TensorShapeILin1EEELln1EEixEl(ptr noundef nonnull align 8 dereferenceable(16) %3, i64 noundef %indvars.iv)
  %32 = load ptr, ptr %31, align 8, !tbaa !9
  %33 = call noundef i32 @_ZNK4dali15TensorShapeBaseINS_11SmallVectorIlLm6ESaIlEEELin1EE10sample_dimEv(ptr noundef nonnull align 8 dereferenceable(56) %32) #6
  %34 = load i32, ptr %6, align 4, !tbaa !5
  %35 = icmp sgt i32 %33, %34
  br i1 %35, label %36, label %40

36:                                               ; preds = %.lr.ph
  %37 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK4dali4spanIPNS_11TensorShapeILin1EEELln1EEixEl(ptr noundef nonnull align 8 dereferenceable(16) %3, i64 noundef %indvars.iv)
  %38 = load ptr, ptr %37, align 8, !tbaa !9
  %39 = call noundef i32 @_ZNK4dali15TensorShapeBaseINS_11SmallVectorIlLm6ESaIlEEELin1EE10sample_dimEv(ptr noundef nonnull align 8 dereferenceable(56) %38) #6
  store i32 %39, ptr %6, align 4, !tbaa !5
  br label %40

40:                                               ; preds = %.lr.ph, %36
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %41 = load i32, ptr %4, align 4, !tbaa !5
  %42 = sext i32 %41 to i64
  %43 = icmp slt i64 %indvars.iv.next, %42
  br i1 %43, label %.lr.ph, label %._crit_edge, !llvm.loop !13

44:                                               ; preds = %._crit_edge
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %11) #6
  store i32 0, ptr %11, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %12) #6
  store ptr %4, ptr %12, align 8, !tbaa !9
  %45 = getelementptr inbounds i8, ptr %12, i64 8
  store ptr %7, ptr %45, align 8, !tbaa !9
  %46 = getelementptr inbounds i8, ptr %12, i64 16
  store ptr %11, ptr %46, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %13) #6
  store ptr %11, ptr %13, align 8, !tbaa !9
  %47 = getelementptr inbounds i8, ptr %13, i64 8
  store ptr %4, ptr %47, align 8, !tbaa !9
  %48 = getelementptr inbounds i8, ptr %13, i64 16
  store ptr %5, ptr %48, align 8, !tbaa !9
  %49 = getelementptr inbounds i8, ptr %13, i64 24
  store ptr %9, ptr %49, align 8, !tbaa !9
  %50 = getelementptr inbounds i8, ptr %13, i64 32
  store ptr %6, ptr %50, align 8, !tbaa !9
  %51 = getelementptr inbounds i8, ptr %13, i64 40
  store ptr %7, ptr %51, align 8, !tbaa !9
  %52 = load i32, ptr %6, align 4, !tbaa !5
  %53 = icmp sgt i32 %52, 0
  br i1 %53, label %.lr.ph65, label %._crit_edge66

.lr.ph65:                                         ; preds = %44, %58
  %.03863 = phi i32 [ %59, %58 ], [ 0, %44 ]
  %54 = invoke noundef zeroext i1 @"_ZZN4dali4expr29SimplifyShapesForBroadcastingENS_4spanIPNS_11TensorShapeILin1EEELln1EEEENK3$_1clEi"(ptr noundef nonnull align 8 dereferenceable(16) %8, i32 noundef %.03863)
          to label %55 unwind label %.loopexit.split-lp.loopexit

55:                                               ; preds = %.lr.ph65
  %.pre.pre = load i32, ptr %6, align 4, !tbaa !5
  br i1 %54, label %58, label %._crit_edge66

56:                                               ; preds = %._crit_edge
  %57 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #6
  br label %139

.loopexit55:                                      ; preds = %.lr.ph76, %82, %99
  %lpad.loopexit = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit.split-lp

.loopexit.split-lp.loopexit:                      ; preds = %.lr.ph65
  %lpad.loopexit56 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit.split-lp

.loopexit.split-lp.loopexit.split-lp:             ; preds = %._crit_edge77
  %lpad.loopexit.split-lp57 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit.split-lp

58:                                               ; preds = %55
  %59 = add nuw nsw i32 %.03863, 1
  %60 = icmp slt i32 %59, %.pre.pre
  br i1 %60, label %.lr.ph65, label %._crit_edge66, !llvm.loop !15

._crit_edge66:                                    ; preds = %58, %55, %44
  %61 = phi i32 [ %52, %44 ], [ %.pre.pre, %55 ], [ %.pre.pre, %58 ]
  %.038.lcssa = phi i32 [ 0, %44 ], [ %59, %58 ], [ %.03863, %55 ]
  %62 = icmp slt i32 %.038.lcssa, %61
  br i1 %62, label %63, label %102

63:                                               ; preds = %._crit_edge66
  store i32 %.038.lcssa, ptr %11, align 4, !tbaa !5
  %64 = load i32, ptr %4, align 4, !tbaa !5
  %65 = icmp sgt i32 %64, 0
  br i1 %65, label %.lr.ph71, label %.preheader54

.preheader54.loopexit:                            ; preds = %72
  %.pre99 = load i32, ptr %6, align 4, !tbaa !5
  br label %.preheader54

.preheader54:                                     ; preds = %.preheader54.loopexit, %63
  %66 = phi i32 [ %.pre99, %.preheader54.loopexit ], [ %61, %63 ]
  %.174 = add nuw nsw i32 %.038.lcssa, 1
  %67 = icmp slt i32 %.174, %66
  br i1 %67, label %.lr.ph76, label %._crit_edge77

.lr.ph71:                                         ; preds = %63, %72
  %indvars.iv87 = phi i64 [ %indvars.iv.next88, %72 ], [ 0, %63 ]
  %68 = trunc nuw nsw i64 %indvars.iv87 to i32
  %69 = invoke noundef i64 @"_ZZN4dali4expr29SimplifyShapesForBroadcastingENS_4spanIPNS_11TensorShapeILin1EEELln1EEEENK3$_0clEii"(ptr noundef nonnull align 8 dereferenceable(16) %7, i32 noundef %68, i32 noundef %.038.lcssa)
          to label %70 unwind label %78

70:                                               ; preds = %.lr.ph71
  %71 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN4dali11SmallVectorIlLm3ESaIlEEixEl(ptr noundef nonnull align 8 dereferenceable(32) %9, i64 noundef %indvars.iv87)
          to label %72 unwind label %78

72:                                               ; preds = %70
  %73 = load i64, ptr %71, align 8, !tbaa !11
  %74 = mul nsw i64 %73, %69
  store i64 %74, ptr %71, align 8, !tbaa !11
  %indvars.iv.next88 = add nuw nsw i64 %indvars.iv87, 1
  %75 = load i32, ptr %4, align 4, !tbaa !5
  %76 = sext i32 %75 to i64
  %77 = icmp slt i64 %indvars.iv.next88, %76
  br i1 %77, label %.lr.ph71, label %.preheader54.loopexit, !llvm.loop !16

78:                                               ; preds = %70, %.lr.ph71
  %79 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit.split-lp

.lr.ph76:                                         ; preds = %.preheader54, %.loopexit
  %.175 = phi i32 [ %.1, %.loopexit ], [ %.174, %.preheader54 ]
  %80 = invoke noundef zeroext i1 @"_ZZN4dali4expr29SimplifyShapesForBroadcastingENS_4spanIPNS_11TensorShapeILin1EEELln1EEEENK3$_1clEi"(ptr noundef nonnull align 8 dereferenceable(16) %8, i32 noundef %.175)
          to label %81 unwind label %.loopexit55

81:                                               ; preds = %.lr.ph76
  br i1 %80, label %.loopexit, label %82

82:                                               ; preds = %81
  %83 = invoke noundef zeroext i1 @"_ZZN4dali4expr29SimplifyShapesForBroadcastingENS_4spanIPNS_11TensorShapeILin1EEELln1EEEENK3$_2clEi"(ptr noundef nonnull align 8 dereferenceable(24) %12, i32 noundef %.175)
          to label %84 unwind label %.loopexit55

84:                                               ; preds = %82
  br i1 %83, label %.preheader53, label %99

.preheader53:                                     ; preds = %84
  %85 = load i32, ptr %4, align 4, !tbaa !5
  %86 = icmp sgt i32 %85, 0
  br i1 %86, label %.lr.ph73, label %.loopexit

.lr.ph73:                                         ; preds = %.preheader53, %91
  %indvars.iv90 = phi i64 [ %indvars.iv.next91, %91 ], [ 0, %.preheader53 ]
  %87 = trunc nuw nsw i64 %indvars.iv90 to i32
  %88 = invoke noundef i64 @"_ZZN4dali4expr29SimplifyShapesForBroadcastingENS_4spanIPNS_11TensorShapeILin1EEELln1EEEENK3$_0clEii"(ptr noundef nonnull align 8 dereferenceable(16) %7, i32 noundef %87, i32 noundef %.175)
          to label %89 unwind label %97

89:                                               ; preds = %.lr.ph73
  %90 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN4dali11SmallVectorIlLm3ESaIlEEixEl(ptr noundef nonnull align 8 dereferenceable(32) %9, i64 noundef %indvars.iv90)
          to label %91 unwind label %97

91:                                               ; preds = %89
  %92 = load i64, ptr %90, align 8, !tbaa !11
  %93 = mul nsw i64 %92, %88
  store i64 %93, ptr %90, align 8, !tbaa !11
  %indvars.iv.next91 = add nuw nsw i64 %indvars.iv90, 1
  %94 = load i32, ptr %4, align 4, !tbaa !5
  %95 = sext i32 %94 to i64
  %96 = icmp slt i64 %indvars.iv.next91, %95
  br i1 %96, label %.lr.ph73, label %.loopexit, !llvm.loop !17

97:                                               ; preds = %89, %.lr.ph73
  %98 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit.split-lp

99:                                               ; preds = %84
  invoke void @"_ZZN4dali4expr29SimplifyShapesForBroadcastingENS_4spanIPNS_11TensorShapeILin1EEELln1EEEENK3$_3clEi"(ptr noundef nonnull align 8 dereferenceable(48) %13, i32 noundef %.175)
          to label %.loopexit unwind label %.loopexit55

.loopexit:                                        ; preds = %91, %.preheader53, %99, %81
  %.1 = add nuw nsw i32 %.175, 1
  %100 = load i32, ptr %6, align 4, !tbaa !5
  %101 = icmp slt i32 %.1, %100
  br i1 %101, label %.lr.ph76, label %._crit_edge77, !llvm.loop !18

._crit_edge77:                                    ; preds = %.loopexit, %.preheader54
  %.1.lcssa = phi i32 [ %.174, %.preheader54 ], [ %.1, %.loopexit ]
  invoke void @"_ZZN4dali4expr29SimplifyShapesForBroadcastingENS_4spanIPNS_11TensorShapeILin1EEELln1EEEENK3$_3clEi"(ptr noundef nonnull align 8 dereferenceable(48) %13, i32 noundef %.1.lcssa)
          to label %102 unwind label %.loopexit.split-lp.loopexit.split-lp

102:                                              ; preds = %._crit_edge77, %._crit_edge66
  %103 = load i32, ptr %4, align 4, !tbaa !5
  %104 = icmp sgt i32 %103, 0
  br i1 %104, label %.lr.ph81, label %._crit_edge84

.preheader:                                       ; preds = %124
  %105 = icmp sgt i32 %125, 0
  br i1 %105, label %.lr.ph83, label %._crit_edge84

.lr.ph81:                                         ; preds = %102, %124
  %indvars.iv93 = phi i64 [ %indvars.iv.next94, %124 ], [ 0, %102 ]
  %106 = invoke noundef nonnull align 8 dereferenceable(56) ptr @_ZN4dali11SmallVectorINS_11TensorShapeILin1EEELm3ESaIS2_EEixEl(ptr noundef nonnull align 8 dereferenceable(176) %5, i64 noundef %indvars.iv93)
          to label %107 unwind label %117

107:                                              ; preds = %.lr.ph81
  %108 = invoke noundef i64 @_ZN4dali6volumeINS_11TensorShapeILin1EEEEEDTcl6volumeclsr4daliE5beginfp_Eclsr4daliE3endfp_EEERKT_(ptr noundef nonnull align 8 dereferenceable(56) %106)
          to label %109 unwind label %117

109:                                              ; preds = %107
  %110 = icmp eq i64 %108, 1
  br i1 %110, label %111, label %124

111:                                              ; preds = %109
  call void @llvm.lifetime.start.p0(i64 56, ptr nonnull %14) #6
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(56) %14, i8 0, i64 56, i1 false)
  invoke void @_ZN4dali11TensorShapeILin1EEC2Ev(ptr noundef nonnull align 8 dereferenceable(56) %14)
          to label %112 unwind label %119

112:                                              ; preds = %111
  %113 = invoke noundef nonnull align 8 dereferenceable(56) ptr @_ZN4dali11SmallVectorINS_11TensorShapeILin1EEELm3ESaIS2_EEixEl(ptr noundef nonnull align 8 dereferenceable(176) %5, i64 noundef %indvars.iv93)
          to label %114 unwind label %121

114:                                              ; preds = %112
  %115 = invoke noundef nonnull align 8 dereferenceable(56) ptr @_ZN4dali11TensorShapeILin1EEaSEOS1_(ptr noundef nonnull align 8 dereferenceable(56) %113, ptr noundef nonnull align 8 dereferenceable(56) %14)
          to label %116 unwind label %121

116:                                              ; preds = %114
  call void @_ZN4dali15TensorShapeBaseINS_11SmallVectorIlLm6ESaIlEEELin1EED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %14) #6
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %14) #6
  br label %124

117:                                              ; preds = %107, %.lr.ph81
  %118 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit.split-lp

119:                                              ; preds = %111
  %120 = landingpad { ptr, i32 }
          cleanup
  br label %123

121:                                              ; preds = %114, %112
  %122 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN4dali15TensorShapeBaseINS_11SmallVectorIlLm6ESaIlEEELin1EED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %14) #6
  br label %123

123:                                              ; preds = %121, %119
  %.pn = phi { ptr, i32 } [ %122, %121 ], [ %120, %119 ]
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %14) #6
  br label %.loopexit.split-lp

124:                                              ; preds = %109, %116
  %indvars.iv.next94 = add nuw nsw i64 %indvars.iv93, 1
  %125 = load i32, ptr %4, align 4, !tbaa !5
  %126 = sext i32 %125 to i64
  %127 = icmp slt i64 %indvars.iv.next94, %126
  br i1 %127, label %.lr.ph81, label %.preheader, !llvm.loop !19

._crit_edge84:                                    ; preds = %133, %102, %.preheader
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %13) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %12) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %11) #6
  call void @_ZN4dali11SmallVectorIlLm3ESaIlEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %9) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %9) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %8) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #6
  call void @_ZN4dali11SmallVectorINS_11TensorShapeILin1EEELm3ESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(176) %5) #6
  call void @llvm.lifetime.end.p0(i64 176, ptr nonnull %5) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #6
  ret void

.lr.ph83:                                         ; preds = %.preheader, %133
  %indvars.iv96 = phi i64 [ %indvars.iv.next97, %133 ], [ 0, %.preheader ]
  %128 = invoke noundef nonnull align 8 dereferenceable(56) ptr @_ZN4dali11SmallVectorINS_11TensorShapeILin1EEELm3ESaIS2_EEixEl(ptr noundef nonnull align 8 dereferenceable(176) %5, i64 noundef %indvars.iv96)
          to label %129 unwind label %137

129:                                              ; preds = %.lr.ph83
  %130 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK4dali4spanIPNS_11TensorShapeILin1EEELln1EEixEl(ptr noundef nonnull align 8 dereferenceable(16) %3, i64 noundef %indvars.iv96)
  %131 = load ptr, ptr %130, align 8, !tbaa !9
  %132 = invoke noundef nonnull align 8 dereferenceable(56) ptr @_ZN4dali11TensorShapeILin1EEaSERKS1_(ptr noundef nonnull align 8 dereferenceable(56) %131, ptr noundef nonnull align 8 dereferenceable(56) %128)
          to label %133 unwind label %137

133:                                              ; preds = %129
  %indvars.iv.next97 = add nuw nsw i64 %indvars.iv96, 1
  %134 = load i32, ptr %4, align 4, !tbaa !5
  %135 = sext i32 %134 to i64
  %136 = icmp slt i64 %indvars.iv.next97, %135
  br i1 %136, label %.lr.ph83, label %._crit_edge84, !llvm.loop !20

137:                                              ; preds = %129, %.lr.ph83
  %138 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit.split-lp

.loopexit.split-lp:                               ; preds = %.loopexit55, %.loopexit.split-lp.loopexit.split-lp, %.loopexit.split-lp.loopexit, %117, %123, %137, %97, %78
  %.pn49 = phi { ptr, i32 } [ %79, %78 ], [ %98, %97 ], [ %138, %137 ], [ %.pn, %123 ], [ %118, %117 ], [ %lpad.loopexit, %.loopexit55 ], [ %lpad.loopexit56, %.loopexit.split-lp.loopexit ], [ %lpad.loopexit.split-lp57, %.loopexit.split-lp.loopexit.split-lp ]
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %13) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %12) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %11) #6
  br label %139

139:                                              ; preds = %.loopexit.split-lp, %56
  %.pn49.pn = phi { ptr, i32 } [ %.pn49, %.loopexit.split-lp ], [ %57, %56 ]
  call void @_ZN4dali11SmallVectorIlLm3ESaIlEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %9) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %9) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %8) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #6
  br label %140

140:                                              ; preds = %139, %29
  %.pn49.pn.pn = phi { ptr, i32 } [ %.pn49.pn, %139 ], [ %30, %29 ]
  call void @_ZN4dali11SmallVectorINS_11TensorShapeILin1EEELm3ESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(176) %5) #6
  call void @llvm.lifetime.end.p0(i64 176, ptr nonnull %5) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #6
  resume { ptr, i32 } %.pn49.pn.pn
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNK4dali4spanIPNS_11TensorShapeILin1EEELln1EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4dali11SmallVectorINS_11TensorShapeILin1EEELm3ESaIS2_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(176)) unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4dali11SmallVectorINS_11TensorShapeILin1EEELm3ESaIS2_EE6resizeEm(ptr noundef nonnull align 8 dereferenceable(176), i64 noundef) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZNK4dali4spanIPNS_11TensorShapeILin1EEELln1EEixEl(ptr noundef nonnull align 8 dereferenceable(16), i64 noundef) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4dali11SmallVectorIlLm3ESaIlEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4dali11SmallVectorIlLm3ESaIlEE6resizeEmRKl(ptr noundef nonnull align 8 dereferenceable(32), i64 noundef, ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #3 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare hidden noundef zeroext i1 @"_ZZN4dali4expr29SimplifyShapesForBroadcastingENS_4spanIPNS_11TensorShapeILin1EEELln1EEEENK3$_1clEi"(ptr noundef nonnull align 8 dereferenceable(16), i32 noundef) local_unnamed_addr #4 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare hidden noundef i64 @"_ZZN4dali4expr29SimplifyShapesForBroadcastingENS_4spanIPNS_11TensorShapeILin1EEELln1EEEENK3$_0clEii"(ptr noundef nonnull align 8 dereferenceable(16), i32 noundef, i32 noundef) local_unnamed_addr #4 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZN4dali11SmallVectorIlLm3ESaIlEEixEl(ptr noundef nonnull align 8 dereferenceable(32), i64 noundef) local_unnamed_addr #4 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare hidden noundef zeroext i1 @"_ZZN4dali4expr29SimplifyShapesForBroadcastingENS_4spanIPNS_11TensorShapeILin1EEELln1EEEENK3$_2clEi"(ptr noundef nonnull align 8 dereferenceable(24), i32 noundef) local_unnamed_addr #4 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare hidden void @"_ZZN4dali4expr29SimplifyShapesForBroadcastingENS_4spanIPNS_11TensorShapeILin1EEELln1EEEENK3$_3clEi"(ptr noundef nonnull align 8 dereferenceable(48), i32 noundef) local_unnamed_addr #4 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef i64 @_ZN4dali6volumeINS_11TensorShapeILin1EEEEEDTcl6volumeclsr4daliE5beginfp_Eclsr4daliE3endfp_EEERKT_(ptr noundef nonnull align 8 dereferenceable(56)) local_unnamed_addr #4

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(56) ptr @_ZN4dali11SmallVectorINS_11TensorShapeILin1EEELm3ESaIS2_EEixEl(ptr noundef nonnull align 8 dereferenceable(176), i64 noundef) local_unnamed_addr #4 align 2

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #5

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4dali11SmallVectorIlLm3ESaIlEED2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4dali11SmallVectorINS_11TensorShapeILin1EEELm3ESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(176)) unnamed_addr #1 align 2

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { 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 #3 = { 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 #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 nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #6 = { 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 = !{!"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 = !{!"long", !7, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = distinct !{!15, !14}
!16 = distinct !{!16, !14}
!17 = distinct !{!17, !14}
!18 = distinct !{!18, !14}
!19 = distinct !{!19, !14}
!20 = distinct !{!20, !14}


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