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

@gcmd_line = external global %struct._command_line, align 4
@collect_1P_and_A_info.first_call = external hidden global i8, align 1
@gnum_op_conn = external global i32, align 4
@gA = external global ptr, align 8
@gnum_A = external global i32, align 4
@.str = external hidden unnamed_addr constant [23 x i8], align 1
@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
@.str.1 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [15 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

; Function Attrs: nounwind uwtable
define dso_local void @collect_1P_and_A_info() #1 {
  %1 = alloca i32, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %1) #4
  %2 = load i8, ptr @collect_1P_and_A_info.first_call, align 1, !tbaa !5
  %3 = icmp ne i8 %2, 0
  br i1 %3, label %4, label %8

4:                                                ; preds = %0
  %5 = load i32, ptr @gnum_op_conn, align 4, !tbaa !8
  %6 = sext i32 %5 to i64
  %7 = call noalias ptr @calloc(i64 noundef %6, i64 noundef 4) #5
  store ptr %7, ptr @gA, align 8, !tbaa !10
  store i32 0, ptr @gnum_A, align 4, !tbaa !8
  store i8 0, ptr @collect_1P_and_A_info.first_call, align 1, !tbaa !5
  br label %8

8:                                                ; preds = %4, %0
  %9 = load i32, ptr getelementptr inbounds (%struct._command_line, ptr @gcmd_line, i32 0, i32 4), align 4, !tbaa !12
  %10 = icmp ne i32 %9, 0
  br i1 %10, label %11, label %13

11:                                               ; preds = %8
  %12 = call i32 (ptr, ...) @printf(ptr noundef @.str)
  br label %13

13:                                               ; preds = %11, %8
  store i32 0, ptr %1, align 4, !tbaa !8
  br label %14

14:                                               ; preds = %28, %13
  %15 = load i32, ptr %1, align 4, !tbaa !8
  %16 = load i32, ptr @gnum_A, align 4, !tbaa !8
  %17 = icmp slt i32 %15, %16
  br i1 %17, label %18, label %31

18:                                               ; preds = %14
  %19 = load ptr, ptr @gop_conn, align 8, !tbaa !10
  %20 = load ptr, ptr @gA, align 8, !tbaa !10
  %21 = load i32, ptr %1, align 4, !tbaa !8
  %22 = sext i32 %21 to i64
  %23 = getelementptr inbounds i32, ptr %20, i64 %22
  %24 = load i32, ptr %23, align 4, !tbaa !8
  %25 = sext i32 %24 to i64
  %26 = getelementptr inbounds %struct._OpConn, ptr %19, i64 %25
  %27 = getelementptr inbounds %struct._OpConn, ptr %26, i32 0, i32 4
  store i8 0, ptr %27, align 4, !tbaa !15
  br label %28

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

31:                                               ; preds = %14
  store i32 0, ptr @gnum_A, align 4, !tbaa !8
  store i32 0, ptr %1, align 4, !tbaa !8
  br label %32

32:                                               ; preds = %145, %31
  %33 = load i32, ptr %1, align 4, !tbaa !8
  %34 = load i32, ptr @lnum_E, align 4, !tbaa !8
  %35 = icmp slt i32 %33, %34
  br i1 %35, label %36, label %148

36:                                               ; preds = %32
  %37 = load ptr, ptr @gef_conn, align 8, !tbaa !10
  %38 = load ptr, ptr @lE, align 8, !tbaa !10
  %39 = load i32, ptr %1, align 4, !tbaa !8
  %40 = sext i32 %39 to i64
  %41 = getelementptr inbounds i32, ptr %38, i64 %40
  %42 = load i32, ptr %41, align 4, !tbaa !8
  %43 = sext i32 %42 to i64
  %44 = getelementptr inbounds %struct._EfConn, ptr %37, i64 %43
  %45 = getelementptr inbounds %struct._EfConn, ptr %44, i32 0, i32 26
  %46 = load i32, ptr %45, align 4, !tbaa !19
  %47 = icmp ne i32 %46, 0
  br i1 %47, label %48, label %49

