; LLVM IR from uecker/noplate :: tests (span)

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%struct.span_float = type { i64, ptr }
%struct.span_int = type { i64, ptr }
%struct.vec_int = type { i64, [0 x i32] }

; Function Attrs: nounwind uwtable
define dso_local void @test_span() #0 {
  %1 = alloca [4 x float], align 16
  %2 = alloca %struct.span_float, align 8
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca i64, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca i64, align 8
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca ptr, align 8
  %16 = alloca i64, align 8
  %17 = alloca ptr, align 8
  %18 = alloca ptr, align 8
  %19 = alloca ptr, align 8
  %20 = alloca ptr, align 8
  %21 = alloca i32, align 4
  %22 = alloca ptr, align 8
  %23 = alloca i64, align 8
  %24 = alloca ptr, align 8
  %25 = alloca ptr, align 8
  %26 = alloca ptr, align 8
  %27 = alloca ptr, align 8
  %28 = alloca i64, align 8
  %29 = alloca ptr, align 8
  %30 = alloca ptr, align 8
  %31 = alloca ptr, align 8
  %32 = alloca ptr, align 8
  %33 = alloca i32, align 4
  %34 = alloca ptr, align 8
  %35 = alloca i64, align 8
  %36 = alloca ptr, align 8
  %37 = alloca ptr, align 8
  %38 = alloca ptr, align 8
  %39 = alloca ptr, align 8
  %40 = alloca i64, align 8
  %41 = alloca ptr, align 8
  %42 = alloca ptr, align 8
  %43 = alloca ptr, align 8
  %44 = alloca ptr, align 8
  %45 = alloca i32, align 4
  %46 = alloca ptr, align 8
  %47 = alloca i64, align 8
  %48 = alloca ptr, align 8
  %49 = alloca ptr, align 8
  %50 = alloca ptr, align 8
  %51 = alloca %struct.span_int, align 8
  %52 = alloca ptr, align 8
  %53 = alloca ptr, align 8
  %54 = alloca ptr, align 8
  %55 = alloca ptr, align 8
  %56 = alloca ptr, align 8
  %57 = alloca ptr, align 8
  %58 = alloca ptr, align 8
  %59 = alloca i64, align 8
  %60 = alloca ptr, align 8
  %61 = alloca ptr, align 8
  %62 = alloca ptr, align 8
  %63 = alloca ptr, align 8
  %64 = alloca ptr, align 8
  %65 = alloca ptr, align 8
  %66 = alloca ptr, align 8
  %67 = alloca ptr, align 8
  %68 = alloca ptr, align 8
  %69 = alloca ptr, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr %1) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr %2) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #5
  store ptr %1, ptr %3, align 8, !tbaa !5
  %70 = getelementptr inbounds %struct.span_float, ptr %2, i32 0, i32 0
  store i64 4, ptr %70, align 8, !tbaa !9
  %71 = getelementptr inbounds %struct.span_float, ptr %2, i32 0, i32 1
  %72 = load ptr, ptr %3, align 8, !tbaa !5
  %73 = getelementptr inbounds [4 x float], ptr %72, i64 0, i64 0
  store ptr %73, ptr %71, align 8, !tbaa !12
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #5
  store ptr %2, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #5
  store i64 1, ptr %5, align 8, !tbaa !13
  %74 = load i64, ptr %5, align 8, !tbaa !13
  %75 = icmp sle i64 0, %74
  br i1 %75, label %76, label %82

76:                                               ; preds = %0
  %77 = load i64, ptr %5, align 8, !tbaa !13
  %78 = load ptr, ptr %4, align 8, !tbaa !5
  %79 = getelementptr inbounds %struct.span_float, ptr %78, i32 0, i32 0
  %80 = load i64, ptr %79, align 8, !tbaa !9
  %81 = icmp slt i64 %77, %80
  br i1 %81, label %83, label %82

82:                                               ; preds = %76, %0
  call void @abort() #6
  unreachable

