; 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._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 }
%struct._FtConn = type { ptr, i32, ptr, i32, ptr, i32, ptr, i32, i32, float, i8, i32, i32, i8, i32, i8 }
%struct._OpConn = type { ptr, i8, ptr, i32, i8, i8, i32, i8, float }

@gcmd_line = external global %struct._command_line, align 4
@gop_conn = external global ptr, align 8
@lnum_E = external dso_local global i32, align 4
@gef_conn = external global ptr, align 8
@lE = external dso_local global ptr, align 8
@gcost_rplans = external global i8, align 1
@gft_conn = external global ptr, align 8
@.str.10 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.26 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.27 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.28 = external hidden unnamed_addr constant [49 x i8], align 1
@.str.29 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.30 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.31 = external hidden unnamed_addr constant [27 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 @new_ef(i32 noundef %0) #2 {
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca float, align 4
  %5 = alloca i32, align 4
  store i32 %0, ptr %2, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #4
  %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 %16

8:                                                ; preds = %1
  %9 = call i32 (ptr, ...) @printf(ptr noundef @.str.25)
  %10 = load ptr, ptr @gef_conn, align 8, !tbaa !12
  %11 = load i32, ptr %2, align 4, !tbaa !5
  %12 = sext i32 %11 to i64
  %13 = getelementptr inbounds %struct._EfConn, ptr %10, i64 %12
  %14 = getelementptr inbounds %struct._EfConn, ptr %13, i32 0, i32 0
  %15 = load i32, ptr %14, align 8, !tbaa !14
  call void @print_op_name(i32 noundef %15)
  br label %16

16:                                               ; preds = %8, %1
  %17 = load ptr, ptr @gef_conn, align 8, !tbaa !12
  %18 = load i32, ptr %2, align 4, !tbaa !5
  %19 = sext i32 %18 to i64
  %20 = getelementptr inbounds %struct._EfConn, ptr %17, i64 %19
  %21 = getelementptr inbounds %struct._EfConn, ptr %20, i32 0, i32 28
  %22 = load i8, ptr %21, align 4, !tbaa !16
  %23 = icmp ne i8 %22, 0
  br i1 %23, label %24, label %26

24:                                               ; preds = %16
  %25 = call i32 (ptr, ...) @printf(ptr noundef @.str.26)
  call void @exit(i32 noundef 1) #5
  unreachable

26:                                               ; preds = %16
  %27 = load i32, ptr %2, align 4, !tbaa !5
  %28 = load ptr, ptr @lE, align 8, !tbaa !12
  %29 = load i32, ptr @lnum_E, align 4, !tbaa !5
  %30 = add nsw i32 %29, 1
  store i32 %30, ptr @lnum_E, align 4, !tbaa !5
  %31 = sext i32 %29 to i64
  %32 = getelementptr inbounds i32, ptr %28, i64 %31
  store i32 %27, ptr %32, align 4, !tbaa !5
  %33 = load ptr, ptr @gef_conn, align 8, !tbaa !12
  %34 = load i32, ptr %2, align 4, !tbaa !5
  %35 = sext i32 %34 to i64
  %36 = getelementptr inbounds %struct._EfConn, ptr %33, i64 %35
  %37 = getelementptr inbounds %struct._EfConn, ptr %36, i32 0, i32 28
  store i8 1, ptr %37, align 4, !tbaa !16
  %38 = load i8, ptr @gcost_rplans, align 1, !tbaa !17
  %39 = icmp ne i8 %38, 0
  br i1 %39, label %41, label %40

40:                                               ; preds = %26
  store i32 1, ptr %5, align 4
  br label %226

41:                                               ; preds = %26
  store float 0.000000e+00, ptr %4, align 4, !tbaa !18
  %42 = load i32, ptr getelementptr inbounds (%struct._command_line, ptr @gcmd_line, i32 0, i32 4), align 4, !tbaa !9
  %43 = icmp ne i32 %42, 0
  br i1 %43, label %44, label %46

44:                                               ; preds = %41
  %45 = call i32 (ptr, ...) @printf(ptr noundef @.str.27)
  br label %46

46:                                               ; preds = %44, %41
  store i32 0, ptr %3, align 4, !tbaa !5
  br label %47

47:                                               ; preds = %180, %46
  %48 = load i32, ptr %3, align 4, !tbaa !5
  %49 = load ptr, ptr @gef_conn, align 8, !tbaa !12
  %50 = load i32, ptr %2, align 4, !tbaa !5
  %51 = sext i32 %50 to i64
  %52 = getelementptr inbounds %struct._EfConn, ptr %49, i64 %51
  %53 = getelementptr inbounds %struct._EfConn, ptr %52, i32 0, i32 5
  %54 = load i32, ptr %53, align 8, !tbaa !19
  %55 = icmp slt i32 %48, %54
  br i1 %55, label %56, label %183

56:                                               ; preds = %47
  %57 = load ptr, ptr @gft_conn, align 8, !tbaa !12
  %58 = load ptr, ptr @gef_conn, align 8, !tbaa !12
  %59 = load i32, ptr %2, align 4, !tbaa !5
  %60 = sext i32 %59 to i64
  %61 = getelementptr inbounds %struct._EfConn, ptr %58, i64 %60
  %62 = getelementptr inbounds %struct._EfConn, ptr %61, i32 0, i32 4
  %63 = load ptr, ptr %62, align 8, !tbaa !20
  %64 = load i32, ptr %3, align 4, !tbaa !5
  %65 = sext i32 %64 to i64
  %66 = getelementptr inbounds i32, ptr %63, i64 %65
  %67 = load i32, ptr %66, align 4, !tbaa !5
  %68 = sext i32 %67 to i64
  %69 = getelementptr inbounds %struct._FtConn, ptr %57, i64 %68
  %70 = getelementptr inbounds %struct._FtConn, ptr %69, i32 0, i32 9
  %71 = load float, ptr %70, align 8, !tbaa !21
  %72 = fcmp olt float %71, 0.000000e+00
  br i1 %72, label %73, label %124

73:                                               ; preds = %56
  %74 = load ptr, ptr @gft_conn, align 8, !tbaa !12
  %75 = load ptr, ptr @gef_conn, align 8, !tbaa !12
  %76 = load i32, ptr %2, align 4, !tbaa !5
  %77 = sext i32 %76 to i64
  %78 = getelementptr inbounds %struct._EfConn, ptr %75, i64 %77
  %79 = getelementptr inbounds %struct._EfConn, ptr %78, i32 0, i32 4
  %80 = load ptr, ptr %79, align 8, !tbaa !20
  %81 = load i32, ptr %3, align 4, !tbaa !5
  %82 = sext i32 %81 to i64
  %83 = getelementptr inbounds i32, ptr %80, i64 %82
  %84 = load i32, ptr %83, align 4, !tbaa !5
  %85 = sext i32 %84 to i64
  %86 = getelementptr inbounds %struct._FtConn, ptr %74, i64 %85
  %87 = getelementptr inbounds %struct._FtConn, ptr %86, i32 0, i32 9
  %88 = load float, ptr %87, align 8, !tbaa !21
  %89 = fpext float %88 to double
  %90 = call i32 (ptr, ...) @printf(ptr noundef @.str.28, double noundef %89)
  %91 = load ptr, ptr @gef_conn, align 8, !tbaa !12
  %92 = load i32, ptr %2, align 4, !tbaa !5
  %93 = sext i32 %92 to i64
  %94 = getelementptr inbounds %struct._EfConn, ptr %91, i64 %93
  %95 = getelementptr inbounds %struct._EfConn, ptr %94, i32 0, i32 4
  %96 = load ptr, ptr %95, align 8, !tbaa !20
  %97 = load i32, ptr %3, align 4, !tbaa !5
  %98 = sext i32 %97 to i64
  %99 = getelementptr inbounds i32, ptr %96, i64 %98
  %100 = load i32, ptr %99, align 4, !tbaa !5
  call void @print_ft_name(i32 noundef %100)
  %101 = load ptr, ptr @gft_conn, align 8, !tbaa !12
  %102 = load ptr, ptr @gef_conn, align 8, !tbaa !12
  %103 = load i32, ptr %2, align 4, !tbaa !5
  %104 = sext i32 %103 to i64
  %105 = getelementptr inbounds %struct._EfConn, ptr %102, i64 %104
  %106 = getelementptr inbounds %struct._EfConn, ptr %105, i32 0, i32 4
  %107 = load ptr, ptr %106, align 8, !tbaa !20
  %108 = load i32, ptr %3, align 4, !tbaa !5
  %109 = sext i32 %108 to i64
  %110 = getelementptr inbounds i32, ptr %107, i64 %109
  %111 = load i32, ptr %110, align 4, !tbaa !5
  %112 = sext i32 %111 to i64
  %113 = getelementptr inbounds %struct._FtConn, ptr %101, i64 %112
  %114 = getelementptr inbounds %struct._FtConn, ptr %113, i32 0, i32 8
  %115 = load i32, ptr %114, align 4, !tbaa !23
  %116 = call i32 (ptr, ...) @printf(ptr noundef @.str.29, i32 noundef %115)
  %117 = load ptr, ptr @gef_conn, align 8, !tbaa !12
  %118 = load i32, ptr %2, align 4, !tbaa !5
  %119 = sext i32 %118 to i64
  %120 = getelementptr inbounds %struct._EfConn, ptr %117, i64 %119
  %121 = getelementptr inbounds %struct._EfConn, ptr %120, i32 0, i32 0
  %122 = load i32, ptr %121, align 8, !tbaa !14
  call void @print_op_name(i32 noundef %122)
  %123 = call i32 (ptr, ...) @printf(ptr noundef @.str.10)
  call void @exit(i32 noundef 1) #5
  unreachable

124:                                              ; preds = %56
  %125 = load i32, ptr getelementptr inbounds (%struct._command_line, ptr @gcmd_line, i32 0, i32 4), align 4, !tbaa !9
  %126 = icmp ne i32 %125, 0
  br i1 %126, label %127, label %145

127:                                              ; preds = %124
  %128 = load ptr, ptr @gft_conn, align 8, !tbaa !12
  %129 = load ptr, ptr @gef_conn, align 8, !tbaa !12
  %130 = load i32, ptr %2, align 4, !tbaa !5
  %131 = sext i32 %130 to i64
  %132 = getelementptr inbounds %struct._EfConn, ptr %129, i64 %131
  %133 = getelementptr inbounds %struct._EfConn, ptr %132, i32 0, i32 4
  %134 = load ptr, ptr %133, align 8, !tbaa !20
  %135 = load i32, ptr %3, align 4, !tbaa !5
  %136 = sext i32 %135 to i64
  %137 = getelementptr inbounds i32, ptr %134, i64 %136
  %138 = load i32, ptr %137, align 4, !tbaa !5
  %139 = sext i32 %138 to i64
  %140 = getelementptr inbounds %struct._FtConn, ptr %128, i64 %139
  %141 = getelementptr inbounds %struct._FtConn, ptr %140, i32 0, i32 9
  %142 = load float, ptr %141, align 8, !tbaa !21
  %143 = fpext float %142 to double
  %144 = call i32 (ptr, ...) @printf(ptr noundef @.str.30, double noundef %143)
  br label %145

145:                                              ; preds = %127, %124
  %146 = load float, ptr %4, align 4, !tbaa !18
  %147 = load ptr, ptr @gft_conn, align 8, !tbaa !12
  %148 = load ptr, ptr @gef_conn, align 8, !tbaa !12
  %149 = load i32, ptr %2, align 4, !tbaa !5
  %150 = sext i32 %149 to i64
  %151 = getelementptr inbounds %struct._EfConn, ptr %148, i64 %150
  %152 = getelementptr inbounds %struct._EfConn, ptr %151, i32 0, i32 4
  %153 = load ptr, ptr %152, align 8, !tbaa !20
  %154 = load i32, ptr %3, 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._FtConn, ptr %147, i64 %158
  %160 = getelementptr inbounds %struct._FtConn, ptr %159, i32 0, i32 9
  %161 = load float, ptr %160, align 8, !tbaa !21
  %162 = fcmp olt float %146, %161
  br i1 %162, label %163, label %179

163:                                              ; preds = %145
  %164 = load ptr, ptr @gft_conn, align 8, !tbaa !12
  %165 = load ptr, ptr @gef_conn, align 8, !tbaa !12
  %166 = load i32, ptr %2, align 4, !tbaa !5
  %167 = sext i32 %166 to i64
  %168 = getelementptr inbounds %struct._EfConn, ptr %165, i64 %167
  %169 = getelementptr inbounds %struct._EfConn, ptr %168, i32 0, i32 4
  %170 = load ptr, ptr %169, align 8, !tbaa !20
  %171 = load i32, ptr %3, align 4, !tbaa !5
  %172 = sext i32 %171 to i64
  %173 = getelementptr inbounds i32, ptr %170, i64 %172
  %174 = load i32, ptr %173, align 4, !tbaa !5
  %175 = sext i32 %174 to i64
  %176 = getelementptr inbounds %struct._FtConn, ptr %164, i64 %175
  %177 = getelementptr inbounds %struct._FtConn, ptr %176, i32 0, i32 9
  %178 = load float, ptr %177, align 8, !tbaa !21
  store float %178, ptr %4, align 4, !tbaa !18
  br label %179

179:                                              ; preds = %163, %145
  br label %180

180:                                              ; preds = %179
  %181 = load i32, ptr %3, align 4, !tbaa !5
  %182 = add nsw i32 %181, 1
  store i32 %182, ptr %3, align 4, !tbaa !5
  br label %47, !llvm.loop !24

183:                                              ; preds = %47
  %184 = load float, ptr %4, align 4, !tbaa !18
  %185 = load ptr, ptr @gop_conn, align 8, !tbaa !12
  %186 = load ptr, ptr @gef_conn, align 8, !tbaa !12
  %187 = load i32, ptr %2, align 4, !tbaa !5
  %188 = sext i32 %187 to i64
  %189 = getelementptr inbounds %struct._EfConn, ptr %186, i64 %188
  %190 = getelementptr inbounds %struct._EfConn, ptr %189, i32 0, i32 0
  %191 = load i32, ptr %190, align 8, !tbaa !14
  %192 = sext i32 %191 to i64
  %193 = getelementptr inbounds %struct._OpConn, ptr %185, i64 %192
  %194 = getelementptr inbounds %struct._OpConn, ptr %193, i32 0, i32 8
  %195 = load float, ptr %194, align 8, !tbaa !26
  %196 = fadd float %184, %195
  %197 = load ptr, ptr @gef_conn, align 8, !tbaa !12
  %198 = load i32, ptr %2, align 4, !tbaa !5
  %199 = sext i32 %198 to i64
  %200 = getelementptr inbounds %struct._EfConn, ptr %197, i64 %199
  %201 = getelementptr inbounds %struct._EfConn, ptr %200, i32 0, i32 27
  store float %196, ptr %201, align 8, !tbaa !28
  %202 = load i32, ptr getelementptr inbounds (%struct._command_line, ptr @gcmd_line, i32 0, i32 4), align 4, !tbaa !9
  %203 = icmp ne i32 %202, 0
  br i1 %203, label %204, label %225

204:                                              ; preds = %183
  %205 = load ptr, ptr @gop_conn, align 8, !tbaa !12
  %206 = load ptr, ptr @gef_conn, align 8, !tbaa !12
  %207 = load i32, ptr %2, align 4, !tbaa !5
  %208 = sext i32 %207 to i64
  %209 = getelementptr inbounds %struct._EfConn, ptr %206, i64 %208
  %210 = getelementptr inbounds %struct._EfConn, ptr %209, i32 0, i32 0
  %211 = load i32, ptr %210, align 8, !tbaa !14
  %212 = sext i32 %211 to i64
  %213 = getelementptr inbounds %struct._OpConn, ptr %205, i64 %212
  %214 = getelementptr inbounds %struct._OpConn, ptr %213, i32 0, i32 8
  %215 = load float, ptr %214, align 8, !tbaa !26
  %216 = fpext float %215 to double
  %217 = load ptr, ptr @gef_conn, align 8, !tbaa !12
  %218 = load i32, ptr %2, align 4, !tbaa !5
  %219 = sext i32 %218 to i64
  %220 = getelementptr inbounds %struct._EfConn, ptr %217, i64 %219
  %221 = getelementptr inbounds %struct._EfConn, ptr %220, i32 0, i32 27
  %222 = load float, ptr %221, align 8, !tbaa !28
  %223 = fpext float %222 to double
  %224 = call i32 (ptr, ...) @printf(ptr noundef @.str.31, double noundef %216, double noundef %223)
  br label %225

225:                                              ; preds = %204, %183
  store i32 0, ptr %5, align 4
  br label %226

226:                                              ; preds = %225, %40
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #4
  %227 = load i32, ptr %5, align 4
  switch i32 %227, label %229 [
    i32 0, label %228
    i32 1, label %228
  ]

228:                                              ; preds = %226, %226
  ret void

229:                                              ; preds = %226
  unreachable
}

