; LLVM IR from bkaradzic/bgfx :: 3rdparty/fcpp (cpp6)

; 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.Global = type { i32, i32, ptr, ptr, i32, i32, i32, ptr, i32, i32, i32, i32, [513 x i8], ptr, i8, i8, i8, i8, i8, [32 x i8], ptr, [20 x ptr], ptr, [20 x ptr], [20 x i8], i32, [5 x ptr], [5 x ptr], i8, ptr, [1025 x i8], ptr, [31 x ptr], i32, ptr, [64 x ptr], i32, ptr, ptr, ptr, ptr, ptr, ptr, i8, i8, i8, i8, i8, i8, i8, i8, ptr, i64, i8, i8, i8, i8, i8, i8, ptr, [20 x ptr], i32, i8, i8, i8, ptr }

@type = external dso_local global <{ [127 x i8], [129 x i8] }>, align 16
@.str = external hidden unnamed_addr constant [1 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [5 x i8], align 1

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

; Function Attrs: nounwind uwtable
declare dso_local i32 @fpp_get(ptr noundef) #1

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

; Function Attrs: nounwind uwtable
declare dso_local void @fpp_unget(ptr noundef) #1

; Function Attrs: nounwind uwtable
declare dso_local i32 @fpp_macroid(ptr noundef, ptr noundef) #1

; Function Attrs: nounwind uwtable
define dso_local i32 @fpp_catenate(ptr noundef %0, i32 noundef %1, ptr noundef %2) #1 {
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  store ptr %0, ptr %5, align 8, !tbaa !5
  store i32 %1, ptr %6, align 4, !tbaa !9
  store ptr %2, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #5
  store ptr @.str, ptr %9, align 8, !tbaa !5
  %11 = load ptr, ptr %5, align 8, !tbaa !5
  %12 = call i32 @fpp_get(ptr noundef %11)
  %13 = icmp ne i32 %12, 30
  br i1 %13, label %14, label %16

14:                                               ; preds = %3
  %15 = load ptr, ptr %5, align 8, !tbaa !5
  call void @fpp_unget(ptr noundef %15)
  store i32 0, ptr %4, align 4
  store i32 1, ptr %10, align 4
  br label %144

16:                                               ; preds = %3
  %17 = load i32, ptr %6, align 4, !tbaa !9
  %18 = icmp eq i32 %17, 0
  br i1 %18, label %19, label %25

19:                                               ; preds = %16
  %20 = load ptr, ptr %5, align 8, !tbaa !5
  %21 = load ptr, ptr %5, align 8, !tbaa !5
  %22 = getelementptr inbounds %struct.Global, ptr %21, i32 0, i32 2
  %23 = load ptr, ptr %22, align 8, !tbaa !11
  %24 = call ptr @fpp_savestring(ptr noundef %20, ptr noundef %23)
  store ptr %24, ptr %9, align 8, !tbaa !5
  br label %25

25:                                               ; preds = %19, %16
  %26 = load ptr, ptr %5, align 8, !tbaa !5
  %27 = call i32 @fpp_get(ptr noundef %26)
  store i32 %27, ptr %8, align 4, !tbaa !9
  %28 = load ptr, ptr %5, align 8, !tbaa !5
  %29 = getelementptr inbounds %struct.Global, ptr %28, i32 0, i32 58
  %30 = load i8, ptr %29, align 1, !tbaa !14
  %31 = icmp ne i8 %30, 0
  br i1 %31, label %32, label %41

32:                                               ; preds = %25
  %33 = load ptr, ptr %5, align 8, !tbaa !5
  %34 = call i32 @fpp_macroid(ptr noundef %33, ptr noundef %8)
  %35 = load ptr, ptr %7, align 8, !tbaa !5
  store i32 %34, ptr %35, align 4, !tbaa !9
  %36 = load ptr, ptr %7, align 8, !tbaa !5
  %37 = load i32, ptr %36, align 4, !tbaa !9
  %38 = icmp ne i32 %37, 0
  br i1 %38, label %39, label %40

39:                                               ; preds = %32
  store i32 0, ptr %4, align 4
  store i32 1, ptr %10, align 4
  br label %144

40:                                               ; preds = %32
  br label %41

41:                                               ; preds = %40, %25
  %42 = load i32, ptr %8, align 4, !tbaa !9
  %43 = sext i32 %42 to i64
  %44 = getelementptr inbounds [256 x i8], ptr @type, i64 0, i64 %43
  %45 = load i8, ptr %44, align 1, !tbaa !15
  %46 = sext i8 %45 to i32
  switch i32 %46, label %104 [
    i32 2, label %47
    i32 1, label %71
    i32 66, label %71
  ]

47:                                               ; preds = %41
  %48 = load ptr, ptr %9, align 8, !tbaa !5
  %49 = call i64 @strlen(ptr noundef %48) #6
  %50 = trunc i64 %49 to i32
  %51 = load ptr, ptr %5, align 8, !tbaa !5
  %52 = getelementptr inbounds %struct.Global, ptr %51, i32 0, i32 2
  %53 = load ptr, ptr %52, align 8, !tbaa !11
  %54 = call i64 @strlen(ptr noundef %53) #6
  %55 = trunc i64 %54 to i32
  %56 = add nsw i32 %50, %55
  %57 = icmp sge i32 %56, 512
  br i1 %57, label %58, label %62

58:                                               ; preds = %47
  %59 = load ptr, ptr %5, align 8, !tbaa !5
  %60 = load ptr, ptr %9, align 8, !tbaa !5
  call void (ptr, i32, ...) @fpp_cerror(ptr noundef %59, i32 noundef 63, ptr noundef %60)
  %61 = load ptr, ptr %7, align 8, !tbaa !5
  store i32 7, ptr %61, align 4, !tbaa !9
  store i32 0, ptr %4, align 4
  store i32 1, ptr %10, align 4
  br label %144

62:                                               ; preds = %47
  %63 = load ptr, ptr %5, align 8, !tbaa !5
  %64 = getelementptr inbounds %struct.Global, ptr %63, i32 0, i32 12
  %65 = getelementptr inbounds [513 x i8], ptr %64, i64 0, i64 0
  %66 = load ptr, ptr %9, align 8, !tbaa !5
  %67 = load ptr, ptr %5, align 8, !tbaa !5
  %68 = getelementptr inbounds %struct.Global, ptr %67, i32 0, i32 2
  %69 = load ptr, ptr %68, align 8, !tbaa !11
  %70 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef %65, ptr noundef @.str.1, ptr noundef %66, ptr noundef %69) #5
  br label %127

