; LLVM IR from clausecker/24puzzle :: cmd (parsearch)

; 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.fsm = type { [25 x i32], [25 x ptr], [25 x ptr] }

@fsm_simple = external constant %struct.fsm, align 8
@.str = external hidden unnamed_addr constant [10 x i8], align 1
@optarg = external global ptr, align 8
@pdb_jobs = external global i32, align 4
@stderr = external global ptr, align 8
@.str.1 = external hidden unnamed_addr constant [44 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [9 x i8], align 1
@optind = external global i32, align 4
@.str.5 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [6 x i8], align 1
@stdout = external global ptr, align 8

; Function Attrs: nounwind uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca ptr, align 8
  %16 = alloca i32, align 4
  store i32 0, ptr %3, align 4
  store i32 %0, ptr %4, align 4, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #5
  store ptr @fsm_simple, ptr %7, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #5
  store i32 0, ptr %12, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #5
  store i32 0, ptr %13, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #5
  store i32 0, ptr %14, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #5
  store ptr null, ptr %15, align 8, !tbaa !9
  br label %17

17:                                               ; preds = %72, %2
  %18 = load i32, ptr %4, align 4, !tbaa !5
  %19 = load ptr, ptr %5, align 8, !tbaa !9
  %20 = call i32 @__posix_getopt(i32 noundef %18, ptr noundef %19, ptr noundef @.str) #5
  store i32 %20, ptr %11, align 4, !tbaa !5
  %21 = load i32, ptr %11, align 4, !tbaa !5
  %22 = icmp ne i32 %21, -1
  br i1 %22, label %23, label %73

23:                                               ; preds = %17
  %24 = load i32, ptr %11, align 4, !tbaa !5
  switch i32 %24, label %68 [
    i32 70, label %25
    i32 100, label %28
    i32 105, label %30
    i32 106, label %33
    i32 109, label %45
    i32 116, label %67
  ]

25:                                               ; preds = %23
  %26 = load i32, ptr %13, align 4, !tbaa !5
  %27 = or i32 %26, 1
  store i32 %27, ptr %13, align 4, !tbaa !5
  br label %72

28:                                               ; preds = %23
  %29 = load ptr, ptr @optarg, align 8, !tbaa !9
  store ptr %29, ptr %15, align 8, !tbaa !9
  br label %72

30:                                               ; preds = %23
  %31 = load i32, ptr %12, align 4, !tbaa !5
  %32 = or i32 %31, 1
  store i32 %32, ptr %12, align 4, !tbaa !5
  br label %72

33:                                               ; preds = %23
  %34 = load ptr, ptr @optarg, align 8, !tbaa !9
  %35 = call i32 @atoi(ptr noundef %34) #6
  store i32 %35, ptr @pdb_jobs, align 4, !tbaa !5
  %36 = load i32, ptr @pdb_jobs, align 4, !tbaa !5
  %37 = icmp slt i32 %36, 1
  br i1 %37, label %41, label %38

38:                                               ; preds = %33
  %39 = load i32, ptr @pdb_jobs, align 4, !tbaa !5
  %40 = icmp sgt i32 %39, 256
  br i1 %40, label %41, label %44

41:                                               ; preds = %38, %33
  %42 = load ptr, ptr @stderr, align 8, !tbaa !9
  %43 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %42, ptr noundef @.str.1, i32 noundef 256) #5
  store i32 1, ptr %3, align 4
  store i32 1, ptr %16, align 4
  br label %122

44:                                               ; preds = %38
  br label %72

45:                                               ; preds = %23
  %46 = load ptr, ptr @optarg, align 8, !tbaa !9
  %47 = call noalias ptr @fopen(ptr noundef %46, ptr noundef @.str.2)
  store ptr %47, ptr %10, align 8, !tbaa !9
  %48 = load ptr, ptr %10, align 8, !tbaa !9
  %49 = icmp eq ptr %48, null
  br i1 %49, label %50, label %54

50:                                               ; preds = %45
  %51 = load ptr, ptr @optarg, align 8, !tbaa !9
  call void @perror(ptr noundef %51)
  %52 = load ptr, ptr @stderr, align 8, !tbaa !9
  %53 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %52, ptr noundef @.str.3) #5
  br label %72