48:                                               ; preds = %36
  br label %148

49:                                               ; preds = %36
  %50 = load i32, ptr getelementptr inbounds (%struct._command_line, ptr @gcmd_line, i32 0, i32 4), align 4, !tbaa !12
  %51 = icmp ne i32 %50, 0
  br i1 %51, label %52, label %64

52:                                               ; preds = %49
  %53 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
  %54 = load ptr, ptr @gef_conn, align 8, !tbaa !10
  %55 = load ptr, ptr @lE, align 8, !tbaa !10
  %56 = load i32, ptr %1, align 4, !tbaa !8
  %57 = sext i32 %56 to i64
  %58 = getelementptr inbounds i32, ptr %55, i64 %57
  %59 = load i32, ptr %58, align 4, !tbaa !8
  %60 = sext i32 %59 to i64
  %61 = getelementptr inbounds %struct._EfConn, ptr %54, i64 %60
  %62 = getelementptr inbounds %struct._EfConn, ptr %61, i32 0, i32 0
  %63 = load i32, ptr %62, align 8, !tbaa !21
  call void @print_op_name(i32 noundef %63)
  br label %64

64:                                               ; preds = %52, %49
  %65 = load ptr, ptr @gop_conn, align 8, !tbaa !10
  %66 = load ptr, ptr @gef_conn, align 8, !tbaa !10
  %67 = load ptr, ptr @lE, align 8, !tbaa !10
  %68 = load i32, ptr %1, align 4, !tbaa !8
  %69 = sext i32 %68 to i64
  %70 = getelementptr inbounds i32, ptr %67, i64 %69
  %71 = load i32, ptr %70, align 4, !tbaa !8
  %72 = sext i32 %71 to i64
  %73 = getelementptr inbounds %struct._EfConn, ptr %66, i64 %72
  %74 = getelementptr inbounds %struct._EfConn, ptr %73, i32 0, i32 0
  %75 = load i32, ptr %74, align 8, !tbaa !21
  %76 = sext i32 %75 to i64
  %77 = getelementptr inbounds %struct._OpConn, ptr %65, i64 %76
  %78 = getelementptr inbounds %struct._OpConn, ptr %77, i32 0, i32 4
  %79 = load i8, ptr %78, align 4, !tbaa !15
  %80 = icmp ne i8 %79, 0
  br i1 %80, label %81, label %87

81:                                               ; preds = %64
  %82 = load i32, ptr getelementptr inbounds (%struct._command_line, ptr @gcmd_line, i32 0, i32 4), align 4, !tbaa !12
  %83 = icmp ne i32 %82, 0
  br i1 %83, label %84, label %86

84:                                               ; preds = %81
  %85 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
  br label %86

86:                                               ; preds = %84, %81
  br label %145

87:                                               ; preds = %64
  %88 = load ptr, ptr @gop_conn, align 8, !tbaa !10
  %89 = load ptr, ptr @gef_conn, align 8, !tbaa !10
  %90 = load ptr, ptr @lE, align 8, !tbaa !10
  %91 = load i32, ptr %1, align 4, !tbaa !8
  %92 = sext i32 %91 to i64
  %93 = getelementptr inbounds i32, ptr %90, i64 %92
  %94 = load i32, ptr %93, align 4, !tbaa !8
  %95 = sext i32 %94 to i64
  %96 = getelementptr inbounds %struct._EfConn, ptr %89, i64 %95
  %97 = getelementptr inbounds %struct._EfConn, ptr %96, i32 0, i32 0
  %98 = load i32, ptr %97, align 8, !tbaa !21
  %99 = sext i32 %98 to i64
  %100 = getelementptr inbounds %struct._OpConn, ptr %88, i64 %99
  %101 = getelementptr inbounds %struct._OpConn, ptr %100, i32 0, i32 1
  %102 = load i8, ptr %101, align 8, !tbaa !22
  %103 = icmp ne i8 %102, 0
  br i1 %103, label %104, label %110

