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

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

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

@.str.14 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.27 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.28 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.29 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.30 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.31 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.40 = external hidden unnamed_addr constant [2 x i8], align 1
@gtype_names = external global [50 x ptr], align 16
@.str.64 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.65 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.66 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.68 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.72 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.73 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.74 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.75 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.76 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.78 = external hidden unnamed_addr constant [62 x i8], align 1
@.str.79 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.80 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.81 = external hidden unnamed_addr constant [39 x i8], align 1
@.str.82 = external hidden unnamed_addr constant [46 x i8], align 1
@.str.83 = external hidden unnamed_addr constant [46 x i8], align 1
@.str.84 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.85 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.86 = external hidden unnamed_addr constant [34 x i8], align 1

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

declare i32 @printf(ptr noundef, ...) #1

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

; Function Attrs: noreturn nounwind
declare void @exit(i32 noundef) #2

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

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

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

; Function Attrs: nounwind uwtable
define dso_local void @print_NormOperator(ptr noundef %0) #3 {
  %2 = alloca ptr, align 8
  %3 = alloca ptr, align 8
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  store ptr %0, ptr %2, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #4
  %6 = load ptr, ptr %2, align 8, !tbaa !5
  %7 = getelementptr inbounds %struct._NormOperator, ptr %6, i32 0, i32 0
  %8 = load ptr, ptr %7, align 8, !tbaa !9
  %9 = getelementptr inbounds %struct._Operator, ptr %8, i32 0, i32 0
  %10 = load ptr, ptr %9, align 8, !tbaa !12
  %11 = call i32 (ptr, ...) @printf(ptr noundef @.str.78, ptr noundef %10)
  store i32 0, ptr %4, align 4, !tbaa !14
  br label %12

12:                                               ; preds = %27, %1
  %13 = load i32, ptr %4, align 4, !tbaa !14
  %14 = load ptr, ptr %2, align 8, !tbaa !5
  %15 = getelementptr inbounds %struct._NormOperator, ptr %14, i32 0, i32 1
  %16 = load i32, ptr %15, align 8, !tbaa !15
  %17 = icmp slt i32 %13, %16
  br i1 %17, label %18, label %30

18:                                               ; preds = %12
  %19 = load i32, ptr %4, align 4, !tbaa !14
  %20 = call i32 (ptr, ...) @printf(ptr noundef @.str.79, i32 noundef %19)
  %21 = load ptr, ptr %2, align 8, !tbaa !5
  %22 = getelementptr inbounds %struct._NormOperator, ptr %21, i32 0, i32 2
  %23 = load i32, ptr %4, align 4, !tbaa !14
  %24 = sext i32 %23 to i64
  %25 = getelementptr inbounds [15 x i32], ptr %22, i64 0, i64 %24
  %26 = load i32, ptr %25, align 4, !tbaa !14
  call void @print_type(i32 noundef %26)
  br label %27

27:                                               ; preds = %18
  %28 = load i32, ptr %4, align 4, !tbaa !14
  %29 = add nsw i32 %28, 1
  store i32 %29, ptr %4, align 4, !tbaa !14
  br label %12, !llvm.loop !16

30:                                               ; preds = %12
  %31 = load ptr, ptr %2, align 8, !tbaa !5
  %32 = getelementptr inbounds %struct._NormOperator, ptr %31, i32 0, i32 5
  %33 = load i32, ptr %32, align 8, !tbaa !18
  %34 = call i32 (ptr, ...) @printf(ptr noundef @.str.80, i32 noundef %33)
  store i32 0, ptr %4, align 4, !tbaa !14
  br label %35

35:                                               ; preds = %75, %30
  %36 = load i32, ptr %4, align 4, !tbaa !14
  %37 = load ptr, ptr %2, align 8, !tbaa !5
  %38 = getelementptr inbounds %struct._NormOperator, ptr %37, i32 0, i32 5
  %39 = load i32, ptr %38, align 8, !tbaa !18
  %40 = icmp slt i32 %36, %39
  br i1 %40, label %41, label %78

41:                                               ; preds = %35
  %42 = load ptr, ptr %2, align 8, !tbaa !5
  %43 = getelementptr inbounds %struct._NormOperator, ptr %42, i32 0, i32 4
  %44 = load i32, ptr %4, align 4, !tbaa !14
  %45 = sext i32 %44 to i64
  %46 = getelementptr inbounds [15 x i32], ptr %43, i64 0, i64 %45
  %47 = load i32, ptr %46, align 4, !tbaa !14
  store i32 %47, ptr %5, align 4, !tbaa !14
  %48 = load i32, ptr %5, align 4, !tbaa !14
  %49 = load ptr, ptr %2, align 8, !tbaa !5
  %50 = getelementptr inbounds %struct._NormOperator, ptr %49, i32 0, i32 0
  %51 = load ptr, ptr %50, align 8, !tbaa !9
  %52 = getelementptr inbounds %struct._Operator, ptr %51, i32 0, i32 1
  %53 = load i32, ptr %5, align 4, !tbaa !14
  %54 = sext i32 %53 to i64
  %55 = getelementptr inbounds [15 x ptr], ptr %52, i64 0, i64 %54
  %56 = load ptr, ptr %55, align 8, !tbaa !5
  %57 = load ptr, ptr %2, align 8, !tbaa !5
  %58 = getelementptr inbounds %struct._NormOperator, ptr %57, i32 0, i32 0
  %59 = load ptr, ptr %58, align 8, !tbaa !9
  %60 = getelementptr inbounds %struct._Operator, ptr %59, i32 0, i32 5
  %61 = load i32, ptr %5, align 4, !tbaa !14
  %62 = sext i32 %61 to i64
  %63 = getelementptr inbounds [15 x i32], ptr %60, i64 0, i64 %62
  %64 = load i32, ptr %63, align 4, !tbaa !14
  %65 = sext i32 %64 to i64
  %66 = getelementptr inbounds [50 x ptr], ptr @gtype_names, i64 0, i64 %65
  %67 = load ptr, ptr %66, align 8, !tbaa !5
  %68 = call i32 (ptr, ...) @printf(ptr noundef @.str.81, i32 noundef %48, ptr noundef %56, ptr noundef %67)
  %69 = load ptr, ptr %2, align 8, !tbaa !5
  %70 = getelementptr inbounds %struct._NormOperator, ptr %69, i32 0, i32 6
  %71 = load i32, ptr %4, align 4, !tbaa !14
  %72 = sext i32 %71 to i64
  %73 = getelementptr inbounds [15 x i32], ptr %70, i64 0, i64 %72
  %74 = load i32, ptr %73, align 4, !tbaa !14
  call void @print_type(i32 noundef %74)
  br label %75

