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

; 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._command_line = type { [256 x i8], [256 x i8], [256 x i8], i32, i32, i32, i8, i32, float }
%struct._FtConn = type { ptr, i32, ptr, i32, ptr, i32, ptr, i32, i32, float, i8, i32, i32, i8, i32, i8 }
%struct._EfConn = type { i32, i8, i8, float, ptr, i32, ptr, ptr, ptr, i32, ptr, ptr, ptr, i32, ptr, i32, ptr, ptr, ptr, i32, ptr, ptr, ptr, i32, ptr, i32, i32, float, i8, i32, i8, i32, i32 }

@gcmd_line = external global %struct._command_line, align 4
@gef_conn = external global ptr, align 8
@gft_conn = external global ptr, align 8
@lch_E = external dso_local global ptr, align 8
@lnum_ch_E = external dso_local global i32, align 4
@.str.13 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [35 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

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

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

declare void @print_op_name(i32 noundef) #1

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

8:                                                ; preds = %2
  %9 = load i32, ptr %4, align 4, !tbaa !5
  %10 = call i32 (ptr, ...) @printf(ptr noundef @.str.13, i32 noundef %9)
  %11 = load i32, ptr %3, align 4, !tbaa !5
  call void @print_ft_name(i32 noundef %11)
  br label %12

12:                                               ; preds = %8, %2
  %13 = load i32, ptr %4, align 4, !tbaa !5
  %14 = load ptr, ptr @gft_conn, align 8, !tbaa !12
  %15 = load i32, ptr %3, align 4, !tbaa !5
  %16 = sext i32 %15 to i64
  %17 = getelementptr inbounds %struct._FtConn, ptr %14, i64 %16
  %18 = getelementptr inbounds %struct._FtConn, ptr %17, i32 0, i32 8
  store i32 %13, ptr %18, align 4, !tbaa !14
  store i32 0, ptr %5, align 4, !tbaa !5
  br label %19

19:                                               ; preds = %259, %12
  %20 = load i32, ptr %5, align 4, !tbaa !5
  %21 = load ptr, ptr @gft_conn, align 8, !tbaa !12
  %22 = load i32, ptr %3, align 4, !tbaa !5
  %23 = sext i32 %22 to i64
  %24 = getelementptr inbounds %struct._FtConn, ptr %21, i64 %23
  %25 = getelementptr inbounds %struct._FtConn, ptr %24, i32 0, i32 1
  %26 = load i32, ptr %25, align 8, !tbaa !16
  %27 = icmp slt i32 %20, %26
  br i1 %27, label %28, label %262

28:                                               ; preds = %19
  %29 = load ptr, ptr @gef_conn, align 8, !tbaa !12
  %30 = load ptr, ptr @gft_conn, align 8, !tbaa !12
  %31 = load i32, ptr %3, align 4, !tbaa !5
  %32 = sext i32 %31 to i64
  %33 = getelementptr inbounds %struct._FtConn, ptr %30, i64 %32
  %34 = getelementptr inbounds %struct._FtConn, ptr %33, i32 0, i32 0
  %35 = load ptr, ptr %34, align 8, !tbaa !17
  %36 = load i32, ptr %5, align 4, !tbaa !5
  %37 = sext i32 %36 to i64
  %38 = getelementptr inbounds i32, ptr %35, i64 %37
  %39 = load i32, ptr %38, align 4, !tbaa !5
  %40 = sext i32 %39 to i64
  %41 = getelementptr inbounds %struct._EfConn, ptr %29, i64 %40
  %42 = getelementptr inbounds %struct._EfConn, ptr %41, i32 0, i32 1
  %43 = load i8, ptr %42, align 4, !tbaa !18
  %44 = icmp ne i8 %43, 0
  br i1 %44, label %45, label %46

45:                                               ; preds = %28
  br label %259

46:                                               ; preds = %28
  %47 = load i32, ptr getelementptr inbounds (%struct._command_line, ptr @gcmd_line, i32 0, i32 4), align 4, !tbaa !9
  %48 = icmp ne i32 %47, 0
  br i1 %48, label %49, label %113

49:                                               ; preds = %46
  %50 = call i32 (ptr, ...) @printf(ptr noundef @.str.14)
  %51 = load ptr, ptr @gef_conn, align 8, !tbaa !12
  %52 = load ptr, ptr @gft_conn, align 8, !tbaa !12
  %53 = load i32, ptr %3, align 4, !tbaa !5
  %54 = sext i32 %53 to i64
  %55 = getelementptr inbounds %struct._FtConn, ptr %52, i64 %54
  %56 = getelementptr inbounds %struct._FtConn, ptr %55, i32 0, i32 0
  %57 = load ptr, ptr %56, align 8, !tbaa !17
  %58 = load i32, ptr %5, align 4, !tbaa !5
  %59 = sext i32 %58 to i64
  %60 = getelementptr inbounds i32, ptr %57, i64 %59
  %61 = load i32, ptr %60, align 4, !tbaa !5
  %62 = sext i32 %61 to i64
  %63 = getelementptr inbounds %struct._EfConn, ptr %51, i64 %62
  %64 = getelementptr inbounds %struct._EfConn, ptr %63, i32 0, i32 0
  %65 = load i32, ptr %64, align 8, !tbaa !20
  call void @print_op_name(i32 noundef %65)
  %66 = load ptr, ptr @gef_conn, align 8, !tbaa !12
  %67 = load ptr, ptr @gft_conn, align 8, !tbaa !12
  %68 = load i32, ptr %3, align 4, !tbaa !5
  %69 = sext i32 %68 to i64
  %70 = getelementptr inbounds %struct._FtConn, ptr %67, i64 %69
  %71 = getelementptr inbounds %struct._FtConn, ptr %70, i32 0, i32 0
  %72 = load ptr, ptr %71, align 8, !tbaa !17
  %73 = load i32, ptr %5, align 4, !tbaa !5
  %74 = sext i32 %73 to i64
  %75 = getelementptr inbounds i32, ptr %72, i64 %74
  %76 = load i32, ptr %75, align 4, !tbaa !5
  %77 = sext i32 %76 to i64
  %78 = getelementptr inbounds %struct._EfConn, ptr %66, i64 %77
  %79 = getelementptr inbounds %struct._EfConn, ptr %78, i32 0, i32 29
  %80 = load i32, ptr %79, align 8, !tbaa !21
  %81 = load ptr, ptr @gef_conn, align 8, !tbaa !12
  %82 = load ptr, ptr @gft_conn, align 8, !tbaa !12
  %83 = load i32, ptr %3, align 4, !tbaa !5
  %84 = sext i32 %83 to i64
  %85 = getelementptr inbounds %struct._FtConn, ptr %82, i64 %84
  %86 = getelementptr inbounds %struct._FtConn, ptr %85, i32 0, i32 0
  %87 = load ptr, ptr %86, align 8, !tbaa !17
  %88 = load i32, ptr %5, align 4, !tbaa !5
  %89 = sext i32 %88 to i64
  %90 = getelementptr inbounds i32, ptr %87, i64 %89
  %91 = load i32, ptr %90, align 4, !tbaa !5
  %92 = sext i32 %91 to i64
  %93 = getelementptr inbounds %struct._EfConn, ptr %81, i64 %92
  %94 = getelementptr inbounds %struct._EfConn, ptr %93, i32 0, i32 29
  %95 = load i32, ptr %94, align 8, !tbaa !21
  %96 = add nsw i32 %95, 1
  %97 = load ptr, ptr @gef_conn, align 8, !tbaa !12
  %98 = load ptr, ptr @gft_conn, align 8, !tbaa !12
  %99 = load i32, ptr %3, align 4, !tbaa !5
  %100 = sext i32 %99 to i64
  %101 = getelementptr inbounds %struct._FtConn, ptr %98, i64 %100
  %102 = getelementptr inbounds %struct._FtConn, ptr %101, i32 0, i32 0
  %103 = load ptr, ptr %102, align 8, !tbaa !17
  %104 = load i32, ptr %5, align 4, !tbaa !5
  %105 = sext i32 %104 to i64
  %106 = getelementptr inbounds i32, ptr %103, i64 %105
  %107 = load i32, ptr %106, align 4, !tbaa !5
  %108 = sext i32 %107 to i64
  %109 = getelementptr inbounds %struct._EfConn, ptr %97, i64 %108
  %110 = getelementptr inbounds %struct._EfConn, ptr %109, i32 0, i32 5
  %111 = load i32, ptr %110, align 8, !tbaa !22
  %112 = call i32 (ptr, ...) @printf(ptr noundef @.str.15, i32 noundef %80, i32 noundef %96, i32 noundef %111)
  br label %113

113:                                              ; preds = %49, %46
  %114 = load ptr, ptr @gef_conn, align 8, !tbaa !12
  %115 = load ptr, ptr @gft_conn, align 8, !tbaa !12
  %116 = load i32, ptr %3, align 4, !tbaa !5
  %117 = sext i32 %116 to i64
  %118 = getelementptr inbounds %struct._FtConn, ptr %115, i64 %117
  %119 = getelementptr inbounds %struct._FtConn, ptr %118, i32 0, i32 0
  %120 = load ptr, ptr %119, align 8, !tbaa !17
  %121 = load i32, ptr %5, align 4, !tbaa !5
  %122 = sext i32 %121 to i64
  %123 = getelementptr inbounds i32, ptr %120, i64 %122
  %124 = load i32, ptr %123, align 4, !tbaa !5
  %125 = sext i32 %124 to i64
  %126 = getelementptr inbounds %struct._EfConn, ptr %114, i64 %125
  %127 = getelementptr inbounds %struct._EfConn, ptr %126, i32 0, i32 29
  %128 = load i32, ptr %127, align 8, !tbaa !21
  %129 = add nsw i32 %128, 1
  store i32 %129, ptr %127, align 8, !tbaa !21
  %130 = load ptr, ptr @gef_conn, align 8, !tbaa !12
  %131 = load ptr, ptr @gft_conn, align 8, !tbaa !12
  %132 = load i32, ptr %3, align 4, !tbaa !5
  %133 = sext i32 %132 to i64
  %134 = getelementptr inbounds %struct._FtConn, ptr %131, i64 %133
  %135 = getelementptr inbounds %struct._FtConn, ptr %134, i32 0, i32 0
  %136 = load ptr, ptr %135, align 8, !tbaa !17
  %137 = load i32, ptr %5, align 4, !tbaa !5
  %138 = sext i32 %137 to i64
  %139 = getelementptr inbounds i32, ptr %136, i64 %138
  %140 = load i32, ptr %139, align 4, !tbaa !5
  %141 = sext i32 %140 to i64
  %142 = getelementptr inbounds %struct._EfConn, ptr %130, i64 %141
  %143 = getelementptr inbounds %struct._EfConn, ptr %142, i32 0, i32 30
  %144 = load i8, ptr %143, align 4, !tbaa !23
  %145 = icmp ne i8 %144, 0
  br i1 %145, label %176, label %146

146:                                              ; preds = %113
  %147 = load ptr, ptr @gef_conn, align 8, !tbaa !12
  %148 = load ptr, ptr @gft_conn, align 8, !tbaa !12
  %149 = load i32, ptr %3, align 4, !tbaa !5
  %150 = sext i32 %149 to i64
  %151 = getelementptr inbounds %struct._FtConn, ptr %148, i64 %150
  %152 = getelementptr inbounds %struct._FtConn, ptr %151, i32 0, i32 0
  %153 = load ptr, ptr %152, align 8, !tbaa !17
  %154 = load i32, ptr %5, align 4, !tbaa !5
  %155 = sext i32 %154 to i64
  %156 = getelementptr inbounds i32, ptr %153, i64 %155
  %157 = load i32, ptr %156, align 4, !tbaa !5
  %158 = sext i32 %157 to i64
  %159 = getelementptr inbounds %struct._EfConn, ptr %147, i64 %158
  %160 = getelementptr inbounds %struct._EfConn, ptr %159, i32 0, i32 30
  store i8 1, ptr %160, align 4, !tbaa !23
  %161 = load ptr, ptr @gft_conn, align 8, !tbaa !12
  %162 = load i32, ptr %3, align 4, !tbaa !5
  %163 = sext i32 %162 to i64
  %164 = getelementptr inbounds %struct._FtConn, ptr %161, i64 %163
  %165 = getelementptr inbounds %struct._FtConn, ptr %164, i32 0, i32 0
  %166 = load ptr, ptr %165, align 8, !tbaa !17
  %167 = load i32, ptr %5, align 4, !tbaa !5
  %168 = sext i32 %167 to i64
  %169 = getelementptr inbounds i32, ptr %166, i64 %168
  %170 = load i32, ptr %169, align 4, !tbaa !5
  %171 = load ptr, ptr @lch_E, align 8, !tbaa !12
  %172 = load i32, ptr @lnum_ch_E, align 4, !tbaa !5
  %173 = add nsw i32 %172, 1
  store i32 %173, ptr @lnum_ch_E, align 4, !tbaa !5
  %174 = sext i32 %172 to i64
  %175 = getelementptr inbounds i32, ptr %171, i64 %174
  store i32 %170, ptr %175, align 4, !tbaa !5
  br label %176

176:                                              ; preds = %146, %113
  %177 = load ptr, ptr @gef_conn, align 8, !tbaa !12
  %178 = load ptr, ptr @gft_conn, align 8, !tbaa !12
  %179 = load i32, ptr %3, align 4, !tbaa !5
  %180 = sext i32 %179 to i64
  %181 = getelementptr inbounds %struct._FtConn, ptr %178, i64 %180
  %182 = getelementptr inbounds %struct._FtConn, ptr %181, i32 0, i32 0
  %183 = load ptr, ptr %182, align 8, !tbaa !17
  %184 = load i32, ptr %5, align 4, !tbaa !5
  %185 = sext i32 %184 to i64
  %186 = getelementptr inbounds i32, ptr %183, i64 %185
  %187 = load i32, ptr %186, align 4, !tbaa !5
  %188 = sext i32 %187 to i64
  %189 = getelementptr inbounds %struct._EfConn, ptr %177, i64 %188
  %190 = getelementptr inbounds %struct._EfConn, ptr %189, i32 0, i32 29
  %191 = load i32, ptr %190, align 8, !tbaa !21
  %192 = load ptr, ptr @gef_conn, align 8, !tbaa !12
  %193 = load ptr, ptr @gft_conn, align 8, !tbaa !12
  %194 = load i32, ptr %3, align 4, !tbaa !5
  %195 = sext i32 %194 to i64
  %196 = getelementptr inbounds %struct._FtConn, ptr %193, i64 %195
  %197 = getelementptr inbounds %struct._FtConn, ptr %196, i32 0, i32 0
  %198 = load ptr, ptr %197, align 8, !tbaa !17
  %199 = load i32, ptr %5, align 4, !tbaa !5
  %200 = sext i32 %199 to i64
  %201 = getelementptr inbounds i32, ptr %198, i64 %200
  %202 = load i32, ptr %201, align 4, !tbaa !5
  %203 = sext i32 %202 to i64
  %204 = getelementptr inbounds %struct._EfConn, ptr %192, i64 %203
  %205 = getelementptr inbounds %struct._EfConn, ptr %204, i32 0, i32 5
  %206 = load i32, ptr %205, align 8, !tbaa !22
  %207 = icmp eq i32 %191, %206
  br i1 %207, label %208, label %258

208:                                              ; preds = %176
  %209 = load ptr, ptr @gef_conn, align 8, !tbaa !12
  %210 = load ptr, ptr @gft_conn, align 8, !tbaa !12
  %211 = load i32, ptr %3, align 4, !tbaa !5
  %212 = sext i32 %211 to i64
  %213 = getelementptr inbounds %struct._FtConn, ptr %210, i64 %212
  %214 = getelementptr inbounds %struct._FtConn, ptr %213, i32 0, i32 0
  %215 = load ptr, ptr %214, align 8, !tbaa !17
  %216 = load i32, ptr %5, align 4, !tbaa !5
  %217 = sext i32 %216 to i64
  %218 = getelementptr inbounds i32, ptr %215, i64 %217
  %219 = load i32, ptr %218, align 4, !tbaa !5
  %220 = sext i32 %219 to i64
  %221 = getelementptr inbounds %struct._EfConn, ptr %209, i64 %220
  %222 = getelementptr inbounds %struct._EfConn, ptr %221, i32 0, i32 31
  %223 = load i32, ptr %222, align 8, !tbaa !24
  %224 = load ptr, ptr @gef_conn, align 8, !tbaa !12
  %225 = load ptr, ptr @gft_conn, align 8, !tbaa !12
  %226 = load i32, ptr %3, align 4, !tbaa !5
  %227 = sext i32 %226 to i64
  %228 = getelementptr inbounds %struct._FtConn, ptr %225, i64 %227
  %229 = getelementptr inbounds %struct._FtConn, ptr %228, i32 0, i32 0
  %230 = load ptr, ptr %229, align 8, !tbaa !17
  %231 = load i32, ptr %5, align 4, !tbaa !5
  %232 = sext i32 %231 to i64
  %233 = getelementptr inbounds i32, ptr %230, i64 %232
  %234 = load i32, ptr %233, align 4, !tbaa !5
  %235 = sext i32 %234 to i64
  %236 = getelementptr inbounds %struct._EfConn, ptr %224, i64 %235
  %237 = getelementptr inbounds %struct._EfConn, ptr %236, i32 0, i32 9
  %238 = load i32, ptr %237, align 8, !tbaa !25
  %239 = icmp eq i32 %223, %238
  br i1 %239, label %240, label %258

240:                                              ; preds = %208
  %241 = load i32, ptr getelementptr inbounds (%struct._command_line, ptr @gcmd_line, i32 0, i32 4), align 4, !tbaa !9
  %242 = icmp ne i32 %241, 0
  br i1 %242, label %243, label %247

243:                                              ; preds = %240
  %244 = load i32, ptr %4, align 4, !tbaa !5
  %245 = call i32 (ptr, ...) @printf(ptr noundef @.str.16, i32 noundef %244)
  %246 = load i32, ptr %3, align 4, !tbaa !5
  call void @print_ft_name(i32 noundef %246)
  br label %247

247:                                              ; preds = %243, %240
  %248 = load ptr, ptr @gft_conn, align 8, !tbaa !12
  %249 = load i32, ptr %3, align 4, !tbaa !5
  %250 = sext i32 %249 to i64
  %251 = getelementptr inbounds %struct._FtConn, ptr %248, i64 %250
  %252 = getelementptr inbounds %struct._FtConn, ptr %251, i32 0, i32 0
  %253 = load ptr, ptr %252, align 8, !tbaa !17
  %254 = load i32, ptr %5, align 4, !tbaa !5
  %255 = sext i32 %254 to i64
  %256 = getelementptr inbounds i32, ptr %253, i64 %255
  %257 = load i32, ptr %256, align 4, !tbaa !5
  call void @new_ef(i32 noundef %257)
  br label %258

258:                                              ; preds = %247, %208, %176
  br label %259

259:                                              ; preds = %258, %45
  %260 = load i32, ptr %5, align 4, !tbaa !5
  %261 = add nsw i32 %260, 1
  store i32 %261, ptr %5, align 4, !tbaa !5
  br label %19, !llvm.loop !26

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

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

declare void @print_ft_name(i32 noundef) #1

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 = { 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 = { 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, !6, i64 772}
!10 = !{!"_command_line", !7, i64 0, !7, i64 256, !7, i64 512, !6, i64 768, !6, i64 772, !6, i64 776, !7, i64 780, !6, i64 784, !11, i64 788}
!11 = !{!"float", !7, i64 0}
!12 = !{!13, !13, i64 0}
!13 = !{!"any pointer", !7, i64 0}
!14 = !{!15, !6, i64 60}
!15 = !{!"_FtConn", !13, i64 0, !6, i64 8, !13, i64 16, !6, i64 24, !13, i64 32, !6, i64 40, !13, i64 48, !6, i64 56, !6, i64 60, !11, i64 64, !7, i64 68, !6, i64 72, !6, i64 76, !7, i64 80, !6, i64 84, !7, i64 88}
!16 = !{!15, !6, i64 8}
!17 = !{!15, !13, i64 0}
!18 = !{!19, !7, i64 4}
!19 = !{!"_EfConn", !6, i64 0, !7, i64 4, !7, i64 5, !11, i64 8, !13, i64 16, !6, i64 24, !13, i64 32, !13, i64 40, !13, i64 48, !6, i64 56, !13, i64 64, !13, i64 72, !13, i64 80, !6, i64 88, !13, i64 96, !6, i64 104, !13, i64 112, !13, i64 120, !13, i64 128, !6, i64 136, !13, i64 144, !13, i64 152, !13, i64 160, !6, i64 168, !13, i64 176, !6, i64 184, !6, i64 188, !11, i64 192, !7, i64 196, !6, i64 200, !7, i64 204, !6, i64 208, !6, i64 212}
!20 = !{!19, !6, i64 0}
!21 = !{!19, !6, i64 200}
!22 = !{!19, !6, i64 24}
!23 = !{!19, !7, i64 204}
!24 = !{!19, !6, i64 208}
!25 = !{!19, !6, i64 56}
!26 = distinct !{!26, !27}
!27 = !{!"llvm.loop.mustprogress"}


; 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._command_line = type { [256 x i8], [256 x i8], [256 x i8], i32, i32, i32, i8, i32, float }
%struct._FtConn = type { ptr, i32, ptr, i32, ptr, i32, ptr, i32, i32, float, i8, i32, i32, i8, i32, i8 }
%struct._EfConn = type { i32, i8, i8, float, ptr, i32, ptr, ptr, ptr, i32, ptr, ptr, ptr, i32, ptr, i32, ptr, ptr, ptr, i32, ptr, ptr, ptr, i32, ptr, i32, i32, float, i8, i32, i8, i32, i32 }

@gcmd_line = external local_unnamed_addr global %struct._command_line, align 4
@gef_conn = external local_unnamed_addr global ptr, align 8
@gft_conn = external local_unnamed_addr global ptr, align 8
@lch_E = external dso_local local_unnamed_addr global ptr, align 8
@lnum_ch_E = external dso_local local_unnamed_addr global i32, align 4
@.str.13 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [35 x i8], align 1

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

declare void @print_op_name(i32 noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
define dso_local void @activate_ft(i32 noundef %0, i32 noundef %1) local_unnamed_addr #2 {
  %3 = load i32, ptr getelementptr inbounds (i8, ptr @gcmd_line, i64 772), align 4, !tbaa !5
  %.not = icmp eq i32 %3, 0
  br i1 %.not, label %6, label %4

4:                                                ; preds = %2
  %5 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.13, i32 noundef %1)
  tail call void @print_ft_name(i32 noundef %0) #3
  br label %6

6:                                                ; preds = %4, %2
  %7 = load ptr, ptr @gft_conn, align 8, !tbaa !11
  %8 = sext i32 %0 to i64
  %9 = getelementptr inbounds %struct._FtConn, ptr %7, i64 %8, i32 8
  store i32 %1, ptr %9, align 4, !tbaa !13
  %10 = getelementptr inbounds %struct._FtConn, ptr %7, i64 %8
  %11 = getelementptr inbounds i8, ptr %10, i64 8
  %12 = load i32, ptr %11, align 8, !tbaa !15
  %13 = icmp sgt i32 %12, 0
  br i1 %13, label %.lr.ph.preheader, label %._crit_edge

.lr.ph.preheader:                                 ; preds = %6
  %.pre43 = load ptr, ptr @gef_conn, align 8, !tbaa !11
  br label %.lr.ph

.lr.ph:                                           ; preds = %.lr.ph.preheader, %92
  %14 = phi ptr [ %7, %.lr.ph.preheader ], [ %93, %92 ]
  %15 = phi ptr [ %.pre43, %.lr.ph.preheader ], [ %94, %92 ]
  %16 = phi ptr [ %.pre43, %.lr.ph.preheader ], [ %95, %92 ]
  %indvars.iv = phi i64 [ 0, %.lr.ph.preheader ], [ %indvars.iv.next, %92 ]
  %17 = phi ptr [ %10, %.lr.ph.preheader ], [ %96, %92 ]
  %18 = load ptr, ptr %17, align 8, !tbaa !16
  %19 = getelementptr inbounds i32, ptr %18, i64 %indvars.iv
  %20 = load i32, ptr %19, align 4, !tbaa !17
  %21 = sext i32 %20 to i64
  %22 = getelementptr inbounds %struct._EfConn, ptr %16, i64 %21, i32 1
  %23 = load i8, ptr %22, align 4, !tbaa !18
  %.not37 = icmp eq i8 %23, 0
  br i1 %.not37, label %24, label %92

24:                                               ; preds = %.lr.ph
  %25 = load i32, ptr getelementptr inbounds (i8, ptr @gcmd_line, i64 772), align 4, !tbaa !5
  %.not38 = icmp eq i32 %25, 0
  br i1 %.not38, label %51, label %26

26:                                               ; preds = %24
  %27 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.14)
  %28 = load ptr, ptr @gef_conn, align 8, !tbaa !11
  %29 = load ptr, ptr @gft_conn, align 8, !tbaa !11
  %30 = getelementptr inbounds %struct._FtConn, ptr %29, i64 %8
  %31 = load ptr, ptr %30, align 8, !tbaa !16
  %32 = getelementptr inbounds i32, ptr %31, i64 %indvars.iv
  %33 = load i32, ptr %32, align 4, !tbaa !17
  %34 = sext i32 %33 to i64
  %35 = getelementptr inbounds %struct._EfConn, ptr %28, i64 %34
  %36 = load i32, ptr %35, align 8, !tbaa !20
  tail call void @print_op_name(i32 noundef %36) #3
  %37 = load ptr, ptr @gef_conn, align 8, !tbaa !11
  %38 = load ptr, ptr @gft_conn, align 8, !tbaa !11
  %39 = getelementptr inbounds %struct._FtConn, ptr %38, i64 %8
  %40 = load ptr, ptr %39, align 8, !tbaa !16
  %41 = getelementptr inbounds i32, ptr %40, i64 %indvars.iv
  %42 = load i32, ptr %41, align 4, !tbaa !17
  %43 = sext i32 %42 to i64
  %44 = getelementptr inbounds %struct._EfConn, ptr %37, i64 %43
  %45 = getelementptr inbounds i8, ptr %44, i64 200
  %46 = load i32, ptr %45, align 8, !tbaa !21
  %47 = add nsw i32 %46, 1
  %48 = getelementptr inbounds i8, ptr %44, i64 24
  %49 = load i32, ptr %48, align 8, !tbaa !22
  %50 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.15, i32 noundef %46, i32 noundef %47, i32 noundef %49)
  %.pre44 = load ptr, ptr @gef_conn, align 8, !tbaa !11
  %.pre45 = load ptr, ptr @gft_conn, align 8, !tbaa !11
  br label %51

