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

; 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._Operator = type { ptr, [15 x ptr], i32, i8, i32, [15 x i32], [15 x i8], ptr, ptr, i8 }
%struct._Effect = type { i32, [15 x i32], [15 x ptr], ptr, ptr, ptr, ptr, ptr }
%struct._Literal = type { i8, %struct._Fact, ptr, ptr }
%struct._Fact = type { i32, [5 x i32] }
%struct._NumericEffect = type { %struct._Fluent, i32, ptr, ptr, ptr }
%struct._Fluent = type { i32, [5 x i32] }

@.str.40 = external hidden unnamed_addr constant [2 x i8], align 1
@gtype_names = external global [50 x ptr], align 16
@.str.59 = external hidden unnamed_addr constant [80 x i8], align 1
@.str.60 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.61 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.62 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.63 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.64 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.65 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.66 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.67 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.68 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.69 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.70 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.71 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.72 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.73 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.74 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.75 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.76 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.77 = external hidden unnamed_addr constant [34 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 void @print_ExpNode(ptr noundef) #3

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

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

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

; Function Attrs: nounwind uwtable
define dso_local void @print_Operator(ptr noundef %0) #3 {
  %2 = alloca ptr, align 8
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  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
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #4
  store i32 0, ptr %7, align 4, !tbaa !9
  %8 = load ptr, ptr %2, align 8, !tbaa !5
  %9 = getelementptr inbounds %struct._Operator, ptr %8, i32 0, i32 0
  %10 = load ptr, ptr %9, align 8, !tbaa !11
  %11 = load ptr, ptr %2, align 8, !tbaa !5
  %12 = getelementptr inbounds %struct._Operator, ptr %11, i32 0, i32 3
  %13 = load i8, ptr %12, align 4, !tbaa !13
  %14 = zext i8 %13 to i32
  %15 = call i32 (ptr, ...) @printf(ptr noundef @.str.59, ptr noundef %10, i32 noundef %14)
  store i32 0, ptr %6, align 4, !tbaa !9
  br label %16

16:                                               ; preds = %50, %1
  %17 = load i32, ptr %6, align 4, !tbaa !9
  %18 = load ptr, ptr %2, align 8, !tbaa !5
  %19 = getelementptr inbounds %struct._Operator, ptr %18, i32 0, i32 4
  %20 = load i32, ptr %19, align 8, !tbaa !14
  %21 = icmp slt i32 %17, %20
  br i1 %21, label %22, label %53

22:                                               ; preds = %16
  %23 = load i32, ptr %6, align 4, !tbaa !9
  %24 = load ptr, ptr %2, align 8, !tbaa !5
  %25 = getelementptr inbounds %struct._Operator, ptr %24, i32 0, i32 1
  %26 = load i32, ptr %6, align 4, !tbaa !9
  %27 = sext i32 %26 to i64
  %28 = getelementptr inbounds [15 x ptr], ptr %25, i64 0, i64 %27
  %29 = load ptr, ptr %28, align 8, !tbaa !5
  %30 = load ptr, ptr %2, align 8, !tbaa !5
  %31 = getelementptr inbounds %struct._Operator, ptr %30, i32 0, i32 5
  %32 = load i32, ptr %6, align 4, !tbaa !9
  %33 = sext i32 %32 to i64
  %34 = getelementptr inbounds [15 x i32], ptr %31, i64 0, i64 %33
  %35 = load i32, ptr %34, align 4, !tbaa !9
  %36 = sext i32 %35 to i64
  %37 = getelementptr inbounds [50 x ptr], ptr @gtype_names, i64 0, i64 %36
  %38 = load ptr, ptr %37, align 8, !tbaa !5
  %39 = load ptr, ptr %2, align 8, !tbaa !5
  %40 = getelementptr inbounds %struct._Operator, ptr %39, i32 0, i32 6
  %41 = load i32, ptr %6, align 4, !tbaa !9
  %42 = sext i32 %41 to i64
  %43 = getelementptr inbounds [15 x i8], ptr %40, i64 0, i64 %42
  %44 = load i8, ptr %43, align 1, !tbaa !15
  %45 = zext i8 %44 to i32
  %46 = icmp ne i32 %45, 0
  %47 = zext i1 %46 to i64
  %48 = select i1 %46, ptr @.str.61, ptr @.str.62
  %49 = call i32 (ptr, ...) @printf(ptr noundef @.str.60, i32 noundef %23, ptr noundef %29, ptr noundef %38, ptr noundef %48)
  br label %50

50:                                               ; preds = %22
  %51 = load i32, ptr %6, align 4, !tbaa !9
  %52 = add nsw i32 %51, 1
  store i32 %52, ptr %6, align 4, !tbaa !9
  br label %16, !llvm.loop !16

53:                                               ; preds = %16
  %54 = load ptr, ptr %2, align 8, !tbaa !5
  %55 = getelementptr inbounds %struct._Operator, ptr %54, i32 0, i32 4
  %56 = load i32, ptr %55, align 8, !tbaa !14
  %57 = load ptr, ptr %2, align 8, !tbaa !5
  %58 = getelementptr inbounds %struct._Operator, ptr %57, i32 0, i32 2
  %59 = load i32, ptr %58, align 8, !tbaa !18
  %60 = call i32 (ptr, ...) @printf(ptr noundef @.str.63, i32 noundef %56, i32 noundef %59)
  %61 = call i32 (ptr, ...) @printf(ptr noundef @.str.64)
  %62 = load ptr, ptr %2, align 8, !tbaa !5
  %63 = getelementptr inbounds %struct._Operator, ptr %62, i32 0, i32 7
  %64 = load ptr, ptr %63, align 8, !tbaa !19
  call void @print_Wff(ptr noundef %64, i32 noundef 0)
  %65 = call i32 (ptr, ...) @printf(ptr noundef @.str.65)
  %66 = load ptr, ptr %2, align 8, !tbaa !5
  %67 = getelementptr inbounds %struct._Operator, ptr %66, i32 0, i32 8
  %68 = load ptr, ptr %67, align 8, !tbaa !20
  store ptr %68, ptr %3, align 8, !tbaa !5
  br label %69

69:                                               ; preds = %176, %53
  %70 = load ptr, ptr %3, align 8, !tbaa !5
  %71 = icmp ne ptr %70, null
  br i1 %71, label %72, label %180

72:                                               ; preds = %69
  %73 = load i32, ptr %7, align 4, !tbaa !9
  %74 = add nsw i32 %73, 1
  store i32 %74, ptr %7, align 4, !tbaa !9
  %75 = load ptr, ptr %3, align 8, !tbaa !5
  %76 = getelementptr inbounds %struct._Effect, ptr %75, i32 0, i32 0
  %77 = load i32, ptr %76, align 8, !tbaa !21
  %78 = call i32 (ptr, ...) @printf(ptr noundef @.str.66, i32 noundef %73, i32 noundef %77)
  store i32 0, ptr %6, align 4, !tbaa !9
  br label %79

79:                                               ; preds = %107, %72
  %80 = load i32, ptr %6, align 4, !tbaa !9
  %81 = load ptr, ptr %3, align 8, !tbaa !5
  %82 = getelementptr inbounds %struct._Effect, ptr %81, i32 0, i32 0
  %83 = load i32, ptr %82, align 8, !tbaa !21
  %84 = icmp slt i32 %80, %83
  br i1 %84, label %85, label %110

85:                                               ; preds = %79
  %86 = load ptr, ptr %2, align 8, !tbaa !5
  %87 = getelementptr inbounds %struct._Operator, ptr %86, i32 0, i32 4
  %88 = load i32, ptr %87, align 8, !tbaa !14
  %89 = load i32, ptr %6, align 4, !tbaa !9
  %90 = add nsw i32 %88, %89
  %91 = load ptr, ptr %3, align 8, !tbaa !5
  %92 = getelementptr inbounds %struct._Effect, ptr %91, i32 0, i32 2
  %93 = load i32, ptr %6, align 4, !tbaa !9
  %94 = sext i32 %93 to i64
  %95 = getelementptr inbounds [15 x ptr], ptr %92, i64 0, i64 %94
  %96 = load ptr, ptr %95, align 8, !tbaa !5
  %97 = load ptr, ptr %3, align 8, !tbaa !5
  %98 = getelementptr inbounds %struct._Effect, ptr %97, i32 0, i32 1
  %99 = load i32, ptr %6, align 4, !tbaa !9
  %100 = sext i32 %99 to i64
  %101 = getelementptr inbounds [15 x i32], ptr %98, i64 0, i64 %100
  %102 = load i32, ptr %101, align 4, !tbaa !9
  %103 = sext i32 %102 to i64
  %104 = getelementptr inbounds [50 x ptr], ptr @gtype_names, i64 0, i64 %103
  %105 = load ptr, ptr %104, align 8, !tbaa !5
  %106 = call i32 (ptr, ...) @printf(ptr noundef @.str.67, i32 noundef %90, ptr noundef %96, ptr noundef %105)
  br label %107

107:                                              ; preds = %85
  %108 = load i32, ptr %6, align 4, !tbaa !9
  %109 = add nsw i32 %108, 1
  store i32 %109, ptr %6, align 4, !tbaa !9
  br label %79, !llvm.loop !23

110:                                              ; preds = %79
  %111 = call i32 (ptr, ...) @printf(ptr noundef @.str.68)
  %112 = load ptr, ptr %3, align 8, !tbaa !5
  %113 = getelementptr inbounds %struct._Effect, ptr %112, i32 0, i32 3
  %114 = load ptr, ptr %113, align 8, !tbaa !24
  call void @print_Wff(ptr noundef %114, i32 noundef 0)
  %115 = call i32 (ptr, ...) @printf(ptr noundef @.str.69)
  %116 = load ptr, ptr %3, align 8, !tbaa !5
  %117 = getelementptr inbounds %struct._Effect, ptr %116, i32 0, i32 4
  %118 = load ptr, ptr %117, align 8, !tbaa !25
  store ptr %118, ptr %4, align 8, !tbaa !5
  br label %119

119:                                              ; preds = %134, %110
  %120 = load ptr, ptr %4, align 8, !tbaa !5
  %121 = icmp ne ptr %120, null
  br i1 %121, label %122, label %138

122:                                              ; preds = %119
  %123 = load ptr, ptr %4, align 8, !tbaa !5
  %124 = getelementptr inbounds %struct._Literal, ptr %123, i32 0, i32 0
  %125 = load i8, ptr %124, align 8, !tbaa !26
  %126 = icmp ne i8 %125, 0
  br i1 %126, label %127, label %129

127:                                              ; preds = %122
  %128 = call i32 (ptr, ...) @printf(ptr noundef @.str.70)
  br label %131

129:                                              ; preds = %122
  %130 = call i32 (ptr, ...) @printf(ptr noundef @.str.40)
  br label %131

131:                                              ; preds = %129, %127
  %132 = load ptr, ptr %4, align 8, !tbaa !5
  %133 = getelementptr inbounds %struct._Literal, ptr %132, i32 0, i32 1
  call void @print_Fact(ptr noundef %133)
  br label %134

134:                                              ; preds = %131
  %135 = load ptr, ptr %4, align 8, !tbaa !5
  %136 = getelementptr inbounds %struct._Literal, ptr %135, i32 0, i32 2
  %137 = load ptr, ptr %136, align 8, !tbaa !29
  store ptr %137, ptr %4, align 8, !tbaa !5
  br label %119, !llvm.loop !30

138:                                              ; preds = %119
  %139 = call i32 (ptr, ...) @printf(ptr noundef @.str.71)
  %140 = load ptr, ptr %3, align 8, !tbaa !5
  %141 = getelementptr inbounds %struct._Effect, ptr %140, i32 0, i32 5
  %142 = load ptr, ptr %141, align 8, !tbaa !31
  store ptr %142, ptr %5, align 8, !tbaa !5
  br label %143

143:                                              ; preds = %171, %138
  %144 = load ptr, ptr %5, align 8, !tbaa !5
  %145 = icmp ne ptr %144, null
  br i1 %145, label %146, label %175

146:                                              ; preds = %143
  %147 = load ptr, ptr %5, align 8, !tbaa !5
  %148 = getelementptr inbounds %struct._NumericEffect, ptr %147, i32 0, i32 1
  %149 = load i32, ptr %148, align 8, !tbaa !32
  switch i32 %149, label %160 [
    i32 4000, label %150
    i32 4001, label %152
    i32 4002, label %154
    i32 4003, label %156
    i32 4004, label %158
  ]

150:                                              ; preds = %146
  %151 = call i32 (ptr, ...) @printf(ptr noundef @.str.72)
  br label %165

152:                                              ; preds = %146
  %153 = call i32 (ptr, ...) @printf(ptr noundef @.str.73)
  br label %165

154:                                              ; preds = %146
  %155 = call i32 (ptr, ...) @printf(ptr noundef @.str.74)
  br label %165

156:                                              ; preds = %146
  %157 = call i32 (ptr, ...) @printf(ptr noundef @.str.75)
  br label %165

158:                                              ; preds = %146
  %159 = call i32 (ptr, ...) @printf(ptr noundef @.str.76)
  br label %165

160:                                              ; preds = %146
  %161 = load ptr, ptr %5, align 8, !tbaa !5
  %162 = getelementptr inbounds %struct._NumericEffect, ptr %161, i32 0, i32 1
  %163 = load i32, ptr %162, align 8, !tbaa !32
  %164 = call i32 (ptr, ...) @printf(ptr noundef @.str.77, i32 noundef %163)
  call void @exit(i32 noundef 1) #5
  unreachable

165:                                              ; preds = %158, %156, %154, %152, %150
  %166 = load ptr, ptr %5, align 8, !tbaa !5
  %167 = getelementptr inbounds %struct._NumericEffect, ptr %166, i32 0, i32 0
  call void @print_Fluent(ptr noundef %167)
  %168 = load ptr, ptr %5, align 8, !tbaa !5
  %169 = getelementptr inbounds %struct._NumericEffect, ptr %168, i32 0, i32 2
  %170 = load ptr, ptr %169, align 8, !tbaa !35
  call void @print_ExpNode(ptr noundef %170)
  br label %171

171:                                              ; preds = %165
  %172 = load ptr, ptr %5, align 8, !tbaa !5
  %173 = getelementptr inbounds %struct._NumericEffect, ptr %172, i32 0, i32 3
  %174 = load ptr, ptr %173, align 8, !tbaa !36
  store ptr %174, ptr %5, align 8, !tbaa !5
  br label %143, !llvm.loop !37

175:                                              ; preds = %143
  br label %176

176:                                              ; preds = %175
  %177 = load ptr, ptr %3, align 8, !tbaa !5
  %178 = getelementptr inbounds %struct._Effect, ptr %177, i32 0, i32 6
  %179 = load ptr, ptr %178, align 8, !tbaa !38
  store ptr %179, ptr %3, align 8, !tbaa !5
  br label %69, !llvm.loop !39

180:                                              ; preds = %69
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #4
  ret void
}

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 }
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, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !6, i64 0}
!12 = !{!"_Operator", !6, i64 0, !7, i64 8, !10, i64 128, !7, i64 132, !10, i64 136, !7, i64 140, !7, i64 200, !6, i64 216, !6, i64 224, !7, i64 232}
!13 = !{!12, !7, i64 132}
!14 = !{!12, !10, i64 136}
!15 = !{!7, !7, i64 0}
!16 = distinct !{!16, !17}
!17 = !{!"llvm.loop.mustprogress"}
!18 = !{!12, !10, i64 128}
!19 = !{!12, !6, i64 216}
!20 = !{!12, !6, i64 224}
!21 = !{!22, !10, i64 0}
!22 = !{!"_Effect", !10, i64 0, !7, i64 4, !7, i64 64, !6, i64 184, !6, i64 192, !6, i64 200, !6, i64 208, !6, i64 216}
!23 = distinct !{!23, !17}
!24 = !{!22, !6, i64 184}
!25 = !{!22, !6, i64 192}
!26 = !{!27, !7, i64 0}
!27 = !{!"_Literal", !7, i64 0, !28, i64 4, !6, i64 32, !6, i64 40}
!28 = !{!"_Fact", !10, i64 0, !7, i64 4}
!29 = !{!27, !6, i64 32}
!30 = distinct !{!30, !17}
!31 = !{!22, !6, i64 200}
!32 = !{!33, !10, i64 24}
!33 = !{!"_NumericEffect", !34, i64 0, !10, i64 24, !6, i64 32, !6, i64 40, !6, i64 48}
!34 = !{!"_Fluent", !10, i64 0, !7, i64 4}
!35 = !{!33, !6, i64 32}
!36 = !{!33, !6, i64 40}
!37 = distinct !{!37, !17}
!38 = !{!22, !6, i64 208}
!39 = distinct !{!39, !17}


