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

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

@gnum_easy_operators = external global i32, align 4
@geasy_operators = external global ptr, align 8
@garity = external global [50 x i32], align 16
@lo = external dso_local global ptr, align 8
@lres = external dso_local global ptr, align 8
@le = external dso_local global ptr, align 8
@lnum_inertia_conds = external dso_local global i32, align 4
@gis_added = external global [50 x i8], align 16
@gis_deleted = external global [50 x i8], align 16
@linertia_conds = external dso_local global [15 x i32], align 16
@lnum_multiply_parameters = external dso_local global i32, align 4
@lmultiply_parameters = external dso_local global [15 x i32], align 16

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

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

8:                                                ; preds = %232, %0
  %9 = load i32, ptr %1, align 4, !tbaa !5
  %10 = load i32, ptr @gnum_easy_operators, align 4, !tbaa !5
  %11 = icmp slt i32 %9, %10
  br i1 %11, label %12, label %235

12:                                               ; preds = %8
  %13 = load ptr, ptr @geasy_operators, align 8, !tbaa !9
  %14 = load i32, ptr %1, align 4, !tbaa !5
  %15 = sext i32 %14 to i64
  %16 = getelementptr inbounds ptr, ptr %13, i64 %15
  %17 = load ptr, ptr %16, align 8, !tbaa !9
  store ptr %17, ptr @lo, align 8, !tbaa !9
  store ptr null, ptr @lres, align 8, !tbaa !9
  %18 = load ptr, ptr @lo, align 8, !tbaa !9
  %19 = getelementptr inbounds %struct._NormOperator, ptr %18, i32 0, i32 13
  %20 = load ptr, ptr %19, align 8, !tbaa !11
  store ptr %20, ptr %7, align 8, !tbaa !9
  br label %21

21:                                               ; preds = %221, %12
  %22 = load ptr, ptr %7, align 8, !tbaa !9
  %23 = icmp ne ptr %22, null
  br i1 %23, label %24, label %225

24:                                               ; preds = %21
  %25 = load ptr, ptr %7, align 8, !tbaa !9
  store ptr %25, ptr @le, align 8, !tbaa !9
  store i32 0, ptr @lnum_inertia_conds, align 4, !tbaa !5
  store i32 0, ptr %2, align 4, !tbaa !5
  br label %26

26:                                               ; preds = %131, %24
  %27 = load i32, ptr %2, align 4, !tbaa !5
  %28 = load ptr, ptr %7, align 8, !tbaa !9
  %29 = getelementptr inbounds %struct._NormEffect, ptr %28, i32 0, i32 4
  %30 = load i32, ptr %29, align 8, !tbaa !13
  %31 = icmp slt i32 %27, %30
  br i1 %31, label %32, label %134

32:                                               ; preds = %26
  store i32 0, ptr %3, align 4, !tbaa !5
  br label %33

33:                                               ; preds = %80, %32
  %34 = load i32, ptr %3, align 4, !tbaa !5
  %35 = load ptr, ptr %7, align 8, !tbaa !9
  %36 = getelementptr inbounds %struct._NormEffect, ptr %35, i32 0, i32 3
  %37 = load ptr, ptr %36, align 8, !tbaa !15
  %38 = load i32, ptr %2, align 4, !tbaa !5
  %39 = sext i32 %38 to i64
  %40 = getelementptr inbounds %struct._Fact, ptr %37, i64 %39
  %41 = getelementptr inbounds %struct._Fact, ptr %40, i32 0, i32 0
  %42 = load i32, ptr %41, align 4, !tbaa !16
  %43 = sext i32 %42 to i64
  %44 = getelementptr inbounds [50 x i32], ptr @garity, i64 0, i64 %43
  %45 = load i32, ptr %44, align 4, !tbaa !5
  %46 = icmp slt i32 %34, %45
  br i1 %46, label %47, label %83

47:                                               ; preds = %33
  %48 = load ptr, ptr %7, align 8, !tbaa !9
  %49 = getelementptr inbounds %struct._NormEffect, ptr %48, i32 0, i32 3
  %50 = load ptr, ptr %49, align 8, !tbaa !15
  %51 = load i32, ptr %2, align 4, !tbaa !5
  %52 = sext i32 %51 to i64
  %53 = getelementptr inbounds %struct._Fact, ptr %50, i64 %52
  %54 = getelementptr inbounds %struct._Fact, ptr %53, i32 0, i32 1
  %55 = load i32, ptr %3, align 4, !tbaa !5
  %56 = sext i32 %55 to i64
  %57 = getelementptr inbounds [5 x i32], ptr %54, i64 0, i64 %56
  %58 = load i32, ptr %57, align 4, !tbaa !5
  %59 = icmp slt i32 %58, 0
  br i1 %59, label %60, label %79

