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

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

@gnum_ft_conn = external global i32, align 4
@gcmd_line = external global %struct._command_line, align 4
@gop_conn = external global ptr, align 8
@gef_conn = external global ptr, align 8
@do_axiom_update.first_call = external hidden global i8, align 1
@do_axiom_update.in_dest = external hidden global ptr, align 8
@.str.30 = external hidden unnamed_addr constant [70 x i8], align 1
@.str.31 = external hidden unnamed_addr constant [64 x i8], align 1
@.str.32 = external hidden unnamed_addr constant [46 x i8], align 1
@gnum_A_axioms = external global i32, align 4
@gA_axioms = external global ptr, align 8
@.str.33 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.34 = external hidden unnamed_addr constant [48 x i8], align 1
@.str.35 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.36 = external hidden unnamed_addr constant [65 x i8], align 1

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

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

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

declare void @print_op_name(i32 noundef) #1

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

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

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

10:                                               ; preds = %1
  %11 = load i32, ptr @gnum_ft_conn, align 4, !tbaa !10
  %12 = sext i32 %11 to i64
  %13 = call noalias ptr @calloc(i64 noundef %12, i64 noundef 1) #6
  store ptr %13, ptr @do_axiom_update.in_dest, align 8, !tbaa !5
  store i32 0, ptr %3, align 4, !tbaa !10
  br label %14

14:                                               ; preds = %23, %10
  %15 = load i32, ptr %3, align 4, !tbaa !10
  %16 = load i32, ptr @gnum_ft_conn, align 4, !tbaa !10
  %17 = icmp slt i32 %15, %16
  br i1 %17, label %18, label %26

18:                                               ; preds = %14
  %19 = load ptr, ptr @do_axiom_update.in_dest, align 8, !tbaa !5
  %20 = load i32, ptr %3, align 4, !tbaa !10
  %21 = sext i32 %20 to i64
  %22 = getelementptr inbounds i8, ptr %19, i64 %21
  store i8 0, ptr %22, align 1, !tbaa !9
  br label %23

23:                                               ; preds = %18
  %24 = load i32, ptr %3, align 4, !tbaa !10
  %25 = add nsw i32 %24, 1
  store i32 %25, ptr %3, align 4, !tbaa !10
  br label %14, !llvm.loop !12

26:                                               ; preds = %14
  store i8 0, ptr @do_axiom_update.first_call, align 1, !tbaa !9
  br label %27

27:                                               ; preds = %26, %1
  %28 = load i32, ptr getelementptr inbounds (%struct._command_line, ptr @gcmd_line, i32 0, i32 4), align 4, !tbaa !14
  %29 = icmp ne i32 %28, 0
  br i1 %29, label %30, label %32

30:                                               ; preds = %27
  %31 = call i32 (ptr, ...) @printf(ptr noundef @.str.30)
  br label %32

32:                                               ; preds = %30, %27
  store i32 0, ptr %3, align 4, !tbaa !10
  br label %33

33:                                               ; preds = %50, %32
  %34 = load i32, ptr %3, align 4, !tbaa !10
  %35 = load ptr, ptr %2, align 8, !tbaa !5
  %36 = getelementptr inbounds %struct._State, ptr %35, i32 0, i32 1
  %37 = load i32, ptr %36, align 8, !tbaa !17
  %38 = icmp slt i32 %34, %37
  br i1 %38, label %39, label %53

39:                                               ; preds = %33
  %40 = load ptr, ptr @do_axiom_update.in_dest, align 8, !tbaa !5
  %41 = load ptr, ptr %2, align 8, !tbaa !5
  %42 = getelementptr inbounds %struct._State, ptr %41, i32 0, i32 0
  %43 = load ptr, ptr %42, align 8, !tbaa !19
  %44 = load i32, ptr %3, align 4, !tbaa !10
  %45 = sext i32 %44 to i64
  %46 = getelementptr inbounds i32, ptr %43, i64 %45
  %47 = load i32, ptr %46, align 4, !tbaa !10
  %48 = sext i32 %47 to i64
  %49 = getelementptr inbounds i8, ptr %40, i64 %48
  store i8 1, ptr %49, align 1, !tbaa !9
  br label %50

