; 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._FlConn = type { ptr, i32, ptr, ptr, ptr, i32, ptr, ptr, ptr, i32, i8, ptr, ptr, i32, i8, float, i8, ptr, ptr, i8, float, i32 }

@gcmd_line = external global %struct._command_line, align 4
@gfl_conn = external global ptr, align 8
@gnum_real_fl_conn = external global i32, align 4
@gmneed_start_D = external global ptr, align 8
@gmneed_start_V = external global ptr, align 8
@.str.9 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [8 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

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

11:                                               ; preds = %1
  store i8 0, ptr %2, align 1
  store i32 1, ptr %8, align 4
  br label %195

12:                                               ; preds = %1
  store i32 0, ptr %4, align 4, !tbaa !5
  br label %13

13:                                               ; preds = %48, %12
  %14 = load i32, ptr %4, align 4, !tbaa !5
  %15 = load i32, ptr @gnum_real_fl_conn, align 4, !tbaa !5
  %16 = icmp slt i32 %14, %15
  br i1 %16, label %17, label %51

17:                                               ; preds = %13
  %18 = load ptr, ptr @gfl_conn, align 8, !tbaa !9
  %19 = load i32, ptr %4, align 4, !tbaa !5
  %20 = sext i32 %19 to i64
  %21 = getelementptr inbounds %struct._FlConn, ptr %18, i64 %20
  %22 = getelementptr inbounds %struct._FlConn, ptr %21, i32 0, i32 17
  %23 = load ptr, ptr %22, align 8, !tbaa !11
  %24 = load i32, ptr %3, align 4, !tbaa !5
  %25 = sub nsw i32 %24, 1
  %26 = sext i32 %25 to i64
  %27 = getelementptr inbounds i8, ptr %23, i64 %26
  %28 = load i8, ptr %27, align 1, !tbaa !14
  %29 = load ptr, ptr @gmneed_start_D, align 8, !tbaa !9
  %30 = load i32, ptr %4, align 4, !tbaa !5
  %31 = sext i32 %30 to i64
  %32 = getelementptr inbounds i8, ptr %29, i64 %31
  store i8 %28, ptr %32, align 1, !tbaa !14
  %33 = load ptr, ptr @gfl_conn, align 8, !tbaa !9
  %34 = load i32, ptr %4, align 4, !tbaa !5
  %35 = sext i32 %34 to i64
  %36 = getelementptr inbounds %struct._FlConn, ptr %33, i64 %35
  %37 = getelementptr inbounds %struct._FlConn, ptr %36, i32 0, i32 18
  %38 = load ptr, ptr %37, align 8, !tbaa !15
  %39 = load i32, ptr %3, align 4, !tbaa !5
  %40 = sub nsw i32 %39, 1
  %41 = sext i32 %40 to i64
  %42 = getelementptr inbounds float, ptr %38, i64 %41
  %43 = load float, ptr %42, align 4, !tbaa !16
  %44 = load ptr, ptr @gmneed_start_V, align 8, !tbaa !9
  %45 = load i32, ptr %4, align 4, !tbaa !5
  %46 = sext i32 %45 to i64
  %47 = getelementptr inbounds float, ptr %44, i64 %46
  store float %43, ptr %47, align 4, !tbaa !16
  br label %48

48:                                               ; preds = %17
  %49 = load i32, ptr %4, align 4, !tbaa !5
  %50 = add nsw i32 %49, 1
  store i32 %50, ptr %4, align 4, !tbaa !5
  br label %13, !llvm.loop !17

51:                                               ; preds = %13
  store i32 0, ptr %4, align 4, !tbaa !5
  br label %52

52:                                               ; preds = %191, %51
  %53 = load i32, ptr %4, align 4, !tbaa !5
  %54 = load i32, ptr @gnum_real_fl_conn, align 4, !tbaa !5
  %55 = icmp slt i32 %53, %54
  br i1 %55, label %56, label %194

56:                                               ; preds = %52
  %57 = load ptr, ptr @gfl_conn, align 8, !tbaa !9
  %58 = load i32, ptr %4, align 4, !tbaa !5
  %59 = sext i32 %58 to i64
  %60 = getelementptr inbounds %struct._FlConn, ptr %57, i64 %59
  %61 = getelementptr inbounds %struct._FlConn, ptr %60, i32 0, i32 17
  %62 = load ptr, ptr %61, align 8, !tbaa !11
  %63 = load i32, ptr %3, align 4, !tbaa !5
  %64 = sub nsw i32 %63, 1
  %65 = sext i32 %64 to i64
  %66 = getelementptr inbounds i8, ptr %62, i64 %65
  %67 = load i8, ptr %66, align 1, !tbaa !14
  %68 = icmp ne i8 %67, 0
  br i1 %68, label %82, label %69

69:                                               ; preds = %56
  %70 = load ptr, ptr @gfl_conn, align 8, !tbaa !9
  %71 = load i32, ptr %4, align 4, !tbaa !5
  %72 = sext i32 %71 to i64
  %73 = getelementptr inbounds %struct._FlConn, ptr %70, i64 %72
  %74 = getelementptr inbounds %struct._FlConn, ptr %73, i32 0, i32 17
  %75 = load ptr, ptr %74, align 8, !tbaa !11
  %76 = load i32, ptr %3, align 4, !tbaa !5
  %77 = sext i32 %76 to i64
  %78 = getelementptr inbounds i8, ptr %75, i64 %77
  %79 = load i8, ptr %78, align 1, !tbaa !14
  %80 = icmp ne i8 %79, 0
  br i1 %80, label %82, label %81

81:                                               ; preds = %69
  br label %191

82:                                               ; preds = %69, %56
  %83 = load ptr, ptr @gfl_conn, align 8, !tbaa !9
  %84 = load i32, ptr %4, align 4, !tbaa !5
  %85 = sext i32 %84 to i64
  %86 = getelementptr inbounds %struct._FlConn, ptr %83, i64 %85
  %87 = getelementptr inbounds %struct._FlConn, ptr %86, i32 0, i32 17
  %88 = load ptr, ptr %87, align 8, !tbaa !11
  %89 = load i32, ptr %3, align 4, !tbaa !5
  %90 = sub nsw i32 %89, 1
  %91 = sext i32 %90 to i64
  %92 = getelementptr inbounds i8, ptr %88, i64 %91
  %93 = load i8, ptr %92, align 1, !tbaa !14
  %94 = zext i8 %93 to i32
  %95 = icmp ne i32 %94, 0
  br i1 %95, label %96, label %120

96:                                               ; preds = %82
  %97 = load ptr, ptr @gfl_conn, align 8, !tbaa !9
  %98 = load i32, ptr %4, align 4, !tbaa !5
  %99 = sext i32 %98 to i64
  %100 = getelementptr inbounds %struct._FlConn, ptr %97, i64 %99
  %101 = getelementptr inbounds %struct._FlConn, ptr %100, i32 0, i32 18
  %102 = load ptr, ptr %101, align 8, !tbaa !15
  %103 = load i32, ptr %3, align 4, !tbaa !5
  %104 = sext i32 %103 to i64
  %105 = getelementptr inbounds float, ptr %102, i64 %104
  %106 = load float, ptr %105, align 4, !tbaa !16
  %107 = load ptr, ptr @gfl_conn, align 8, !tbaa !9
  %108 = load i32, ptr %4, align 4, !tbaa !5
  %109 = sext i32 %108 to i64
  %110 = getelementptr inbounds %struct._FlConn, ptr %107, i64 %109
  %111 = getelementptr inbounds %struct._FlConn, ptr %110, i32 0, i32 18
  %112 = load ptr, ptr %111, align 8, !tbaa !15
  %113 = load i32, ptr %3, align 4, !tbaa !5
  %114 = sub nsw i32 %113, 1
  %115 = sext i32 %114 to i64
  %116 = getelementptr inbounds float, ptr %112, i64 %115
  %117 = load float, ptr %116, align 4, !tbaa !16
  %118 = fcmp oeq float %106, %117
  br i1 %118, label %119, label %120

119:                                              ; preds = %96
  br label %191

120:                                              ; preds = %96, %82
  %121 = load i32, ptr %4, align 4, !tbaa !5
  call void @get_mneed(i32 noundef %121, ptr noundef %6, ptr noundef %7)
  %122 = load i32, ptr getelementptr inbounds (%struct._command_line, ptr @gcmd_line, i32 0, i32 3), align 4, !tbaa !19
  %123 = icmp eq i32 %122, 333
  br i1 %123, label %124, label %157

124:                                              ; preds = %120
  %125 = call i32 (ptr, ...) @printf(ptr noundef @.str.9)
  store i32 0, ptr %5, align 4, !tbaa !5
  br label %126

126:                                              ; preds = %146, %124
  %127 = load i32, ptr %5, align 4, !tbaa !5
  %128 = load i32, ptr @gnum_real_fl_conn, align 4, !tbaa !5
  %129 = icmp slt i32 %127, %128
  br i1 %129, label %130, label %149

130:                                              ; preds = %126
  %131 = call i32 (ptr, ...) @printf(ptr noundef @.str.10)
  %132 = load i32, ptr %5, align 4, !tbaa !5
  call void @print_fl_name(i32 noundef %132)
  %133 = load ptr, ptr @gmneed_start_D, align 8, !tbaa !9
  %134 = load i32, ptr %5, align 4, !tbaa !5
  %135 = sext i32 %134 to i64
  %136 = getelementptr inbounds i8, ptr %133, i64 %135
  %137 = load i8, ptr %136, align 1, !tbaa !14
  %138 = zext i8 %137 to i32
  %139 = load ptr, ptr @gmneed_start_V, align 8, !tbaa !9
  %140 = load i32, ptr %5, align 4, !tbaa !5
  %141 = sext i32 %140 to i64
  %142 = getelementptr inbounds float, ptr %139, i64 %141
  %143 = load float, ptr %142, align 4, !tbaa !16
  %144 = fpext float %143 to double
  %145 = call i32 (ptr, ...) @printf(ptr noundef @.str.11, i32 noundef %138, double noundef %144)
  br label %146

146:                                              ; preds = %130
  %147 = load i32, ptr %5, align 4, !tbaa !5
  %148 = add nsw i32 %147, 1
  store i32 %148, ptr %5, align 4, !tbaa !5
  br label %126, !llvm.loop !21

149:                                              ; preds = %126
  %150 = call i32 (ptr, ...) @printf(ptr noundef @.str.12)
  %151 = load i32, ptr %4, align 4, !tbaa !5
  call void @print_fl_name(i32 noundef %151)
  %152 = load i8, ptr %6, align 1, !tbaa !14
  %153 = zext i8 %152 to i32
  %154 = load float, ptr %7, align 4, !tbaa !16
  %155 = fpext float %154 to double
  %156 = call i32 (ptr, ...) @printf(ptr noundef @.str.11, i32 noundef %153, double noundef %155)
  br label %157

157:                                              ; preds = %149, %120
  %158 = load i8, ptr %6, align 1, !tbaa !14
  %159 = icmp ne i8 %158, 0
  br i1 %159, label %160, label %161

160:                                              ; preds = %157
  br label %191

161:                                              ; preds = %157
  %162 = load ptr, ptr @gfl_conn, align 8, !tbaa !9
  %163 = load i32, ptr %4, align 4, !tbaa !5
  %164 = sext i32 %163 to i64
  %165 = getelementptr inbounds %struct._FlConn, ptr %162, i64 %164
  %166 = getelementptr inbounds %struct._FlConn, ptr %165, i32 0, i32 17
  %167 = load ptr, ptr %166, align 8, !tbaa !11
  %168 = load i32, ptr %3, align 4, !tbaa !5
  %169 = sub nsw i32 %168, 1
  %170 = sext i32 %169 to i64
  %171 = getelementptr inbounds i8, ptr %167, i64 %170
  %172 = load i8, ptr %171, align 1, !tbaa !14
  %173 = zext i8 %172 to i32
  %174 = icmp ne i32 %173, 0
  br i1 %174, label %175, label %190

175:                                              ; preds = %161
  %176 = load ptr, ptr @gfl_conn, align 8, !tbaa !9
  %177 = load i32, ptr %4, align 4, !tbaa !5
  %178 = sext i32 %177 to i64
  %179 = getelementptr inbounds %struct._FlConn, ptr %176, i64 %178
  %180 = getelementptr inbounds %struct._FlConn, ptr %179, i32 0, i32 18
  %181 = load ptr, ptr %180, align 8, !tbaa !15
  %182 = load i32, ptr %3, align 4, !tbaa !5
  %183 = sub nsw i32 %182, 1
  %184 = sext i32 %183 to i64
  %185 = getelementptr inbounds float, ptr %181, i64 %184
  %186 = load float, ptr %185, align 4, !tbaa !16
  %187 = load float, ptr %7, align 4, !tbaa !16
  %188 = fcmp ogt float %186, %187
  br i1 %188, label %189, label %190

189:                                              ; preds = %175
  br label %191

190:                                              ; preds = %175, %161
  store i8 0, ptr %2, align 1
  store i32 1, ptr %8, align 4
  br label %195

191:                                              ; preds = %189, %160, %119, %81
  %192 = load i32, ptr %4, align 4, !tbaa !5
  %193 = add nsw i32 %192, 1
  store i32 %193, ptr %4, align 4, !tbaa !5
  br label %52, !llvm.loop !22

194:                                              ; preds = %52
  store i8 1, ptr %2, align 1
  store i32 1, ptr %8, align 4
  br label %195

195:                                              ; preds = %194, %190, %11
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #3
  call void @llvm.lifetime.end.p0(i64 1, ptr %6) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #3
  %196 = load i8, ptr %2, align 1
  ret i8 %196
}

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

