; LLVM IR from NCAR/FastEddy-model :: SRC/PARAMETERS (parameters)

; 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._pair_value_t = type { ptr, %union._value_t, i32, i32 }
%union._value_t = type { double }

@numErrors = external hidden global i32, align 4
@.str.1 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [43 x i8], align 1
@stdout = external global ptr, align 8
@.str.3 = external hidden unnamed_addr constant [43 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [79 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [70 x i8], align 1
@parameters_table = external hidden global ptr, align 8
@.str.6 = external hidden unnamed_addr constant [50 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [55 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [76 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [84 x i8], align 1

; Function Attrs: nounwind allocsize(0)
declare noalias ptr @malloc(i64 noundef) #0

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

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

; Function Attrs: nounwind uwtable
define dso_local i32 @parameters_readFile(ptr noundef %0) #3 {
  %2 = alloca i32, align 4
  %3 = alloca ptr, align 8
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca ptr, align 8
  %7 = alloca [256 x i8], align 16
  %8 = alloca i32, align 4
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca i32, align 4
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  store ptr %0, ptr %3, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #7
  store i32 0, ptr %4, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #7
  call void @llvm.lifetime.start.p0(i64 256, ptr %7) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #7
  %14 = load ptr, ptr %3, align 8, !tbaa !5
  %15 = call noalias ptr @fopen(ptr noundef %14, ptr noundef @.str.1)
  store ptr %15, ptr %6, align 8, !tbaa !5
  %16 = icmp eq ptr %15, null
  br i1 %16, label %17, label %24

17:                                               ; preds = %1
  %18 = load ptr, ptr %3, align 8, !tbaa !5
  %19 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, ptr noundef %18)
  %20 = load ptr, ptr @stdout, align 8, !tbaa !5
  %21 = call i32 @fflush(ptr noundef %20)
  %22 = load i32, ptr @numErrors, align 4, !tbaa !9
  %23 = add nsw i32 %22, 1
  store i32 %23, ptr @numErrors, align 4, !tbaa !9
  store i32 201, ptr %2, align 4
  store i32 1, ptr %11, align 4
  br label %151

24:                                               ; preds = %1
  store i32 0, ptr %5, align 4, !tbaa !9
  br label %25

25:                                               ; preds = %30, %24
  %26 = getelementptr inbounds [256 x i8], ptr %7, i64 0, i64 0
  %27 = load ptr, ptr %6, align 8, !tbaa !5
  %28 = call ptr @fgets(ptr noundef %26, i32 noundef 256, ptr noundef %27)
  %29 = icmp ne ptr %28, null
  br i1 %29, label %30, label %33

30:                                               ; preds = %25
  %31 = load i32, ptr %5, align 4, !tbaa !9
  %32 = add nsw i32 %31, 1
  store i32 %32, ptr %5, align 4, !tbaa !9
  br label %25, !llvm.loop !11

33:                                               ; preds = %25
  %34 = load ptr, ptr %3, align 8, !tbaa !5
  %35 = load i32, ptr %5, align 4, !tbaa !9
  %36 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, ptr noundef %34, i32 noundef %35)
  %37 = load ptr, ptr %6, align 8, !tbaa !5
  %38 = call i32 @fseek(ptr noundef %37, i64 noundef 0, i32 noundef 0)
  %39 = load i32, ptr %5, align 4, !tbaa !9
  %40 = load i32, ptr %5, align 4, !tbaa !9
  %41 = mul nsw i32 %39, %40
  store i32 %41, ptr %8, align 4, !tbaa !9
  %42 = load i32, ptr %8, align 4, !tbaa !9
  %43 = icmp sgt i32 %42, 10000
  br i1 %43, label %44, label %47

44:                                               ; preds = %33
  %45 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
  %46 = call i32 (ptr, ...) @printf(ptr noundef @.str.5)
  br label %47

47:                                               ; preds = %44, %33
  %48 = load i32, ptr %8, align 4, !tbaa !9
  %49 = call ptr @create_hash_table(i32 noundef %48)
  store ptr %49, ptr @parameters_table, align 8, !tbaa !5
  br label %50

50:                                               ; preds = %146, %47
  %51 = getelementptr inbounds [256 x i8], ptr %7, i64 0, i64 0
  %52 = load ptr, ptr %6, align 8, !tbaa !5
  %53 = call ptr @fgets(ptr noundef %51, i32 noundef 256, ptr noundef %52)
  %54 = icmp ne ptr %53, null
  br i1 %54, label %55, label %147

55:                                               ; preds = %50
  %56 = getelementptr inbounds [256 x i8], ptr %7, i64 0, i64 0
  %57 = call ptr @strchr(ptr noundef %56, i32 noundef 35) #8
  store ptr %57, ptr %10, align 8, !tbaa !5
  %58 = load ptr, ptr %10, align 8, !tbaa !5
  %59 = icmp ne ptr %58, null
  br i1 %59, label %60, label %62

60:                                               ; preds = %55
  %61 = load ptr, ptr %10, align 8, !tbaa !5
  store i8 0, ptr %61, align 1, !tbaa !13
  br label %62

62:                                               ; preds = %60, %55
  %63 = getelementptr inbounds [256 x i8], ptr %7, i64 0, i64 0
  %64 = call i64 @strlen(ptr noundef %63) #8
  %65 = icmp ugt i64 %64, 0
  br i1 %65, label %66, label %146

66:                                               ; preds = %62
  %67 = getelementptr inbounds [256 x i8], ptr %7, i64 0, i64 0
  %68 = call ptr @strchr(ptr noundef %67, i32 noundef 61) #8
  store ptr %68, ptr %10, align 8, !tbaa !5
  %69 = load ptr, ptr %10, align 8, !tbaa !5
  %70 = icmp ne ptr %69, null
  br i1 %70, label %71, label %74

71:                                               ; preds = %66
  %72 = load ptr, ptr %10, align 8, !tbaa !5
  %73 = getelementptr inbounds i8, ptr %72, i32 1
  store ptr %73, ptr %10, align 8, !tbaa !5
  store i8 0, ptr %72, align 1, !tbaa !13
  br label %74

74:                                               ; preds = %71, %66
  %75 = getelementptr inbounds [256 x i8], ptr %7, i64 0, i64 0
  %76 = call ptr @str_trim(ptr noundef %75)
  store ptr %76, ptr %9, align 8, !tbaa !5
  %77 = load ptr, ptr %10, align 8, !tbaa !5
  %78 = call ptr @str_trim(ptr noundef %77)
  store ptr %78, ptr %10, align 8, !tbaa !5
  %79 = load ptr, ptr @parameters_table, align 8, !tbaa !5
  %80 = load ptr, ptr %9, align 8, !tbaa !5
  %81 = call ptr @lookup_pair(ptr noundef %79, ptr noundef %80)
  %82 = icmp ne ptr %81, null
  br i1 %82, label %83, label %88

83:                                               ; preds = %74
  store i32 207, ptr %4, align 4, !tbaa !9
  %84 = load i32, ptr @numErrors, align 4, !tbaa !9
  %85 = add nsw i32 %84, 1
  store i32 %85, ptr @numErrors, align 4, !tbaa !9
  %86 = load ptr, ptr %9, align 8, !tbaa !5
  %87 = call i32 (ptr, ...) @printf(ptr noundef @.str.6, ptr noundef %86)
  br label %145

88:                                               ; preds = %74
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #7
  %89 = load ptr, ptr %9, align 8, !tbaa !5
  %90 = call i64 @strlen(ptr noundef %89) #8
  %91 = add i64 %90, 1
  %92 = mul i64 %91, 1
  %93 = call noalias ptr @malloc(i64 noundef %92) #9
  store ptr %93, ptr %12, align 8, !tbaa !5
  %94 = load ptr, ptr %12, align 8, !tbaa !5
  %95 = icmp eq ptr %94, null
  br i1 %95, label %96, label %99

96:                                               ; preds = %88
  %97 = load ptr, ptr %9, align 8, !tbaa !5
  %98 = call i32 (ptr, ...) @printf(ptr noundef @.str.7, ptr noundef %97)
  call void @exit(i32 noundef 200) #10
  unreachable

99:                                               ; preds = %88
  %100 = load ptr, ptr %12, align 8, !tbaa !5
  %101 = load ptr, ptr %9, align 8, !tbaa !5
  %102 = call ptr @strcpy(ptr noundef %100, ptr noundef %101) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #7
  %103 = call noalias ptr @malloc(i64 noundef 24) #9
  store ptr %103, ptr %13, align 8, !tbaa !5
  %104 = load ptr, ptr %13, align 8, !tbaa !5
  %105 = icmp eq ptr %104, null
  br i1 %105, label %106, label %109

106:                                              ; preds = %99
  %107 = load ptr, ptr %9, align 8, !tbaa !5
  %108 = call i32 (ptr, ...) @printf(ptr noundef @.str.8, ptr noundef %107)
  call void @exit(i32 noundef 200) #10
  unreachable

109:                                              ; preds = %99
  %110 = load ptr, ptr %10, align 8, !tbaa !5
  %111 = call i64 @strlen(ptr noundef %110) #8
  %112 = icmp ugt i64 %111, 0
  br i1 %112, label %113, label %133

113:                                              ; preds = %109
  %114 = load ptr, ptr %10, align 8, !tbaa !5
  %115 = call i64 @strlen(ptr noundef %114) #8
  %116 = add i64 %115, 1
  %117 = call noalias ptr @malloc(i64 noundef %116) #9
  %118 = load ptr, ptr %13, align 8, !tbaa !5
  %119 = getelementptr inbounds %struct._pair_value_t, ptr %118, i32 0, i32 0
  store ptr %117, ptr %119, align 8, !tbaa !14
  %120 = load ptr, ptr %13, align 8, !tbaa !5
  %121 = getelementptr inbounds %struct._pair_value_t, ptr %120, i32 0, i32 0
  %122 = load ptr, ptr %121, align 8, !tbaa !14
  %123 = icmp eq ptr %122, null
  br i1 %123, label %124, label %127

124:                                              ; preds = %113
  %125 = load ptr, ptr %9, align 8, !tbaa !5
  %126 = call i32 (ptr, ...) @printf(ptr noundef @.str.9, ptr noundef %125)
  call void @exit(i32 noundef 200) #10
  unreachable

127:                                              ; preds = %113
  %128 = load ptr, ptr %13, align 8, !tbaa !5
  %129 = getelementptr inbounds %struct._pair_value_t, ptr %128, i32 0, i32 0
  %130 = load ptr, ptr %129, align 8, !tbaa !14
  %131 = load ptr, ptr %10, align 8, !tbaa !5
  %132 = call ptr @strcpy(ptr noundef %130, ptr noundef %131) #7
  br label %136

133:                                              ; preds = %109
  %134 = load ptr, ptr %13, align 8, !tbaa !5
  %135 = getelementptr inbounds %struct._pair_value_t, ptr %134, i32 0, i32 0
  store ptr null, ptr %135, align 8, !tbaa !14
  br label %136

136:                                              ; preds = %133, %127
  %137 = load ptr, ptr %13, align 8, !tbaa !5
  %138 = getelementptr inbounds %struct._pair_value_t, ptr %137, i32 0, i32 2
  store i32 0, ptr %138, align 8, !tbaa !16
  %139 = load ptr, ptr %13, align 8, !tbaa !5
  %140 = getelementptr inbounds %struct._pair_value_t, ptr %139, i32 0, i32 3
  store i32 0, ptr %140, align 4, !tbaa !17
  %141 = load ptr, ptr @parameters_table, align 8, !tbaa !5
  %142 = load ptr, ptr %12, align 8, !tbaa !5
  %143 = load ptr, ptr %13, align 8, !tbaa !5
  %144 = call i32 @add_pair(ptr noundef %141, ptr noundef %142, ptr noundef %143)
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #7
  br label %145

145:                                              ; preds = %136, %83
  br label %146

146:                                              ; preds = %145, %62
  br label %50, !llvm.loop !18

147:                                              ; preds = %50
  %148 = load ptr, ptr %6, align 8, !tbaa !5
  %149 = call i32 @fclose(ptr noundef %148)
  %150 = load i32, ptr %4, align 4, !tbaa !9
  store i32 %150, ptr %2, align 4
  store i32 1, ptr %11, align 4
  br label %151

151:                                              ; preds = %147, %17
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #7
  call void @llvm.lifetime.end.p0(i64 256, ptr %7) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #7
  %152 = load i32, ptr %2, align 4
  ret i32 %152
}

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

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

declare i32 @fflush(ptr noundef) #1

declare ptr @fgets(ptr noundef, i32 noundef, ptr noundef) #1

declare i32 @fseek(ptr noundef, i64 noundef, i32 noundef) #1

declare ptr @create_hash_table(i32 noundef) #1

; Function Attrs: nounwind willreturn memory(read)
declare ptr @strchr(ptr noundef, i32 noundef) #5

; Function Attrs: nounwind willreturn memory(read)
declare i64 @strlen(ptr noundef) #5

declare ptr @str_trim(ptr noundef) #1

declare ptr @lookup_pair(ptr noundef, ptr noundef) #1

; Function Attrs: nounwind
declare ptr @strcpy(ptr noundef, ptr noundef) #6

declare i32 @add_pair(ptr noundef, ptr noundef, ptr noundef) #1

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

declare i32 @fclose(ptr noundef) #1

attributes #0 = { nounwind allocsize(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 = { "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 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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #5 = { nounwind willreturn memory(read) "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 #6 = { 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 #7 = { nounwind }
attributes #8 = { nounwind willreturn memory(read) }
attributes #9 = { nounwind allocsize(0) }
attributes #10 = { 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 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = !{!7, !7, i64 0}
!14 = !{!15, !6, i64 0}
!15 = !{!"_pair_value_t", !6, i64 0, !7, i64 8, !10, i64 16, !10, i64 20}
!16 = !{!15, !10, i64 16}
!17 = !{!15, !10, i64 20}
!18 = distinct !{!18, !12}


; 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"

@numErrors = external hidden local_unnamed_addr global i32, align 4
@.str.1 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [43 x i8], align 1
@stdout = external local_unnamed_addr global ptr, align 8
@.str.3 = external hidden unnamed_addr constant [43 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [79 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [70 x i8], align 1
@parameters_table = external hidden local_unnamed_addr global ptr, align 8
@.str.6 = external hidden unnamed_addr constant [50 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [55 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [76 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [84 x i8], align 1

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

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

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

; Function Attrs: nounwind uwtable
define dso_local range(i32 0, 208) i32 @parameters_readFile(ptr noundef %0) local_unnamed_addr #3 {
  %2 = alloca [256 x i8], align 16
  call void @llvm.lifetime.start.p0(i64 256, ptr nonnull %2) #8
  %3 = tail call noalias ptr @fopen(ptr noundef %0, ptr noundef nonnull @.str.1)
  %4 = icmp eq ptr %3, null
  br i1 %4, label %5, label %.preheader

5:                                                ; preds = %1
  %6 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2, ptr noundef %0)
  %7 = load ptr, ptr @stdout, align 8, !tbaa !5
  %8 = tail call i32 @fflush(ptr noundef %7)
  %9 = load i32, ptr @numErrors, align 4, !tbaa !9
  %10 = add nsw i32 %9, 1
  store i32 %10, ptr @numErrors, align 4, !tbaa !9
  br label %72

.preheader:                                       ; preds = %1, %.preheader
  %.042 = phi i32 [ %12, %.preheader ], [ 0, %1 ]
  %11 = call ptr @fgets(ptr noundef nonnull %2, i32 noundef 256, ptr noundef nonnull %3)
  %.not = icmp eq ptr %11, null
  %12 = add nuw nsw i32 %.042, 1
  br i1 %.not, label %13, label %.preheader, !llvm.loop !11

13:                                               ; preds = %.preheader
  %14 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.3, ptr noundef %0, i32 noundef %.042)
  %15 = call i32 @fseek(ptr noundef nonnull %3, i64 noundef 0, i32 noundef 0)
  %16 = mul nuw nsw i32 %.042, %.042
  %17 = icmp ugt i32 %16, 10000
  br i1 %17, label %18, label %21

18:                                               ; preds = %13
  %19 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.4)
  %20 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.5)
  br label %21

21:                                               ; preds = %18, %13
  %22 = call ptr @create_hash_table(i32 noundef %16) #8
  store ptr %22, ptr @parameters_table, align 8, !tbaa !5
  %23 = call ptr @fgets(ptr noundef nonnull %2, i32 noundef 256, ptr noundef nonnull %3)
  %.not5162 = icmp eq ptr %23, null
  br i1 %.not5162, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %21, %69
  %.04063 = phi i32 [ %.1, %69 ], [ 0, %21 ]
  %24 = call ptr @strchr(ptr noundef nonnull dereferenceable(1) %2, i32 noundef 35) #9
  %.not52 = icmp eq ptr %24, null
  br i1 %.not52, label %26, label %25

25:                                               ; preds = %.lr.ph
  store i8 0, ptr %24, align 1, !tbaa !13
  br label %26

26:                                               ; preds = %25, %.lr.ph
  %char0 = load i8, ptr %2, align 16
  %.not53 = icmp eq i8 %char0, 0
  br i1 %.not53, label %69, label %27

27:                                               ; preds = %26
  %28 = call ptr @strchr(ptr noundef nonnull dereferenceable(1) %2, i32 noundef 61) #9
  %.not54 = icmp eq ptr %28, null
  br i1 %.not54, label %31, label %29

29:                                               ; preds = %27
  %30 = getelementptr inbounds i8, ptr %28, i64 1
  store i8 0, ptr %28, align 1, !tbaa !13
  br label %31

31:                                               ; preds = %29, %27
  %.041 = phi ptr [ %30, %29 ], [ null, %27 ]
  %32 = call ptr @str_trim(ptr noundef nonnull %2) #8
  %33 = call ptr @str_trim(ptr noundef %.041) #8
  %34 = load ptr, ptr @parameters_table, align 8, !tbaa !5
  %35 = call ptr @lookup_pair(ptr noundef %34, ptr noundef %32) #8
  %.not55 = icmp eq ptr %35, null
  br i1 %.not55, label %40, label %36

36:                                               ; preds = %31
  %37 = load i32, ptr @numErrors, align 4, !tbaa !9
  %38 = add nsw i32 %37, 1
  store i32 %38, ptr @numErrors, align 4, !tbaa !9
  %39 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.6, ptr noundef %32)
  br label %69

40:                                               ; preds = %31
  %41 = call i64 @strlen(ptr noundef nonnull dereferenceable(1) %32) #9
  %42 = add i64 %41, 1
  %43 = call noalias ptr @malloc(i64 noundef %42) #10
  %44 = icmp eq ptr %43, null
  br i1 %44, label %45, label %47

45:                                               ; preds = %40
  %46 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.7, ptr noundef %32)
  call void @exit(i32 noundef 200) #11
  unreachable

47:                                               ; preds = %40
  %48 = call ptr @strcpy(ptr noundef nonnull dereferenceable(1) %43, ptr noundef nonnull dereferenceable(1) %32) #8
  %49 = call noalias dereferenceable_or_null(24) ptr @malloc(i64 noundef 24) #10
  %50 = icmp eq ptr %49, null
  br i1 %50, label %51, label %53

51:                                               ; preds = %47
  %52 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.8, ptr noundef %32)
  call void @exit(i32 noundef 200) #11
  unreachable