50:                                               ; preds = %39
  %51 = load i32, ptr %3, align 4, !tbaa !10
  %52 = add nsw i32 %51, 1
  store i32 %52, ptr %3, align 4, !tbaa !10
  br label %33, !llvm.loop !20

53:                                               ; preds = %33
  %54 = load i32, ptr getelementptr inbounds (%struct._command_line, ptr @gcmd_line, i32 0, i32 4), align 4, !tbaa !14
  %55 = icmp ne i32 %54, 0
  br i1 %55, label %56, label %59

56:                                               ; preds = %53
  %57 = call i32 (ptr, ...) @printf(ptr noundef @.str.31)
  %58 = load ptr, ptr %2, align 8, !tbaa !5
  call void @print_State(ptr noundef byval(%struct._State) align 8 %58)
  br label %59

59:                                               ; preds = %56, %53
  br label %60

60:                                               ; preds = %148, %59
  %61 = load i8, ptr %7, align 1, !tbaa !9
  %62 = icmp ne i8 %61, 0
  br i1 %62, label %63, label %149

63:                                               ; preds = %60
  store i8 0, ptr %7, align 1, !tbaa !9
  %64 = load i32, ptr getelementptr inbounds (%struct._command_line, ptr @gcmd_line, i32 0, i32 4), align 4, !tbaa !14
  %65 = icmp ne i32 %64, 0
  br i1 %65, label %66, label %68

66:                                               ; preds = %63
  %67 = call i32 (ptr, ...) @printf(ptr noundef @.str.32)
  br label %68

68:                                               ; preds = %66, %63
  %69 = load ptr, ptr %2, align 8, !tbaa !5
  call void @get_A_axioms(ptr noundef %69)
  store i32 0, ptr %3, align 4, !tbaa !10
  br label %70

70:                                               ; preds = %145, %68
  %71 = load i32, ptr %3, align 4, !tbaa !10
  %72 = load i32, ptr @gnum_A_axioms, align 4, !tbaa !10
  %73 = icmp slt i32 %71, %72
  br i1 %73, label %74, label %148

74:                                               ; preds = %70
  %75 = load ptr, ptr @gop_conn, align 8, !tbaa !5
  %76 = load ptr, ptr @gA_axioms, align 8, !tbaa !5
  %77 = load i32, ptr %3, align 4, !tbaa !10
  %78 = sext i32 %77 to i64
  %79 = getelementptr inbounds i32, ptr %76, i64 %78
  %80 = load i32, ptr %79, align 4, !tbaa !10
  %81 = sext i32 %80 to i64
  %82 = getelementptr inbounds %struct._OpConn, ptr %75, i64 %81
  %83 = getelementptr inbounds %struct._OpConn, ptr %82, i32 0, i32 1
  %84 = load i8, ptr %83, align 8, !tbaa !21
  %85 = icmp ne i8 %84, 0
  br i1 %85, label %88, label %86

86:                                               ; preds = %74
  %87 = call i32 (ptr, ...) @printf(ptr noundef @.str.33)
  call void @exit(i32 noundef 1) #7
  unreachable

88:                                               ; preds = %74
  %89 = load i32, ptr getelementptr inbounds (%struct._command_line, ptr @gcmd_line, i32 0, i32 4), align 4, !tbaa !14
  %90 = icmp ne i32 %89, 0
  br i1 %90, label %91, label %98