declare void @print_fl_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, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = !{!12, !10, i64 112}
!12 = !{!"_FlConn", !10, i64 0, !6, i64 8, !10, i64 16, !10, i64 24, !10, i64 32, !6, i64 40, !10, i64 48, !10, i64 56, !10, i64 64, !6, i64 72, !7, i64 76, !10, i64 80, !10, i64 88, !6, i64 96, !7, i64 100, !13, i64 104, !7, i64 108, !10, i64 112, !10, i64 120, !7, i64 128, !13, i64 132, !6, i64 136}
!13 = !{!"float", !7, i64 0}
!14 = !{!7, !7, i64 0}
!15 = !{!12, !10, i64 120}
!16 = !{!13, !13, i64 0}
!17 = distinct !{!17, !18}
!18 = !{!"llvm.loop.mustprogress"}
!19 = !{!20, !6, i64 768}
!20 = !{!"_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, !13, i64 788}
!21 = distinct !{!21, !18}
!22 = distinct !{!22, !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"

%struct._command_line = type { [256 x i8], [256 x i8], [256 x i8], i32, i32, i32, i8, i32, float }
%struct._FlConn = type { ptr, i32, ptr, ptr, ptr, i32, ptr, ptr, ptr, i32, i8, ptr, ptr, i32, i8, float, i8, ptr, ptr, i8, float, i32 }

@gcmd_line = external local_unnamed_addr global %struct._command_line, align 4
@gfl_conn = external local_unnamed_addr global ptr, align 8
@gnum_real_fl_conn = external local_unnamed_addr global i32, align 4
@gmneed_start_D = external local_unnamed_addr global ptr, align 8
@gmneed_start_V = external local_unnamed_addr global ptr, align 8
@.str.9 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [8 x i8], align 1

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

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

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

; Function Attrs: nounwind uwtable
define dso_local zeroext range(i8 0, 2) i8 @fluents_hopeless(i32 noundef %0) local_unnamed_addr #2 {
  %2 = alloca i8, align 1
  %3 = alloca float, align 4
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %2) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #4
  %4 = icmp eq i32 %0, 0
  br i1 %4, label %.loopexit, label %.preheader40

.preheader40:                                     ; preds = %1
  %5 = load i32, ptr @gnum_real_fl_conn, align 4, !tbaa !5
  %6 = icmp sgt i32 %5, 0
  br i1 %6, label %.lr.ph, label %.loopexit

.lr.ph:                                           ; preds = %.preheader40
  %7 = add nsw i32 %0, -1
  %8 = sext i32 %7 to i64
  %.pre = load ptr, ptr @gfl_conn, align 8, !tbaa !9
  br label %13

.preheader:                                       ; preds = %13
  %9 = icmp sgt i32 %28, 0
  br i1 %9, label %.lr.ph46, label %.loopexit

.lr.ph46:                                         ; preds = %.preheader
  %10 = add nsw i32 %0, -1
  %11 = sext i32 %10 to i64
  %12 = sext i32 %0 to i64
  br label %31

13:                                               ; preds = %.lr.ph, %13
  %14 = phi ptr [ %.pre, %.lr.ph ], [ %21, %13 ]
  %indvars.iv = phi i64 [ 0, %.lr.ph ], [ %indvars.iv.next, %13 ]
  %15 = getelementptr inbounds %struct._FlConn, ptr %14, i64 %indvars.iv, i32 17
  %16 = load ptr, ptr %15, align 8, !tbaa !11
  %17 = getelementptr inbounds i8, ptr %16, i64 %8
  %18 = load i8, ptr %17, align 1, !tbaa !14
  %19 = load ptr, ptr @gmneed_start_D, align 8, !tbaa !9
  %20 = getelementptr inbounds i8, ptr %19, i64 %indvars.iv
  store i8 %18, ptr %20, align 1, !tbaa !14
  %21 = load ptr, ptr @gfl_conn, align 8, !tbaa !9
  %22 = getelementptr inbounds %struct._FlConn, ptr %21, i64 %indvars.iv, i32 18
  %23 = load ptr, ptr %22, align 8, !tbaa !15
  %24 = getelementptr inbounds float, ptr %23, i64 %8
  %25 = load float, ptr %24, align 4, !tbaa !16
  %26 = load ptr, ptr @gmneed_start_V, align 8, !tbaa !9
  %27 = getelementptr inbounds float, ptr %26, i64 %indvars.iv
  store float %25, ptr %27, align 4, !tbaa !16
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %28 = load i32, ptr @gnum_real_fl_conn, align 4, !tbaa !5
  %29 = sext i32 %28 to i64
  %30 = icmp slt i64 %indvars.iv.next, %29
  br i1 %30, label %13, label %.preheader, !llvm.loop !17

31:                                               ; preds = %.lr.ph46, %91
  %indvars.iv55 = phi i64 [ 0, %.lr.ph46 ], [ %indvars.iv.next56, %91 ]
  %32 = load ptr, ptr @gfl_conn, align 8, !tbaa !9
  %33 = getelementptr inbounds %struct._FlConn, ptr %32, i64 %indvars.iv55, i32 17
  %34 = load ptr, ptr %33, align 8, !tbaa !11
  %35 = getelementptr inbounds i8, ptr %34, i64 %11
  %36 = load i8, ptr %35, align 1, !tbaa !14
  %.not = icmp eq i8 %36, 0
  br i1 %.not, label %37, label %40

37:                                               ; preds = %31
  %38 = getelementptr inbounds i8, ptr %34, i64 %12
  %39 = load i8, ptr %38, align 1, !tbaa !14
  %.not36 = icmp eq i8 %39, 0
  br i1 %.not36, label %91, label %.thread

40:                                               ; preds = %31
  %41 = getelementptr inbounds %struct._FlConn, ptr %32, i64 %indvars.iv55, i32 18
  %42 = load ptr, ptr %41, align 8, !tbaa !15
  %43 = getelementptr inbounds float, ptr %42, i64 %12
  %44 = load float, ptr %43, align 4, !tbaa !16
  %45 = getelementptr inbounds float, ptr %42, i64 %11
  %46 = load float, ptr %45, align 4, !tbaa !16
  %47 = fcmp oeq float %44, %46
  br i1 %47, label %91, label %.thread

.thread:                                          ; preds = %37, %40
  %48 = trunc nuw nsw i64 %indvars.iv55 to i32
  call void @get_mneed(i32 noundef %48, ptr noundef nonnull %2, ptr noundef nonnull %3)
  %49 = load i32, ptr getelementptr inbounds (i8, ptr @gcmd_line, i64 768), align 4, !tbaa !19
  %50 = icmp eq i32 %49, 333
  br i1 %50, label %51, label %75

51:                                               ; preds = %.thread
  %52 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.9)
  %53 = load i32, ptr @gnum_real_fl_conn, align 4, !tbaa !5
  %54 = icmp sgt i32 %53, 0
  br i1 %54, label %.lr.ph43, label %._crit_edge