83:                                               ; preds = %76
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #5
  %84 = load ptr, ptr %4, align 8, !tbaa !5
  store ptr %84, ptr %7, align 8, !tbaa !5
  %85 = load ptr, ptr %7, align 8, !tbaa !5
  %86 = getelementptr inbounds %struct.span_float, ptr %85, i32 0, i32 0
  %87 = load i64, ptr %86, align 8, !tbaa !9
  %88 = load ptr, ptr %4, align 8, !tbaa !5
  %89 = getelementptr inbounds %struct.span_float, ptr %88, i32 0, i32 1
  %90 = load ptr, ptr %89, align 8, !tbaa !12
  store ptr %90, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #5
  %91 = load ptr, ptr %8, align 8, !tbaa !5
  %92 = load i64, ptr %5, align 8, !tbaa !13
  %93 = getelementptr inbounds float, ptr %91, i64 %92
  store ptr %93, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #5
  %94 = load ptr, ptr %6, align 8, !tbaa !5
  store float 1.000000e+00, ptr %94, align 4, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #5
  store i64 0, ptr %11, align 8, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #5
  %95 = load i64, ptr %11, align 8, !tbaa !13
  %96 = mul nsw i64 %95, 4
  %97 = add nsw i64 8, %96
  %98 = call noalias ptr @malloc(i64 noundef %97) #7
  store ptr %98, ptr %12, align 8, !tbaa !5
  %99 = load ptr, ptr %12, align 8, !tbaa !5
  %100 = icmp ne ptr %99, null
  br i1 %100, label %101, label %105

101:                                              ; preds = %83
  %102 = load i64, ptr %11, align 8, !tbaa !13
  %103 = load ptr, ptr %12, align 8, !tbaa !5
  %104 = getelementptr inbounds %struct.vec_int, ptr %103, i32 0, i32 0
  store i64 %102, ptr %104, align 8, !tbaa !13
  br label %105

105:                                              ; preds = %101, %83
  %106 = load ptr, ptr %12, align 8, !tbaa !5
  store ptr %106, ptr %13, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #5
  %107 = load ptr, ptr %13, align 8, !tbaa !5
  store ptr %107, ptr %10, align 8, !tbaa !5
  %108 = load ptr, ptr %10, align 8, !tbaa !5
  %109 = icmp ne ptr %108, null
  br i1 %109, label %111, label %110

110:                                              ; preds = %105
  call void @abort() #6
  unreachable

111:                                              ; preds = %105
  %112 = load ptr, ptr %10, align 8, !tbaa !5
  store ptr %112, ptr %14, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #5
  %113 = load ptr, ptr %14, align 8, !tbaa !5
  store ptr %113, ptr %9, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #5
  store ptr %9, ptr %15, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #5
  %114 = load ptr, ptr %15, align 8, !tbaa !5
  %115 = load ptr, ptr %114, align 8, !tbaa !5
  %116 = getelementptr inbounds %struct.vec_int, ptr %115, i32 0, i32 0
  %117 = load i64, ptr %116, align 8, !tbaa !13
  store i64 %117, ptr %16, align 8, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #5
  %118 = load ptr, ptr %15, align 8, !tbaa !5
  store ptr %118, ptr %18, align 8, !tbaa !5
  %119 = load ptr, ptr %18, align 8, !tbaa !5
  %120 = load ptr, ptr %119, align 8, !tbaa !5
  %121 = getelementptr inbounds %struct.vec_int, ptr %120, i32 0, i32 1
  %122 = load i64, ptr %16, align 8, !tbaa !13
  %123 = add nsw i64 %122, 1
  %124 = load ptr, ptr %18, align 8, !tbaa !5
  %125 = load ptr, ptr %124, align 8, !tbaa !5
  %126 = getelementptr inbounds %struct.vec_int, ptr %125, i32 0, i32 0
  store i64 %123, ptr %126, align 8, !tbaa !13
  %127 = load ptr, ptr %18, align 8, !tbaa !5
  %128 = load ptr, ptr %127, align 8, !tbaa !5
  %129 = load ptr, ptr %18, align 8, !tbaa !5
  %130 = load ptr, ptr %129, align 8, !tbaa !5
  %131 = getelementptr inbounds %struct.vec_int, ptr %130, i32 0, i32 0
  %132 = load i64, ptr %131, align 8, !tbaa !13
  %133 = mul nsw i64 %132, 4
  %134 = add nsw i64 8, %133
  %135 = call ptr @realloc(ptr noundef %128, i64 noundef %134) #8
  %136 = load ptr, ptr %18, align 8, !tbaa !5
  store ptr %135, ptr %136, align 8, !tbaa !5
  %137 = load ptr, ptr %18, align 8, !tbaa !5
  %138 = load ptr, ptr %137, align 8, !tbaa !5
  store ptr %138, ptr %19, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #5
  %139 = load ptr, ptr %19, align 8, !tbaa !5
  store ptr %139, ptr %17, align 8, !tbaa !5
  %140 = load ptr, ptr %17, align 8, !tbaa !5
  %141 = icmp ne ptr %140, null
  br i1 %141, label %143, label %142