104:                                              ; preds = %87
  %105 = load i32, ptr getelementptr inbounds (%struct._command_line, ptr @gcmd_line, i32 0, i32 4), align 4, !tbaa !12
  %106 = icmp ne i32 %105, 0
  br i1 %106, label %107, label %109

107:                                              ; preds = %104
  %108 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
  br label %109

109:                                              ; preds = %107, %104
  br label %145

110:                                              ; preds = %87
  %111 = load i32, ptr getelementptr inbounds (%struct._command_line, ptr @gcmd_line, i32 0, i32 4), align 4, !tbaa !12
  %112 = icmp ne i32 %111, 0
  br i1 %112, label %113, label %115

113:                                              ; preds = %110
  %114 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
  br label %115

115:                                              ; preds = %113, %110
  %116 = load ptr, ptr @gop_conn, align 8, !tbaa !10
  %117 = load ptr, ptr @gef_conn, align 8, !tbaa !10
  %118 = load ptr, ptr @lE, align 8, !tbaa !10
  %119 = load i32, ptr %1, align 4, !tbaa !8
  %120 = sext i32 %119 to i64
  %121 = getelementptr inbounds i32, ptr %118, i64 %120
  %122 = load i32, ptr %121, align 4, !tbaa !8
  %123 = sext i32 %122 to i64
  %124 = getelementptr inbounds %struct._EfConn, ptr %117, i64 %123
  %125 = getelementptr inbounds %struct._EfConn, ptr %124, i32 0, i32 0
  %126 = load i32, ptr %125, align 8, !tbaa !21
  %127 = sext i32 %126 to i64
  %128 = getelementptr inbounds %struct._OpConn, ptr %116, i64 %127
  %129 = getelementptr inbounds %struct._OpConn, ptr %128, i32 0, i32 4
  store i8 1, ptr %129, align 4, !tbaa !15
  %130 = load ptr, ptr @gef_conn, align 8, !tbaa !10
  %131 = load ptr, ptr @lE, align 8, !tbaa !10
  %132 = load i32, ptr %1, align 4, !tbaa !8
  %133 = sext i32 %132 to i64
  %134 = getelementptr inbounds i32, ptr %131, i64 %133
  %135 = load i32, ptr %134, align 4, !tbaa !8
  %136 = sext i32 %135 to i64
  %137 = getelementptr inbounds %struct._EfConn, ptr %130, i64 %136
  %138 = getelementptr inbounds %struct._EfConn, ptr %137, i32 0, i32 0
  %139 = load i32, ptr %138, align 8, !tbaa !21
  %140 = load ptr, ptr @gA, align 8, !tbaa !10
  %141 = load i32, ptr @gnum_A, align 4, !tbaa !8
  %142 = add nsw i32 %141, 1
  store i32 %142, ptr @gnum_A, align 4, !tbaa !8
  %143 = sext i32 %141 to i64
  %144 = getelementptr inbounds i32, ptr %140, i64 %143
  store i32 %139, ptr %144, align 4, !tbaa !8
  br label %145

145:                                              ; preds = %115, %109, %86
  %146 = load i32, ptr %1, align 4, !tbaa !8
  %147 = add nsw i32 %146, 1
  store i32 %147, ptr %1, align 4, !tbaa !8
  br label %32, !llvm.loop !23

148:                                              ; preds = %48, %32
  call void @llvm.lifetime.end.p0(i64 4, ptr %1) #4
  ret void
}

; Function Attrs: nounwind allocsize(0,1)
declare noalias ptr @calloc(i64 noundef, i64 noundef) #2

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