60:                                               ; preds = %47
  %61 = load ptr, ptr %7, align 8, !tbaa !9
  %62 = getelementptr inbounds %struct._NormEffect, ptr %61, i32 0, i32 3
  %63 = load ptr, ptr %62, align 8, !tbaa !15
  %64 = load i32, ptr %2, align 4, !tbaa !5
  %65 = sext i32 %64 to i64
  %66 = getelementptr inbounds %struct._Fact, ptr %63, i64 %65
  %67 = getelementptr inbounds %struct._Fact, ptr %66, i32 0, i32 1
  %68 = load i32, ptr %3, align 4, !tbaa !5
  %69 = sext i32 %68 to i64
  %70 = getelementptr inbounds [5 x i32], ptr %67, i64 0, i64 %69
  %71 = load i32, ptr %70, align 4, !tbaa !5
  %72 = add nsw i32 %71, 1
  %73 = mul nsw i32 %72, -1
  %74 = load ptr, ptr @lo, align 8, !tbaa !9
  %75 = getelementptr inbounds %struct._NormOperator, ptr %74, i32 0, i32 1
  %76 = load i32, ptr %75, align 8, !tbaa !18
  %77 = icmp slt i32 %73, %76
  br i1 %77, label %78, label %79

78:                                               ; preds = %60
  br label %83

79:                                               ; preds = %60, %47
  br label %80

80:                                               ; preds = %79
  %81 = load i32, ptr %3, align 4, !tbaa !5
  %82 = add nsw i32 %81, 1
  store i32 %82, ptr %3, align 4, !tbaa !5
  br label %33, !llvm.loop !19

83:                                               ; preds = %78, %33
  %84 = load i32, ptr %3, align 4, !tbaa !5
  %85 = load ptr, ptr %7, align 8, !tbaa !9
  %86 = getelementptr inbounds %struct._NormEffect, ptr %85, i32 0, i32 3
  %87 = load ptr, ptr %86, align 8, !tbaa !15
  %88 = load i32, ptr %2, align 4, !tbaa !5
  %89 = sext i32 %88 to i64
  %90 = getelementptr inbounds %struct._Fact, ptr %87, i64 %89
  %91 = getelementptr inbounds %struct._Fact, ptr %90, i32 0, i32 0
  %92 = load i32, ptr %91, align 4, !tbaa !16
  %93 = sext i32 %92 to i64
  %94 = getelementptr inbounds [50 x i32], ptr @garity, i64 0, i64 %93
  %95 = load i32, ptr %94, align 4, !tbaa !5
  %96 = icmp slt i32 %84, %95
  br i1 %96, label %97, label %98

97:                                               ; preds = %83
  br label %131

98:                                               ; preds = %83
  %99 = load ptr, ptr %7, align 8, !tbaa !9
  %100 = getelementptr inbounds %struct._NormEffect, ptr %99, i32 0, i32 3
  %101 = load ptr, ptr %100, align 8, !tbaa !15
  %102 = load i32, ptr %2, align 4, !tbaa !5
  %103 = sext i32 %102 to i64
  %104 = getelementptr inbounds %struct._Fact, ptr %101, i64 %103
  %105 = getelementptr inbounds %struct._Fact, ptr %104, i32 0, i32 0
  %106 = load i32, ptr %105, align 4, !tbaa !16
  %107 = sext i32 %106 to i64
  %108 = getelementptr inbounds [50 x i8], ptr @gis_added, i64 0, i64 %107
  %109 = load i8, ptr %108, align 1, !tbaa !21
  %110 = icmp ne i8 %109, 0
  br i1 %110, label %130, label %111

111:                                              ; preds = %98
  %112 = load ptr, ptr %7, align 8, !tbaa !9
  %113 = getelementptr inbounds %struct._NormEffect, ptr %112, i32 0, i32 3
  %114 = load ptr, ptr %113, align 8, !tbaa !15
  %115 = load i32, ptr %2, align 4, !tbaa !5
  %116 = sext i32 %115 to i64
  %117 = getelementptr inbounds %struct._Fact, ptr %114, i64 %116
  %118 = getelementptr inbounds %struct._Fact, ptr %117, i32 0, i32 0
  %119 = load i32, ptr %118, align 4, !tbaa !16
  %120 = sext i32 %119 to i64
  %121 = getelementptr inbounds [50 x i8], ptr @gis_deleted, i64 0, i64 %120
  %122 = load i8, ptr %121, align 1, !tbaa !21
  %123 = icmp ne i8 %122, 0
  br i1 %123, label %130, label %124