; 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.40 = external hidden unnamed_addr constant [2 x i8], align 1
@gtype_names = external local_unnamed_addr global [50 x ptr], align 16
@.str.59 = external hidden unnamed_addr constant [80 x i8], align 1
@.str.60 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.61 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.62 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.63 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.64 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.65 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.66 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.67 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.68 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.69 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.70 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.71 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.72 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.73 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.74 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.75 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.76 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.77 = external hidden unnamed_addr constant [34 x i8], align 1
@switch.table.print_Operator = private unnamed_addr constant [5 x ptr] [ptr @.str.72, ptr @.str.73, ptr @.str.74, ptr @.str.75, ptr @.str.76], align 8

; 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 void @print_ExpNode(ptr noundef) local_unnamed_addr #2

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

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

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

; Function Attrs: nounwind uwtable
define dso_local void @print_Operator(ptr nocapture noundef readonly %0) local_unnamed_addr #2 {
  %2 = load ptr, ptr %0, align 8, !tbaa !5
  %3 = getelementptr inbounds i8, ptr %0, i64 132
  %4 = load i8, ptr %3, align 4, !tbaa !11
  %5 = zext i8 %4 to i32
  %6 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.59, ptr noundef %2, i32 noundef %5)
  %7 = getelementptr inbounds i8, ptr %0, i64 136
  %8 = load i32, ptr %7, align 8, !tbaa !12
  %9 = icmp sgt i32 %8, 0
  br i1 %9, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %1
  %10 = getelementptr inbounds i8, ptr %0, i64 8
  %11 = getelementptr inbounds i8, ptr %0, i64 140
  %12 = getelementptr inbounds i8, ptr %0, i64 200
  br label %13

