; 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._PlNode = type { i32, ptr, ptr, i32, i32, ptr, ptr, ptr, ptr }
%struct._TokenList = type { ptr, ptr }
%struct._Fact = type { i32, [5 x i32] }

@gconstants = external global [2000 x ptr], align 16
@gpredicates = external global [50 x ptr], align 16
@garity = external global [50 x i32], align 16
@gpredicates_args_type = external global [50 x [5 x i32]], align 16
@gis_member = external global [2000 x [50 x i8]], align 16
@lvar_types = external dso_local global [15 x i32], align 16
@lvar_names = external dso_local global [15 x ptr], align 16
@.str.42 = external hidden unnamed_addr constant [58 x i8], align 1
@.str.43 = external hidden unnamed_addr constant [53 x i8], align 1
@.str.44 = external hidden unnamed_addr constant [59 x i8], align 1
@.str.45 = external hidden unnamed_addr constant [64 x i8], align 1
@.str.46 = external hidden unnamed_addr constant [56 x i8], align 1
@.str.47 = external hidden unnamed_addr constant [65 x i8], align 1
@.str.48 = external hidden unnamed_addr constant [77 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
declare dso_local i32 @position_in_constants_table(ptr noundef) #3

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

; Function Attrs: nounwind willreturn memory(read)
declare i32 @strcmp(ptr noundef, ptr noundef) #4

; Function Attrs: nounwind uwtable
define dso_local void @make_Fact(ptr noundef %0, ptr noundef %1, i32 noundef %2) #3 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca ptr, align 8
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  store i32 %2, ptr %6, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #5
  %10 = load ptr, ptr %5, align 8, !tbaa !5
  %11 = getelementptr inbounds %struct._PlNode, ptr %10, i32 0, i32 2
  %12 = load ptr, ptr %11, align 8, !tbaa !11
  %13 = icmp ne ptr %12, null
  br i1 %13, label %16, label %14

14:                                               ; preds = %3
  %15 = call i32 (ptr, ...) @printf(ptr noundef @.str.42)
  call void @exit(i32 noundef 1) #6
  unreachable

16:                                               ; preds = %3
  %17 = load ptr, ptr %5, align 8, !tbaa !5
  %18 = getelementptr inbounds %struct._PlNode, ptr %17, i32 0, i32 2
  %19 = load ptr, ptr %18, align 8, !tbaa !11
  %20 = getelementptr inbounds %struct._TokenList, ptr %19, i32 0, i32 0
  %21 = load ptr, ptr %20, align 8, !tbaa !13
  %22 = call i32 @position_in_predicates_table(ptr noundef %21)
  %23 = load ptr, ptr %4, align 8, !tbaa !5
  %24 = getelementptr inbounds %struct._Fact, ptr %23, i32 0, i32 0
  store i32 %22, ptr %24, align 4, !tbaa !15
  %25 = load ptr, ptr %4, align 8, !tbaa !5
  %26 = getelementptr inbounds %struct._Fact, ptr %25, i32 0, i32 0
  %27 = load i32, ptr %26, align 4, !tbaa !15
  %28 = icmp eq i32 %27, -1
  br i1 %28, label %29, label %36

29:                                               ; preds = %16
  %30 = load ptr, ptr %5, align 8, !tbaa !5
  %31 = getelementptr inbounds %struct._PlNode, ptr %30, i32 0, i32 2
  %32 = load ptr, ptr %31, align 8, !tbaa !11
  %33 = getelementptr inbounds %struct._TokenList, ptr %32, i32 0, i32 0
  %34 = load ptr, ptr %33, align 8, !tbaa !13
  %35 = call i32 (ptr, ...) @printf(ptr noundef @.str.43, ptr noundef %34)
  call void @exit(i32 noundef 1) #6
  unreachable

36:                                               ; preds = %16
  store i32 0, ptr %7, align 4, !tbaa !9
  %37 = load ptr, ptr %5, align 8, !tbaa !5
  %38 = getelementptr inbounds %struct._PlNode, ptr %37, i32 0, i32 2
  %39 = load ptr, ptr %38, align 8, !tbaa !11
  %40 = getelementptr inbounds %struct._TokenList, ptr %39, i32 0, i32 1
  %41 = load ptr, ptr %40, align 8, !tbaa !17
  store ptr %41, ptr %9, align 8, !tbaa !5
  br label %42

42:                                               ; preds = %214, %36
  %43 = load ptr, ptr %9, align 8, !tbaa !5
  %44 = icmp ne ptr %43, null
  br i1 %44, label %45, label %218

45:                                               ; preds = %42
  %46 = load ptr, ptr %9, align 8, !tbaa !5
  %47 = getelementptr inbounds %struct._TokenList, ptr %46, i32 0, i32 0
  %48 = load ptr, ptr %47, align 8, !tbaa !13
  %49 = getelementptr inbounds i8, ptr %48, i64 0
  %50 = load i8, ptr %49, align 1, !tbaa !18
  %51 = sext i8 %50 to i32
  %52 = icmp eq i32 %51, 63
  br i1 %52, label %53, label %149

53:                                               ; preds = %45
  %54 = load i32, ptr %6, align 4, !tbaa !9
  %55 = sub nsw i32 %54, 1
  store i32 %55, ptr %8, align 4, !tbaa !9
  br label %56

56:                                               ; preds = %80, %53
  %57 = load i32, ptr %8, align 4, !tbaa !9
  %58 = icmp sgt i32 %57, -1
  br i1 %58, label %59, label %83

59:                                               ; preds = %56
  %60 = load i32, ptr %8, align 4, !tbaa !9
  %61 = sext i32 %60 to i64
  %62 = getelementptr inbounds [15 x ptr], ptr @lvar_names, i64 0, i64 %61
  %63 = load ptr, ptr %62, align 8, !tbaa !5
  %64 = load ptr, ptr %9, align 8, !tbaa !5
  %65 = getelementptr inbounds %struct._TokenList, ptr %64, i32 0, i32 0
  %66 = load ptr, ptr %65, align 8, !tbaa !13
  %67 = icmp eq ptr %63, %66
  br i1 %67, label %78, label %68

68:                                               ; preds = %59
  %69 = load i32, ptr %8, align 4, !tbaa !9
  %70 = sext i32 %69 to i64
  %71 = getelementptr inbounds [15 x ptr], ptr @lvar_names, i64 0, i64 %70
  %72 = load ptr, ptr %71, align 8, !tbaa !5
  %73 = load ptr, ptr %9, align 8, !tbaa !5
  %74 = getelementptr inbounds %struct._TokenList, ptr %73, i32 0, i32 0
  %75 = load ptr, ptr %74, align 8, !tbaa !13
  %76 = call i32 @strcmp(ptr noundef %72, ptr noundef %75) #7
  %77 = icmp eq i32 %76, 0
  br i1 %77, label %78, label %79

78:                                               ; preds = %68, %59
  br label %83

79:                                               ; preds = %68
  br label %80

80:                                               ; preds = %79
  %81 = load i32, ptr %8, align 4, !tbaa !9
  %82 = add nsw i32 %81, -1
  store i32 %82, ptr %8, align 4, !tbaa !9
  br label %56, !llvm.loop !19

83:                                               ; preds = %78, %56
  %84 = load i32, ptr %8, align 4, !tbaa !9
  %85 = icmp eq i32 %84, -1
  br i1 %85, label %86, label %96

86:                                               ; preds = %83
  %87 = load ptr, ptr %9, align 8, !tbaa !5
  %88 = getelementptr inbounds %struct._TokenList, ptr %87, i32 0, i32 0
  %89 = load ptr, ptr %88, align 8, !tbaa !13
  %90 = load ptr, ptr %5, align 8, !tbaa !5
  %91 = getelementptr inbounds %struct._PlNode, ptr %90, i32 0, i32 2
  %92 = load ptr, ptr %91, align 8, !tbaa !11
  %93 = getelementptr inbounds %struct._TokenList, ptr %92, i32 0, i32 0
  %94 = load ptr, ptr %93, align 8, !tbaa !13
  %95 = call i32 (ptr, ...) @printf(ptr noundef @.str.44, ptr noundef %89, ptr noundef %94)
  call void @exit(i32 noundef 1) #6
  unreachable

96:                                               ; preds = %83
  %97 = load i32, ptr %8, align 4, !tbaa !9
  %98 = sext i32 %97 to i64
  %99 = getelementptr inbounds [15 x i32], ptr @lvar_types, i64 0, i64 %98
  %100 = load i32, ptr %99, align 4, !tbaa !9
  %101 = load ptr, ptr %4, align 8, !tbaa !5
  %102 = getelementptr inbounds %struct._Fact, ptr %101, i32 0, i32 0
  %103 = load i32, ptr %102, align 4, !tbaa !15
  %104 = sext i32 %103 to i64
  %105 = getelementptr inbounds [50 x [5 x i32]], ptr @gpredicates_args_type, i64 0, i64 %104
  %106 = load i32, ptr %7, align 4, !tbaa !9
  %107 = sext i32 %106 to i64
  %108 = getelementptr inbounds [5 x i32], ptr %105, i64 0, i64 %107
  %109 = load i32, ptr %108, align 4, !tbaa !9
  %110 = icmp ne i32 %100, %109
  br i1 %110, label %111, label %140

111:                                              ; preds = %96
  %112 = load i32, ptr %8, align 4, !tbaa !9
  %113 = sext i32 %112 to i64
  %114 = getelementptr inbounds [15 x i32], ptr @lvar_types, i64 0, i64 %113
  %115 = load i32, ptr %114, align 4, !tbaa !9
  %116 = load ptr, ptr %4, align 8, !tbaa !5
  %117 = getelementptr inbounds %struct._Fact, ptr %116, i32 0, i32 0
  %118 = load i32, ptr %117, align 4, !tbaa !15
  %119 = sext i32 %118 to i64
  %120 = getelementptr inbounds [50 x [5 x i32]], ptr @gpredicates_args_type, i64 0, i64 %119
  %121 = load i32, ptr %7, align 4, !tbaa !9
  %122 = sext i32 %121 to i64
  %123 = getelementptr inbounds [5 x i32], ptr %120, i64 0, i64 %122
  %124 = load i32, ptr %123, align 4, !tbaa !9
  %125 = call zeroext i8 @is_subtype(i32 noundef %115, i32 noundef %124)
  %126 = icmp ne i8 %125, 0
  br i1 %126, label %140, label %127

127:                                              ; preds = %111
  %128 = load i32, ptr %8, align 4, !tbaa !9
  %129 = sext i32 %128 to i64
  %130 = getelementptr inbounds [15 x ptr], ptr @lvar_names, i64 0, i64 %129
  %131 = load ptr, ptr %130, align 8, !tbaa !5
  %132 = load i32, ptr %7, align 4, !tbaa !9
  %133 = load ptr, ptr %4, align 8, !tbaa !5
  %134 = getelementptr inbounds %struct._Fact, ptr %133, i32 0, i32 0
  %135 = load i32, ptr %134, align 4, !tbaa !15
  %136 = sext i32 %135 to i64
  %137 = getelementptr inbounds [50 x ptr], ptr @gpredicates, i64 0, i64 %136
  %138 = load ptr, ptr %137, align 8, !tbaa !5
  %139 = call i32 (ptr, ...) @printf(ptr noundef @.str.45, ptr noundef %131, i32 noundef %132, ptr noundef %138)
  call void @exit(i32 noundef 1) #6
  unreachable

140:                                              ; preds = %111, %96
  %141 = load i32, ptr %8, align 4, !tbaa !9
  %142 = mul nsw i32 %141, -1
  %143 = sub nsw i32 %142, 1
  %144 = load ptr, ptr %4, align 8, !tbaa !5
  %145 = getelementptr inbounds %struct._Fact, ptr %144, i32 0, i32 1
  %146 = load i32, ptr %7, align 4, !tbaa !9
  %147 = sext i32 %146 to i64
  %148 = getelementptr inbounds [5 x i32], ptr %145, i64 0, i64 %147
  store i32 %143, ptr %148, align 4, !tbaa !9
  br label %211

149:                                              ; preds = %45
  %150 = load ptr, ptr %9, align 8, !tbaa !5
  %151 = getelementptr inbounds %struct._TokenList, ptr %150, i32 0, i32 0
  %152 = load ptr, ptr %151, align 8, !tbaa !13
  %153 = call i32 @position_in_constants_table(ptr noundef %152)
  %154 = load ptr, ptr %4, align 8, !tbaa !5
  %155 = getelementptr inbounds %struct._Fact, ptr %154, i32 0, i32 1
  %156 = load i32, ptr %7, align 4, !tbaa !9
  %157 = sext i32 %156 to i64
  %158 = getelementptr inbounds [5 x i32], ptr %155, i64 0, i64 %157
  store i32 %153, ptr %158, align 4, !tbaa !9
  %159 = icmp eq i32 %153, -1
  br i1 %159, label %160, label %170

160:                                              ; preds = %149
  %161 = load ptr, ptr %9, align 8, !tbaa !5
  %162 = getelementptr inbounds %struct._TokenList, ptr %161, i32 0, i32 0
  %163 = load ptr, ptr %162, align 8, !tbaa !13
  %164 = load ptr, ptr %5, align 8, !tbaa !5
  %165 = getelementptr inbounds %struct._PlNode, ptr %164, i32 0, i32 2
  %166 = load ptr, ptr %165, align 8, !tbaa !11
  %167 = getelementptr inbounds %struct._TokenList, ptr %166, i32 0, i32 0
  %168 = load ptr, ptr %167, align 8, !tbaa !13
  %169 = call i32 (ptr, ...) @printf(ptr noundef @.str.46, ptr noundef %163, ptr noundef %168)
  call void @exit(i32 noundef 1) #6
  unreachable

170:                                              ; preds = %149
  %171 = load ptr, ptr %4, align 8, !tbaa !5
  %172 = getelementptr inbounds %struct._Fact, ptr %171, i32 0, i32 1
  %173 = load i32, ptr %7, align 4, !tbaa !9
  %174 = sext i32 %173 to i64
  %175 = getelementptr inbounds [5 x i32], ptr %172, i64 0, i64 %174
  %176 = load i32, ptr %175, align 4, !tbaa !9
  %177 = sext i32 %176 to i64
  %178 = getelementptr inbounds [2000 x [50 x i8]], ptr @gis_member, i64 0, i64 %177
  %179 = load ptr, ptr %4, align 8, !tbaa !5
  %180 = getelementptr inbounds %struct._Fact, ptr %179, i32 0, i32 0
  %181 = load i32, ptr %180, align 4, !tbaa !15
  %182 = sext i32 %181 to i64
  %183 = getelementptr inbounds [50 x [5 x i32]], ptr @gpredicates_args_type, i64 0, i64 %182
  %184 = load i32, ptr %7, align 4, !tbaa !9
  %185 = sext i32 %184 to i64
  %186 = getelementptr inbounds [5 x i32], ptr %183, i64 0, i64 %185
  %187 = load i32, ptr %186, align 4, !tbaa !9
  %188 = sext i32 %187 to i64
  %189 = getelementptr inbounds [50 x i8], ptr %178, i64 0, i64 %188
  %190 = load i8, ptr %189, align 1, !tbaa !18
  %191 = icmp ne i8 %190, 0
  br i1 %191, label %210, label %192

192:                                              ; preds = %170
  %193 = load ptr, ptr %4, align 8, !tbaa !5
  %194 = getelementptr inbounds %struct._Fact, ptr %193, i32 0, i32 1
  %195 = load i32, ptr %7, align 4, !tbaa !9
  %196 = sext i32 %195 to i64
  %197 = getelementptr inbounds [5 x i32], ptr %194, i64 0, i64 %196
  %198 = load i32, ptr %197, align 4, !tbaa !9
  %199 = sext i32 %198 to i64
  %200 = getelementptr inbounds [2000 x ptr], ptr @gconstants, i64 0, i64 %199
  %201 = load ptr, ptr %200, align 8, !tbaa !5
  %202 = load i32, ptr %7, align 4, !tbaa !9
  %203 = load ptr, ptr %4, align 8, !tbaa !5
  %204 = getelementptr inbounds %struct._Fact, ptr %203, i32 0, i32 0
  %205 = load i32, ptr %204, align 4, !tbaa !15
  %206 = sext i32 %205 to i64
  %207 = getelementptr inbounds [50 x ptr], ptr @gpredicates, i64 0, i64 %206
  %208 = load ptr, ptr %207, align 8, !tbaa !5
  %209 = call i32 (ptr, ...) @printf(ptr noundef @.str.47, ptr noundef %201, i32 noundef %202, ptr noundef %208)
  call void @exit(i32 noundef 1) #6
  unreachable

210:                                              ; preds = %170
  br label %211

211:                                              ; preds = %210, %140
  %212 = load i32, ptr %7, align 4, !tbaa !9
  %213 = add nsw i32 %212, 1
  store i32 %213, ptr %7, align 4, !tbaa !9
  br label %214

214:                                              ; preds = %211
  %215 = load ptr, ptr %9, align 8, !tbaa !5
  %216 = getelementptr inbounds %struct._TokenList, ptr %215, i32 0, i32 1
  %217 = load ptr, ptr %216, align 8, !tbaa !17
  store ptr %217, ptr %9, align 8, !tbaa !5
  br label %42, !llvm.loop !21

218:                                              ; preds = %42
  %219 = load i32, ptr %7, align 4, !tbaa !9
  %220 = load ptr, ptr %4, align 8, !tbaa !5
  %221 = getelementptr inbounds %struct._Fact, ptr %220, i32 0, i32 0
  %222 = load i32, ptr %221, align 4, !tbaa !15
  %223 = sext i32 %222 to i64
  %224 = getelementptr inbounds [50 x i32], ptr @garity, i64 0, i64 %223
  %225 = load i32, ptr %224, align 4, !tbaa !9
  %226 = icmp ne i32 %219, %225
  br i1 %226, label %227, label %242

227:                                              ; preds = %218
  %228 = load ptr, ptr %4, align 8, !tbaa !5
  %229 = getelementptr inbounds %struct._Fact, ptr %228, i32 0, i32 0
  %230 = load i32, ptr %229, align 4, !tbaa !15
  %231 = sext i32 %230 to i64
  %232 = getelementptr inbounds [50 x ptr], ptr @gpredicates, i64 0, i64 %231
  %233 = load ptr, ptr %232, align 8, !tbaa !5
  %234 = load ptr, ptr %4, align 8, !tbaa !5
  %235 = getelementptr inbounds %struct._Fact, ptr %234, i32 0, i32 0
  %236 = load i32, ptr %235, align 4, !tbaa !15
  %237 = sext i32 %236 to i64
  %238 = getelementptr inbounds [50 x i32], ptr @garity, i64 0, i64 %237
  %239 = load i32, ptr %238, align 4, !tbaa !9
  %240 = load i32, ptr %7, align 4, !tbaa !9
  %241 = call i32 (ptr, ...) @printf(ptr noundef @.str.48, ptr noundef %233, i32 noundef %239, i32 noundef %240)
  call void @exit(i32 noundef 1) #6
  unreachable

242:                                              ; preds = %218
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #5
  ret void
}

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

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 willreturn memory(read) "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 willreturn memory(read) }