142:                                              ; preds = %111
  call void @abort() #6
  unreachable

143:                                              ; preds = %111
  %144 = load ptr, ptr %17, align 8, !tbaa !5
  store ptr %144, ptr %20, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #5
  %145 = load ptr, ptr %20, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #5
  %146 = load ptr, ptr %15, align 8, !tbaa !5
  %147 = load ptr, ptr %146, align 8, !tbaa !5
  store ptr %147, ptr %22, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #5
  %148 = load i64, ptr %16, align 8, !tbaa !13
  store i64 %148, ptr %23, align 8, !tbaa !13
  %149 = load i64, ptr %23, align 8, !tbaa !13
  %150 = icmp sle i64 0, %149
  br i1 %150, label %151, label %157

151:                                              ; preds = %143
  %152 = load i64, ptr %23, align 8, !tbaa !13
  %153 = load ptr, ptr %22, align 8, !tbaa !5
  %154 = getelementptr inbounds %struct.vec_int, ptr %153, i32 0, i32 0
  %155 = load i64, ptr %154, align 8, !tbaa !13
  %156 = icmp slt i64 %152, %155
  br i1 %156, label %158, label %157

157:                                              ; preds = %151, %143
  call void @abort() #6
  unreachable

158:                                              ; preds = %151
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #5
  %159 = load ptr, ptr %22, align 8, !tbaa !5
  store ptr %159, ptr %25, align 8, !tbaa !5
  %160 = load ptr, ptr %25, align 8, !tbaa !5
  %161 = getelementptr inbounds %struct.vec_int, ptr %160, i32 0, i32 0
  %162 = load i64, ptr %161, align 8, !tbaa !13
  %163 = load ptr, ptr %22, align 8, !tbaa !5
  %164 = getelementptr inbounds %struct.vec_int, ptr %163, i32 0, i32 1
  %165 = getelementptr inbounds [0 x i32], ptr %164, i64 0, i64 0
  store ptr %165, ptr %26, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #5
  %166 = load ptr, ptr %26, align 8, !tbaa !5
  %167 = load i64, ptr %23, align 8, !tbaa !13
  %168 = getelementptr inbounds i32, ptr %166, i64 %167
  store ptr %168, ptr %24, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #5
  %169 = load ptr, ptr %24, align 8, !tbaa !5
  store i32 1, ptr %169, align 4, !tbaa !16
  store i32 1, ptr %21, align 4, !tbaa !16
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #5
  %170 = load i32, ptr %21, align 4, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #5
  store ptr %9, ptr %27, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #5
  %171 = load ptr, ptr %27, align 8, !tbaa !5
  %172 = load ptr, ptr %171, align 8, !tbaa !5
  %173 = getelementptr inbounds %struct.vec_int, ptr %172, i32 0, i32 0
  %174 = load i64, ptr %173, align 8, !tbaa !13
  store i64 %174, ptr %28, align 8, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %30) #5
  %175 = load ptr, ptr %27, align 8, !tbaa !5
  store ptr %175, ptr %30, align 8, !tbaa !5
  %176 = load ptr, ptr %30, align 8, !tbaa !5
  %177 = load ptr, ptr %176, align 8, !tbaa !5
  %178 = getelementptr inbounds %struct.vec_int, ptr %177, i32 0, i32 1
  %179 = load i64, ptr %28, align 8, !tbaa !13
  %180 = add nsw i64 %179, 1
  %181 = load ptr, ptr %30, align 8, !tbaa !5
  %182 = load ptr, ptr %181, align 8, !tbaa !5
  %183 = getelementptr inbounds %struct.vec_int, ptr %182, i32 0, i32 0
  store i64 %180, ptr %183, align 8, !tbaa !13
  %184 = load ptr, ptr %30, align 8, !tbaa !5
  %185 = load ptr, ptr %184, align 8, !tbaa !5
  %186 = load ptr, ptr %30, align 8, !tbaa !5
  %187 = load ptr, ptr %186, align 8, !tbaa !5
  %188 = getelementptr inbounds %struct.vec_int, ptr %187, i32 0, i32 0
  %189 = load i64, ptr %188, align 8, !tbaa !13
  %190 = mul nsw i64 %189, 4
  %191 = add nsw i64 8, %190
  %192 = call ptr @realloc(ptr noundef %185, i64 noundef %191) #8
  %193 = load ptr, ptr %30, align 8, !tbaa !5
  store ptr %192, ptr %193, align 8, !tbaa !5
  %194 = load ptr, ptr %30, align 8, !tbaa !5
  %195 = load ptr, ptr %194, align 8, !tbaa !5
  store ptr %195, ptr %31, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #5
  %196 = load ptr, ptr %31, align 8, !tbaa !5
  store ptr %196, ptr %29, align 8, !tbaa !5
  %197 = load ptr, ptr %29, align 8, !tbaa !5
  %198 = icmp ne ptr %197, null
  br i1 %198, label %200, label %199

