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

; 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._TokenList = type { ptr, ptr }
%struct._Fluent = type { i32, [5 x i32] }

@gconstants = external global [2000 x ptr], align 16
@gfunctions = external global [50 x ptr], align 16
@gf_arity = external global [50 x i32], align 16
@gfunctions_args_type = external global [50 x [5 x i32]], align 16
@gis_member = external global [2000 x [50 x i8]], align 16
@lvar_types = external dso_local global [15 x i32], align 16
@lvar_names = external dso_local global [15 x ptr], align 16
@.str.42 = external hidden unnamed_addr constant [58 x i8], align 1
@.str.47 = external hidden unnamed_addr constant [65 x i8], align 1
@.str.49 = external hidden unnamed_addr constant [52 x i8], align 1
@.str.50 = external hidden unnamed_addr constant [60 x i8], align 1
@.str.51 = external hidden unnamed_addr constant [63 x i8], align 1
@.str.52 = external hidden unnamed_addr constant [57 x i8], align 1
@.str.53 = external hidden unnamed_addr constant [76 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 i32 @position_in_constants_table(ptr noundef) #3

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

; Function Attrs: nounwind willreturn memory(read)
declare i32 @strcmp(ptr noundef, ptr noundef) #4

; Function Attrs: nounwind uwtable
define dso_local void @make_Fluent(ptr noundef %0, ptr noundef %1, i32 noundef %2) #3 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca ptr, align 8
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  store i32 %2, ptr %6, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #5
  %10 = load ptr, ptr %5, align 8, !tbaa !5
  %11 = icmp ne ptr %10, null
  br i1 %11, label %14, label %12

12:                                               ; preds = %3
  %13 = call i32 (ptr, ...) @printf(ptr noundef @.str.42)
  call void @exit(i32 noundef 1) #6
  unreachable

14:                                               ; preds = %3
  %15 = load ptr, ptr %5, align 8, !tbaa !5
  %16 = getelementptr inbounds %struct._TokenList, ptr %15, i32 0, i32 0
  %17 = load ptr, ptr %16, align 8, !tbaa !11
  %18 = call i32 @position_in_functions_table(ptr noundef %17)
  %19 = load ptr, ptr %4, align 8, !tbaa !5
  %20 = getelementptr inbounds %struct._Fluent, ptr %19, i32 0, i32 0
  store i32 %18, ptr %20, align 4, !tbaa !13
  %21 = load ptr, ptr %4, align 8, !tbaa !5
  %22 = getelementptr inbounds %struct._Fluent, ptr %21, i32 0, i32 0
  %23 = load i32, ptr %22, align 4, !tbaa !13
  %24 = icmp eq i32 %23, -1
  br i1 %24, label %25, label %30

25:                                               ; preds = %14
  %26 = load ptr, ptr %5, align 8, !tbaa !5
  %27 = getelementptr inbounds %struct._TokenList, ptr %26, i32 0, i32 0
  %28 = load ptr, ptr %27, align 8, !tbaa !11
  %29 = call i32 (ptr, ...) @printf(ptr noundef @.str.49, ptr noundef %28)
  call void @exit(i32 noundef 1) #6
  unreachable

30:                                               ; preds = %14
  store i32 0, ptr %7, align 4, !tbaa !9
  %31 = load ptr, ptr %5, align 8, !tbaa !5
  %32 = getelementptr inbounds %struct._TokenList, ptr %31, i32 0, i32 1
  %33 = load ptr, ptr %32, align 8, !tbaa !15
  store ptr %33, ptr %9, align 8, !tbaa !5
  br label %34

34:                                               ; preds = %202, %30
  %35 = load ptr, ptr %9, align 8, !tbaa !5
  %36 = icmp ne ptr %35, null
  br i1 %36, label %37, label %206

37:                                               ; preds = %34
  %38 = load ptr, ptr %9, align 8, !tbaa !5
  %39 = getelementptr inbounds %struct._TokenList, ptr %38, i32 0, i32 0
  %40 = load ptr, ptr %39, align 8, !tbaa !11
  %41 = getelementptr inbounds i8, ptr %40, i64 0
  %42 = load i8, ptr %41, align 1, !tbaa !16
  %43 = sext i8 %42 to i32
  %44 = icmp eq i32 %43, 63
  br i1 %44, label %45, label %139

45:                                               ; preds = %37
  %46 = load i32, ptr %6, align 4, !tbaa !9
  %47 = sub nsw i32 %46, 1
  store i32 %47, ptr %8, align 4, !tbaa !9
  br label %48

48:                                               ; preds = %72, %45
  %49 = load i32, ptr %8, align 4, !tbaa !9
  %50 = icmp sgt i32 %49, -1
  br i1 %50, label %51, label %75

51:                                               ; preds = %48
  %52 = load i32, ptr %8, align 4, !tbaa !9
  %53 = sext i32 %52 to i64
  %54 = getelementptr inbounds [15 x ptr], ptr @lvar_names, i64 0, i64 %53
  %55 = load ptr, ptr %54, align 8, !tbaa !5
  %56 = load ptr, ptr %9, align 8, !tbaa !5
  %57 = getelementptr inbounds %struct._TokenList, ptr %56, i32 0, i32 0
  %58 = load ptr, ptr %57, align 8, !tbaa !11
  %59 = icmp eq ptr %55, %58
  br i1 %59, label %70, label %60

60:                                               ; preds = %51
  %61 = load i32, ptr %8, align 4, !tbaa !9
  %62 = sext i32 %61 to i64
  %63 = getelementptr inbounds [15 x ptr], ptr @lvar_names, i64 0, i64 %62
  %64 = load ptr, ptr %63, align 8, !tbaa !5
  %65 = load ptr, ptr %9, align 8, !tbaa !5
  %66 = getelementptr inbounds %struct._TokenList, ptr %65, i32 0, i32 0
  %67 = load ptr, ptr %66, align 8, !tbaa !11
  %68 = call i32 @strcmp(ptr noundef %64, ptr noundef %67) #7
  %69 = icmp eq i32 %68, 0
  br i1 %69, label %70, label %71

70:                                               ; preds = %60, %51
  br label %75

71:                                               ; preds = %60
  br label %72

72:                                               ; preds = %71
  %73 = load i32, ptr %8, align 4, !tbaa !9
  %74 = add nsw i32 %73, -1
  store i32 %74, ptr %8, align 4, !tbaa !9
  br label %48, !llvm.loop !17

75:                                               ; preds = %70, %48
  %76 = load i32, ptr %8, align 4, !tbaa !9
  %77 = icmp eq i32 %76, -1
  br i1 %77, label %78, label %86

78:                                               ; preds = %75
  %79 = load ptr, ptr %9, align 8, !tbaa !5
  %80 = getelementptr inbounds %struct._TokenList, ptr %79, i32 0, i32 0
  %81 = load ptr, ptr %80, align 8, !tbaa !11
  %82 = load ptr, ptr %5, align 8, !tbaa !5
  %83 = getelementptr inbounds %struct._TokenList, ptr %82, i32 0, i32 0
  %84 = load ptr, ptr %83, align 8, !tbaa !11
  %85 = call i32 (ptr, ...) @printf(ptr noundef @.str.50, ptr noundef %81, ptr noundef %84)
  call void @exit(i32 noundef 1) #6
  unreachable

86:                                               ; preds = %75
  %87 = load i32, ptr %8, align 4, !tbaa !9
  %88 = sext i32 %87 to i64
  %89 = getelementptr inbounds [15 x i32], ptr @lvar_types, i64 0, i64 %88
  %90 = load i32, ptr %89, align 4, !tbaa !9
  %91 = load ptr, ptr %4, align 8, !tbaa !5
  %92 = getelementptr inbounds %struct._Fluent, ptr %91, i32 0, i32 0
  %93 = load i32, ptr %92, align 4, !tbaa !13
  %94 = sext i32 %93 to i64
  %95 = getelementptr inbounds [50 x [5 x i32]], ptr @gfunctions_args_type, i64 0, i64 %94
  %96 = load i32, ptr %7, align 4, !tbaa !9
  %97 = sext i32 %96 to i64
  %98 = getelementptr inbounds [5 x i32], ptr %95, i64 0, i64 %97
  %99 = load i32, ptr %98, align 4, !tbaa !9
  %100 = icmp ne i32 %90, %99
  br i1 %100, label %101, label %130

101:                                              ; preds = %86
  %102 = load i32, ptr %8, align 4, !tbaa !9
  %103 = sext i32 %102 to i64
  %104 = getelementptr inbounds [15 x i32], ptr @lvar_types, i64 0, i64 %103
  %105 = load i32, ptr %104, align 4, !tbaa !9
  %106 = load ptr, ptr %4, align 8, !tbaa !5
  %107 = getelementptr inbounds %struct._Fluent, ptr %106, i32 0, i32 0
  %108 = load i32, ptr %107, align 4, !tbaa !13
  %109 = sext i32 %108 to i64
  %110 = getelementptr inbounds [50 x [5 x i32]], ptr @gfunctions_args_type, i64 0, i64 %109
  %111 = load i32, ptr %7, align 4, !tbaa !9
  %112 = sext i32 %111 to i64
  %113 = getelementptr inbounds [5 x i32], ptr %110, i64 0, i64 %112
  %114 = load i32, ptr %113, align 4, !tbaa !9
  %115 = call zeroext i8 @is_subtype(i32 noundef %105, i32 noundef %114)
  %116 = icmp ne i8 %115, 0
  br i1 %116, label %130, label %117

117:                                              ; preds = %101
  %118 = load i32, ptr %8, align 4, !tbaa !9
  %119 = sext i32 %118 to i64
  %120 = getelementptr inbounds [15 x ptr], ptr @lvar_names, i64 0, i64 %119
  %121 = load ptr, ptr %120, align 8, !tbaa !5
  %122 = load i32, ptr %7, align 4, !tbaa !9
  %123 = load ptr, ptr %4, align 8, !tbaa !5
  %124 = getelementptr inbounds %struct._Fluent, ptr %123, i32 0, i32 0
  %125 = load i32, ptr %124, align 4, !tbaa !13
  %126 = sext i32 %125 to i64
  %127 = getelementptr inbounds [50 x ptr], ptr @gfunctions, i64 0, i64 %126
  %128 = load ptr, ptr %127, align 8, !tbaa !5
  %129 = call i32 (ptr, ...) @printf(ptr noundef @.str.51, ptr noundef %121, i32 noundef %122, ptr noundef %128)
  call void @exit(i32 noundef 1) #6
  unreachable

130:                                              ; preds = %101, %86
  %131 = load i32, ptr %8, align 4, !tbaa !9
  %132 = mul nsw i32 %131, -1
  %133 = sub nsw i32 %132, 1
  %134 = load ptr, ptr %4, align 8, !tbaa !5
  %135 = getelementptr inbounds %struct._Fluent, ptr %134, i32 0, i32 1
  %136 = load i32, ptr %7, align 4, !tbaa !9
  %137 = sext i32 %136 to i64
  %138 = getelementptr inbounds [5 x i32], ptr %135, i64 0, i64 %137
  store i32 %133, ptr %138, align 4, !tbaa !9
  br label %199

139:                                              ; preds = %37
  %140 = load ptr, ptr %9, align 8, !tbaa !5
  %141 = getelementptr inbounds %struct._TokenList, ptr %140, i32 0, i32 0
  %142 = load ptr, ptr %141, align 8, !tbaa !11
  %143 = call i32 @position_in_constants_table(ptr noundef %142)
  %144 = load ptr, ptr %4, align 8, !tbaa !5
  %145 = getelementptr inbounds %struct._Fluent, ptr %144, i32 0, i32 1
  %146 = load i32, ptr %7, align 4, !tbaa !9
  %147 = sext i32 %146 to i64
  %148 = getelementptr inbounds [5 x i32], ptr %145, i64 0, i64 %147
  store i32 %143, ptr %148, align 4, !tbaa !9
  %149 = icmp eq i32 %143, -1
  br i1 %149, label %150, label %158

150:                                              ; preds = %139
  %151 = load ptr, ptr %9, align 8, !tbaa !5
  %152 = getelementptr inbounds %struct._TokenList, ptr %151, i32 0, i32 0
  %153 = load ptr, ptr %152, align 8, !tbaa !11
  %154 = load ptr, ptr %5, align 8, !tbaa !5
  %155 = getelementptr inbounds %struct._TokenList, ptr %154, i32 0, i32 0
  %156 = load ptr, ptr %155, align 8, !tbaa !11
  %157 = call i32 (ptr, ...) @printf(ptr noundef @.str.52, ptr noundef %153, ptr noundef %156)
  call void @exit(i32 noundef 1) #6
  unreachable

158:                                              ; preds = %139
  %159 = load ptr, ptr %4, align 8, !tbaa !5
  %160 = getelementptr inbounds %struct._Fluent, ptr %159, i32 0, i32 1
  %161 = load i32, ptr %7, align 4, !tbaa !9
  %162 = sext i32 %161 to i64
  %163 = getelementptr inbounds [5 x i32], ptr %160, i64 0, i64 %162
  %164 = load i32, ptr %163, align 4, !tbaa !9
  %165 = sext i32 %164 to i64
  %166 = getelementptr inbounds [2000 x [50 x i8]], ptr @gis_member, i64 0, i64 %165
  %167 = load ptr, ptr %4, align 8, !tbaa !5
  %168 = getelementptr inbounds %struct._Fluent, ptr %167, i32 0, i32 0
  %169 = load i32, ptr %168, align 4, !tbaa !13
  %170 = sext i32 %169 to i64
  %171 = getelementptr inbounds [50 x [5 x i32]], ptr @gfunctions_args_type, i64 0, i64 %170
  %172 = load i32, ptr %7, align 4, !tbaa !9
  %173 = sext i32 %172 to i64
  %174 = getelementptr inbounds [5 x i32], ptr %171, i64 0, i64 %173
  %175 = load i32, ptr %174, align 4, !tbaa !9
  %176 = sext i32 %175 to i64
  %177 = getelementptr inbounds [50 x i8], ptr %166, i64 0, i64 %176
  %178 = load i8, ptr %177, align 1, !tbaa !16
  %179 = icmp ne i8 %178, 0
  br i1 %179, label %198, label %180

180:                                              ; preds = %158
  %181 = load ptr, ptr %4, align 8, !tbaa !5
  %182 = getelementptr inbounds %struct._Fluent, ptr %181, i32 0, i32 1
  %183 = load i32, ptr %7, align 4, !tbaa !9
  %184 = sext i32 %183 to i64
  %185 = getelementptr inbounds [5 x i32], ptr %182, i64 0, i64 %184
  %186 = load i32, ptr %185, align 4, !tbaa !9
  %187 = sext i32 %186 to i64
  %188 = getelementptr inbounds [2000 x ptr], ptr @gconstants, i64 0, i64 %187
  %189 = load ptr, ptr %188, align 8, !tbaa !5
  %190 = load i32, ptr %7, align 4, !tbaa !9
  %191 = load ptr, ptr %4, align 8, !tbaa !5
  %192 = getelementptr inbounds %struct._Fluent, ptr %191, i32 0, i32 0
  %193 = load i32, ptr %192, align 4, !tbaa !13
  %194 = sext i32 %193 to i64
  %195 = getelementptr inbounds [50 x ptr], ptr @gfunctions, i64 0, i64 %194
  %196 = load ptr, ptr %195, align 8, !tbaa !5
  %197 = call i32 (ptr, ...) @printf(ptr noundef @.str.47, ptr noundef %189, i32 noundef %190, ptr noundef %196)
  call void @exit(i32 noundef 1) #6
  unreachable

198:                                              ; preds = %158
  br label %199

199:                                              ; preds = %198, %130
  %200 = load i32, ptr %7, align 4, !tbaa !9
  %201 = add nsw i32 %200, 1
  store i32 %201, ptr %7, align 4, !tbaa !9
  br label %202

202:                                              ; preds = %199
  %203 = load ptr, ptr %9, align 8, !tbaa !5
  %204 = getelementptr inbounds %struct._TokenList, ptr %203, i32 0, i32 1
  %205 = load ptr, ptr %204, align 8, !tbaa !15
  store ptr %205, ptr %9, align 8, !tbaa !5
  br label %34, !llvm.loop !19

206:                                              ; preds = %34
  %207 = load i32, ptr %7, align 4, !tbaa !9
  %208 = load ptr, ptr %4, align 8, !tbaa !5
  %209 = getelementptr inbounds %struct._Fluent, ptr %208, i32 0, i32 0
  %210 = load i32, ptr %209, align 4, !tbaa !13
  %211 = sext i32 %210 to i64
  %212 = getelementptr inbounds [50 x i32], ptr @gf_arity, i64 0, i64 %211
  %213 = load i32, ptr %212, align 4, !tbaa !9
  %214 = icmp ne i32 %207, %213
  br i1 %214, label %215, label %230

215:                                              ; preds = %206
  %216 = load ptr, ptr %4, align 8, !tbaa !5
  %217 = getelementptr inbounds %struct._Fluent, ptr %216, i32 0, i32 0
  %218 = load i32, ptr %217, align 4, !tbaa !13
  %219 = sext i32 %218 to i64
  %220 = getelementptr inbounds [50 x ptr], ptr @gfunctions, i64 0, i64 %219
  %221 = load ptr, ptr %220, align 8, !tbaa !5
  %222 = load ptr, ptr %4, align 8, !tbaa !5
  %223 = getelementptr inbounds %struct._Fluent, ptr %222, i32 0, i32 0
  %224 = load i32, ptr %223, align 4, !tbaa !13
  %225 = sext i32 %224 to i64
  %226 = getelementptr inbounds [50 x i32], ptr @gf_arity, i64 0, i64 %225
  %227 = load i32, ptr %226, align 4, !tbaa !9
  %228 = load i32, ptr %7, align 4, !tbaa !9
  %229 = call i32 (ptr, ...) @printf(ptr noundef @.str.53, ptr noundef %221, i32 noundef %227, i32 noundef %228)
  call void @exit(i32 noundef 1) #6
  unreachable

230:                                              ; preds = %206
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #5
  ret void
}