75:                                               ; preds = %41
  %76 = load i32, ptr %4, align 4, !tbaa !14
  %77 = add nsw i32 %76, 1
  store i32 %77, ptr %4, align 4, !tbaa !14
  br label %35, !llvm.loop !19

78:                                               ; preds = %35
  %79 = call i32 (ptr, ...) @printf(ptr noundef @.str.64)
  store i32 0, ptr %4, align 4, !tbaa !14
  br label %80

80:                                               ; preds = %94, %78
  %81 = load i32, ptr %4, align 4, !tbaa !14
  %82 = load ptr, ptr %2, align 8, !tbaa !5
  %83 = getelementptr inbounds %struct._NormOperator, ptr %82, i32 0, i32 8
  %84 = load i32, ptr %83, align 8, !tbaa !20
  %85 = icmp slt i32 %81, %84
  br i1 %85, label %86, label %97

86:                                               ; preds = %80
  %87 = load ptr, ptr %2, align 8, !tbaa !5
  %88 = getelementptr inbounds %struct._NormOperator, ptr %87, i32 0, i32 7
  %89 = load ptr, ptr %88, align 8, !tbaa !21
  %90 = load i32, ptr %4, align 4, !tbaa !14
  %91 = sext i32 %90 to i64
  %92 = getelementptr inbounds %struct._Fact, ptr %89, i64 %91
  call void @print_Fact(ptr noundef %92)
  %93 = call i32 (ptr, ...) @printf(ptr noundef @.str.40)
  br label %94

94:                                               ; preds = %86
  %95 = load i32, ptr %4, align 4, !tbaa !14
  %96 = add nsw i32 %95, 1
  store i32 %96, ptr %4, align 4, !tbaa !14
  br label %80, !llvm.loop !22

97:                                               ; preds = %80
  store i32 0, ptr %4, align 4, !tbaa !14
  br label %98

98:                                               ; preds = %147, %97
  %99 = load i32, ptr %4, align 4, !tbaa !14
  %100 = load ptr, ptr %2, align 8, !tbaa !5
  %101 = getelementptr inbounds %struct._NormOperator, ptr %100, i32 0, i32 12
  %102 = load i32, ptr %101, align 8, !tbaa !23
  %103 = icmp slt i32 %99, %102
  br i1 %103, label %104, label %150

104:                                              ; preds = %98
  %105 = load ptr, ptr %2, align 8, !tbaa !5
  %106 = getelementptr inbounds %struct._NormOperator, ptr %105, i32 0, i32 9
  %107 = load ptr, ptr %106, align 8, !tbaa !24
  %108 = load i32, ptr %4, align 4, !tbaa !14
  %109 = sext i32 %108 to i64
  %110 = getelementptr inbounds i32, ptr %107, i64 %109
  %111 = load i32, ptr %110, align 4, !tbaa !14
  switch i32 %111, label %122 [
    i32 3001, label %112
    i32 3002, label %114
    i32 3003, label %116
    i32 3004, label %118
    i32 3005, label %120
  ]

112:                                              ; preds = %104
  %113 = call i32 (ptr, ...) @printf(ptr noundef @.str.27)
  br label %131

114:                                              ; preds = %104
  %115 = call i32 (ptr, ...) @printf(ptr noundef @.str.28)
  br label %131

116:                                              ; preds = %104
  %117 = call i32 (ptr, ...) @printf(ptr noundef @.str.29)
  br label %131

118:                                              ; preds = %104
  %119 = call i32 (ptr, ...) @printf(ptr noundef @.str.30)
  br label %131

120:                                              ; preds = %104
  %121 = call i32 (ptr, ...) @printf(ptr noundef @.str.31)
  br label %131

122:                                              ; preds = %104
  %123 = load ptr, ptr %2, align 8, !tbaa !5
  %124 = getelementptr inbounds %struct._NormOperator, ptr %123, i32 0, i32 9
  %125 = load ptr, ptr %124, align 8, !tbaa !24
  %126 = load i32, ptr %4, align 4, !tbaa !14
  %127 = sext i32 %126 to i64
  %128 = getelementptr inbounds i32, ptr %125, i64 %127
  %129 = load i32, ptr %128, align 4, !tbaa !14
  %130 = call i32 (ptr, ...) @printf(ptr noundef @.str.82, i32 noundef %129)
  call void @exit(i32 noundef 1) #5
  unreachable

131:                                              ; preds = %120, %118, %116, %114, %112
  %132 = load ptr, ptr %2, align 8, !tbaa !5
  %133 = getelementptr inbounds %struct._NormOperator, ptr %132, i32 0, i32 10
  %134 = load ptr, ptr %133, align 8, !tbaa !25
  %135 = load i32, ptr %4, align 4, !tbaa !14
  %136 = sext i32 %135 to i64
  %137 = getelementptr inbounds ptr, ptr %134, i64 %136
  %138 = load ptr, ptr %137, align 8, !tbaa !5
  call void @print_ExpNode(ptr noundef %138)
  %139 = load ptr, ptr %2, align 8, !tbaa !5
  %140 = getelementptr inbounds %struct._NormOperator, ptr %139, i32 0, i32 11
  %141 = load ptr, ptr %140, align 8, !tbaa !26
  %142 = load i32, ptr %4, align 4, !tbaa !14
  %143 = sext i32 %142 to i64
  %144 = getelementptr inbounds ptr, ptr %141, i64 %143
  %145 = load ptr, ptr %144, align 8, !tbaa !5
  call void @print_ExpNode(ptr noundef %145)
  %146 = call i32 (ptr, ...) @printf(ptr noundef @.str.14)
  br label %147

147:                                              ; preds = %131
  %148 = load i32, ptr %4, align 4, !tbaa !14
  %149 = add nsw i32 %148, 1
  store i32 %149, ptr %4, align 4, !tbaa !14
  br label %98, !llvm.loop !27

150:                                              ; preds = %98
  store i32 0, ptr %5, align 4, !tbaa !14
  %151 = call i32 (ptr, ...) @printf(ptr noundef @.str.65)
  %152 = load ptr, ptr %2, align 8, !tbaa !5
  %153 = getelementptr inbounds %struct._NormOperator, ptr %152, i32 0, i32 13
  %154 = load ptr, ptr %153, align 8, !tbaa !28
  store ptr %154, ptr %3, align 8, !tbaa !5
  br label %155

155:                                              ; preds = %349, %150
  %156 = load ptr, ptr %3, align 8, !tbaa !5
  %157 = icmp ne ptr %156, null
  br i1 %157, label %158, label %353

158:                                              ; preds = %155
  %159 = load i32, ptr %5, align 4, !tbaa !14
  %160 = add nsw i32 %159, 1
  store i32 %160, ptr %5, align 4, !tbaa !14
  %161 = load ptr, ptr %3, align 8, !tbaa !5
  %162 = getelementptr inbounds %struct._NormEffect, ptr %161, i32 0, i32 0
  %163 = load i32, ptr %162, align 8, !tbaa !29
  %164 = call i32 (ptr, ...) @printf(ptr noundef @.str.66, i32 noundef %159, i32 noundef %163)
  store i32 0, ptr %4, align 4, !tbaa !14
  br label %165

