; 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._LnfExpNode = type { [25 x i32], [25 x float], i32, [25 x i32], [25 x float], i32, float }
%struct._Action = type { ptr, ptr, i8, ptr, i32, [15 x i32], [15 x i32], ptr, i32, ptr, ptr, ptr, i32, ptr, ptr, ptr, i32, ptr, i32, ptr }
%struct._ActionEffect = type { ptr, i32, ptr, i32, ptr, i32, ptr, ptr, ptr, i32, ptr, ptr, ptr, i32, ptr, ptr, ptr, i32, ptr, ptr, ptr, i32, i8, i8, float }

@gactions = external global ptr, align 8
@gnum_lnf_goal = external global i32, align 4
@glnf_goal_lh = external global ptr, align 8
@gnum_relevant_fluents = external global i32, align 4

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

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

; Function Attrs: nounwind uwtable
define dso_local void @replace_non_minimal_lnf_with_artificial_fl() #1 {
  %1 = alloca ptr, align 8
  %2 = alloca ptr, align 8
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  call void @llvm.lifetime.start.p0(i64 8, ptr %1) #2
  call void @llvm.lifetime.start.p0(i64 8, ptr %2) #2
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #2
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #2
  store i32 0, ptr %3, align 4, !tbaa !5
  br label %5

5:                                                ; preds = %41, %0
  %6 = load i32, ptr %3, align 4, !tbaa !5
  %7 = load i32, ptr @gnum_lnf_goal, align 4, !tbaa !5
  %8 = icmp slt i32 %6, %7
  br i1 %8, label %9, label %44

9:                                                ; preds = %5
  %10 = load ptr, ptr @glnf_goal_lh, align 8, !tbaa !9
  %11 = load i32, ptr %3, align 4, !tbaa !5
  %12 = sext i32 %11 to i64
  %13 = getelementptr inbounds ptr, ptr %10, i64 %12
  %14 = load ptr, ptr %13, align 8, !tbaa !9
  %15 = call zeroext i8 @is_artificial_fluent(ptr noundef %14)
  %16 = icmp ne i8 %15, 0
  br i1 %16, label %18, label %17

17:                                               ; preds = %9
  br label %41

18:                                               ; preds = %9
  %19 = load i32, ptr @gnum_relevant_fluents, align 4, !tbaa !5
  %20 = sub nsw i32 %19, 1
  %21 = load ptr, ptr @glnf_goal_lh, align 8, !tbaa !9
  %22 = load i32, ptr %3, align 4, !tbaa !5
  %23 = sext i32 %22 to i64
  %24 = getelementptr inbounds ptr, ptr %21, i64 %23
  %25 = load ptr, ptr %24, align 8, !tbaa !9
  %26 = getelementptr inbounds %struct._LnfExpNode, ptr %25, i32 0, i32 0
  %27 = getelementptr inbounds [25 x i32], ptr %26, i64 0, i64 0
  store i32 %20, ptr %27, align 4, !tbaa !5
  %28 = load ptr, ptr @glnf_goal_lh, align 8, !tbaa !9
  %29 = load i32, ptr %3, align 4, !tbaa !5
  %30 = sext i32 %29 to i64
  %31 = getelementptr inbounds ptr, ptr %28, i64 %30
  %32 = load ptr, ptr %31, align 8, !tbaa !9
  %33 = getelementptr inbounds %struct._LnfExpNode, ptr %32, i32 0, i32 1
  %34 = getelementptr inbounds [25 x float], ptr %33, i64 0, i64 0
  store float 1.000000e+00, ptr %34, align 4, !tbaa !11
  %35 = load ptr, ptr @glnf_goal_lh, align 8, !tbaa !9
  %36 = load i32, ptr %3, align 4, !tbaa !5
  %37 = sext i32 %36 to i64
  %38 = getelementptr inbounds ptr, ptr %35, i64 %37
  %39 = load ptr, ptr %38, align 8, !tbaa !9
  %40 = getelementptr inbounds %struct._LnfExpNode, ptr %39, i32 0, i32 2
  store i32 1, ptr %40, align 4, !tbaa !13
  br label %41

41:                                               ; preds = %18, %17
  %42 = load i32, ptr %3, align 4, !tbaa !5
  %43 = add nsw i32 %42, 1
  store i32 %43, ptr %3, align 4, !tbaa !5
  br label %5, !llvm.loop !15