13:                                               ; preds = %.lr.ph, %13
  %indvars.iv = phi i64 [ 0, %.lr.ph ], [ %indvars.iv.next, %13 ]
  %14 = getelementptr inbounds [15 x ptr], ptr %10, i64 0, i64 %indvars.iv
  %15 = load ptr, ptr %14, align 8, !tbaa !13
  %16 = getelementptr inbounds [15 x i32], ptr %11, i64 0, i64 %indvars.iv
  %17 = load i32, ptr %16, align 4, !tbaa !14
  %18 = sext i32 %17 to i64
  %19 = getelementptr inbounds [50 x ptr], ptr @gtype_names, i64 0, i64 %18
  %20 = load ptr, ptr %19, align 8, !tbaa !13
  %21 = getelementptr inbounds [15 x i8], ptr %12, i64 0, i64 %indvars.iv
  %22 = load i8, ptr %21, align 1, !tbaa !15
  %.not49 = icmp eq i8 %22, 0
  %23 = select i1 %.not49, ptr @.str.62, ptr @.str.61
  %24 = trunc nuw nsw i64 %indvars.iv to i32
  %25 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.60, i32 noundef %24, ptr noundef %15, ptr noundef %20, ptr noundef nonnull %23)
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %26 = load i32, ptr %7, align 8, !tbaa !12
  %27 = sext i32 %26 to i64
  %28 = icmp slt i64 %indvars.iv.next, %27
  br i1 %28, label %13, label %._crit_edge, !llvm.loop !16