71:                                               ; preds = %41, %41
  %72 = load ptr, ptr %5, align 8, !tbaa !5
  %73 = getelementptr inbounds %struct.Global, ptr %72, i32 0, i32 12
  %74 = getelementptr inbounds [513 x i8], ptr %73, i64 0, i64 0
  %75 = load ptr, ptr %9, align 8, !tbaa !5
  %76 = call ptr @strcpy(ptr noundef %74, ptr noundef %75) #5
  %77 = load ptr, ptr %5, align 8, !tbaa !5
  %78 = getelementptr inbounds %struct.Global, ptr %77, i32 0, i32 12
  %79 = getelementptr inbounds [513 x i8], ptr %78, i64 0, i64 0
  %80 = load ptr, ptr %5, align 8, !tbaa !5
  %81 = getelementptr inbounds %struct.Global, ptr %80, i32 0, i32 12
  %82 = getelementptr inbounds [513 x i8], ptr %81, i64 0, i64 0
  %83 = call i64 @strlen(ptr noundef %82) #6
  %84 = getelementptr inbounds i8, ptr %79, i64 %83
  %85 = load ptr, ptr %5, align 8, !tbaa !5
  %86 = getelementptr inbounds %struct.Global, ptr %85, i32 0, i32 13
  store ptr %84, ptr %86, align 8, !tbaa !16
  %87 = load ptr, ptr %5, align 8, !tbaa !5
  %88 = load i32, ptr %8, align 4, !tbaa !9
  %89 = call i32 @fpp_scannumber(ptr noundef %87, i32 noundef %88, ptr noundef @fpp_save)
  %90 = load ptr, ptr %7, align 8, !tbaa !5
  store i32 %89, ptr %90, align 4, !tbaa !9
  %91 = load ptr, ptr %7, align 8, !tbaa !5
  %92 = load i32, ptr %91, align 4, !tbaa !9
  %93 = icmp ne i32 %92, 0
  br i1 %93, label %94, label %95

94:                                               ; preds = %71
  store i32 0, ptr %4, align 4
  store i32 1, ptr %10, align 4
  br label %144

95:                                               ; preds = %71
  %96 = load ptr, ptr %5, align 8, !tbaa !5
  %97 = call i32 @fpp_save(ptr noundef %96, i32 noundef 0)
  %98 = load ptr, ptr %7, align 8, !tbaa !5
  store i32 %97, ptr %98, align 4, !tbaa !9
  %99 = load ptr, ptr %7, align 8, !tbaa !5
  %100 = load i32, ptr %99, align 4, !tbaa !9
  %101 = icmp ne i32 %100, 0
  br i1 %101, label %102, label %103

102:                                              ; preds = %95
  store i32 0, ptr %4, align 4
  store i32 1, ptr %10, align 4
  br label %144

103:                                              ; preds = %95
  br label %127

104:                                              ; preds = %41
  %105 = call ptr @__ctype_b_loc() #7
  %106 = load ptr, ptr %105, align 8, !tbaa !5
  %107 = load i32, ptr %8, align 4, !tbaa !9
  %108 = sext i32 %107 to i64
  %109 = getelementptr inbounds i16, ptr %106, i64 %108
  %110 = load i16, ptr %109, align 2, !tbaa !17
  %111 = zext i16 %110 to i32
  %112 = and i32 %111, 16384
  %113 = icmp ne i32 %112, 0
  br i1 %113, label %114, label %117

114:                                              ; preds = %104
  %115 = load ptr, ptr %5, align 8, !tbaa !5
  %116 = load i32, ptr %8, align 4, !tbaa !9
  call void (ptr, i32, ...) @fpp_cerror(ptr noundef %115, i32 noundef 33, i32 noundef %116)
  br label %120

117:                                              ; preds = %104
  %118 = load ptr, ptr %5, align 8, !tbaa !5
  %119 = load i32, ptr %8, align 4, !tbaa !9
  call void (ptr, i32, ...) @fpp_cerror(ptr noundef %118, i32 noundef 34, i32 noundef %119)
  br label %120

120:                                              ; preds = %117, %114
  %121 = load ptr, ptr %5, align 8, !tbaa !5
  %122 = getelementptr inbounds %struct.Global, ptr %121, i32 0, i32 12
  %123 = getelementptr inbounds [513 x i8], ptr %122, i64 0, i64 0
  %124 = load ptr, ptr %9, align 8, !tbaa !5
  %125 = call ptr @strcpy(ptr noundef %123, ptr noundef %124) #5
  %126 = load ptr, ptr %5, align 8, !tbaa !5
  call void @fpp_unget(ptr noundef %126)
  br label %127

127:                                              ; preds = %120, %103, %62
  %128 = load i32, ptr %6, align 4, !tbaa !9
  %129 = icmp eq i32 %128, 0
  br i1 %129, label %130, label %132

130:                                              ; preds = %127
  %131 = load ptr, ptr %9, align 8, !tbaa !5
  call void @free(ptr noundef %131) #5
  br label %132

132:                                              ; preds = %130, %127
  %133 = load ptr, ptr %5, align 8, !tbaa !5
  %134 = load ptr, ptr %5, align 8, !tbaa !5
  %135 = getelementptr inbounds %struct.Global, ptr %134, i32 0, i32 12
  %136 = getelementptr inbounds [513 x i8], ptr %135, i64 0, i64 0
  %137 = call i32 @fpp_ungetstring(ptr noundef %133, ptr noundef %136)
  %138 = load ptr, ptr %7, align 8, !tbaa !5
  store i32 %137, ptr %138, align 4, !tbaa !9
  %139 = load ptr, ptr %7, align 8, !tbaa !5
  %140 = load i32, ptr %139, align 4, !tbaa !9
  %141 = icmp ne i32 %140, 0
  br i1 %141, label %142, label %143

142:                                              ; preds = %132
  store i32 0, ptr %4, align 4
  store i32 1, ptr %10, align 4
  br label %144

143:                                              ; preds = %132
  store i32 1, ptr %4, align 4
  store i32 1, ptr %10, align 4
  br label %144