165:                                              ; preds = %184, %158
  %166 = load i32, ptr %4, align 4, !tbaa !14
  %167 = load ptr, ptr %3, align 8, !tbaa !5
  %168 = getelementptr inbounds %struct._NormEffect, ptr %167, i32 0, i32 0
  %169 = load i32, ptr %168, align 8, !tbaa !29
  %170 = icmp slt i32 %166, %169
  br i1 %170, label %171, label %187

171:                                              ; preds = %165
  %172 = load ptr, ptr %2, align 8, !tbaa !5
  %173 = getelementptr inbounds %struct._NormOperator, ptr %172, i32 0, i32 1
  %174 = load i32, ptr %173, align 8, !tbaa !15
  %175 = load i32, ptr %4, align 4, !tbaa !14
  %176 = add nsw i32 %174, %175
  %177 = call i32 (ptr, ...) @printf(ptr noundef @.str.79, i32 noundef %176)
  %178 = load ptr, ptr %3, align 8, !tbaa !5
  %179 = getelementptr inbounds %struct._NormEffect, ptr %178, i32 0, i32 1
  %180 = load i32, ptr %4, align 4, !tbaa !14
  %181 = sext i32 %180 to i64
  %182 = getelementptr inbounds [15 x i32], ptr %179, i64 0, i64 %181
  %183 = load i32, ptr %182, align 4, !tbaa !14
  call void @print_type(i32 noundef %183)
  br label %184

184:                                              ; preds = %171
  %185 = load i32, ptr %4, align 4, !tbaa !14
  %186 = add nsw i32 %185, 1
  store i32 %186, ptr %4, align 4, !tbaa !14
  br label %165, !llvm.loop !31

187:                                              ; preds = %165
  %188 = call i32 (ptr, ...) @printf(ptr noundef @.str.68)
  store i32 0, ptr %4, align 4, !tbaa !14
  br label %189

189:                                              ; preds = %203, %187
  %190 = load i32, ptr %4, align 4, !tbaa !14
  %191 = load ptr, ptr %3, align 8, !tbaa !5
  %192 = getelementptr inbounds %struct._NormEffect, ptr %191, i32 0, i32 4
  %193 = load i32, ptr %192, align 8, !tbaa !32
  %194 = icmp slt i32 %190, %193
  br i1 %194, label %195, label %206

195:                                              ; preds = %189
  %196 = load ptr, ptr %3, align 8, !tbaa !5
  %197 = getelementptr inbounds %struct._NormEffect, ptr %196, i32 0, i32 3
  %198 = load ptr, ptr %197, align 8, !tbaa !33
  %199 = load i32, ptr %4, align 4, !tbaa !14
  %200 = sext i32 %199 to i64
  %201 = getelementptr inbounds %struct._Fact, ptr %198, i64 %200
  call void @print_Fact(ptr noundef %201)
  %202 = call i32 (ptr, ...) @printf(ptr noundef @.str.40)
  br label %203

203:                                              ; preds = %195
  %204 = load i32, ptr %4, align 4, !tbaa !14
  %205 = add nsw i32 %204, 1
  store i32 %205, ptr %4, align 4, !tbaa !14
  br label %189, !llvm.loop !34

206:                                              ; preds = %189
  store i32 0, ptr %4, align 4, !tbaa !14
  br label %207

207:                                              ; preds = %256, %206
  %208 = load i32, ptr %4, align 4, !tbaa !14
  %209 = load ptr, ptr %3, align 8, !tbaa !5
  %210 = getelementptr inbounds %struct._NormEffect, ptr %209, i32 0, i32 12
  %211 = load i32, ptr %210, align 8, !tbaa !35
  %212 = icmp slt i32 %208, %211
  br i1 %212, label %213, label %259

213:                                              ; preds = %207
  %214 = load ptr, ptr %3, align 8, !tbaa !5
  %215 = getelementptr inbounds %struct._NormEffect, ptr %214, i32 0, i32 9
  %216 = load ptr, ptr %215, align 8, !tbaa !36
  %217 = load i32, ptr %4, align 4, !tbaa !14
  %218 = sext i32 %217 to i64
  %219 = getelementptr inbounds i32, ptr %216, i64 %218
  %220 = load i32, ptr %219, align 4, !tbaa !14
  switch i32 %220, label %231 [
    i32 3001, label %221
    i32 3002, label %223
    i32 3003, label %225
    i32 3004, label %227
    i32 3005, label %229
  ]

221:                                              ; preds = %213
  %222 = call i32 (ptr, ...) @printf(ptr noundef @.str.27)
  br label %240

223:                                              ; preds = %213
  %224 = call i32 (ptr, ...) @printf(ptr noundef @.str.28)
  br label %240

225:                                              ; preds = %213
  %226 = call i32 (ptr, ...) @printf(ptr noundef @.str.29)
  br label %240

227:                                              ; preds = %213
  %228 = call i32 (ptr, ...) @printf(ptr noundef @.str.30)
  br label %240

229:                                              ; preds = %213
  %230 = call i32 (ptr, ...) @printf(ptr noundef @.str.31)
  br label %240

231:                                              ; preds = %213
  %232 = load ptr, ptr %3, align 8, !tbaa !5
  %233 = getelementptr inbounds %struct._NormEffect, ptr %232, i32 0, i32 9
  %234 = load ptr, ptr %233, align 8, !tbaa !36
  %235 = load i32, ptr %4, align 4, !tbaa !14
  %236 = sext i32 %235 to i64
  %237 = getelementptr inbounds i32, ptr %234, i64 %236
  %238 = load i32, ptr %237, align 4, !tbaa !14
  %239 = call i32 (ptr, ...) @printf(ptr noundef @.str.83, i32 noundef %238)
  call void @exit(i32 noundef 1) #5
  unreachable

240:                                              ; preds = %229, %227, %225, %223, %221
  %241 = load ptr, ptr %3, align 8, !tbaa !5
  %242 = getelementptr inbounds %struct._NormEffect, ptr %241, i32 0, i32 10
  %243 = load ptr, ptr %242, align 8, !tbaa !37
  %244 = load i32, ptr %4, align 4, !tbaa !14
  %245 = sext i32 %244 to i64
  %246 = getelementptr inbounds ptr, ptr %243, i64 %245
  %247 = load ptr, ptr %246, align 8, !tbaa !5
  call void @print_ExpNode(ptr noundef %247)
  %248 = load ptr, ptr %3, align 8, !tbaa !5
  %249 = getelementptr inbounds %struct._NormEffect, ptr %248, i32 0, i32 11
  %250 = load ptr, ptr %249, align 8, !tbaa !38
  %251 = load i32, ptr %4, align 4, !tbaa !14
  %252 = sext i32 %251 to i64
  %253 = getelementptr inbounds ptr, ptr %250, i64 %252
  %254 = load ptr, ptr %253, align 8, !tbaa !5
  call void @print_ExpNode(ptr noundef %254)
  %255 = call i32 (ptr, ...) @printf(ptr noundef @.str.14)
  br label %256