53:                                               ; preds = %47
  %54 = call i64 @strlen(ptr noundef nonnull dereferenceable(1) %33) #9
  %.not56 = icmp eq i64 %54, 0
  br i1 %.not56, label %63, label %55

55:                                               ; preds = %53
  %56 = add i64 %54, 1
  %57 = call noalias ptr @malloc(i64 noundef %56) #10
  store ptr %57, ptr %49, align 8, !tbaa !14
  %58 = icmp eq ptr %57, null
  br i1 %58, label %59, label %61

59:                                               ; preds = %55
  %60 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.9, ptr noundef %32)
  call void @exit(i32 noundef 200) #11
  unreachable

61:                                               ; preds = %55
  %62 = call ptr @strcpy(ptr noundef nonnull dereferenceable(1) %57, ptr noundef nonnull dereferenceable(1) %33) #8
  br label %64

63:                                               ; preds = %53
  store ptr null, ptr %49, align 8, !tbaa !14
  br label %64

64:                                               ; preds = %63, %61
  %65 = getelementptr inbounds i8, ptr %49, i64 16
  store i32 0, ptr %65, align 8, !tbaa !16
  %66 = getelementptr inbounds i8, ptr %49, i64 20
  store i32 0, ptr %66, align 4, !tbaa !17
  %67 = load ptr, ptr @parameters_table, align 8, !tbaa !5
  %68 = call i32 @add_pair(ptr noundef %67, ptr noundef nonnull %43, ptr noundef nonnull %49) #8
  br label %69