124:                                              ; preds = %111
  %125 = load i32, ptr %2, align 4, !tbaa !5
  %126 = load i32, ptr @lnum_inertia_conds, align 4, !tbaa !5
  %127 = add nsw i32 %126, 1
  store i32 %127, ptr @lnum_inertia_conds, align 4, !tbaa !5
  %128 = sext i32 %126 to i64
  %129 = getelementptr inbounds [15 x i32], ptr @linertia_conds, i64 0, i64 %128
  store i32 %125, ptr %129, align 4, !tbaa !5
  br label %130

130:                                              ; preds = %124, %111, %98
  br label %131

131:                                              ; preds = %130, %97
  %132 = load i32, ptr %2, align 4, !tbaa !5
  %133 = add nsw i32 %132, 1
  store i32 %133, ptr %2, align 4, !tbaa !5
  br label %26, !llvm.loop !22

134:                                              ; preds = %26
  store i32 0, ptr @lnum_multiply_parameters, align 4, !tbaa !5
  store i32 0, ptr %2, align 4, !tbaa !5
  br label %135

135:                                              ; preds = %217, %134
  %136 = load i32, ptr %2, align 4, !tbaa !5
  %137 = load ptr, ptr %7, align 8, !tbaa !9
  %138 = getelementptr inbounds %struct._NormEffect, ptr %137, i32 0, i32 0
  %139 = load i32, ptr %138, align 8, !tbaa !23
  %140 = icmp slt i32 %136, %139
  br i1 %140, label %141, label %220

141:                                              ; preds = %135
  %142 = load ptr, ptr @lo, align 8, !tbaa !9
  %143 = getelementptr inbounds %struct._NormOperator, ptr %142, i32 0, i32 1
  %144 = load i32, ptr %143, align 8, !tbaa !18
  %145 = load i32, ptr %2, align 4, !tbaa !5
  %146 = add nsw i32 %144, %145
  store i32 %146, ptr %6, align 4, !tbaa !5
  store i32 0, ptr %3, align 4, !tbaa !5
  br label %147

147:                                              ; preds = %203, %141
  %148 = load i32, ptr %3, align 4, !tbaa !5
  %149 = load i32, ptr @lnum_inertia_conds, align 4, !tbaa !5
  %150 = icmp slt i32 %148, %149
  br i1 %150, label %151, label %206

151:                                              ; preds = %147
  %152 = load ptr, ptr %7, align 8, !tbaa !9
  %153 = getelementptr inbounds %struct._NormEffect, ptr %152, i32 0, i32 3
  %154 = load ptr, ptr %153, align 8, !tbaa !15
  %155 = load i32, ptr %3, align 4, !tbaa !5
  %156 = sext i32 %155 to i64
  %157 = getelementptr inbounds [15 x i32], ptr @linertia_conds, i64 0, i64 %156
  %158 = load i32, ptr %157, align 4, !tbaa !5
  %159 = sext i32 %158 to i64
  %160 = getelementptr inbounds %struct._Fact, ptr %154, i64 %159
  %161 = getelementptr inbounds %struct._Fact, ptr %160, i32 0, i32 0
  %162 = load i32, ptr %161, align 4, !tbaa !16
  store i32 %162, ptr %5, align 4, !tbaa !5
  store i32 0, ptr %4, align 4, !tbaa !5
  br label %163

163:                                              ; preds = %191, %151
  %164 = load i32, ptr %4, align 4, !tbaa !5
  %165 = load i32, ptr %5, align 4, !tbaa !5
  %166 = sext i32 %165 to i64
  %167 = getelementptr inbounds [50 x i32], ptr @garity, i64 0, i64 %166
  %168 = load i32, ptr %167, align 4, !tbaa !5
  %169 = icmp slt i32 %164, %168
  br i1 %169, label %170, label %194