declare void @print_op_name(i32 noundef) #3

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { nounwind allocsize(0,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 #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 }
attributes #5 = { nounwind allocsize(0,1) }

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

@gcmd_line = external local_unnamed_addr global %struct._command_line, align 4
@collect_1P_and_A_info.first_call = external hidden local_unnamed_addr global i8, align 1
@gnum_op_conn = external local_unnamed_addr global i32, align 4
@gA = external local_unnamed_addr global ptr, align 8
@gnum_A = external local_unnamed_addr global i32, align 4
@.str = external hidden unnamed_addr constant [23 x i8], align 1
@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
@.str.1 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [15 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local void @collect_1P_and_A_info() local_unnamed_addr #0 {
  %1 = load i8, ptr @collect_1P_and_A_info.first_call, align 1, !tbaa !5
  %.not = icmp eq i8 %1, 0
  br i1 %.not, label %6, label %2

2:                                                ; preds = %0
  %3 = load i32, ptr @gnum_op_conn, align 4, !tbaa !8
  %4 = sext i32 %3 to i64
  %5 = tail call noalias ptr @calloc(i64 noundef %4, i64 noundef 4) #4
  store ptr %5, ptr @gA, align 8, !tbaa !10
  store i32 0, ptr @gnum_A, align 4, !tbaa !8
  store i8 0, ptr @collect_1P_and_A_info.first_call, align 1, !tbaa !5
  br label %6

6:                                                ; preds = %2, %0
  %7 = load i32, ptr getelementptr inbounds (i8, ptr @gcmd_line, i64 772), align 4, !tbaa !12
  %.not11 = icmp eq i32 %7, 0
  br i1 %.not11, label %10, label %8

8:                                                ; preds = %6
  %9 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str)
  br label %10

10:                                               ; preds = %8, %6
  %11 = load i32, ptr @gnum_A, align 4, !tbaa !8
  %12 = icmp sgt i32 %11, 0
  br i1 %12, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %10
  %13 = load ptr, ptr @gop_conn, align 8, !tbaa !10
  %14 = load ptr, ptr @gA, align 8, !tbaa !10
  %wide.trip.count = zext nneg i32 %11 to i64
  %xtraiter = and i64 %wide.trip.count, 3
  %15 = icmp ult i32 %11, 4
  br i1 %15, label %._crit_edge.loopexit.unr-lcssa, label %.lr.ph.new

.lr.ph.new:                                       ; preds = %.lr.ph
  %unroll_iter = and i64 %wide.trip.count, 2147483644
  br label %16

16:                                               ; preds = %16, %.lr.ph.new
  %indvars.iv = phi i64 [ 0, %.lr.ph.new ], [ %indvars.iv.next.3, %16 ]
  %niter = phi i64 [ 0, %.lr.ph.new ], [ %niter.next.3, %16 ]
  %17 = getelementptr inbounds i32, ptr %14, i64 %indvars.iv
  %18 = load i32, ptr %17, align 4, !tbaa !8
  %19 = sext i32 %18 to i64
  %20 = getelementptr inbounds %struct._OpConn, ptr %13, i64 %19, i32 4
  store i8 0, ptr %20, align 4, !tbaa !15
  %indvars.iv.next = or disjoint i64 %indvars.iv, 1
  %21 = getelementptr inbounds i32, ptr %14, i64 %indvars.iv.next
  %22 = load i32, ptr %21, align 4, !tbaa !8
  %23 = sext i32 %22 to i64
  %24 = getelementptr inbounds %struct._OpConn, ptr %13, i64 %23, i32 4
  store i8 0, ptr %24, align 4, !tbaa !15
  %indvars.iv.next.1 = or disjoint i64 %indvars.iv, 2
  %25 = getelementptr inbounds i32, ptr %14, i64 %indvars.iv.next.1
  %26 = load i32, ptr %25, align 4, !tbaa !8
  %27 = sext i32 %26 to i64
  %28 = getelementptr inbounds %struct._OpConn, ptr %13, i64 %27, i32 4
  store i8 0, ptr %28, align 4, !tbaa !15
  %indvars.iv.next.2 = or disjoint i64 %indvars.iv, 3
  %29 = getelementptr inbounds i32, ptr %14, i64 %indvars.iv.next.2
  %30 = load i32, ptr %29, align 4, !tbaa !8
  %31 = sext i32 %30 to i64
  %32 = getelementptr inbounds %struct._OpConn, ptr %13, i64 %31, i32 4
  store i8 0, ptr %32, align 4, !tbaa !15
  %indvars.iv.next.3 = add nuw nsw i64 %indvars.iv, 4
  %niter.next.3 = add i64 %niter, 4
  %niter.ncmp.3 = icmp eq i64 %niter.next.3, %unroll_iter
  br i1 %niter.ncmp.3, label %._crit_edge.loopexit.unr-lcssa, label %16, !llvm.loop !17

._crit_edge.loopexit.unr-lcssa:                   ; preds = %16, %.lr.ph
  %indvars.iv.unr = phi i64 [ 0, %.lr.ph ], [ %indvars.iv.next.3, %16 ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %._crit_edge, label %.epil.preheader

.epil.preheader:                                  ; preds = %._crit_edge.loopexit.unr-lcssa, %.epil.preheader
  %indvars.iv.epil = phi i64 [ %indvars.iv.next.epil, %.epil.preheader ], [ %indvars.iv.unr, %._crit_edge.loopexit.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %.epil.preheader ], [ 0, %._crit_edge.loopexit.unr-lcssa ]
  %33 = getelementptr inbounds i32, ptr %14, i64 %indvars.iv.epil
  %34 = load i32, ptr %33, align 4, !tbaa !8
  %35 = sext i32 %34 to i64
  %36 = getelementptr inbounds %struct._OpConn, ptr %13, i64 %35, i32 4
  store i8 0, ptr %36, align 4, !tbaa !15
  %indvars.iv.next.epil = add nuw nsw i64 %indvars.iv.epil, 1
  %epil.iter.next = add i64 %epil.iter, 1
  %epil.iter.cmp.not = icmp eq i64 %epil.iter.next, %xtraiter
  br i1 %epil.iter.cmp.not, label %._crit_edge, label %.epil.preheader, !llvm.loop !19

._crit_edge:                                      ; preds = %._crit_edge.loopexit.unr-lcssa, %.epil.preheader, %10
  store i32 0, ptr @gnum_A, align 4, !tbaa !8
  %37 = load i32, ptr @lnum_E, align 4, !tbaa !8
  %38 = icmp sgt i32 %37, 0
  br i1 %38, label %.lr.ph22, label %._crit_edge23

.lr.ph22:                                         ; preds = %._crit_edge, %88
  %indvars.iv26 = phi i64 [ %indvars.iv.next27, %88 ], [ 0, %._crit_edge ]
  %39 = load ptr, ptr @gef_conn, align 8, !tbaa !10
  %40 = load ptr, ptr @lE, align 8, !tbaa !10
  %41 = getelementptr inbounds i32, ptr %40, i64 %indvars.iv26
  %42 = load i32, ptr %41, align 4, !tbaa !8
  %43 = sext i32 %42 to i64
  %44 = getelementptr inbounds %struct._EfConn, ptr %39, i64 %43, i32 26
  %45 = load i32, ptr %44, align 4, !tbaa !21
  %.not12 = icmp eq i32 %45, 0
  br i1 %.not12, label %46, label %._crit_edge23

46:                                               ; preds = %.lr.ph22
  %47 = load i32, ptr getelementptr inbounds (i8, ptr @gcmd_line, i64 772), align 4, !tbaa !12
  %.not13 = icmp eq i32 %47, 0
  br i1 %.not13, label %57, label %48

48:                                               ; preds = %46
  %49 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1)
  %50 = load ptr, ptr @gef_conn, align 8, !tbaa !10
  %51 = load ptr, ptr @lE, align 8, !tbaa !10
  %52 = getelementptr inbounds i32, ptr %51, i64 %indvars.iv26
  %53 = load i32, ptr %52, align 4, !tbaa !8
  %54 = sext i32 %53 to i64
  %55 = getelementptr inbounds %struct._EfConn, ptr %50, i64 %54
  %56 = load i32, ptr %55, align 8, !tbaa !23
  tail call void @print_op_name(i32 noundef %56) #5
  %.pre = load ptr, ptr @gef_conn, align 8, !tbaa !10
  %.pre29 = load ptr, ptr @lE, align 8, !tbaa !10
  %.phi.trans.insert = getelementptr inbounds i32, ptr %.pre29, i64 %indvars.iv26
  %.pre30 = load i32, ptr %.phi.trans.insert, align 4, !tbaa !8
  %.pre39 = sext i32 %.pre30 to i64
  br label %57

57:                                               ; preds = %48, %46
  %.pre-phi = phi i64 [ %.pre39, %48 ], [ %43, %46 ]
  %58 = phi ptr [ %.pre, %48 ], [ %39, %46 ]
  %59 = load ptr, ptr @gop_conn, align 8, !tbaa !10
  %60 = getelementptr inbounds %struct._EfConn, ptr %58, i64 %.pre-phi
  %61 = load i32, ptr %60, align 8, !tbaa !23
  %62 = sext i32 %61 to i64
  %63 = getelementptr inbounds %struct._OpConn, ptr %59, i64 %62
  %64 = getelementptr inbounds i8, ptr %63, i64 28
  %65 = load i8, ptr %64, align 4, !tbaa !15
  %.not14 = icmp eq i8 %65, 0
  br i1 %.not14, label %70, label %66

66:                                               ; preds = %57
  %67 = load i32, ptr getelementptr inbounds (i8, ptr @gcmd_line, i64 772), align 4, !tbaa !12
  %.not18 = icmp eq i32 %67, 0
  br i1 %.not18, label %88, label %68

68:                                               ; preds = %66
  %69 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2)
  br label %88

70:                                               ; preds = %57
  %71 = getelementptr inbounds i8, ptr %63, i64 8
  %72 = load i8, ptr %71, align 8, !tbaa !24
  %.not15 = icmp eq i8 %72, 0
  %73 = load i32, ptr getelementptr inbounds (i8, ptr @gcmd_line, i64 772), align 4, !tbaa !12
  %.not16 = icmp eq i32 %73, 0
  br i1 %.not15, label %77, label %74

74:                                               ; preds = %70
  br i1 %.not16, label %88, label %75

75:                                               ; preds = %74
  %76 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.3)
  br label %88