69:                                               ; preds = %36, %64, %26
  %.1 = phi i32 [ 207, %36 ], [ %.04063, %64 ], [ %.04063, %26 ]
  %70 = call ptr @fgets(ptr noundef nonnull %2, i32 noundef 256, ptr noundef nonnull %3)
  %.not51 = icmp eq ptr %70, null
  br i1 %.not51, label %._crit_edge, label %.lr.ph, !llvm.loop !18

._crit_edge:                                      ; preds = %69, %21
  %.040.lcssa = phi i32 [ 0, %21 ], [ %.1, %69 ]
  %71 = call i32 @fclose(ptr noundef nonnull %3)
  br label %72

72:                                               ; preds = %._crit_edge, %5
  %.0 = phi i32 [ 201, %5 ], [ %.040.lcssa, %._crit_edge ]
  call void @llvm.lifetime.end.p0(i64 256, ptr nonnull %2) #8
  ret i32 %.0
}

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

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

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

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

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

declare ptr @create_hash_table(i32 noundef) local_unnamed_addr #5

; Function Attrs: mustprogress nofree nounwind willreturn memory(argmem: read)
declare ptr @strchr(ptr noundef, i32 noundef) local_unnamed_addr #6

; Function Attrs: mustprogress nofree nounwind willreturn memory(argmem: read)
declare i64 @strlen(ptr nocapture noundef) local_unnamed_addr #6

declare ptr @str_trim(ptr noundef) local_unnamed_addr #5

declare ptr @lookup_pair(ptr noundef, ptr noundef) local_unnamed_addr #5

; Function Attrs: mustprogress nofree nounwind willreturn memory(argmem: readwrite)
declare ptr @strcpy(ptr noalias noundef returned writeonly, ptr noalias nocapture noundef readonly) local_unnamed_addr #7

declare i32 @add_pair(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #5

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

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

attributes #0 = { mustprogress nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) 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 #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 = { 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 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 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #5 = { "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 #6 = { mustprogress nofree nounwind willreturn memory(argmem: read) "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 #7 = { mustprogress nofree nounwind willreturn memory(argmem: readwrite) "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 #8 = { nounwind }
attributes #9 = { nounwind willreturn memory(read) }
attributes #10 = { nounwind allocsize(0) }
attributes #11 = { 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 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = !{!7, !7, i64 0}
!14 = !{!15, !6, i64 0}
!15 = !{!"_pair_value_t", !6, i64 0, !7, i64 8, !10, i64 16, !10, i64 20}
!16 = !{!15, !10, i64 16}
!17 = !{!15, !10, i64 20}
!18 = distinct !{!18, !12}


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