91:                                               ; preds = %88
  %92 = call i32 (ptr, ...) @printf(ptr noundef @.str.34)
  %93 = load ptr, ptr @gA_axioms, align 8, !tbaa !5
  %94 = load i32, ptr %3, align 4, !tbaa !10
  %95 = sext i32 %94 to i64
  %96 = getelementptr inbounds i32, ptr %93, i64 %95
  %97 = load i32, ptr %96, align 4, !tbaa !10
  call void @print_op_name(i32 noundef %97)
  br label %98

98:                                               ; preds = %91, %88
  %99 = load ptr, ptr @gef_conn, align 8, !tbaa !5
  %100 = load ptr, ptr @gop_conn, align 8, !tbaa !5
  %101 = load ptr, ptr @gA_axioms, align 8, !tbaa !5
  %102 = load i32, ptr %3, align 4, !tbaa !10
  %103 = sext i32 %102 to i64
  %104 = getelementptr inbounds i32, ptr %101, i64 %103
  %105 = load i32, ptr %104, align 4, !tbaa !10
  %106 = sext i32 %105 to i64
  %107 = getelementptr inbounds %struct._OpConn, ptr %100, i64 %106
  %108 = getelementptr inbounds %struct._OpConn, ptr %107, i32 0, i32 2
  %109 = load ptr, ptr %108, align 8, !tbaa !23
  %110 = getelementptr inbounds i32, ptr %109, i64 0
  %111 = load i32, ptr %110, align 4, !tbaa !10
  %112 = sext i32 %111 to i64
  %113 = getelementptr inbounds %struct._EfConn, ptr %99, i64 %112
  %114 = getelementptr inbounds %struct._EfConn, ptr %113, i32 0, i32 12
  %115 = load ptr, ptr %114, align 8, !tbaa !24
  %116 = getelementptr inbounds i32, ptr %115, i64 0
  %117 = load i32, ptr %116, align 4, !tbaa !10
  store i32 %117, ptr %6, align 4, !tbaa !10
  %118 = load ptr, ptr @do_axiom_update.in_dest, align 8, !tbaa !5
  %119 = load i32, ptr %6, align 4, !tbaa !10
  %120 = sext i32 %119 to i64
  %121 = getelementptr inbounds i8, ptr %118, i64 %120
  %122 = load i8, ptr %121, align 1, !tbaa !9
  %123 = icmp ne i8 %122, 0
  br i1 %123, label %124, label %125

124:                                              ; preds = %98
  br label %145

125:                                              ; preds = %98
  store i8 1, ptr %7, align 1, !tbaa !9
  %126 = load i32, ptr getelementptr inbounds (%struct._command_line, ptr @gcmd_line, i32 0, i32 4), align 4, !tbaa !14
  %127 = icmp ne i32 %126, 0
  br i1 %127, label %128, label %130

128:                                              ; preds = %125
  %129 = call i32 (ptr, ...) @printf(ptr noundef @.str.35)
  br label %130

130:                                              ; preds = %128, %125
  %131 = load i32, ptr %6, align 4, !tbaa !10
  %132 = load ptr, ptr %2, align 8, !tbaa !5
  %133 = getelementptr inbounds %struct._State, ptr %132, i32 0, i32 0
  %134 = load ptr, ptr %133, align 8, !tbaa !19
  %135 = load ptr, ptr %2, align 8, !tbaa !5
  %136 = getelementptr inbounds %struct._State, ptr %135, i32 0, i32 1
  %137 = load i32, ptr %136, align 8, !tbaa !17
  %138 = add nsw i32 %137, 1
  store i32 %138, ptr %136, align 8, !tbaa !17
  %139 = sext i32 %137 to i64
  %140 = getelementptr inbounds i32, ptr %134, i64 %139
  store i32 %131, ptr %140, align 4, !tbaa !10
  %141 = load ptr, ptr @do_axiom_update.in_dest, align 8, !tbaa !5
  %142 = load i32, ptr %6, align 4, !tbaa !10
  %143 = sext i32 %142 to i64
  %144 = getelementptr inbounds i8, ptr %141, i64 %143
  store i8 1, ptr %144, align 1, !tbaa !9
  br label %145