declare void @print_ft_name(i32 noundef) #1

; Function Attrs: noreturn nounwind
declare void @exit(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 = { 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 "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 = !{!"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 0}
!15 = !{!"_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}
!16 = !{!15, !7, i64 196}
!17 = !{!7, !7, i64 0}
!18 = !{!11, !11, i64 0}
!19 = !{!15, !6, i64 24}
!20 = !{!15, !13, i64 16}
!21 = !{!22, !11, i64 64}
!22 = !{!"_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}
!23 = !{!22, !6, i64 60}
!24 = distinct !{!24, !25}
!25 = !{!"llvm.loop.mustprogress"}
!26 = !{!27, !11, i64 40}
!27 = !{!"_OpConn", !13, i64 0, !7, i64 8, !13, i64 16, !6, i64 24, !7, i64 28, !7, i64 29, !6, i64 32, !7, i64 36, !11, i64 40}
!28 = !{!15, !11, i64 192}


; 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._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 }
%struct._FtConn = type { ptr, i32, ptr, i32, ptr, i32, ptr, i32, i32, float, i8, i32, i32, i8, i32, i8 }
%struct._OpConn = type { ptr, i8, ptr, i32, i8, i8, i32, i8, float }

@gcmd_line = external local_unnamed_addr global %struct._command_line, align 4
@gop_conn = external local_unnamed_addr global ptr, align 8
@lnum_E = external dso_local local_unnamed_addr global i32, align 4
@gef_conn = external local_unnamed_addr global ptr, align 8
@lE = external dso_local local_unnamed_addr global ptr, align 8
@gcost_rplans = external local_unnamed_addr global i8, align 1
@gft_conn = external local_unnamed_addr global ptr, align 8
@.str.10 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.26 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.27 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.28 = external hidden unnamed_addr constant [49 x i8], align 1
@.str.29 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.30 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.31 = external hidden unnamed_addr constant [27 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 @new_ef(i32 noundef %0) local_unnamed_addr #2 {
  %2 = load i32, ptr getelementptr inbounds (i8, ptr @gcmd_line, i64 772), align 4, !tbaa !5
  %.not = icmp eq i32 %2, 0
  br i1 %.not, label %._crit_edge58, label %3

._crit_edge58:                                    ; preds = %1
  %.pre59 = sext i32 %0 to i64
  br label %9

3:                                                ; preds = %1
  %4 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.25)
  %5 = load ptr, ptr @gef_conn, align 8, !tbaa !11
  %6 = sext i32 %0 to i64
  %7 = getelementptr inbounds %struct._EfConn, ptr %5, i64 %6
  %8 = load i32, ptr %7, align 8, !tbaa !13
  tail call void @print_op_name(i32 noundef %8) #4
  br label %9

9:                                                ; preds = %._crit_edge58, %3
  %.pre-phi60 = phi i64 [ %.pre59, %._crit_edge58 ], [ %6, %3 ]
  %10 = load ptr, ptr @gef_conn, align 8, !tbaa !11
  %11 = getelementptr inbounds %struct._EfConn, ptr %10, i64 %.pre-phi60, i32 28
  %12 = load i8, ptr %11, align 4, !tbaa !15
  %.not31 = icmp eq i8 %12, 0
  br i1 %.not31, label %15, label %13

13:                                               ; preds = %9
  %14 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.26)
  tail call void @exit(i32 noundef 1) #5
  unreachable

15:                                               ; preds = %9
  %16 = load ptr, ptr @lE, align 8, !tbaa !11
  %17 = load i32, ptr @lnum_E, align 4, !tbaa !16
  %18 = add nsw i32 %17, 1
  store i32 %18, ptr @lnum_E, align 4, !tbaa !16
  %19 = sext i32 %17 to i64
  %20 = getelementptr inbounds i32, ptr %16, i64 %19
  store i32 %0, ptr %20, align 4, !tbaa !16
  store i8 1, ptr %11, align 4, !tbaa !15
  %21 = load i8, ptr @gcost_rplans, align 1, !tbaa !17
  %.not32 = icmp eq i8 %21, 0
  br i1 %.not32, label %91, label %22

22:                                               ; preds = %15
  %23 = load i32, ptr getelementptr inbounds (i8, ptr @gcmd_line, i64 772), align 4, !tbaa !5
  %.not33 = icmp eq i32 %23, 0
  br i1 %.not33, label %26, label %24

24:                                               ; preds = %22
  %25 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.27)
  %.pre = load ptr, ptr @gef_conn, align 8, !tbaa !11
  br label %26