!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, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !6, i64 16}
!12 = !{!"_PlNode", !10, i64 0, !6, i64 8, !6, i64 16, !10, i64 24, !10, i64 28, !6, i64 32, !6, i64 40, !6, i64 48, !6, i64 56}
!13 = !{!14, !6, i64 0}
!14 = !{!"_TokenList", !6, i64 0, !6, i64 8}
!15 = !{!16, !10, i64 0}
!16 = !{!"_Fact", !10, i64 0, !7, i64 4}
!17 = !{!14, !6, i64 8}
!18 = !{!7, !7, i64 0}
!19 = distinct !{!19, !20}
!20 = !{!"llvm.loop.mustprogress"}
!21 = distinct !{!21, !20}


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

@gconstants = external local_unnamed_addr global [2000 x ptr], align 16
@gpredicates = external local_unnamed_addr global [50 x ptr], align 16
@garity = external local_unnamed_addr global [50 x i32], align 16
@gpredicates_args_type = external local_unnamed_addr global [50 x [5 x i32]], align 16
@gis_member = external local_unnamed_addr global [2000 x [50 x i8]], align 16
@lvar_types = external dso_local local_unnamed_addr global [15 x i32], align 16
@lvar_names = external dso_local local_unnamed_addr global [15 x ptr], align 16
@.str.42 = external hidden unnamed_addr constant [58 x i8], align 1
@.str.43 = external hidden unnamed_addr constant [53 x i8], align 1
@.str.44 = external hidden unnamed_addr constant [59 x i8], align 1
@.str.45 = external hidden unnamed_addr constant [64 x i8], align 1
@.str.46 = external hidden unnamed_addr constant [56 x i8], align 1
@.str.47 = external hidden unnamed_addr constant [65 x i8], align 1
@.str.48 = external hidden unnamed_addr constant [77 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

; Function Attrs: nounwind uwtable
declare dso_local i32 @position_in_constants_table(ptr noundef) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
declare dso_local i32 @position_in_predicates_table(ptr noundef) local_unnamed_addr #2

; Function Attrs: mustprogress nofree nounwind willreturn memory(argmem: read)
declare i32 @strcmp(ptr nocapture noundef, ptr nocapture noundef) local_unnamed_addr #3

; Function Attrs: nounwind uwtable
define dso_local void @make_Fact(ptr nocapture noundef %0, ptr nocapture noundef readonly %1, i32 noundef %2) local_unnamed_addr #2 {
  %4 = getelementptr inbounds i8, ptr %1, i64 16
  %5 = load ptr, ptr %4, align 8, !tbaa !5
  %.not = icmp eq ptr %5, null
  br i1 %.not, label %6, label %8

6:                                                ; preds = %3
  %7 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.42)
  tail call void @exit(i32 noundef 1) #5
  unreachable