51:                                               ; preds = %26, %24
  %52 = phi ptr [ %.pre45, %26 ], [ %14, %24 ]
  %53 = phi ptr [ %.pre44, %26 ], [ %15, %24 ]
  %54 = getelementptr inbounds %struct._FtConn, ptr %52, i64 %8
  %55 = load ptr, ptr %54, align 8, !tbaa !16
  %56 = getelementptr inbounds i32, ptr %55, i64 %indvars.iv
  %57 = load i32, ptr %56, align 4, !tbaa !17
  %58 = sext i32 %57 to i64
  %59 = getelementptr inbounds %struct._EfConn, ptr %53, i64 %58, i32 29
  %60 = load i32, ptr %59, align 8, !tbaa !21
  %61 = add nsw i32 %60, 1
  store i32 %61, ptr %59, align 8, !tbaa !21
  %62 = load i32, ptr %56, align 4, !tbaa !17
  %63 = sext i32 %62 to i64
  %64 = getelementptr inbounds %struct._EfConn, ptr %53, i64 %63, i32 30
  %65 = load i8, ptr %64, align 4, !tbaa !23
  %.not39 = icmp eq i8 %65, 0
  br i1 %.not39, label %66, label %72

66:                                               ; preds = %51
  store i8 1, ptr %64, align 4, !tbaa !23
  %67 = load ptr, ptr @lch_E, align 8, !tbaa !11
  %68 = load i32, ptr @lnum_ch_E, align 4, !tbaa !17
  %69 = add nsw i32 %68, 1
  store i32 %69, ptr @lnum_ch_E, align 4, !tbaa !17
  %70 = sext i32 %68 to i64
  %71 = getelementptr inbounds i32, ptr %67, i64 %70
  store i32 %62, ptr %71, align 4, !tbaa !17
  %.pre46 = load i32, ptr %56, align 4, !tbaa !17
  %.pre52 = sext i32 %.pre46 to i64
  br label %72