44:                                               ; preds = %5
  %45 = load ptr, ptr @gactions, align 8, !tbaa !9
  store ptr %45, ptr %1, align 8, !tbaa !9
  br label %46

46:                                               ; preds = %229, %44
  %47 = load ptr, ptr %1, align 8, !tbaa !9
  %48 = icmp ne ptr %47, null
  br i1 %48, label %49, label %233

49:                                               ; preds = %46
  store i32 0, ptr %3, align 4, !tbaa !5
  br label %50

50:                                               ; preds = %96, %49
  %51 = load i32, ptr %3, align 4, !tbaa !5
  %52 = load ptr, ptr %1, align 8, !tbaa !9
  %53 = getelementptr inbounds %struct._Action, ptr %52, i32 0, i32 16
  %54 = load i32, ptr %53, align 8, !tbaa !17
  %55 = icmp slt i32 %51, %54
  br i1 %55, label %56, label %99

56:                                               ; preds = %50
  %57 = load ptr, ptr %1, align 8, !tbaa !9
  %58 = getelementptr inbounds %struct._Action, ptr %57, i32 0, i32 14
  %59 = load ptr, ptr %58, align 8, !tbaa !19
  %60 = load i32, ptr %3, align 4, !tbaa !5
  %61 = sext i32 %60 to i64
  %62 = getelementptr inbounds ptr, ptr %59, i64 %61
  %63 = load ptr, ptr %62, align 8, !tbaa !9
  %64 = call zeroext i8 @is_artificial_fluent(ptr noundef %63)
  %65 = icmp ne i8 %64, 0
  br i1 %65, label %67, label %66

66:                                               ; preds = %56
  br label %96

67:                                               ; preds = %56
  %68 = load i32, ptr @gnum_relevant_fluents, align 4, !tbaa !5
  %69 = sub nsw i32 %68, 1
  %70 = load ptr, ptr %1, align 8, !tbaa !9
  %71 = getelementptr inbounds %struct._Action, ptr %70, i32 0, i32 14
  %72 = load ptr, ptr %71, align 8, !tbaa !19
  %73 = load i32, ptr %3, align 4, !tbaa !5
  %74 = sext i32 %73 to i64
  %75 = getelementptr inbounds ptr, ptr %72, i64 %74
  %76 = load ptr, ptr %75, align 8, !tbaa !9
  %77 = getelementptr inbounds %struct._LnfExpNode, ptr %76, i32 0, i32 0
  %78 = getelementptr inbounds [25 x i32], ptr %77, i64 0, i64 0
  store i32 %69, ptr %78, align 4, !tbaa !5
  %79 = load ptr, ptr %1, align 8, !tbaa !9
  %80 = getelementptr inbounds %struct._Action, ptr %79, i32 0, i32 14
  %81 = load ptr, ptr %80, align 8, !tbaa !19
  %82 = load i32, ptr %3, align 4, !tbaa !5
  %83 = sext i32 %82 to i64
  %84 = getelementptr inbounds ptr, ptr %81, i64 %83
  %85 = load ptr, ptr %84, align 8, !tbaa !9
  %86 = getelementptr inbounds %struct._LnfExpNode, ptr %85, i32 0, i32 1
  %87 = getelementptr inbounds [25 x float], ptr %86, i64 0, i64 0
  store float 1.000000e+00, ptr %87, align 4, !tbaa !11
  %88 = load ptr, ptr %1, align 8, !tbaa !9
  %89 = getelementptr inbounds %struct._Action, ptr %88, i32 0, i32 14
  %90 = load ptr, ptr %89, align 8, !tbaa !19
  %91 = load i32, ptr %3, align 4, !tbaa !5
  %92 = sext i32 %91 to i64
  %93 = getelementptr inbounds ptr, ptr %90, i64 %92
  %94 = load ptr, ptr %93, align 8, !tbaa !9
  %95 = getelementptr inbounds %struct._LnfExpNode, ptr %94, i32 0, i32 2
  store i32 1, ptr %95, align 4, !tbaa !13
  br label %96

96:                                               ; preds = %67, %66
  %97 = load i32, ptr %3, align 4, !tbaa !5
  %98 = add nsw i32 %97, 1
  store i32 %98, ptr %3, align 4, !tbaa !5
  br label %50, !llvm.loop !20

99:                                               ; preds = %50
  store i32 0, ptr %3, align 4, !tbaa !5
  br label %100