26:                                               ; preds = %24, %22
  %27 = phi ptr [ %.pre, %24 ], [ %10, %22 ]
  %28 = getelementptr inbounds %struct._EfConn, ptr %27, i64 %.pre-phi60
  %29 = getelementptr inbounds i8, ptr %28, i64 24
  %30 = load i32, ptr %29, align 8, !tbaa !18
  %31 = icmp sgt i32 %30, 0
  br i1 %31, label %.lr.ph.preheader, label %._crit_edge

.lr.ph.preheader:                                 ; preds = %26
  %.pre49 = load ptr, ptr @gft_conn, align 8, !tbaa !11
  br label %.lr.ph

.lr.ph:                                           ; preds = %.lr.ph.preheader, %69
  %32 = phi ptr [ %27, %.lr.ph.preheader ], [ %71, %69 ]
  %33 = phi ptr [ %.pre49, %.lr.ph.preheader ], [ %72, %69 ]
  %indvars.iv = phi i64 [ 0, %.lr.ph.preheader ], [ %indvars.iv.next, %69 ]
  %.041 = phi float [ 0.000000e+00, %.lr.ph.preheader ], [ %.1, %69 ]
  %34 = getelementptr inbounds %struct._EfConn, ptr %32, i64 %.pre-phi60, i32 4
  %35 = load ptr, ptr %34, align 8, !tbaa !19
  %36 = getelementptr inbounds i32, ptr %35, i64 %indvars.iv
  %37 = load i32, ptr %36, align 4, !tbaa !16
  %38 = sext i32 %37 to i64
  %39 = getelementptr inbounds %struct._FtConn, ptr %33, i64 %38, i32 9
  %40 = load float, ptr %39, align 8, !tbaa !20
  %41 = fcmp olt float %40, 0.000000e+00
  br i1 %41, label %42, label %64

