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

; 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.fileinfo = type { ptr, i32, ptr, ptr, ptr, ptr, i32, [1 x i8] }
%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 }

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

declare void @fpp_cerror(ptr noundef, i32 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
define dso_local i32 @fpp_expstuff(ptr noundef %0, ptr noundef %1, ptr noundef %2) #2 {
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca i64, align 8
  %12 = alloca ptr, align 8
  %13 = alloca i32, align 4
  %14 = alloca ptr, align 8
  %15 = alloca i32, align 4
  %16 = alloca i8, align 1
  %17 = alloca i32, align 4
  store ptr %0, ptr %5, align 8, !tbaa !5
  store ptr %1, ptr %6, align 8, !tbaa !5
  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
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #5
  call void @llvm.lifetime.start.p0(i64 1, ptr %16) #5
  %18 = load ptr, ptr %5, align 8, !tbaa !5
  %19 = load ptr, ptr %6, align 8, !tbaa !5
  %20 = call i32 @fpp_getfile(ptr noundef %18, i64 noundef 512, ptr noundef %19, ptr noundef %14)
  store i32 %20, ptr %15, align 4, !tbaa !9
  %21 = load i32, ptr %15, align 4, !tbaa !9
  %22 = icmp ne i32 %21, 0
  br i1 %22, label %23, label %25

23:                                               ; preds = %3
  %24 = load i32, ptr %15, align 4, !tbaa !9
  store i32 %24, ptr %4, align 4
  store i32 1, ptr %17, align 4
  br label %171

25:                                               ; preds = %3
  %26 = load ptr, ptr %7, align 8, !tbaa !5
  store ptr %26, ptr %9, align 8, !tbaa !5
  %27 = load ptr, ptr %14, align 8, !tbaa !5
  %28 = getelementptr inbounds %struct.fileinfo, ptr %27, i32 0, i32 7
  %29 = getelementptr inbounds [1 x i8], ptr %28, i64 0, i64 0
  store ptr %29, ptr %10, align 8, !tbaa !5
  %30 = load ptr, ptr %10, align 8, !tbaa !5
  %31 = getelementptr inbounds i8, ptr %30, i64 511
  store ptr %31, ptr %12, align 8, !tbaa !5
  %32 = load ptr, ptr %9, align 8, !tbaa !5
  %33 = icmp ne ptr %32, null
  br i1 %33, label %34, label %169

34:                                               ; preds = %25
  store i8 0, ptr %16, align 1, !tbaa !11
  br label %35

35:                                               ; preds = %167, %45, %34
  %36 = load ptr, ptr %9, align 8, !tbaa !5
  %37 = getelementptr inbounds i8, ptr %36, i32 1
  store ptr %37, ptr %9, align 8, !tbaa !5
  %38 = load i8, ptr %36, align 1, !tbaa !11
  %39 = sext i8 %38 to i32
  %40 = and i32 %39, 255
  store i32 %40, ptr %8, align 4, !tbaa !9
  %41 = icmp ne i32 %40, 0
  br i1 %41, label %42, label %168

42:                                               ; preds = %35
  %43 = load i32, ptr %8, align 4, !tbaa !9
  %44 = icmp eq i32 %43, 28
  br i1 %44, label %45, label %46

45:                                               ; preds = %42
  store i8 1, ptr %16, align 1, !tbaa !11
  br label %35, !llvm.loop !12

46:                                               ; preds = %42
  %47 = load i32, ptr %8, align 4, !tbaa !9
  %48 = icmp sge i32 %47, 127
  br i1 %48, label %49, label %154

49:                                               ; preds = %46
  %50 = load i32, ptr %8, align 4, !tbaa !9
  %51 = icmp sle i32 %50, 159
  br i1 %51, label %52, label %154

52:                                               ; preds = %49
  %53 = load i32, ptr %8, align 4, !tbaa !9
  %54 = icmp eq i32 %53, 159
  %55 = zext i1 %54 to i32
  store i32 %55, ptr %13, align 4, !tbaa !9
  %56 = load i32, ptr %13, align 4, !tbaa !9
  %57 = icmp ne i32 %56, 0
  br i1 %57, label %58, label %64

58:                                               ; preds = %52
  %59 = load ptr, ptr %9, align 8, !tbaa !5
  %60 = getelementptr inbounds i8, ptr %59, i32 1
  store ptr %60, ptr %9, align 8, !tbaa !5
  %61 = load i8, ptr %59, align 1, !tbaa !11
  %62 = sext i8 %61 to i32
  %63 = and i32 %62, 255
  store i32 %63, ptr %8, align 4, !tbaa !9
  br label %64

64:                                               ; preds = %58, %52
  %65 = load i32, ptr %8, align 4, !tbaa !9
  %66 = sub nsw i32 %65, 127
  store i32 %66, ptr %8, align 4, !tbaa !9
  %67 = load ptr, ptr %5, align 8, !tbaa !5
  %68 = getelementptr inbounds %struct.Global, ptr %67, i32 0, i32 33
  %69 = load i32, ptr %68, align 8, !tbaa !14
  %70 = icmp slt i32 %66, %69
  br i1 %70, label %71, label %153

71:                                               ; preds = %64
  %72 = load ptr, ptr %5, align 8, !tbaa !5
  %73 = getelementptr inbounds %struct.Global, ptr %72, i32 0, i32 32
  %74 = load i32, ptr %8, align 4, !tbaa !9
  %75 = sext i32 %74 to i64
  %76 = getelementptr inbounds [31 x ptr], ptr %73, i64 0, i64 %75
  %77 = load ptr, ptr %76, align 8, !tbaa !5
  %78 = call i64 @strlen(ptr noundef %77) #6
  store i64 %78, ptr %11, align 8, !tbaa !17
  %79 = load i8, ptr %16, align 1, !tbaa !11
  %80 = icmp ne i8 %79, 0
  br i1 %80, label %81, label %86

81:                                               ; preds = %71
  %82 = load i64, ptr %11, align 8, !tbaa !17
  %83 = add i64 %82, 1
  store i64 %83, ptr %11, align 8, !tbaa !17
  %84 = load i64, ptr %11, align 8, !tbaa !17
  %85 = mul i64 %84, 2
  store i64 %85, ptr %11, align 8, !tbaa !17
  br label %86

86:                                               ; preds = %81, %71
  %87 = load ptr, ptr %10, align 8, !tbaa !5
  %88 = load i64, ptr %11, align 8, !tbaa !17
  %89 = getelementptr inbounds i8, ptr %87, i64 %88
  %90 = load ptr, ptr %12, align 8, !tbaa !5
  %91 = icmp uge ptr %89, %90
  br i1 %91, label %92, label %95

92:                                               ; preds = %86
  %93 = load ptr, ptr %5, align 8, !tbaa !5
  %94 = load ptr, ptr %6, align 8, !tbaa !5
  call void (ptr, i32, ...) @fpp_cerror(ptr noundef %93, i32 noundef 62, ptr noundef %94)
  store i32 10, ptr %4, align 4
  store i32 1, ptr %17, align 4
  br label %171

95:                                               ; preds = %86
  %96 = load i32, ptr %13, align 4, !tbaa !9
  %97 = icmp ne i32 %96, 0
  br i1 %97, label %98, label %127

98:                                               ; preds = %95
  %99 = load ptr, ptr %10, align 8, !tbaa !5
  %100 = getelementptr inbounds i8, ptr %99, i64 -1
  %101 = load i8, ptr %100, align 1, !tbaa !11
  %102 = sext i8 %101 to i32
  %103 = load ptr, ptr %5, align 8, !tbaa !5
  %104 = getelementptr inbounds %struct.Global, ptr %103, i32 0, i32 32
  %105 = load i32, ptr %8, align 4, !tbaa !9
  %106 = sext i32 %105 to i64
  %107 = getelementptr inbounds [31 x ptr], ptr %104, i64 0, i64 %106
  %108 = load ptr, ptr %107, align 8, !tbaa !5
  %109 = getelementptr inbounds i8, ptr %108, i64 0
  %110 = load i8, ptr %109, align 1, !tbaa !11
  %111 = sext i8 %110 to i32
  %112 = icmp eq i32 %102, %111
  br i1 %112, label %113, label %127

113:                                              ; preds = %98
  %114 = load ptr, ptr %10, align 8, !tbaa !5
  %115 = getelementptr inbounds i8, ptr %114, i64 -1
  %116 = load ptr, ptr %5, align 8, !tbaa !5
  %117 = getelementptr inbounds %struct.Global, ptr %116, i32 0, i32 32
  %118 = load i32, ptr %8, align 4, !tbaa !9
  %119 = sext i32 %118 to i64
  %120 = getelementptr inbounds [31 x ptr], ptr %117, i64 0, i64 %119
  %121 = load ptr, ptr %120, align 8, !tbaa !5
  %122 = call ptr @strcpy(ptr noundef %115, ptr noundef %121) #5
  %123 = load i64, ptr %11, align 8, !tbaa !17
  %124 = sub i64 %123, 2
  %125 = load ptr, ptr %10, align 8, !tbaa !5
  %126 = getelementptr inbounds i8, ptr %125, i64 %124
  store ptr %126, ptr %10, align 8, !tbaa !5
  br label %152

127:                                              ; preds = %98, %95
  %128 = load i8, ptr %16, align 1, !tbaa !11
  %129 = icmp ne i8 %128, 0
  br i1 %129, label %130, label %139

130:                                              ; preds = %127
  %131 = load ptr, ptr %10, align 8, !tbaa !5
  %132 = load ptr, ptr %5, align 8, !tbaa !5
  %133 = getelementptr inbounds %struct.Global, ptr %132, i32 0, i32 32
  %134 = load i32, ptr %8, align 4, !tbaa !9
  %135 = sext i32 %134 to i64
  %136 = getelementptr inbounds [31 x ptr], ptr %133, i64 0, i64 %135
  %137 = load ptr, ptr %136, align 8, !tbaa !5
  %138 = call ptr @fpp_doquoting(ptr noundef %131, ptr noundef %137)
  store ptr %138, ptr %10, align 8, !tbaa !5
  br label %151

139:                                              ; preds = %127
  %140 = load ptr, ptr %10, align 8, !tbaa !5
  %141 = load ptr, ptr %5, align 8, !tbaa !5
  %142 = getelementptr inbounds %struct.Global, ptr %141, i32 0, i32 32
  %143 = load i32, ptr %8, align 4, !tbaa !9
  %144 = sext i32 %143 to i64
  %145 = getelementptr inbounds [31 x ptr], ptr %142, i64 0, i64 %144
  %146 = load ptr, ptr %145, align 8, !tbaa !5
  %147 = call ptr @strcpy(ptr noundef %140, ptr noundef %146) #5
  %148 = load i64, ptr %11, align 8, !tbaa !17
  %149 = load ptr, ptr %10, align 8, !tbaa !5
  %150 = getelementptr inbounds i8, ptr %149, i64 %148
  store ptr %150, ptr %10, align 8, !tbaa !5
  br label %151

151:                                              ; preds = %139, %130
  br label %152

152:                                              ; preds = %151, %113
  br label %153

153:                                              ; preds = %152, %64
  br label %167

154:                                              ; preds = %49, %46
  %155 = load ptr, ptr %10, align 8, !tbaa !5
  %156 = load ptr, ptr %12, align 8, !tbaa !5
  %157 = icmp uge ptr %155, %156
  br i1 %157, label %158, label %161

158:                                              ; preds = %154
  %159 = load ptr, ptr %5, align 8, !tbaa !5
  %160 = load ptr, ptr %6, align 8, !tbaa !5
  call void (ptr, i32, ...) @fpp_cerror(ptr noundef %159, i32 noundef 62, ptr noundef %160)
  store i32 10, ptr %4, align 4
  store i32 1, ptr %17, align 4
  br label %171

161:                                              ; preds = %154
  %162 = load i32, ptr %8, align 4, !tbaa !9
  %163 = trunc i32 %162 to i8
  %164 = load ptr, ptr %10, align 8, !tbaa !5
  %165 = getelementptr inbounds i8, ptr %164, i32 1
  store ptr %165, ptr %10, align 8, !tbaa !5
  store i8 %163, ptr %164, align 1, !tbaa !11
  br label %166

166:                                              ; preds = %161
  br label %167

167:                                              ; preds = %166, %153
  store i8 0, ptr %16, align 1, !tbaa !11
  br label %35, !llvm.loop !12

168:                                              ; preds = %35
  br label %169

169:                                              ; preds = %168, %25
  %170 = load ptr, ptr %10, align 8, !tbaa !5
  store i8 0, ptr %170, align 1, !tbaa !11
  store i32 0, ptr %4, align 4
  store i32 1, ptr %17, align 4
  br label %171

171:                                              ; preds = %169, %158, %92, %23
  call void @llvm.lifetime.end.p0(i64 1, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 8, 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 4, ptr %8) #5
  %172 = load i32, ptr %4, align 4
  ret i32 %172
}

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

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

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