.lr.ph43:                                         ; preds = %51, %.lr.ph43
  %indvars.iv52 = phi i64 [ %indvars.iv.next53, %.lr.ph43 ], [ 0, %51 ]
  %55 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.10)
  %56 = trunc nuw nsw i64 %indvars.iv52 to i32
  call void @print_fl_name(i32 noundef %56) #4
  %57 = load ptr, ptr @gmneed_start_D, align 8, !tbaa !9
  %58 = getelementptr inbounds i8, ptr %57, i64 %indvars.iv52
  %59 = load i8, ptr %58, align 1, !tbaa !14
  %60 = zext i8 %59 to i32
  %61 = load ptr, ptr @gmneed_start_V, align 8, !tbaa !9
  %62 = getelementptr inbounds float, ptr %61, i64 %indvars.iv52
  %63 = load float, ptr %62, align 4, !tbaa !16
  %64 = fpext float %63 to double
  %65 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.11, i32 noundef %60, double noundef %64)
  %indvars.iv.next53 = add nuw nsw i64 %indvars.iv52, 1
  %66 = load i32, ptr @gnum_real_fl_conn, align 4, !tbaa !5
  %67 = sext i32 %66 to i64
  %68 = icmp slt i64 %indvars.iv.next53, %67
  br i1 %68, label %.lr.ph43, label %._crit_edge, !llvm.loop !21