100:                                              ; preds = %225, %99
  %101 = load i32, ptr %3, align 4, !tbaa !5
  %102 = load ptr, ptr %1, align 8, !tbaa !9
  %103 = getelementptr inbounds %struct._Action, ptr %102, i32 0, i32 18
  %104 = load i32, ptr %103, align 8, !tbaa !21
  %105 = icmp slt i32 %101, %104
  br i1 %105, label %106, label %228

106:                                              ; preds = %100
  %107 = load ptr, ptr %1, align 8, !tbaa !9
  %108 = getelementptr inbounds %struct._Action, ptr %107, i32 0, i32 17
  %109 = load ptr, ptr %108, align 8, !tbaa !22
  %110 = load i32, ptr %3, align 4, !tbaa !5
  %111 = sext i32 %110 to i64
  %112 = getelementptr inbounds %struct._ActionEffect, ptr %109, i64 %111
  store ptr %112, ptr %2, align 8, !tbaa !9
  %113 = load ptr, ptr %2, align 8, !tbaa !9
  %114 = getelementptr inbounds %struct._ActionEffect, ptr %113, i32 0, i32 23
  %115 = load i8, ptr %114, align 1, !tbaa !23
  %116 = icmp ne i8 %115, 0
  br i1 %116, label %117, label %118

117:                                              ; preds = %106
  br label %225

118:                                              ; preds = %106
  store i32 0, ptr %4, align 4, !tbaa !5
  br label %119

119:                                              ; preds = %165, %118
  %120 = load i32, ptr %4, align 4, !tbaa !5
  %121 = load ptr, ptr %2, align 8, !tbaa !9
  %122 = getelementptr inbounds %struct._ActionEffect, ptr %121, i32 0, i32 17
  %123 = load i32, ptr %122, align 8, !tbaa !25
  %124 = icmp slt i32 %120, %123
  br i1 %124, label %125, label %168

125:                                              ; preds = %119
  %126 = load ptr, ptr %2, align 8, !tbaa !9
  %127 = getelementptr inbounds %struct._ActionEffect, ptr %126, i32 0, i32 15
  %128 = load ptr, ptr %127, align 8, !tbaa !26
  %129 = load i32, ptr %4, align 4, !tbaa !5
  %130 = sext i32 %129 to i64
  %131 = getelementptr inbounds ptr, ptr %128, i64 %130
  %132 = load ptr, ptr %131, align 8, !tbaa !9
  %133 = call zeroext i8 @is_artificial_fluent(ptr noundef %132)
  %134 = icmp ne i8 %133, 0
  br i1 %134, label %136, label %135

135:                                              ; preds = %125
  br label %165

136:                                              ; preds = %125
  %137 = load i32, ptr @gnum_relevant_fluents, align 4, !tbaa !5
  %138 = sub nsw i32 %137, 1
  %139 = load ptr, ptr %2, align 8, !tbaa !9
  %140 = getelementptr inbounds %struct._ActionEffect, ptr %139, i32 0, i32 15
  %141 = load ptr, ptr %140, align 8, !tbaa !26
  %142 = load i32, ptr %4, align 4, !tbaa !5
  %143 = sext i32 %142 to i64
  %144 = getelementptr inbounds ptr, ptr %141, i64 %143
  %145 = load ptr, ptr %144, align 8, !tbaa !9
  %146 = getelementptr inbounds %struct._LnfExpNode, ptr %145, i32 0, i32 0
  %147 = getelementptr inbounds [25 x i32], ptr %146, i64 0, i64 0
  store i32 %138, ptr %147, align 4, !tbaa !5
  %148 = load ptr, ptr %2, align 8, !tbaa !9
  %149 = getelementptr inbounds %struct._ActionEffect, ptr %148, i32 0, i32 15
  %150 = load ptr, ptr %149, align 8, !tbaa !26
  %151 = load i32, ptr %4, align 4, !tbaa !5
  %152 = sext i32 %151 to i64
  %153 = getelementptr inbounds ptr, ptr %150, i64 %152
  %154 = load ptr, ptr %153, align 8, !tbaa !9
  %155 = getelementptr inbounds %struct._LnfExpNode, ptr %154, i32 0, i32 1
  %156 = getelementptr inbounds [25 x float], ptr %155, i64 0, i64 0
  store float 1.000000e+00, ptr %156, align 4, !tbaa !11
  %157 = load ptr, ptr %2, align 8, !tbaa !9
  %158 = getelementptr inbounds %struct._ActionEffect, ptr %157, i32 0, i32 15
  %159 = load ptr, ptr %158, align 8, !tbaa !26
  %160 = load i32, ptr %4, align 4, !tbaa !5
  %161 = sext i32 %160 to i64
  %162 = getelementptr inbounds ptr, ptr %159, i64 %161
  %163 = load ptr, ptr %162, align 8, !tbaa !9
  %164 = getelementptr inbounds %struct._LnfExpNode, ptr %163, i32 0, i32 2
  store i32 1, ptr %164, align 4, !tbaa !13
  br label %165