170:                                              ; preds = %163
  %171 = load ptr, ptr %7, align 8, !tbaa !9
  %172 = getelementptr inbounds %struct._NormEffect, ptr %171, i32 0, i32 3
  %173 = load ptr, ptr %172, align 8, !tbaa !15
  %174 = load i32, ptr %3, align 4, !tbaa !5
  %175 = sext i32 %174 to i64
  %176 = getelementptr inbounds [15 x i32], ptr @linertia_conds, i64 0, i64 %175
  %177 = load i32, ptr %176, align 4, !tbaa !5
  %178 = sext i32 %177 to i64
  %179 = getelementptr inbounds %struct._Fact, ptr %173, i64 %178
  %180 = getelementptr inbounds %struct._Fact, ptr %179, i32 0, i32 1
  %181 = load i32, ptr %4, align 4, !tbaa !5
  %182 = sext i32 %181 to i64
  %183 = getelementptr inbounds [5 x i32], ptr %180, i64 0, i64 %182
  %184 = load i32, ptr %183, align 4, !tbaa !5
  %185 = load i32, ptr %6, align 4, !tbaa !5
  %186 = mul nsw i32 %185, -1
  %187 = sub nsw i32 %186, 1
  %188 = icmp eq i32 %184, %187
  br i1 %188, label %189, label %190

189:                                              ; preds = %170
  br label %194

190:                                              ; preds = %170
  br label %191

191:                                              ; preds = %190
  %192 = load i32, ptr %4, align 4, !tbaa !5
  %193 = add nsw i32 %192, 1
  store i32 %193, ptr %4, align 4, !tbaa !5
  br label %163, !llvm.loop !24

194:                                              ; preds = %189, %163
  %195 = load i32, ptr %4, align 4, !tbaa !5
  %196 = load i32, ptr %5, align 4, !tbaa !5
  %197 = sext i32 %196 to i64
  %198 = getelementptr inbounds [50 x i32], ptr @garity, i64 0, i64 %197
  %199 = load i32, ptr %198, align 4, !tbaa !5
  %200 = icmp slt i32 %195, %199
  br i1 %200, label %201, label %202

201:                                              ; preds = %194
  br label %206

202:                                              ; preds = %194
  br label %203

203:                                              ; preds = %202
  %204 = load i32, ptr %3, align 4, !tbaa !5
  %205 = add nsw i32 %204, 1
  store i32 %205, ptr %3, align 4, !tbaa !5
  br label %147, !llvm.loop !25

206:                                              ; preds = %201, %147
  %207 = load i32, ptr %3, align 4, !tbaa !5
  %208 = load i32, ptr @lnum_inertia_conds, align 4, !tbaa !5
  %209 = icmp slt i32 %207, %208
  br i1 %209, label %210, label %211

210:                                              ; preds = %206
  br label %217

211:                                              ; preds = %206
  %212 = load i32, ptr %2, align 4, !tbaa !5
  %213 = load i32, ptr @lnum_multiply_parameters, align 4, !tbaa !5
  %214 = add nsw i32 %213, 1
  store i32 %214, ptr @lnum_multiply_parameters, align 4, !tbaa !5
  %215 = sext i32 %213 to i64
  %216 = getelementptr inbounds [15 x i32], ptr @lmultiply_parameters, i64 0, i64 %215
  store i32 %212, ptr %216, align 4, !tbaa !5
  br label %217

217:                                              ; preds = %211, %210
  %218 = load i32, ptr %2, align 4, !tbaa !5
  %219 = add nsw i32 %218, 1
  store i32 %219, ptr %2, align 4, !tbaa !5
  br label %135, !llvm.loop !26

220:                                              ; preds = %135
  call void @unify_easy_inertia_conditions(i32 noundef 0)
  br label %221

221:                                              ; preds = %220
  %222 = load ptr, ptr %7, align 8, !tbaa !9
  %223 = getelementptr inbounds %struct._NormEffect, ptr %222, i32 0, i32 18
  %224 = load ptr, ptr %223, align 8, !tbaa !27
  store ptr %224, ptr %7, align 8, !tbaa !9
  br label %21, !llvm.loop !28

225:                                              ; preds = %21
  %226 = load ptr, ptr @lo, align 8, !tbaa !9
  %227 = getelementptr inbounds %struct._NormOperator, ptr %226, i32 0, i32 13
  %228 = load ptr, ptr %227, align 8, !tbaa !11
  call void @free_NormEffect(ptr noundef %228)
  %229 = load ptr, ptr @lres, align 8, !tbaa !9
  %230 = load ptr, ptr @lo, align 8, !tbaa !9
  %231 = getelementptr inbounds %struct._NormOperator, ptr %230, i32 0, i32 13
  store ptr %229, ptr %231, align 8, !tbaa !11
  br label %232

232:                                              ; preds = %225
  %233 = load i32, ptr %1, align 4, !tbaa !5
  %234 = add nsw i32 %233, 1
  store i32 %234, ptr %1, align 4, !tbaa !5
  br label %8, !llvm.loop !29

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