._crit_edge:                                      ; preds = %.lr.ph43, %51
  %69 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.12)
  call void @print_fl_name(i32 noundef %48) #4
  %70 = load i8, ptr %2, align 1, !tbaa !14
  %71 = zext i8 %70 to i32
  %72 = load float, ptr %3, align 4, !tbaa !16
  %73 = fpext float %72 to double
  %74 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.11, i32 noundef %71, double noundef %73)
  br label %75

75:                                               ; preds = %._crit_edge, %.thread
  %76 = load i8, ptr %2, align 1, !tbaa !14
  %.not38 = icmp eq i8 %76, 0
  br i1 %.not38, label %77, label %91

77:                                               ; preds = %75
  %78 = load ptr, ptr @gfl_conn, align 8, !tbaa !9
  %79 = getelementptr inbounds %struct._FlConn, ptr %78, i64 %indvars.iv55
  %80 = getelementptr inbounds i8, ptr %79, i64 112
  %81 = load ptr, ptr %80, align 8, !tbaa !11
  %82 = getelementptr inbounds i8, ptr %81, i64 %11
  %83 = load i8, ptr %82, align 1, !tbaa !14
  %.not39 = icmp eq i8 %83, 0
  br i1 %.not39, label %.loopexit, label %84

84:                                               ; preds = %77
  %85 = getelementptr inbounds i8, ptr %79, i64 120
  %86 = load ptr, ptr %85, align 8, !tbaa !15
  %87 = getelementptr inbounds float, ptr %86, i64 %11
  %88 = load float, ptr %87, align 4, !tbaa !16
  %89 = load float, ptr %3, align 4, !tbaa !16
  %90 = fcmp ogt float %88, %89
  br i1 %90, label %91, label %.loopexit

