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

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

@gnum_hard_operators = external global i32, align 4
@ghard_operators = external global ptr, align 8

; 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 @cleanup_hard_domain() #1 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %1) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #4
  store i32 0, ptr %1, align 4, !tbaa !5
  br label %7

7:                                                ; preds = %221, %0
  %8 = load i32, ptr %1, align 4, !tbaa !5
  %9 = load i32, ptr @gnum_hard_operators, align 4, !tbaa !5
  %10 = icmp slt i32 %8, %9
  br i1 %10, label %11, label %224

11:                                               ; preds = %7
  %12 = load ptr, ptr @ghard_operators, align 8, !tbaa !9
  %13 = load i32, ptr %1, align 4, !tbaa !5
  %14 = sext i32 %13 to i64
  %15 = getelementptr inbounds ptr, ptr %12, i64 %14
  %16 = load ptr, ptr %15, align 8, !tbaa !9
  store ptr %16, ptr %5, align 8, !tbaa !9
  store i32 0, ptr %2, align 4, !tbaa !5
  br label %17

17:                                               ; preds = %83, %80, %32, %11
  %18 = load i32, ptr %2, align 4, !tbaa !5
  %19 = load ptr, ptr %5, align 8, !tbaa !9
  %20 = getelementptr inbounds %struct._Operator, ptr %19, i32 0, i32 4
  %21 = load i32, ptr %20, align 8, !tbaa !11
  %22 = icmp slt i32 %18, %21
  br i1 %22, label %23, label %91

23:                                               ; preds = %17
  %24 = load i32, ptr %2, align 4, !tbaa !5
  %25 = mul nsw i32 %24, -1
  %26 = sub nsw i32 %25, 1
  %27 = load ptr, ptr %5, align 8, !tbaa !9
  %28 = getelementptr inbounds %struct._Operator, ptr %27, i32 0, i32 7
  %29 = load ptr, ptr %28, align 8, !tbaa !13
  %30 = call zeroext i8 @var_used_in_wff(i32 noundef %26, ptr noundef %29)
  %31 = icmp ne i8 %30, 0
  br i1 %31, label %32, label %35

32:                                               ; preds = %23
  %33 = load i32, ptr %2, align 4, !tbaa !5
  %34 = add nsw i32 %33, 1
  store i32 %34, ptr %2, align 4, !tbaa !5
  br label %17, !llvm.loop !14

35:                                               ; preds = %23
  %36 = load ptr, ptr %5, align 8, !tbaa !9
  %37 = getelementptr inbounds %struct._Operator, ptr %36, i32 0, i32 8
  %38 = load ptr, ptr %37, align 8, !tbaa !16
  store ptr %38, ptr %6, align 8, !tbaa !9
  br label %39

39:                                               ; preds = %73, %35
  %40 = load ptr, ptr %6, align 8, !tbaa !9
  %41 = icmp ne ptr %40, null
  br i1 %41, label %42, label %77

42:                                               ; preds = %39
  %43 = load i32, ptr %2, align 4, !tbaa !5
  %44 = mul nsw i32 %43, -1
  %45 = sub nsw i32 %44, 1
  %46 = load ptr, ptr %6, align 8, !tbaa !9
  %47 = getelementptr inbounds %struct._Effect, ptr %46, i32 0, i32 3
  %48 = load ptr, ptr %47, align 8, !tbaa !17
  %49 = call zeroext i8 @var_used_in_wff(i32 noundef %45, ptr noundef %48)
  %50 = icmp ne i8 %49, 0
  br i1 %50, label %51, label %52

51:                                               ; preds = %42
  br label %77

52:                                               ; preds = %42
  %53 = load i32, ptr %2, align 4, !tbaa !5
  %54 = mul nsw i32 %53, -1
  %55 = sub nsw i32 %54, 1
  %56 = load ptr, ptr %6, align 8, !tbaa !9
  %57 = getelementptr inbounds %struct._Effect, ptr %56, i32 0, i32 4
  %58 = load ptr, ptr %57, align 8, !tbaa !19
  %59 = call zeroext i8 @var_used_in_literals(i32 noundef %55, ptr noundef %58)
  %60 = icmp ne i8 %59, 0
  br i1 %60, label %61, label %62