42:                                               ; preds = %.lr.ph
  %43 = fpext float %40 to double
  %44 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.28, double noundef %43)
  %45 = load ptr, ptr @gef_conn, align 8, !tbaa !11
  %46 = getelementptr inbounds %struct._EfConn, ptr %45, i64 %.pre-phi60, i32 4
  %47 = load ptr, ptr %46, align 8, !tbaa !19
  %48 = getelementptr inbounds i32, ptr %47, i64 %indvars.iv
  %49 = load i32, ptr %48, align 4, !tbaa !16
  tail call void @print_ft_name(i32 noundef %49) #4
  %50 = load ptr, ptr @gft_conn, align 8, !tbaa !11
  %51 = load ptr, ptr @gef_conn, align 8, !tbaa !11
  %52 = getelementptr inbounds %struct._EfConn, ptr %51, i64 %.pre-phi60, i32 4
  %53 = load ptr, ptr %52, align 8, !tbaa !19
  %54 = getelementptr inbounds i32, ptr %53, i64 %indvars.iv
  %55 = load i32, ptr %54, align 4, !tbaa !16
  %56 = sext i32 %55 to i64
  %57 = getelementptr inbounds %struct._FtConn, ptr %50, i64 %56, i32 8
  %58 = load i32, ptr %57, align 4, !tbaa !22
  %59 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.29, i32 noundef %58)
  %60 = load ptr, ptr @gef_conn, align 8, !tbaa !11
  %61 = getelementptr inbounds %struct._EfConn, ptr %60, i64 %.pre-phi60
  %62 = load i32, ptr %61, align 8, !tbaa !13
  tail call void @print_op_name(i32 noundef %62) #4
  %63 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.10)
  tail call void @exit(i32 noundef 1) #5
  unreachable