._crit_edge:                                      ; preds = %13, %1
  %.lcssa50 = phi i32 [ %8, %1 ], [ %26, %13 ]
  %29 = getelementptr inbounds i8, ptr %0, i64 128
  %30 = load i32, ptr %29, align 8, !tbaa !18
  %31 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.63, i32 noundef %.lcssa50, i32 noundef %30)
  %32 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.64)
  %33 = getelementptr inbounds i8, ptr %0, i64 216
  %34 = load ptr, ptr %33, align 8, !tbaa !19
  tail call void @print_Wff(ptr noundef %34, i32 noundef 0)
  %35 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.65)
  %36 = getelementptr inbounds i8, ptr %0, i64 224
  %.04469 = load ptr, ptr %36, align 8, !tbaa !13
  %.not70 = icmp eq ptr %.04469, null
  br i1 %.not70, label %._crit_edge75, label %.lr.ph74

.lr.ph74:                                         ; preds = %._crit_edge, %._crit_edge68
  %.04472 = phi ptr [ %.044, %._crit_edge68 ], [ %.04469, %._crit_edge ]
  %.071 = phi i32 [ %37, %._crit_edge68 ], [ 0, %._crit_edge ]
  %37 = add nuw nsw i32 %.071, 1
  %38 = load i32, ptr %.04472, align 8, !tbaa !20
  %39 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.66, i32 noundef %.071, i32 noundef %38)
  %40 = load i32, ptr %.04472, align 8, !tbaa !20
  %41 = icmp sgt i32 %40, 0
  br i1 %41, label %.lr.ph55, label %._crit_edge56