; 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
declare dso_local void @unify_easy_inertia_conditions(i32 noundef) #1

declare void @free_NormEffect(ptr noundef) #2

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

!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, !10, i64 304}
!12 = !{!"_NormOperator", !10, i64 0, !6, i64 8, !7, i64 12, !7, i64 72, !7, i64 132, !6, i64 192, !7, i64 196, !10, i64 256, !6, i64 264, !10, i64 272, !10, i64 280, !10, i64 288, !6, i64 296, !10, i64 304, !7, i64 312}
!13 = !{!14, !6, i64 136}
!14 = !{!"_NormEffect", !6, i64 0, !7, i64 4, !7, i64 64, !10, i64 128, !6, i64 136, !10, i64 144, !6, i64 152, !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, !10, i64 248}
!15 = !{!14, !10, i64 128}
!16 = !{!17, !6, i64 0}
!17 = !{!"_Fact", !6, i64 0, !7, i64 4}
!18 = !{!12, !6, i64 8}
!19 = distinct !{!19, !20}
!20 = !{!"llvm.loop.mustprogress"}
!21 = !{!7, !7, i64 0}
!22 = distinct !{!22, !20}
!23 = !{!14, !6, i64 0}
!24 = distinct !{!24, !20}
!25 = distinct !{!25, !20}
!26 = distinct !{!26, !20}
!27 = !{!14, !10, i64 248}
!28 = distinct !{!28, !20}
!29 = distinct !{!29, !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"

%struct._Fact = type { i32, [5 x i32] }

@gnum_easy_operators = external local_unnamed_addr global i32, align 4
@geasy_operators = external local_unnamed_addr global ptr, align 8
@garity = external local_unnamed_addr global [50 x i32], align 16
@lo = external dso_local local_unnamed_addr global ptr, align 8
@lres = external dso_local local_unnamed_addr global ptr, align 8
@le = external dso_local local_unnamed_addr global ptr, align 8
@lnum_inertia_conds = external dso_local local_unnamed_addr global i32, align 4
@gis_added = external local_unnamed_addr global [50 x i8], align 16
@gis_deleted = external local_unnamed_addr global [50 x i8], align 16
@linertia_conds = external dso_local local_unnamed_addr global [15 x i32], align 16
@lnum_multiply_parameters = external dso_local local_unnamed_addr global i32, align 4
@lmultiply_parameters = external dso_local local_unnamed_addr global [15 x i32], align 16

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

.lr.ph79:                                         ; preds = %0, %._crit_edge76
  %indvars.iv96 = phi i64 [ %indvars.iv.next97, %._crit_edge76 ], [ 0, %0 ]
  %3 = load ptr, ptr @geasy_operators, align 8, !tbaa !9
  %4 = getelementptr inbounds ptr, ptr %3, i64 %indvars.iv96
  %5 = load ptr, ptr %4, align 8, !tbaa !9
  store ptr %5, ptr @lo, align 8, !tbaa !9
  store ptr null, ptr @lres, align 8, !tbaa !9
  %6 = getelementptr inbounds i8, ptr %5, i64 304
  %.070 = load ptr, ptr %6, align 8, !tbaa !9
  %.not71 = icmp eq ptr %.070, null
  br i1 %.not71, label %._crit_edge76, label %.lr.ph75

.lr.ph75:                                         ; preds = %.lr.ph79, %._crit_edge69
  %.072 = phi ptr [ %.0, %._crit_edge69 ], [ %.070, %.lr.ph79 ]
  store ptr %.072, ptr @le, align 8, !tbaa !9
  store i32 0, ptr @lnum_inertia_conds, align 4, !tbaa !5
  %7 = getelementptr inbounds i8, ptr %.072, i64 136
  %8 = load i32, ptr %7, align 8, !tbaa !11
  %9 = icmp sgt i32 %8, 0
  br i1 %9, label %.preheader.lr.ph, label %._crit_edge58.thread

.preheader.lr.ph:                                 ; preds = %.lr.ph75
  %10 = getelementptr inbounds i8, ptr %.072, i64 128
  %11 = load ptr, ptr %10, align 8, !tbaa !13
  %12 = load ptr, ptr @lo, align 8
  %13 = getelementptr inbounds i8, ptr %12, i64 8
  br label %.preheader

.preheader:                                       ; preds = %.preheader.lr.ph, %.thread
  %14 = phi i32 [ %8, %.preheader.lr.ph ], [ %42, %.thread ]
  %indvars.iv83 = phi i64 [ 0, %.preheader.lr.ph ], [ %indvars.iv.next84, %.thread ]
  %15 = phi i32 [ 0, %.preheader.lr.ph ], [ %43, %.thread ]
  %16 = getelementptr inbounds %struct._Fact, ptr %11, i64 %indvars.iv83
  %17 = load i32, ptr %16, align 4, !tbaa !14
  %18 = sext i32 %17 to i64
  %19 = getelementptr inbounds [50 x i32], ptr @garity, i64 0, i64 %18
  %20 = load i32, ptr %19, align 4, !tbaa !5
  %21 = icmp sgt i32 %20, 0
  br i1 %21, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %.preheader
  %22 = getelementptr inbounds i8, ptr %16, i64 4
  %wide.trip.count = zext nneg i32 %20 to i64
  br label %23

23:                                               ; preds = %.lr.ph, %31
  %indvars.iv = phi i64 [ 0, %.lr.ph ], [ %indvars.iv.next, %31 ]
  %24 = getelementptr inbounds [5 x i32], ptr %22, i64 0, i64 %indvars.iv
  %25 = load i32, ptr %24, align 4, !tbaa !5
  %26 = icmp slt i32 %25, 0
  br i1 %26, label %27, label %31

27:                                               ; preds = %23
  %28 = xor i32 %25, -1
  %29 = load i32, ptr %13, align 8, !tbaa !16
  %30 = icmp sgt i32 %29, %28
  br i1 %30, label %.thread, label %31

31:                                               ; preds = %23, %27
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond.not, label %._crit_edge, label %23, !llvm.loop !18

._crit_edge:                                      ; preds = %31, %.preheader
  %32 = getelementptr inbounds [50 x i8], ptr @gis_added, i64 0, i64 %18
  %33 = load i8, ptr %32, align 1, !tbaa !20
  %.not51 = icmp eq i8 %33, 0
  br i1 %.not51, label %34, label %.thread

34:                                               ; preds = %._crit_edge
  %35 = getelementptr inbounds [50 x i8], ptr @gis_deleted, i64 0, i64 %18
  %36 = load i8, ptr %35, align 1, !tbaa !20
  %.not52 = icmp eq i8 %36, 0
  br i1 %.not52, label %37, label %.thread

37:                                               ; preds = %34
  %38 = add nsw i32 %15, 1
  store i32 %38, ptr @lnum_inertia_conds, align 4, !tbaa !5
  %39 = sext i32 %15 to i64
  %40 = getelementptr inbounds [15 x i32], ptr @linertia_conds, i64 0, i64 %39
  %41 = trunc nuw nsw i64 %indvars.iv83 to i32
  store i32 %41, ptr %40, align 4, !tbaa !5
  %.pre = load i32, ptr %7, align 8, !tbaa !11
  br label %.thread

.thread:                                          ; preds = %27, %._crit_edge, %34, %37
  %42 = phi i32 [ %14, %._crit_edge ], [ %14, %34 ], [ %.pre, %37 ], [ %14, %27 ]
  %43 = phi i32 [ %15, %._crit_edge ], [ %15, %34 ], [ %38, %37 ], [ %15, %27 ]
  %indvars.iv.next84 = add nuw nsw i64 %indvars.iv83, 1
  %44 = sext i32 %42 to i64
  %45 = icmp slt i64 %indvars.iv.next84, %44
  br i1 %45, label %.preheader, label %._crit_edge58, !llvm.loop !21

._crit_edge58:                                    ; preds = %.thread
  store i32 0, ptr @lnum_multiply_parameters, align 4, !tbaa !5
  %46 = load i32, ptr %.072, align 8, !tbaa !22
  %47 = icmp sgt i32 %46, 0
  br i1 %47, label %.lr.ph68, label %._crit_edge69

._crit_edge58.thread:                             ; preds = %.lr.ph75
  store i32 0, ptr @lnum_multiply_parameters, align 4, !tbaa !5
  %48 = load i32, ptr %.072, align 8, !tbaa !22
  %49 = icmp sgt i32 %48, 0
  br i1 %49, label %.thread54.loopexit.preheader, label %._crit_edge69

.lr.ph68:                                         ; preds = %._crit_edge58
  %50 = load ptr, ptr @lo, align 8, !tbaa !9
  %51 = getelementptr inbounds i8, ptr %50, i64 8
  %52 = icmp sgt i32 %43, 0
  br i1 %52, label %.lr.ph68.split.us, label %.thread54.loopexit.preheader

.thread54.loopexit.preheader:                     ; preds = %._crit_edge58.thread, %.lr.ph68
  br label %.thread54.loopexit

.lr.ph68.split.us:                                ; preds = %.lr.ph68
  %53 = getelementptr inbounds i8, ptr %.072, i64 128
  %54 = load ptr, ptr %53, align 8, !tbaa !13
  %wide.trip.count94 = zext nneg i32 %43 to i64
  br label %.lr.ph65.us

.lr.ph65.us:                                      ; preds = %.loopexit, %.lr.ph68.split.us
  %55 = phi i32 [ %46, %.lr.ph68.split.us ], [ %74, %.loopexit ]
  %56 = phi i32 [ 0, %.lr.ph68.split.us ], [ %75, %.loopexit ]
  %.166.us = phi i32 [ 0, %.lr.ph68.split.us ], [ %76, %.loopexit ]
  %57 = load i32, ptr %51, align 8, !tbaa !16
  %58 = add nsw i32 %57, %.166.us
  br label %59

59:                                               ; preds = %.lr.ph65.us, %._crit_edge62.us
  %indvars.iv91 = phi i64 [ 0, %.lr.ph65.us ], [ %indvars.iv.next92, %._crit_edge62.us ]
  %60 = getelementptr inbounds [15 x i32], ptr @linertia_conds, i64 0, i64 %indvars.iv91
  %61 = load i32, ptr %60, align 4, !tbaa !5
  %62 = sext i32 %61 to i64
  %63 = getelementptr inbounds %struct._Fact, ptr %54, i64 %62
  %64 = load i32, ptr %63, align 4, !tbaa !14
  %65 = sext i32 %64 to i64
  %66 = getelementptr inbounds [50 x i32], ptr @garity, i64 0, i64 %65
  %67 = load i32, ptr %66, align 4, !tbaa !5
  %68 = icmp sgt i32 %67, 0
  br i1 %68, label %.lr.ph61.us.preheader, label %._crit_edge62.us

.lr.ph61.us.preheader:                            ; preds = %59
  %wide.trip.count89 = zext nneg i32 %67 to i64
  br label %.lr.ph61.us

69:                                               ; preds = %.lr.ph61.us
  %indvars.iv.next87 = add nuw nsw i64 %indvars.iv86, 1
  %exitcond90.not = icmp eq i64 %indvars.iv.next87, %wide.trip.count89
  br i1 %exitcond90.not, label %._crit_edge62.us, label %.lr.ph61.us, !llvm.loop !23

._crit_edge62.us:                                 ; preds = %69, %59
  %indvars.iv.next92 = add nuw nsw i64 %indvars.iv91, 1
  %exitcond95.not = icmp eq i64 %indvars.iv.next92, %wide.trip.count94
  br i1 %exitcond95.not, label %..thread54.loopexit_crit_edge.us, label %59, !llvm.loop !24

.lr.ph61.us:                                      ; preds = %.lr.ph61.us.preheader, %69
  %indvars.iv86 = phi i64 [ 0, %.lr.ph61.us.preheader ], [ %indvars.iv.next87, %69 ]
  %70 = getelementptr inbounds %struct._Fact, ptr %54, i64 %62, i32 1, i64 %indvars.iv86
  %71 = load i32, ptr %70, align 4, !tbaa !5
  %72 = xor i32 %71, %58
  %73 = icmp eq i32 %72, -1
  br i1 %73, label %.loopexit, label %69

.loopexit:                                        ; preds = %.lr.ph61.us, %..thread54.loopexit_crit_edge.us
  %74 = phi i32 [ %.pre99, %..thread54.loopexit_crit_edge.us ], [ %55, %.lr.ph61.us ]
  %75 = phi i32 [ %78, %..thread54.loopexit_crit_edge.us ], [ %56, %.lr.ph61.us ]
  %76 = add nuw nsw i32 %.166.us, 1
  %77 = icmp slt i32 %76, %74
  br i1 %77, label %.lr.ph65.us, label %._crit_edge69, !llvm.loop !25

..thread54.loopexit_crit_edge.us:                 ; preds = %._crit_edge62.us
  %78 = add nsw i32 %56, 1
  store i32 %78, ptr @lnum_multiply_parameters, align 4, !tbaa !5
  %79 = sext i32 %56 to i64
  %80 = getelementptr inbounds [15 x i32], ptr @lmultiply_parameters, i64 0, i64 %79
  store i32 %.166.us, ptr %80, align 4, !tbaa !5
  %.pre99 = load i32, ptr %.072, align 8, !tbaa !22
  br label %.loopexit

.thread54.loopexit:                               ; preds = %.thread54.loopexit.preheader, %.thread54.loopexit
  %81 = phi i32 [ %82, %.thread54.loopexit ], [ 0, %.thread54.loopexit.preheader ]
  %.166 = phi i32 [ %85, %.thread54.loopexit ], [ 0, %.thread54.loopexit.preheader ]
  %82 = add nuw nsw i32 %81, 1
  store i32 %82, ptr @lnum_multiply_parameters, align 4, !tbaa !5
  %83 = zext nneg i32 %81 to i64
  %84 = getelementptr inbounds [15 x i32], ptr @lmultiply_parameters, i64 0, i64 %83
  store i32 %.166, ptr %84, align 4, !tbaa !5
  %85 = add nuw nsw i32 %.166, 1
  %86 = load i32, ptr %.072, align 8, !tbaa !22
  %87 = icmp slt i32 %85, %86
  br i1 %87, label %.thread54.loopexit, label %._crit_edge69, !llvm.loop !25

._crit_edge69:                                    ; preds = %.thread54.loopexit, %.loopexit, %._crit_edge58.thread, %._crit_edge58
  tail call void @unify_easy_inertia_conditions(i32 noundef 0)
  %88 = getelementptr inbounds i8, ptr %.072, i64 248
  %.0 = load ptr, ptr %88, align 8, !tbaa !9
  %.not = icmp eq ptr %.0, null
  br i1 %.not, label %._crit_edge76.loopexit, label %.lr.ph75, !llvm.loop !26

._crit_edge76.loopexit:                           ; preds = %._crit_edge69
  %.pre100 = load ptr, ptr @lo, align 8, !tbaa !9
  %.phi.trans.insert = getelementptr inbounds i8, ptr %.pre100, i64 304
  %.pre101 = load ptr, ptr %.phi.trans.insert, align 8, !tbaa !27
  br label %._crit_edge76

._crit_edge76:                                    ; preds = %._crit_edge76.loopexit, %.lr.ph79
  %89 = phi ptr [ %.pre101, %._crit_edge76.loopexit ], [ null, %.lr.ph79 ]
  tail call void @free_NormEffect(ptr noundef %89) #2
  %90 = load ptr, ptr @lres, align 8, !tbaa !9
  %91 = load ptr, ptr @lo, align 8, !tbaa !9
  %92 = getelementptr inbounds i8, ptr %91, i64 304
  store ptr %90, ptr %92, align 8, !tbaa !27
  %indvars.iv.next97 = add nuw nsw i64 %indvars.iv96, 1
  %93 = load i32, ptr @gnum_easy_operators, align 4, !tbaa !5
  %94 = sext i32 %93 to i64
  %95 = icmp slt i64 %indvars.iv.next97, %94
  br i1 %95, label %.lr.ph79, label %._crit_edge80, !llvm.loop !28

._crit_edge80:                                    ; preds = %._crit_edge76, %0
  ret void
}

; Function Attrs: nounwind uwtable
declare dso_local void @unify_easy_inertia_conditions(i32 noundef) local_unnamed_addr #0

declare void @free_NormEffect(ptr noundef) local_unnamed_addr #1

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" }
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 = { 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, !6, i64 136}
!12 = !{!"_NormEffect", !6, i64 0, !7, i64 4, !7, i64 64, !10, i64 128, !6, i64 136, !10, i64 144, !6, i64 152, !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, !10, i64 248}
!13 = !{!12, !10, i64 128}
!14 = !{!15, !6, i64 0}
!15 = !{!"_Fact", !6, i64 0, !7, i64 4}
!16 = !{!17, !6, i64 8}
!17 = !{!"_NormOperator", !10, i64 0, !6, i64 8, !7, i64 12, !7, i64 72, !7, i64 132, !6, i64 192, !7, i64 196, !10, i64 256, !6, i64 264, !10, i64 272, !10, i64 280, !10, i64 288, !6, i64 296, !10, i64 304, !7, i64 312}
!18 = distinct !{!18, !19}
!19 = !{!"llvm.loop.mustprogress"}
!20 = !{!7, !7, i64 0}
!21 = distinct !{!21, !19}
!22 = !{!12, !6, i64 0}
!23 = distinct !{!23, !19}
!24 = distinct !{!24, !19}
!25 = distinct !{!25, !19}
!26 = distinct !{!26, !19}
!27 = !{!17, !10, i64 304}
!28 = distinct !{!28, !19}


; Effective O3 passes: BDCEPass,ConstraintEliminationPass,CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopInstSimplifyPass,LoopRotatePass,LoopSimplifyCFGPass,LoopSimplifyPass,LoopUnrollPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass