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

@top = external hidden global ptr, align 8
@parameters_table = external hidden global ptr, align 8
@.str.10 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [6 x i8], align 1
@valueState = external hidden global [6 x ptr], align 16
@.str.17 = external hidden unnamed_addr constant [69 x i8], align 1

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

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

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

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

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

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

12:                                               ; preds = %2
  %13 = load ptr, ptr %6, align 8, !tbaa !5
  %14 = getelementptr inbounds %struct._entry_t_, ptr %13, i32 0, i32 1
  %15 = load ptr, ptr %14, align 8, !tbaa !11
  %16 = icmp ne ptr %15, null
  br i1 %16, label %17, label %166

17:                                               ; preds = %12
  %18 = load ptr, ptr %6, align 8, !tbaa !5
  %19 = getelementptr inbounds %struct._entry_t_, ptr %18, i32 0, i32 1
  %20 = load ptr, ptr %19, align 8, !tbaa !11
  %21 = getelementptr inbounds %struct._pair_value_t, ptr %20, i32 0, i32 3
  %22 = load i32, ptr %21, align 4, !tbaa !13
  %23 = icmp ne i32 %22, 0
  br i1 %23, label %24, label %166

24:                                               ; preds = %17
  %25 = load ptr, ptr @top, align 8, !tbaa !5
  %26 = load i32, ptr %5, align 4, !tbaa !9
  %27 = zext i32 %26 to i64
  %28 = getelementptr inbounds i8, ptr %25, i64 %27
  %29 = load ptr, ptr %3, align 8, !tbaa !5
  %30 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef %28, ptr noundef @.str.10, ptr noundef %29) #5
  %31 = load ptr, ptr @top, align 8, !tbaa !5
  %32 = call i64 @strlen(ptr noundef %31) #6
  %33 = trunc i64 %32 to i32
  store i32 %33, ptr %5, align 4, !tbaa !9
  %34 = load ptr, ptr %6, align 8, !tbaa !5
  %35 = getelementptr inbounds %struct._entry_t_, ptr %34, i32 0, i32 1
  %36 = load ptr, ptr %35, align 8, !tbaa !11
  %37 = getelementptr inbounds %struct._pair_value_t, ptr %36, i32 0, i32 2
  %38 = load i32, ptr %37, align 8, !tbaa !15
  %39 = icmp eq i32 %38, 2
  br i1 %39, label %40, label %55

40:                                               ; preds = %24
  %41 = load ptr, ptr @top, align 8, !tbaa !5
  %42 = load i32, ptr %5, align 4, !tbaa !9
  %43 = zext i32 %42 to i64
  %44 = getelementptr inbounds i8, ptr %41, i64 %43
  %45 = load ptr, ptr %6, align 8, !tbaa !5
  %46 = getelementptr inbounds %struct._entry_t_, ptr %45, i32 0, i32 1
  %47 = load ptr, ptr %46, align 8, !tbaa !11
  %48 = getelementptr inbounds %struct._pair_value_t, ptr %47, i32 0, i32 1
  %49 = load float, ptr %48, align 8, !tbaa !16
  %50 = fpext float %49 to double
  %51 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef %44, ptr noundef @.str.11, double noundef %50) #5
  %52 = load ptr, ptr @top, align 8, !tbaa !5
  %53 = call i64 @strlen(ptr noundef %52) #6
  %54 = trunc i64 %53 to i32
  store i32 %54, ptr %5, align 4, !tbaa !9
  br label %121

55:                                               ; preds = %24
  %56 = load ptr, ptr %6, align 8, !tbaa !5
  %57 = getelementptr inbounds %struct._entry_t_, ptr %56, i32 0, i32 1
  %58 = load ptr, ptr %57, align 8, !tbaa !11
  %59 = getelementptr inbounds %struct._pair_value_t, ptr %58, i32 0, i32 2
  %60 = load i32, ptr %59, align 8, !tbaa !15
  %61 = icmp eq i32 %60, 3
  br i1 %61, label %62, label %76

62:                                               ; preds = %55
  %63 = load ptr, ptr @top, align 8, !tbaa !5
  %64 = load i32, ptr %5, align 4, !tbaa !9
  %65 = zext i32 %64 to i64
  %66 = getelementptr inbounds i8, ptr %63, i64 %65
  %67 = load ptr, ptr %6, align 8, !tbaa !5
  %68 = getelementptr inbounds %struct._entry_t_, ptr %67, i32 0, i32 1
  %69 = load ptr, ptr %68, align 8, !tbaa !11
  %70 = getelementptr inbounds %struct._pair_value_t, ptr %69, i32 0, i32 1
  %71 = load double, ptr %70, align 8, !tbaa !16
  %72 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef %66, ptr noundef @.str.11, double noundef %71) #5
  %73 = load ptr, ptr @top, align 8, !tbaa !5
  %74 = call i64 @strlen(ptr noundef %73) #6
  %75 = trunc i64 %74 to i32
  store i32 %75, ptr %5, align 4, !tbaa !9
  br label %120

76:                                               ; preds = %55
  %77 = load ptr, ptr %6, align 8, !tbaa !5
  %78 = getelementptr inbounds %struct._entry_t_, ptr %77, i32 0, i32 1
  %79 = load ptr, ptr %78, align 8, !tbaa !11
  %80 = getelementptr inbounds %struct._pair_value_t, ptr %79, i32 0, i32 2
  %81 = load i32, ptr %80, align 8, !tbaa !15
  %82 = icmp eq i32 %81, 1
  br i1 %82, label %83, label %97

83:                                               ; preds = %76
  %84 = load ptr, ptr @top, align 8, !tbaa !5
  %85 = load i32, ptr %5, align 4, !tbaa !9
  %86 = zext i32 %85 to i64
  %87 = getelementptr inbounds i8, ptr %84, i64 %86
  %88 = load ptr, ptr %6, align 8, !tbaa !5
  %89 = getelementptr inbounds %struct._entry_t_, ptr %88, i32 0, i32 1
  %90 = load ptr, ptr %89, align 8, !tbaa !11
  %91 = getelementptr inbounds %struct._pair_value_t, ptr %90, i32 0, i32 1
  %92 = load i32, ptr %91, align 8, !tbaa !16
  %93 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef %87, ptr noundef @.str.12, i32 noundef %92) #5
  %94 = load ptr, ptr @top, align 8, !tbaa !5
  %95 = call i64 @strlen(ptr noundef %94) #6
  %96 = trunc i64 %95 to i32
  store i32 %96, ptr %5, align 4, !tbaa !9
  br label %119

97:                                               ; preds = %76
  %98 = load ptr, ptr %6, align 8, !tbaa !5
  %99 = getelementptr inbounds %struct._entry_t_, ptr %98, i32 0, i32 1
  %100 = load ptr, ptr %99, align 8, !tbaa !11
  %101 = getelementptr inbounds %struct._pair_value_t, ptr %100, i32 0, i32 1
  %102 = load ptr, ptr %101, align 8, !tbaa !16
  %103 = icmp ne ptr %102, null
  br i1 %103, label %104, label %118

104:                                              ; preds = %97
  %105 = load ptr, ptr @top, align 8, !tbaa !5
  %106 = load i32, ptr %5, align 4, !tbaa !9
  %107 = zext i32 %106 to i64
  %108 = getelementptr inbounds i8, ptr %105, i64 %107
  %109 = load ptr, ptr %6, align 8, !tbaa !5
  %110 = getelementptr inbounds %struct._entry_t_, ptr %109, i32 0, i32 1
  %111 = load ptr, ptr %110, align 8, !tbaa !11
  %112 = getelementptr inbounds %struct._pair_value_t, ptr %111, i32 0, i32 1
  %113 = load ptr, ptr %112, align 8, !tbaa !16
  %114 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef %108, ptr noundef @.str.13, ptr noundef %113) #5
  %115 = load ptr, ptr @top, align 8, !tbaa !5
  %116 = call i64 @strlen(ptr noundef %115) #6
  %117 = trunc i64 %116 to i32
  store i32 %117, ptr %5, align 4, !tbaa !9
  br label %118

118:                                              ; preds = %104, %97
  br label %119

119:                                              ; preds = %118, %83
  br label %120

120:                                              ; preds = %119, %62
  br label %121

121:                                              ; preds = %120, %40
  %122 = load i32, ptr %5, align 4, !tbaa !9
  %123 = load ptr, ptr @top, align 8, !tbaa !5
  %124 = zext i32 %122 to i64
  %125 = getelementptr inbounds i8, ptr %123, i64 %124
  store ptr %125, ptr @top, align 8, !tbaa !5
  br label %126

126:                                              ; preds = %129, %121
  %127 = load i32, ptr %5, align 4, !tbaa !9
  %128 = icmp ult i32 %127, 18
  br i1 %128, label %129, label %136

129:                                              ; preds = %126
  %130 = load ptr, ptr @top, align 8, !tbaa !5
  %131 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef %130, ptr noundef @.str.14) #5
  %132 = load i32, ptr %5, align 4, !tbaa !9
  %133 = add i32 %132, 1
  store i32 %133, ptr %5, align 4, !tbaa !9
  %134 = load ptr, ptr @top, align 8, !tbaa !5
  %135 = getelementptr inbounds i8, ptr %134, i32 1
  store ptr %135, ptr @top, align 8, !tbaa !5
  br label %126, !llvm.loop !17

136:                                              ; preds = %126
  %137 = load ptr, ptr @top, align 8, !tbaa !5
  %138 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef %137, ptr noundef @.str.15) #5
  %139 = load ptr, ptr @top, align 8, !tbaa !5
  %140 = call i64 @strlen(ptr noundef %139) #6
  %141 = load ptr, ptr @top, align 8, !tbaa !5
  %142 = getelementptr inbounds i8, ptr %141, i64 %140
  store ptr %142, ptr @top, align 8, !tbaa !5
  %143 = load ptr, ptr %6, align 8, !tbaa !5
  %144 = getelementptr inbounds %struct._entry_t_, ptr %143, i32 0, i32 1
  %145 = load ptr, ptr %144, align 8, !tbaa !11
  %146 = getelementptr inbounds %struct._pair_value_t, ptr %145, i32 0, i32 3
  %147 = load i32, ptr %146, align 4, !tbaa !13
  %148 = icmp ne i32 %147, 1
  br i1 %148, label %149, label %164

149:                                              ; preds = %136
  %150 = load ptr, ptr @top, align 8, !tbaa !5
  %151 = load ptr, ptr %6, align 8, !tbaa !5
  %152 = getelementptr inbounds %struct._entry_t_, ptr %151, i32 0, i32 1
  %153 = load ptr, ptr %152, align 8, !tbaa !11
  %154 = getelementptr inbounds %struct._pair_value_t, ptr %153, i32 0, i32 3
  %155 = load i32, ptr %154, align 4, !tbaa !13
  %156 = sext i32 %155 to i64
  %157 = getelementptr inbounds [6 x ptr], ptr @valueState, i64 0, i64 %156
  %158 = load ptr, ptr %157, align 8, !tbaa !5
  %159 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef %150, ptr noundef @.str.16, ptr noundef %158) #5
  %160 = load ptr, ptr @top, align 8, !tbaa !5
  %161 = call i64 @strlen(ptr noundef %160) #6
  %162 = load ptr, ptr @top, align 8, !tbaa !5
  %163 = getelementptr inbounds i8, ptr %162, i64 %161
  store ptr %163, ptr @top, align 8, !tbaa !5
  br label %164

164:                                              ; preds = %149, %136
  %165 = load ptr, ptr %4, align 8, !tbaa !5
  call void @printComment(ptr noundef %165)
  br label %166

166:                                              ; preds = %164, %17, %12
  br label %170

167:                                              ; preds = %2
  %168 = load ptr, ptr %3, align 8, !tbaa !5
  %169 = call i32 (ptr, ...) @printf(ptr noundef @.str.17, ptr noundef %168)
  br label %170

170:                                              ; preds = %167, %166
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #5
  ret void
}

; Function Attrs: nounwind
declare i32 @sprintf(ptr noundef, ptr noundef, ...) #4

; Function Attrs: nounwind uwtable
declare dso_local void @printComment(ptr noundef) #3