64:                                               ; preds = %.lr.ph
  %65 = load i32, ptr getelementptr inbounds (i8, ptr @gcmd_line, i64 772), align 4, !tbaa !5
  %.not35 = icmp eq i32 %65, 0
  br i1 %.not35, label %69, label %66

66:                                               ; preds = %64
  %67 = fpext float %40 to double
  %68 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.30, double noundef %67)
  %.pre50 = load ptr, ptr @gft_conn, align 8, !tbaa !11
  %.pre51 = load ptr, ptr @gef_conn, align 8, !tbaa !11
  %.phi.trans.insert = getelementptr inbounds %struct._EfConn, ptr %.pre51, i64 %.pre-phi60, i32 4
  %.pre52 = load ptr, ptr %.phi.trans.insert, align 8, !tbaa !19
  %.phi.trans.insert53 = getelementptr inbounds i32, ptr %.pre52, i64 %indvars.iv
  %.pre54 = load i32, ptr %.phi.trans.insert53, align 4, !tbaa !16
  %.pre55 = sext i32 %.pre54 to i64
  %.phi.trans.insert56 = getelementptr inbounds %struct._FtConn, ptr %.pre50, i64 %.pre55, i32 9
  %.pre57 = load float, ptr %.phi.trans.insert56, align 8, !tbaa !20
  br label %69