.lr.ph55:                                         ; preds = %.lr.ph74
  %42 = getelementptr inbounds i8, ptr %.04472, i64 64
  %43 = getelementptr inbounds i8, ptr %.04472, i64 4
  br label %44

44:                                               ; preds = %.lr.ph55, %44
  %indvars.iv79 = phi i64 [ 0, %.lr.ph55 ], [ %indvars.iv.next80, %44 ]
  %45 = load i32, ptr %7, align 8, !tbaa !12
  %46 = trunc nuw nsw i64 %indvars.iv79 to i32
  %47 = add nsw i32 %45, %46
  %48 = getelementptr inbounds [15 x ptr], ptr %42, i64 0, i64 %indvars.iv79
  %49 = load ptr, ptr %48, align 8, !tbaa !13
  %50 = getelementptr inbounds [15 x i32], ptr %43, i64 0, i64 %indvars.iv79
  %51 = load i32, ptr %50, align 4, !tbaa !14
  %52 = sext i32 %51 to i64
  %53 = getelementptr inbounds [50 x ptr], ptr @gtype_names, i64 0, i64 %52
  %54 = load ptr, ptr %53, align 8, !tbaa !13
  %55 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.67, i32 noundef %47, ptr noundef %49, ptr noundef %54)
  %indvars.iv.next80 = add nuw nsw i64 %indvars.iv79, 1
  %56 = load i32, ptr %.04472, align 8, !tbaa !20
  %57 = sext i32 %56 to i64
  %58 = icmp slt i64 %indvars.iv.next80, %57
  br i1 %58, label %44, label %._crit_edge56, !llvm.loop !22