8:                                                ; preds = %3
  %9 = load ptr, ptr %5, align 8, !tbaa !11
  %10 = tail call i32 @position_in_predicates_table(ptr noundef %9)
  store i32 %10, ptr %0, align 4, !tbaa !13
  %11 = icmp eq i32 %10, -1
  %12 = load ptr, ptr %4, align 8, !tbaa !5
  br i1 %11, label %13, label %16

13:                                               ; preds = %8
  %14 = load ptr, ptr %12, align 8, !tbaa !11
  %15 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.43, ptr noundef %14)
  tail call void @exit(i32 noundef 1) #5
  unreachable

16:                                               ; preds = %8
  %.0.in81 = getelementptr inbounds i8, ptr %12, i64 8
  %.082 = load ptr, ptr %.0.in81, align 8, !tbaa !15
  %.not5883 = icmp eq ptr %.082, null
  br i1 %.not5883, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %16
  %17 = getelementptr inbounds i8, ptr %0, i64 4
  %18 = zext i32 %2 to i64
  %smin = tail call i32 @llvm.smin.i32(i32 %2, i32 0)
  %19 = add i32 %smin, -1
  br label %20

20:                                               ; preds = %.lr.ph, %86
  %indvars.iv108 = phi i64 [ 0, %.lr.ph ], [ %indvars.iv.next109, %86 ]
  %.086 = phi ptr [ %.082, %.lr.ph ], [ %.0, %86 ]
  %21 = load ptr, ptr %.086, align 8, !tbaa !11
  %22 = load i8, ptr %21, align 1, !tbaa !16
  %23 = icmp eq i8 %22, 63
  br i1 %23, label %.preheader, label %61