77:                                               ; preds = %70
  br i1 %.not16, label %._crit_edge42, label %78

78:                                               ; preds = %77
  %79 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.4)
  %.pre31 = load ptr, ptr @gop_conn, align 8, !tbaa !10
  %.pre32 = load ptr, ptr @gef_conn, align 8, !tbaa !10
  %.pre33 = load ptr, ptr @lE, align 8, !tbaa !10
  %.phi.trans.insert34 = getelementptr inbounds i32, ptr %.pre33, i64 %indvars.iv26
  %.pre35 = load i32, ptr %.phi.trans.insert34, align 4, !tbaa !8
  %.phi.trans.insert36 = sext i32 %.pre35 to i64
  %.phi.trans.insert37 = getelementptr inbounds %struct._EfConn, ptr %.pre32, i64 %.phi.trans.insert36
  %.pre38 = load i32, ptr %.phi.trans.insert37, align 8, !tbaa !23
  %.pre40 = sext i32 %.pre38 to i64
  br label %._crit_edge42

._crit_edge42:                                    ; preds = %77, %78
  %.pre-phi41 = phi i64 [ %.pre40, %78 ], [ %62, %77 ]
  %80 = phi i32 [ %.pre38, %78 ], [ %61, %77 ]
  %81 = phi ptr [ %.pre31, %78 ], [ %59, %77 ]
  %82 = getelementptr inbounds %struct._OpConn, ptr %81, i64 %.pre-phi41, i32 4
  store i8 1, ptr %82, align 4, !tbaa !15
  %83 = load ptr, ptr @gA, align 8, !tbaa !10
  %84 = load i32, ptr @gnum_A, align 4, !tbaa !8
  %85 = add nsw i32 %84, 1
  store i32 %85, ptr @gnum_A, align 4, !tbaa !8
  %86 = sext i32 %84 to i64
  %87 = getelementptr inbounds i32, ptr %83, i64 %86
  store i32 %80, ptr %87, align 4, !tbaa !8
  br label %88