; Function Attrs: nounwind uwtable
declare dso_local zeroext i8 @is_subtype(i32 noundef, 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 willreturn memory(read) "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 #5 = { nounwind }
attributes #6 = { noreturn nounwind }
attributes #7 = { nounwind willreturn memory(read) }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !6, i64 0}
!12 = !{!"_TokenList", !6, i64 0, !6, i64 8}
!13 = !{!14, !10, i64 0}
!14 = !{!"_Fluent", !10, i64 0, !7, i64 4}
!15 = !{!12, !6, i64 8}
!16 = !{!7, !7, i64 0}
!17 = distinct !{!17, !18}
!18 = !{!"llvm.loop.mustprogress"}
!19 = distinct !{!19, !18}


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

@gconstants = external local_unnamed_addr global [2000 x ptr], align 16
@gfunctions = external local_unnamed_addr global [50 x ptr], align 16
@gf_arity = external local_unnamed_addr global [50 x i32], align 16
@gfunctions_args_type = external local_unnamed_addr global [50 x [5 x i32]], align 16
@gis_member = external local_unnamed_addr global [2000 x [50 x i8]], align 16
@lvar_types = external dso_local local_unnamed_addr global [15 x i32], align 16
@lvar_names = external dso_local local_unnamed_addr global [15 x ptr], align 16
@.str.42 = external hidden unnamed_addr constant [58 x i8], align 1
@.str.47 = external hidden unnamed_addr constant [65 x i8], align 1
@.str.49 = external hidden unnamed_addr constant [52 x i8], align 1
@.str.50 = external hidden unnamed_addr constant [60 x i8], align 1
@.str.51 = external hidden unnamed_addr constant [63 x i8], align 1
@.str.52 = external hidden unnamed_addr constant [57 x i8], align 1
@.str.53 = external hidden unnamed_addr constant [76 x i8], align 1

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

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

; Function Attrs: mustprogress nofree nounwind willreturn memory(argmem: read)
declare i32 @strcmp(ptr nocapture noundef, ptr nocapture noundef) local_unnamed_addr #3

; Function Attrs: nounwind uwtable
define dso_local void @make_Fluent(ptr nocapture noundef %0, ptr noundef readonly %1, i32 noundef %2) local_unnamed_addr #2 {
  %.not = icmp eq ptr %1, null
  br i1 %.not, label %4, label %6

4:                                                ; preds = %3
  %5 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.42)
  tail call void @exit(i32 noundef 1) #5
  unreachable