256:                                              ; preds = %240
  %257 = load i32, ptr %4, align 4, !tbaa !14
  %258 = add nsw i32 %257, 1
  store i32 %258, ptr %4, align 4, !tbaa !14
  br label %207, !llvm.loop !39

259:                                              ; preds = %207
  %260 = call i32 (ptr, ...) @printf(ptr noundef @.str.84)
  store i32 0, ptr %4, align 4, !tbaa !14
  br label %261

261:                                              ; preds = %275, %259
  %262 = load i32, ptr %4, align 4, !tbaa !14
  %263 = load ptr, ptr %3, align 8, !tbaa !5
  %264 = getelementptr inbounds %struct._NormEffect, ptr %263, i32 0, i32 6
  %265 = load i32, ptr %264, align 8, !tbaa !40
  %266 = icmp slt i32 %262, %265
  br i1 %266, label %267, label %278

267:                                              ; preds = %261
  %268 = load ptr, ptr %3, align 8, !tbaa !5
  %269 = getelementptr inbounds %struct._NormEffect, ptr %268, i32 0, i32 5
  %270 = load ptr, ptr %269, align 8, !tbaa !41
  %271 = load i32, ptr %4, align 4, !tbaa !14
  %272 = sext i32 %271 to i64
  %273 = getelementptr inbounds %struct._Fact, ptr %270, i64 %272
  call void @print_Fact(ptr noundef %273)
  %274 = call i32 (ptr, ...) @printf(ptr noundef @.str.40)
  br label %275

275:                                              ; preds = %267
  %276 = load i32, ptr %4, align 4, !tbaa !14
  %277 = add nsw i32 %276, 1
  store i32 %277, ptr %4, align 4, !tbaa !14
  br label %261, !llvm.loop !42

278:                                              ; preds = %261
  %279 = call i32 (ptr, ...) @printf(ptr noundef @.str.85)
  store i32 0, ptr %4, align 4, !tbaa !14
  br label %280

280:                                              ; preds = %294, %278
  %281 = load i32, ptr %4, align 4, !tbaa !14
  %282 = load ptr, ptr %3, align 8, !tbaa !5
  %283 = getelementptr inbounds %struct._NormEffect, ptr %282, i32 0, i32 8
  %284 = load i32, ptr %283, align 8, !tbaa !43
  %285 = icmp slt i32 %281, %284
  br i1 %285, label %286, label %297

286:                                              ; preds = %280
  %287 = load ptr, ptr %3, align 8, !tbaa !5
  %288 = getelementptr inbounds %struct._NormEffect, ptr %287, i32 0, i32 7
  %289 = load ptr, ptr %288, align 8, !tbaa !44
  %290 = load i32, ptr %4, align 4, !tbaa !14
  %291 = sext i32 %290 to i64
  %292 = getelementptr inbounds %struct._Fact, ptr %289, i64 %291
  call void @print_Fact(ptr noundef %292)
  %293 = call i32 (ptr, ...) @printf(ptr noundef @.str.40)
  br label %294

294:                                              ; preds = %286
  %295 = load i32, ptr %4, align 4, !tbaa !14
  %296 = add nsw i32 %295, 1
  store i32 %296, ptr %4, align 4, !tbaa !14
  br label %280, !llvm.loop !45

297:                                              ; preds = %280
  store i32 0, ptr %4, align 4, !tbaa !14
  br label %298

298:                                              ; preds = %345, %297
  %299 = load i32, ptr %4, align 4, !tbaa !14
  %300 = load ptr, ptr %3, align 8, !tbaa !5
  %301 = getelementptr inbounds %struct._NormEffect, ptr %300, i32 0, i32 16
  %302 = load i32, ptr %301, align 8, !tbaa !46
  %303 = icmp slt i32 %299, %302
  br i1 %303, label %304, label %348

304:                                              ; preds = %298
  %305 = load ptr, ptr %3, align 8, !tbaa !5
  %306 = getelementptr inbounds %struct._NormEffect, ptr %305, i32 0, i32 13
  %307 = load ptr, ptr %306, align 8, !tbaa !47
  %308 = load i32, ptr %4, align 4, !tbaa !14
  %309 = sext i32 %308 to i64
  %310 = getelementptr inbounds i32, ptr %307, i64 %309
  %311 = load i32, ptr %310, align 4, !tbaa !14
  switch i32 %311, label %322 [
    i32 4000, label %312
    i32 4001, label %314
    i32 4002, label %316
    i32 4003, label %318
    i32 4004, label %320
  ]

312:                                              ; preds = %304
  %313 = call i32 (ptr, ...) @printf(ptr noundef @.str.72)
  br label %331

314:                                              ; preds = %304
  %315 = call i32 (ptr, ...) @printf(ptr noundef @.str.73)
  br label %331

316:                                              ; preds = %304
  %317 = call i32 (ptr, ...) @printf(ptr noundef @.str.74)
  br label %331

318:                                              ; preds = %304
  %319 = call i32 (ptr, ...) @printf(ptr noundef @.str.75)
  br label %331

320:                                              ; preds = %304
  %321 = call i32 (ptr, ...) @printf(ptr noundef @.str.76)
  br label %331

322:                                              ; preds = %304
  %323 = load ptr, ptr %3, align 8, !tbaa !5
  %324 = getelementptr inbounds %struct._NormEffect, ptr %323, i32 0, i32 13
  %325 = load ptr, ptr %324, align 8, !tbaa !47
  %326 = load i32, ptr %4, align 4, !tbaa !14
  %327 = sext i32 %326 to i64
  %328 = getelementptr inbounds i32, ptr %325, i64 %327
  %329 = load i32, ptr %328, align 4, !tbaa !14
  %330 = call i32 (ptr, ...) @printf(ptr noundef @.str.86, i32 noundef %329)
  call void @exit(i32 noundef 1) #5
  unreachable