88:                                               ; preds = %74, %75, %66, %68, %._crit_edge42
  %indvars.iv.next27 = add nuw nsw i64 %indvars.iv26, 1
  %89 = load i32, ptr @lnum_E, align 4, !tbaa !8
  %90 = sext i32 %89 to i64
  %91 = icmp slt i64 %indvars.iv.next27, %90
  br i1 %91, label %.lr.ph22, label %._crit_edge23, !llvm.loop !25

._crit_edge23:                                    ; preds = %88, %.lr.ph22, %._crit_edge
  ret void
}

; Function Attrs: mustprogress nofree nounwind willreturn allockind("alloc,zeroed") allocsize(0,1) memory(inaccessiblemem: readwrite)
declare noalias noundef ptr @calloc(i64 noundef, i64 noundef) local_unnamed_addr #1

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

declare void @print_op_name(i32 noundef) local_unnamed_addr #3

attributes #0 = { 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 #1 = { mustprogress nofree nounwind willreturn allockind("alloc,zeroed") allocsize(0,1) memory(inaccessiblemem: readwrite) "alloc-family"="malloc" "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 = { 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 #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 allocsize(0,1) }
attributes #5 = { 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 = !{!"omnipotent char", !7, i64 0}
!7 = !{!"Simple C/C++ TBAA"}
!8 = !{!9, !9, i64 0}
!9 = !{!"int", !6, i64 0}
!10 = !{!11, !11, i64 0}
!11 = !{!"any pointer", !6, i64 0}
!12 = !{!13, !9, i64 772}
!13 = !{!"_command_line", !6, i64 0, !6, i64 256, !6, i64 512, !9, i64 768, !9, i64 772, !9, i64 776, !6, i64 780, !9, i64 784, !14, i64 788}
!14 = !{!"float", !6, i64 0}
!15 = !{!16, !6, i64 28}
!16 = !{!"_OpConn", !11, i64 0, !6, i64 8, !11, i64 16, !9, i64 24, !6, i64 28, !6, i64 29, !9, i64 32, !6, i64 36, !14, i64 40}
!17 = distinct !{!17, !18}
!18 = !{!"llvm.loop.mustprogress"}
!19 = distinct !{!19, !20}
!20 = !{!"llvm.loop.unroll.disable"}
!21 = !{!22, !9, i64 188}
!22 = !{!"_EfConn", !9, i64 0, !6, i64 4, !6, i64 5, !14, i64 8, !11, i64 16, !9, i64 24, !11, i64 32, !11, i64 40, !11, i64 48, !9, i64 56, !11, i64 64, !11, i64 72, !11, i64 80, !9, i64 88, !11, i64 96, !9, i64 104, !11, i64 112, !11, i64 120, !11, i64 128, !9, i64 136, !11, i64 144, !11, i64 152, !11, i64 160, !9, i64 168, !11, i64 176, !9, i64 184, !9, i64 188, !14, i64 192, !6, i64 196, !9, i64 200, !6, i64 204, !9, i64 208, !9, i64 212}
!23 = !{!22, !9, i64 0}
!24 = !{!16, !6, i64 8}
!25 = distinct !{!25, !18}


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