54:                                               ; preds = %45
  %55 = load ptr, ptr %10, align 8, !tbaa !9
  %56 = call ptr @fsm_load(ptr noundef %55)
  store ptr %56, ptr %8, align 8, !tbaa !9
  %57 = load ptr, ptr %7, align 8, !tbaa !9
  %58 = icmp eq ptr %57, null
  br i1 %58, label %59, label %62

59:                                               ; preds = %54
  call void @perror(ptr noundef @.str.4)
  %60 = load ptr, ptr @stderr, align 8, !tbaa !9
  %61 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %60, ptr noundef @.str.3) #5
  br label %64

62:                                               ; preds = %54
  %63 = load ptr, ptr %8, align 8, !tbaa !9
  store ptr %63, ptr %7, align 8, !tbaa !9
  br label %64

64:                                               ; preds = %62, %59
  %65 = load ptr, ptr %10, align 8, !tbaa !9
  %66 = call i32 @fclose(ptr noundef %65)
  br label %72

67:                                               ; preds = %23
  store i32 0, ptr %14, align 4, !tbaa !5
  br label %72

68:                                               ; preds = %23
  %69 = load ptr, ptr %5, align 8, !tbaa !9
  %70 = getelementptr inbounds ptr, ptr %69, i64 0
  %71 = load ptr, ptr %70, align 8, !tbaa !9
  call void @usage(ptr noundef %71)
  br label %72

72:                                               ; preds = %68, %67, %64, %50, %44, %30, %28, %25
  br label %17, !llvm.loop !11

73:                                               ; preds = %17
  %74 = load i32, ptr %4, align 4, !tbaa !5
  %75 = load i32, ptr @optind, align 4, !tbaa !5
  %76 = add nsw i32 %75, 2
  %77 = icmp ne i32 %74, %76
  br i1 %77, label %78, label %82

78:                                               ; preds = %73
  %79 = load ptr, ptr %5, align 8, !tbaa !9
  %80 = getelementptr inbounds ptr, ptr %79, i64 0
  %81 = load ptr, ptr %80, align 8, !tbaa !9
  call void @usage(ptr noundef %81)
  br label %82

82:                                               ; preds = %78, %73
  %83 = load ptr, ptr %5, align 8, !tbaa !9
  %84 = load i32, ptr @optind, align 4, !tbaa !5
  %85 = sext i32 %84 to i64
  %86 = getelementptr inbounds ptr, ptr %83, i64 %85
  %87 = load ptr, ptr %86, align 8, !tbaa !9
  %88 = load ptr, ptr %15, align 8, !tbaa !9
  %89 = load i32, ptr %12, align 4, !tbaa !5
  %90 = call ptr @catalogue_load(ptr noundef %87, ptr noundef %88, i32 noundef %89, ptr noundef null)
  store ptr %90, ptr %6, align 8, !tbaa !9
  %91 = load ptr, ptr %6, align 8, !tbaa !9
  %92 = icmp eq ptr %91, null
  br i1 %92, label %93, label %94

93:                                               ; preds = %82
  call void @perror(ptr noundef @.str.5)
  store i32 1, ptr %3, align 4
  store i32 1, ptr %16, align 4
  br label %122

94:                                               ; preds = %82
  %95 = load i32, ptr %14, align 4, !tbaa !5
  %96 = icmp ne i32 %95, 0
  br i1 %96, label %97, label %104

97:                                               ; preds = %94
  %98 = load ptr, ptr %6, align 8, !tbaa !9
  %99 = call i32 @catalogue_add_transpositions(ptr noundef %98)
  %100 = icmp ne i32 %99, 0
  br i1 %100, label %101, label %104

101:                                              ; preds = %97
  call void @perror(ptr noundef @.str.6)
  %102 = load ptr, ptr @stderr, align 8, !tbaa !9
  %103 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %102, ptr noundef @.str.3) #5
  br label %104