199:                                              ; preds = %158
  call void @abort() #6
  unreachable

200:                                              ; preds = %158
  %201 = load ptr, ptr %29, align 8, !tbaa !5
  store ptr %201, ptr %32, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #5
  %202 = load ptr, ptr %32, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %34) #5
  %203 = load ptr, ptr %27, align 8, !tbaa !5
  %204 = load ptr, ptr %203, align 8, !tbaa !5
  store ptr %204, ptr %34, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %35) #5
  %205 = load i64, ptr %28, align 8, !tbaa !13
  store i64 %205, ptr %35, align 8, !tbaa !13
  %206 = load i64, ptr %35, align 8, !tbaa !13
  %207 = icmp sle i64 0, %206
  br i1 %207, label %208, label %214

208:                                              ; preds = %200
  %209 = load i64, ptr %35, align 8, !tbaa !13
  %210 = load ptr, ptr %34, align 8, !tbaa !5
  %211 = getelementptr inbounds %struct.vec_int, ptr %210, i32 0, i32 0
  %212 = load i64, ptr %211, align 8, !tbaa !13
  %213 = icmp slt i64 %209, %212
  br i1 %213, label %215, label %214

214:                                              ; preds = %208, %200
  call void @abort() #6
  unreachable

215:                                              ; preds = %208
  call void @llvm.lifetime.start.p0(i64 8, ptr %37) #5
  %216 = load ptr, ptr %34, align 8, !tbaa !5
  store ptr %216, ptr %37, align 8, !tbaa !5
  %217 = load ptr, ptr %37, align 8, !tbaa !5
  %218 = getelementptr inbounds %struct.vec_int, ptr %217, i32 0, i32 0
  %219 = load i64, ptr %218, align 8, !tbaa !13
  %220 = load ptr, ptr %34, align 8, !tbaa !5
  %221 = getelementptr inbounds %struct.vec_int, ptr %220, i32 0, i32 1
  %222 = getelementptr inbounds [0 x i32], ptr %221, i64 0, i64 0
  store ptr %222, ptr %38, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr %37) #5
  %223 = load ptr, ptr %38, align 8, !tbaa !5
  %224 = load i64, ptr %35, align 8, !tbaa !13
  %225 = getelementptr inbounds i32, ptr %223, i64 %224
  store ptr %225, ptr %36, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr %35) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %34) #5
  %226 = load ptr, ptr %36, align 8, !tbaa !5
  store i32 3, ptr %226, align 4, !tbaa !16
  store i32 3, ptr %33, align 4, !tbaa !16
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #5
  %227 = load i32, ptr %33, align 4, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 8, ptr %39) #5
  store ptr %9, ptr %39, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %40) #5
  %228 = load ptr, ptr %39, align 8, !tbaa !5
  %229 = load ptr, ptr %228, align 8, !tbaa !5
  %230 = getelementptr inbounds %struct.vec_int, ptr %229, i32 0, i32 0
  %231 = load i64, ptr %230, align 8, !tbaa !13
  store i64 %231, ptr %40, align 8, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 8, ptr %41) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %42) #5
  %232 = load ptr, ptr %39, align 8, !tbaa !5
  store ptr %232, ptr %42, align 8, !tbaa !5
  %233 = load ptr, ptr %42, align 8, !tbaa !5
  %234 = load ptr, ptr %233, align 8, !tbaa !5
  %235 = getelementptr inbounds %struct.vec_int, ptr %234, i32 0, i32 1
  %236 = load i64, ptr %40, align 8, !tbaa !13
  %237 = add nsw i64 %236, 1
  %238 = load ptr, ptr %42, align 8, !tbaa !5
  %239 = load ptr, ptr %238, align 8, !tbaa !5
  %240 = getelementptr inbounds %struct.vec_int, ptr %239, i32 0, i32 0
  store i64 %237, ptr %240, align 8, !tbaa !13
  %241 = load ptr, ptr %42, align 8, !tbaa !5
  %242 = load ptr, ptr %241, align 8, !tbaa !5
  %243 = load ptr, ptr %42, align 8, !tbaa !5
  %244 = load ptr, ptr %243, align 8, !tbaa !5
  %245 = getelementptr inbounds %struct.vec_int, ptr %244, i32 0, i32 0
  %246 = load i64, ptr %245, align 8, !tbaa !13
  %247 = mul nsw i64 %246, 4
  %248 = add nsw i64 8, %247
  %249 = call ptr @realloc(ptr noundef %242, i64 noundef %248) #8
  %250 = load ptr, ptr %42, align 8, !tbaa !5
  store ptr %249, ptr %250, align 8, !tbaa !5
  %251 = load ptr, ptr %42, align 8, !tbaa !5
  %252 = load ptr, ptr %251, align 8, !tbaa !5
  store ptr %252, ptr %43, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr %42) #5
  %253 = load ptr, ptr %43, align 8, !tbaa !5
  store ptr %253, ptr %41, align 8, !tbaa !5
  %254 = load ptr, ptr %41, align 8, !tbaa !5
  %255 = icmp ne ptr %254, null
  br i1 %255, label %257, label %256