145:                                              ; preds = %130, %124
  %146 = load i32, ptr %3, align 4, !tbaa !10
  %147 = add nsw i32 %146, 1
  store i32 %147, ptr %3, align 4, !tbaa !10
  br label %70, !llvm.loop !26

148:                                              ; preds = %70
  br label %60, !llvm.loop !27

149:                                              ; preds = %60
  %150 = load i32, ptr getelementptr inbounds (%struct._command_line, ptr @gcmd_line, i32 0, i32 4), align 4, !tbaa !14
  %151 = icmp ne i32 %150, 0
  br i1 %151, label %152, label %155

152:                                              ; preds = %149
  %153 = call i32 (ptr, ...) @printf(ptr noundef @.str.36)
  %154 = load ptr, ptr %2, align 8, !tbaa !5
  call void @print_State(ptr noundef byval(%struct._State) align 8 %154)
  br label %155

155:                                              ; preds = %152, %149
  store i32 0, ptr %3, align 4, !tbaa !10
  br label %156

156:                                              ; preds = %173, %155
  %157 = load i32, ptr %3, align 4, !tbaa !10
  %158 = load ptr, ptr %2, align 8, !tbaa !5
  %159 = getelementptr inbounds %struct._State, ptr %158, i32 0, i32 1
  %160 = load i32, ptr %159, align 8, !tbaa !17
  %161 = icmp slt i32 %157, %160
  br i1 %161, label %162, label %176

162:                                              ; preds = %156
  %163 = load ptr, ptr @do_axiom_update.in_dest, align 8, !tbaa !5
  %164 = load ptr, ptr %2, align 8, !tbaa !5
  %165 = getelementptr inbounds %struct._State, ptr %164, i32 0, i32 0
  %166 = load ptr, ptr %165, align 8, !tbaa !19
  %167 = load i32, ptr %3, align 4, !tbaa !10
  %168 = sext i32 %167 to i64
  %169 = getelementptr inbounds i32, ptr %166, i64 %168
  %170 = load i32, ptr %169, align 4, !tbaa !10
  %171 = sext i32 %170 to i64
  %172 = getelementptr inbounds i8, ptr %163, i64 %171
  store i8 0, ptr %172, align 1, !tbaa !9
  br label %173

173:                                              ; preds = %162
  %174 = load i32, ptr %3, align 4, !tbaa !10
  %175 = add nsw i32 %174, 1
  store i32 %175, ptr %3, align 4, !tbaa !10
  br label %156, !llvm.loop !28

176:                                              ; preds = %156
  call void @llvm.lifetime.end.p0(i64 1, ptr %7) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #5
  ret void
}

declare void @print_State(ptr noundef byval(%struct._State) align 8) #1