61:                                               ; preds = %52
  br label %77

62:                                               ; preds = %52
  %63 = load i32, ptr %2, align 4, !tbaa !5
  %64 = mul nsw i32 %63, -1
  %65 = sub nsw i32 %64, 1
  %66 = load ptr, ptr %6, align 8, !tbaa !9
  %67 = getelementptr inbounds %struct._Effect, ptr %66, i32 0, i32 5
  %68 = load ptr, ptr %67, align 8, !tbaa !20
  %69 = call zeroext i8 @var_used_in_numeric_effects(i32 noundef %65, ptr noundef %68)
  %70 = icmp ne i8 %69, 0
  br i1 %70, label %71, label %72

71:                                               ; preds = %62
  br label %77

72:                                               ; preds = %62
  br label %73

73:                                               ; preds = %72
  %74 = load ptr, ptr %6, align 8, !tbaa !9
  %75 = getelementptr inbounds %struct._Effect, ptr %74, i32 0, i32 6
  %76 = load ptr, ptr %75, align 8, !tbaa !21
  store ptr %76, ptr %6, align 8, !tbaa !9
  br label %39, !llvm.loop !22

77:                                               ; preds = %71, %61, %51, %39
  %78 = load ptr, ptr %6, align 8, !tbaa !9
  %79 = icmp ne ptr %78, null
  br i1 %79, label %80, label %83

80:                                               ; preds = %77
  %81 = load i32, ptr %2, align 4, !tbaa !5
  %82 = add nsw i32 %81, 1
  store i32 %82, ptr %2, align 4, !tbaa !5
  br label %17, !llvm.loop !14

83:                                               ; preds = %77
  %84 = load ptr, ptr %5, align 8, !tbaa !9
  %85 = getelementptr inbounds %struct._Operator, ptr %84, i32 0, i32 6
  %86 = load i32, ptr %2, align 4, !tbaa !5
  %87 = sext i32 %86 to i64
  %88 = getelementptr inbounds [15 x i8], ptr %85, i64 0, i64 %87
  store i8 1, ptr %88, align 1, !tbaa !23
  %89 = load i32, ptr %2, align 4, !tbaa !5
  %90 = add nsw i32 %89, 1
  store i32 %90, ptr %2, align 4, !tbaa !5
  br label %17, !llvm.loop !14

91:                                               ; preds = %17
  %92 = load ptr, ptr %5, align 8, !tbaa !9
  %93 = getelementptr inbounds %struct._Operator, ptr %92, i32 0, i32 8
  %94 = load ptr, ptr %93, align 8, !tbaa !16
  store ptr %94, ptr %6, align 8, !tbaa !9
  br label %95

95:                                               ; preds = %216, %91
  %96 = load ptr, ptr %6, align 8, !tbaa !9
  %97 = icmp ne ptr %96, null
  br i1 %97, label %98, label %220

98:                                               ; preds = %95
  store i32 0, ptr %2, align 4, !tbaa !5
  br label %99

99:                                               ; preds = %198, %143, %131, %119, %98
  %100 = load i32, ptr %2, align 4, !tbaa !5
  %101 = load ptr, ptr %6, align 8, !tbaa !9
  %102 = getelementptr inbounds %struct._Effect, ptr %101, i32 0, i32 0
  %103 = load i32, ptr %102, align 8, !tbaa !24
  %104 = icmp slt i32 %100, %103
  br i1 %104, label %105, label %215

105:                                              ; preds = %99
  %106 = load ptr, ptr %5, align 8, !tbaa !9
  %107 = getelementptr inbounds %struct._Operator, ptr %106, i32 0, i32 4
  %108 = load i32, ptr %107, align 8, !tbaa !11
  %109 = load i32, ptr %2, align 4, !tbaa !5
  %110 = add nsw i32 %108, %109
  store i32 %110, ptr %4, align 4, !tbaa !5
  %111 = load i32, ptr %4, align 4, !tbaa !5
  %112 = mul nsw i32 %111, -1
  %113 = sub nsw i32 %112, 1
  %114 = load ptr, ptr %6, align 8, !tbaa !9
  %115 = getelementptr inbounds %struct._Effect, ptr %114, i32 0, i32 3
  %116 = load ptr, ptr %115, align 8, !tbaa !17
  %117 = call zeroext i8 @var_used_in_wff(i32 noundef %113, ptr noundef %116)
  %118 = icmp ne i8 %117, 0
  br i1 %118, label %119, label %122