256:                                              ; preds = %215
  call void @abort() #6
  unreachable

257:                                              ; preds = %215
  %258 = load ptr, ptr %41, align 8, !tbaa !5
  store ptr %258, ptr %44, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr %41) #5
  %259 = load ptr, ptr %44, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %46) #5
  %260 = load ptr, ptr %39, align 8, !tbaa !5
  %261 = load ptr, ptr %260, align 8, !tbaa !5
  store ptr %261, ptr %46, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %47) #5
  %262 = load i64, ptr %40, align 8, !tbaa !13
  store i64 %262, ptr %47, align 8, !tbaa !13
  %263 = load i64, ptr %47, align 8, !tbaa !13
  %264 = icmp sle i64 0, %263
  br i1 %264, label %265, label %271

265:                                              ; preds = %257
  %266 = load i64, ptr %47, align 8, !tbaa !13
  %267 = load ptr, ptr %46, align 8, !tbaa !5
  %268 = getelementptr inbounds %struct.vec_int, ptr %267, i32 0, i32 0
  %269 = load i64, ptr %268, align 8, !tbaa !13
  %270 = icmp slt i64 %266, %269
  br i1 %270, label %272, label %271

271:                                              ; preds = %265, %257
  call void @abort() #6
  unreachable

272:                                              ; preds = %265
  call void @llvm.lifetime.start.p0(i64 8, ptr %49) #5
  %273 = load ptr, ptr %46, align 8, !tbaa !5
  store ptr %273, ptr %49, align 8, !tbaa !5
  %274 = load ptr, ptr %49, align 8, !tbaa !5
  %275 = getelementptr inbounds %struct.vec_int, ptr %274, i32 0, i32 0
  %276 = load i64, ptr %275, align 8, !tbaa !13
  %277 = load ptr, ptr %46, align 8, !tbaa !5
  %278 = getelementptr inbounds %struct.vec_int, ptr %277, i32 0, i32 1
  %279 = getelementptr inbounds [0 x i32], ptr %278, i64 0, i64 0
  store ptr %279, ptr %50, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr %49) #5
  %280 = load ptr, ptr %50, align 8, !tbaa !5
  %281 = load i64, ptr %47, align 8, !tbaa !13
  %282 = getelementptr inbounds i32, ptr %280, i64 %281
  store ptr %282, ptr %48, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr %47) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %46) #5
  %283 = load ptr, ptr %48, align 8, !tbaa !5
  store i32 8, ptr %283, align 4, !tbaa !16
  store i32 8, ptr %45, align 4, !tbaa !16
  call void @llvm.lifetime.end.p0(i64 8, ptr %40) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %39) #5
  %284 = load i32, ptr %45, align 4, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 16, ptr %51) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %52) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %53) #5
  %285 = load ptr, ptr %9, align 8, !tbaa !5
  store ptr %285, ptr %53, align 8, !tbaa !5
  %286 = load ptr, ptr %53, align 8, !tbaa !5
  %287 = getelementptr inbounds %struct.vec_int, ptr %286, i32 0, i32 0
  %288 = load i64, ptr %287, align 8, !tbaa !13
  %289 = load ptr, ptr %9, align 8, !tbaa !5
  %290 = getelementptr inbounds %struct.vec_int, ptr %289, i32 0, i32 1
  %291 = getelementptr inbounds [0 x i32], ptr %290, i64 0, i64 0
  store ptr %291, ptr %54, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr %53) #5
  %292 = load ptr, ptr %54, align 8, !tbaa !5
  store ptr %292, ptr %52, align 8, !tbaa !5
  %293 = getelementptr inbounds %struct.span_int, ptr %51, i32 0, i32 0
  call void @llvm.lifetime.start.p0(i64 8, ptr %55) #5
  %294 = load ptr, ptr %52, align 8, !tbaa !5
  store ptr %294, ptr %55, align 8, !tbaa !5
  %295 = load ptr, ptr %55, align 8, !tbaa !5
  %296 = load ptr, ptr %55, align 8, !tbaa !5
  %297 = mul nuw i64 4, %288
  %298 = udiv i64 %297, 4
  call void @llvm.lifetime.start.p0(i64 8, ptr %56) #5
  store ptr null, ptr %56, align 8, !tbaa !5
  %299 = load ptr, ptr %56, align 8, !tbaa !5
  store ptr %299, ptr %57, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr %56) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %55) #5
  %300 = load ptr, ptr %57, align 8, !tbaa !5
  store i64 %298, ptr %293, align 8, !tbaa !18
  %301 = getelementptr inbounds %struct.span_int, ptr %51, i32 0, i32 1
  %302 = load ptr, ptr %52, align 8, !tbaa !5
  %303 = getelementptr inbounds i32, ptr %302, i64 0
  store ptr %303, ptr %301, align 8, !tbaa !20
  call void @llvm.lifetime.end.p0(i64 8, ptr %52) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %58) #5
  store ptr %51, ptr %58, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %59) #5
  store i64 1, ptr %59, align 8, !tbaa !13
  %304 = load i64, ptr %59, align 8, !tbaa !13
  %305 = icmp sle i64 0, %304
  br i1 %305, label %306, label %312