declare void @get_A_axioms(ptr 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 = { noreturn nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind 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 #4 = { 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 #5 = { nounwind }
attributes #6 = { nounwind allocsize(0,1) }
attributes #7 = { 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 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!7, !7, i64 0}
!10 = !{!11, !11, i64 0}
!11 = !{!"int", !7, i64 0}
!12 = distinct !{!12, !13}
!13 = !{!"llvm.loop.mustprogress"}
!14 = !{!15, !11, i64 772}
!15 = !{!"_command_line", !7, i64 0, !7, i64 256, !7, i64 512, !11, i64 768, !11, i64 772, !11, i64 776, !7, i64 780, !11, i64 784, !16, i64 788}
!16 = !{!"float", !7, i64 0}
!17 = !{!18, !11, i64 8}
!18 = !{!"_State", !6, i64 0, !11, i64 8, !6, i64 16, !6, i64 24}
!19 = !{!18, !6, i64 0}
!20 = distinct !{!20, !13}
!21 = !{!22, !7, i64 8}
!22 = !{!"_OpConn", !6, i64 0, !7, i64 8, !6, i64 16, !11, i64 24, !7, i64 28, !7, i64 29, !11, i64 32, !7, i64 36, !16, i64 40}
!23 = !{!22, !6, i64 16}
!24 = !{!25, !6, i64 80}
!25 = !{!"_EfConn", !11, i64 0, !7, i64 4, !7, i64 5, !16, i64 8, !6, i64 16, !11, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !11, i64 56, !6, i64 64, !6, i64 72, !6, i64 80, !11, i64 88, !6, i64 96, !11, i64 104, !6, i64 112, !6, i64 120, !6, i64 128, !11, i64 136, !6, i64 144, !6, i64 152, !6, i64 160, !11, i64 168, !6, i64 176, !11, i64 184, !11, i64 188, !16, i64 192, !7, i64 196, !11, i64 200, !7, i64 204, !11, i64 208, !11, i64 212}
!26 = distinct !{!26, !13}
!27 = distinct !{!27, !13}
!28 = distinct !{!28, !13}


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

@gnum_ft_conn = external local_unnamed_addr global i32, align 4
@gcmd_line = external local_unnamed_addr global %struct._command_line, align 4
@gop_conn = external local_unnamed_addr global ptr, align 8
@gef_conn = external local_unnamed_addr global ptr, align 8
@do_axiom_update.first_call = external hidden local_unnamed_addr global i8, align 1
@do_axiom_update.in_dest = external hidden local_unnamed_addr global ptr, align 8
@.str.30 = external hidden unnamed_addr constant [70 x i8], align 1
@.str.31 = external hidden unnamed_addr constant [64 x i8], align 1
@.str.32 = external hidden unnamed_addr constant [46 x i8], align 1
@gnum_A_axioms = external local_unnamed_addr global i32, align 4
@gA_axioms = external local_unnamed_addr global ptr, align 8
@.str.33 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.34 = external hidden unnamed_addr constant [48 x i8], align 1
@.str.35 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.36 = external hidden unnamed_addr constant [65 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: noreturn nounwind
declare void @exit(i32 noundef) local_unnamed_addr #2

; 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 #3

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

3:                                                ; preds = %1
  %4 = load i32, ptr @gnum_ft_conn, align 4, !tbaa !8
  %5 = sext i32 %4 to i64
  %6 = tail call noalias ptr @calloc(i64 noundef %5, i64 noundef 1) #5
  store ptr %6, ptr @do_axiom_update.in_dest, align 8, !tbaa !10
  %7 = icmp sgt i32 %4, 0
  br i1 %7, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %3, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph ], [ 0, %3 ]
  %8 = load ptr, ptr @do_axiom_update.in_dest, align 8, !tbaa !10
  %9 = getelementptr inbounds i8, ptr %8, i64 %indvars.iv
  store i8 0, ptr %9, align 1, !tbaa !5
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %10 = load i32, ptr @gnum_ft_conn, align 4, !tbaa !8
  %11 = sext i32 %10 to i64
  %12 = icmp slt i64 %indvars.iv.next, %11
  br i1 %12, label %.lr.ph, label %._crit_edge, !llvm.loop !12

._crit_edge:                                      ; preds = %.lr.ph, %3
  store i8 0, ptr @do_axiom_update.first_call, align 1, !tbaa !5
  br label %13

13:                                               ; preds = %._crit_edge, %1
  %14 = load i32, ptr getelementptr inbounds (i8, ptr @gcmd_line, i64 772), align 4, !tbaa !14
  %.not29 = icmp eq i32 %14, 0
  br i1 %.not29, label %17, label %15

15:                                               ; preds = %13
  %16 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.30)
  br label %17

17:                                               ; preds = %15, %13
  %18 = getelementptr inbounds i8, ptr %0, i64 8
  %19 = load i32, ptr %18, align 8, !tbaa !17
  %20 = icmp sgt i32 %19, 0
  br i1 %20, label %.lr.ph42, label %._crit_edge43

.lr.ph42:                                         ; preds = %17, %.lr.ph42
  %indvars.iv53 = phi i64 [ %indvars.iv.next54, %.lr.ph42 ], [ 0, %17 ]
  %21 = load ptr, ptr @do_axiom_update.in_dest, align 8, !tbaa !10
  %22 = load ptr, ptr %0, align 8, !tbaa !19
  %23 = getelementptr inbounds i32, ptr %22, i64 %indvars.iv53
  %24 = load i32, ptr %23, align 4, !tbaa !8
  %25 = sext i32 %24 to i64
  %26 = getelementptr inbounds i8, ptr %21, i64 %25
  store i8 1, ptr %26, align 1, !tbaa !5
  %indvars.iv.next54 = add nuw nsw i64 %indvars.iv53, 1
  %27 = load i32, ptr %18, align 8, !tbaa !17
  %28 = sext i32 %27 to i64
  %29 = icmp slt i64 %indvars.iv.next54, %28
  br i1 %29, label %.lr.ph42, label %._crit_edge43, !llvm.loop !20

._crit_edge43:                                    ; preds = %.lr.ph42, %17
  %30 = load i32, ptr getelementptr inbounds (i8, ptr @gcmd_line, i64 772), align 4, !tbaa !14
  %.not30 = icmp eq i32 %30, 0
  br i1 %.not30, label %.preheader, label %31

31:                                               ; preds = %._crit_edge43
  %32 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.31)
  tail call void @print_State(ptr noundef nonnull byval(%struct._State) align 8 %0) #6
  br label %.preheader