.preheader:                                       ; preds = %20, %31
  %indvars.iv = phi i64 [ %indvars.iv.next, %31 ], [ %18, %20 ]
  %indvars.iv.next = add nsw i64 %indvars.iv, -1
  %24 = trunc nuw i64 %indvars.iv to i32
  %25 = icmp sgt i32 %24, 0
  br i1 %25, label %26, label %34

26:                                               ; preds = %.preheader
  %27 = and i64 %indvars.iv.next, 4294967295
  %28 = getelementptr inbounds [15 x ptr], ptr @lvar_names, i64 0, i64 %27
  %29 = load ptr, ptr %28, align 8, !tbaa !17
  %30 = icmp eq ptr %29, %21
  br i1 %30, label %.thread.loopexit, label %31

31:                                               ; preds = %26
  %32 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %29, ptr noundef nonnull dereferenceable(1) %21) #6
  %33 = icmp eq i32 %32, 0
  br i1 %33, label %.thread.loopexit, label %.preheader, !llvm.loop !18

34:                                               ; preds = %.preheader
  %35 = icmp eq i64 %indvars.iv, 0
  br i1 %35, label %36, label %.thread

36:                                               ; preds = %34
  %37 = load ptr, ptr %4, align 8, !tbaa !5
  %38 = load ptr, ptr %37, align 8, !tbaa !11
  %39 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.44, ptr noundef nonnull %21, ptr noundef %38)
  tail call void @exit(i32 noundef 1) #5
  unreachable