306:                                              ; preds = %272
  %307 = load i64, ptr %59, align 8, !tbaa !13
  %308 = load ptr, ptr %58, align 8, !tbaa !5
  %309 = getelementptr inbounds %struct.span_int, ptr %308, i32 0, i32 0
  %310 = load i64, ptr %309, align 8, !tbaa !18
  %311 = icmp slt i64 %307, %310
  br i1 %311, label %313, label %312

312:                                              ; preds = %306, %272
  call void @abort() #6
  unreachable

313:                                              ; preds = %306
  call void @llvm.lifetime.start.p0(i64 8, ptr %61) #5
  %314 = load ptr, ptr %58, align 8, !tbaa !5
  store ptr %314, ptr %61, align 8, !tbaa !5
  %315 = load ptr, ptr %61, align 8, !tbaa !5
  %316 = getelementptr inbounds %struct.span_int, ptr %315, i32 0, i32 0
  %317 = load i64, ptr %316, align 8, !tbaa !18
  %318 = load ptr, ptr %58, align 8, !tbaa !5
  %319 = getelementptr inbounds %struct.span_int, ptr %318, i32 0, i32 1
  %320 = load ptr, ptr %319, align 8, !tbaa !20
  store ptr %320, ptr %62, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr %61) #5
  %321 = load ptr, ptr %62, align 8, !tbaa !5
  %322 = load i64, ptr %59, align 8, !tbaa !13
  %323 = getelementptr inbounds i32, ptr %321, i64 %322
  store ptr %323, ptr %60, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr %59) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %58) #5
  %324 = load ptr, ptr %60, align 8, !tbaa !5
  %325 = load i32, ptr %324, align 4, !tbaa !16
  %326 = add nsw i32 %325, 1
  store i32 %326, ptr %324, align 4, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 8, ptr %63) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %64) #5
  store ptr %51, ptr %64, align 8, !tbaa !5
  %327 = load ptr, ptr %64, align 8, !tbaa !5
  %328 = getelementptr inbounds %struct.span_int, ptr %327, i32 0, i32 0
  %329 = load i64, ptr %328, align 8, !tbaa !18
  %330 = getelementptr inbounds %struct.span_int, ptr %51, i32 0, i32 1
  %331 = load ptr, ptr %330, align 8, !tbaa !20
  store ptr %331, ptr %65, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr %64) #5
  %332 = load ptr, ptr %65, align 8, !tbaa !5
  store ptr %332, ptr %63, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %66) #5
  store ptr %51, ptr %66, align 8, !tbaa !5
  %333 = load ptr, ptr %66, align 8, !tbaa !5
  %334 = getelementptr inbounds %struct.span_int, ptr %333, i32 0, i32 0
  %335 = load i64, ptr %334, align 8, !tbaa !18
  %336 = getelementptr inbounds %struct.span_int, ptr %51, i32 0, i32 1
  %337 = load ptr, ptr %336, align 8, !tbaa !20
  store ptr %337, ptr %67, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr %66) #5
  %338 = load ptr, ptr %67, align 8, !tbaa !5
  %339 = getelementptr inbounds i32, ptr %338, i64 1
  %340 = load i32, ptr %339, align 4, !tbaa !16
  %341 = icmp ne i32 4, %340
  br i1 %341, label %342, label %343