72:                                               ; preds = %66, %51
  %.pre-phi = phi i64 [ %.pre52, %66 ], [ %63, %51 ]
  %73 = phi i32 [ %.pre46, %66 ], [ %62, %51 ]
  %74 = getelementptr inbounds %struct._EfConn, ptr %53, i64 %.pre-phi
  %75 = getelementptr inbounds i8, ptr %74, i64 200
  %76 = load i32, ptr %75, align 8, !tbaa !21
  %77 = getelementptr inbounds i8, ptr %74, i64 24
  %78 = load i32, ptr %77, align 8, !tbaa !22
  %79 = icmp eq i32 %76, %78
  br i1 %79, label %80, label %92

80:                                               ; preds = %72
  %81 = getelementptr inbounds i8, ptr %74, i64 208
  %82 = load i32, ptr %81, align 8, !tbaa !24
  %83 = getelementptr inbounds i8, ptr %74, i64 56
  %84 = load i32, ptr %83, align 8, !tbaa !25
  %85 = icmp eq i32 %82, %84
  br i1 %85, label %86, label %92

86:                                               ; preds = %80
  %87 = load i32, ptr getelementptr inbounds (i8, ptr @gcmd_line, i64 772), align 4, !tbaa !5
  %.not40 = icmp eq i32 %87, 0
  br i1 %.not40, label %90, label %88