.thread.loopexit:                                 ; preds = %26, %31
  %indvars.le = trunc i64 %indvars.iv.next to i32
  br label %.thread

.thread:                                          ; preds = %.thread.loopexit, %34
  %.04988 = phi i32 [ %19, %34 ], [ %indvars.le, %.thread.loopexit ]
  %40 = sext i32 %.04988 to i64
  %41 = getelementptr inbounds [15 x i32], ptr @lvar_types, i64 0, i64 %40
  %42 = load i32, ptr %41, align 4, !tbaa !20
  %43 = load i32, ptr %0, align 4, !tbaa !13
  %44 = sext i32 %43 to i64
  %45 = getelementptr inbounds [50 x [5 x i32]], ptr @gpredicates_args_type, i64 0, i64 %44, i64 %indvars.iv108
  %46 = load i32, ptr %45, align 4, !tbaa !20
  %.not61 = icmp eq i32 %42, %46
  br i1 %.not61, label %58, label %47

47:                                               ; preds = %.thread
  %48 = tail call zeroext i8 @is_subtype(i32 noundef %42, i32 noundef %46)
  %.not62 = icmp eq i8 %48, 0
  br i1 %.not62, label %49, label %58

49:                                               ; preds = %47
  %50 = trunc nuw nsw i64 %indvars.iv108 to i32
  %51 = getelementptr inbounds [15 x ptr], ptr @lvar_names, i64 0, i64 %40
  %52 = load ptr, ptr %51, align 8, !tbaa !17
  %53 = load i32, ptr %0, align 4, !tbaa !13
  %54 = sext i32 %53 to i64
  %55 = getelementptr inbounds [50 x ptr], ptr @gpredicates, i64 0, i64 %54
  %56 = load ptr, ptr %55, align 8, !tbaa !17
  %57 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.45, ptr noundef %52, i32 noundef %50, ptr noundef %56)
  tail call void @exit(i32 noundef 1) #5
  unreachable