331:                                              ; preds = %320, %318, %316, %314, %312
  %332 = load ptr, ptr %3, align 8, !tbaa !5
  %333 = getelementptr inbounds %struct._NormEffect, ptr %332, i32 0, i32 14
  %334 = load ptr, ptr %333, align 8, !tbaa !48
  %335 = load i32, ptr %4, align 4, !tbaa !14
  %336 = sext i32 %335 to i64
  %337 = getelementptr inbounds %struct._Fluent, ptr %334, i64 %336
  call void @print_Fluent(ptr noundef %337)
  %338 = load ptr, ptr %3, align 8, !tbaa !5
  %339 = getelementptr inbounds %struct._NormEffect, ptr %338, i32 0, i32 15
  %340 = load ptr, ptr %339, align 8, !tbaa !49
  %341 = load i32, ptr %4, align 4, !tbaa !14
  %342 = sext i32 %341 to i64
  %343 = getelementptr inbounds ptr, ptr %340, i64 %342
  %344 = load ptr, ptr %343, align 8, !tbaa !5
  call void @print_ExpNode(ptr noundef %344)
  br label %345

345:                                              ; preds = %331
  %346 = load i32, ptr %4, align 4, !tbaa !14
  %347 = add nsw i32 %346, 1
  store i32 %347, ptr %4, align 4, !tbaa !14
  br label %298, !llvm.loop !50

348:                                              ; preds = %298
  br label %349

349:                                              ; preds = %348
  %350 = load ptr, ptr %3, align 8, !tbaa !5
  %351 = getelementptr inbounds %struct._NormEffect, ptr %350, i32 0, i32 18
  %352 = load ptr, ptr %351, align 8, !tbaa !51
  store ptr %352, ptr %3, align 8, !tbaa !5
  br label %155, !llvm.loop !52

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

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nounwind }
attributes #5 = { noreturn nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !6, i64 0}
!10 = !{!"_NormOperator", !6, i64 0, !11, i64 8, !7, i64 12, !7, i64 72, !7, i64 132, !11, i64 192, !7, i64 196, !6, i64 256, !11, i64 264, !6, i64 272, !6, i64 280, !6, i64 288, !11, i64 296, !6, i64 304, !7, i64 312}
!11 = !{!"int", !7, i64 0}
!12 = !{!13, !6, i64 0}
!13 = !{!"_Operator", !6, i64 0, !7, i64 8, !11, i64 128, !7, i64 132, !11, i64 136, !7, i64 140, !7, i64 200, !6, i64 216, !6, i64 224, !7, i64 232}
!14 = !{!11, !11, i64 0}
!15 = !{!10, !11, i64 8}
!16 = distinct !{!16, !17}
!17 = !{!"llvm.loop.mustprogress"}
!18 = !{!10, !11, i64 192}
!19 = distinct !{!19, !17}
!20 = !{!10, !11, i64 264}
!21 = !{!10, !6, i64 256}
!22 = distinct !{!22, !17}
!23 = !{!10, !11, i64 296}
!24 = !{!10, !6, i64 272}
!25 = !{!10, !6, i64 280}
!26 = !{!10, !6, i64 288}
!27 = distinct !{!27, !17}
!28 = !{!10, !6, i64 304}
!29 = !{!30, !11, i64 0}
!30 = !{!"_NormEffect", !11, i64 0, !7, i64 4, !7, i64 64, !6, i64 128, !11, i64 136, !6, i64 144, !11, i64 152, !6, i64 160, !11, i64 168, !6, i64 176, !6, i64 184, !6, i64 192, !11, i64 200, !6, i64 208, !6, i64 216, !6, i64 224, !11, i64 232, !6, i64 240, !6, i64 248}
!31 = distinct !{!31, !17}
!32 = !{!30, !11, i64 136}
!33 = !{!30, !6, i64 128}
!34 = distinct !{!34, !17}
!35 = !{!30, !11, i64 200}
!36 = !{!30, !6, i64 176}
!37 = !{!30, !6, i64 184}
!38 = !{!30, !6, i64 192}
!39 = distinct !{!39, !17}
!40 = !{!30, !11, i64 152}
!41 = !{!30, !6, i64 144}
!42 = distinct !{!42, !17}
!43 = !{!30, !11, i64 168}
!44 = !{!30, !6, i64 160}
!45 = distinct !{!45, !17}
!46 = !{!30, !11, i64 232}
!47 = !{!30, !6, i64 208}
!48 = !{!30, !6, i64 216}
!49 = !{!30, !6, i64 224}
!50 = distinct !{!50, !17}
!51 = !{!30, !6, i64 248}
!52 = distinct !{!52, !17}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

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

@.str.14 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.27 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.28 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.29 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.30 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.31 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.40 = external hidden unnamed_addr constant [2 x i8], align 1
@gtype_names = external local_unnamed_addr global [50 x ptr], align 16
@.str.64 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.65 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.66 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.68 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.72 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.73 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.74 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.75 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.76 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.78 = external hidden unnamed_addr constant [62 x i8], align 1
@.str.79 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.80 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.81 = external hidden unnamed_addr constant [39 x i8], align 1
@.str.82 = external hidden unnamed_addr constant [46 x i8], align 1
@.str.83 = external hidden unnamed_addr constant [46 x i8], align 1
@.str.84 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.85 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.86 = external hidden unnamed_addr constant [34 x i8], align 1
@switch.table.print_NormOperator.1 = private unnamed_addr constant [5 x ptr] [ptr @.str.27, ptr @.str.28, ptr @.str.29, ptr @.str.30, ptr @.str.31], align 8
@switch.table.print_NormOperator.2 = private unnamed_addr constant [5 x ptr] [ptr @.str.72, ptr @.str.73, ptr @.str.74, ptr @.str.75, ptr @.str.76], align 8

; Function Attrs: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #0

; Function Attrs: noreturn nounwind
declare void @exit(i32 noundef) local_unnamed_addr #1

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

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

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

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

.lr.ph:                                           ; preds = %1
  %8 = getelementptr inbounds i8, ptr %0, i64 12
  br label %9

9:                                                ; preds = %.lr.ph, %9
  %indvars.iv = phi i64 [ 0, %.lr.ph ], [ %indvars.iv.next, %9 ]
  %10 = trunc nuw nsw i64 %indvars.iv to i32
  %11 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.79, i32 noundef %10)
  %12 = getelementptr inbounds [15 x i32], ptr %8, i64 0, i64 %indvars.iv
  %13 = load i32, ptr %12, align 4, !tbaa !14
  tail call void @print_type(i32 noundef %13)
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %14 = load i32, ptr %5, align 8, !tbaa !13
  %15 = sext i32 %14 to i64
  %16 = icmp slt i64 %indvars.iv.next, %15
  br i1 %16, label %9, label %._crit_edge, !llvm.loop !15

._crit_edge:                                      ; preds = %9, %1
  %17 = getelementptr inbounds i8, ptr %0, i64 192
  %18 = load i32, ptr %17, align 8, !tbaa !17
  %19 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.80, i32 noundef %18)
  %20 = load i32, ptr %17, align 8, !tbaa !17
  %21 = icmp sgt i32 %20, 0
  br i1 %21, label %.lr.ph94, label %._crit_edge95