144:                                              ; preds = %143, %142, %102, %94, %58, %39, %14
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #5
  %145 = load i32, ptr %4, align 4
  ret i32 %145
}

; Function Attrs: nounwind uwtable
declare dso_local ptr @fpp_savestring(ptr noundef, ptr noundef) #1

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

; Function Attrs: nounwind uwtable
declare dso_local void @fpp_cerror(ptr noundef, i32 noundef, ...) #1

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

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

; Function Attrs: nounwind uwtable
declare dso_local i32 @fpp_scannumber(ptr noundef, i32 noundef, ptr noundef) #1

; Function Attrs: nounwind uwtable
declare dso_local i32 @fpp_save(ptr noundef, i32 noundef) #1

; Function Attrs: nounwind willreturn memory(none)
declare ptr @__ctype_b_loc() #4

; Function Attrs: nounwind
declare void @free(ptr noundef) #3

; Function Attrs: nounwind uwtable
declare dso_local i32 @fpp_ungetstring(ptr noundef, ptr noundef) #1

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind 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 "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 willreturn memory(none) "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 = { nounwind willreturn memory(none) }

!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 = !{!"Global", !10, i64 0, !10, i64 4, !6, i64 8, !6, i64 16, !10, i64 24, !10, i64 28, !10, i64 32, !6, i64 40, !10, i64 48, !10, i64 52, !10, i64 56, !10, i64 60, !7, i64 64, !6, i64 584, !7, i64 592, !7, i64 593, !7, i64 594, !7, i64 595, !7, i64 596, !7, i64 597, !6, i64 632, !7, i64 640, !6, i64 800, !7, i64 808, !7, i64 968, !10, i64 988, !7, i64 992, !7, i64 1032, !7, i64 1072, !6, i64 1080, !7, i64 1088, !6, i64 2120, !7, i64 2128, !10, i64 2376, !6, i64 2384, !7, i64 2392, !10, i64 2904, !6, i64 2912, !6, i64 2920, !6, i64 2928, !6, i64 2936, !6, i64 2944, !6, i64 2952, !7, i64 2960, !7, i64 2961, !7, i64 2962, !7, i64 2963, !7, i64 2964, !7, i64 2965, !7, i64 2966, !7, i64 2967, !6, i64 2968, !13, i64 2976, !7, i64 2984, !7, i64 2985, !7, i64 2986, !7, i64 2987, !7, i64 2988, !7, i64 2989, !6, i64 2992, !7, i64 3000, !10, i64 3160, !7, i64 3164, !7, i64 3165, !7, i64 3166, !6, i64 3168}
!13 = !{!"long", !7, i64 0}
!14 = !{!12, !7, i64 2989}
!15 = !{!7, !7, i64 0}
!16 = !{!12, !6, i64 584}
!17 = !{!18, !18, i64 0}
!18 = !{!"short", !7, i64 0}


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