6:                                                ; preds = %3
  %7 = load ptr, ptr %1, align 8, !tbaa !5
  %8 = tail call i32 @position_in_functions_table(ptr noundef %7)
  store i32 %8, ptr %0, align 4, !tbaa !10
  %9 = icmp eq i32 %8, -1
  br i1 %9, label %13, label %.preheader63

.preheader63:                                     ; preds = %6
  %.0.in82 = getelementptr inbounds i8, ptr %1, i64 8
  %.083 = load ptr, ptr %.0.in82, align 8, !tbaa !13
  %.not5884 = icmp eq ptr %.083, null
  br i1 %.not5884, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %.preheader63
  %10 = getelementptr inbounds i8, ptr %0, i64 4
  %11 = zext i32 %2 to i64
  %smin = tail call i32 @llvm.smin.i32(i32 %2, i32 0)
  %12 = add i32 %smin, -1
  br label %16

13:                                               ; preds = %6
  %14 = load ptr, ptr %1, align 8, !tbaa !5
  %15 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.49, ptr noundef %14)
  tail call void @exit(i32 noundef 1) #5
  unreachable

16:                                               ; preds = %.lr.ph, %80
  %indvars.iv109 = phi i64 [ 0, %.lr.ph ], [ %indvars.iv.next110, %80 ]
  %.087 = phi ptr [ %.083, %.lr.ph ], [ %.0, %80 ]
  %17 = load ptr, ptr %.087, align 8, !tbaa !5
  %18 = load i8, ptr %17, align 1, !tbaa !14
  %19 = icmp eq i8 %18, 63
  br i1 %19, label %.preheader, label %56