.lr.ph94:                                         ; preds = %._crit_edge
  %22 = getelementptr inbounds i8, ptr %0, i64 132
  %23 = getelementptr inbounds i8, ptr %0, i64 196
  br label %24

24:                                               ; preds = %.lr.ph94, %24
  %indvars.iv135 = phi i64 [ 0, %.lr.ph94 ], [ %indvars.iv.next136, %24 ]
  %25 = getelementptr inbounds [15 x i32], ptr %22, i64 0, i64 %indvars.iv135
  %26 = load i32, ptr %25, align 4, !tbaa !14
  %27 = load ptr, ptr %0, align 8, !tbaa !5
  %28 = getelementptr inbounds i8, ptr %27, i64 8
  %29 = sext i32 %26 to i64
  %30 = getelementptr inbounds [15 x ptr], ptr %28, i64 0, i64 %29
  %31 = load ptr, ptr %30, align 8, !tbaa !18
  %32 = getelementptr inbounds i8, ptr %27, i64 140
  %33 = getelementptr inbounds [15 x i32], ptr %32, i64 0, i64 %29
  %34 = load i32, ptr %33, align 4, !tbaa !14
  %35 = sext i32 %34 to i64
  %36 = getelementptr inbounds [50 x ptr], ptr @gtype_names, i64 0, i64 %35
  %37 = load ptr, ptr %36, align 8, !tbaa !18
  %38 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.81, i32 noundef %26, ptr noundef %31, ptr noundef %37)
  %39 = getelementptr inbounds [15 x i32], ptr %23, i64 0, i64 %indvars.iv135
  %40 = load i32, ptr %39, align 4, !tbaa !14
  tail call void @print_type(i32 noundef %40)
  %indvars.iv.next136 = add nuw nsw i64 %indvars.iv135, 1
  %41 = load i32, ptr %17, align 8, !tbaa !17
  %42 = sext i32 %41 to i64
  %43 = icmp slt i64 %indvars.iv.next136, %42
  br i1 %43, label %24, label %._crit_edge95, !llvm.loop !19

._crit_edge95:                                    ; preds = %24, %._crit_edge
  %44 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.64)
  %45 = getelementptr inbounds i8, ptr %0, i64 264
  %46 = load i32, ptr %45, align 8, !tbaa !20
  %47 = icmp sgt i32 %46, 0
  br i1 %47, label %.lr.ph98, label %.preheader87

.lr.ph98:                                         ; preds = %._crit_edge95
  %48 = getelementptr inbounds i8, ptr %0, i64 256
  br label %55

.preheader87:                                     ; preds = %55, %._crit_edge95
  %49 = getelementptr inbounds i8, ptr %0, i64 296
  %50 = load i32, ptr %49, align 8, !tbaa !21
  %51 = icmp sgt i32 %50, 0
  br i1 %51, label %.lr.ph100, label %._crit_edge101

.lr.ph100:                                        ; preds = %.preheader87
  %52 = getelementptr inbounds i8, ptr %0, i64 272
  %53 = getelementptr inbounds i8, ptr %0, i64 280
  %54 = getelementptr inbounds i8, ptr %0, i64 288
  br label %62

55:                                               ; preds = %.lr.ph98, %55
  %indvars.iv138 = phi i64 [ 0, %.lr.ph98 ], [ %indvars.iv.next139, %55 ]
  %56 = load ptr, ptr %48, align 8, !tbaa !22
  %57 = getelementptr inbounds %struct._Fact, ptr %56, i64 %indvars.iv138
  tail call void @print_Fact(ptr noundef %57)
  %58 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.40)
  %indvars.iv.next139 = add nuw nsw i64 %indvars.iv138, 1
  %59 = load i32, ptr %45, align 8, !tbaa !20
  %60 = sext i32 %59 to i64
  %61 = icmp slt i64 %indvars.iv.next139, %60
  br i1 %61, label %55, label %.preheader87, !llvm.loop !23

62:                                               ; preds = %.lr.ph100, %switch.lookup
  %indvars.iv141 = phi i64 [ 0, %.lr.ph100 ], [ %indvars.iv.next142, %switch.lookup ]
  %63 = load ptr, ptr %52, align 8, !tbaa !24
  %64 = getelementptr inbounds i32, ptr %63, i64 %indvars.iv141
  %65 = load i32, ptr %64, align 4, !tbaa !14
  %switch.tableidx = add i32 %65, -3001
  %66 = icmp ult i32 %switch.tableidx, 5
  br i1 %66, label %switch.lookup, label %67

67:                                               ; preds = %62
  %68 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.82, i32 noundef %65)
  tail call void @exit(i32 noundef 1) #3
  unreachable

switch.lookup:                                    ; preds = %62
  %69 = zext nneg i32 %switch.tableidx to i64
  %switch.gep = getelementptr inbounds [5 x ptr], ptr @switch.table.print_NormOperator.1, i64 0, i64 %69
  %switch.load = load ptr, ptr %switch.gep, align 8
  %70 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) %switch.load)
  %71 = load ptr, ptr %53, align 8, !tbaa !25
  %72 = getelementptr inbounds ptr, ptr %71, i64 %indvars.iv141
  %73 = load ptr, ptr %72, align 8, !tbaa !18
  tail call void @print_ExpNode(ptr noundef %73)
  %74 = load ptr, ptr %54, align 8, !tbaa !26
  %75 = getelementptr inbounds ptr, ptr %74, i64 %indvars.iv141
  %76 = load ptr, ptr %75, align 8, !tbaa !18
  tail call void @print_ExpNode(ptr noundef %76)
  %77 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.14)
  %indvars.iv.next142 = add nuw nsw i64 %indvars.iv141, 1
  %78 = load i32, ptr %49, align 8, !tbaa !21
  %79 = sext i32 %78 to i64
  %80 = icmp slt i64 %indvars.iv.next142, %79
  br i1 %80, label %62, label %._crit_edge101, !llvm.loop !27

._crit_edge101:                                   ; preds = %switch.lookup, %.preheader87
  %81 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.65)
  %82 = getelementptr inbounds i8, ptr %0, i64 304
  %.085122 = load ptr, ptr %82, align 8, !tbaa !18
  %.not123 = icmp eq ptr %.085122, null
  br i1 %.not123, label %._crit_edge128, label %.lr.ph127

.lr.ph127:                                        ; preds = %._crit_edge101, %._crit_edge121
  %.085125 = phi ptr [ %.085, %._crit_edge121 ], [ %.085122, %._crit_edge101 ]
  %.0124 = phi i32 [ %83, %._crit_edge121 ], [ 0, %._crit_edge101 ]
  %83 = add nuw nsw i32 %.0124, 1
  %84 = load i32, ptr %.085125, align 8, !tbaa !28
  %85 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.66, i32 noundef %.0124, i32 noundef %84)
  %86 = load i32, ptr %.085125, align 8, !tbaa !28
  %87 = icmp sgt i32 %86, 0
  br i1 %87, label %.lr.ph104, label %._crit_edge105

