; LLVM IR from askforalfred/alfred :: gen/ff_planner (expressions)

; 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._ExpNode = type { i32, ptr, i32, float, float, ptr, ptr, ptr }

@.str.30 = external hidden unnamed_addr constant [42 x i8], align 1

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

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

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

declare void @free_ExpNode(ptr noundef) #0

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

; Function Attrs: nounwind uwtable
define dso_local void @push_multiplications_down(ptr noundef %0) #3 {
  %2 = alloca ptr, align 8
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  store ptr %0, ptr %2, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #4
  %5 = load ptr, ptr %2, align 8, !tbaa !5
  %6 = load ptr, ptr %5, align 8, !tbaa !5
  %7 = getelementptr inbounds %struct._ExpNode, ptr %6, i32 0, i32 0
  %8 = load i32, ptr %7, align 8, !tbaa !9
  switch i32 %8, label %276 [
    i32 1005, label %9
    i32 1003, label %264
    i32 1004, label %264
    i32 1002, label %271
    i32 1001, label %275
    i32 1000, label %275
  ]

9:                                                ; preds = %1
  %10 = load ptr, ptr %2, align 8, !tbaa !5
  %11 = load ptr, ptr %10, align 8, !tbaa !5
  %12 = getelementptr inbounds %struct._ExpNode, ptr %11, i32 0, i32 7
  %13 = load ptr, ptr %12, align 8, !tbaa !13
  %14 = getelementptr inbounds %struct._ExpNode, ptr %13, i32 0, i32 0
  %15 = load i32, ptr %14, align 8, !tbaa !9
  %16 = icmp eq i32 %15, 1001
  br i1 %16, label %17, label %51

17:                                               ; preds = %9
  %18 = load ptr, ptr %2, align 8, !tbaa !5
  %19 = load ptr, ptr %18, align 8, !tbaa !5
  %20 = getelementptr inbounds %struct._ExpNode, ptr %19, i32 0, i32 0
  store i32 1001, ptr %20, align 8, !tbaa !9
  %21 = load ptr, ptr %2, align 8, !tbaa !5
  %22 = load ptr, ptr %21, align 8, !tbaa !5
  %23 = getelementptr inbounds %struct._ExpNode, ptr %22, i32 0, i32 6
  %24 = load ptr, ptr %23, align 8, !tbaa !14
  %25 = getelementptr inbounds %struct._ExpNode, ptr %24, i32 0, i32 4
  %26 = load float, ptr %25, align 8, !tbaa !15
  %27 = load ptr, ptr %2, align 8, !tbaa !5
  %28 = load ptr, ptr %27, align 8, !tbaa !5
  %29 = getelementptr inbounds %struct._ExpNode, ptr %28, i32 0, i32 7
  %30 = load ptr, ptr %29, align 8, !tbaa !13
  %31 = getelementptr inbounds %struct._ExpNode, ptr %30, i32 0, i32 4
  %32 = load float, ptr %31, align 8, !tbaa !15
  %33 = fmul float %26, %32
  %34 = load ptr, ptr %2, align 8, !tbaa !5
  %35 = load ptr, ptr %34, align 8, !tbaa !5
  %36 = getelementptr inbounds %struct._ExpNode, ptr %35, i32 0, i32 4
  store float %33, ptr %36, align 8, !tbaa !15
  %37 = load ptr, ptr %2, align 8, !tbaa !5
  %38 = load ptr, ptr %37, align 8, !tbaa !5
  %39 = getelementptr inbounds %struct._ExpNode, ptr %38, i32 0, i32 6
  %40 = load ptr, ptr %39, align 8, !tbaa !14
  call void @free_ExpNode(ptr noundef %40)
  %41 = load ptr, ptr %2, align 8, !tbaa !5
  %42 = load ptr, ptr %41, align 8, !tbaa !5
  %43 = getelementptr inbounds %struct._ExpNode, ptr %42, i32 0, i32 7
  %44 = load ptr, ptr %43, align 8, !tbaa !13
  call void @free_ExpNode(ptr noundef %44)
  %45 = load ptr, ptr %2, align 8, !tbaa !5
  %46 = load ptr, ptr %45, align 8, !tbaa !5
  %47 = getelementptr inbounds %struct._ExpNode, ptr %46, i32 0, i32 6
  store ptr null, ptr %47, align 8, !tbaa !14
  %48 = load ptr, ptr %2, align 8, !tbaa !5
  %49 = load ptr, ptr %48, align 8, !tbaa !5
  %50 = getelementptr inbounds %struct._ExpNode, ptr %49, i32 0, i32 7
  store ptr null, ptr %50, align 8, !tbaa !13
  br label %282