; Function Attrs: nounwind uwtable
declare hidden ptr @fpp_doquoting(ptr noundef, ptr noundef) #2

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { 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 #3 = { 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 #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 = !{!7, !7, i64 0}
!12 = distinct !{!12, !13}
!13 = !{!"llvm.loop.mustprogress"}
!14 = !{!15, !10, i64 2376}
!15 = !{!"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, !16, 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}
!16 = !{!"long", !7, i64 0}
!17 = !{!16, !16, 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"

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

declare void @fpp_cerror(ptr noundef, i32 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
define dso_local i32 @fpp_expstuff(ptr noundef %0, ptr noundef %1, ptr noundef readonly %2) local_unnamed_addr #2 {
  %4 = alloca ptr, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #5
  %5 = call i32 @fpp_getfile(ptr noundef %0, i64 noundef 512, ptr noundef %1, ptr noundef nonnull %4) #5
  %.not = icmp eq i32 %5, 0
  br i1 %.not, label %6, label %54

6:                                                ; preds = %3
  %7 = load ptr, ptr %4, align 8, !tbaa !5
  %8 = getelementptr inbounds i8, ptr %7, i64 52
  %9 = getelementptr inbounds i8, ptr %7, i64 563
  %.not64 = icmp eq ptr %2, null
  br i1 %.not64, label %.loopexit, label %.preheader

.preheader:                                       ; preds = %6
  %10 = getelementptr inbounds i8, ptr %0, i64 2376
  %11 = getelementptr inbounds i8, ptr %0, i64 2128
  br label %.outer.outer

.outer.outer:                                     ; preds = %.outer.outer.backedge, %.preheader
  %.056.ph.ph = phi ptr [ %8, %.preheader ], [ %.056.ph.ph.be, %.outer.outer.backedge ]
  %.054.ph.ph = phi ptr [ %2, %.preheader ], [ %.054.ph.ph.be, %.outer.outer.backedge ]
  br label %.outer

.outer:                                           ; preds = %.outer.outer, %22
  %.054.ph = phi ptr [ %.1, %22 ], [ %.054.ph.ph, %.outer.outer ]
  %12 = getelementptr inbounds i8, ptr %.054.ph, i64 1
  %13 = load i8, ptr %.054.ph, align 1, !tbaa !9
  switch i8 %13, label %.loopexit84 [
    i8 0, label %.loopexit
    i8 28, label %.peel.next
  ]

.peel.next:                                       ; preds = %.outer, %.peel.next
  %.054 = phi ptr [ %14, %.peel.next ], [ %12, %.outer ]
  %14 = getelementptr inbounds i8, ptr %.054, i64 1
  %15 = load i8, ptr %.054, align 1, !tbaa !9
  switch i8 %15, label %.loopexit84 [
    i8 0, label %.loopexit
    i8 28, label %.peel.next
  ], !llvm.loop !10

.loopexit84:                                      ; preds = %.peel.next, %.outer
  %.054.lcssa = phi ptr [ %.054.ph, %.outer ], [ %.054, %.peel.next ]
  %.not67.lcssa = phi i1 [ true, %.outer ], [ false, %.peel.next ]
  %.lcssa77 = phi ptr [ %12, %.outer ], [ %14, %.peel.next ]
  %.lcssa = phi i8 [ %13, %.outer ], [ %15, %.peel.next ]
  %16 = add i8 %.lcssa, -127
  %or.cond = icmp ult i8 %16, 33
  br i1 %or.cond, label %17, label %50

17:                                               ; preds = %.loopexit84
  %18 = icmp eq i8 %.lcssa, -97
  br i1 %18, label %19, label %22

19:                                               ; preds = %17
  %20 = getelementptr inbounds i8, ptr %.054.lcssa, i64 2
  %21 = load i8, ptr %.lcssa77, align 1, !tbaa !9
  br label %22

22:                                               ; preds = %19, %17
  %.1 = phi ptr [ %20, %19 ], [ %.lcssa77, %17 ]
  %.053.in = phi i8 [ %21, %19 ], [ %.lcssa, %17 ]
  %.053 = zext i8 %.053.in to i32
  %23 = add nsw i32 %.053, -127
  %24 = load i32, ptr %10, align 8, !tbaa !13
  %25 = icmp slt i32 %23, %24
  br i1 %25, label %26, label %.outer, !llvm.loop !17

26:                                               ; preds = %22
  %27 = sext i32 %23 to i64
  %28 = getelementptr inbounds [31 x ptr], ptr %11, i64 0, i64 %27
  %29 = load ptr, ptr %28, align 8, !tbaa !5
  %30 = call i64 @strlen(ptr noundef nonnull dereferenceable(1) %29) #6
  %31 = shl i64 %30, 1
  %32 = add i64 %31, 2
  %.055 = select i1 %.not67.lcssa, i64 %30, i64 %32
  %33 = getelementptr inbounds i8, ptr %.056.ph.ph, i64 %.055
  %.not68 = icmp ult ptr %33, %9
  br i1 %.not68, label %35, label %34

34:                                               ; preds = %26
  call void (ptr, i32, ...) @fpp_cerror(ptr noundef nonnull %0, i32 noundef 62, ptr noundef %1) #5
  br label %54

35:                                               ; preds = %26
  br i1 %18, label %36, label %45

36:                                               ; preds = %35
  %37 = getelementptr inbounds i8, ptr %.056.ph.ph, i64 -1
  %38 = load i8, ptr %37, align 1, !tbaa !9
  %39 = load i8, ptr %29, align 1, !tbaa !9
  %40 = icmp eq i8 %38, %39
  br i1 %40, label %41, label %45

41:                                               ; preds = %36
  %42 = call ptr @strcpy(ptr noundef nonnull dereferenceable(1) %37, ptr noundef nonnull dereferenceable(1) %29) #5
  %43 = add i64 %.055, -2
  %44 = getelementptr inbounds i8, ptr %.056.ph.ph, i64 %43
  br label %.outer.outer.backedge

.outer.outer.backedge:                            ; preds = %41, %46, %48, %52
  %.056.ph.ph.be = phi ptr [ %53, %52 ], [ %33, %48 ], [ %47, %46 ], [ %44, %41 ]
  %.054.ph.ph.be = phi ptr [ %.lcssa77, %52 ], [ %.1, %48 ], [ %.1, %46 ], [ %.1, %41 ]
  br label %.outer.outer, !llvm.loop !17

45:                                               ; preds = %36, %35
  br i1 %.not67.lcssa, label %48, label %46

46:                                               ; preds = %45
  %47 = call ptr @fpp_doquoting(ptr noundef %.056.ph.ph, ptr noundef %29)
  br label %.outer.outer.backedge

48:                                               ; preds = %45
  %49 = call ptr @strcpy(ptr noundef nonnull dereferenceable(1) %.056.ph.ph, ptr noundef nonnull dereferenceable(1) %29) #5
  br label %.outer.outer.backedge

50:                                               ; preds = %.loopexit84
  %.not66 = icmp ult ptr %.056.ph.ph, %9
  br i1 %.not66, label %52, label %51

51:                                               ; preds = %50
  call void (ptr, i32, ...) @fpp_cerror(ptr noundef %0, i32 noundef 62, ptr noundef %1) #5
  br label %54

52:                                               ; preds = %50
  %53 = getelementptr inbounds i8, ptr %.056.ph.ph, i64 1
  store i8 %.lcssa, ptr %.056.ph.ph, align 1, !tbaa !9
  br label %.outer.outer.backedge

.loopexit:                                        ; preds = %.outer, %.peel.next, %6
  %.258 = phi ptr [ %8, %6 ], [ %.056.ph.ph, %.peel.next ], [ %.056.ph.ph, %.outer ]
  store i8 0, ptr %.258, align 1, !tbaa !9
  br label %54

54:                                               ; preds = %3, %.loopexit, %51, %34
  %.052 = phi i32 [ 10, %34 ], [ 10, %51 ], [ 0, %.loopexit ], [ %5, %3 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #5
  ret i32 %.052
}

declare i32 @fpp_getfile(ptr noundef, i64 noundef, 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 #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 hidden ptr @fpp_doquoting(ptr noundef, ptr noundef) local_unnamed_addr #2

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { 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 #3 = { 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 #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 = { 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 = !{!7, !7, i64 0}
!10 = distinct !{!10, !11, !12}
!11 = !{!"llvm.loop.mustprogress"}
!12 = !{!"llvm.loop.peeled.count", i32 1}
!13 = !{!14, !15, i64 2376}
!14 = !{!"Global", !15, i64 0, !15, i64 4, !6, i64 8, !6, i64 16, !15, i64 24, !15, i64 28, !15, i64 32, !6, i64 40, !15, i64 48, !15, i64 52, !15, i64 56, !15, 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, !15, i64 988, !7, i64 992, !7, i64 1032, !7, i64 1072, !6, i64 1080, !7, i64 1088, !6, i64 2120, !7, i64 2128, !15, i64 2376, !6, i64 2384, !7, i64 2392, !15, 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, !16, 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, !15, i64 3160, !7, i64 3164, !7, i64 3165, !7, i64 3166, !6, i64 3168}
!15 = !{!"int", !7, i64 0}
!16 = !{!"long", !7, i64 0}
!17 = distinct !{!17, !11}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopFullUnrollPass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,ReassociatePass,SROAPass,SimplifyCFGPass