._crit_edge56:                                    ; preds = %44, %.lr.ph74
  %59 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.68)
  %60 = getelementptr inbounds i8, ptr %.04472, i64 184
  %61 = load ptr, ptr %60, align 8, !tbaa !23
  tail call void @print_Wff(ptr noundef %61, i32 noundef 0)
  %62 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.69)
  %63 = getelementptr inbounds i8, ptr %.04472, i64 192
  %.04357 = load ptr, ptr %63, align 8, !tbaa !13
  %.not4658 = icmp eq ptr %.04357, null
  br i1 %.not4658, label %._crit_edge62, label %.lr.ph61

.lr.ph61:                                         ; preds = %._crit_edge56, %.lr.ph61
  %.04359 = phi ptr [ %.043, %.lr.ph61 ], [ %.04357, %._crit_edge56 ]
  %64 = load i8, ptr %.04359, align 8, !tbaa !24
  %.not48 = icmp eq i8 %64, 0
  %.str.40..str.70 = select i1 %.not48, ptr @.str.40, ptr @.str.70
  %65 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) %.str.40..str.70)
  %66 = getelementptr inbounds i8, ptr %.04359, i64 4
  tail call void @print_Fact(ptr noundef nonnull %66)
  %67 = getelementptr inbounds i8, ptr %.04359, i64 32
  %.043 = load ptr, ptr %67, align 8, !tbaa !13
  %.not46 = icmp eq ptr %.043, null
  br i1 %.not46, label %._crit_edge62, label %.lr.ph61, !llvm.loop !27