.lr.ph104:                                        ; preds = %.lr.ph127
  %88 = getelementptr inbounds i8, ptr %.085125, i64 4
  br label %89

89:                                               ; preds = %.lr.ph104, %89
  %indvars.iv144 = phi i64 [ 0, %.lr.ph104 ], [ %indvars.iv.next145, %89 ]
  %90 = load i32, ptr %5, align 8, !tbaa !13
  %91 = trunc nuw nsw i64 %indvars.iv144 to i32
  %92 = add nsw i32 %90, %91
  %93 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.79, i32 noundef %92)
  %94 = getelementptr inbounds [15 x i32], ptr %88, i64 0, i64 %indvars.iv144
  %95 = load i32, ptr %94, align 4, !tbaa !14
  tail call void @print_type(i32 noundef %95)
  %indvars.iv.next145 = add nuw nsw i64 %indvars.iv144, 1
  %96 = load i32, ptr %.085125, align 8, !tbaa !28
  %97 = sext i32 %96 to i64
  %98 = icmp slt i64 %indvars.iv.next145, %97
  br i1 %98, label %89, label %._crit_edge105, !llvm.loop !30

._crit_edge105:                                   ; preds = %89, %.lr.ph127
  %99 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.68)
  %100 = getelementptr inbounds i8, ptr %.085125, i64 136
  %101 = load i32, ptr %100, align 8, !tbaa !31
  %102 = icmp sgt i32 %101, 0
  br i1 %102, label %.lr.ph108, label %.preheader86

.lr.ph108:                                        ; preds = %._crit_edge105
  %103 = getelementptr inbounds i8, ptr %.085125, i64 128
  br label %110

.preheader86:                                     ; preds = %110, %._crit_edge105
  %104 = getelementptr inbounds i8, ptr %.085125, i64 200
  %105 = load i32, ptr %104, align 8, !tbaa !32
  %106 = icmp sgt i32 %105, 0
  br i1 %106, label %.lr.ph110, label %._crit_edge111

.lr.ph110:                                        ; preds = %.preheader86
  %107 = getelementptr inbounds i8, ptr %.085125, i64 176
  %108 = getelementptr inbounds i8, ptr %.085125, i64 184
  %109 = getelementptr inbounds i8, ptr %.085125, i64 192
  br label %117

110:                                              ; preds = %.lr.ph108, %110
  %indvars.iv147 = phi i64 [ 0, %.lr.ph108 ], [ %indvars.iv.next148, %110 ]
  %111 = load ptr, ptr %103, align 8, !tbaa !33
  %112 = getelementptr inbounds %struct._Fact, ptr %111, i64 %indvars.iv147
  tail call void @print_Fact(ptr noundef %112)
  %113 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.40)
  %indvars.iv.next148 = add nuw nsw i64 %indvars.iv147, 1
  %114 = load i32, ptr %100, align 8, !tbaa !31
  %115 = sext i32 %114 to i64
  %116 = icmp slt i64 %indvars.iv.next148, %115
  br i1 %116, label %110, label %.preheader86, !llvm.loop !34

117:                                              ; preds = %.lr.ph110, %switch.lookup173
  %indvars.iv150 = phi i64 [ 0, %.lr.ph110 ], [ %indvars.iv.next151, %switch.lookup173 ]
  %118 = load ptr, ptr %107, align 8, !tbaa !35
  %119 = getelementptr inbounds i32, ptr %118, i64 %indvars.iv150
  %120 = load i32, ptr %119, align 4, !tbaa !14
  %switch.tableidx174 = add i32 %120, -3001
  %121 = icmp ult i32 %switch.tableidx174, 5
  br i1 %121, label %switch.lookup173, label %122

122:                                              ; preds = %117
  %123 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.83, i32 noundef %120)
  tail call void @exit(i32 noundef 1) #3
  unreachable

switch.lookup173:                                 ; preds = %117
  %124 = zext nneg i32 %switch.tableidx174 to i64
  %switch.gep175 = getelementptr inbounds [5 x ptr], ptr @switch.table.print_NormOperator.1, i64 0, i64 %124
  %switch.load176 = load ptr, ptr %switch.gep175, align 8
  %125 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) %switch.load176)
  %126 = load ptr, ptr %108, align 8, !tbaa !36
  %127 = getelementptr inbounds ptr, ptr %126, i64 %indvars.iv150
  %128 = load ptr, ptr %127, align 8, !tbaa !18
  tail call void @print_ExpNode(ptr noundef %128)
  %129 = load ptr, ptr %109, align 8, !tbaa !37
  %130 = getelementptr inbounds ptr, ptr %129, i64 %indvars.iv150
  %131 = load ptr, ptr %130, align 8, !tbaa !18
  tail call void @print_ExpNode(ptr noundef %131)
  %132 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.14)
  %indvars.iv.next151 = add nuw nsw i64 %indvars.iv150, 1
  %133 = load i32, ptr %104, align 8, !tbaa !32
  %134 = sext i32 %133 to i64
  %135 = icmp slt i64 %indvars.iv.next151, %134
  br i1 %135, label %117, label %._crit_edge111, !llvm.loop !38

._crit_edge111:                                   ; preds = %switch.lookup173, %.preheader86
  %136 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.84)
  %137 = getelementptr inbounds i8, ptr %.085125, i64 152
  %138 = load i32, ptr %137, align 8, !tbaa !39
  %139 = icmp sgt i32 %138, 0
  br i1 %139, label %.lr.ph114, label %._crit_edge115

.lr.ph114:                                        ; preds = %._crit_edge111
  %140 = getelementptr inbounds i8, ptr %.085125, i64 144
  br label %141

141:                                              ; preds = %.lr.ph114, %141
  %indvars.iv153 = phi i64 [ 0, %.lr.ph114 ], [ %indvars.iv.next154, %141 ]
  %142 = load ptr, ptr %140, align 8, !tbaa !40
  %143 = getelementptr inbounds %struct._Fact, ptr %142, i64 %indvars.iv153
  tail call void @print_Fact(ptr noundef %143)
  %144 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.40)
  %indvars.iv.next154 = add nuw nsw i64 %indvars.iv153, 1
  %145 = load i32, ptr %137, align 8, !tbaa !39
  %146 = sext i32 %145 to i64
  %147 = icmp slt i64 %indvars.iv.next154, %146
  br i1 %147, label %141, label %._crit_edge115, !llvm.loop !41

._crit_edge115:                                   ; preds = %141, %._crit_edge111
  %148 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.85)
  %149 = getelementptr inbounds i8, ptr %.085125, i64 168
  %150 = load i32, ptr %149, align 8, !tbaa !42
  %151 = icmp sgt i32 %150, 0
  br i1 %151, label %.lr.ph118, label %.preheader