attributes #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 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 #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 = { 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 #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 = !{!"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 = !{!12, !6, i64 8}
!12 = !{!"_entry_t_", !6, i64 0, !6, i64 8, !6, i64 16}
!13 = !{!14, !10, i64 20}
!14 = !{!"_pair_value_t", !6, i64 0, !7, i64 8, !10, i64 16, !10, i64 20}
!15 = !{!14, !10, i64 16}
!16 = !{!7, !7, i64 0}
!17 = distinct !{!17, !18}
!18 = !{!"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"

@top = external hidden local_unnamed_addr global ptr, align 8
@parameters_table = external hidden local_unnamed_addr global ptr, align 8
@.str.10 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [6 x i8], align 1
@valueState = external hidden local_unnamed_addr global [6 x ptr], align 16
@.str.17 = external hidden unnamed_addr constant [69 x i8], align 1

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

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

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

; Function Attrs: nounwind uwtable
define dso_local void @printParameter(ptr noundef %0, ptr noundef %1) local_unnamed_addr #3 {
  %3 = load ptr, ptr @parameters_table, align 8, !tbaa !5
  %4 = tail call ptr @lookup_pair(ptr noundef %3, ptr noundef %0) #4
  %.not = icmp eq ptr %4, null
  br i1 %.not, label %72, label %5

5:                                                ; preds = %2
  %6 = getelementptr inbounds i8, ptr %4, i64 8
  %7 = load ptr, ptr %6, align 8, !tbaa !9
  %.not29 = icmp eq ptr %7, null
  br i1 %.not29, label %74, label %8

8:                                                ; preds = %5
  %9 = getelementptr inbounds i8, ptr %7, i64 20
  %10 = load i32, ptr %9, align 4, !tbaa !11
  %.not30 = icmp eq i32 %10, 0
  br i1 %.not30, label %74, label %11

11:                                               ; preds = %8
  %12 = load ptr, ptr @top, align 8, !tbaa !5
  %13 = tail call i32 (ptr, ptr, ...) @sprintf(ptr noundef nonnull dereferenceable(1) %12, ptr noundef nonnull dereferenceable(1) @.str.10, ptr noundef %0) #4
  %14 = load ptr, ptr @top, align 8, !tbaa !5
  %15 = tail call i64 @strlen(ptr noundef nonnull dereferenceable(1) %14) #5
  %16 = load ptr, ptr %6, align 8, !tbaa !9
  %17 = getelementptr inbounds i8, ptr %16, i64 16
  %18 = load i32, ptr %17, align 8, !tbaa !14
  switch i32 %18, label %38 [
    i32 2, label %19
    i32 3, label %26
    i32 1, label %32
  ]

19:                                               ; preds = %11
  %20 = and i64 %15, 4294967295
  %21 = getelementptr inbounds i8, ptr %14, i64 %20
  %22 = getelementptr inbounds i8, ptr %16, i64 8
  %23 = load float, ptr %22, align 8, !tbaa !15
  %24 = fpext float %23 to double
  %25 = tail call i32 (ptr, ptr, ...) @sprintf(ptr noundef nonnull dereferenceable(1) %21, ptr noundef nonnull dereferenceable(1) @.str.11, double noundef %24) #4
  br label %.sink.split

26:                                               ; preds = %11
  %27 = and i64 %15, 4294967295
  %28 = getelementptr inbounds i8, ptr %14, i64 %27
  %29 = getelementptr inbounds i8, ptr %16, i64 8
  %30 = load double, ptr %29, align 8, !tbaa !15
  %31 = tail call i32 (ptr, ptr, ...) @sprintf(ptr noundef nonnull dereferenceable(1) %28, ptr noundef nonnull dereferenceable(1) @.str.11, double noundef %30) #4
  br label %.sink.split

32:                                               ; preds = %11
  %33 = and i64 %15, 4294967295
  %34 = getelementptr inbounds i8, ptr %14, i64 %33
  %35 = getelementptr inbounds i8, ptr %16, i64 8
  %36 = load i32, ptr %35, align 8, !tbaa !15
  %37 = tail call i32 (ptr, ptr, ...) @sprintf(ptr noundef nonnull dereferenceable(1) %34, ptr noundef nonnull dereferenceable(1) @.str.12, i32 noundef %36) #4
  br label %.sink.split

38:                                               ; preds = %11
  %39 = getelementptr inbounds i8, ptr %16, i64 8
  %40 = load ptr, ptr %39, align 8, !tbaa !15
  %.not31 = icmp eq ptr %40, null
  br i1 %.not31, label %47, label %41

41:                                               ; preds = %38
  %42 = and i64 %15, 4294967295
  %43 = getelementptr inbounds i8, ptr %14, i64 %42
  %44 = tail call i32 (ptr, ptr, ...) @sprintf(ptr noundef nonnull dereferenceable(1) %43, ptr noundef nonnull dereferenceable(1) @.str.13, ptr noundef nonnull %40) #4
  br label %.sink.split

.sink.split:                                      ; preds = %19, %32, %41, %26
  %45 = load ptr, ptr @top, align 8, !tbaa !5
  %46 = tail call i64 @strlen(ptr noundef nonnull dereferenceable(1) %45) #5
  br label %47

47:                                               ; preds = %.sink.split, %38
  %48 = phi ptr [ %14, %38 ], [ %45, %.sink.split ]
  %.0.in = phi i64 [ %15, %38 ], [ %46, %.sink.split ]
  %.0 = trunc i64 %.0.in to i32
  %49 = and i64 %.0.in, 4294967295
  %50 = getelementptr inbounds i8, ptr %48, i64 %49
  store ptr %50, ptr @top, align 8, !tbaa !5
  %51 = icmp ult i32 %.0, 18
  br i1 %51, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %47, %.lr.ph
  %.134 = phi i32 [ %53, %.lr.ph ], [ %.0, %47 ]
  %storemerge33 = phi ptr [ %55, %.lr.ph ], [ %50, %47 ]
  %52 = tail call i32 (ptr, ptr, ...) @sprintf(ptr noundef nonnull dereferenceable(1) %storemerge33, ptr noundef nonnull dereferenceable(1) @.str.14) #4
  %53 = add i32 %.134, 1
  %54 = load ptr, ptr @top, align 8, !tbaa !5
  %55 = getelementptr inbounds i8, ptr %54, i64 1
  store ptr %55, ptr @top, align 8, !tbaa !5
  %exitcond.not = icmp eq i32 %53, 18
  br i1 %exitcond.not, label %._crit_edge, label %.lr.ph, !llvm.loop !16

._crit_edge:                                      ; preds = %.lr.ph, %47
  %storemerge.lcssa = phi ptr [ %50, %47 ], [ %55, %.lr.ph ]
  %56 = tail call i32 (ptr, ptr, ...) @sprintf(ptr noundef nonnull dereferenceable(1) %storemerge.lcssa, ptr noundef nonnull dereferenceable(1) @.str.15) #4
  %57 = load ptr, ptr @top, align 8, !tbaa !5
  %58 = tail call i64 @strlen(ptr noundef nonnull dereferenceable(1) %57) #5
  %59 = getelementptr inbounds i8, ptr %57, i64 %58
  store ptr %59, ptr @top, align 8, !tbaa !5
  %60 = load ptr, ptr %6, align 8, !tbaa !9
  %61 = getelementptr inbounds i8, ptr %60, i64 20
  %62 = load i32, ptr %61, align 4, !tbaa !11
  %.not32 = icmp eq i32 %62, 1
  br i1 %.not32, label %71, label %63

63:                                               ; preds = %._crit_edge
  %64 = sext i32 %62 to i64
  %65 = getelementptr inbounds [6 x ptr], ptr @valueState, i64 0, i64 %64
  %66 = load ptr, ptr %65, align 8, !tbaa !5
  %67 = tail call i32 (ptr, ptr, ...) @sprintf(ptr noundef nonnull dereferenceable(1) %59, ptr noundef nonnull dereferenceable(1) @.str.16, ptr noundef %66) #4
  %68 = load ptr, ptr @top, align 8, !tbaa !5
  %69 = tail call i64 @strlen(ptr noundef nonnull dereferenceable(1) %68) #5
  %70 = getelementptr inbounds i8, ptr %68, i64 %69
  store ptr %70, ptr @top, align 8, !tbaa !5
  br label %71

71:                                               ; preds = %63, %._crit_edge
  tail call void @printComment(ptr noundef %1)
  br label %74

72:                                               ; preds = %2
  %73 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.17, ptr noundef %0)
  br label %74

74:                                               ; preds = %5, %8, %71, %72
  ret void
}

; Function Attrs: nofree nounwind
declare noundef i32 @sprintf(ptr noalias nocapture noundef writeonly, ptr nocapture noundef readonly, ...) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare dso_local void @printComment(ptr noundef) local_unnamed_addr #3

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 = { 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 #2 = { "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 = { nounwind }
attributes #5 = { 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 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !6, i64 8}
!10 = !{!"_entry_t_", !6, i64 0, !6, i64 8, !6, i64 16}
!11 = !{!12, !13, i64 20}
!12 = !{!"_pair_value_t", !6, i64 0, !7, i64 8, !13, i64 16, !13, i64 20}
!13 = !{!"int", !7, i64 0}
!14 = !{!12, !13, i64 16}
!15 = !{!7, !7, i64 0}
!16 = distinct !{!16, !17}
!17 = !{!"llvm.loop.mustprogress"}


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