119:                                              ; preds = %105
  %120 = load i32, ptr %2, align 4, !tbaa !5
  %121 = add nsw i32 %120, 1
  store i32 %121, ptr %2, align 4, !tbaa !5
  br label %99, !llvm.loop !25

122:                                              ; preds = %105
  %123 = load i32, ptr %4, align 4, !tbaa !5
  %124 = mul nsw i32 %123, -1
  %125 = sub nsw i32 %124, 1
  %126 = load ptr, ptr %6, align 8, !tbaa !9
  %127 = getelementptr inbounds %struct._Effect, ptr %126, i32 0, i32 4
  %128 = load ptr, ptr %127, align 8, !tbaa !19
  %129 = call zeroext i8 @var_used_in_literals(i32 noundef %125, ptr noundef %128)
  %130 = icmp ne i8 %129, 0
  br i1 %130, label %131, label %134

131:                                              ; preds = %122
  %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 %99, !llvm.loop !25

134:                                              ; preds = %122
  %135 = load i32, ptr %4, align 4, !tbaa !5
  %136 = mul nsw i32 %135, -1
  %137 = sub nsw i32 %136, 1
  %138 = load ptr, ptr %6, align 8, !tbaa !9
  %139 = getelementptr inbounds %struct._Effect, ptr %138, i32 0, i32 5
  %140 = load ptr, ptr %139, align 8, !tbaa !20
  %141 = call zeroext i8 @var_used_in_numeric_effects(i32 noundef %137, ptr noundef %140)
  %142 = icmp ne i8 %141, 0
  br i1 %142, label %143, label %146

143:                                              ; preds = %134
  %144 = load i32, ptr %2, align 4, !tbaa !5
  %145 = add nsw i32 %144, 1
  store i32 %145, ptr %2, align 4, !tbaa !5
  br label %99, !llvm.loop !25

146:                                              ; preds = %134
  %147 = load ptr, ptr %6, align 8, !tbaa !9
  %148 = getelementptr inbounds %struct._Effect, ptr %147, i32 0, i32 2
  %149 = load i32, ptr %2, align 4, !tbaa !5
  %150 = sext i32 %149 to i64
  %151 = getelementptr inbounds [15 x ptr], ptr %148, i64 0, i64 %150
  %152 = load ptr, ptr %151, align 8, !tbaa !9
  %153 = icmp ne ptr %152, null
  br i1 %153, label %154, label %161

154:                                              ; preds = %146
  %155 = load ptr, ptr %6, align 8, !tbaa !9
  %156 = getelementptr inbounds %struct._Effect, ptr %155, i32 0, i32 2
  %157 = load i32, ptr %2, align 4, !tbaa !5
  %158 = sext i32 %157 to i64
  %159 = getelementptr inbounds [15 x ptr], ptr %156, i64 0, i64 %158
  %160 = load ptr, ptr %159, align 8, !tbaa !9
  call void @free(ptr noundef %160) #4
  br label %161

161:                                              ; preds = %154, %146
  %162 = load i32, ptr %2, align 4, !tbaa !5
  store i32 %162, ptr %3, align 4, !tbaa !5
  br label %163

163:                                              ; preds = %195, %161
  %164 = load i32, ptr %3, align 4, !tbaa !5
  %165 = load ptr, ptr %6, align 8, !tbaa !9
  %166 = getelementptr inbounds %struct._Effect, ptr %165, i32 0, i32 0
  %167 = load i32, ptr %166, align 8, !tbaa !24
  %168 = sub nsw i32 %167, 1
  %169 = icmp slt i32 %164, %168
  br i1 %169, label %170, label %198