@type = external dso_local local_unnamed_addr global <{ [127 x i8], [129 x i8] }>, align 16
@.str = external hidden unnamed_addr constant [1 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [5 x i8], align 1

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

; Function Attrs: nounwind uwtable
declare dso_local i32 @fpp_get(ptr noundef) local_unnamed_addr #1

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

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

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

; Function Attrs: nounwind uwtable
define dso_local range(i32 0, 2) i32 @fpp_catenate(ptr noundef %0, i32 noundef %1, ptr nocapture noundef writeonly %2) local_unnamed_addr #1 {
  %4 = alloca i32, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #7
  %5 = tail call i32 @fpp_get(ptr noundef %0)
  %.not = icmp eq i32 %5, 30
  br i1 %.not, label %7, label %6

6:                                                ; preds = %3
  tail call void @fpp_unget(ptr noundef %0)
  br label %59

7:                                                ; preds = %3
  %8 = icmp eq i32 %1, 0
  br i1 %8, label %9, label %13

9:                                                ; preds = %7
  %10 = getelementptr inbounds i8, ptr %0, i64 8
  %11 = load ptr, ptr %10, align 8, !tbaa !5
  %12 = tail call ptr @fpp_savestring(ptr noundef %0, ptr noundef %11)
  br label %13

13:                                               ; preds = %9, %7
  %.0 = phi ptr [ %12, %9 ], [ @.str, %7 ]
  %14 = tail call i32 @fpp_get(ptr noundef %0)
  store i32 %14, ptr %4, align 4, !tbaa !12
  %15 = getelementptr inbounds i8, ptr %0, i64 2989
  %16 = load i8, ptr %15, align 1, !tbaa !13
  %.not41 = icmp eq i8 %16, 0
  br i1 %.not41, label %19, label %17

17:                                               ; preds = %13
  %18 = call i32 @fpp_macroid(ptr noundef nonnull %0, ptr noundef nonnull %4)
  store i32 %18, ptr %2, align 4, !tbaa !12
  %.not42 = icmp eq i32 %18, 0
  br i1 %.not42, label %._crit_edge, label %59

._crit_edge:                                      ; preds = %17
  %.pre = load i32, ptr %4, align 4, !tbaa !12
  br label %19

19:                                               ; preds = %._crit_edge, %13
  %20 = phi i32 [ %.pre, %._crit_edge ], [ %14, %13 ]
  %21 = sext i32 %20 to i64
  %22 = getelementptr inbounds [256 x i8], ptr @type, i64 0, i64 %21
  %23 = load i8, ptr %22, align 1, !tbaa !14
  switch i8 %23, label %46 [
    i8 2, label %24
    i8 1, label %37
    i8 66, label %37
  ]

24:                                               ; preds = %19
  %25 = call i64 @strlen(ptr noundef nonnull dereferenceable(1) %.0) #8
  %26 = trunc i64 %25 to i32
  %27 = getelementptr inbounds i8, ptr %0, i64 8
  %28 = load ptr, ptr %27, align 8, !tbaa !5
  %29 = call i64 @strlen(ptr noundef nonnull dereferenceable(1) %28) #8
  %30 = trunc i64 %29 to i32
  %31 = add nsw i32 %30, %26
  %32 = icmp sgt i32 %31, 511
  br i1 %32, label %33, label %34

33:                                               ; preds = %24
  call void (ptr, i32, ...) @fpp_cerror(ptr noundef nonnull %0, i32 noundef 63, ptr noundef %.0)
  store i32 7, ptr %2, align 4, !tbaa !12
  br label %59

34:                                               ; preds = %24
  %35 = getelementptr inbounds i8, ptr %0, i64 64
  %36 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef nonnull dereferenceable(1) %35, ptr noundef nonnull dereferenceable(1) @.str.1, ptr noundef %.0, ptr noundef %28) #7
  br label %54

37:                                               ; preds = %19, %19
  %38 = getelementptr inbounds i8, ptr %0, i64 64
  %39 = call ptr @strcpy(ptr noundef nonnull dereferenceable(1) %38, ptr noundef nonnull dereferenceable(1) %.0) #7
  %40 = call i64 @strlen(ptr noundef nonnull dereferenceable(1) %38) #8
  %41 = getelementptr inbounds i8, ptr %38, i64 %40
  %42 = getelementptr inbounds i8, ptr %0, i64 584
  store ptr %41, ptr %42, align 8, !tbaa !15
  %43 = call i32 @fpp_scannumber(ptr noundef nonnull %0, i32 noundef %20, ptr noundef nonnull @fpp_save)
  store i32 %43, ptr %2, align 4, !tbaa !12
  %.not43 = icmp eq i32 %43, 0
  br i1 %.not43, label %44, label %59

44:                                               ; preds = %37
  %45 = call i32 @fpp_save(ptr noundef nonnull %0, i32 noundef 0)
  store i32 %45, ptr %2, align 4, !tbaa !12
  %.not44 = icmp eq i32 %45, 0
  br i1 %.not44, label %54, label %59

46:                                               ; preds = %19
  %47 = tail call ptr @__ctype_b_loc() #9
  %48 = load ptr, ptr %47, align 8, !tbaa !16
  %49 = getelementptr inbounds i16, ptr %48, i64 %21
  %50 = load i16, ptr %49, align 2, !tbaa !17
  %51 = and i16 %50, 16384
  %.not45 = icmp eq i16 %51, 0
  %.47 = select i1 %.not45, i32 34, i32 33
  call void (ptr, i32, ...) @fpp_cerror(ptr noundef nonnull %0, i32 noundef %.47, i32 noundef %20)
  %52 = getelementptr inbounds i8, ptr %0, i64 64
  %53 = call ptr @strcpy(ptr noundef nonnull dereferenceable(1) %52, ptr noundef nonnull dereferenceable(1) %.0) #7
  call void @fpp_unget(ptr noundef nonnull %0)
  br label %54