.preheader:                                       ; preds = %31, %._crit_edge43
  br label %33

.loopexit:                                        ; preds = %83
  %.not31 = icmp eq i8 %.2, 0
  br i1 %.not31, label %.loopexit.thread, label %33, !llvm.loop !21

33:                                               ; preds = %.preheader, %.loopexit
  %34 = load i32, ptr getelementptr inbounds (i8, ptr @gcmd_line, i64 772), align 4, !tbaa !14
  %.not33 = icmp eq i32 %34, 0
  br i1 %.not33, label %37, label %35

35:                                               ; preds = %33
  %36 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.32)
  br label %37

37:                                               ; preds = %35, %33
  tail call void @get_A_axioms(ptr noundef %0) #6
  %38 = load i32, ptr @gnum_A_axioms, align 4, !tbaa !8
  %39 = icmp sgt i32 %38, 0
  br i1 %39, label %.lr.ph47.preheader, label %.loopexit.thread

.lr.ph47.preheader:                               ; preds = %37
  %.pre61 = load ptr, ptr @gop_conn, align 8, !tbaa !10
  %.pre63 = load ptr, ptr @gA_axioms, align 8, !tbaa !10
  br label %.lr.ph47

.lr.ph47:                                         ; preds = %.lr.ph47.preheader, %83
  %40 = phi ptr [ %.pre63, %.lr.ph47.preheader ], [ %84, %83 ]
  %41 = phi ptr [ %.pre61, %.lr.ph47.preheader ], [ %85, %83 ]
  %indvars.iv56 = phi i64 [ 0, %.lr.ph47.preheader ], [ %indvars.iv.next57, %83 ]
  %.145 = phi i8 [ 0, %.lr.ph47.preheader ], [ %.2, %83 ]
  %42 = getelementptr inbounds i32, ptr %40, i64 %indvars.iv56
  %43 = load i32, ptr %42, align 4, !tbaa !8
  %44 = sext i32 %43 to i64
  %45 = getelementptr inbounds %struct._OpConn, ptr %41, i64 %44, i32 1
  %46 = load i8, ptr %45, align 8, !tbaa !22
  %.not34 = icmp eq i8 %46, 0
  br i1 %.not34, label %47, label %49