165:                                              ; preds = %136, %135
  %166 = load i32, ptr %4, align 4, !tbaa !5
  %167 = add nsw i32 %166, 1
  store i32 %167, ptr %4, align 4, !tbaa !5
  br label %119, !llvm.loop !27

168:                                              ; preds = %119
  %169 = load ptr, ptr %2, align 8, !tbaa !9
  %170 = getelementptr inbounds %struct._ActionEffect, ptr %169, i32 0, i32 22
  %171 = load i8, ptr %170, align 4, !tbaa !28
  %172 = icmp ne i8 %171, 0
  br i1 %172, label %173, label %174

173:                                              ; preds = %168
  br label %225

174:                                              ; preds = %168
  store i32 0, ptr %4, align 4, !tbaa !5
  br label %175

175:                                              ; preds = %221, %174
  %176 = load i32, ptr %4, align 4, !tbaa !5
  %177 = load ptr, ptr %2, align 8, !tbaa !9
  %178 = getelementptr inbounds %struct._ActionEffect, ptr %177, i32 0, i32 21
  %179 = load i32, ptr %178, align 8, !tbaa !29
  %180 = icmp slt i32 %176, %179
  br i1 %180, label %181, label %224

181:                                              ; preds = %175
  %182 = load ptr, ptr %2, align 8, !tbaa !9
  %183 = getelementptr inbounds %struct._ActionEffect, ptr %182, i32 0, i32 20
  %184 = load ptr, ptr %183, align 8, !tbaa !30
  %185 = load i32, ptr %4, align 4, !tbaa !5
  %186 = sext i32 %185 to i64
  %187 = getelementptr inbounds ptr, ptr %184, i64 %186
  %188 = load ptr, ptr %187, align 8, !tbaa !9
  %189 = call zeroext i8 @is_artificial_fluent(ptr noundef %188)
  %190 = icmp ne i8 %189, 0
  br i1 %190, label %192, label %191

191:                                              ; preds = %181
  br label %221

192:                                              ; preds = %181
  %193 = load i32, ptr @gnum_relevant_fluents, align 4, !tbaa !5
  %194 = sub nsw i32 %193, 1
  %195 = load ptr, ptr %2, align 8, !tbaa !9
  %196 = getelementptr inbounds %struct._ActionEffect, ptr %195, i32 0, i32 20
  %197 = load ptr, ptr %196, align 8, !tbaa !30
  %198 = load i32, ptr %4, align 4, !tbaa !5
  %199 = sext i32 %198 to i64
  %200 = getelementptr inbounds ptr, ptr %197, i64 %199
  %201 = load ptr, ptr %200, align 8, !tbaa !9
  %202 = getelementptr inbounds %struct._LnfExpNode, ptr %201, i32 0, i32 0
  %203 = getelementptr inbounds [25 x i32], ptr %202, i64 0, i64 0
  store i32 %194, ptr %203, align 4, !tbaa !5
  %204 = load ptr, ptr %2, align 8, !tbaa !9
  %205 = getelementptr inbounds %struct._ActionEffect, ptr %204, i32 0, i32 20
  %206 = load ptr, ptr %205, align 8, !tbaa !30
  %207 = load i32, ptr %4, align 4, !tbaa !5
  %208 = sext i32 %207 to i64
  %209 = getelementptr inbounds ptr, ptr %206, i64 %208
  %210 = load ptr, ptr %209, align 8, !tbaa !9
  %211 = getelementptr inbounds %struct._LnfExpNode, ptr %210, i32 0, i32 1
  %212 = getelementptr inbounds [25 x float], ptr %211, i64 0, i64 0
  store float 1.000000e+00, ptr %212, align 4, !tbaa !11
  %213 = load ptr, ptr %2, align 8, !tbaa !9
  %214 = getelementptr inbounds %struct._ActionEffect, ptr %213, i32 0, i32 20
  %215 = load ptr, ptr %214, align 8, !tbaa !30
  %216 = load i32, ptr %4, align 4, !tbaa !5
  %217 = sext i32 %216 to i64
  %218 = getelementptr inbounds ptr, ptr %215, i64 %217
  %219 = load ptr, ptr %218, align 8, !tbaa !9
  %220 = getelementptr inbounds %struct._LnfExpNode, ptr %219, i32 0, i32 2
  store i32 1, ptr %220, align 4, !tbaa !13
  br label %221