58:                                               ; preds = %47, %.thread
  %59 = sub i32 0, %24
  %60 = getelementptr inbounds [5 x i32], ptr %17, i64 0, i64 %indvars.iv108
  store i32 %59, ptr %60, align 4, !tbaa !20
  br label %86

61:                                               ; preds = %20
  %62 = tail call i32 @position_in_constants_table(ptr noundef nonnull %21)
  %63 = getelementptr inbounds [5 x i32], ptr %17, i64 0, i64 %indvars.iv108
  store i32 %62, ptr %63, align 4, !tbaa !20
  %64 = icmp eq i32 %62, -1
  br i1 %64, label %65, label %70

65:                                               ; preds = %61
  %66 = load ptr, ptr %.086, align 8, !tbaa !11
  %67 = load ptr, ptr %4, align 8, !tbaa !5
  %68 = load ptr, ptr %67, align 8, !tbaa !11
  %69 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.46, ptr noundef %66, ptr noundef %68)
  tail call void @exit(i32 noundef 1) #5
  unreachable

70:                                               ; preds = %61
  %71 = sext i32 %62 to i64
  %72 = load i32, ptr %0, align 4, !tbaa !13
  %73 = sext i32 %72 to i64
  %74 = getelementptr inbounds [50 x [5 x i32]], ptr @gpredicates_args_type, i64 0, i64 %73, i64 %indvars.iv108
  %75 = load i32, ptr %74, align 4, !tbaa !20
  %76 = sext i32 %75 to i64
  %77 = getelementptr inbounds [2000 x [50 x i8]], ptr @gis_member, i64 0, i64 %71, i64 %76
  %78 = load i8, ptr %77, align 1, !tbaa !16
  %.not60 = icmp eq i8 %78, 0
  br i1 %.not60, label %79, label %86