69:                                               ; preds = %66, %64
  %70 = phi float [ %.pre57, %66 ], [ %40, %64 ]
  %71 = phi ptr [ %.pre51, %66 ], [ %32, %64 ]
  %72 = phi ptr [ %.pre50, %66 ], [ %33, %64 ]
  %73 = fcmp olt float %.041, %70
  %.1 = select i1 %73, float %70, float %.041
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %74 = getelementptr inbounds %struct._EfConn, ptr %71, i64 %.pre-phi60
  %75 = getelementptr inbounds i8, ptr %74, i64 24
  %76 = load i32, ptr %75, align 8, !tbaa !18
  %77 = sext i32 %76 to i64
  %78 = icmp slt i64 %indvars.iv.next, %77
  br i1 %78, label %.lr.ph, label %._crit_edge, !llvm.loop !23

._crit_edge:                                      ; preds = %69, %26
  %.0.lcssa = phi float [ 0.000000e+00, %26 ], [ %.1, %69 ]
  %.lcssa = phi ptr [ %28, %26 ], [ %74, %69 ]
  %79 = load ptr, ptr @gop_conn, align 8, !tbaa !11
  %80 = load i32, ptr %.lcssa, align 8, !tbaa !13
  %81 = sext i32 %80 to i64
  %82 = getelementptr inbounds %struct._OpConn, ptr %79, i64 %81, i32 8
  %83 = load float, ptr %82, align 8, !tbaa !25
  %84 = fadd float %.0.lcssa, %83
  %85 = getelementptr inbounds i8, ptr %.lcssa, i64 192
  store float %84, ptr %85, align 8, !tbaa !27
  %86 = load i32, ptr getelementptr inbounds (i8, ptr @gcmd_line, i64 772), align 4, !tbaa !5
  %.not34 = icmp eq i32 %86, 0
  br i1 %.not34, label %91, label %87

87:                                               ; preds = %._crit_edge
  %88 = fpext float %83 to double
  %89 = fpext float %84 to double
  %90 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.31, double noundef %88, double noundef %89)
  br label %91

91:                                               ; preds = %._crit_edge, %87, %15
  ret void
}

declare void @print_ft_name(i32 noundef) local_unnamed_addr #1

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

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 = { 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 #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, !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 0}
!14 = !{!"_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}
!15 = !{!14, !7, i64 196}
!16 = !{!9, !9, i64 0}
!17 = !{!7, !7, i64 0}
!18 = !{!14, !9, i64 24}
!19 = !{!14, !12, i64 16}
!20 = !{!21, !10, i64 64}
!21 = !{!"_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}
!22 = !{!21, !9, i64 60}
!23 = distinct !{!23, !24}
!24 = !{!"llvm.loop.mustprogress"}
!25 = !{!26, !10, i64 40}
!26 = !{!"_OpConn", !12, i64 0, !7, i64 8, !12, i64 16, !9, i64 24, !7, i64 28, !7, i64 29, !9, i64 32, !7, i64 36, !10, i64 40}
!27 = !{!14, !10, i64 192}


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