221:                                              ; preds = %192, %191
  %222 = load i32, ptr %4, align 4, !tbaa !5
  %223 = add nsw i32 %222, 1
  store i32 %223, ptr %4, align 4, !tbaa !5
  br label %175, !llvm.loop !31

224:                                              ; preds = %175
  br label %225

225:                                              ; preds = %224, %173, %117
  %226 = load i32, ptr %3, align 4, !tbaa !5
  %227 = add nsw i32 %226, 1
  store i32 %227, ptr %3, align 4, !tbaa !5
  br label %100, !llvm.loop !32

228:                                              ; preds = %100
  br label %229

229:                                              ; preds = %228
  %230 = load ptr, ptr %1, align 8, !tbaa !9
  %231 = getelementptr inbounds %struct._Action, ptr %230, i32 0, i32 19
  %232 = load ptr, ptr %231, align 8, !tbaa !33
  store ptr %232, ptr %1, align 8, !tbaa !9
  br label %46, !llvm.loop !34

233:                                              ; preds = %46
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #2
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #2
  call void @llvm.lifetime.end.p0(i64 8, ptr %2) #2
  call void @llvm.lifetime.end.p0(i64 8, ptr %1) #2
  ret void
}

; Function Attrs: nounwind uwtable
declare dso_local zeroext i8 @is_artificial_fluent(ptr noundef) #1

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { 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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"float", !7, i64 0}
!13 = !{!14, !6, i64 200}
!14 = !{!"_LnfExpNode", !7, i64 0, !7, i64 100, !6, i64 200, !7, i64 204, !7, i64 304, !6, i64 404, !12, i64 408}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.mustprogress"}
!17 = !{!18, !6, i64 232}
!18 = !{!"_Action", !10, i64 0, !10, i64 8, !7, i64 16, !10, i64 24, !6, i64 32, !7, i64 36, !7, i64 96, !10, i64 160, !6, i64 168, !10, i64 176, !10, i64 184, !10, i64 192, !6, i64 200, !10, i64 208, !10, i64 216, !10, i64 224, !6, i64 232, !10, i64 240, !6, i64 248, !10, i64 256}
!19 = !{!18, !10, i64 216}
!20 = distinct !{!20, !16}
!21 = !{!18, !6, i64 248}
!22 = !{!18, !10, i64 240}
!23 = !{!24, !7, i64 173}
!24 = !{!"_ActionEffect", !10, i64 0, !6, i64 8, !10, i64 16, !6, i64 24, !10, i64 32, !6, i64 40, !10, i64 48, !10, i64 56, !10, i64 64, !6, i64 72, !10, i64 80, !10, i64 88, !10, i64 96, !6, i64 104, !10, i64 112, !10, i64 120, !10, i64 128, !6, i64 136, !10, i64 144, !10, i64 152, !10, i64 160, !6, i64 168, !7, i64 172, !7, i64 173, !12, i64 176}
!25 = !{!24, !6, i64 136}
!26 = !{!24, !10, i64 120}
!27 = distinct !{!27, !16}
!28 = !{!24, !7, i64 172}
!29 = !{!24, !6, i64 168}
!30 = !{!24, !10, i64 160}
!31 = distinct !{!31, !16}
!32 = distinct !{!32, !16}
!33 = !{!18, !10, i64 256}
!34 = distinct !{!34, !16}


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

%struct._ActionEffect = type { ptr, i32, ptr, i32, ptr, i32, ptr, ptr, ptr, i32, ptr, ptr, ptr, i32, ptr, ptr, ptr, i32, ptr, ptr, ptr, i32, i8, i8, float }

@gactions = external local_unnamed_addr global ptr, align 8
@gnum_lnf_goal = external local_unnamed_addr global i32, align 4
@glnf_goal_lh = external local_unnamed_addr global ptr, align 8
@gnum_relevant_fluents = external local_unnamed_addr global i32, align 4