104:                                              ; preds = %101, %97, %94
  %105 = load ptr, ptr %5, align 8, !tbaa !9
  %106 = load i32, ptr @optind, align 4, !tbaa !5
  %107 = add nsw i32 %106, 1
  %108 = sext i32 %107 to i64
  %109 = getelementptr inbounds ptr, ptr %105, i64 %108
  %110 = load ptr, ptr %109, align 8, !tbaa !9
  %111 = call noalias ptr @fopen(ptr noundef %110, ptr noundef @.str.7)
  store ptr %111, ptr %9, align 8, !tbaa !9
  %112 = load ptr, ptr %9, align 8, !tbaa !9
  %113 = icmp eq ptr %112, null
  br i1 %113, label %114, label %115

114:                                              ; preds = %104
  call void @perror(ptr noundef @.str.8)
  store i32 1, ptr %3, align 4
  store i32 1, ptr %16, align 4
  br label %122

115:                                              ; preds = %104
  %116 = load ptr, ptr @stdout, align 8, !tbaa !9
  %117 = call i32 @setvbuf(ptr noundef %116, ptr noundef null, i32 noundef 1, i64 noundef 0) #5
  %118 = load ptr, ptr %6, align 8, !tbaa !9
  %119 = load ptr, ptr %7, align 8, !tbaa !9
  %120 = load ptr, ptr %9, align 8, !tbaa !9
  %121 = load i32, ptr %13, align 4, !tbaa !5
  call void @lookup_multiple(ptr noundef %118, ptr noundef %119, ptr noundef %120, i32 noundef %121)
  store i32 0, ptr %3, align 4
  store i32 1, ptr %16, align 4
  br label %122

122:                                              ; preds = %115, %114, %93, %41
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #5
  %123 = load i32, ptr %3, align 4
  ret i32 %123
}

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

; Function Attrs: nounwind
declare i32 @__posix_getopt(i32 noundef, ptr noundef, ptr noundef) #2

; Function Attrs: inlinehint nounwind willreturn memory(read) uwtable
declare i32 @atoi(ptr noundef nonnull) #3

; Function Attrs: nounwind
declare i32 @fprintf(ptr noundef, ptr noundef, ...) #2

declare noalias ptr @fopen(ptr noundef, ptr noundef) #4

declare void @perror(ptr noundef) #4

declare ptr @fsm_load(ptr noundef) #4

declare i32 @fclose(ptr noundef) #4

; Function Attrs: nounwind uwtable
declare hidden void @usage(ptr noundef) #0

declare ptr @catalogue_load(ptr noundef, ptr noundef, i32 noundef, ptr noundef) #4

declare i32 @catalogue_add_transpositions(ptr noundef) #4

; Function Attrs: nounwind
declare i32 @setvbuf(ptr noundef, ptr noundef, i32 noundef, i64 noundef) #2