88:                                               ; preds = %86
  %89 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.16, i32 noundef %1)
  tail call void @print_ft_name(i32 noundef %0) #3
  %.pre47 = load ptr, ptr @gft_conn, align 8, !tbaa !11
  %.phi.trans.insert = getelementptr inbounds %struct._FtConn, ptr %.pre47, i64 %8
  %.pre48 = load ptr, ptr %.phi.trans.insert, align 8, !tbaa !16
  %.phi.trans.insert49 = getelementptr inbounds i32, ptr %.pre48, i64 %indvars.iv
  %.pre50 = load i32, ptr %.phi.trans.insert49, align 4, !tbaa !17
  br label %90

90:                                               ; preds = %88, %86
  %91 = phi i32 [ %.pre50, %88 ], [ %73, %86 ]
  tail call void @new_ef(i32 noundef %91)
  %.pre = load ptr, ptr @gef_conn, align 8, !tbaa !11
  %.pre51 = load ptr, ptr @gft_conn, align 8, !tbaa !11
  br label %92

92:                                               ; preds = %72, %80, %90, %.lr.ph
  %93 = phi ptr [ %52, %72 ], [ %52, %80 ], [ %.pre51, %90 ], [ %14, %.lr.ph ]
  %94 = phi ptr [ %53, %72 ], [ %53, %80 ], [ %.pre, %90 ], [ %15, %.lr.ph ]
  %95 = phi ptr [ %53, %72 ], [ %53, %80 ], [ %.pre, %90 ], [ %16, %.lr.ph ]
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %96 = getelementptr inbounds %struct._FtConn, ptr %93, i64 %8
  %97 = getelementptr inbounds i8, ptr %96, i64 8
  %98 = load i32, ptr %97, align 8, !tbaa !15
  %99 = sext i32 %98 to i64
  %100 = icmp slt i64 %indvars.iv.next, %99
  br i1 %100, label %.lr.ph, label %._crit_edge, !llvm.loop !26