91:                                               ; preds = %84, %75, %40, %37
  %indvars.iv.next56 = add nuw nsw i64 %indvars.iv55, 1
  %92 = load i32, ptr @gnum_real_fl_conn, align 4, !tbaa !5
  %93 = sext i32 %92 to i64
  %94 = icmp slt i64 %indvars.iv.next56, %93
  br i1 %94, label %31, label %.loopexit, !llvm.loop !22

.loopexit:                                        ; preds = %84, %77, %91, %.preheader40, %.preheader, %1
  %.034 = phi i8 [ 0, %1 ], [ 1, %.preheader ], [ 1, %.preheader40 ], [ 0, %84 ], [ 0, %77 ], [ 1, %91 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %2) #4
  ret i8 %.034
}

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

declare void @print_fl_name(i32 noundef) local_unnamed_addr #3

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #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 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = !{!12, !10, i64 112}
!12 = !{!"_FlConn", !10, i64 0, !6, i64 8, !10, i64 16, !10, i64 24, !10, i64 32, !6, i64 40, !10, i64 48, !10, i64 56, !10, i64 64, !6, i64 72, !7, i64 76, !10, i64 80, !10, i64 88, !6, i64 96, !7, i64 100, !13, i64 104, !7, i64 108, !10, i64 112, !10, i64 120, !7, i64 128, !13, i64 132, !6, i64 136}
!13 = !{!"float", !7, i64 0}
!14 = !{!7, !7, i64 0}
!15 = !{!12, !10, i64 120}
!16 = !{!13, !13, i64 0}
!17 = distinct !{!17, !18}
!18 = !{!"llvm.loop.mustprogress"}
!19 = !{!20, !6, i64 768}
!20 = !{!"_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, !13, i64 788}
!21 = distinct !{!21, !18}
!22 = distinct !{!22, !18}


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