; Function Attrs: nounwind uwtable
define dso_local void @replace_non_minimal_lnf_with_artificial_fl() local_unnamed_addr #0 {
  %1 = load i32, ptr @gnum_lnf_goal, align 4, !tbaa !5
  %2 = icmp sgt i32 %1, 0
  br i1 %2, label %.lr.ph, label %.preheader59

.preheader59:                                     ; preds = %15, %0
  %.04970 = load ptr, ptr @gactions, align 8, !tbaa !9
  %.not71 = icmp eq ptr %.04970, null
  br i1 %.not71, label %._crit_edge73, label %.preheader58

.lr.ph:                                           ; preds = %0, %15
  %indvars.iv = phi i64 [ %indvars.iv.next, %15 ], [ 0, %0 ]
  %3 = load ptr, ptr @glnf_goal_lh, align 8, !tbaa !9
  %4 = getelementptr inbounds ptr, ptr %3, i64 %indvars.iv
  %5 = load ptr, ptr %4, align 8, !tbaa !9
  %6 = tail call zeroext i8 @is_artificial_fluent(ptr noundef %5)
  %.not55 = icmp eq i8 %6, 0
  br i1 %.not55, label %15, label %7

7:                                                ; preds = %.lr.ph
  %8 = load i32, ptr @gnum_relevant_fluents, align 4, !tbaa !5
  %9 = add nsw i32 %8, -1
  %10 = load ptr, ptr @glnf_goal_lh, align 8, !tbaa !9
  %11 = getelementptr inbounds ptr, ptr %10, i64 %indvars.iv
  %12 = load ptr, ptr %11, align 8, !tbaa !9
  store i32 %9, ptr %12, align 4, !tbaa !5
  %13 = getelementptr inbounds i8, ptr %12, i64 100
  store float 1.000000e+00, ptr %13, align 4, !tbaa !11
  %14 = getelementptr inbounds i8, ptr %12, i64 200
  store i32 1, ptr %14, align 4, !tbaa !13
  br label %15

15:                                               ; preds = %.lr.ph, %7
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %16 = load i32, ptr @gnum_lnf_goal, align 4, !tbaa !5
  %17 = sext i32 %16 to i64
  %18 = icmp slt i64 %indvars.iv.next, %17
  br i1 %18, label %.lr.ph, label %.preheader59, !llvm.loop !15

.preheader58:                                     ; preds = %.preheader59, %._crit_edge69
  %.04972 = phi ptr [ %.049, %._crit_edge69 ], [ %.04970, %.preheader59 ]
  %19 = getelementptr inbounds i8, ptr %.04972, i64 232
  %20 = load i32, ptr %19, align 8, !tbaa !17
  %21 = icmp sgt i32 %20, 0
  br i1 %21, label %.lr.ph62, label %.preheader57

.lr.ph62:                                         ; preds = %.preheader58
  %22 = getelementptr inbounds i8, ptr %.04972, i64 216
  br label %27

.preheader57:                                     ; preds = %40, %.preheader58
  %23 = getelementptr inbounds i8, ptr %.04972, i64 248
  %24 = load i32, ptr %23, align 8, !tbaa !19
  %25 = icmp sgt i32 %24, 0
  br i1 %25, label %.lr.ph68, label %._crit_edge69

.lr.ph68:                                         ; preds = %.preheader57
  %26 = getelementptr inbounds i8, ptr %.04972, i64 240
  br label %44

27:                                               ; preds = %.lr.ph62, %40
  %indvars.iv75 = phi i64 [ 0, %.lr.ph62 ], [ %indvars.iv.next76, %40 ]
  %28 = load ptr, ptr %22, align 8, !tbaa !20
  %29 = getelementptr inbounds ptr, ptr %28, i64 %indvars.iv75
  %30 = load ptr, ptr %29, align 8, !tbaa !9
  %31 = tail call zeroext i8 @is_artificial_fluent(ptr noundef %30)
  %.not54 = icmp eq i8 %31, 0
  br i1 %.not54, label %40, label %32

32:                                               ; preds = %27
  %33 = load i32, ptr @gnum_relevant_fluents, align 4, !tbaa !5
  %34 = add nsw i32 %33, -1
  %35 = load ptr, ptr %22, align 8, !tbaa !20
  %36 = getelementptr inbounds ptr, ptr %35, i64 %indvars.iv75
  %37 = load ptr, ptr %36, align 8, !tbaa !9
  store i32 %34, ptr %37, align 4, !tbaa !5
  %38 = getelementptr inbounds i8, ptr %37, i64 100
  store float 1.000000e+00, ptr %38, align 4, !tbaa !11
  %39 = getelementptr inbounds i8, ptr %37, i64 200
  store i32 1, ptr %39, align 4, !tbaa !13
  br label %40