170:                                              ; preds = %163
  %171 = load ptr, ptr %6, align 8, !tbaa !9
  %172 = getelementptr inbounds %struct._Effect, ptr %171, i32 0, i32 2
  %173 = load i32, ptr %3, align 4, !tbaa !5
  %174 = add nsw i32 %173, 1
  %175 = sext i32 %174 to i64
  %176 = getelementptr inbounds [15 x ptr], ptr %172, i64 0, i64 %175
  %177 = load ptr, ptr %176, align 8, !tbaa !9
  %178 = load ptr, ptr %6, align 8, !tbaa !9
  %179 = getelementptr inbounds %struct._Effect, ptr %178, i32 0, i32 2
  %180 = load i32, ptr %3, align 4, !tbaa !5
  %181 = sext i32 %180 to i64
  %182 = getelementptr inbounds [15 x ptr], ptr %179, i64 0, i64 %181
  store ptr %177, ptr %182, align 8, !tbaa !9
  %183 = load ptr, ptr %6, align 8, !tbaa !9
  %184 = getelementptr inbounds %struct._Effect, ptr %183, i32 0, i32 2
  %185 = load i32, ptr %3, align 4, !tbaa !5
  %186 = add nsw i32 %185, 1
  %187 = sext i32 %186 to i64
  %188 = getelementptr inbounds [15 x ptr], ptr %184, i64 0, i64 %187
  %189 = load ptr, ptr %188, align 8, !tbaa !9
  %190 = load ptr, ptr %6, align 8, !tbaa !9
  %191 = getelementptr inbounds %struct._Effect, ptr %190, i32 0, i32 2
  %192 = load i32, ptr %3, align 4, !tbaa !5
  %193 = sext i32 %192 to i64
  %194 = getelementptr inbounds [15 x ptr], ptr %191, i64 0, i64 %193
  store ptr %189, ptr %194, align 8, !tbaa !9
  br label %195

195:                                              ; preds = %170
  %196 = load i32, ptr %3, align 4, !tbaa !5
  %197 = add nsw i32 %196, 1
  store i32 %197, ptr %3, align 4, !tbaa !5
  br label %163, !llvm.loop !26

198:                                              ; preds = %163
  %199 = load ptr, ptr %6, align 8, !tbaa !9
  %200 = getelementptr inbounds %struct._Effect, ptr %199, i32 0, i32 0
  %201 = load i32, ptr %200, align 8, !tbaa !24
  %202 = add nsw i32 %201, -1
  store i32 %202, ptr %200, align 8, !tbaa !24
  %203 = load i32, ptr %4, align 4, !tbaa !5
  %204 = load ptr, ptr %6, align 8, !tbaa !9
  %205 = getelementptr inbounds %struct._Effect, ptr %204, i32 0, i32 3
  %206 = load ptr, ptr %205, align 8, !tbaa !17
  call void @decrement_inferior_vars(i32 noundef %203, ptr noundef %206)
  %207 = load i32, ptr %4, align 4, !tbaa !5
  %208 = load ptr, ptr %6, align 8, !tbaa !9
  %209 = getelementptr inbounds %struct._Effect, ptr %208, i32 0, i32 4
  %210 = load ptr, ptr %209, align 8, !tbaa !19
  call void @decrement_inferior_vars_in_literals(i32 noundef %207, ptr noundef %210)
  %211 = load i32, ptr %4, align 4, !tbaa !5
  %212 = load ptr, ptr %6, align 8, !tbaa !9
  %213 = getelementptr inbounds %struct._Effect, ptr %212, i32 0, i32 5
  %214 = load ptr, ptr %213, align 8, !tbaa !20
  call void @decrement_inferior_vars_in_numeric_effects(i32 noundef %211, ptr noundef %214)
  br label %99, !llvm.loop !25

215:                                              ; preds = %99
  br label %216

216:                                              ; preds = %215
  %217 = load ptr, ptr %6, align 8, !tbaa !9
  %218 = getelementptr inbounds %struct._Effect, ptr %217, i32 0, i32 6
  %219 = load ptr, ptr %218, align 8, !tbaa !21
  store ptr %219, ptr %6, align 8, !tbaa !9
  br label %95, !llvm.loop !27

220:                                              ; preds = %95
  br label %221