.lr.ph118:                                        ; preds = %._crit_edge115
  %152 = getelementptr inbounds i8, ptr %.085125, i64 160
  br label %159

.preheader:                                       ; preds = %159, %._crit_edge115
  %153 = getelementptr inbounds i8, ptr %.085125, i64 232
  %154 = load i32, ptr %153, align 8, !tbaa !43
  %155 = icmp sgt i32 %154, 0
  br i1 %155, label %.lr.ph120, label %._crit_edge121

.lr.ph120:                                        ; preds = %.preheader
  %156 = getelementptr inbounds i8, ptr %.085125, i64 208
  %157 = getelementptr inbounds i8, ptr %.085125, i64 216
  %158 = getelementptr inbounds i8, ptr %.085125, i64 224
  br label %166

159:                                              ; preds = %.lr.ph118, %159
  %indvars.iv156 = phi i64 [ 0, %.lr.ph118 ], [ %indvars.iv.next157, %159 ]
  %160 = load ptr, ptr %152, align 8, !tbaa !44
  %161 = getelementptr inbounds %struct._Fact, ptr %160, i64 %indvars.iv156
  tail call void @print_Fact(ptr noundef %161)
  %162 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.40)
  %indvars.iv.next157 = add nuw nsw i64 %indvars.iv156, 1
  %163 = load i32, ptr %149, align 8, !tbaa !42
  %164 = sext i32 %163 to i64
  %165 = icmp slt i64 %indvars.iv.next157, %164
  br i1 %165, label %159, label %.preheader, !llvm.loop !45

166:                                              ; preds = %.lr.ph120, %switch.lookup177
  %indvars.iv159 = phi i64 [ 0, %.lr.ph120 ], [ %indvars.iv.next160, %switch.lookup177 ]
  %167 = load ptr, ptr %156, align 8, !tbaa !46
  %168 = getelementptr inbounds i32, ptr %167, i64 %indvars.iv159
  %169 = load i32, ptr %168, align 4, !tbaa !14
  %switch.tableidx178 = add i32 %169, -4000
  %170 = icmp ult i32 %switch.tableidx178, 5
  br i1 %170, label %switch.lookup177, label %171

171:                                              ; preds = %166
  %172 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.86, i32 noundef %169)
  tail call void @exit(i32 noundef 1) #3
  unreachable

switch.lookup177:                                 ; preds = %166
  %173 = zext nneg i32 %switch.tableidx178 to i64
  %switch.gep179 = getelementptr inbounds [5 x ptr], ptr @switch.table.print_NormOperator.2, i64 0, i64 %173
  %switch.load180 = load ptr, ptr %switch.gep179, align 8
  %174 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) %switch.load180)
  %175 = load ptr, ptr %157, align 8, !tbaa !47
  %176 = getelementptr inbounds %struct._Fluent, ptr %175, i64 %indvars.iv159
  tail call void @print_Fluent(ptr noundef %176)
  %177 = load ptr, ptr %158, align 8, !tbaa !48
  %178 = getelementptr inbounds ptr, ptr %177, i64 %indvars.iv159
  %179 = load ptr, ptr %178, align 8, !tbaa !18
  tail call void @print_ExpNode(ptr noundef %179)
  %indvars.iv.next160 = add nuw nsw i64 %indvars.iv159, 1
  %180 = load i32, ptr %153, align 8, !tbaa !43
  %181 = sext i32 %180 to i64
  %182 = icmp slt i64 %indvars.iv.next160, %181
  br i1 %182, label %166, label %._crit_edge121, !llvm.loop !49

._crit_edge121:                                   ; preds = %switch.lookup177, %.preheader
  %183 = getelementptr inbounds i8, ptr %.085125, i64 248
  %.085 = load ptr, ptr %183, align 8, !tbaa !18
  %.not = icmp eq ptr %.085, null
  br i1 %.not, label %._crit_edge128, label %.lr.ph127, !llvm.loop !50

._crit_edge128:                                   ; preds = %._crit_edge121, %._crit_edge101
  ret void
}

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

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

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !7, i64 0}
!6 = !{!"_NormOperator", !7, i64 0, !10, i64 8, !8, i64 12, !8, i64 72, !8, i64 132, !10, i64 192, !8, i64 196, !7, i64 256, !10, i64 264, !7, i64 272, !7, i64 280, !7, i64 288, !10, i64 296, !7, i64 304, !8, i64 312}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"int", !8, i64 0}
!11 = !{!12, !7, i64 0}
!12 = !{!"_Operator", !7, i64 0, !8, i64 8, !10, i64 128, !8, i64 132, !10, i64 136, !8, i64 140, !8, i64 200, !7, i64 216, !7, i64 224, !8, i64 232}
!13 = !{!6, !10, i64 8}
!14 = !{!10, !10, i64 0}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.mustprogress"}
!17 = !{!6, !10, i64 192}
!18 = !{!7, !7, i64 0}
!19 = distinct !{!19, !16}
!20 = !{!6, !10, i64 264}
!21 = !{!6, !10, i64 296}
!22 = !{!6, !7, i64 256}
!23 = distinct !{!23, !16}
!24 = !{!6, !7, i64 272}
!25 = !{!6, !7, i64 280}
!26 = !{!6, !7, i64 288}
!27 = distinct !{!27, !16}
!28 = !{!29, !10, i64 0}
!29 = !{!"_NormEffect", !10, i64 0, !8, i64 4, !8, i64 64, !7, i64 128, !10, i64 136, !7, i64 144, !10, i64 152, !7, i64 160, !10, i64 168, !7, i64 176, !7, i64 184, !7, i64 192, !10, i64 200, !7, i64 208, !7, i64 216, !7, i64 224, !10, i64 232, !7, i64 240, !7, i64 248}
!30 = distinct !{!30, !16}
!31 = !{!29, !10, i64 136}
!32 = !{!29, !10, i64 200}
!33 = !{!29, !7, i64 128}
!34 = distinct !{!34, !16}
!35 = !{!29, !7, i64 176}
!36 = !{!29, !7, i64 184}
!37 = !{!29, !7, i64 192}
!38 = distinct !{!38, !16}
!39 = !{!29, !10, i64 152}
!40 = !{!29, !7, i64 144}
!41 = distinct !{!41, !16}
!42 = !{!29, !10, i64 168}
!43 = !{!29, !10, i64 232}
!44 = !{!29, !7, i64 160}
!45 = distinct !{!45, !16}
!46 = !{!29, !7, i64 208}
!47 = !{!29, !7, i64 216}
!48 = !{!29, !7, i64 224}
!49 = distinct !{!49, !16}
!50 = distinct !{!50, !16}


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