342:                                              ; preds = %313
  call void @abort() #6
  unreachable

343:                                              ; preds = %313
  %344 = load ptr, ptr %63, align 8, !tbaa !5
  %345 = getelementptr inbounds [3 x i32], ptr %344, i64 0, i64 2
  %346 = load i32, ptr %345, align 4, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 8, ptr %68) #5
  store ptr %51, ptr %68, align 8, !tbaa !5
  %347 = load ptr, ptr %68, align 8, !tbaa !5
  %348 = getelementptr inbounds %struct.span_int, ptr %347, i32 0, i32 0
  %349 = load i64, ptr %348, align 8, !tbaa !18
  %350 = getelementptr inbounds %struct.span_int, ptr %51, i32 0, i32 1
  %351 = load ptr, ptr %350, align 8, !tbaa !20
  store ptr %351, ptr %69, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr %68) #5
  %352 = load ptr, ptr %69, align 8, !tbaa !5
  %353 = getelementptr inbounds i32, ptr %352, i64 2
  %354 = load i32, ptr %353, align 4, !tbaa !16
  %355 = icmp ne i32 %346, %354
  br i1 %355, label %356, label %357

356:                                              ; preds = %343
  call void @abort() #6
  unreachable

357:                                              ; preds = %343
  call void @llvm.lifetime.end.p0(i64 8, ptr %63) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %51) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %2) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %1) #5
  ret void
}

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

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

; Function Attrs: noreturn nounwind
declare void @abort() #2

; Function Attrs: nounwind allocsize(0)
declare noalias ptr @malloc(i64 noundef) #3

; Function Attrs: nounwind allocsize(1)
declare ptr @realloc(ptr noundef, i64 noundef) #4

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

!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/C++ TBAA"}
!9 = !{!10, !11, i64 0}
!10 = !{!"span_float", !11, i64 0, !6, i64 8}
!11 = !{!"long", !7, i64 0}
!12 = !{!10, !6, i64 8}
!13 = !{!11, !11, i64 0}
!14 = !{!15, !15, i64 0}
!15 = !{!"float", !7, i64 0}
!16 = !{!17, !17, i64 0}
!17 = !{!"int", !7, i64 0}
!18 = !{!19, !11, i64 0}
!19 = !{!"span_int", !11, i64 0, !6, i64 8}
!20 = !{!19, !6, i64 8}


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

; Function Attrs: nounwind uwtable
define dso_local void @test_span() local_unnamed_addr #0 {
  %1 = tail call noalias dereferenceable_or_null(8) ptr @malloc(i64 noundef 8) #4
  %.not = icmp eq ptr %1, null
  br i1 %.not, label %.critedge, label %2

2:                                                ; preds = %0
  store i64 1, ptr %1, align 8, !tbaa !5
  %3 = tail call dereferenceable_or_null(12) ptr @realloc(ptr noundef nonnull %1, i64 noundef 12) #5
  %.not154 = icmp eq ptr %3, null
  br i1 %.not154, label %4, label %5

.critedge:                                        ; preds = %0
  tail call void @abort() #6
  unreachable

4:                                                ; preds = %2
  tail call void @abort() #6
  unreachable

5:                                                ; preds = %2
  %6 = load i64, ptr %3, align 8, !tbaa !5
  %7 = icmp sgt i64 %6, 0
  br i1 %7, label %9, label %8

8:                                                ; preds = %5
  tail call void @abort() #6
  unreachable

9:                                                ; preds = %5
  %10 = getelementptr inbounds i8, ptr %3, i64 8
  store i32 1, ptr %10, align 4, !tbaa !9
  %11 = add nuw nsw i64 %6, 1
  store i64 %11, ptr %3, align 8, !tbaa !5
  %12 = shl nsw i64 %11, 2
  %13 = add nuw nsw i64 %12, 8
  %14 = tail call ptr @realloc(ptr noundef nonnull %3, i64 noundef %13) #5
  %.not155 = icmp eq ptr %14, null
  br i1 %.not155, label %15, label %16

15:                                               ; preds = %9
  tail call void @abort() #6
  unreachable

16:                                               ; preds = %9
  %17 = load i64, ptr %14, align 8, !tbaa !5
  %18 = icmp slt i64 %6, %17
  br i1 %18, label %20, label %19

19:                                               ; preds = %16
  tail call void @abort() #6
  unreachable

20:                                               ; preds = %16
  %21 = getelementptr inbounds i8, ptr %14, i64 8
  %22 = getelementptr inbounds i32, ptr %21, i64 %6
  store i32 3, ptr %22, align 4, !tbaa !9
  %23 = add nuw nsw i64 %17, 1
  store i64 %23, ptr %14, align 8, !tbaa !5
  %24 = shl nsw i64 %23, 2
  %25 = add nsw i64 %24, 8
  %26 = tail call ptr @realloc(ptr noundef nonnull %14, i64 noundef %25) #5
  %.not156 = icmp eq ptr %26, null
  br i1 %.not156, label %27, label %28

27:                                               ; preds = %20
  tail call void @abort() #6
  unreachable

28:                                               ; preds = %20
  %29 = load i64, ptr %26, align 8, !tbaa !5
  %30 = icmp slt i64 %17, %29
  br i1 %30, label %32, label %31

31:                                               ; preds = %28
  tail call void @abort() #6
  unreachable

32:                                               ; preds = %28
  %33 = getelementptr inbounds i8, ptr %26, i64 8
  %34 = getelementptr inbounds i32, ptr %33, i64 %17
  store i32 8, ptr %34, align 4, !tbaa !9
  %35 = getelementptr inbounds i8, ptr %26, i64 12
  %36 = load i32, ptr %35, align 4, !tbaa !9
  %.not157 = icmp eq i32 %36, 3
  br i1 %.not157, label %38, label %37

37:                                               ; preds = %32
  tail call void @abort() #6
  unreachable

38:                                               ; preds = %32
  ret void
}

; Function Attrs: noreturn nounwind
declare void @abort() local_unnamed_addr #1

; Function Attrs: mustprogress nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) memory(inaccessiblemem: readwrite)
declare noalias noundef ptr @malloc(i64 noundef) local_unnamed_addr #2

; Function Attrs: mustprogress nounwind willreturn allockind("realloc") allocsize(1) memory(argmem: readwrite, inaccessiblemem: readwrite)
declare noalias noundef ptr @realloc(ptr allocptr nocapture noundef, i64 noundef) local_unnamed_addr #3

attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { noreturn nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) memory(inaccessiblemem: readwrite) "alloc-family"="malloc" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress nounwind willreturn allockind("realloc") allocsize(1) memory(argmem: readwrite, inaccessiblemem: readwrite) "alloc-family"="malloc" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nounwind allocsize(0) }
attributes #5 = { nounwind allocsize(1) }
attributes #6 = { noreturn nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"long", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}


; Effective O3 passes: CorrelatedValuePropagationPass,DSEPass,EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass