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

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

@.str.92 = external hidden unnamed_addr constant [46 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

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

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

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

; Function Attrs: nounwind uwtable
define dso_local void @remove_unused_vars_in_wff(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) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #5
  %5 = load ptr, ptr %2, align 8, !tbaa !5
  %6 = load ptr, ptr %5, align 8, !tbaa !5
  %7 = getelementptr inbounds %struct._WffNode, ptr %6, i32 0, i32 0
  %8 = load i32, ptr %7, align 8, !tbaa !9
  switch i32 %8, label %193 [
    i32 2008, label %9
    i32 2009, label %9
    i32 2006, label %174
    i32 2007, label %174
    i32 2005, label %188
    i32 2003, label %192
    i32 2002, label %192
    i32 2000, label %192
    i32 2001, label %192
  ]

9:                                                ; preds = %1, %1
  %10 = load ptr, ptr %2, align 8, !tbaa !5
  %11 = load ptr, ptr %10, align 8, !tbaa !5
  %12 = getelementptr inbounds %struct._WffNode, ptr %11, i32 0, i32 9
  call void @remove_unused_vars_in_wff(ptr noundef %12)
  %13 = load ptr, ptr %2, align 8, !tbaa !5
  %14 = load ptr, ptr %13, align 8, !tbaa !5
  %15 = getelementptr inbounds %struct._WffNode, ptr %14, i32 0, i32 1
  %16 = load i32, ptr %15, align 4, !tbaa !12
  %17 = mul nsw i32 %16, -1
  %18 = sub nsw i32 %17, 1
  %19 = load ptr, ptr %2, align 8, !tbaa !5
  %20 = load ptr, ptr %19, align 8, !tbaa !5
  %21 = getelementptr inbounds %struct._WffNode, ptr %20, i32 0, i32 9
  %22 = load ptr, ptr %21, align 8, !tbaa !13
  %23 = call zeroext i8 @var_used_in_wff(i32 noundef %18, ptr noundef %22)
  %24 = icmp ne i8 %23, 0
  br i1 %24, label %173, label %25

25:                                               ; preds = %9
  %26 = load ptr, ptr %2, align 8, !tbaa !5
  %27 = load ptr, ptr %26, align 8, !tbaa !5
  %28 = getelementptr inbounds %struct._WffNode, ptr %27, i32 0, i32 1
  %29 = load i32, ptr %28, align 4, !tbaa !12
  %30 = load ptr, ptr %2, align 8, !tbaa !5
  %31 = load ptr, ptr %30, align 8, !tbaa !5
  %32 = getelementptr inbounds %struct._WffNode, ptr %31, i32 0, i32 9
  %33 = load ptr, ptr %32, align 8, !tbaa !13
  call void @decrement_inferior_vars(i32 noundef %29, ptr noundef %33)
  %34 = load ptr, ptr %2, align 8, !tbaa !5
  %35 = load ptr, ptr %34, align 8, !tbaa !5
  %36 = getelementptr inbounds %struct._WffNode, ptr %35, i32 0, i32 9
  %37 = load ptr, ptr %36, align 8, !tbaa !13
  %38 = getelementptr inbounds %struct._WffNode, ptr %37, i32 0, i32 0
  %39 = load i32, ptr %38, align 8, !tbaa !9
  %40 = load ptr, ptr %2, align 8, !tbaa !5
  %41 = load ptr, ptr %40, align 8, !tbaa !5
  %42 = getelementptr inbounds %struct._WffNode, ptr %41, i32 0, i32 0
  store i32 %39, ptr %42, align 8, !tbaa !9
  %43 = load ptr, ptr %2, align 8, !tbaa !5
  %44 = load ptr, ptr %43, align 8, !tbaa !5
  %45 = getelementptr inbounds %struct._WffNode, ptr %44, i32 0, i32 9
  %46 = load ptr, ptr %45, align 8, !tbaa !13
  %47 = getelementptr inbounds %struct._WffNode, ptr %46, i32 0, i32 1
  %48 = load i32, ptr %47, align 4, !tbaa !12
  %49 = load ptr, ptr %2, align 8, !tbaa !5
  %50 = load ptr, ptr %49, align 8, !tbaa !5
  %51 = getelementptr inbounds %struct._WffNode, ptr %50, i32 0, i32 1
  store i32 %48, ptr %51, align 4, !tbaa !12
  %52 = load ptr, ptr %2, align 8, !tbaa !5
  %53 = load ptr, ptr %52, align 8, !tbaa !5
  %54 = getelementptr inbounds %struct._WffNode, ptr %53, i32 0, i32 9
  %55 = load ptr, ptr %54, align 8, !tbaa !13
  %56 = getelementptr inbounds %struct._WffNode, ptr %55, i32 0, i32 2
  %57 = load i32, ptr %56, align 8, !tbaa !14
  %58 = load ptr, ptr %2, align 8, !tbaa !5
  %59 = load ptr, ptr %58, align 8, !tbaa !5
  %60 = getelementptr inbounds %struct._WffNode, ptr %59, i32 0, i32 2
  store i32 %57, ptr %60, align 8, !tbaa !14
  %61 = load ptr, ptr %2, align 8, !tbaa !5
  %62 = load ptr, ptr %61, align 8, !tbaa !5
  %63 = getelementptr inbounds %struct._WffNode, ptr %62, i32 0, i32 3
  %64 = load ptr, ptr %63, align 8, !tbaa !15
  %65 = icmp ne ptr %64, null
  br i1 %65, label %66, label %71

66:                                               ; preds = %25
  %67 = load ptr, ptr %2, align 8, !tbaa !5
  %68 = load ptr, ptr %67, align 8, !tbaa !5
  %69 = getelementptr inbounds %struct._WffNode, ptr %68, i32 0, i32 3
  %70 = load ptr, ptr %69, align 8, !tbaa !15
  call void @free(ptr noundef %70) #5
  br label %71

71:                                               ; preds = %66, %25
  %72 = load ptr, ptr %2, align 8, !tbaa !5
  %73 = load ptr, ptr %72, align 8, !tbaa !5
  %74 = getelementptr inbounds %struct._WffNode, ptr %73, i32 0, i32 9
  %75 = load ptr, ptr %74, align 8, !tbaa !13
  %76 = getelementptr inbounds %struct._WffNode, ptr %75, i32 0, i32 3
  %77 = load ptr, 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._WffNode, ptr %79, i32 0, i32 3
  store ptr %77, ptr %80, align 8, !tbaa !15
  %81 = load ptr, ptr %2, align 8, !tbaa !5
  %82 = load ptr, ptr %81, align 8, !tbaa !5
  %83 = getelementptr inbounds %struct._WffNode, ptr %82, i32 0, i32 9
  %84 = load ptr, ptr %83, align 8, !tbaa !13
  %85 = getelementptr inbounds %struct._WffNode, ptr %84, i32 0, i32 4
  %86 = load ptr, ptr %85, align 8, !tbaa !16
  %87 = load ptr, ptr %2, align 8, !tbaa !5
  %88 = load ptr, ptr %87, align 8, !tbaa !5
  %89 = getelementptr inbounds %struct._WffNode, ptr %88, i32 0, i32 4
  store ptr %86, ptr %89, align 8, !tbaa !16
  %90 = load ptr, ptr %2, align 8, !tbaa !5
  %91 = load ptr, ptr %90, align 8, !tbaa !5
  %92 = getelementptr inbounds %struct._WffNode, ptr %91, i32 0, i32 7
  %93 = load ptr, ptr %92, align 8, !tbaa !17
  %94 = icmp ne ptr %93, null
  br i1 %94, label %95, label %100

95:                                               ; preds = %71
  %96 = load ptr, ptr %2, align 8, !tbaa !5
  %97 = load ptr, ptr %96, align 8, !tbaa !5
  %98 = getelementptr inbounds %struct._WffNode, ptr %97, i32 0, i32 7
  %99 = load ptr, ptr %98, align 8, !tbaa !17
  call void @free(ptr noundef %99) #5
  br label %100

100:                                              ; preds = %95, %71
  %101 = load ptr, ptr %2, align 8, !tbaa !5
  %102 = load ptr, ptr %101, align 8, !tbaa !5
  %103 = getelementptr inbounds %struct._WffNode, ptr %102, i32 0, i32 9
  %104 = load ptr, ptr %103, align 8, !tbaa !13
  %105 = getelementptr inbounds %struct._WffNode, ptr %104, i32 0, i32 7
  %106 = load ptr, ptr %105, align 8, !tbaa !17
  %107 = load ptr, ptr %2, align 8, !tbaa !5
  %108 = load ptr, ptr %107, align 8, !tbaa !5
  %109 = getelementptr inbounds %struct._WffNode, ptr %108, i32 0, i32 7
  store ptr %106, ptr %109, align 8, !tbaa !17
  %110 = load ptr, ptr %2, align 8, !tbaa !5
  %111 = load ptr, ptr %110, align 8, !tbaa !5
  %112 = getelementptr inbounds %struct._WffNode, ptr %111, i32 0, i32 9
  %113 = load ptr, ptr %112, align 8, !tbaa !13
  %114 = getelementptr inbounds %struct._WffNode, ptr %113, i32 0, i32 10
  %115 = load i32, ptr %114, align 8, !tbaa !18
  %116 = load ptr, ptr %2, align 8, !tbaa !5
  %117 = load ptr, ptr %116, align 8, !tbaa !5
  %118 = getelementptr inbounds %struct._WffNode, ptr %117, i32 0, i32 10
  store i32 %115, ptr %118, align 8, !tbaa !18
  %119 = load ptr, ptr %2, align 8, !tbaa !5
  %120 = load ptr, ptr %119, align 8, !tbaa !5
  %121 = getelementptr inbounds %struct._WffNode, ptr %120, i32 0, i32 11
  %122 = load ptr, ptr %121, align 8, !tbaa !19
  %123 = icmp ne ptr %122, null
  br i1 %123, label %124, label %129

124:                                              ; preds = %100
  %125 = load ptr, ptr %2, align 8, !tbaa !5
  %126 = load ptr, ptr %125, align 8, !tbaa !5
  %127 = getelementptr inbounds %struct._WffNode, ptr %126, i32 0, i32 11
  %128 = load ptr, ptr %127, align 8, !tbaa !19
  call void @free_ExpNode(ptr noundef %128)
  br label %129

129:                                              ; preds = %124, %100
  %130 = load ptr, ptr %2, align 8, !tbaa !5
  %131 = load ptr, ptr %130, align 8, !tbaa !5
  %132 = getelementptr inbounds %struct._WffNode, ptr %131, i32 0, i32 12
  %133 = load ptr, ptr %132, align 8, !tbaa !20
  %134 = icmp ne ptr %133, null
  br i1 %134, label %135, label %140

135:                                              ; preds = %129
  %136 = load ptr, ptr %2, align 8, !tbaa !5
  %137 = load ptr, ptr %136, align 8, !tbaa !5
  %138 = getelementptr inbounds %struct._WffNode, ptr %137, i32 0, i32 12
  %139 = load ptr, ptr %138, align 8, !tbaa !20
  call void @free_ExpNode(ptr noundef %139)
  br label %140

140:                                              ; preds = %135, %129
  %141 = load ptr, ptr %2, align 8, !tbaa !5
  %142 = load ptr, ptr %141, align 8, !tbaa !5
  %143 = getelementptr inbounds %struct._WffNode, ptr %142, i32 0, i32 9
  %144 = load ptr, ptr %143, align 8, !tbaa !13
  %145 = getelementptr inbounds %struct._WffNode, ptr %144, i32 0, i32 11
  %146 = load ptr, ptr %145, align 8, !tbaa !19
  %147 = load ptr, ptr %2, align 8, !tbaa !5
  %148 = load ptr, ptr %147, align 8, !tbaa !5
  %149 = getelementptr inbounds %struct._WffNode, ptr %148, i32 0, i32 11
  store ptr %146, ptr %149, align 8, !tbaa !19
  %150 = load ptr, ptr %2, align 8, !tbaa !5
  %151 = load ptr, ptr %150, align 8, !tbaa !5
  %152 = getelementptr inbounds %struct._WffNode, ptr %151, i32 0, i32 9
  %153 = load ptr, ptr %152, align 8, !tbaa !13
  %154 = getelementptr inbounds %struct._WffNode, ptr %153, i32 0, i32 12
  %155 = load ptr, ptr %154, align 8, !tbaa !20
  %156 = load ptr, ptr %2, align 8, !tbaa !5
  %157 = load ptr, ptr %156, align 8, !tbaa !5
  %158 = getelementptr inbounds %struct._WffNode, ptr %157, i32 0, i32 12
  store ptr %155, ptr %158, align 8, !tbaa !20
  %159 = load ptr, ptr %2, align 8, !tbaa !5
  %160 = load ptr, ptr %159, align 8, !tbaa !5
  %161 = getelementptr inbounds %struct._WffNode, ptr %160, i32 0, i32 9
  %162 = load ptr, ptr %161, align 8, !tbaa !13
  store ptr %162, ptr %3, align 8, !tbaa !5
  %163 = load ptr, ptr %2, align 8, !tbaa !5
  %164 = load ptr, ptr %163, align 8, !tbaa !5
  %165 = getelementptr inbounds %struct._WffNode, ptr %164, i32 0, i32 9
  %166 = load ptr, ptr %165, align 8, !tbaa !13
  %167 = getelementptr inbounds %struct._WffNode, ptr %166, i32 0, i32 9
  %168 = load ptr, ptr %167, align 8, !tbaa !13
  %169 = load ptr, ptr %2, align 8, !tbaa !5
  %170 = load ptr, ptr %169, align 8, !tbaa !5
  %171 = getelementptr inbounds %struct._WffNode, ptr %170, i32 0, i32 9
  store ptr %168, ptr %171, align 8, !tbaa !13
  %172 = load ptr, ptr %3, align 8, !tbaa !5
  call void @free(ptr noundef %172) #5
  br label %173

173:                                              ; preds = %140, %9
  br label %199

174:                                              ; preds = %1, %1
  %175 = load ptr, ptr %2, align 8, !tbaa !5
  %176 = load ptr, ptr %175, align 8, !tbaa !5
  %177 = getelementptr inbounds %struct._WffNode, ptr %176, i32 0, i32 4
  %178 = load ptr, ptr %177, align 8, !tbaa !16
  store ptr %178, ptr %4, align 8, !tbaa !5
  br label %179

179:                                              ; preds = %183, %174
  %180 = load ptr, ptr %4, align 8, !tbaa !5
  %181 = icmp ne ptr %180, null
  br i1 %181, label %182, label %187

182:                                              ; preds = %179
  call void @remove_unused_vars_in_wff(ptr noundef %4)
  br label %183

183:                                              ; preds = %182
  %184 = load ptr, ptr %4, align 8, !tbaa !5
  %185 = getelementptr inbounds %struct._WffNode, ptr %184, i32 0, i32 5
  %186 = load ptr, ptr %185, align 8, !tbaa !21
  store ptr %186, ptr %4, align 8, !tbaa !5
  br label %179, !llvm.loop !22

187:                                              ; preds = %179
  br label %199

188:                                              ; preds = %1
  %189 = load ptr, ptr %2, align 8, !tbaa !5
  %190 = load ptr, ptr %189, align 8, !tbaa !5
  %191 = getelementptr inbounds %struct._WffNode, ptr %190, i32 0, i32 9
  call void @remove_unused_vars_in_wff(ptr noundef %191)
  br label %199

192:                                              ; preds = %1, %1, %1, %1
  br label %199

193:                                              ; preds = %1
  %194 = load ptr, ptr %2, align 8, !tbaa !5
  %195 = load ptr, ptr %194, align 8, !tbaa !5
  %196 = getelementptr inbounds %struct._WffNode, ptr %195, i32 0, i32 0
  %197 = load i32, ptr %196, align 8, !tbaa !9
  %198 = call i32 (ptr, ...) @printf(ptr noundef @.str.92, i32 noundef %197)
  call void @exit(i32 noundef 1) #6
  unreachable

199:                                              ; preds = %192, %188, %187, %173
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #5
  ret void
}

; Function Attrs: nounwind uwtable
declare dso_local zeroext i8 @var_used_in_wff(i32 noundef, ptr noundef) #3

; Function Attrs: nounwind uwtable
declare dso_local void @decrement_inferior_vars(i32 noundef, ptr noundef) #3

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

declare void @free_ExpNode(ptr noundef) #1

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 = { 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 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 "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 }

!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 = !{!"_WffNode", !11, i64 0, !11, i64 4, !11, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !11, i64 56, !6, i64 64, !11, i64 72, !6, i64 80, !6, i64 88, !7, i64 96}
!11 = !{!"int", !7, i64 0}
!12 = !{!10, !11, i64 4}
!13 = !{!10, !6, i64 64}
!14 = !{!10, !11, i64 8}
!15 = !{!10, !6, i64 16}
!16 = !{!10, !6, i64 24}
!17 = !{!10, !6, i64 48}
!18 = !{!10, !11, i64 72}
!19 = !{!10, !6, i64 80}
!20 = !{!10, !6, i64 88}
!21 = !{!10, !6, i64 32}
!22 = distinct !{!22, !23}
!23 = !{!"llvm.loop.mustprogress"}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

@.str.92 = external hidden unnamed_addr constant [46 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: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #1

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

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

; Function Attrs: nounwind uwtable
define dso_local void @remove_unused_vars_in_wff(ptr nocapture noundef readonly %0) local_unnamed_addr #3 {
  %2 = alloca ptr, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #6
  %3 = load ptr, ptr %0, align 8, !tbaa !5
  %4 = load i32, ptr %3, align 8, !tbaa !9
  switch i32 %4, label %90 [
    i32 2008, label %5
    i32 2009, label %5
    i32 2006, label %85
    i32 2007, label %85
    i32 2005, label %88
    i32 2003, label %.loopexit
    i32 2002, label %.loopexit
    i32 2000, label %.loopexit
    i32 2001, label %.loopexit
  ]

5:                                                ; preds = %1, %1
  %6 = getelementptr inbounds i8, ptr %3, i64 64
  tail call void @remove_unused_vars_in_wff(ptr noundef nonnull %6)
  %7 = load ptr, ptr %0, align 8, !tbaa !5
  %8 = getelementptr inbounds i8, ptr %7, i64 4
  %9 = load i32, ptr %8, align 4, !tbaa !12
  %10 = xor i32 %9, -1
  %11 = getelementptr inbounds i8, ptr %7, i64 64
  %12 = load ptr, ptr %11, align 8, !tbaa !13
  %13 = tail call zeroext i8 @var_used_in_wff(i32 noundef %10, ptr noundef %12)
  %.not42 = icmp eq i8 %13, 0
  br i1 %.not42, label %14, label %.loopexit

14:                                               ; preds = %5
  %15 = load ptr, ptr %0, align 8, !tbaa !5
  %16 = getelementptr inbounds i8, ptr %15, i64 4
  %17 = load i32, ptr %16, align 4, !tbaa !12
  %18 = getelementptr inbounds i8, ptr %15, i64 64
  %19 = load ptr, ptr %18, align 8, !tbaa !13
  tail call void @decrement_inferior_vars(i32 noundef %17, ptr noundef %19)
  %20 = load ptr, ptr %0, align 8, !tbaa !5
  %21 = getelementptr inbounds i8, ptr %20, i64 64
  %22 = load ptr, ptr %21, align 8, !tbaa !13
  %23 = load <2 x i32>, ptr %22, align 8, !tbaa !14
  store <2 x i32> %23, ptr %20, align 8, !tbaa !14
  %24 = getelementptr inbounds i8, ptr %22, i64 8
  %25 = load i32, ptr %24, align 8, !tbaa !15
  %26 = getelementptr inbounds i8, ptr %20, i64 8
  store i32 %25, ptr %26, align 8, !tbaa !15
  %27 = getelementptr inbounds i8, ptr %20, i64 16
  %28 = load ptr, ptr %27, align 8, !tbaa !16
  %.not43 = icmp eq ptr %28, null
  br i1 %.not43, label %30, label %29

29:                                               ; preds = %14
  tail call void @free(ptr noundef nonnull %28) #6
  %.pre = load ptr, ptr %0, align 8, !tbaa !5
  %.phi.trans.insert = getelementptr inbounds i8, ptr %.pre, i64 64
  %.pre50 = load ptr, ptr %.phi.trans.insert, align 8, !tbaa !13
  br label %30

30:                                               ; preds = %29, %14
  %31 = phi ptr [ %.pre50, %29 ], [ %22, %14 ]
  %32 = phi ptr [ %.pre, %29 ], [ %20, %14 ]
  %33 = getelementptr inbounds i8, ptr %31, i64 16
  %34 = load ptr, ptr %33, align 8, !tbaa !16
  %35 = getelementptr inbounds i8, ptr %32, i64 16
  store ptr %34, ptr %35, align 8, !tbaa !16
  %36 = load ptr, ptr %0, align 8, !tbaa !5
  %37 = getelementptr inbounds i8, ptr %36, i64 64
  %38 = load ptr, ptr %37, align 8, !tbaa !13
  %39 = getelementptr inbounds i8, ptr %38, i64 24
  %40 = load ptr, ptr %39, align 8, !tbaa !17
  %41 = getelementptr inbounds i8, ptr %36, i64 24
  store ptr %40, ptr %41, align 8, !tbaa !17
  %42 = load ptr, ptr %0, align 8, !tbaa !5
  %43 = getelementptr inbounds i8, ptr %42, i64 48
  %44 = load ptr, ptr %43, align 8, !tbaa !18
  %.not44 = icmp eq ptr %44, null
  br i1 %.not44, label %46, label %45

45:                                               ; preds = %30
  tail call void @free(ptr noundef nonnull %44) #6
  %.pre51 = load ptr, ptr %0, align 8, !tbaa !5
  br label %46

46:                                               ; preds = %45, %30
  %47 = phi ptr [ %.pre51, %45 ], [ %42, %30 ]
  %48 = getelementptr inbounds i8, ptr %47, i64 64
  %49 = load ptr, ptr %48, align 8, !tbaa !13
  %50 = getelementptr inbounds i8, ptr %49, i64 48
  %51 = load ptr, ptr %50, align 8, !tbaa !18
  %52 = getelementptr inbounds i8, ptr %47, i64 48
  store ptr %51, ptr %52, align 8, !tbaa !18
  %53 = load ptr, ptr %0, align 8, !tbaa !5
  %54 = getelementptr inbounds i8, ptr %53, i64 64
  %55 = load ptr, ptr %54, align 8, !tbaa !13
  %56 = getelementptr inbounds i8, ptr %55, i64 72
  %57 = load i32, ptr %56, align 8, !tbaa !19
  %58 = getelementptr inbounds i8, ptr %53, i64 72
  store i32 %57, ptr %58, align 8, !tbaa !19
  %59 = getelementptr inbounds i8, ptr %53, i64 80
  %60 = load ptr, ptr %59, align 8, !tbaa !20
  %.not45 = icmp eq ptr %60, null
  br i1 %.not45, label %62, label %61

61:                                               ; preds = %46
  tail call void @free_ExpNode(ptr noundef nonnull %60) #6
  %.pre52 = load ptr, ptr %0, align 8, !tbaa !5
  br label %62

62:                                               ; preds = %61, %46
  %63 = phi ptr [ %.pre52, %61 ], [ %53, %46 ]
  %64 = getelementptr inbounds i8, ptr %63, i64 88
  %65 = load ptr, ptr %64, align 8, !tbaa !21
  %.not46 = icmp eq ptr %65, null
  br i1 %.not46, label %67, label %66

66:                                               ; preds = %62
  tail call void @free_ExpNode(ptr noundef nonnull %65) #6
  %.pre53 = load ptr, ptr %0, align 8, !tbaa !5
  br label %67

67:                                               ; preds = %66, %62
  %68 = phi ptr [ %.pre53, %66 ], [ %63, %62 ]
  %69 = getelementptr inbounds i8, ptr %68, i64 64
  %70 = load ptr, ptr %69, align 8, !tbaa !13
  %71 = getelementptr inbounds i8, ptr %70, i64 80
  %72 = load ptr, ptr %71, align 8, !tbaa !20
  %73 = getelementptr inbounds i8, ptr %68, i64 80
  store ptr %72, ptr %73, align 8, !tbaa !20
  %74 = load ptr, ptr %0, align 8, !tbaa !5
  %75 = getelementptr inbounds i8, ptr %74, i64 64
  %76 = load ptr, ptr %75, align 8, !tbaa !13
  %77 = getelementptr inbounds i8, ptr %76, i64 88
  %78 = load ptr, ptr %77, align 8, !tbaa !21
  %79 = getelementptr inbounds i8, ptr %74, i64 88
  store ptr %78, ptr %79, align 8, !tbaa !21
  %80 = load ptr, ptr %0, align 8, !tbaa !5
  %81 = getelementptr inbounds i8, ptr %80, i64 64
  %82 = load ptr, ptr %81, align 8, !tbaa !13
  %83 = getelementptr inbounds i8, ptr %82, i64 64
  %84 = load ptr, ptr %83, align 8, !tbaa !13
  store ptr %84, ptr %81, align 8, !tbaa !13
  tail call void @free(ptr noundef %82) #6
  br label %.loopexit

85:                                               ; preds = %1, %1
  %86 = getelementptr inbounds i8, ptr %3, i64 24
  %storemerge47 = load ptr, ptr %86, align 8, !tbaa !5
  store ptr %storemerge47, ptr %2, align 8, !tbaa !5
  %.not48 = icmp eq ptr %storemerge47, null
  br i1 %.not48, label %.loopexit, label %.lr.ph

.lr.ph:                                           ; preds = %85, %.lr.ph
  %storemerge49 = phi ptr [ %storemerge, %.lr.ph ], [ %storemerge47, %85 ]
  call void @remove_unused_vars_in_wff(ptr noundef nonnull %2)
  %87 = getelementptr inbounds i8, ptr %storemerge49, i64 32
  %storemerge = load ptr, ptr %87, align 8, !tbaa !5
  store ptr %storemerge, ptr %2, align 8, !tbaa !5
  %.not = icmp eq ptr %storemerge, null
  br i1 %.not, label %.loopexit, label %.lr.ph, !llvm.loop !22

88:                                               ; preds = %1
  %89 = getelementptr inbounds i8, ptr %3, i64 64
  tail call void @remove_unused_vars_in_wff(ptr noundef nonnull %89)
  br label %.loopexit

90:                                               ; preds = %1
  %91 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.92, i32 noundef %4)
  tail call void @exit(i32 noundef 1) #7
  unreachable

.loopexit:                                        ; preds = %.lr.ph, %85, %1, %1, %1, %1, %5, %67, %88
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #6
  ret void
}

; Function Attrs: nounwind uwtable
declare dso_local zeroext i8 @var_used_in_wff(i32 noundef, ptr noundef) local_unnamed_addr #3

; Function Attrs: nounwind uwtable
declare dso_local void @decrement_inferior_vars(i32 noundef, ptr noundef) local_unnamed_addr #3

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

declare void @free_ExpNode(ptr noundef) local_unnamed_addr #5

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #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 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 = { mustprogress nounwind willreturn allockind("free") memory(argmem: readwrite, inaccessiblemem: readwrite) "alloc-family"="malloc" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { nounwind }
attributes #7 = { 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 = !{!"_WffNode", !11, i64 0, !11, i64 4, !11, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !11, i64 56, !6, i64 64, !11, i64 72, !6, i64 80, !6, i64 88, !7, i64 96}
!11 = !{!"int", !7, i64 0}
!12 = !{!10, !11, i64 4}
!13 = !{!10, !6, i64 64}
!14 = !{!11, !11, i64 0}
!15 = !{!10, !11, i64 8}
!16 = !{!10, !6, i64 16}
!17 = !{!10, !6, i64 24}
!18 = !{!10, !6, i64 48}
!19 = !{!10, !11, i64 72}
!20 = !{!10, !6, i64 80}
!21 = !{!10, !6, i64 88}
!22 = distinct !{!22, !23}
!23 = !{!"llvm.loop.mustprogress"}


; Effective O3 passes: BDCEPass,CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,TailCallElimPass