51:                                               ; preds = %9
  %52 = load ptr, ptr %2, align 8, !tbaa !5
  %53 = load ptr, ptr %52, align 8, !tbaa !5
  %54 = getelementptr inbounds %struct._ExpNode, ptr %53, i32 0, i32 7
  %55 = load ptr, ptr %54, align 8, !tbaa !13
  %56 = getelementptr inbounds %struct._ExpNode, ptr %55, i32 0, i32 0
  %57 = load i32, ptr %56, align 8, !tbaa !9
  %58 = icmp eq i32 %57, 1000
  br i1 %58, label %59, label %95

59:                                               ; preds = %51
  %60 = load ptr, ptr %2, align 8, !tbaa !5
  %61 = load ptr, ptr %60, align 8, !tbaa !5
  %62 = getelementptr inbounds %struct._ExpNode, ptr %61, i32 0, i32 0
  store i32 1000, ptr %62, align 8, !tbaa !9
  %63 = load ptr, ptr %2, align 8, !tbaa !5
  %64 = load ptr, ptr %63, align 8, !tbaa !5
  %65 = getelementptr inbounds %struct._ExpNode, ptr %64, i32 0, i32 7
  %66 = load ptr, ptr %65, align 8, !tbaa !13
  %67 = getelementptr inbounds %struct._ExpNode, ptr %66, i32 0, i32 2
  %68 = load i32, ptr %67, align 8, !tbaa !16
  %69 = load ptr, ptr %2, align 8, !tbaa !5
  %70 = load ptr, ptr %69, align 8, !tbaa !5
  %71 = getelementptr inbounds %struct._ExpNode, ptr %70, i32 0, i32 2
  store i32 %68, ptr %71, align 8, !tbaa !16
  %72 = load ptr, ptr %2, align 8, !tbaa !5
  %73 = load ptr, ptr %72, align 8, !tbaa !5
  %74 = getelementptr inbounds %struct._ExpNode, ptr %73, i32 0, i32 6
  %75 = load ptr, ptr %74, align 8, !tbaa !14
  %76 = getelementptr inbounds %struct._ExpNode, ptr %75, i32 0, i32 4
  %77 = load float, ptr %76, align 8, !tbaa !15
  %78 = load ptr, ptr %2, align 8, !tbaa !5
  %79 = load ptr, ptr %78, align 8, !tbaa !5
  %80 = getelementptr inbounds %struct._ExpNode, ptr %79, i32 0, i32 3
  store float %77, ptr %80, align 4, !tbaa !17
  %81 = load ptr, ptr %2, align 8, !tbaa !5
  %82 = load ptr, ptr %81, align 8, !tbaa !5
  %83 = getelementptr inbounds %struct._ExpNode, ptr %82, i32 0, i32 6
  %84 = load ptr, ptr %83, align 8, !tbaa !14
  call void @free_ExpNode(ptr noundef %84)
  %85 = load ptr, ptr %2, align 8, !tbaa !5
  %86 = load ptr, ptr %85, align 8, !tbaa !5
  %87 = getelementptr inbounds %struct._ExpNode, ptr %86, i32 0, i32 7
  %88 = load ptr, ptr %87, align 8, !tbaa !13
  call void @free_ExpNode(ptr noundef %88)
  %89 = load ptr, ptr %2, align 8, !tbaa !5
  %90 = load ptr, ptr %89, align 8, !tbaa !5
  %91 = getelementptr inbounds %struct._ExpNode, ptr %90, i32 0, i32 6
  store ptr null, ptr %91, align 8, !tbaa !14
  %92 = load ptr, ptr %2, align 8, !tbaa !5
  %93 = load ptr, ptr %92, align 8, !tbaa !5
  %94 = getelementptr inbounds %struct._ExpNode, ptr %93, i32 0, i32 7
  store ptr null, ptr %94, align 8, !tbaa !13
  br label %282

95:                                               ; preds = %51
  %96 = load ptr, ptr %2, align 8, !tbaa !5
  %97 = load ptr, ptr %96, align 8, !tbaa !5
  %98 = getelementptr inbounds %struct._ExpNode, ptr %97, i32 0, i32 7
  %99 = load ptr, ptr %98, align 8, !tbaa !13
  %100 = getelementptr inbounds %struct._ExpNode, ptr %99, i32 0, i32 0
  %101 = load i32, ptr %100, align 8, !tbaa !9
  %102 = icmp eq i32 %101, 1002
  br i1 %102, label %103, label %153

103:                                              ; preds = %95
  %104 = load ptr, ptr %2, align 8, !tbaa !5
  %105 = load ptr, ptr %104, align 8, !tbaa !5
  %106 = getelementptr inbounds %struct._ExpNode, ptr %105, i32 0, i32 0
  store i32 1002, ptr %106, align 8, !tbaa !9
  %107 = load ptr, ptr %2, align 8, !tbaa !5
  %108 = load ptr, ptr %107, align 8, !tbaa !5
  %109 = getelementptr inbounds %struct._ExpNode, ptr %108, i32 0, i32 7
  %110 = load ptr, ptr %109, align 8, !tbaa !13
  %111 = load ptr, ptr %2, align 8, !tbaa !5
  %112 = load ptr, ptr %111, align 8, !tbaa !5
  %113 = getelementptr inbounds %struct._ExpNode, ptr %112, i32 0, i32 5
  store ptr %110, ptr %113, align 8, !tbaa !18
  %114 = load ptr, ptr %2, align 8, !tbaa !5
  %115 = load ptr, ptr %114, align 8, !tbaa !5
  %116 = getelementptr inbounds %struct._ExpNode, ptr %115, i32 0, i32 5
  %117 = load ptr, ptr %116, align 8, !tbaa !18
  %118 = getelementptr inbounds %struct._ExpNode, ptr %117, i32 0, i32 0
  store i32 1005, ptr %118, align 8, !tbaa !9
  %119 = load ptr, ptr %2, align 8, !tbaa !5
  %120 = load ptr, ptr %119, align 8, !tbaa !5
  %121 = getelementptr inbounds %struct._ExpNode, ptr %120, i32 0, i32 6
  %122 = load ptr, ptr %121, align 8, !tbaa !14
  %123 = load ptr, ptr %2, align 8, !tbaa !5
  %124 = load ptr, ptr %123, align 8, !tbaa !5
  %125 = getelementptr inbounds %struct._ExpNode, ptr %124, i32 0, i32 5
  %126 = load ptr, ptr %125, align 8, !tbaa !18
  %127 = getelementptr inbounds %struct._ExpNode, ptr %126, i32 0, i32 6
  store ptr %122, ptr %127, align 8, !tbaa !14
  %128 = load ptr, ptr %2, align 8, !tbaa !5
  %129 = load ptr, ptr %128, align 8, !tbaa !5
  %130 = getelementptr inbounds %struct._ExpNode, ptr %129, i32 0, i32 7
  %131 = load ptr, ptr %130, align 8, !tbaa !13
  %132 = getelementptr inbounds %struct._ExpNode, ptr %131, i32 0, i32 5
  %133 = load ptr, ptr %132, align 8, !tbaa !18
  %134 = load ptr, ptr %2, align 8, !tbaa !5
  %135 = load ptr, ptr %134, align 8, !tbaa !5
  %136 = getelementptr inbounds %struct._ExpNode, ptr %135, i32 0, i32 5
  %137 = load ptr, ptr %136, align 8, !tbaa !18
  %138 = getelementptr inbounds %struct._ExpNode, ptr %137, i32 0, i32 7
  store ptr %133, ptr %138, align 8, !tbaa !13
  %139 = load ptr, ptr %2, align 8, !tbaa !5
  %140 = load ptr, ptr %139, align 8, !tbaa !5
  %141 = getelementptr inbounds %struct._ExpNode, ptr %140, i32 0, i32 7
  store ptr null, ptr %141, align 8, !tbaa !13
  %142 = load ptr, ptr %2, align 8, !tbaa !5
  %143 = load ptr, ptr %142, align 8, !tbaa !5
  %144 = getelementptr inbounds %struct._ExpNode, ptr %143, i32 0, i32 6
  store ptr null, ptr %144, align 8, !tbaa !14
  %145 = load ptr, ptr %2, align 8, !tbaa !5
  %146 = load ptr, ptr %145, align 8, !tbaa !5
  %147 = getelementptr inbounds %struct._ExpNode, ptr %146, i32 0, i32 5
  %148 = load ptr, ptr %147, align 8, !tbaa !18
  %149 = getelementptr inbounds %struct._ExpNode, ptr %148, i32 0, i32 5
  store ptr null, ptr %149, align 8, !tbaa !18
  %150 = load ptr, ptr %2, align 8, !tbaa !5
  %151 = load ptr, ptr %150, align 8, !tbaa !5
  %152 = getelementptr inbounds %struct._ExpNode, ptr %151, i32 0, i32 5
  call void @push_multiplications_down(ptr noundef %152)
  br label %282

153:                                              ; preds = %95
  %154 = load ptr, ptr %2, align 8, !tbaa !5
  %155 = load ptr, ptr %154, align 8, !tbaa !5
  %156 = getelementptr inbounds %struct._ExpNode, ptr %155, i32 0, i32 7
  %157 = load ptr, ptr %156, align 8, !tbaa !13
  %158 = getelementptr inbounds %struct._ExpNode, ptr %157, i32 0, i32 0
  %159 = load i32, ptr %158, align 8, !tbaa !9
  %160 = icmp eq i32 %159, 1005
  br i1 %160, label %161, label %197

