; LLVM IR from ponylang/ponyc :: src/libponyc/ast (token)

; 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.token_t = type { i32, ptr, i64, i64, ptr, %union.anon, i8 }
%union.anon = type { %struct.anon }
%struct.anon = type { ptr, i64 }

@.str = external hidden unnamed_addr constant [14 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [73 x i8], align 1
@__func__.token_print_escaped = external hidden unnamed_addr constant [20 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: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0

declare void @ponyint_assert_fail(ptr noundef, ptr noundef, i64 noundef, ptr noundef) #1

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #2

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

declare noalias ptr @ponyint_pool_alloc_size(i64 noundef) #1

; Function Attrs: nounwind uwtable
define dso_local ptr @token_print_escaped(ptr noundef %0) #3 {
  %2 = alloca ptr, align 8
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca i64, align 8
  %6 = alloca i64, align 8
  %7 = alloca i64, align 8
  %8 = alloca i8, align 1
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca i64, align 8
  %12 = alloca ptr, align 8
  %13 = alloca i64, align 8
  %14 = alloca i64, align 8
  %15 = alloca i8, align 1
  store ptr %0, ptr %3, align 8, !tbaa !5
  %16 = load ptr, ptr %3, align 8, !tbaa !5
  %17 = icmp ne ptr %16, null
  br i1 %17, label %18, label %19

18:                                               ; preds = %1
  br label %20

19:                                               ; preds = %1
  call void @ponyint_assert_fail(ptr noundef @.str, ptr noundef @.str.1, i64 noundef 203, ptr noundef @__func__.token_print_escaped)
  br label %20

20:                                               ; preds = %19, %18
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #5
  store ptr null, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #5
  store i64 0, ptr %5, align 8, !tbaa !9
  %21 = load ptr, ptr %3, align 8, !tbaa !5
  %22 = getelementptr inbounds %struct.token_t, ptr %21, i32 0, i32 0
  %23 = load i32, ptr %22, align 8, !tbaa !11
  %24 = icmp eq i32 %23, 5
  br i1 %24, label %25, label %34

25:                                               ; preds = %20
  %26 = load ptr, ptr %3, align 8, !tbaa !5
  %27 = getelementptr inbounds %struct.token_t, ptr %26, i32 0, i32 5
  %28 = getelementptr inbounds %struct.anon, ptr %27, i32 0, i32 0
  %29 = load ptr, ptr %28, align 8, !tbaa !15
  store ptr %29, ptr %4, align 8, !tbaa !5
  %30 = load ptr, ptr %3, align 8, !tbaa !5
  %31 = getelementptr inbounds %struct.token_t, ptr %30, i32 0, i32 5
  %32 = getelementptr inbounds %struct.anon, ptr %31, i32 0, i32 1
  %33 = load i64, ptr %32, align 8, !tbaa !15
  store i64 %33, ptr %5, align 8, !tbaa !9
  br label %39

34:                                               ; preds = %20
  %35 = load ptr, ptr %3, align 8, !tbaa !5
  %36 = call ptr @token_print(ptr noundef %35)
  store ptr %36, ptr %4, align 8, !tbaa !5
  %37 = load ptr, ptr %4, align 8, !tbaa !5
  %38 = call i64 @strlen(ptr noundef %37) #6
  store i64 %38, ptr %5, align 8, !tbaa !9
  br label %39

39:                                               ; preds = %34, %25
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #5
  store i64 0, ptr %6, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #5
  store i64 0, ptr %7, align 8, !tbaa !9
  br label %40

40:                                               ; preds = %65, %39
  %41 = load i64, ptr %7, align 8, !tbaa !9
  %42 = load i64, ptr %5, align 8, !tbaa !9
  %43 = icmp ult i64 %41, %42
  br i1 %43, label %45, label %44

44:                                               ; preds = %40
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #5
  br label %68

45:                                               ; preds = %40
  call void @llvm.lifetime.start.p0(i64 1, ptr %8) #5
  %46 = load ptr, ptr %4, align 8, !tbaa !5
  %47 = load i64, ptr %7, align 8, !tbaa !9
  %48 = getelementptr inbounds i8, ptr %46, i64 %47
  %49 = load i8, ptr %48, align 1, !tbaa !15
  store i8 %49, ptr %8, align 1, !tbaa !15
  %50 = load i8, ptr %8, align 1, !tbaa !15
  %51 = sext i8 %50 to i32
  %52 = icmp eq i32 %51, 34
  br i1 %52, label %61, label %53

53:                                               ; preds = %45
  %54 = load i8, ptr %8, align 1, !tbaa !15
  %55 = sext i8 %54 to i32
  %56 = icmp eq i32 %55, 92
  br i1 %56, label %61, label %57

57:                                               ; preds = %53
  %58 = load i8, ptr %8, align 1, !tbaa !15
  %59 = sext i8 %58 to i32
  %60 = icmp eq i32 %59, 0
  br i1 %60, label %61, label %64

61:                                               ; preds = %57, %53, %45
  %62 = load i64, ptr %6, align 8, !tbaa !9
  %63 = add i64 %62, 1
  store i64 %63, ptr %6, align 8, !tbaa !9
  br label %64

64:                                               ; preds = %61, %57
  call void @llvm.lifetime.end.p0(i64 1, ptr %8) #5
  br label %65

65:                                               ; preds = %64
  %66 = load i64, ptr %7, align 8, !tbaa !9
  %67 = add i64 %66, 1
  store i64 %67, ptr %7, align 8, !tbaa !9
  br label %40, !llvm.loop !16

68:                                               ; preds = %44
  %69 = load i64, ptr %6, align 8, !tbaa !9
  %70 = icmp eq i64 %69, 0
  br i1 %70, label %71, label %82

71:                                               ; preds = %68
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #5
  %72 = load i64, ptr %5, align 8, !tbaa !9
  %73 = add i64 %72, 1
  %74 = call noalias ptr @ponyint_pool_alloc_size(i64 noundef %73)
  store ptr %74, ptr %9, align 8, !tbaa !5
  %75 = load ptr, ptr %9, align 8, !tbaa !5
  %76 = load ptr, ptr %4, align 8, !tbaa !5
  %77 = load i64, ptr %5, align 8, !tbaa !9
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %75, ptr align 1 %76, i64 %77, i1 false)
  %78 = load ptr, ptr %9, align 8, !tbaa !5
  %79 = load i64, ptr %5, align 8, !tbaa !9
  %80 = getelementptr inbounds i8, ptr %78, i64 %79
  store i8 0, ptr %80, align 1, !tbaa !15
  %81 = load ptr, ptr %9, align 8, !tbaa !5
  store ptr %81, ptr %2, align 8
  store i32 1, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #5
  br label %146

82:                                               ; preds = %68
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #5
  %83 = load i64, ptr %5, align 8, !tbaa !9
  %84 = load i64, ptr %6, align 8, !tbaa !9
  %85 = add i64 %83, %84
  store i64 %85, ptr %11, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #5
  %86 = load i64, ptr %11, align 8, !tbaa !9
  %87 = add i64 %86, 1
  %88 = call noalias ptr @ponyint_pool_alloc_size(i64 noundef %87)
  store ptr %88, ptr %12, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #5
  store i64 0, ptr %13, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #5
  store i64 0, ptr %14, align 8, !tbaa !9
  br label %89

89:                                               ; preds = %137, %82
  %90 = load i64, ptr %14, align 8, !tbaa !9
  %91 = load i64, ptr %5, align 8, !tbaa !9
  %92 = icmp ult i64 %90, %91
  br i1 %92, label %94, label %93

93:                                               ; preds = %89
  store i32 5, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #5
  br label %140

94:                                               ; preds = %89
  call void @llvm.lifetime.start.p0(i64 1, ptr %15) #5
  %95 = load ptr, ptr %4, align 8, !tbaa !5
  %96 = load i64, ptr %14, align 8, !tbaa !9
  %97 = getelementptr inbounds i8, ptr %95, i64 %96
  %98 = load i8, ptr %97, align 1, !tbaa !15
  store i8 %98, ptr %15, align 1, !tbaa !15
  %99 = load i8, ptr %15, align 1, !tbaa !15
  %100 = sext i8 %99 to i32
  %101 = icmp eq i32 %100, 34
  br i1 %101, label %106, label %102

102:                                              ; preds = %94
  %103 = load i8, ptr %15, align 1, !tbaa !15
  %104 = sext i8 %103 to i32
  %105 = icmp eq i32 %104, 92
  br i1 %105, label %106, label %116

106:                                              ; preds = %102, %94
  %107 = load ptr, ptr %12, align 8, !tbaa !5
  %108 = load i64, ptr %13, align 8, !tbaa !9
  %109 = add i64 %108, 1
  store i64 %109, ptr %13, align 8, !tbaa !9
  %110 = getelementptr inbounds i8, ptr %107, i64 %108
  store i8 92, ptr %110, align 1, !tbaa !15
  %111 = load i8, ptr %15, align 1, !tbaa !15
  %112 = load ptr, ptr %12, align 8, !tbaa !5
  %113 = load i64, ptr %13, align 8, !tbaa !9
  %114 = add i64 %113, 1
  store i64 %114, ptr %13, align 8, !tbaa !9
  %115 = getelementptr inbounds i8, ptr %112, i64 %113
  store i8 %111, ptr %115, align 1, !tbaa !15
  br label %136

116:                                              ; preds = %102
  %117 = load i8, ptr %15, align 1, !tbaa !15
  %118 = sext i8 %117 to i32
  %119 = icmp eq i32 %118, 0
  br i1 %119, label %120, label %129

120:                                              ; preds = %116
  %121 = load ptr, ptr %12, align 8, !tbaa !5
  %122 = load i64, ptr %13, align 8, !tbaa !9
  %123 = add i64 %122, 1
  store i64 %123, ptr %13, align 8, !tbaa !9
  %124 = getelementptr inbounds i8, ptr %121, i64 %122
  store i8 92, ptr %124, align 1, !tbaa !15
  %125 = load ptr, ptr %12, align 8, !tbaa !5
  %126 = load i64, ptr %13, align 8, !tbaa !9
  %127 = add i64 %126, 1
  store i64 %127, ptr %13, align 8, !tbaa !9
  %128 = getelementptr inbounds i8, ptr %125, i64 %126
  store i8 48, ptr %128, align 1, !tbaa !15
  br label %135

129:                                              ; preds = %116
  %130 = load i8, ptr %15, align 1, !tbaa !15
  %131 = load ptr, ptr %12, align 8, !tbaa !5
  %132 = load i64, ptr %13, align 8, !tbaa !9
  %133 = add i64 %132, 1
  store i64 %133, ptr %13, align 8, !tbaa !9
  %134 = getelementptr inbounds i8, ptr %131, i64 %132
  store i8 %130, ptr %134, align 1, !tbaa !15
  br label %135

135:                                              ; preds = %129, %120
  br label %136

136:                                              ; preds = %135, %106
  call void @llvm.lifetime.end.p0(i64 1, ptr %15) #5
  br label %137

137:                                              ; preds = %136
  %138 = load i64, ptr %14, align 8, !tbaa !9
  %139 = add i64 %138, 1
  store i64 %139, ptr %14, align 8, !tbaa !9
  br label %89, !llvm.loop !18

140:                                              ; preds = %93
  %141 = load ptr, ptr %12, align 8, !tbaa !5
  %142 = load i64, ptr %13, align 8, !tbaa !9
  %143 = add i64 %142, 1
  store i64 %143, ptr %13, align 8, !tbaa !9
  %144 = getelementptr inbounds i8, ptr %141, i64 %142
  store i8 0, ptr %144, align 1, !tbaa !15
  %145 = load ptr, ptr %12, align 8, !tbaa !5
  store ptr %145, ptr %2, align 8
  store i32 1, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 8, 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
  br label %146

146:                                              ; preds = %140, %71
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #5
  %147 = load ptr, ptr %2, align 8
  ret ptr %147
}

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

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 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
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 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 #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 = !{!"long", !7, i64 0}
!11 = !{!12, !13, i64 0}
!12 = !{!"token_t", !13, i64 0, !6, i64 8, !10, i64 16, !10, i64 24, !6, i64 32, !7, i64 40, !14, i64 56}
!13 = !{!"int", !7, i64 0}
!14 = !{!"_Bool", !7, i64 0}
!15 = !{!7, !7, i64 0}
!16 = distinct !{!16, !17}
!17 = !{!"llvm.loop.mustprogress"}
!18 = distinct !{!18, !17}


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

@.str = external hidden unnamed_addr constant [14 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [73 x i8], align 1
@__func__.token_print_escaped = external hidden unnamed_addr constant [20 x i8], align 1

declare void @ponyint_assert_fail(ptr noundef, ptr noundef, i64 noundef, ptr noundef) local_unnamed_addr #0

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1

; Function Attrs: nounwind uwtable
declare dso_local ptr @token_print(ptr noundef) local_unnamed_addr #2

declare noalias ptr @ponyint_pool_alloc_size(i64 noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
define dso_local noalias ptr @token_print_escaped(ptr noundef %0) local_unnamed_addr #2 {
  %.not = icmp eq ptr %0, null
  br i1 %.not, label %2, label %3

2:                                                ; preds = %1
  tail call void @ponyint_assert_fail(ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, i64 noundef 203, ptr noundef nonnull @__func__.token_print_escaped) #4
  br label %3

3:                                                ; preds = %1, %2
  %4 = load i32, ptr %0, align 8, !tbaa !5
  %5 = icmp eq i32 %4, 5
  br i1 %5, label %6, label %11

6:                                                ; preds = %3
  %7 = getelementptr inbounds i8, ptr %0, i64 40
  %8 = load ptr, ptr %7, align 8, !tbaa !13
  %9 = getelementptr inbounds i8, ptr %0, i64 48
  %10 = load i64, ptr %9, align 8, !tbaa !13
  br label %14

11:                                               ; preds = %3
  %12 = tail call ptr @token_print(ptr noundef nonnull %0)
  %13 = tail call i64 @strlen(ptr noundef nonnull dereferenceable(1) %12) #5
  br label %14

14:                                               ; preds = %11, %6
  %.060 = phi i64 [ %10, %6 ], [ %13, %11 ]
  %.059 = phi ptr [ %8, %6 ], [ %12, %11 ]
  %.not73 = icmp eq i64 %.060, 0
  br i1 %.not73, label %._crit_edge.thread, label %.lr.ph.preheader

.lr.ph.preheader:                                 ; preds = %14
  %xtraiter = and i64 %.060, 3
  %15 = icmp ult i64 %.060, 4
  br i1 %15, label %._crit_edge.unr-lcssa, label %.lr.ph.preheader.new

.lr.ph.preheader.new:                             ; preds = %.lr.ph.preheader
  %unroll_iter = and i64 %.060, -4
  br label %.lr.ph

._crit_edge.unr-lcssa:                            ; preds = %42, %.lr.ph.preheader
  %.162.lcssa.ph = phi i64 [ poison, %.lr.ph.preheader ], [ %.162.3, %42 ]
  %.06166.unr = phi i64 [ 0, %.lr.ph.preheader ], [ %.162.3, %42 ]
  %.06365.unr = phi i64 [ 0, %.lr.ph.preheader ], [ %43, %42 ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %._crit_edge, label %.lr.ph.epil

.lr.ph.epil:                                      ; preds = %._crit_edge.unr-lcssa, %20
  %.06166.epil = phi i64 [ %.162.epil, %20 ], [ %.06166.unr, %._crit_edge.unr-lcssa ]
  %.06365.epil = phi i64 [ %21, %20 ], [ %.06365.unr, %._crit_edge.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %20 ], [ 0, %._crit_edge.unr-lcssa ]
  %16 = getelementptr inbounds i8, ptr %.059, i64 %.06365.epil
  %17 = load i8, ptr %16, align 1, !tbaa !13
  switch i8 %17, label %20 [
    i8 92, label %18
    i8 34, label %18
    i8 0, label %18
  ]

18:                                               ; preds = %.lr.ph.epil, %.lr.ph.epil, %.lr.ph.epil
  %19 = add i64 %.06166.epil, 1
  br label %20

20:                                               ; preds = %18, %.lr.ph.epil
  %.162.epil = phi i64 [ %19, %18 ], [ %.06166.epil, %.lr.ph.epil ]
  %21 = add nuw i64 %.06365.epil, 1
  %epil.iter.next = add i64 %epil.iter, 1
  %epil.iter.cmp.not = icmp eq i64 %epil.iter.next, %xtraiter
  br i1 %epil.iter.cmp.not, label %._crit_edge, label %.lr.ph.epil, !llvm.loop !14

._crit_edge:                                      ; preds = %20, %._crit_edge.unr-lcssa
  %.162.lcssa = phi i64 [ %.162.lcssa.ph, %._crit_edge.unr-lcssa ], [ %.162.epil, %20 ]
  %22 = icmp eq i64 %.162.lcssa, 0
  br i1 %22, label %._crit_edge.thread, label %.lr.ph70.preheader

.lr.ph:                                           ; preds = %42, %.lr.ph.preheader.new
  %.06166 = phi i64 [ 0, %.lr.ph.preheader.new ], [ %.162.3, %42 ]
  %.06365 = phi i64 [ 0, %.lr.ph.preheader.new ], [ %43, %42 ]
  %niter = phi i64 [ 0, %.lr.ph.preheader.new ], [ %niter.next.3, %42 ]
  %23 = getelementptr inbounds i8, ptr %.059, i64 %.06365
  %24 = load i8, ptr %23, align 1, !tbaa !13
  switch i8 %24, label %.lr.ph.1 [
    i8 92, label %25
    i8 34, label %25
    i8 0, label %25
  ]

25:                                               ; preds = %.lr.ph, %.lr.ph, %.lr.ph
  %26 = add i64 %.06166, 1
  br label %.lr.ph.1

.lr.ph.1:                                         ; preds = %.lr.ph, %25
  %.162 = phi i64 [ %26, %25 ], [ %.06166, %.lr.ph ]
  %27 = or disjoint i64 %.06365, 1
  %28 = getelementptr inbounds i8, ptr %.059, i64 %27
  %29 = load i8, ptr %28, align 1, !tbaa !13
  switch i8 %29, label %.lr.ph.2 [
    i8 92, label %30
    i8 34, label %30
    i8 0, label %30
  ]

30:                                               ; preds = %.lr.ph.1, %.lr.ph.1, %.lr.ph.1
  %31 = add i64 %.162, 1
  br label %.lr.ph.2

.lr.ph.2:                                         ; preds = %30, %.lr.ph.1
  %.162.1 = phi i64 [ %31, %30 ], [ %.162, %.lr.ph.1 ]
  %32 = or disjoint i64 %.06365, 2
  %33 = getelementptr inbounds i8, ptr %.059, i64 %32
  %34 = load i8, ptr %33, align 1, !tbaa !13
  switch i8 %34, label %.lr.ph.3 [
    i8 92, label %35
    i8 34, label %35
    i8 0, label %35
  ]

35:                                               ; preds = %.lr.ph.2, %.lr.ph.2, %.lr.ph.2
  %36 = add i64 %.162.1, 1
  br label %.lr.ph.3

.lr.ph.3:                                         ; preds = %35, %.lr.ph.2
  %.162.2 = phi i64 [ %36, %35 ], [ %.162.1, %.lr.ph.2 ]
  %37 = or disjoint i64 %.06365, 3
  %38 = getelementptr inbounds i8, ptr %.059, i64 %37
  %39 = load i8, ptr %38, align 1, !tbaa !13
  switch i8 %39, label %42 [
    i8 92, label %40
    i8 34, label %40
    i8 0, label %40
  ]

40:                                               ; preds = %.lr.ph.3, %.lr.ph.3, %.lr.ph.3
  %41 = add i64 %.162.2, 1
  br label %42

42:                                               ; preds = %40, %.lr.ph.3
  %.162.3 = phi i64 [ %41, %40 ], [ %.162.2, %.lr.ph.3 ]
  %43 = add nuw i64 %.06365, 4
  %niter.next.3 = add i64 %niter, 4
  %niter.ncmp.3 = icmp eq i64 %niter.next.3, %unroll_iter
  br i1 %niter.ncmp.3, label %._crit_edge.unr-lcssa, label %.lr.ph, !llvm.loop !16

._crit_edge.thread:                               ; preds = %14, %._crit_edge
  %44 = add i64 %.060, 1
  %45 = tail call noalias ptr @ponyint_pool_alloc_size(i64 noundef %44) #4
  tail call void @llvm.memcpy.p0.p0.i64(ptr align 1 %45, ptr align 1 %.059, i64 %.060, i1 false)
  %46 = getelementptr inbounds i8, ptr %45, i64 %.060
  br label %66

.lr.ph70.preheader:                               ; preds = %._crit_edge
  %47 = add i64 %.060, 1
  %48 = add i64 %47, %.162.lcssa
  %49 = tail call noalias ptr @ponyint_pool_alloc_size(i64 noundef %48) #4
  br label %.lr.ph70

._crit_edge71:                                    ; preds = %64
  %50 = getelementptr inbounds i8, ptr %49, i64 %.1
  br label %66

.lr.ph70:                                         ; preds = %.lr.ph70.preheader, %64
  %.05768 = phi i64 [ %65, %64 ], [ 0, %.lr.ph70.preheader ]
  %.05867 = phi i64 [ %.1, %64 ], [ 0, %.lr.ph70.preheader ]
  %51 = getelementptr inbounds i8, ptr %.059, i64 %.05768
  %52 = load i8, ptr %51, align 1, !tbaa !13
  switch i8 %52, label %61 [
    i8 92, label %53
    i8 34, label %53
    i8 0, label %57
  ]

53:                                               ; preds = %.lr.ph70, %.lr.ph70
  %54 = getelementptr inbounds i8, ptr %49, i64 %.05867
  store i8 92, ptr %54, align 1, !tbaa !13
  %55 = add i64 %.05867, 2
  %56 = getelementptr i8, ptr %54, i64 1
  store i8 %52, ptr %56, align 1, !tbaa !13
  br label %64

57:                                               ; preds = %.lr.ph70
  %58 = getelementptr inbounds i8, ptr %49, i64 %.05867
  store i8 92, ptr %58, align 1, !tbaa !13
  %59 = add i64 %.05867, 2
  %60 = getelementptr i8, ptr %58, i64 1
  store i8 48, ptr %60, align 1, !tbaa !13
  br label %64

61:                                               ; preds = %.lr.ph70
  %62 = add i64 %.05867, 1
  %63 = getelementptr inbounds i8, ptr %49, i64 %.05867
  store i8 %52, ptr %63, align 1, !tbaa !13
  br label %64

64:                                               ; preds = %57, %61, %53
  %.1 = phi i64 [ %55, %53 ], [ %59, %57 ], [ %62, %61 ]
  %65 = add nuw i64 %.05768, 1
  %exitcond75.not = icmp eq i64 %65, %.060
  br i1 %exitcond75.not, label %._crit_edge71, label %.lr.ph70, !llvm.loop !18

66:                                               ; preds = %._crit_edge71, %._crit_edge.thread
  %.sink = phi ptr [ %50, %._crit_edge71 ], [ %46, %._crit_edge.thread ]
  %.0 = phi ptr [ %49, %._crit_edge71 ], [ %45, %._crit_edge.thread ]
  store i8 0, ptr %.sink, align 1, !tbaa !13
  ret ptr %.0
}

; Function Attrs: mustprogress nofree nounwind willreturn memory(argmem: read)
declare i64 @strlen(ptr nocapture noundef) local_unnamed_addr #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 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
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 = { 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, !7, i64 0}
!6 = !{!"token_t", !7, i64 0, !10, i64 8, !11, i64 16, !11, i64 24, !10, i64 32, !8, i64 40, !12, i64 56}
!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 = !{!"_Bool", !8, i64 0}
!13 = !{!8, !8, i64 0}
!14 = distinct !{!14, !15}
!15 = !{!"llvm.loop.unroll.disable"}
!16 = distinct !{!16, !17}
!17 = !{!"llvm.loop.mustprogress"}
!18 = distinct !{!18, !17}


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