.preheader:                                       ; preds = %16, %27
  %indvars.iv = phi i64 [ %indvars.iv.next, %27 ], [ %11, %16 ]
  %indvars.iv.next = add nsw i64 %indvars.iv, -1
  %20 = trunc nuw i64 %indvars.iv to i32
  %21 = icmp sgt i32 %20, 0
  br i1 %21, label %22, label %30

22:                                               ; preds = %.preheader
  %23 = and i64 %indvars.iv.next, 4294967295
  %24 = getelementptr inbounds [15 x ptr], ptr @lvar_names, i64 0, i64 %23
  %25 = load ptr, ptr %24, align 8, !tbaa !15
  %26 = icmp eq ptr %25, %17
  br i1 %26, label %.thread.loopexit, label %27

27:                                               ; preds = %22
  %28 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %25, ptr noundef nonnull dereferenceable(1) %17) #6
  %29 = icmp eq i32 %28, 0
  br i1 %29, label %.thread.loopexit, label %.preheader, !llvm.loop !16

30:                                               ; preds = %.preheader
  %31 = icmp eq i64 %indvars.iv, 0
  br i1 %31, label %32, label %.thread

32:                                               ; preds = %30
  %33 = load ptr, ptr %1, align 8, !tbaa !5
  %34 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.50, ptr noundef nonnull %17, ptr noundef %33)
  tail call void @exit(i32 noundef 1) #5
  unreachable

.thread.loopexit:                                 ; preds = %22, %27
  %indvars.le = trunc i64 %indvars.iv.next to i32
  br label %.thread

.thread:                                          ; preds = %.thread.loopexit, %30
  %.04989 = phi i32 [ %12, %30 ], [ %indvars.le, %.thread.loopexit ]
  %35 = sext i32 %.04989 to i64
  %36 = getelementptr inbounds [15 x i32], ptr @lvar_types, i64 0, i64 %35
  %37 = load i32, ptr %36, align 4, !tbaa !18
  %38 = load i32, ptr %0, align 4, !tbaa !10
  %39 = sext i32 %38 to i64
  %40 = getelementptr inbounds [50 x [5 x i32]], ptr @gfunctions_args_type, i64 0, i64 %39, i64 %indvars.iv109
  %41 = load i32, ptr %40, align 4, !tbaa !18
  %.not61 = icmp eq i32 %37, %41
  br i1 %.not61, label %53, label %42

42:                                               ; preds = %.thread
  %43 = tail call zeroext i8 @is_subtype(i32 noundef %37, i32 noundef %41)
  %.not62 = icmp eq i8 %43, 0
  br i1 %.not62, label %44, label %53

44:                                               ; preds = %42
  %45 = trunc nuw nsw i64 %indvars.iv109 to i32
  %46 = getelementptr inbounds [15 x ptr], ptr @lvar_names, i64 0, i64 %35
  %47 = load ptr, ptr %46, align 8, !tbaa !15
  %48 = load i32, ptr %0, align 4, !tbaa !10
  %49 = sext i32 %48 to i64
  %50 = getelementptr inbounds [50 x ptr], ptr @gfunctions, i64 0, i64 %49
  %51 = load ptr, ptr %50, align 8, !tbaa !15
  %52 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.51, ptr noundef %47, i32 noundef %45, ptr noundef %51)
  tail call void @exit(i32 noundef 1) #5
  unreachable

53:                                               ; preds = %42, %.thread
  %54 = sub i32 0, %20
  %55 = getelementptr inbounds [5 x i32], ptr %10, i64 0, i64 %indvars.iv109
  store i32 %54, ptr %55, align 4, !tbaa !18
  br label %80

56:                                               ; preds = %16
  %57 = tail call i32 @position_in_constants_table(ptr noundef nonnull %17)
  %58 = getelementptr inbounds [5 x i32], ptr %10, i64 0, i64 %indvars.iv109
  store i32 %57, ptr %58, align 4, !tbaa !18
  %59 = icmp eq i32 %57, -1
  br i1 %59, label %60, label %64

60:                                               ; preds = %56
  %61 = load ptr, ptr %.087, align 8, !tbaa !5
  %62 = load ptr, ptr %1, align 8, !tbaa !5
  %63 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.52, ptr noundef %61, ptr noundef %62)
  tail call void @exit(i32 noundef 1) #5
  unreachable

64:                                               ; preds = %56
  %65 = sext i32 %57 to i64
  %66 = load i32, ptr %0, align 4, !tbaa !10
  %67 = sext i32 %66 to i64
  %68 = getelementptr inbounds [50 x [5 x i32]], ptr @gfunctions_args_type, i64 0, i64 %67, i64 %indvars.iv109
  %69 = load i32, ptr %68, align 4, !tbaa !18
  %70 = sext i32 %69 to i64
  %71 = getelementptr inbounds [2000 x [50 x i8]], ptr @gis_member, i64 0, i64 %65, i64 %70
  %72 = load i8, ptr %71, align 1, !tbaa !14
  %.not60 = icmp eq i8 %72, 0
  br i1 %.not60, label %73, label %80

73:                                               ; preds = %64
  %74 = trunc nuw nsw i64 %indvars.iv109 to i32
  %75 = getelementptr inbounds [2000 x ptr], ptr @gconstants, i64 0, i64 %65
  %76 = load ptr, ptr %75, align 8, !tbaa !15
  %77 = getelementptr inbounds [50 x ptr], ptr @gfunctions, i64 0, i64 %67
  %78 = load ptr, ptr %77, align 8, !tbaa !15
  %79 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.47, ptr noundef %76, i32 noundef %74, ptr noundef %78)
  tail call void @exit(i32 noundef 1) #5
  unreachable

80:                                               ; preds = %64, %53
  %indvars.iv.next110 = add nuw nsw i64 %indvars.iv109, 1
  %.0.in = getelementptr inbounds i8, ptr %.087, i64 8
  %.0 = load ptr, ptr %.0.in, align 8, !tbaa !13
  %.not58 = icmp eq ptr %.0, null
  br i1 %.not58, label %._crit_edge.loopexit, label %16, !llvm.loop !19

._crit_edge.loopexit:                             ; preds = %80
  %81 = trunc nuw i64 %indvars.iv.next110 to i32
  %.pre = load i32, ptr %0, align 4, !tbaa !10
  br label %._crit_edge

._crit_edge:                                      ; preds = %._crit_edge.loopexit, %.preheader63
  %82 = phi i32 [ %8, %.preheader63 ], [ %.pre, %._crit_edge.loopexit ]
  %.050.lcssa = phi i32 [ 0, %.preheader63 ], [ %81, %._crit_edge.loopexit ]
  %83 = sext i32 %82 to i64
  %84 = getelementptr inbounds [50 x i32], ptr @gf_arity, i64 0, i64 %83
  %85 = load i32, ptr %84, align 4, !tbaa !18
  %.not59 = icmp eq i32 %.050.lcssa, %85
  br i1 %.not59, label %90, label %86

86:                                               ; preds = %._crit_edge
  %87 = getelementptr inbounds [50 x ptr], ptr @gfunctions, i64 0, i64 %83
  %88 = load ptr, ptr %87, align 8, !tbaa !15
  %89 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.53, ptr noundef %88, i32 noundef %85, i32 noundef %.050.lcssa)
  tail call void @exit(i32 noundef 1) #5
  unreachable

90:                                               ; preds = %._crit_edge
  ret void
}

; Function Attrs: nounwind uwtable
declare dso_local zeroext i8 @is_subtype(i32 noundef, i32 noundef) local_unnamed_addr #2

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.smin.i32(i32, i32) #4

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 = { mustprogress nofree nounwind willreturn memory(argmem: read) "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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #5 = { noreturn nounwind }
attributes #6 = { nounwind willreturn memory(read) }

!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 = !{!"_TokenList", !7, i64 0, !7, i64 8}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!11, !12, i64 0}
!11 = !{!"_Fluent", !12, i64 0, !8, i64 4}
!12 = !{!"int", !8, i64 0}
!13 = !{!6, !7, i64 8}
!14 = !{!8, !8, i64 0}
!15 = !{!7, !7, i64 0}
!16 = distinct !{!16, !17}
!17 = !{!"llvm.loop.mustprogress"}
!18 = !{!12, !12, i64 0}
!19 = distinct !{!19, !17}


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