47:                                               ; preds = %.lr.ph47
  %48 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.33)
  tail call void @exit(i32 noundef 1) #7
  unreachable

49:                                               ; preds = %.lr.ph47
  %50 = load i32, ptr getelementptr inbounds (i8, ptr @gcmd_line, i64 772), align 4, !tbaa !14
  %.not35 = icmp eq i32 %50, 0
  br i1 %.not35, label %56, label %51

51:                                               ; preds = %49
  %52 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.34)
  %53 = load ptr, ptr @gA_axioms, align 8, !tbaa !10
  %54 = getelementptr inbounds i32, ptr %53, i64 %indvars.iv56
  %55 = load i32, ptr %54, align 4, !tbaa !8
  tail call void @print_op_name(i32 noundef %55) #6
  %.pre64 = load ptr, ptr @gop_conn, align 8, !tbaa !10
  %.pre65 = load ptr, ptr @gA_axioms, align 8, !tbaa !10
  %.phi.trans.insert = getelementptr inbounds i32, ptr %.pre65, i64 %indvars.iv56
  %.pre67 = load i32, ptr %.phi.trans.insert, align 4, !tbaa !8
  %.pre68 = sext i32 %.pre67 to i64
  br label %56

56:                                               ; preds = %51, %49
  %.pre-phi = phi i64 [ %.pre68, %51 ], [ %44, %49 ]
  %57 = phi ptr [ %.pre65, %51 ], [ %40, %49 ]
  %58 = phi ptr [ %.pre64, %51 ], [ %41, %49 ]
  %59 = load ptr, ptr @gef_conn, align 8, !tbaa !10
  %60 = getelementptr inbounds %struct._OpConn, ptr %58, i64 %.pre-phi, i32 2
  %61 = load ptr, ptr %60, align 8, !tbaa !24
  %62 = load i32, ptr %61, align 4, !tbaa !8
  %63 = sext i32 %62 to i64
  %64 = getelementptr inbounds %struct._EfConn, ptr %59, i64 %63, i32 12
  %65 = load ptr, ptr %64, align 8, !tbaa !25
  %66 = load i32, ptr %65, align 4, !tbaa !8
  %67 = load ptr, ptr @do_axiom_update.in_dest, align 8, !tbaa !10
  %68 = sext i32 %66 to i64
  %69 = getelementptr inbounds i8, ptr %67, i64 %68
  %70 = load i8, ptr %69, align 1, !tbaa !5
  %.not36 = icmp eq i8 %70, 0
  br i1 %.not36, label %71, label %83

71:                                               ; preds = %56
  %72 = load i32, ptr getelementptr inbounds (i8, ptr @gcmd_line, i64 772), align 4, !tbaa !14
  %.not37 = icmp eq i32 %72, 0
  br i1 %.not37, label %75, label %73

73:                                               ; preds = %71
  %74 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.35)
  %.pre66 = load ptr, ptr @do_axiom_update.in_dest, align 8, !tbaa !10
  br label %75

75:                                               ; preds = %73, %71
  %76 = phi ptr [ %.pre66, %73 ], [ %67, %71 ]
  %77 = load ptr, ptr %0, align 8, !tbaa !19
  %78 = load i32, ptr %18, align 8, !tbaa !17
  %79 = add nsw i32 %78, 1
  store i32 %79, ptr %18, align 8, !tbaa !17
  %80 = sext i32 %78 to i64
  %81 = getelementptr inbounds i32, ptr %77, i64 %80
  store i32 %66, ptr %81, align 4, !tbaa !8
  %82 = getelementptr inbounds i8, ptr %76, i64 %68
  store i8 1, ptr %82, align 1, !tbaa !5
  %.pre = load ptr, ptr @gop_conn, align 8, !tbaa !10
  %.pre62 = load ptr, ptr @gA_axioms, align 8, !tbaa !10
  br label %83

83:                                               ; preds = %56, %75
  %84 = phi ptr [ %57, %56 ], [ %.pre62, %75 ]
  %85 = phi ptr [ %58, %56 ], [ %.pre, %75 ]
  %.2 = phi i8 [ %.145, %56 ], [ 1, %75 ]
  %indvars.iv.next57 = add nuw nsw i64 %indvars.iv56, 1
  %86 = load i32, ptr @gnum_A_axioms, align 4, !tbaa !8
  %87 = sext i32 %86 to i64
  %88 = icmp slt i64 %indvars.iv.next57, %87
  br i1 %88, label %.lr.ph47, label %.loopexit, !llvm.loop !27

.loopexit.thread:                                 ; preds = %37, %.loopexit
  %89 = load i32, ptr getelementptr inbounds (i8, ptr @gcmd_line, i64 772), align 4, !tbaa !14
  %.not32 = icmp eq i32 %89, 0
  br i1 %.not32, label %92, label %90

90:                                               ; preds = %.loopexit.thread
  %91 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.36)
  tail call void @print_State(ptr noundef byval(%struct._State) align 8 %0) #6
  br label %92

92:                                               ; preds = %90, %.loopexit.thread
  %93 = load i32, ptr %18, align 8, !tbaa !17
  %94 = icmp sgt i32 %93, 0
  br i1 %94, label %.lr.ph50, label %._crit_edge51

.lr.ph50:                                         ; preds = %92, %.lr.ph50
  %indvars.iv58 = phi i64 [ %indvars.iv.next59, %.lr.ph50 ], [ 0, %92 ]
  %95 = load ptr, ptr @do_axiom_update.in_dest, align 8, !tbaa !10
  %96 = load ptr, ptr %0, align 8, !tbaa !19
  %97 = getelementptr inbounds i32, ptr %96, i64 %indvars.iv58
  %98 = load i32, ptr %97, align 4, !tbaa !8
  %99 = sext i32 %98 to i64
  %100 = getelementptr inbounds i8, ptr %95, i64 %99
  store i8 0, ptr %100, align 1, !tbaa !5
  %indvars.iv.next59 = add nuw nsw i64 %indvars.iv58, 1
  %101 = load i32, ptr %18, align 8, !tbaa !17
  %102 = sext i32 %101 to i64
  %103 = icmp slt i64 %indvars.iv.next59, %102
  br i1 %103, label %.lr.ph50, label %._crit_edge51, !llvm.loop !28

._crit_edge51:                                    ; preds = %.lr.ph50, %92
  ret void
}

declare void @print_State(ptr noundef byval(%struct._State) align 8) local_unnamed_addr #1

declare void @get_A_axioms(ptr 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 = { noreturn nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { 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 #4 = { 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 #5 = { nounwind allocsize(0,1) }
attributes #6 = { nounwind }
attributes #7 = { 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 = !{!"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 = distinct !{!12, !13}
!13 = !{!"llvm.loop.mustprogress"}
!14 = !{!15, !9, i64 772}
!15 = !{!"_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, !16, i64 788}
!16 = !{!"float", !6, i64 0}
!17 = !{!18, !9, i64 8}
!18 = !{!"_State", !11, i64 0, !9, i64 8, !11, i64 16, !11, i64 24}
!19 = !{!18, !11, i64 0}
!20 = distinct !{!20, !13}
!21 = distinct !{!21, !13}
!22 = !{!23, !6, i64 8}
!23 = !{!"_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, !16, i64 40}
!24 = !{!23, !11, i64 16}
!25 = !{!26, !11, i64 80}
!26 = !{!"_EfConn", !9, i64 0, !6, i64 4, !6, i64 5, !16, 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, !16, i64 192, !6, i64 196, !9, i64 200, !6, i64 204, !9, i64 208, !9, i64 212}
!27 = distinct !{!27, !13}
!28 = distinct !{!28, !13}


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