._crit_edge:                                      ; preds = %92, %6
  ret void
}

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

declare void @print_ft_name(i32 noundef) local_unnamed_addr #1

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 = { "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 = { 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, !9, i64 772}
!6 = !{!"_command_line", !7, i64 0, !7, i64 256, !7, i64 512, !9, i64 768, !9, i64 772, !9, i64 776, !7, i64 780, !9, i64 784, !10, i64 788}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!"int", !7, i64 0}
!10 = !{!"float", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"any pointer", !7, i64 0}
!13 = !{!14, !9, i64 60}
!14 = !{!"_FtConn", !12, i64 0, !9, i64 8, !12, i64 16, !9, i64 24, !12, i64 32, !9, i64 40, !12, i64 48, !9, i64 56, !9, i64 60, !10, i64 64, !7, i64 68, !9, i64 72, !9, i64 76, !7, i64 80, !9, i64 84, !7, i64 88}
!15 = !{!14, !9, i64 8}
!16 = !{!14, !12, i64 0}
!17 = !{!9, !9, i64 0}
!18 = !{!19, !7, i64 4}
!19 = !{!"_EfConn", !9, i64 0, !7, i64 4, !7, i64 5, !10, i64 8, !12, i64 16, !9, i64 24, !12, i64 32, !12, i64 40, !12, i64 48, !9, i64 56, !12, i64 64, !12, i64 72, !12, i64 80, !9, i64 88, !12, i64 96, !9, i64 104, !12, i64 112, !12, i64 120, !12, i64 128, !9, i64 136, !12, i64 144, !12, i64 152, !12, i64 160, !9, i64 168, !12, i64 176, !9, i64 184, !9, i64 188, !10, i64 192, !7, i64 196, !9, i64 200, !7, i64 204, !9, i64 208, !9, i64 212}
!20 = !{!19, !9, i64 0}
!21 = !{!19, !9, i64 200}
!22 = !{!19, !9, i64 24}
!23 = !{!19, !7, i64 204}
!24 = !{!19, !9, i64 208}
!25 = !{!19, !9, i64 56}
!26 = distinct !{!26, !27}
!27 = !{!"llvm.loop.mustprogress"}


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