221:                                              ; preds = %220
  %222 = load i32, ptr %1, align 4, !tbaa !5
  %223 = add nsw i32 %222, 1
  store i32 %223, ptr %1, align 4, !tbaa !5
  br label %7, !llvm.loop !28

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

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

declare zeroext i8 @var_used_in_wff(i32 noundef, ptr noundef) #2

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

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

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

declare void @decrement_inferior_vars(i32 noundef, ptr noundef) #2

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

; Function Attrs: nounwind uwtable
declare dso_local void @decrement_inferior_vars_in_numeric_effects(i32 noundef, 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 = { "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 "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 }

!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 = !{!"_Operator", !10, i64 0, !7, i64 8, !6, i64 128, !7, i64 132, !6, i64 136, !7, i64 140, !7, i64 200, !10, i64 216, !10, i64 224, !7, i64 232}
!13 = !{!12, !10, i64 216}
!14 = distinct !{!14, !15}
!15 = !{!"llvm.loop.mustprogress"}
!16 = !{!12, !10, i64 224}
!17 = !{!18, !10, i64 184}
!18 = !{!"_Effect", !6, i64 0, !7, i64 4, !7, i64 64, !10, i64 184, !10, i64 192, !10, i64 200, !10, i64 208, !10, i64 216}
!19 = !{!18, !10, i64 192}
!20 = !{!18, !10, i64 200}
!21 = !{!18, !10, i64 208}
!22 = distinct !{!22, !15}
!23 = !{!7, !7, i64 0}
!24 = !{!18, !6, i64 0}
!25 = distinct !{!25, !15}
!26 = distinct !{!26, !15}
!27 = distinct !{!27, !15}
!28 = distinct !{!28, !15}


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

@gnum_hard_operators = external local_unnamed_addr global i32, align 4
@ghard_operators = external local_unnamed_addr global ptr, align 8

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

.lr.ph94:                                         ; preds = %0, %._crit_edge91
  %indvars.iv105 = phi i64 [ %indvars.iv.next106, %._crit_edge91 ], [ 0, %0 ]
  %3 = load ptr, ptr @ghard_operators, align 8, !tbaa !9
  %4 = getelementptr inbounds ptr, ptr %3, i64 %indvars.iv105
  %5 = load ptr, ptr %4, align 8, !tbaa !9
  %6 = getelementptr inbounds i8, ptr %5, i64 136
  %7 = load i32, ptr %6, align 8, !tbaa !11
  %8 = icmp sgt i32 %7, 0
  br i1 %8, label %.lr.ph79, label %._crit_edge

.lr.ph79:                                         ; preds = %.lr.ph94
  %9 = getelementptr inbounds i8, ptr %5, i64 216
  %10 = getelementptr inbounds i8, ptr %5, i64 224
  %11 = getelementptr inbounds i8, ptr %5, i64 200
  br label %12

12:                                               ; preds = %.lr.ph79, %.backedge
  %indvars.iv = phi i64 [ 0, %.lr.ph79 ], [ %indvars.iv.next, %.backedge ]
  %13 = load ptr, ptr %9, align 8, !tbaa !13
  %14 = trunc i64 %indvars.iv to i32
  %15 = xor i32 %14, -1
  %16 = tail call zeroext i8 @var_used_in_wff(i32 noundef %15, ptr noundef %13) #3
  %.not69 = icmp eq i8 %16, 0
  br i1 %.not69, label %20, label %.backedge

.backedge:                                        ; preds = %30, %26, %.lr.ph, %12, %.critedge
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %17 = load i32, ptr %6, align 8, !tbaa !11
  %18 = sext i32 %17 to i64
  %19 = icmp slt i64 %indvars.iv.next, %18
  br i1 %19, label %12, label %._crit_edge, !llvm.loop !14

20:                                               ; preds = %12
  %.075 = load ptr, ptr %10, align 8, !tbaa !9
  %.not7076 = icmp eq ptr %.075, null
  br i1 %.not7076, label %.critedge, label %.lr.ph

21:                                               ; preds = %30
  %22 = getelementptr inbounds i8, ptr %.077, i64 208
  %.0 = load ptr, ptr %22, align 8, !tbaa !9
  %.not70 = icmp eq ptr %.0, null
  br i1 %.not70, label %.critedge, label %.lr.ph, !llvm.loop !16

.lr.ph:                                           ; preds = %20, %21
  %.077 = phi ptr [ %.0, %21 ], [ %.075, %20 ]
  %23 = getelementptr inbounds i8, ptr %.077, i64 184
  %24 = load ptr, ptr %23, align 8, !tbaa !17
  %25 = tail call zeroext i8 @var_used_in_wff(i32 noundef %15, ptr noundef %24) #3
  %.not71 = icmp eq i8 %25, 0
  br i1 %.not71, label %26, label %.backedge

26:                                               ; preds = %.lr.ph
  %27 = getelementptr inbounds i8, ptr %.077, i64 192
  %28 = load ptr, ptr %27, align 8, !tbaa !19
  %29 = tail call zeroext i8 @var_used_in_literals(i32 noundef %15, ptr noundef %28)
  %.not72 = icmp eq i8 %29, 0
  br i1 %.not72, label %30, label %.backedge

30:                                               ; preds = %26
  %31 = getelementptr inbounds i8, ptr %.077, i64 200
  %32 = load ptr, ptr %31, align 8, !tbaa !20
  %33 = tail call zeroext i8 @var_used_in_numeric_effects(i32 noundef %15, ptr noundef %32)
  %.not73 = icmp eq i8 %33, 0
  br i1 %.not73, label %21, label %.backedge

.critedge:                                        ; preds = %21, %20
  %34 = getelementptr inbounds [15 x i8], ptr %11, i64 0, i64 %indvars.iv
  store i8 1, ptr %34, align 1, !tbaa !21
  br label %.backedge

._crit_edge:                                      ; preds = %.backedge, %.lr.ph94
  %35 = getelementptr inbounds i8, ptr %5, i64 224
  %.187 = load ptr, ptr %35, align 8, !tbaa !9
  %.not88 = icmp eq ptr %.187, null
  br i1 %.not88, label %._crit_edge91, label %.preheader

.preheader:                                       ; preds = %._crit_edge, %.outer._crit_edge
  %.189 = phi ptr [ %.1, %.outer._crit_edge ], [ %.187, %._crit_edge ]
  %36 = load i32, ptr %.189, align 8, !tbaa !22
  %37 = icmp sgt i32 %36, 0
  br i1 %37, label %.lr.ph84.lr.ph, label %.outer._crit_edge

.lr.ph84.lr.ph:                                   ; preds = %.preheader
  %38 = getelementptr inbounds i8, ptr %.189, i64 184
  %39 = getelementptr inbounds i8, ptr %.189, i64 192
  %40 = getelementptr inbounds i8, ptr %.189, i64 200
  %41 = getelementptr inbounds i8, ptr %.189, i64 64
  br label %.lr.ph84

.lr.ph84:                                         ; preds = %.lr.ph84.lr.ph, %.outer.backedge
  %indvars.iv99 = phi i64 [ 0, %.lr.ph84.lr.ph ], [ %indvars.iv.next100, %.outer.backedge ]
  %42 = getelementptr inbounds [15 x ptr], ptr %41, i64 0, i64 %indvars.iv99
  %43 = trunc nuw nsw i64 %indvars.iv99 to i32
  br label %44

44:                                               ; preds = %.lr.ph84, %._crit_edge83
  %45 = load i32, ptr %6, align 8, !tbaa !11
  %46 = add nsw i32 %45, %43
  %47 = xor i32 %46, -1
  %48 = load ptr, ptr %38, align 8, !tbaa !17
  %49 = tail call zeroext i8 @var_used_in_wff(i32 noundef %47, ptr noundef %48) #3
  %.not65 = icmp eq i8 %49, 0
  br i1 %.not65, label %53, label %.outer.backedge

.outer.backedge:                                  ; preds = %56, %53, %44
  %indvars.iv.next100 = add nuw nsw i64 %indvars.iv99, 1
  %50 = load i32, ptr %.189, align 8, !tbaa !22
  %51 = sext i32 %50 to i64
  %52 = icmp slt i64 %indvars.iv.next100, %51
  br i1 %52, label %.lr.ph84, label %.outer._crit_edge, !llvm.loop !23

53:                                               ; preds = %44
  %54 = load ptr, ptr %39, align 8, !tbaa !19
  %55 = tail call zeroext i8 @var_used_in_literals(i32 noundef %47, ptr noundef %54)
  %.not66 = icmp eq i8 %55, 0
  br i1 %.not66, label %56, label %.outer.backedge

56:                                               ; preds = %53
  %57 = load ptr, ptr %40, align 8, !tbaa !20
  %58 = tail call zeroext i8 @var_used_in_numeric_effects(i32 noundef %47, ptr noundef %57)
  %.not67 = icmp eq i8 %58, 0
  br i1 %.not67, label %59, label %.outer.backedge

59:                                               ; preds = %56
  %60 = load ptr, ptr %42, align 8, !tbaa !9
  %.not68 = icmp eq ptr %60, null
  br i1 %.not68, label %62, label %61

61:                                               ; preds = %59
  tail call void @free(ptr noundef nonnull %60) #3
  br label %62

62:                                               ; preds = %61, %59
  %63 = load i32, ptr %.189, align 8, !tbaa !22
  %64 = add nsw i32 %63, -1
  %65 = sext i32 %64 to i64
  %66 = icmp slt i64 %indvars.iv99, %65
  br i1 %66, label %.lr.ph82.preheader, label %._crit_edge83

.lr.ph82.preheader:                               ; preds = %62
  %wide.trip.count = zext i32 %64 to i64
  %67 = sub nsw i64 %wide.trip.count, %indvars.iv99
  %min.iters.check = icmp ult i64 %67, 4
  br i1 %min.iters.check, label %.lr.ph82.preheader111, label %vector.ph

vector.ph:                                        ; preds = %.lr.ph82.preheader
  %n.vec = and i64 %67, -4
  %ind.end = add i64 %indvars.iv99, %n.vec
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %offset.idx = add i64 %indvars.iv99, %index
  %68 = add nuw nsw i64 %offset.idx, 1
  %69 = getelementptr inbounds [15 x ptr], ptr %41, i64 0, i64 %68
  %70 = getelementptr inbounds i8, ptr %69, i64 16
  %wide.load = load <2 x ptr>, ptr %69, align 8, !tbaa !9
  %wide.load110 = load <2 x ptr>, ptr %70, align 8, !tbaa !9
  %71 = getelementptr inbounds [15 x ptr], ptr %41, i64 0, i64 %offset.idx
  %72 = getelementptr inbounds i8, ptr %71, i64 16
  store <2 x ptr> %wide.load, ptr %71, align 8, !tbaa !9
  store <2 x ptr> %wide.load110, ptr %72, align 8, !tbaa !9
  %index.next = add nuw i64 %index, 4
  %73 = icmp eq i64 %index.next, %n.vec
  br i1 %73, label %middle.block, label %vector.body, !llvm.loop !24

middle.block:                                     ; preds = %vector.body
  %cmp.n = icmp eq i64 %67, %n.vec
  br i1 %cmp.n, label %._crit_edge83, label %.lr.ph82.preheader111

.lr.ph82.preheader111:                            ; preds = %middle.block, %.lr.ph82.preheader
  %indvars.iv101.ph = phi i64 [ %indvars.iv99, %.lr.ph82.preheader ], [ %ind.end, %middle.block ]
  br label %.lr.ph82

.lr.ph82:                                         ; preds = %.lr.ph82.preheader111, %.lr.ph82
  %indvars.iv101 = phi i64 [ %indvars.iv.next102, %.lr.ph82 ], [ %indvars.iv101.ph, %.lr.ph82.preheader111 ]
  %indvars.iv.next102 = add nuw nsw i64 %indvars.iv101, 1
  %74 = getelementptr inbounds [15 x ptr], ptr %41, i64 0, i64 %indvars.iv.next102
  %75 = load ptr, ptr %74, align 8, !tbaa !9
  %76 = getelementptr inbounds [15 x ptr], ptr %41, i64 0, i64 %indvars.iv101
  store ptr %75, ptr %76, align 8, !tbaa !9
  %exitcond.not = icmp eq i64 %indvars.iv.next102, %wide.trip.count
  br i1 %exitcond.not, label %._crit_edge83, label %.lr.ph82, !llvm.loop !27

._crit_edge83:                                    ; preds = %.lr.ph82, %middle.block, %62
  store i32 %64, ptr %.189, align 8, !tbaa !22
  %77 = load ptr, ptr %38, align 8, !tbaa !17
  tail call void @decrement_inferior_vars(i32 noundef %46, ptr noundef %77) #3
  %78 = load ptr, ptr %39, align 8, !tbaa !19
  tail call void @decrement_inferior_vars_in_literals(i32 noundef %46, ptr noundef %78)
  %79 = load ptr, ptr %40, align 8, !tbaa !20
  tail call void @decrement_inferior_vars_in_numeric_effects(i32 noundef %46, ptr noundef %79)
  %80 = load i32, ptr %.189, align 8, !tbaa !22
  %81 = sext i32 %80 to i64
  %82 = icmp slt i64 %indvars.iv99, %81
  br i1 %82, label %44, label %.outer._crit_edge, !llvm.loop !23

.outer._crit_edge:                                ; preds = %.outer.backedge, %._crit_edge83, %.preheader
  %83 = getelementptr inbounds i8, ptr %.189, i64 208
  %.1 = load ptr, ptr %83, align 8, !tbaa !9
  %.not = icmp eq ptr %.1, null
  br i1 %.not, label %._crit_edge91, label %.preheader, !llvm.loop !28

._crit_edge91:                                    ; preds = %.outer._crit_edge, %._crit_edge
  %indvars.iv.next106 = add nuw nsw i64 %indvars.iv105, 1
  %84 = load i32, ptr @gnum_hard_operators, align 4, !tbaa !5
  %85 = sext i32 %84 to i64
  %86 = icmp slt i64 %indvars.iv.next106, %85
  br i1 %86, label %.lr.ph94, label %._crit_edge95, !llvm.loop !29

._crit_edge95:                                    ; preds = %._crit_edge91, %0
  ret void
}