; Function Attrs: nounwind uwtable
declare hidden void @lookup_multiple(ptr noundef, ptr noundef, ptr noundef, i32 noundef) #0

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

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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 = { inlinehint nounwind willreturn memory(read) 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 #4 = { "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 willreturn memory(read) }

!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 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%struct.fsm = type { [25 x i32], [25 x ptr], [25 x ptr] }

@fsm_simple = external constant %struct.fsm, align 8
@.str = external hidden unnamed_addr constant [10 x i8], align 1
@optarg = external local_unnamed_addr global ptr, align 8
@pdb_jobs = external local_unnamed_addr global i32, align 4
@stderr = external local_unnamed_addr global ptr, align 8
@.str.1 = external hidden unnamed_addr constant [44 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [9 x i8], align 1
@optind = external local_unnamed_addr global i32, align 4
@.str.5 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [6 x i8], align 1
@stdout = external local_unnamed_addr global ptr, align 8

; Function Attrs: nounwind uwtable
define dso_local range(i32 0, 2) i32 @main(i32 noundef %0, ptr noundef %1) local_unnamed_addr #0 {
  br label %3

3:                                                ; preds = %.backedge, %2
  %.034 = phi ptr [ @fsm_simple, %2 ], [ %.034.be, %.backedge ]
  %.031 = phi i32 [ 0, %2 ], [ %.031.be, %.backedge ]
  %.029 = phi i32 [ 0, %2 ], [ %.029.be, %.backedge ]
  %.0 = phi ptr [ null, %2 ], [ %.0.be, %.backedge ]
  %4 = tail call i32 @__posix_getopt(i32 noundef %0, ptr noundef %1, ptr noundef nonnull @.str) #5
  switch i32 %4, label %32 [
    i32 -1, label %34
    i32 70, label %.backedge
    i32 100, label %5
    i32 105, label %7
    i32 106, label %8
    i32 109, label %15
    i32 116, label %31
  ]

.backedge:                                        ; preds = %3, %8, %32, %31, %29, %19, %7, %5
  %.034.be = phi ptr [ %.034, %32 ], [ %.034, %31 ], [ %.034, %19 ], [ %.135, %29 ], [ %.034, %8 ], [ %.034, %7 ], [ %.034, %5 ], [ %.034, %3 ]
  %.031.be = phi i32 [ %.031, %32 ], [ %.031, %31 ], [ %.031, %19 ], [ %.031, %29 ], [ %.031, %8 ], [ 1, %7 ], [ %.031, %5 ], [ %.031, %3 ]
  %.029.be = phi i32 [ %.029, %32 ], [ %.029, %31 ], [ %.029, %19 ], [ %.029, %29 ], [ %.029, %8 ], [ %.029, %7 ], [ %.029, %5 ], [ 1, %3 ]
  %.0.be = phi ptr [ %.0, %32 ], [ %.0, %31 ], [ %.0, %19 ], [ %.0, %29 ], [ %.0, %8 ], [ %.0, %7 ], [ %6, %5 ], [ %.0, %3 ]
  br label %3, !llvm.loop !5

5:                                                ; preds = %3
  %6 = load ptr, ptr @optarg, align 8, !tbaa !7
  br label %.backedge

7:                                                ; preds = %3
  br label %.backedge

8:                                                ; preds = %3
  %9 = load ptr, ptr @optarg, align 8, !tbaa !7
  %10 = tail call i32 @atoi(ptr nocapture noundef %9) #6
  store i32 %10, ptr @pdb_jobs, align 4, !tbaa !11
  %11 = add i32 %10, -257
  %or.cond = icmp ult i32 %11, -256
  br i1 %or.cond, label %12, label %.backedge

12:                                               ; preds = %8
  %13 = load ptr, ptr @stderr, align 8, !tbaa !7
  %14 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %13, ptr noundef nonnull @.str.1, i32 noundef 256) #7
  br label %59

15:                                               ; preds = %3
  %16 = load ptr, ptr @optarg, align 8, !tbaa !7
  %17 = tail call noalias ptr @fopen(ptr noundef %16, ptr noundef nonnull @.str.2)
  %18 = icmp eq ptr %17, null
  br i1 %18, label %19, label %23

19:                                               ; preds = %15
  %20 = load ptr, ptr @optarg, align 8, !tbaa !7
  tail call void @perror(ptr noundef %20) #8
  %21 = load ptr, ptr @stderr, align 8, !tbaa !7
  %22 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %21, ptr noundef nonnull @.str.3) #7
  br label %.backedge

23:                                               ; preds = %15
  %24 = tail call ptr @fsm_load(ptr noundef nonnull %17) #5
  %25 = icmp eq ptr %.034, null
  br i1 %25, label %26, label %29

26:                                               ; preds = %23
  tail call void @perror(ptr noundef nonnull @.str.4) #8
  %27 = load ptr, ptr @stderr, align 8, !tbaa !7
  %28 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %27, ptr noundef nonnull @.str.3) #7
  br label %29

29:                                               ; preds = %23, %26
  %.135 = phi ptr [ null, %26 ], [ %24, %23 ]
  %30 = tail call i32 @fclose(ptr noundef nonnull %17)
  br label %.backedge

31:                                               ; preds = %3
  br label %.backedge

32:                                               ; preds = %3
  %33 = load ptr, ptr %1, align 8, !tbaa !7
  tail call void @usage(ptr noundef %33)
  br label %.backedge

34:                                               ; preds = %3
  %35 = load i32, ptr @optind, align 4, !tbaa !11
  %36 = add nsw i32 %35, 2
  %.not40 = icmp eq i32 %36, %0
  br i1 %.not40, label %39, label %37