._crit_edge62:                                    ; preds = %.lr.ph61, %._crit_edge56
  %68 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.71)
  %69 = getelementptr inbounds i8, ptr %.04472, i64 200
  %.04263 = load ptr, ptr %69, align 8, !tbaa !13
  %.not4764 = icmp eq ptr %.04263, null
  br i1 %.not4764, label %._crit_edge68, label %.lr.ph67

.lr.ph67:                                         ; preds = %._crit_edge62, %switch.lookup
  %.04265 = phi ptr [ %.042, %switch.lookup ], [ %.04263, %._crit_edge62 ]
  %70 = getelementptr inbounds i8, ptr %.04265, i64 24
  %71 = load i32, ptr %70, align 8, !tbaa !28
  %switch.tableidx = add i32 %71, -4000
  %72 = icmp ult i32 %switch.tableidx, 5
  br i1 %72, label %switch.lookup, label %73

73:                                               ; preds = %.lr.ph67
  %74 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.77, i32 noundef %71)
  tail call void @exit(i32 noundef 1) #3
  unreachable

switch.lookup:                                    ; preds = %.lr.ph67
  %75 = zext nneg i32 %switch.tableidx to i64
  %switch.gep = getelementptr inbounds [5 x ptr], ptr @switch.table.print_Operator, i64 0, i64 %75
  %switch.load = load ptr, ptr %switch.gep, align 8
  %76 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) %switch.load)
  tail call void @print_Fluent(ptr noundef nonnull %.04265)
  %77 = getelementptr inbounds i8, ptr %.04265, i64 32
  %78 = load ptr, ptr %77, align 8, !tbaa !31
  tail call void @print_ExpNode(ptr noundef %78)
  %79 = getelementptr inbounds i8, ptr %.04265, i64 40
  %.042 = load ptr, ptr %79, align 8, !tbaa !13
  %.not47 = icmp eq ptr %.042, null
  br i1 %.not47, label %._crit_edge68, label %.lr.ph67, !llvm.loop !32

._crit_edge68:                                    ; preds = %switch.lookup, %._crit_edge62
  %80 = getelementptr inbounds i8, ptr %.04472, i64 208
  %.044 = load ptr, ptr %80, align 8, !tbaa !13
  %.not = icmp eq ptr %.044, null
  br i1 %.not, label %._crit_edge75, label %.lr.ph74, !llvm.loop !33

._crit_edge75:                                    ; preds = %._crit_edge68, %._crit_edge
  ret void
}

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 = { 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, !7, i64 0}
!6 = !{!"_Operator", !7, i64 0, !8, i64 8, !10, i64 128, !8, i64 132, !10, i64 136, !8, i64 140, !8, i64 200, !7, i64 216, !7, i64 224, !8, i64 232}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"int", !8, i64 0}
!11 = !{!6, !8, i64 132}
!12 = !{!6, !10, i64 136}
!13 = !{!7, !7, i64 0}
!14 = !{!10, !10, i64 0}
!15 = !{!8, !8, i64 0}
!16 = distinct !{!16, !17}
!17 = !{!"llvm.loop.mustprogress"}
!18 = !{!6, !10, i64 128}
!19 = !{!6, !7, i64 216}
!20 = !{!21, !10, i64 0}
!21 = !{!"_Effect", !10, i64 0, !8, i64 4, !8, i64 64, !7, i64 184, !7, i64 192, !7, i64 200, !7, i64 208, !7, i64 216}
!22 = distinct !{!22, !17}
!23 = !{!21, !7, i64 184}
!24 = !{!25, !8, i64 0}
!25 = !{!"_Literal", !8, i64 0, !26, i64 4, !7, i64 32, !7, i64 40}
!26 = !{!"_Fact", !10, i64 0, !8, i64 4}
!27 = distinct !{!27, !17}
!28 = !{!29, !10, i64 24}
!29 = !{!"_NumericEffect", !30, i64 0, !10, i64 24, !7, i64 32, !7, i64 40, !7, i64 48}
!30 = !{!"_Fluent", !10, i64 0, !8, i64 4}
!31 = !{!29, !7, i64 32}
!32 = distinct !{!32, !17}
!33 = distinct !{!33, !17}


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