79:                                               ; preds = %70
  %80 = trunc nuw nsw i64 %indvars.iv108 to i32
  %81 = getelementptr inbounds [2000 x ptr], ptr @gconstants, i64 0, i64 %71
  %82 = load ptr, ptr %81, align 8, !tbaa !17
  %83 = getelementptr inbounds [50 x ptr], ptr @gpredicates, i64 0, i64 %73
  %84 = load ptr, ptr %83, align 8, !tbaa !17
  %85 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.47, ptr noundef %82, i32 noundef %80, ptr noundef %84)
  tail call void @exit(i32 noundef 1) #5
  unreachable

86:                                               ; preds = %70, %58
  %indvars.iv.next109 = add nuw nsw i64 %indvars.iv108, 1
  %.0.in = getelementptr inbounds i8, ptr %.086, i64 8
  %.0 = load ptr, ptr %.0.in, align 8, !tbaa !15
  %.not58 = icmp eq ptr %.0, null
  br i1 %.not58, label %._crit_edge.loopexit, label %20, !llvm.loop !21

._crit_edge.loopexit:                             ; preds = %86
  %87 = trunc nuw i64 %indvars.iv.next109 to i32
  %.pre = load i32, ptr %0, align 4, !tbaa !13
  br label %._crit_edge

._crit_edge:                                      ; preds = %._crit_edge.loopexit, %16
  %88 = phi i32 [ %10, %16 ], [ %.pre, %._crit_edge.loopexit ]
  %.050.lcssa = phi i32 [ 0, %16 ], [ %87, %._crit_edge.loopexit ]
  %89 = sext i32 %88 to i64
  %90 = getelementptr inbounds [50 x i32], ptr @garity, i64 0, i64 %89
  %91 = load i32, ptr %90, align 4, !tbaa !20
  %.not59 = icmp eq i32 %.050.lcssa, %91
  br i1 %.not59, label %96, label %92