40:                                               ; preds = %27, %32
  %indvars.iv.next76 = add nuw nsw i64 %indvars.iv75, 1
  %41 = load i32, ptr %19, align 8, !tbaa !17
  %42 = sext i32 %41 to i64
  %43 = icmp slt i64 %indvars.iv.next76, %42
  br i1 %43, label %27, label %.preheader57, !llvm.loop !21

44:                                               ; preds = %.lr.ph68, %.loopexit
  %indvars.iv84 = phi i64 [ 0, %.lr.ph68 ], [ %indvars.iv.next85, %.loopexit ]
  %45 = load ptr, ptr %26, align 8, !tbaa !22
  %46 = getelementptr inbounds %struct._ActionEffect, ptr %45, i64 %indvars.iv84
  %47 = getelementptr inbounds i8, ptr %46, i64 173
  %48 = load i8, ptr %47, align 1, !tbaa !23
  %.not50 = icmp eq i8 %48, 0
  br i1 %.not50, label %.preheader56, label %.loopexit

.preheader56:                                     ; preds = %44
  %49 = getelementptr inbounds i8, ptr %46, i64 136
  %50 = load i32, ptr %49, align 8, !tbaa !25
  %51 = icmp sgt i32 %50, 0
  br i1 %51, label %.lr.ph64, label %._crit_edge

.lr.ph64:                                         ; preds = %.preheader56
  %52 = getelementptr inbounds i8, ptr %46, i64 120
  br label %53

53:                                               ; preds = %.lr.ph64, %66
  %indvars.iv78 = phi i64 [ 0, %.lr.ph64 ], [ %indvars.iv.next79, %66 ]
  %54 = load ptr, ptr %52, align 8, !tbaa !26
  %55 = getelementptr inbounds ptr, ptr %54, i64 %indvars.iv78
  %56 = load ptr, ptr %55, align 8, !tbaa !9
  %57 = tail call zeroext i8 @is_artificial_fluent(ptr noundef %56)
  %.not53 = icmp eq i8 %57, 0
  br i1 %.not53, label %66, label %58

58:                                               ; preds = %53
  %59 = load i32, ptr @gnum_relevant_fluents, align 4, !tbaa !5
  %60 = add nsw i32 %59, -1
  %61 = load ptr, ptr %52, align 8, !tbaa !26
  %62 = getelementptr inbounds ptr, ptr %61, i64 %indvars.iv78
  %63 = load ptr, ptr %62, align 8, !tbaa !9
  store i32 %60, ptr %63, align 4, !tbaa !5
  %64 = getelementptr inbounds i8, ptr %63, i64 100
  store float 1.000000e+00, ptr %64, align 4, !tbaa !11
  %65 = getelementptr inbounds i8, ptr %63, i64 200
  store i32 1, ptr %65, align 4, !tbaa !13
  br label %66

66:                                               ; preds = %53, %58
  %indvars.iv.next79 = add nuw nsw i64 %indvars.iv78, 1
  %67 = load i32, ptr %49, align 8, !tbaa !25
  %68 = sext i32 %67 to i64
  %69 = icmp slt i64 %indvars.iv.next79, %68
  br i1 %69, label %53, label %._crit_edge, !llvm.loop !27

._crit_edge:                                      ; preds = %66, %.preheader56
  %70 = getelementptr inbounds i8, ptr %46, i64 172
  %71 = load i8, ptr %70, align 4, !tbaa !28
  %.not51 = icmp eq i8 %71, 0
  br i1 %.not51, label %.preheader, label %.loopexit

.preheader:                                       ; preds = %._crit_edge
  %72 = getelementptr inbounds i8, ptr %46, i64 168
  %73 = load i32, ptr %72, align 8, !tbaa !29
  %74 = icmp sgt i32 %73, 0
  br i1 %74, label %.lr.ph66, label %.loopexit

.lr.ph66:                                         ; preds = %.preheader
  %75 = getelementptr inbounds i8, ptr %46, i64 160
  br label %76

76:                                               ; preds = %.lr.ph66, %89
  %indvars.iv81 = phi i64 [ 0, %.lr.ph66 ], [ %indvars.iv.next82, %89 ]
  %77 = load ptr, ptr %75, align 8, !tbaa !30
  %78 = getelementptr inbounds ptr, ptr %77, i64 %indvars.iv81
  %79 = load ptr, ptr %78, align 8, !tbaa !9
  %80 = tail call zeroext i8 @is_artificial_fluent(ptr noundef %79)
  %.not52 = icmp eq i8 %80, 0
  br i1 %.not52, label %89, label %81

81:                                               ; preds = %76
  %82 = load i32, ptr @gnum_relevant_fluents, align 4, !tbaa !5
  %83 = add nsw i32 %82, -1
  %84 = load ptr, ptr %75, align 8, !tbaa !30
  %85 = getelementptr inbounds ptr, ptr %84, i64 %indvars.iv81
  %86 = load ptr, ptr %85, align 8, !tbaa !9
  store i32 %83, ptr %86, align 4, !tbaa !5
  %87 = getelementptr inbounds i8, ptr %86, i64 100
  store float 1.000000e+00, ptr %87, align 4, !tbaa !11
  %88 = getelementptr inbounds i8, ptr %86, i64 200
  store i32 1, ptr %88, align 4, !tbaa !13
  br label %89

89:                                               ; preds = %76, %81
  %indvars.iv.next82 = add nuw nsw i64 %indvars.iv81, 1
  %90 = load i32, ptr %72, align 8, !tbaa !29
  %91 = sext i32 %90 to i64
  %92 = icmp slt i64 %indvars.iv.next82, %91
  br i1 %92, label %76, label %.loopexit, !llvm.loop !31

.loopexit:                                        ; preds = %89, %.preheader, %._crit_edge, %44
  %indvars.iv.next85 = add nuw nsw i64 %indvars.iv84, 1
  %93 = load i32, ptr %23, align 8, !tbaa !19
  %94 = sext i32 %93 to i64
  %95 = icmp slt i64 %indvars.iv.next85, %94
  br i1 %95, label %44, label %._crit_edge69, !llvm.loop !32

._crit_edge69:                                    ; preds = %.loopexit, %.preheader57
  %96 = getelementptr inbounds i8, ptr %.04972, i64 256
  %.049 = load ptr, ptr %96, align 8, !tbaa !9
  %.not = icmp eq ptr %.049, null
  br i1 %.not, label %._crit_edge73, label %.preheader58, !llvm.loop !33

._crit_edge73:                                    ; preds = %._crit_edge69, %.preheader59
  ret void
}

; Function Attrs: nounwind uwtable
declare dso_local zeroext i8 @is_artificial_fluent(ptr noundef) local_unnamed_addr #0

attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }

!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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"float", !7, i64 0}
!13 = !{!14, !6, i64 200}
!14 = !{!"_LnfExpNode", !7, i64 0, !7, i64 100, !6, i64 200, !7, i64 204, !7, i64 304, !6, i64 404, !12, i64 408}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.mustprogress"}
!17 = !{!18, !6, i64 232}
!18 = !{!"_Action", !10, i64 0, !10, i64 8, !7, i64 16, !10, i64 24, !6, i64 32, !7, i64 36, !7, i64 96, !10, i64 160, !6, i64 168, !10, i64 176, !10, i64 184, !10, i64 192, !6, i64 200, !10, i64 208, !10, i64 216, !10, i64 224, !6, i64 232, !10, i64 240, !6, i64 248, !10, i64 256}
!19 = !{!18, !6, i64 248}
!20 = !{!18, !10, i64 216}
!21 = distinct !{!21, !16}
!22 = !{!18, !10, i64 240}
!23 = !{!24, !7, i64 173}
!24 = !{!"_ActionEffect", !10, i64 0, !6, i64 8, !10, i64 16, !6, i64 24, !10, i64 32, !6, i64 40, !10, i64 48, !10, i64 56, !10, i64 64, !6, i64 72, !10, i64 80, !10, i64 88, !10, i64 96, !6, i64 104, !10, i64 112, !10, i64 120, !10, i64 128, !6, i64 136, !10, i64 144, !10, i64 152, !10, i64 160, !6, i64 168, !7, i64 172, !7, i64 173, !12, i64 176}
!25 = !{!24, !6, i64 136}
!26 = !{!24, !10, i64 120}
!27 = distinct !{!27, !16}
!28 = !{!24, !7, i64 172}
!29 = !{!24, !6, i64 168}
!30 = !{!24, !10, i64 160}
!31 = distinct !{!31, !16}
!32 = distinct !{!32, !16}
!33 = distinct !{!33, !16}


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