37:                                               ; preds = %34
  %38 = load ptr, ptr %1, align 8, !tbaa !7
  tail call void @usage(ptr noundef %38)
  %.pre = load i32, ptr @optind, align 4, !tbaa !11
  br label %39

39:                                               ; preds = %37, %34
  %40 = phi i32 [ %.pre, %37 ], [ %35, %34 ]
  %41 = sext i32 %40 to i64
  %42 = getelementptr inbounds ptr, ptr %1, i64 %41
  %43 = load ptr, ptr %42, align 8, !tbaa !7
  %44 = tail call ptr @catalogue_load(ptr noundef %43, ptr noundef %.0, i32 noundef %.031, ptr noundef null) #5
  %45 = icmp eq ptr %44, null
  br i1 %45, label %46, label %47

46:                                               ; preds = %39
  tail call void @perror(ptr noundef nonnull @.str.5) #8
  br label %59

47:                                               ; preds = %39
  %48 = load i32, ptr @optind, align 4, !tbaa !11
  %49 = sext i32 %48 to i64
  %50 = getelementptr ptr, ptr %1, i64 %49
  %51 = getelementptr i8, ptr %50, i64 8
  %52 = load ptr, ptr %51, align 8, !tbaa !7
  %53 = tail call noalias ptr @fopen(ptr noundef %52, ptr noundef nonnull @.str.7)
  %54 = icmp eq ptr %53, null
  br i1 %54, label %55, label %56

55:                                               ; preds = %47
  tail call void @perror(ptr noundef nonnull @.str.8) #8
  br label %59

56:                                               ; preds = %47
  %57 = load ptr, ptr @stdout, align 8, !tbaa !7
  %58 = tail call i32 @setvbuf(ptr noundef %57, ptr noundef null, i32 noundef 1, i64 noundef 0) #5
  tail call void @lookup_multiple(ptr noundef nonnull %44, ptr noundef %.034, ptr noundef nonnull %53, i32 noundef %.029)
  br label %59

59:                                               ; preds = %56, %55, %46, %12
  %.033 = phi i32 [ 1, %12 ], [ 1, %46 ], [ 1, %55 ], [ 0, %56 ]
  ret i32 %.033
}

; Function Attrs: nounwind
declare i32 @__posix_getopt(i32 noundef, ptr noundef, ptr noundef) local_unnamed_addr #1

; Function Attrs: inlinehint mustprogress nofree nounwind willreturn memory(read) uwtable
declare i32 @atoi(ptr nocapture noundef nonnull) local_unnamed_addr #2

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

; Function Attrs: nofree nounwind
declare noalias noundef ptr @fopen(ptr nocapture noundef readonly, ptr nocapture noundef readonly) local_unnamed_addr #3

; Function Attrs: nofree nounwind
declare void @perror(ptr nocapture noundef readonly) local_unnamed_addr #3

declare ptr @fsm_load(ptr noundef) local_unnamed_addr #4

; Function Attrs: nofree nounwind
declare noundef i32 @fclose(ptr nocapture noundef) local_unnamed_addr #3

; Function Attrs: nounwind uwtable
declare hidden void @usage(ptr noundef) local_unnamed_addr #0

declare ptr @catalogue_load(ptr noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #4

; Function Attrs: nofree nounwind
declare noundef i32 @setvbuf(ptr nocapture noundef, ptr noundef, i32 noundef, i64 noundef) local_unnamed_addr #3

; Function Attrs: nounwind uwtable
declare hidden void @lookup_multiple(ptr noundef, ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #0

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 = { 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 = { inlinehint mustprogress nofree nounwind willreturn memory(read) 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 = { 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 #4 = { "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 willreturn memory(read) }
attributes #7 = { cold nounwind }
attributes #8 = { cold }

!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 = distinct !{!5, !6}
!6 = !{!"llvm.loop.mustprogress"}
!7 = !{!8, !8, i64 0}
!8 = !{!"any pointer", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !9, i64 0}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,LCSSAPass,LoopUnrollPass,SROAPass,SimplifyCFGPass,TailCallElimPass