92:                                               ; preds = %._crit_edge
  %93 = getelementptr inbounds [50 x ptr], ptr @gpredicates, i64 0, i64 %89
  %94 = load ptr, ptr %93, align 8, !tbaa !17
  %95 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.48, ptr noundef %94, i32 noundef %91, i32 noundef %.050.lcssa)
  tail call void @exit(i32 noundef 1) #5
  unreachable

96:                                               ; preds = %._crit_edge
  ret void
}

; Function Attrs: nounwind uwtable
declare dso_local zeroext i8 @is_subtype(i32 noundef, i32 noundef) local_unnamed_addr #2

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

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

!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, !10, i64 16}
!6 = !{!"_PlNode", !7, i64 0, !10, i64 8, !10, i64 16, !7, i64 24, !7, i64 28, !10, i64 32, !10, i64 40, !10, i64 48, !10, i64 56}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"any pointer", !8, i64 0}
!11 = !{!12, !10, i64 0}
!12 = !{!"_TokenList", !10, i64 0, !10, i64 8}
!13 = !{!14, !7, i64 0}
!14 = !{!"_Fact", !7, i64 0, !8, i64 4}
!15 = !{!12, !10, i64 8}
!16 = !{!8, !8, i64 0}
!17 = !{!10, !10, i64 0}
!18 = distinct !{!18, !19}
!19 = !{!"llvm.loop.mustprogress"}
!20 = !{!7, !7, i64 0}
!21 = distinct !{!21, !19}


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