declare zeroext i8 @var_used_in_wff(i32 noundef, ptr noundef) local_unnamed_addr #1

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

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

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

declare void @decrement_inferior_vars(i32 noundef, ptr noundef) local_unnamed_addr #1

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

; Function Attrs: nounwind uwtable
declare dso_local void @decrement_inferior_vars_in_numeric_effects(i32 noundef, 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" }
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 = { mustprogress nounwind willreturn allockind("free") memory(argmem: readwrite, inaccessiblemem: readwrite) "alloc-family"="malloc" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #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, !6, i64 136}
!12 = !{!"_Operator", !10, i64 0, !7, i64 8, !6, i64 128, !7, i64 132, !6, i64 136, !7, i64 140, !7, i64 200, !10, i64 216, !10, i64 224, !7, i64 232}
!13 = !{!12, !10, i64 216}
!14 = distinct !{!14, !15}
!15 = !{!"llvm.loop.mustprogress"}
!16 = distinct !{!16, !15}
!17 = !{!18, !10, i64 184}
!18 = !{!"_Effect", !6, i64 0, !7, i64 4, !7, i64 64, !10, i64 184, !10, i64 192, !10, i64 200, !10, i64 208, !10, i64 216}
!19 = !{!18, !10, i64 192}
!20 = !{!18, !10, i64 200}
!21 = !{!7, !7, i64 0}
!22 = !{!18, !6, i64 0}
!23 = distinct !{!23, !15}
!24 = distinct !{!24, !15, !25, !26}
!25 = !{!"llvm.loop.isvectorized", i32 1}
!26 = !{!"llvm.loop.unroll.runtime.disable"}
!27 = distinct !{!27, !15, !26, !25}
!28 = distinct !{!28, !15}
!29 = distinct !{!29, !15}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LCSSAPass,LICMPass,LoopInstSimplifyPass,LoopLoadEliminationPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,LoopVectorizePass,SROAPass,SimplifyCFGPass,TailCallElimPass