161:                                              ; preds = %153
  %162 = load ptr, ptr %2, align 8, !tbaa !5
  %163 = load ptr, ptr %162, align 8, !tbaa !5
  %164 = getelementptr inbounds %struct._ExpNode, ptr %163, i32 0, i32 7
  %165 = load ptr, ptr %164, align 8, !tbaa !13
  %166 = getelementptr inbounds %struct._ExpNode, ptr %165, i32 0, i32 6
  %167 = load ptr, ptr %166, align 8, !tbaa !14
  %168 = getelementptr inbounds %struct._ExpNode, ptr %167, i32 0, i32 4
  %169 = load float, ptr %168, align 8, !tbaa !15
  %170 = load ptr, ptr %2, align 8, !tbaa !5
  %171 = load ptr, ptr %170, align 8, !tbaa !5
  %172 = getelementptr inbounds %struct._ExpNode, ptr %171, i32 0, i32 6
  %173 = load ptr, ptr %172, align 8, !tbaa !14
  %174 = getelementptr inbounds %struct._ExpNode, ptr %173, i32 0, i32 4
  %175 = load float, ptr %174, align 8, !tbaa !15
  %176 = fmul float %175, %169
  store float %176, ptr %174, align 8, !tbaa !15
  %177 = load ptr, ptr %2, align 8, !tbaa !5
  %178 = load ptr, ptr %177, align 8, !tbaa !5
  %179 = getelementptr inbounds %struct._ExpNode, ptr %178, i32 0, i32 7
  %180 = load ptr, ptr %179, align 8, !tbaa !13
  %181 = getelementptr inbounds %struct._ExpNode, ptr %180, i32 0, i32 7
  %182 = load ptr, ptr %181, align 8, !tbaa !13
  store ptr %182, ptr %3, align 8, !tbaa !5
  %183 = load ptr, ptr %2, align 8, !tbaa !5
  %184 = load ptr, ptr %183, align 8, !tbaa !5
  %185 = getelementptr inbounds %struct._ExpNode, ptr %184, i32 0, i32 7
  %186 = load ptr, ptr %185, align 8, !tbaa !13
  %187 = getelementptr inbounds %struct._ExpNode, ptr %186, i32 0, i32 7
  store ptr null, ptr %187, align 8, !tbaa !13
  %188 = load ptr, ptr %2, align 8, !tbaa !5
  %189 = load ptr, ptr %188, align 8, !tbaa !5
  %190 = getelementptr inbounds %struct._ExpNode, ptr %189, i32 0, i32 7
  %191 = load ptr, ptr %190, align 8, !tbaa !13
  call void @free_ExpNode(ptr noundef %191)
  %192 = load ptr, ptr %3, align 8, !tbaa !5
  %193 = load ptr, ptr %2, align 8, !tbaa !5
  %194 = load ptr, ptr %193, align 8, !tbaa !5
  %195 = getelementptr inbounds %struct._ExpNode, ptr %194, i32 0, i32 7
  store ptr %192, ptr %195, align 8, !tbaa !13
  %196 = load ptr, ptr %2, align 8, !tbaa !5
  call void @push_multiplications_down(ptr noundef %196)
  br label %282

197:                                              ; preds = %153
  %198 = call ptr @new_ExpNode(i32 noundef 1001)
  store ptr %198, ptr %3, align 8, !tbaa !5
  %199 = call ptr @new_ExpNode(i32 noundef 1001)
  store ptr %199, ptr %4, align 8, !tbaa !5
  %200 = load ptr, ptr %2, align 8, !tbaa !5
  %201 = load ptr, ptr %200, align 8, !tbaa !5
  %202 = getelementptr inbounds %struct._ExpNode, ptr %201, i32 0, i32 6
  %203 = load ptr, ptr %202, align 8, !tbaa !14
  %204 = getelementptr inbounds %struct._ExpNode, ptr %203, i32 0, i32 4
  %205 = load float, ptr %204, align 8, !tbaa !15
  %206 = load ptr, ptr %3, align 8, !tbaa !5
  %207 = getelementptr inbounds %struct._ExpNode, ptr %206, i32 0, i32 4
  store float %205, ptr %207, align 8, !tbaa !15
  %208 = load ptr, ptr %2, align 8, !tbaa !5
  %209 = load ptr, ptr %208, align 8, !tbaa !5
  %210 = getelementptr inbounds %struct._ExpNode, ptr %209, i32 0, i32 6
  %211 = load ptr, ptr %210, align 8, !tbaa !14
  %212 = getelementptr inbounds %struct._ExpNode, ptr %211, i32 0, i32 4
  %213 = load float, ptr %212, align 8, !tbaa !15
  %214 = load ptr, ptr %4, align 8, !tbaa !5
  %215 = getelementptr inbounds %struct._ExpNode, ptr %214, i32 0, i32 4
  store float %213, ptr %215, align 8, !tbaa !15
  %216 = load ptr, ptr %2, align 8, !tbaa !5
  %217 = load ptr, ptr %216, align 8, !tbaa !5
  %218 = getelementptr inbounds %struct._ExpNode, ptr %217, i32 0, i32 7
  %219 = load ptr, ptr %218, align 8, !tbaa !13
  %220 = getelementptr inbounds %struct._ExpNode, ptr %219, i32 0, i32 0
  %221 = load i32, ptr %220, align 8, !tbaa !9
  %222 = load ptr, ptr %2, align 8, !tbaa !5
  %223 = load ptr, ptr %222, align 8, !tbaa !5
  %224 = getelementptr inbounds %struct._ExpNode, ptr %223, i32 0, i32 0
  store i32 %221, ptr %224, align 8, !tbaa !9
  %225 = load ptr, ptr %2, align 8, !tbaa !5
  %226 = load ptr, ptr %225, align 8, !tbaa !5
  %227 = getelementptr inbounds %struct._ExpNode, ptr %226, i32 0, i32 6
  %228 = load ptr, ptr %227, align 8, !tbaa !14
  %229 = getelementptr inbounds %struct._ExpNode, ptr %228, i32 0, i32 0
  store i32 1005, ptr %229, align 8, !tbaa !9
  %230 = load ptr, ptr %2, align 8, !tbaa !5
  %231 = load ptr, ptr %230, align 8, !tbaa !5
  %232 = getelementptr inbounds %struct._ExpNode, ptr %231, i32 0, i32 7
  %233 = load ptr, ptr %232, align 8, !tbaa !13
  %234 = getelementptr inbounds %struct._ExpNode, ptr %233, i32 0, i32 0
  store i32 1005, ptr %234, align 8, !tbaa !9
  %235 = load ptr, ptr %3, align 8, !tbaa !5
  %236 = load ptr, ptr %2, align 8, !tbaa !5
  %237 = load ptr, ptr %236, align 8, !tbaa !5
  %238 = getelementptr inbounds %struct._ExpNode, ptr %237, i32 0, i32 6
  %239 = load ptr, ptr %238, align 8, !tbaa !14
  %240 = getelementptr inbounds %struct._ExpNode, ptr %239, i32 0, i32 6
  store ptr %235, ptr %240, align 8, !tbaa !14
  %241 = load ptr, ptr %2, align 8, !tbaa !5
  %242 = load ptr, ptr %241, align 8, !tbaa !5
  %243 = getelementptr inbounds %struct._ExpNode, ptr %242, i32 0, i32 7
  %244 = load ptr, ptr %243, align 8, !tbaa !13
  %245 = getelementptr inbounds %struct._ExpNode, ptr %244, i32 0, i32 6
  %246 = load ptr, ptr %245, align 8, !tbaa !14
  %247 = load ptr, ptr %2, align 8, !tbaa !5
  %248 = load ptr, ptr %247, align 8, !tbaa !5
  %249 = getelementptr inbounds %struct._ExpNode, ptr %248, i32 0, i32 6
  %250 = load ptr, ptr %249, align 8, !tbaa !14
  %251 = getelementptr inbounds %struct._ExpNode, ptr %250, i32 0, i32 7
  store ptr %246, ptr %251, align 8, !tbaa !13
  %252 = load ptr, ptr %4, align 8, !tbaa !5
  %253 = load ptr, ptr %2, align 8, !tbaa !5
  %254 = load ptr, ptr %253, align 8, !tbaa !5
  %255 = getelementptr inbounds %struct._ExpNode, ptr %254, i32 0, i32 7
  %256 = load ptr, ptr %255, align 8, !tbaa !13
  %257 = getelementptr inbounds %struct._ExpNode, ptr %256, i32 0, i32 6
  store ptr %252, ptr %257, align 8, !tbaa !14
  %258 = load ptr, ptr %2, align 8, !tbaa !5
  %259 = load ptr, ptr %258, align 8, !tbaa !5
  %260 = getelementptr inbounds %struct._ExpNode, ptr %259, i32 0, i32 6
  call void @push_multiplications_down(ptr noundef %260)
  %261 = load ptr, ptr %2, align 8, !tbaa !5
  %262 = load ptr, ptr %261, align 8, !tbaa !5
  %263 = getelementptr inbounds %struct._ExpNode, ptr %262, i32 0, i32 7
  call void @push_multiplications_down(ptr noundef %263)
  br label %282

264:                                              ; preds = %1, %1
  %265 = load ptr, ptr %2, align 8, !tbaa !5
  %266 = load ptr, ptr %265, align 8, !tbaa !5
  %267 = getelementptr inbounds %struct._ExpNode, ptr %266, i32 0, i32 6
  call void @push_multiplications_down(ptr noundef %267)
  %268 = load ptr, ptr %2, align 8, !tbaa !5
  %269 = load ptr, ptr %268, align 8, !tbaa !5
  %270 = getelementptr inbounds %struct._ExpNode, ptr %269, i32 0, i32 7
  call void @push_multiplications_down(ptr noundef %270)
  br label %282

271:                                              ; preds = %1
  %272 = load ptr, ptr %2, align 8, !tbaa !5
  %273 = load ptr, ptr %272, align 8, !tbaa !5
  %274 = getelementptr inbounds %struct._ExpNode, ptr %273, i32 0, i32 5
  call void @push_multiplications_down(ptr noundef %274)
  br label %282

275:                                              ; preds = %1, %1
  br label %282

276:                                              ; preds = %1
  %277 = load ptr, ptr %2, align 8, !tbaa !5
  %278 = load ptr, ptr %277, align 8, !tbaa !5
  %279 = getelementptr inbounds %struct._ExpNode, ptr %278, i32 0, i32 0
  %280 = load i32, ptr %279, align 8, !tbaa !9
  %281 = call i32 (ptr, ...) @printf(ptr noundef @.str.30, i32 noundef %280)
  call void @exit(i32 noundef 1) #5
  unreachable

282:                                              ; preds = %275, %271, %264, %197, %161, %103, %59, %17
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #4
  ret void
}

declare ptr @new_ExpNode(i32 noundef) #0

attributes #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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { 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 #4 = { nounwind }
attributes #5 = { noreturn nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !11, i64 0}
!10 = !{!"_ExpNode", !11, i64 0, !6, i64 8, !11, i64 16, !12, i64 20, !12, i64 24, !6, i64 32, !6, i64 40, !6, i64 48}
!11 = !{!"int", !7, i64 0}
!12 = !{!"float", !7, i64 0}
!13 = !{!10, !6, i64 48}
!14 = !{!10, !6, i64 40}
!15 = !{!10, !12, i64 24}
!16 = !{!10, !11, i64 16}
!17 = !{!10, !12, i64 20}
!18 = !{!10, !6, i64 32}


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

@.str.30 = external hidden unnamed_addr constant [42 x i8], align 1

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

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

declare void @free_ExpNode(ptr noundef) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
define dso_local void @push_multiplications_down(ptr nocapture noundef readonly %0) local_unnamed_addr #3 {
  br label %tailrecurse.outer

tailrecurse.outer:                                ; preds = %tailrecurse.outer.backedge, %1
  %.tr.ph = phi ptr [ %0, %1 ], [ %.tr.ph.be, %tailrecurse.outer.backedge ]
  br label %tailrecurse

tailrecurse:                                      ; preds = %tailrecurse.outer, %52
  %2 = load ptr, ptr %.tr.ph, align 8, !tbaa !5
  %3 = load i32, ptr %2, align 8, !tbaa !9
  switch i32 %3, label %105 [
    i32 1005, label %4
    i32 1003, label %99
    i32 1004, label %99
    i32 1002, label %103
    i32 1001, label %.loopexit
    i32 1000, label %.loopexit
  ]

4:                                                ; preds = %tailrecurse
  %5 = getelementptr inbounds i8, ptr %2, i64 48
  %6 = load ptr, ptr %5, align 8, !tbaa !13
  %7 = load i32, ptr %6, align 8, !tbaa !9
  switch i32 %7, label %69 [
    i32 1001, label %8
    i32 1000, label %17
    i32 1002, label %26
    i32 1005, label %52
  ]

8:                                                ; preds = %4
  store i32 1001, ptr %2, align 8, !tbaa !9
  %9 = getelementptr inbounds i8, ptr %2, i64 40
  %10 = load ptr, ptr %9, align 8, !tbaa !14
  %11 = getelementptr inbounds i8, ptr %10, i64 24
  %12 = load float, ptr %11, align 8, !tbaa !15
  %13 = getelementptr inbounds i8, ptr %6, i64 24
  %14 = load float, ptr %13, align 8, !tbaa !15
  %15 = fmul float %12, %14
  %16 = getelementptr inbounds i8, ptr %2, i64 24
  store float %15, ptr %16, align 8, !tbaa !15
  br label %.loopexit.sink.split

17:                                               ; preds = %4
  store i32 1000, ptr %2, align 8, !tbaa !9
  %18 = getelementptr inbounds i8, ptr %6, i64 16
  %19 = load i32, ptr %18, align 8, !tbaa !16
  %20 = getelementptr inbounds i8, ptr %2, i64 16
  store i32 %19, ptr %20, align 8, !tbaa !16
  %21 = getelementptr inbounds i8, ptr %2, i64 40
  %22 = load ptr, ptr %21, align 8, !tbaa !14
  %23 = getelementptr inbounds i8, ptr %22, i64 24
  %24 = load float, ptr %23, align 8, !tbaa !15
  %25 = getelementptr inbounds i8, ptr %2, i64 20
  store float %24, ptr %25, align 4, !tbaa !17
  br label %.loopexit.sink.split

26:                                               ; preds = %4
  store i32 1002, ptr %2, align 8, !tbaa !9
  %27 = getelementptr inbounds i8, ptr %2, i64 32
  store ptr %6, ptr %27, align 8, !tbaa !18
  %28 = load ptr, ptr %.tr.ph, align 8, !tbaa !5
  %29 = getelementptr inbounds i8, ptr %28, i64 32
  %30 = load ptr, ptr %29, align 8, !tbaa !18
  store i32 1005, ptr %30, align 8, !tbaa !9
  %31 = getelementptr inbounds i8, ptr %28, i64 40
  %32 = load ptr, ptr %31, align 8, !tbaa !14
  %33 = getelementptr inbounds i8, ptr %30, i64 40
  store ptr %32, ptr %33, align 8, !tbaa !14
  %34 = load ptr, ptr %.tr.ph, align 8, !tbaa !5
  %35 = getelementptr inbounds i8, ptr %34, i64 48
  %36 = load ptr, ptr %35, align 8, !tbaa !13
  %37 = getelementptr inbounds i8, ptr %36, i64 32
  %38 = load ptr, ptr %37, align 8, !tbaa !18
  %39 = getelementptr inbounds i8, ptr %34, i64 32
  %40 = load ptr, ptr %39, align 8, !tbaa !18
  %41 = getelementptr inbounds i8, ptr %40, i64 48
  store ptr %38, ptr %41, align 8, !tbaa !13
  %42 = load ptr, ptr %.tr.ph, align 8, !tbaa !5
  %43 = getelementptr inbounds i8, ptr %42, i64 48
  store ptr null, ptr %43, align 8, !tbaa !13
  %44 = load ptr, ptr %.tr.ph, align 8, !tbaa !5
  %45 = getelementptr inbounds i8, ptr %44, i64 40
  store ptr null, ptr %45, align 8, !tbaa !14
  %46 = load ptr, ptr %.tr.ph, align 8, !tbaa !5
  %47 = getelementptr inbounds i8, ptr %46, i64 32
  %48 = load ptr, ptr %47, align 8, !tbaa !18
  %49 = getelementptr inbounds i8, ptr %48, i64 32
  store ptr null, ptr %49, align 8, !tbaa !18
  %50 = load ptr, ptr %.tr.ph, align 8, !tbaa !5
  %51 = getelementptr inbounds i8, ptr %50, i64 32
  br label %tailrecurse.outer.backedge

tailrecurse.outer.backedge:                       ; preds = %26, %69, %99, %103
  %.tr.ph.be = phi ptr [ %104, %103 ], [ %102, %99 ], [ %98, %69 ], [ %51, %26 ]
  br label %tailrecurse.outer

52:                                               ; preds = %4
  %53 = getelementptr inbounds i8, ptr %6, i64 40
  %54 = load ptr, ptr %53, align 8, !tbaa !14
  %55 = getelementptr inbounds i8, ptr %54, i64 24
  %56 = load float, ptr %55, align 8, !tbaa !15
  %57 = getelementptr inbounds i8, ptr %2, i64 40
  %58 = load ptr, ptr %57, align 8, !tbaa !14
  %59 = getelementptr inbounds i8, ptr %58, i64 24
  %60 = load float, ptr %59, align 8, !tbaa !15
  %61 = fmul float %56, %60
  store float %61, ptr %59, align 8, !tbaa !15
  %62 = getelementptr inbounds i8, ptr %6, i64 48
  %63 = load ptr, ptr %62, align 8, !tbaa !13
  store ptr null, ptr %62, align 8, !tbaa !13
  %64 = load ptr, ptr %.tr.ph, align 8, !tbaa !5
  %65 = getelementptr inbounds i8, ptr %64, i64 48
  %66 = load ptr, ptr %65, align 8, !tbaa !13
  tail call void @free_ExpNode(ptr noundef %66) #4
  %67 = load ptr, ptr %.tr.ph, align 8, !tbaa !5
  %68 = getelementptr inbounds i8, ptr %67, i64 48
  store ptr %63, ptr %68, align 8, !tbaa !13
  br label %tailrecurse

69:                                               ; preds = %4
  %70 = tail call ptr @new_ExpNode(i32 noundef 1001) #4
  %71 = tail call ptr @new_ExpNode(i32 noundef 1001) #4
  %72 = load ptr, ptr %.tr.ph, align 8, !tbaa !5
  %73 = getelementptr inbounds i8, ptr %72, i64 40
  %74 = load ptr, ptr %73, align 8, !tbaa !14
  %75 = getelementptr inbounds i8, ptr %74, i64 24
  %76 = load float, ptr %75, align 8, !tbaa !15
  %77 = getelementptr inbounds i8, ptr %70, i64 24
  store float %76, ptr %77, align 8, !tbaa !15
  %78 = getelementptr inbounds i8, ptr %71, i64 24
  store float %76, ptr %78, align 8, !tbaa !15
  %79 = getelementptr inbounds i8, ptr %72, i64 48
  %80 = load ptr, ptr %79, align 8, !tbaa !13
  %81 = load i32, ptr %80, align 8, !tbaa !9
  store i32 %81, ptr %72, align 8, !tbaa !9
  store i32 1005, ptr %74, align 8, !tbaa !9
  store i32 1005, ptr %80, align 8, !tbaa !9
  %82 = getelementptr inbounds i8, ptr %74, i64 40
  store ptr %70, ptr %82, align 8, !tbaa !14
  %83 = load ptr, ptr %.tr.ph, align 8, !tbaa !5
  %84 = getelementptr inbounds i8, ptr %83, i64 48
  %85 = load ptr, ptr %84, align 8, !tbaa !13
  %86 = getelementptr inbounds i8, ptr %85, i64 40
  %87 = load ptr, ptr %86, align 8, !tbaa !14
  %88 = getelementptr inbounds i8, ptr %83, i64 40
  %89 = load ptr, ptr %88, align 8, !tbaa !14
  %90 = getelementptr inbounds i8, ptr %89, i64 48
  store ptr %87, ptr %90, align 8, !tbaa !13
  %91 = load ptr, ptr %.tr.ph, align 8, !tbaa !5
  %92 = getelementptr inbounds i8, ptr %91, i64 48
  %93 = load ptr, ptr %92, align 8, !tbaa !13
  %94 = getelementptr inbounds i8, ptr %93, i64 40
  store ptr %71, ptr %94, align 8, !tbaa !14
  %95 = load ptr, ptr %.tr.ph, align 8, !tbaa !5
  %96 = getelementptr inbounds i8, ptr %95, i64 40
  tail call void @push_multiplications_down(ptr noundef nonnull %96)
  %97 = load ptr, ptr %.tr.ph, align 8, !tbaa !5
  %98 = getelementptr inbounds i8, ptr %97, i64 48
  br label %tailrecurse.outer.backedge

99:                                               ; preds = %tailrecurse, %tailrecurse
  %100 = getelementptr inbounds i8, ptr %2, i64 40
  tail call void @push_multiplications_down(ptr noundef nonnull %100)
  %101 = load ptr, ptr %.tr.ph, align 8, !tbaa !5
  %102 = getelementptr inbounds i8, ptr %101, i64 48
  br label %tailrecurse.outer.backedge

103:                                              ; preds = %tailrecurse
  %104 = getelementptr inbounds i8, ptr %2, i64 32
  br label %tailrecurse.outer.backedge

105:                                              ; preds = %tailrecurse
  %106 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.30, i32 noundef %3)
  tail call void @exit(i32 noundef 1) #5
  unreachable

.loopexit.sink.split:                             ; preds = %8, %17
  %.sink = phi ptr [ %22, %17 ], [ %10, %8 ]
  tail call void @free_ExpNode(ptr noundef %.sink) #4
  %107 = load ptr, ptr %.tr.ph, align 8, !tbaa !5
  %108 = getelementptr inbounds i8, ptr %107, i64 48
  %109 = load ptr, ptr %108, align 8, !tbaa !13
  tail call void @free_ExpNode(ptr noundef %109) #4
  %110 = load ptr, ptr %.tr.ph, align 8, !tbaa !5
  %111 = getelementptr inbounds i8, ptr %110, i64 40
  store ptr null, ptr %111, align 8, !tbaa !14
  %112 = load ptr, ptr %.tr.ph, align 8, !tbaa !5
  %113 = getelementptr inbounds i8, ptr %112, i64 48
  store ptr null, ptr %113, align 8, !tbaa !13
  br label %.loopexit

.loopexit:                                        ; preds = %tailrecurse, %tailrecurse, %.loopexit.sink.split
  ret void
}

declare ptr @new_ExpNode(i32 noundef) local_unnamed_addr #2

attributes #0 = { nofree nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #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 = { "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 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 }
attributes #5 = { noreturn nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !11, i64 0}
!10 = !{!"_ExpNode", !11, i64 0, !6, i64 8, !11, i64 16, !12, i64 20, !12, i64 24, !6, i64 32, !6, i64 40, !6, i64 48}
!11 = !{!"int", !7, i64 0}
!12 = !{!"float", !7, i64 0}
!13 = !{!10, !6, i64 48}
!14 = !{!10, !6, i64 40}
!15 = !{!10, !12, i64 24}
!16 = !{!10, !11, i64 16}
!17 = !{!10, !12, i64 20}
!18 = !{!10, !6, i64 32}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass