; LLVM IR from Seeed-Studio/Seeed_Arduino_edgeimpulse :: src/edge-impulse-sdk/tensorflow/lite/micro/memory_planner/greedy_memory_planner_4d83feae (13ErrorReporterE)

; 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.tflite::GreedyMemoryPlanner" = type <{ %"class.tflite::MemoryPlanner", i32, i32, ptr, ptr, ptr, ptr, i32, i32, ptr, i8, [7 x i8] }>
%"class.tflite::MemoryPlanner" = type { ptr }
%"struct.tflite::GreedyMemoryPlanner::BufferRequirements" = type { i32, i32, i32, i32 }

@.str.1 = external hidden unnamed_addr constant [108 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [3 x i8], align 1

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

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

declare noundef i32 @_ZN6tflite13ErrorReporter6ReportEPKcz(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef, ...) #1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN6tflite19GreedyMemoryPlanner24CalculateOffsetsIfNeededEv(ptr noundef nonnull align 8 dereferenceable(65)) #2 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN6tflite19GreedyMemoryPlanner15PrintMemoryPlanEPNS_13ErrorReporterE(ptr noundef nonnull align 8 dereferenceable(65) %0, ptr noundef %1) #3 align 2 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca ptr, align 8
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca [81 x i8], align 16
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca ptr, align 8
  %20 = alloca i32, align 4
  %21 = alloca i32, align 4
  %22 = alloca i32, align 4
  %23 = alloca i32, align 4
  %24 = alloca i32, align 4
  %25 = alloca i8, align 1
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  %26 = load ptr, ptr %3, align 8
  call void @_ZN6tflite19GreedyMemoryPlanner24CalculateOffsetsIfNeededEv(ptr noundef nonnull align 8 dereferenceable(65) %26)
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #4
  store i32 0, ptr %5, align 4, !tbaa !9
  br label %27

27:                                               ; preds = %67, %2
  %28 = load i32, ptr %5, align 4, !tbaa !9
  %29 = getelementptr inbounds %"class.tflite::GreedyMemoryPlanner", ptr %26, i32 0, i32 2
  %30 = load i32, ptr %29, align 4, !tbaa !11
  %31 = icmp slt i32 %28, %30
  br i1 %31, label %33, label %32

32:                                               ; preds = %27
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #4
  br label %70

33:                                               ; preds = %27
  br label %34

34:                                               ; preds = %33
  %35 = load ptr, ptr %4, align 8, !tbaa !5
  %36 = load i32, ptr %5, align 4, !tbaa !9
  %37 = getelementptr inbounds %"class.tflite::GreedyMemoryPlanner", ptr %26, i32 0, i32 9
  %38 = load ptr, ptr %37, align 8, !tbaa !15
  %39 = load i32, ptr %5, align 4, !tbaa !9
  %40 = sext i32 %39 to i64
  %41 = getelementptr inbounds i32, ptr %38, i64 %40
  %42 = load i32, ptr %41, align 4, !tbaa !9
  %43 = getelementptr inbounds %"class.tflite::GreedyMemoryPlanner", ptr %26, i32 0, i32 3
  %44 = load ptr, ptr %43, align 8, !tbaa !16
  %45 = load i32, ptr %5, align 4, !tbaa !9
  %46 = sext i32 %45 to i64
  %47 = getelementptr inbounds %"struct.tflite::GreedyMemoryPlanner::BufferRequirements", ptr %44, i64 %46
  %48 = getelementptr inbounds %"struct.tflite::GreedyMemoryPlanner::BufferRequirements", ptr %47, i32 0, i32 0
  %49 = load i32, ptr %48, align 4, !tbaa !17
  %50 = getelementptr inbounds %"class.tflite::GreedyMemoryPlanner", ptr %26, i32 0, i32 3
  %51 = load ptr, ptr %50, align 8, !tbaa !16
  %52 = load i32, ptr %5, align 4, !tbaa !9
  %53 = sext i32 %52 to i64
  %54 = getelementptr inbounds %"struct.tflite::GreedyMemoryPlanner::BufferRequirements", ptr %51, i64 %53
  %55 = getelementptr inbounds %"struct.tflite::GreedyMemoryPlanner::BufferRequirements", ptr %54, i32 0, i32 2
  %56 = load i32, ptr %55, align 4, !tbaa !19
  %57 = getelementptr inbounds %"class.tflite::GreedyMemoryPlanner", ptr %26, i32 0, i32 3
  %58 = load ptr, ptr %57, align 8, !tbaa !16
  %59 = load i32, ptr %5, align 4, !tbaa !9
  %60 = sext i32 %59 to i64
  %61 = getelementptr inbounds %"struct.tflite::GreedyMemoryPlanner::BufferRequirements", ptr %58, i64 %60
  %62 = getelementptr inbounds %"struct.tflite::GreedyMemoryPlanner::BufferRequirements", ptr %61, i32 0, i32 3
  %63 = load i32, ptr %62, align 4, !tbaa !20
  %64 = call noundef i32 (ptr, ptr, ...) @_ZN6tflite13ErrorReporter6ReportEPKcz(ptr noundef nonnull align 8 dereferenceable(8) %35, ptr noundef @.str.1, i32 noundef %36, i32 noundef %42, i32 noundef %49, i32 noundef %56, i32 noundef %63)
  br label %65

65:                                               ; preds = %34
  br label %66

66:                                               ; preds = %65
  br label %67

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

70:                                               ; preds = %32
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #4
  store i32 80, ptr %6, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #4
  store i32 80, ptr %7, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #4
  store i32 0, ptr %8, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #4
  store i32 0, ptr %9, align 4, !tbaa !9
  br label %71

71:                                               ; preds = %109, %70
  %72 = load i32, ptr %9, align 4, !tbaa !9
  %73 = getelementptr inbounds %"class.tflite::GreedyMemoryPlanner", ptr %26, i32 0, i32 2
  %74 = load i32, ptr %73, align 4, !tbaa !11
  %75 = icmp slt i32 %72, %74
  br i1 %75, label %77, label %76

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

77:                                               ; preds = %71
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #4
  %78 = getelementptr inbounds %"class.tflite::GreedyMemoryPlanner", ptr %26, i32 0, i32 3
  %79 = load ptr, ptr %78, align 8, !tbaa !16
  %80 = load i32, ptr %9, align 4, !tbaa !9
  %81 = sext i32 %80 to i64
  %82 = getelementptr inbounds %"struct.tflite::GreedyMemoryPlanner::BufferRequirements", ptr %79, i64 %81
  store ptr %82, ptr %10, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #4
  %83 = getelementptr inbounds %"class.tflite::GreedyMemoryPlanner", ptr %26, i32 0, i32 9
  %84 = load ptr, ptr %83, align 8, !tbaa !15
  %85 = load i32, ptr %9, align 4, !tbaa !9
  %86 = sext i32 %85 to i64
  %87 = getelementptr inbounds i32, ptr %84, i64 %86
  %88 = load i32, ptr %87, align 4, !tbaa !9
  store i32 %88, ptr %11, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #4
  %89 = load ptr, ptr %10, align 8, !tbaa !5
  %90 = getelementptr inbounds %"struct.tflite::GreedyMemoryPlanner::BufferRequirements", ptr %89, i32 0, i32 3
  %91 = load i32, ptr %90, align 4, !tbaa !20
  store i32 %91, ptr %12, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #4
  %92 = load i32, ptr %11, align 4, !tbaa !9
  %93 = load ptr, ptr %10, align 8, !tbaa !5
  %94 = getelementptr inbounds %"struct.tflite::GreedyMemoryPlanner::BufferRequirements", ptr %93, i32 0, i32 0
  %95 = load i32, ptr %94, align 4, !tbaa !17
  %96 = add nsw i32 %92, %95
  store i32 %96, ptr %13, align 4, !tbaa !9
  %97 = load i32, ptr %13, align 4, !tbaa !9
  %98 = load i32, ptr %7, align 4, !tbaa !9
  %99 = icmp sgt i32 %97, %98
  br i1 %99, label %100, label %102

100:                                              ; preds = %77
  %101 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %101, ptr %7, align 4, !tbaa !9
  br label %102

102:                                              ; preds = %100, %77
  %103 = load i32, ptr %12, align 4, !tbaa !9
  %104 = load i32, ptr %8, align 4, !tbaa !9
  %105 = icmp sgt i32 %103, %104
  br i1 %105, label %106, label %108

106:                                              ; preds = %102
  %107 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %107, ptr %8, align 4, !tbaa !9
  br label %108

108:                                              ; preds = %106, %102
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #4
  br label %109

109:                                              ; preds = %108
  %110 = load i32, ptr %9, align 4, !tbaa !9
  %111 = add nsw i32 %110, 1
  store i32 %111, ptr %9, align 4, !tbaa !9
  br label %71, !llvm.loop !23

112:                                              ; preds = %76
  call void @llvm.lifetime.start.p0(i64 81, ptr %14) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #4
  store i32 0, ptr %15, align 4, !tbaa !9
  br label %113

113:                                              ; preds = %247, %112
  %114 = load i32, ptr %15, align 4, !tbaa !9
  %115 = load i32, ptr %8, align 4, !tbaa !9
  %116 = icmp sle i32 %114, %115
  br i1 %116, label %118, label %117

117:                                              ; preds = %113
  store i32 10, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #4
  br label %250

118:                                              ; preds = %113
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #4
  store i32 0, ptr %17, align 4, !tbaa !9
  br label %119

119:                                              ; preds = %127, %118
  %120 = load i32, ptr %17, align 4, !tbaa !9
  %121 = icmp slt i32 %120, 80
  br i1 %121, label %123, label %122

122:                                              ; preds = %119
  store i32 13, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #4
  br label %130

123:                                              ; preds = %119
  %124 = load i32, ptr %17, align 4, !tbaa !9
  %125 = sext i32 %124 to i64
  %126 = getelementptr inbounds [81 x i8], ptr %14, i64 0, i64 %125
  store i8 46, ptr %126, align 1, !tbaa !24
  br label %127

127:                                              ; preds = %123
  %128 = load i32, ptr %17, align 4, !tbaa !9
  %129 = add nsw i32 %128, 1
  store i32 %129, ptr %17, align 4, !tbaa !9
  br label %119, !llvm.loop !25

130:                                              ; preds = %122
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #4
  store i32 0, ptr %18, align 4, !tbaa !9
  br label %131

131:                                              ; preds = %236, %130
  %132 = load i32, ptr %18, align 4, !tbaa !9
  %133 = getelementptr inbounds %"class.tflite::GreedyMemoryPlanner", ptr %26, i32 0, i32 2
  %134 = load i32, ptr %133, align 4, !tbaa !11
  %135 = icmp slt i32 %132, %134
  br i1 %135, label %137, label %136

136:                                              ; preds = %131
  store i32 16, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #4
  br label %239

137:                                              ; preds = %131
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #4
  %138 = getelementptr inbounds %"class.tflite::GreedyMemoryPlanner", ptr %26, i32 0, i32 3
  %139 = load ptr, ptr %138, align 8, !tbaa !16
  %140 = load i32, ptr %18, align 4, !tbaa !9
  %141 = sext i32 %140 to i64
  %142 = getelementptr inbounds %"struct.tflite::GreedyMemoryPlanner::BufferRequirements", ptr %139, i64 %141
  store ptr %142, ptr %19, align 8, !tbaa !5
  %143 = load i32, ptr %15, align 4, !tbaa !9
  %144 = load ptr, ptr %19, align 8, !tbaa !5
  %145 = getelementptr inbounds %"struct.tflite::GreedyMemoryPlanner::BufferRequirements", ptr %144, i32 0, i32 2
  %146 = load i32, ptr %145, align 4, !tbaa !19
  %147 = icmp slt i32 %143, %146
  br i1 %147, label %154, label %148

148:                                              ; preds = %137
  %149 = load i32, ptr %15, align 4, !tbaa !9
  %150 = load ptr, ptr %19, align 8, !tbaa !5
  %151 = getelementptr inbounds %"struct.tflite::GreedyMemoryPlanner::BufferRequirements", ptr %150, i32 0, i32 3
  %152 = load i32, ptr %151, align 4, !tbaa !20
  %153 = icmp sgt i32 %149, %152
  br i1 %153, label %154, label %155

154:                                              ; preds = %148, %137
  store i32 18, ptr %16, align 4
  br label %233

155:                                              ; preds = %148
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #4
  %156 = getelementptr inbounds %"class.tflite::GreedyMemoryPlanner", ptr %26, i32 0, i32 9
  %157 = load ptr, ptr %156, align 8, !tbaa !15
  %158 = load i32, ptr %18, align 4, !tbaa !9
  %159 = sext i32 %158 to i64
  %160 = getelementptr inbounds i32, ptr %157, i64 %159
  %161 = load i32, ptr %160, align 4, !tbaa !9
  store i32 %161, ptr %20, align 4, !tbaa !9
  %162 = load i32, ptr %20, align 4, !tbaa !9
  %163 = icmp eq i32 %162, -1
  br i1 %163, label %164, label %165

164:                                              ; preds = %155
  store i32 18, ptr %16, align 4
  br label %232

165:                                              ; preds = %155
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #4
  %166 = load ptr, ptr %19, align 8, !tbaa !5
  %167 = getelementptr inbounds %"struct.tflite::GreedyMemoryPlanner::BufferRequirements", ptr %166, i32 0, i32 0
  %168 = load i32, ptr %167, align 4, !tbaa !17
  store i32 %168, ptr %21, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #4
  %169 = load i32, ptr %20, align 4, !tbaa !9
  %170 = mul nsw i32 %169, 80
  %171 = load i32, ptr %7, align 4, !tbaa !9
  %172 = sdiv i32 %170, %171
  store i32 %172, ptr %22, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #4
  %173 = load i32, ptr %20, align 4, !tbaa !9
  %174 = load i32, ptr %21, align 4, !tbaa !9
  %175 = add nsw i32 %173, %174
  %176 = mul nsw i32 %175, 80
  %177 = load i32, ptr %7, align 4, !tbaa !9
  %178 = sdiv i32 %176, %177
  store i32 %178, ptr %23, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #4
  %179 = load i32, ptr %22, align 4, !tbaa !9
  store i32 %179, ptr %24, align 4, !tbaa !9
  br label %180

180:                                              ; preds = %228, %165
  %181 = load i32, ptr %24, align 4, !tbaa !9
  %182 = load i32, ptr %23, align 4, !tbaa !9
  %183 = icmp slt i32 %181, %182
  br i1 %183, label %185, label %184

184:                                              ; preds = %180
  store i32 19, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #4
  br label %231

185:                                              ; preds = %180
  %186 = load i32, ptr %24, align 4, !tbaa !9
  %187 = sext i32 %186 to i64
  %188 = getelementptr inbounds [81 x i8], ptr %14, i64 0, i64 %187
  %189 = load i8, ptr %188, align 1, !tbaa !24
  %190 = sext i8 %189 to i32
  %191 = icmp eq i32 %190, 46
  br i1 %191, label %192, label %223

192:                                              ; preds = %185
  call void @llvm.lifetime.start.p0(i64 1, ptr %25) #4
  %193 = load i32, ptr %18, align 4, !tbaa !9
  %194 = icmp slt i32 %193, 10
  br i1 %194, label %195, label %199

195:                                              ; preds = %192
  %196 = load i32, ptr %18, align 4, !tbaa !9
  %197 = add nsw i32 48, %196
  %198 = trunc i32 %197 to i8
  store i8 %198, ptr %25, align 1, !tbaa !24
  br label %218

199:                                              ; preds = %192
  %200 = load i32, ptr %18, align 4, !tbaa !9
  %201 = icmp slt i32 %200, 36
  br i1 %201, label %202, label %207

202:                                              ; preds = %199
  %203 = load i32, ptr %18, align 4, !tbaa !9
  %204 = sub nsw i32 %203, 10
  %205 = add nsw i32 97, %204
  %206 = trunc i32 %205 to i8
  store i8 %206, ptr %25, align 1, !tbaa !24
  br label %217

207:                                              ; preds = %199
  %208 = load i32, ptr %18, align 4, !tbaa !9
  %209 = icmp slt i32 %208, 62
  br i1 %209, label %210, label %215

210:                                              ; preds = %207
  %211 = load i32, ptr %18, align 4, !tbaa !9
  %212 = sub nsw i32 %211, 36
  %213 = add nsw i32 65, %212
  %214 = trunc i32 %213 to i8
  store i8 %214, ptr %25, align 1, !tbaa !24
  br label %216

215:                                              ; preds = %207
  store i8 42, ptr %25, align 1, !tbaa !24
  br label %216

216:                                              ; preds = %215, %210
  br label %217

217:                                              ; preds = %216, %202
  br label %218

218:                                              ; preds = %217, %195
  %219 = load i8, ptr %25, align 1, !tbaa !24
  %220 = load i32, ptr %24, align 4, !tbaa !9
  %221 = sext i32 %220 to i64
  %222 = getelementptr inbounds [81 x i8], ptr %14, i64 0, i64 %221
  store i8 %219, ptr %222, align 1, !tbaa !24
  call void @llvm.lifetime.end.p0(i64 1, ptr %25) #4
  br label %227

223:                                              ; preds = %185
  %224 = load i32, ptr %24, align 4, !tbaa !9
  %225 = sext i32 %224 to i64
  %226 = getelementptr inbounds [81 x i8], ptr %14, i64 0, i64 %225
  store i8 33, ptr %226, align 1, !tbaa !24
  br label %227

227:                                              ; preds = %223, %218
  br label %228

228:                                              ; preds = %227
  %229 = load i32, ptr %24, align 4, !tbaa !9
  %230 = add nsw i32 %229, 1
  store i32 %230, ptr %24, align 4, !tbaa !9
  br label %180, !llvm.loop !26

231:                                              ; preds = %184
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #4
  store i32 0, ptr %16, align 4
  br label %232

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

233:                                              ; preds = %232, %154
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #4
  %234 = load i32, ptr %16, align 4
  switch i32 %234, label %251 [
    i32 0, label %235
    i32 18, label %236
  ]

235:                                              ; preds = %233
  br label %236

236:                                              ; preds = %235, %233
  %237 = load i32, ptr %18, align 4, !tbaa !9
  %238 = add nsw i32 %237, 1
  store i32 %238, ptr %18, align 4, !tbaa !9
  br label %131, !llvm.loop !27

239:                                              ; preds = %136
  %240 = getelementptr inbounds [81 x i8], ptr %14, i64 0, i64 80
  store i8 0, ptr %240, align 16, !tbaa !24
  br label %241

241:                                              ; preds = %239
  %242 = load ptr, ptr %4, align 8, !tbaa !5
  %243 = getelementptr inbounds [81 x i8], ptr %14, i64 0, i64 0
  %244 = call noundef i32 (ptr, ptr, ...) @_ZN6tflite13ErrorReporter6ReportEPKcz(ptr noundef nonnull align 8 dereferenceable(8) %242, ptr noundef @.str.2, ptr noundef %243)
  br label %245

245:                                              ; preds = %241
  br label %246

246:                                              ; preds = %245
  br label %247

247:                                              ; preds = %246
  %248 = load i32, ptr %15, align 4, !tbaa !9
  %249 = add nsw i32 %248, 1
  store i32 %249, ptr %15, align 4, !tbaa !9
  br label %113, !llvm.loop !28

250:                                              ; preds = %117
  call void @llvm.lifetime.end.p0(i64 81, ptr %14) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #4
  ret void

251:                                              ; preds = %233
  unreachable
}

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { 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 = { nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !10, i64 12}
!12 = !{!"_ZTSN6tflite19GreedyMemoryPlannerE", !13, i64 0, !10, i64 8, !10, i64 12, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !10, i64 48, !10, i64 52, !6, i64 56, !14, i64 64}
!13 = !{!"_ZTSN6tflite13MemoryPlannerE"}
!14 = !{!"bool", !7, i64 0}
!15 = !{!12, !6, i64 56}
!16 = !{!12, !6, i64 16}
!17 = !{!18, !10, i64 0}
!18 = !{!"_ZTSN6tflite19GreedyMemoryPlanner18BufferRequirementsE", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12}
!19 = !{!18, !10, i64 8}
!20 = !{!18, !10, i64 12}
!21 = distinct !{!21, !22}
!22 = !{!"llvm.loop.mustprogress"}
!23 = distinct !{!23, !22}
!24 = !{!7, !7, i64 0}
!25 = distinct !{!25, !22}
!26 = distinct !{!26, !22}
!27 = distinct !{!27, !22}
!28 = distinct !{!28, !22}


; 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.tflite::GreedyMemoryPlanner::BufferRequirements" = type { i32, i32, i32, i32 }

@.str.1 = external hidden unnamed_addr constant [108 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [3 x i8], align 1

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

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

declare noundef i32 @_ZN6tflite13ErrorReporter6ReportEPKcz(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef, ...) local_unnamed_addr #1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN6tflite19GreedyMemoryPlanner24CalculateOffsetsIfNeededEv(ptr noundef nonnull align 8 dereferenceable(65)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN6tflite19GreedyMemoryPlanner15PrintMemoryPlanEPNS_13ErrorReporterE(ptr noundef nonnull align 8 dereferenceable(65) %0, ptr noundef %1) local_unnamed_addr #3 align 2 {
  %3 = alloca [81 x i8], align 16
  tail call void @_ZN6tflite19GreedyMemoryPlanner24CalculateOffsetsIfNeededEv(ptr noundef nonnull align 8 dereferenceable(65) %0)
  %4 = getelementptr inbounds i8, ptr %0, i64 12
  %5 = load i32, ptr %4, align 4, !tbaa !5
  %6 = icmp sgt i32 %5, 0
  br i1 %6, label %.lr.ph, label %.preheader69.lr.ph

.lr.ph:                                           ; preds = %2
  %7 = getelementptr inbounds i8, ptr %0, i64 56
  %8 = getelementptr inbounds i8, ptr %0, i64 16
  br label %80

.preheader70:                                     ; preds = %80
  %9 = icmp sgt i32 %93, 0
  br i1 %9, label %.lr.ph76, label %.preheader69.lr.ph

.lr.ph76:                                         ; preds = %.preheader70
  %10 = getelementptr inbounds i8, ptr %0, i64 16
  %11 = load ptr, ptr %10, align 8, !tbaa !13
  %12 = getelementptr inbounds i8, ptr %0, i64 56
  %13 = load ptr, ptr %12, align 8, !tbaa !14
  %wide.trip.count = zext nneg i32 %93 to i64
  %min.iters.check = icmp ult i32 %93, 8
  br i1 %min.iters.check, label %scalar.ph.preheader, label %vector.ph

scalar.ph.preheader:                              ; preds = %middle.block, %.lr.ph76
  %indvars.iv105.ph = phi i64 [ 0, %.lr.ph76 ], [ %n.vec, %middle.block ]
  %.05975.ph = phi i32 [ 80, %.lr.ph76 ], [ %78, %middle.block ]
  %.06074.ph = phi i32 [ 0, %.lr.ph76 ], [ %79, %middle.block ]
  br label %scalar.ph

vector.ph:                                        ; preds = %.lr.ph76
  %n.vec = and i64 %wide.trip.count, 2147483640
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %vec.phi = phi <4 x i32> [ <i32 80, i32 80, i32 80, i32 80>, %vector.ph ], [ %73, %vector.body ]
  %vec.phi144 = phi <4 x i32> [ <i32 80, i32 80, i32 80, i32 80>, %vector.ph ], [ %74, %vector.body ]
  %vec.phi145 = phi <4 x i32> [ zeroinitializer, %vector.ph ], [ %75, %vector.body ]
  %vec.phi146 = phi <4 x i32> [ zeroinitializer, %vector.ph ], [ %76, %vector.body ]
  %14 = or disjoint i64 %index, 1
  %15 = or disjoint i64 %index, 2
  %16 = or disjoint i64 %index, 3
  %17 = or disjoint i64 %index, 4
  %18 = or disjoint i64 %index, 5
  %19 = or disjoint i64 %index, 6
  %20 = or disjoint i64 %index, 7
  %21 = getelementptr inbounds %"struct.tflite::GreedyMemoryPlanner::BufferRequirements", ptr %11, i64 %index
  %22 = getelementptr inbounds %"struct.tflite::GreedyMemoryPlanner::BufferRequirements", ptr %11, i64 %14
  %23 = getelementptr inbounds %"struct.tflite::GreedyMemoryPlanner::BufferRequirements", ptr %11, i64 %15
  %24 = getelementptr inbounds %"struct.tflite::GreedyMemoryPlanner::BufferRequirements", ptr %11, i64 %16
  %25 = getelementptr inbounds %"struct.tflite::GreedyMemoryPlanner::BufferRequirements", ptr %11, i64 %17
  %26 = getelementptr inbounds %"struct.tflite::GreedyMemoryPlanner::BufferRequirements", ptr %11, i64 %18
  %27 = getelementptr inbounds %"struct.tflite::GreedyMemoryPlanner::BufferRequirements", ptr %11, i64 %19
  %28 = getelementptr inbounds %"struct.tflite::GreedyMemoryPlanner::BufferRequirements", ptr %11, i64 %20
  %29 = getelementptr inbounds i32, ptr %13, i64 %index
  %30 = getelementptr inbounds i8, ptr %29, i64 16
  %wide.load = load <4 x i32>, ptr %29, align 4, !tbaa !15
  %wide.load147 = load <4 x i32>, ptr %30, align 4, !tbaa !15
  %31 = getelementptr inbounds i8, ptr %21, i64 12
  %32 = getelementptr inbounds i8, ptr %22, i64 12
  %33 = getelementptr inbounds i8, ptr %23, i64 12
  %34 = getelementptr inbounds i8, ptr %24, i64 12
  %35 = getelementptr inbounds i8, ptr %25, i64 12
  %36 = getelementptr inbounds i8, ptr %26, i64 12
  %37 = getelementptr inbounds i8, ptr %27, i64 12
  %38 = getelementptr inbounds i8, ptr %28, i64 12
  %39 = load i32, ptr %31, align 4, !tbaa !16
  %40 = load i32, ptr %32, align 4, !tbaa !16
  %41 = load i32, ptr %33, align 4, !tbaa !16
  %42 = load i32, ptr %34, align 4, !tbaa !16
  %43 = insertelement <4 x i32> poison, i32 %39, i64 0
  %44 = insertelement <4 x i32> %43, i32 %40, i64 1
  %45 = insertelement <4 x i32> %44, i32 %41, i64 2
  %46 = insertelement <4 x i32> %45, i32 %42, i64 3
  %47 = load i32, ptr %35, align 4, !tbaa !16
  %48 = load i32, ptr %36, align 4, !tbaa !16
  %49 = load i32, ptr %37, align 4, !tbaa !16
  %50 = load i32, ptr %38, align 4, !tbaa !16
  %51 = insertelement <4 x i32> poison, i32 %47, i64 0
  %52 = insertelement <4 x i32> %51, i32 %48, i64 1
  %53 = insertelement <4 x i32> %52, i32 %49, i64 2
  %54 = insertelement <4 x i32> %53, i32 %50, i64 3
  %55 = load i32, ptr %21, align 4, !tbaa !18
  %56 = load i32, ptr %22, align 4, !tbaa !18
  %57 = load i32, ptr %23, align 4, !tbaa !18
  %58 = load i32, ptr %24, align 4, !tbaa !18
  %59 = insertelement <4 x i32> poison, i32 %55, i64 0
  %60 = insertelement <4 x i32> %59, i32 %56, i64 1
  %61 = insertelement <4 x i32> %60, i32 %57, i64 2
  %62 = insertelement <4 x i32> %61, i32 %58, i64 3
  %63 = load i32, ptr %25, align 4, !tbaa !18
  %64 = load i32, ptr %26, align 4, !tbaa !18
  %65 = load i32, ptr %27, align 4, !tbaa !18
  %66 = load i32, ptr %28, align 4, !tbaa !18
  %67 = insertelement <4 x i32> poison, i32 %63, i64 0
  %68 = insertelement <4 x i32> %67, i32 %64, i64 1
  %69 = insertelement <4 x i32> %68, i32 %65, i64 2
  %70 = insertelement <4 x i32> %69, i32 %66, i64 3
  %71 = add nsw <4 x i32> %62, %wide.load
  %72 = add nsw <4 x i32> %70, %wide.load147
  %73 = tail call <4 x i32> @llvm.smax.v4i32(<4 x i32> %71, <4 x i32> %vec.phi)
  %74 = tail call <4 x i32> @llvm.smax.v4i32(<4 x i32> %72, <4 x i32> %vec.phi144)
  %75 = tail call <4 x i32> @llvm.smax.v4i32(<4 x i32> %46, <4 x i32> %vec.phi145)
  %76 = tail call <4 x i32> @llvm.smax.v4i32(<4 x i32> %54, <4 x i32> %vec.phi146)
  %index.next = add nuw i64 %index, 8
  %77 = icmp eq i64 %index.next, %n.vec
  br i1 %77, label %middle.block, label %vector.body, !llvm.loop !19

middle.block:                                     ; preds = %vector.body
  %rdx.minmax = tail call <4 x i32> @llvm.smax.v4i32(<4 x i32> %73, <4 x i32> %74)
  %78 = tail call i32 @llvm.vector.reduce.smax.v4i32(<4 x i32> %rdx.minmax)
  %rdx.minmax148 = tail call <4 x i32> @llvm.smax.v4i32(<4 x i32> %75, <4 x i32> %76)
  %79 = tail call i32 @llvm.vector.reduce.smax.v4i32(<4 x i32> %rdx.minmax148)
  %cmp.n = icmp eq i64 %n.vec, %wide.trip.count
  br i1 %cmp.n, label %._crit_edge.loopexit, label %scalar.ph.preheader

80:                                               ; preds = %.lr.ph, %80
  %indvars.iv = phi i64 [ 0, %.lr.ph ], [ %indvars.iv.next, %80 ]
  %81 = load ptr, ptr %7, align 8, !tbaa !14
  %82 = getelementptr inbounds i32, ptr %81, i64 %indvars.iv
  %83 = load i32, ptr %82, align 4, !tbaa !15
  %84 = load ptr, ptr %8, align 8, !tbaa !13
  %85 = getelementptr inbounds %"struct.tflite::GreedyMemoryPlanner::BufferRequirements", ptr %84, i64 %indvars.iv
  %86 = load i32, ptr %85, align 4, !tbaa !18
  %87 = getelementptr inbounds i8, ptr %85, i64 8
  %88 = load i32, ptr %87, align 4, !tbaa !23
  %89 = getelementptr inbounds i8, ptr %85, i64 12
  %90 = load i32, ptr %89, align 4, !tbaa !16
  %91 = trunc nuw nsw i64 %indvars.iv to i32
  %92 = tail call noundef i32 (ptr, ptr, ...) @_ZN6tflite13ErrorReporter6ReportEPKcz(ptr noundef nonnull align 8 dereferenceable(8) %1, ptr noundef nonnull @.str.1, i32 noundef %91, i32 noundef %83, i32 noundef %86, i32 noundef %88, i32 noundef %90)
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %93 = load i32, ptr %4, align 4, !tbaa !5
  %94 = sext i32 %93 to i64
  %95 = icmp slt i64 %indvars.iv.next, %94
  br i1 %95, label %80, label %.preheader70, !llvm.loop !24

._crit_edge.loopexit:                             ; preds = %scalar.ph, %middle.block
  %spec.select.lcssa = phi i32 [ %78, %middle.block ], [ %spec.select, %scalar.ph ]
  %.161.lcssa = phi i32 [ %79, %middle.block ], [ %.161, %scalar.ph ]
  %96 = add nuw i32 %.161.lcssa, 1
  br label %.preheader69.lr.ph

.preheader69.lr.ph:                               ; preds = %2, %.preheader70, %._crit_edge.loopexit
  %.060.lcssa = phi i32 [ 1, %.preheader70 ], [ %96, %._crit_edge.loopexit ], [ 1, %2 ]
  %.059.lcssa = phi i32 [ 80, %.preheader70 ], [ %spec.select.lcssa, %._crit_edge.loopexit ], [ 80, %2 ]
  call void @llvm.lifetime.start.p0(i64 81, ptr nonnull %3) #6
  %97 = getelementptr inbounds i8, ptr %0, i64 16
  %98 = getelementptr inbounds i8, ptr %0, i64 56
  %99 = getelementptr inbounds i8, ptr %3, i64 80
  br label %.preheader69

scalar.ph:                                        ; preds = %scalar.ph.preheader, %scalar.ph
  %indvars.iv105 = phi i64 [ %indvars.iv.next106, %scalar.ph ], [ %indvars.iv105.ph, %scalar.ph.preheader ]
  %.05975 = phi i32 [ %spec.select, %scalar.ph ], [ %.05975.ph, %scalar.ph.preheader ]
  %.06074 = phi i32 [ %.161, %scalar.ph ], [ %.06074.ph, %scalar.ph.preheader ]
  %100 = getelementptr inbounds %"struct.tflite::GreedyMemoryPlanner::BufferRequirements", ptr %11, i64 %indvars.iv105
  %101 = getelementptr inbounds i32, ptr %13, i64 %indvars.iv105
  %102 = load i32, ptr %101, align 4, !tbaa !15
  %103 = getelementptr inbounds i8, ptr %100, i64 12
  %104 = load i32, ptr %103, align 4, !tbaa !16
  %105 = load i32, ptr %100, align 4, !tbaa !18
  %106 = add nsw i32 %105, %102
  %spec.select = tail call i32 @llvm.smax.i32(i32 %106, i32 %.05975)
  %.161 = tail call i32 @llvm.smax.i32(i32 %104, i32 %.06074)
  %indvars.iv.next106 = add nuw nsw i64 %indvars.iv105, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next106, %wide.trip.count
  br i1 %exitcond.not, label %._crit_edge.loopexit, label %scalar.ph, !llvm.loop !25

.preheader69:                                     ; preds = %.preheader69.lr.ph, %._crit_edge92
  %.06394 = phi i32 [ 0, %.preheader69.lr.ph ], [ %112, %._crit_edge92 ]
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(80) %3, i8 46, i64 80, i1 false), !tbaa !26
  %107 = load i32, ptr %4, align 4, !tbaa !5
  %108 = icmp sgt i32 %107, 0
  br i1 %108, label %.lr.ph91, label %._crit_edge92

._crit_edge95:                                    ; preds = %._crit_edge92
  call void @llvm.lifetime.end.p0(i64 81, ptr nonnull %3) #6
  ret void

.lr.ph91:                                         ; preds = %.preheader69
  %109 = load ptr, ptr %97, align 8, !tbaa !13
  %110 = load ptr, ptr %98, align 8
  %wide.trip.count134 = zext nneg i32 %107 to i64
  br label %113

._crit_edge92:                                    ; preds = %.loopexit, %.preheader69
  store i8 0, ptr %99, align 16, !tbaa !26
  %111 = call noundef i32 (ptr, ptr, ...) @_ZN6tflite13ErrorReporter6ReportEPKcz(ptr noundef nonnull align 8 dereferenceable(8) %1, ptr noundef nonnull @.str.2, ptr noundef nonnull %3)
  %112 = add nuw i32 %.06394, 1
  %exitcond136.not = icmp eq i32 %112, %.060.lcssa
  br i1 %exitcond136.not, label %._crit_edge95, label %.preheader69, !llvm.loop !27

113:                                              ; preds = %.lr.ph91, %.loopexit
  %indvars.iv131 = phi i64 [ 0, %.lr.ph91 ], [ %indvars.iv.next132, %.loopexit ]
  %114 = getelementptr inbounds %"struct.tflite::GreedyMemoryPlanner::BufferRequirements", ptr %109, i64 %indvars.iv131
  %115 = getelementptr inbounds i8, ptr %114, i64 8
  %116 = load i32, ptr %115, align 4, !tbaa !23
  %117 = icmp slt i32 %.06394, %116
  br i1 %117, label %.loopexit, label %118

118:                                              ; preds = %113
  %119 = getelementptr inbounds i8, ptr %114, i64 12
  %120 = load i32, ptr %119, align 4, !tbaa !16
  %121 = icmp sgt i32 %.06394, %120
  br i1 %121, label %.loopexit, label %122

122:                                              ; preds = %118
  %123 = getelementptr inbounds i32, ptr %110, i64 %indvars.iv131
  %124 = load i32, ptr %123, align 4, !tbaa !15
  %125 = icmp eq i32 %124, -1
  br i1 %125, label %.loopexit, label %126

126:                                              ; preds = %122
  %127 = load i32, ptr %114, align 4, !tbaa !18
  %128 = mul nsw i32 %124, 80
  %129 = sdiv i32 %128, %.059.lcssa
  %130 = add nsw i32 %127, %124
  %131 = mul nsw i32 %130, 80
  %132 = sdiv i32 %131, %.059.lcssa
  %133 = icmp slt i32 %129, %132
  br i1 %133, label %.lr.ph82, label %.loopexit

.lr.ph82:                                         ; preds = %126
  %134 = icmp ult i64 %indvars.iv131, 10
  %135 = icmp ult i64 %indvars.iv131, 62
  %136 = trunc i64 %indvars.iv131 to i8
  %137 = add nuw nsw i8 %136, 29
  %138 = add nuw nsw i8 %136, 87
  %139 = or disjoint i8 %136, 48
  br i1 %134, label %iter.check, label %.lr.ph82.split

iter.check:                                       ; preds = %.lr.ph82
  %140 = sext i32 %129 to i64
  %wide.trip.count129 = sext i32 %132 to i64
  %141 = sub nsw i64 %wide.trip.count129, %140
  %min.iters.check152 = icmp ult i64 %141, 8
  br i1 %min.iters.check152, label %.lr.ph82.split.us.preheader, label %vector.main.loop.iter.check

vector.main.loop.iter.check:                      ; preds = %iter.check
  %min.iters.check154 = icmp ult i64 %141, 32
  br i1 %min.iters.check154, label %vec.epilog.ph, label %vector.ph155

vector.ph155:                                     ; preds = %vector.main.loop.iter.check
  %n.vec157 = and i64 %141, -32
  %broadcast.splatinsert = insertelement <16 x i8> poison, i8 %139, i64 0
  %broadcast.splat = shufflevector <16 x i8> %broadcast.splatinsert, <16 x i8> poison, <16 x i32> zeroinitializer
  br label %vector.body158

vector.body158:                                   ; preds = %vector.body158, %vector.ph155
  %index159 = phi i64 [ 0, %vector.ph155 ], [ %index.next162, %vector.body158 ]
  %offset.idx = add i64 %index159, %140
  %142 = getelementptr inbounds [81 x i8], ptr %3, i64 0, i64 %offset.idx
  %143 = getelementptr inbounds i8, ptr %142, i64 16
  %wide.load160 = load <16 x i8>, ptr %142, align 1, !tbaa !26
  %wide.load161 = load <16 x i8>, ptr %143, align 1, !tbaa !26
  %144 = icmp eq <16 x i8> %wide.load160, <i8 46, i8 46, i8 46, i8 46, i8 46, i8 46, i8 46, i8 46, i8 46, i8 46, i8 46, i8 46, i8 46, i8 46, i8 46, i8 46>
  %145 = icmp eq <16 x i8> %wide.load161, <i8 46, i8 46, i8 46, i8 46, i8 46, i8 46, i8 46, i8 46, i8 46, i8 46, i8 46, i8 46, i8 46, i8 46, i8 46, i8 46>
  %146 = select <16 x i1> %144, <16 x i8> %broadcast.splat, <16 x i8> <i8 33, i8 33, i8 33, i8 33, i8 33, i8 33, i8 33, i8 33, i8 33, i8 33, i8 33, i8 33, i8 33, i8 33, i8 33, i8 33>
  %147 = select <16 x i1> %145, <16 x i8> %broadcast.splat, <16 x i8> <i8 33, i8 33, i8 33, i8 33, i8 33, i8 33, i8 33, i8 33, i8 33, i8 33, i8 33, i8 33, i8 33, i8 33, i8 33, i8 33>
  store <16 x i8> %146, ptr %142, align 1, !tbaa !26
  store <16 x i8> %147, ptr %143, align 1, !tbaa !26
  %index.next162 = add nuw i64 %index159, 32
  %148 = icmp eq i64 %index.next162, %n.vec157
  br i1 %148, label %middle.block150, label %vector.body158, !llvm.loop !28

middle.block150:                                  ; preds = %vector.body158
  %cmp.n163 = icmp eq i64 %141, %n.vec157
  br i1 %cmp.n163, label %.loopexit, label %vec.epilog.iter.check

vec.epilog.iter.check:                            ; preds = %middle.block150
  %ind.end166 = add nsw i64 %n.vec157, %140
  %n.vec.remaining = and i64 %141, 24
  %min.epilog.iters.check = icmp eq i64 %n.vec.remaining, 0
  br i1 %min.epilog.iters.check, label %.lr.ph82.split.us.preheader, label %vec.epilog.ph

vec.epilog.ph:                                    ; preds = %vector.main.loop.iter.check, %vec.epilog.iter.check
  %vec.epilog.resume.val = phi i64 [ %n.vec157, %vec.epilog.iter.check ], [ 0, %vector.main.loop.iter.check ]
  %n.vec165 = and i64 %141, -8
  %ind.end = add nsw i64 %n.vec165, %140
  %broadcast.splatinsert171 = insertelement <8 x i8> poison, i8 %139, i64 0
  %broadcast.splat172 = shufflevector <8 x i8> %broadcast.splatinsert171, <8 x i8> poison, <8 x i32> zeroinitializer
  br label %vec.epilog.vector.body

vec.epilog.vector.body:                           ; preds = %vec.epilog.vector.body, %vec.epilog.ph
  %index168 = phi i64 [ %vec.epilog.resume.val, %vec.epilog.ph ], [ %index.next173, %vec.epilog.vector.body ]
  %offset.idx169 = add i64 %index168, %140
  %149 = getelementptr inbounds [81 x i8], ptr %3, i64 0, i64 %offset.idx169
  %wide.load170 = load <8 x i8>, ptr %149, align 1, !tbaa !26
  %150 = icmp eq <8 x i8> %wide.load170, <i8 46, i8 46, i8 46, i8 46, i8 46, i8 46, i8 46, i8 46>
  %151 = select <8 x i1> %150, <8 x i8> %broadcast.splat172, <8 x i8> <i8 33, i8 33, i8 33, i8 33, i8 33, i8 33, i8 33, i8 33>
  store <8 x i8> %151, ptr %149, align 1, !tbaa !26
  %index.next173 = add nuw i64 %index168, 8
  %152 = icmp eq i64 %index.next173, %n.vec165
  br i1 %152, label %vec.epilog.middle.block, label %vec.epilog.vector.body, !llvm.loop !29

vec.epilog.middle.block:                          ; preds = %vec.epilog.vector.body
  %cmp.n174 = icmp eq i64 %141, %n.vec165
  br i1 %cmp.n174, label %.loopexit, label %.lr.ph82.split.us.preheader

.lr.ph82.split.us.preheader:                      ; preds = %vec.epilog.middle.block, %iter.check, %vec.epilog.iter.check
  %indvars.iv126.ph = phi i64 [ %140, %iter.check ], [ %ind.end166, %vec.epilog.iter.check ], [ %ind.end, %vec.epilog.middle.block ]
  br label %.lr.ph82.split.us

.lr.ph82.split.us:                                ; preds = %.lr.ph82.split.us.preheader, %.lr.ph82.split.us
  %indvars.iv126 = phi i64 [ %indvars.iv.next127, %.lr.ph82.split.us ], [ %indvars.iv126.ph, %.lr.ph82.split.us.preheader ]
  %153 = getelementptr inbounds [81 x i8], ptr %3, i64 0, i64 %indvars.iv126
  %154 = load i8, ptr %153, align 1, !tbaa !26
  %155 = icmp eq i8 %154, 46
  %spec.select96 = select i1 %155, i8 %139, i8 33
  store i8 %spec.select96, ptr %153, align 1, !tbaa !26
  %indvars.iv.next127 = add nsw i64 %indvars.iv126, 1
  %exitcond130.not = icmp eq i64 %indvars.iv.next127, %wide.trip.count129
  br i1 %exitcond130.not, label %.loopexit, label %.lr.ph82.split.us, !llvm.loop !30

.lr.ph82.split:                                   ; preds = %.lr.ph82
  %156 = icmp ult i64 %indvars.iv131, 36
  %157 = sext i32 %129 to i64
  %wide.trip.count124 = sext i32 %132 to i64
  %158 = sub nsw i64 %wide.trip.count124, %157
  %min.iters.check177 = icmp ult i64 %158, 8
  br i1 %156, label %iter.check179, label %.lr.ph82.split.split

iter.check179:                                    ; preds = %.lr.ph82.split
  br i1 %min.iters.check177, label %.lr.ph82.split.split.us.preheader, label %vector.main.loop.iter.check181

vector.main.loop.iter.check181:                   ; preds = %iter.check179
  %min.iters.check180 = icmp ult i64 %158, 32
  br i1 %min.iters.check180, label %vec.epilog.ph196, label %vector.ph182

vector.ph182:                                     ; preds = %vector.main.loop.iter.check181
  %n.vec184 = and i64 %158, -32
  %broadcast.splatinsert190 = insertelement <16 x i8> poison, i8 %138, i64 0
  %broadcast.splat191 = shufflevector <16 x i8> %broadcast.splatinsert190, <16 x i8> poison, <16 x i32> zeroinitializer
  br label %vector.body185

vector.body185:                                   ; preds = %vector.body185, %vector.ph182
  %index186 = phi i64 [ 0, %vector.ph182 ], [ %index.next192, %vector.body185 ]
  %offset.idx187 = add i64 %index186, %157
  %159 = getelementptr inbounds [81 x i8], ptr %3, i64 0, i64 %offset.idx187
  %160 = getelementptr inbounds i8, ptr %159, i64 16
  %wide.load188 = load <16 x i8>, ptr %159, align 1, !tbaa !26
  %wide.load189 = load <16 x i8>, ptr %160, align 1, !tbaa !26
  %161 = icmp eq <16 x i8> %wide.load188, <i8 46, i8 46, i8 46, i8 46, i8 46, i8 46, i8 46, i8 46, i8 46, i8 46, i8 46, i8 46, i8 46, i8 46, i8 46, i8 46>
  %162 = icmp eq <16 x i8> %wide.load189, <i8 46, i8 46, i8 46, i8 46, i8 46, i8 46, i8 46, i8 46, i8 46, i8 46, i8 46, i8 46, i8 46, i8 46, i8 46, i8 46>
  %163 = select <16 x i1> %161, <16 x i8> %broadcast.splat191, <16 x i8> <i8 33, i8 33, i8 33, i8 33, i8 33, i8 33, i8 33, i8 33, i8 33, i8 33, i8 33, i8 33, i8 33, i8 33, i8 33, i8 33>
  %164 = select <16 x i1> %162, <16 x i8> %broadcast.splat191, <16 x i8> <i8 33, i8 33, i8 33, i8 33, i8 33, i8 33, i8 33, i8 33, i8 33, i8 33, i8 33, i8 33, i8 33, i8 33, i8 33, i8 33>
  store <16 x i8> %163, ptr %159, align 1, !tbaa !26
  store <16 x i8> %164, ptr %160, align 1, !tbaa !26
  %index.next192 = add nuw i64 %index186, 32
  %165 = icmp eq i64 %index.next192, %n.vec184
  br i1 %165, label %middle.block175, label %vector.body185, !llvm.loop !31

middle.block175:                                  ; preds = %vector.body185
  %cmp.n193 = icmp eq i64 %158, %n.vec184
  br i1 %cmp.n193, label %.loopexit, label %vec.epilog.iter.check197

vec.epilog.iter.check197:                         ; preds = %middle.block175
  %ind.end204 = add nsw i64 %n.vec184, %157
  %n.vec.remaining198 = and i64 %158, 24
  %min.epilog.iters.check199 = icmp eq i64 %n.vec.remaining198, 0
  br i1 %min.epilog.iters.check199, label %.lr.ph82.split.split.us.preheader, label %vec.epilog.ph196

vec.epilog.ph196:                                 ; preds = %vector.main.loop.iter.check181, %vec.epilog.iter.check197
  %vec.epilog.resume.val200 = phi i64 [ %n.vec184, %vec.epilog.iter.check197 ], [ 0, %vector.main.loop.iter.check181 ]
  %n.vec202 = and i64 %158, -8
  %ind.end203 = add nsw i64 %n.vec202, %157
  %broadcast.splatinsert210 = insertelement <8 x i8> poison, i8 %138, i64 0
  %broadcast.splat211 = shufflevector <8 x i8> %broadcast.splatinsert210, <8 x i8> poison, <8 x i32> zeroinitializer
  br label %vec.epilog.vector.body206

vec.epilog.vector.body206:                        ; preds = %vec.epilog.vector.body206, %vec.epilog.ph196
  %index207 = phi i64 [ %vec.epilog.resume.val200, %vec.epilog.ph196 ], [ %index.next212, %vec.epilog.vector.body206 ]
  %offset.idx208 = add i64 %index207, %157
  %166 = getelementptr inbounds [81 x i8], ptr %3, i64 0, i64 %offset.idx208
  %wide.load209 = load <8 x i8>, ptr %166, align 1, !tbaa !26
  %167 = icmp eq <8 x i8> %wide.load209, <i8 46, i8 46, i8 46, i8 46, i8 46, i8 46, i8 46, i8 46>
  %168 = select <8 x i1> %167, <8 x i8> %broadcast.splat211, <8 x i8> <i8 33, i8 33, i8 33, i8 33, i8 33, i8 33, i8 33, i8 33>
  store <8 x i8> %168, ptr %166, align 1, !tbaa !26
  %index.next212 = add nuw i64 %index207, 8
  %169 = icmp eq i64 %index.next212, %n.vec202
  br i1 %169, label %vec.epilog.middle.block194, label %vec.epilog.vector.body206, !llvm.loop !32

vec.epilog.middle.block194:                       ; preds = %vec.epilog.vector.body206
  %cmp.n213 = icmp eq i64 %158, %n.vec202
  br i1 %cmp.n213, label %.loopexit, label %.lr.ph82.split.split.us.preheader

.lr.ph82.split.split.us.preheader:                ; preds = %vec.epilog.middle.block194, %iter.check179, %vec.epilog.iter.check197
  %indvars.iv121.ph = phi i64 [ %157, %iter.check179 ], [ %ind.end204, %vec.epilog.iter.check197 ], [ %ind.end203, %vec.epilog.middle.block194 ]
  br label %.lr.ph82.split.split.us

.lr.ph82.split.split.us:                          ; preds = %.lr.ph82.split.split.us.preheader, %.lr.ph82.split.split.us
  %indvars.iv121 = phi i64 [ %indvars.iv.next122, %.lr.ph82.split.split.us ], [ %indvars.iv121.ph, %.lr.ph82.split.split.us.preheader ]
  %170 = getelementptr inbounds [81 x i8], ptr %3, i64 0, i64 %indvars.iv121
  %171 = load i8, ptr %170, align 1, !tbaa !26
  %172 = icmp eq i8 %171, 46
  %spec.select97 = select i1 %172, i8 %138, i8 33
  store i8 %spec.select97, ptr %170, align 1, !tbaa !26
  %indvars.iv.next122 = add nsw i64 %indvars.iv121, 1
  %exitcond125.not = icmp eq i64 %indvars.iv.next122, %wide.trip.count124
  br i1 %exitcond125.not, label %.loopexit, label %.lr.ph82.split.split.us, !llvm.loop !33

.lr.ph82.split.split:                             ; preds = %.lr.ph82.split
  br i1 %135, label %iter.check218, label %iter.check257

iter.check257:                                    ; preds = %.lr.ph82.split.split
  br i1 %min.iters.check177, label %.lr.ph82.split.split.split.preheader, label %vector.main.loop.iter.check259

vector.main.loop.iter.check259:                   ; preds = %iter.check257
  %min.iters.check258 = icmp ult i64 %158, 32
  br i1 %min.iters.check258, label %vec.epilog.ph272, label %vector.ph260

vector.ph260:                                     ; preds = %vector.main.loop.iter.check259
  %n.vec262 = and i64 %158, -32
  br label %vector.body263

vector.body263:                                   ; preds = %vector.body263, %vector.ph260
  %index264 = phi i64 [ 0, %vector.ph260 ], [ %index.next268, %vector.body263 ]
  %offset.idx265 = add i64 %index264, %157
  %173 = getelementptr inbounds [81 x i8], ptr %3, i64 0, i64 %offset.idx265
  %174 = getelementptr inbounds i8, ptr %173, i64 16
  %wide.load266 = load <16 x i8>, ptr %173, align 1, !tbaa !26
  %wide.load267 = load <16 x i8>, ptr %174, align 1, !tbaa !26
  %175 = icmp eq <16 x i8> %wide.load266, <i8 46, i8 46, i8 46, i8 46, i8 46, i8 46, i8 46, i8 46, i8 46, i8 46, i8 46, i8 46, i8 46, i8 46, i8 46, i8 46>
  %176 = icmp eq <16 x i8> %wide.load267, <i8 46, i8 46, i8 46, i8 46, i8 46, i8 46, i8 46, i8 46, i8 46, i8 46, i8 46, i8 46, i8 46, i8 46, i8 46, i8 46>
  %177 = select <16 x i1> %175, <16 x i8> <i8 42, i8 42, i8 42, i8 42, i8 42, i8 42, i8 42, i8 42, i8 42, i8 42, i8 42, i8 42, i8 42, i8 42, i8 42, i8 42>, <16 x i8> <i8 33, i8 33, i8 33, i8 33, i8 33, i8 33, i8 33, i8 33, i8 33, i8 33, i8 33, i8 33, i8 33, i8 33, i8 33, i8 33>
  %178 = select <16 x i1> %176, <16 x i8> <i8 42, i8 42, i8 42, i8 42, i8 42, i8 42, i8 42, i8 42, i8 42, i8 42, i8 42, i8 42, i8 42, i8 42, i8 42, i8 42>, <16 x i8> <i8 33, i8 33, i8 33, i8 33, i8 33, i8 33, i8 33, i8 33, i8 33, i8 33, i8 33, i8 33, i8 33, i8 33, i8 33, i8 33>
  store <16 x i8> %177, ptr %173, align 1, !tbaa !26
  store <16 x i8> %178, ptr %174, align 1, !tbaa !26
  %index.next268 = add nuw i64 %index264, 32
  %179 = icmp eq i64 %index.next268, %n.vec262
  br i1 %179, label %middle.block253, label %vector.body263, !llvm.loop !34

middle.block253:                                  ; preds = %vector.body263
  %cmp.n269 = icmp eq i64 %158, %n.vec262
  br i1 %cmp.n269, label %.loopexit, label %vec.epilog.iter.check273

vec.epilog.iter.check273:                         ; preds = %middle.block253
  %ind.end280 = add nsw i64 %n.vec262, %157
  %n.vec.remaining274 = and i64 %158, 24
  %min.epilog.iters.check275 = icmp eq i64 %n.vec.remaining274, 0
  br i1 %min.epilog.iters.check275, label %.lr.ph82.split.split.split.preheader, label %vec.epilog.ph272

.lr.ph82.split.split.split.preheader:             ; preds = %vec.epilog.middle.block270, %iter.check257, %vec.epilog.iter.check273
  %indvars.iv111.ph = phi i64 [ %157, %iter.check257 ], [ %ind.end280, %vec.epilog.iter.check273 ], [ %ind.end279, %vec.epilog.middle.block270 ]
  br label %.lr.ph82.split.split.split

vec.epilog.ph272:                                 ; preds = %vector.main.loop.iter.check259, %vec.epilog.iter.check273
  %vec.epilog.resume.val276 = phi i64 [ %n.vec262, %vec.epilog.iter.check273 ], [ 0, %vector.main.loop.iter.check259 ]
  %n.vec278 = and i64 %158, -8
  %ind.end279 = add nsw i64 %n.vec278, %157
  br label %vec.epilog.vector.body282

vec.epilog.vector.body282:                        ; preds = %vec.epilog.vector.body282, %vec.epilog.ph272
  %index283 = phi i64 [ %vec.epilog.resume.val276, %vec.epilog.ph272 ], [ %index.next286, %vec.epilog.vector.body282 ]
  %offset.idx284 = add i64 %index283, %157
  %180 = getelementptr inbounds [81 x i8], ptr %3, i64 0, i64 %offset.idx284
  %wide.load285 = load <8 x i8>, ptr %180, align 1, !tbaa !26
  %181 = icmp eq <8 x i8> %wide.load285, <i8 46, i8 46, i8 46, i8 46, i8 46, i8 46, i8 46, i8 46>
  %182 = select <8 x i1> %181, <8 x i8> <i8 42, i8 42, i8 42, i8 42, i8 42, i8 42, i8 42, i8 42>, <8 x i8> <i8 33, i8 33, i8 33, i8 33, i8 33, i8 33, i8 33, i8 33>
  store <8 x i8> %182, ptr %180, align 1, !tbaa !26
  %index.next286 = add nuw i64 %index283, 8
  %183 = icmp eq i64 %index.next286, %n.vec278
  br i1 %183, label %vec.epilog.middle.block270, label %vec.epilog.vector.body282, !llvm.loop !35

vec.epilog.middle.block270:                       ; preds = %vec.epilog.vector.body282
  %cmp.n287 = icmp eq i64 %158, %n.vec278
  br i1 %cmp.n287, label %.loopexit, label %.lr.ph82.split.split.split.preheader

iter.check218:                                    ; preds = %.lr.ph82.split.split
  br i1 %min.iters.check177, label %.lr.ph82.split.split.split.us.preheader, label %vector.main.loop.iter.check220

vector.main.loop.iter.check220:                   ; preds = %iter.check218
  %min.iters.check219 = icmp ult i64 %158, 32
  br i1 %min.iters.check219, label %vec.epilog.ph235, label %vector.ph221

vector.ph221:                                     ; preds = %vector.main.loop.iter.check220
  %n.vec223 = and i64 %158, -32
  %broadcast.splatinsert229 = insertelement <16 x i8> poison, i8 %137, i64 0
  %broadcast.splat230 = shufflevector <16 x i8> %broadcast.splatinsert229, <16 x i8> poison, <16 x i32> zeroinitializer
  br label %vector.body224

vector.body224:                                   ; preds = %vector.body224, %vector.ph221
  %index225 = phi i64 [ 0, %vector.ph221 ], [ %index.next231, %vector.body224 ]
  %offset.idx226 = add i64 %index225, %157
  %184 = getelementptr inbounds [81 x i8], ptr %3, i64 0, i64 %offset.idx226
  %185 = getelementptr inbounds i8, ptr %184, i64 16
  %wide.load227 = load <16 x i8>, ptr %184, align 1, !tbaa !26
  %wide.load228 = load <16 x i8>, ptr %185, align 1, !tbaa !26
  %186 = icmp eq <16 x i8> %wide.load227, <i8 46, i8 46, i8 46, i8 46, i8 46, i8 46, i8 46, i8 46, i8 46, i8 46, i8 46, i8 46, i8 46, i8 46, i8 46, i8 46>
  %187 = icmp eq <16 x i8> %wide.load228, <i8 46, i8 46, i8 46, i8 46, i8 46, i8 46, i8 46, i8 46, i8 46, i8 46, i8 46, i8 46, i8 46, i8 46, i8 46, i8 46>
  %188 = select <16 x i1> %186, <16 x i8> %broadcast.splat230, <16 x i8> <i8 33, i8 33, i8 33, i8 33, i8 33, i8 33, i8 33, i8 33, i8 33, i8 33, i8 33, i8 33, i8 33, i8 33, i8 33, i8 33>
  %189 = select <16 x i1> %187, <16 x i8> %broadcast.splat230, <16 x i8> <i8 33, i8 33, i8 33, i8 33, i8 33, i8 33, i8 33, i8 33, i8 33, i8 33, i8 33, i8 33, i8 33, i8 33, i8 33, i8 33>
  store <16 x i8> %188, ptr %184, align 1, !tbaa !26
  store <16 x i8> %189, ptr %185, align 1, !tbaa !26
  %index.next231 = add nuw i64 %index225, 32
  %190 = icmp eq i64 %index.next231, %n.vec223
  br i1 %190, label %middle.block214, label %vector.body224, !llvm.loop !36

middle.block214:                                  ; preds = %vector.body224
  %cmp.n232 = icmp eq i64 %158, %n.vec223
  br i1 %cmp.n232, label %.loopexit, label %vec.epilog.iter.check236

vec.epilog.iter.check236:                         ; preds = %middle.block214
  %ind.end243 = add nsw i64 %n.vec223, %157
  %n.vec.remaining237 = and i64 %158, 24
  %min.epilog.iters.check238 = icmp eq i64 %n.vec.remaining237, 0
  br i1 %min.epilog.iters.check238, label %.lr.ph82.split.split.split.us.preheader, label %vec.epilog.ph235

vec.epilog.ph235:                                 ; preds = %vector.main.loop.iter.check220, %vec.epilog.iter.check236
  %vec.epilog.resume.val239 = phi i64 [ %n.vec223, %vec.epilog.iter.check236 ], [ 0, %vector.main.loop.iter.check220 ]
  %n.vec241 = and i64 %158, -8
  %ind.end242 = add nsw i64 %n.vec241, %157
  %broadcast.splatinsert249 = insertelement <8 x i8> poison, i8 %137, i64 0
  %broadcast.splat250 = shufflevector <8 x i8> %broadcast.splatinsert249, <8 x i8> poison, <8 x i32> zeroinitializer
  br label %vec.epilog.vector.body245

vec.epilog.vector.body245:                        ; preds = %vec.epilog.vector.body245, %vec.epilog.ph235
  %index246 = phi i64 [ %vec.epilog.resume.val239, %vec.epilog.ph235 ], [ %index.next251, %vec.epilog.vector.body245 ]
  %offset.idx247 = add i64 %index246, %157
  %191 = getelementptr inbounds [81 x i8], ptr %3, i64 0, i64 %offset.idx247
  %wide.load248 = load <8 x i8>, ptr %191, align 1, !tbaa !26
  %192 = icmp eq <8 x i8> %wide.load248, <i8 46, i8 46, i8 46, i8 46, i8 46, i8 46, i8 46, i8 46>
  %193 = select <8 x i1> %192, <8 x i8> %broadcast.splat250, <8 x i8> <i8 33, i8 33, i8 33, i8 33, i8 33, i8 33, i8 33, i8 33>
  store <8 x i8> %193, ptr %191, align 1, !tbaa !26
  %index.next251 = add nuw i64 %index246, 8
  %194 = icmp eq i64 %index.next251, %n.vec241
  br i1 %194, label %vec.epilog.middle.block233, label %vec.epilog.vector.body245, !llvm.loop !37

vec.epilog.middle.block233:                       ; preds = %vec.epilog.vector.body245
  %cmp.n252 = icmp eq i64 %158, %n.vec241
  br i1 %cmp.n252, label %.loopexit, label %.lr.ph82.split.split.split.us.preheader

.lr.ph82.split.split.split.us.preheader:          ; preds = %vec.epilog.middle.block233, %iter.check218, %vec.epilog.iter.check236
  %indvars.iv116.ph = phi i64 [ %157, %iter.check218 ], [ %ind.end243, %vec.epilog.iter.check236 ], [ %ind.end242, %vec.epilog.middle.block233 ]
  br label %.lr.ph82.split.split.split.us

.lr.ph82.split.split.split.us:                    ; preds = %.lr.ph82.split.split.split.us.preheader, %.lr.ph82.split.split.split.us
  %indvars.iv116 = phi i64 [ %indvars.iv.next117, %.lr.ph82.split.split.split.us ], [ %indvars.iv116.ph, %.lr.ph82.split.split.split.us.preheader ]
  %195 = getelementptr inbounds [81 x i8], ptr %3, i64 0, i64 %indvars.iv116
  %196 = load i8, ptr %195, align 1, !tbaa !26
  %197 = icmp eq i8 %196, 46
  %spec.select98 = select i1 %197, i8 %137, i8 33
  store i8 %spec.select98, ptr %195, align 1, !tbaa !26
  %indvars.iv.next117 = add nsw i64 %indvars.iv116, 1
  %exitcond120.not = icmp eq i64 %indvars.iv.next117, %wide.trip.count124
  br i1 %exitcond120.not, label %.loopexit, label %.lr.ph82.split.split.split.us, !llvm.loop !38

.lr.ph82.split.split.split:                       ; preds = %.lr.ph82.split.split.split.preheader, %.lr.ph82.split.split.split
  %indvars.iv111 = phi i64 [ %indvars.iv.next112, %.lr.ph82.split.split.split ], [ %indvars.iv111.ph, %.lr.ph82.split.split.split.preheader ]
  %198 = getelementptr inbounds [81 x i8], ptr %3, i64 0, i64 %indvars.iv111
  %199 = load i8, ptr %198, align 1, !tbaa !26
  %200 = icmp eq i8 %199, 46
  %spec.select99 = select i1 %200, i8 42, i8 33
  store i8 %spec.select99, ptr %198, align 1, !tbaa !26
  %indvars.iv.next112 = add nsw i64 %indvars.iv111, 1
  %exitcond115.not = icmp eq i64 %indvars.iv.next112, %wide.trip.count124
  br i1 %exitcond115.not, label %.loopexit, label %.lr.ph82.split.split.split, !llvm.loop !39

.loopexit:                                        ; preds = %.lr.ph82.split.split.split, %.lr.ph82.split.split.split.us, %.lr.ph82.split.split.us, %.lr.ph82.split.us, %middle.block253, %vec.epilog.middle.block270, %middle.block214, %vec.epilog.middle.block233, %middle.block175, %vec.epilog.middle.block194, %middle.block150, %vec.epilog.middle.block, %126, %122, %113, %118
  %indvars.iv.next132 = add nuw nsw i64 %indvars.iv131, 1
  %exitcond135.not = icmp eq i64 %indvars.iv.next132, %wide.trip.count134
  br i1 %exitcond135.not, label %._crit_edge92, label %113, !llvm.loop !40
}

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.smax.i32(i32, i32) #4

; 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: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare <4 x i32> @llvm.smax.v4i32(<4 x i32>, <4 x i32>) #4

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.vector.reduce.smax.v4i32(<4 x i32>) #4

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { 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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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, !8, i64 12}
!6 = !{!"_ZTSN6tflite19GreedyMemoryPlannerE", !7, i64 0, !8, i64 8, !8, i64 12, !11, i64 16, !11, i64 24, !11, i64 32, !11, i64 40, !8, i64 48, !8, i64 52, !11, i64 56, !12, i64 64}
!7 = !{!"_ZTSN6tflite13MemoryPlannerE"}
!8 = !{!"int", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C++ TBAA"}
!11 = !{!"any pointer", !9, i64 0}
!12 = !{!"bool", !9, i64 0}
!13 = !{!6, !11, i64 16}
!14 = !{!6, !11, i64 56}
!15 = !{!8, !8, i64 0}
!16 = !{!17, !8, i64 12}
!17 = !{!"_ZTSN6tflite19GreedyMemoryPlanner18BufferRequirementsE", !8, i64 0, !8, i64 4, !8, i64 8, !8, i64 12}
!18 = !{!17, !8, i64 0}
!19 = distinct !{!19, !20, !21, !22}
!20 = !{!"llvm.loop.mustprogress"}
!21 = !{!"llvm.loop.isvectorized", i32 1}
!22 = !{!"llvm.loop.unroll.runtime.disable"}
!23 = !{!17, !8, i64 8}
!24 = distinct !{!24, !20}
!25 = distinct !{!25, !20, !22, !21}
!26 = !{!9, !9, i64 0}
!27 = distinct !{!27, !20}
!28 = distinct !{!28, !20, !21, !22}
!29 = distinct !{!29, !20, !21, !22}
!30 = distinct !{!30, !20, !22, !21}
!31 = distinct !{!31, !20, !21, !22}
!32 = distinct !{!32, !20, !21, !22}
!33 = distinct !{!33, !20, !22, !21}
!34 = distinct !{!34, !20, !21, !22}
!35 = distinct !{!35, !20, !21, !22}
!36 = distinct !{!36, !20, !21, !22}
!37 = distinct !{!37, !20, !21, !22}
!38 = distinct !{!38, !20, !22, !21}
!39 = distinct !{!39, !20, !22, !21}
!40 = distinct !{!40, !20}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopIdiomRecognizePass,LoopInstSimplifyPass,LoopLoadEliminationPass,LoopRotatePass,LoopSimplifyCFGPass,LoopSimplifyPass,LoopUnrollPass,LoopVectorizePass,ReassociatePass,SCCPPass,SROAPass,SimplifyCFGPass,TailCallElimPass