54:                                               ; preds = %44, %46, %34
  br i1 %8, label %55, label %56

55:                                               ; preds = %54
  call void @free(ptr noundef %.0) #7
  br label %56

56:                                               ; preds = %55, %54
  %57 = getelementptr inbounds i8, ptr %0, i64 64
  %58 = call i32 @fpp_ungetstring(ptr noundef nonnull %0, ptr noundef nonnull %57)
  store i32 %58, ptr %2, align 4, !tbaa !12
  %.not46 = icmp eq i32 %58, 0
  %. = zext i1 %.not46 to i32
  br label %59

59:                                               ; preds = %56, %44, %37, %17, %33, %6
  %.040 = phi i32 [ 0, %6 ], [ 0, %33 ], [ 0, %17 ], [ 0, %37 ], [ 0, %44 ], [ %., %56 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #7
  ret i32 %.040
}

; Function Attrs: nounwind uwtable
declare dso_local ptr @fpp_savestring(ptr noundef, ptr noundef) local_unnamed_addr #1

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

; Function Attrs: nounwind uwtable
declare dso_local void @fpp_cerror(ptr noundef, i32 noundef, ...) local_unnamed_addr #1

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

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

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

; Function Attrs: nounwind uwtable
declare dso_local i32 @fpp_save(ptr noundef, i32 noundef) #1

; Function Attrs: mustprogress nofree nosync nounwind willreturn memory(none)
declare ptr @__ctype_b_loc() local_unnamed_addr #5

; Function Attrs: mustprogress nounwind willreturn allockind("free") memory(argmem: readwrite, inaccessiblemem: readwrite)
declare void @free(ptr allocptr nocapture noundef) local_unnamed_addr #6

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { 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 #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 = { 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 #5 = { mustprogress nofree nosync nounwind willreturn memory(none) "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 nounwind willreturn allockind("free") memory(argmem: readwrite, 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 #7 = { nounwind }
attributes #8 = { nounwind willreturn memory(read) }
attributes #9 = { nounwind willreturn memory(none) }

!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, !10, i64 8}
!6 = !{!"Global", !7, i64 0, !7, i64 4, !10, i64 8, !10, i64 16, !7, i64 24, !7, i64 28, !7, i64 32, !10, i64 40, !7, i64 48, !7, i64 52, !7, i64 56, !7, i64 60, !8, i64 64, !10, i64 584, !8, i64 592, !8, i64 593, !8, i64 594, !8, i64 595, !8, i64 596, !8, i64 597, !10, i64 632, !8, i64 640, !10, i64 800, !8, i64 808, !8, i64 968, !7, i64 988, !8, i64 992, !8, i64 1032, !8, i64 1072, !10, i64 1080, !8, i64 1088, !10, i64 2120, !8, i64 2128, !7, i64 2376, !10, i64 2384, !8, i64 2392, !7, i64 2904, !10, i64 2912, !10, i64 2920, !10, i64 2928, !10, i64 2936, !10, i64 2944, !10, i64 2952, !8, i64 2960, !8, i64 2961, !8, i64 2962, !8, i64 2963, !8, i64 2964, !8, i64 2965, !8, i64 2966, !8, i64 2967, !10, i64 2968, !11, i64 2976, !8, i64 2984, !8, i64 2985, !8, i64 2986, !8, i64 2987, !8, i64 2988, !8, i64 2989, !10, i64 2992, !8, i64 3000, !7, i64 3160, !8, i64 3164, !8, i64 3165, !8, i64 3166, !10, i64 3168}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"any pointer", !8, i64 0}
!11 = !{!"long", !8, i64 0}
!12 = !{!7, !7, i64 0}
!13 = !{!6, !8, i64 2989}
!14 = !{!8, !8, i64 0}
!15 = !{!6, !10, i64 584}
!16 = !{!10, !10, i64 0}
!17 = !{!18, !18, i64 0}
!18 = !{!"short", !8, i64 0}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,PostOrderFunctionAttrsPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass