; LLVM IR from ramsdell/lineqpp :: lua (lcode)

; 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.expdesc = type { i32, %union.anon, i32, i32 }
%union.anon = type { double }
%struct.FuncState = type { ptr, ptr, ptr, ptr, ptr, ptr, i32, i32, i32, i32, i32, i32, i16, i8, [60 x %struct.upvaldesc], [200 x i16] }
%struct.upvaldesc = type { i8, i8 }
%struct.Proto = type { ptr, i8, i8, ptr, ptr, ptr, ptr, ptr, ptr, ptr, i32, i32, i32, i32, i32, i32, i32, i32, ptr, i8, i8, i8, i8 }
%struct.anon = type { i32, i32 }

; Function Attrs: nounwind uwtable
declare hidden void @luaK_concat(ptr noundef, ptr noundef, i32 noundef) #0

; Function Attrs: nounwind uwtable
declare hidden void @luaK_dischargevars(ptr noundef, ptr noundef) #0

; Function Attrs: nounwind uwtable
declare hidden void @luaK_exp2nextreg(ptr noundef, ptr noundef) #0

; Function Attrs: nounwind uwtable
declare hidden void @freeexp(ptr noundef, ptr noundef) #0

; Function Attrs: nounwind uwtable
declare hidden void @luaK_exp2val(ptr noundef, ptr noundef) #0

; Function Attrs: nounwind uwtable
declare hidden void @codearith(ptr noundef, i32 noundef, ptr noundef, ptr noundef) #0

; Function Attrs: nounwind uwtable
define hidden void @luaK_posfix(ptr noundef %0, i32 noundef %1, ptr noundef %2, ptr noundef %3) #0 {
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  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
  store ptr %3, ptr %8, align 8, !tbaa !5
  %9 = load i32, ptr %6, align 4, !tbaa !9
  switch i32 %9, label %153 [
    i32 13, label %10
    i32 14, label %21
    i32 6, label %32
    i32 0, label %105
    i32 1, label %109
    i32 2, label %113
    i32 3, label %117
    i32 4, label %121
    i32 5, label %125
    i32 8, label %129
    i32 7, label %133
    i32 9, label %137
    i32 10, label %141
    i32 11, label %145
    i32 12, label %149
  ]

10:                                               ; preds = %4
  %11 = load ptr, ptr %5, align 8, !tbaa !5
  %12 = load ptr, ptr %8, align 8, !tbaa !5
  call void @luaK_dischargevars(ptr noundef %11, ptr noundef %12)
  %13 = load ptr, ptr %5, align 8, !tbaa !5
  %14 = load ptr, ptr %8, align 8, !tbaa !5
  %15 = getelementptr inbounds %struct.expdesc, ptr %14, i32 0, i32 3
  %16 = load ptr, ptr %7, align 8, !tbaa !5
  %17 = getelementptr inbounds %struct.expdesc, ptr %16, i32 0, i32 3
  %18 = load i32, ptr %17, align 4, !tbaa !11
  call void @luaK_concat(ptr noundef %13, ptr noundef %15, i32 noundef %18)
  %19 = load ptr, ptr %7, align 8, !tbaa !5
  %20 = load ptr, ptr %8, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %19, ptr align 8 %20, i64 24, i1 false), !tbaa.struct !13
  br label %154

21:                                               ; preds = %4
  %22 = load ptr, ptr %5, align 8, !tbaa !5
  %23 = load ptr, ptr %8, align 8, !tbaa !5
  call void @luaK_dischargevars(ptr noundef %22, ptr noundef %23)
  %24 = load ptr, ptr %5, align 8, !tbaa !5
  %25 = load ptr, ptr %8, align 8, !tbaa !5
  %26 = getelementptr inbounds %struct.expdesc, ptr %25, i32 0, i32 2
  %27 = load ptr, ptr %7, align 8, !tbaa !5
  %28 = getelementptr inbounds %struct.expdesc, ptr %27, i32 0, i32 2
  %29 = load i32, ptr %28, align 8, !tbaa !15
  call void @luaK_concat(ptr noundef %24, ptr noundef %26, i32 noundef %29)
  %30 = load ptr, ptr %7, align 8, !tbaa !5
  %31 = load ptr, ptr %8, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %30, ptr align 8 %31, i64 24, i1 false), !tbaa.struct !13
  br label %154

32:                                               ; preds = %4
  %33 = load ptr, ptr %5, align 8, !tbaa !5
  %34 = load ptr, ptr %8, align 8, !tbaa !5
  call void @luaK_exp2val(ptr noundef %33, ptr noundef %34)
  %35 = load ptr, ptr %8, align 8, !tbaa !5
  %36 = getelementptr inbounds %struct.expdesc, ptr %35, i32 0, i32 0
  %37 = load i32, ptr %36, align 8, !tbaa !16
  %38 = icmp eq i32 %37, 11
  br i1 %38, label %39, label %98

39:                                               ; preds = %32
  %40 = load ptr, ptr %5, align 8, !tbaa !5
  %41 = getelementptr inbounds %struct.FuncState, ptr %40, i32 0, i32 0
  %42 = load ptr, ptr %41, align 8, !tbaa !17
  %43 = getelementptr inbounds %struct.Proto, ptr %42, i32 0, i32 4
  %44 = load ptr, ptr %43, align 8, !tbaa !20
  %45 = load ptr, ptr %8, align 8, !tbaa !5
  %46 = getelementptr inbounds %struct.expdesc, ptr %45, i32 0, i32 1
  %47 = getelementptr inbounds %struct.anon, ptr %46, i32 0, i32 0
  %48 = load i32, ptr %47, align 8, !tbaa !14
  %49 = sext i32 %48 to i64
  %50 = getelementptr inbounds i32, ptr %44, i64 %49
  %51 = load i32, ptr %50, align 4, !tbaa !9
  %52 = lshr i32 %51, 0
  %53 = and i32 %52, 63
  %54 = icmp eq i32 %53, 21
  br i1 %54, label %55, label %98

55:                                               ; preds = %39
  %56 = load ptr, ptr %5, align 8, !tbaa !5
  %57 = load ptr, ptr %7, align 8, !tbaa !5
  call void @freeexp(ptr noundef %56, ptr noundef %57)
  %58 = load ptr, ptr %5, align 8, !tbaa !5
  %59 = getelementptr inbounds %struct.FuncState, ptr %58, i32 0, i32 0
  %60 = load ptr, ptr %59, align 8, !tbaa !17
  %61 = getelementptr inbounds %struct.Proto, ptr %60, i32 0, i32 4
  %62 = load ptr, ptr %61, align 8, !tbaa !20
  %63 = load ptr, ptr %8, align 8, !tbaa !5
  %64 = getelementptr inbounds %struct.expdesc, ptr %63, i32 0, i32 1
  %65 = getelementptr inbounds %struct.anon, ptr %64, i32 0, i32 0
  %66 = load i32, ptr %65, align 8, !tbaa !14
  %67 = sext i32 %66 to i64
  %68 = getelementptr inbounds i32, ptr %62, i64 %67
  %69 = load i32, ptr %68, align 4, !tbaa !9
  %70 = and i32 %69, 8388607
  %71 = load ptr, ptr %7, align 8, !tbaa !5
  %72 = getelementptr inbounds %struct.expdesc, ptr %71, i32 0, i32 1
  %73 = getelementptr inbounds %struct.anon, ptr %72, i32 0, i32 0
  %74 = load i32, ptr %73, align 8, !tbaa !14
  %75 = shl i32 %74, 23
  %76 = and i32 %75, -8388608
  %77 = or i32 %70, %76
  %78 = load ptr, ptr %5, align 8, !tbaa !5
  %79 = getelementptr inbounds %struct.FuncState, ptr %78, i32 0, i32 0
  %80 = load ptr, ptr %79, align 8, !tbaa !17
  %81 = getelementptr inbounds %struct.Proto, ptr %80, i32 0, i32 4
  %82 = load ptr, ptr %81, align 8, !tbaa !20
  %83 = load ptr, ptr %8, align 8, !tbaa !5
  %84 = getelementptr inbounds %struct.expdesc, ptr %83, i32 0, i32 1
  %85 = getelementptr inbounds %struct.anon, ptr %84, i32 0, i32 0
  %86 = load i32, ptr %85, align 8, !tbaa !14
  %87 = sext i32 %86 to i64
  %88 = getelementptr inbounds i32, ptr %82, i64 %87
  store i32 %77, ptr %88, align 4, !tbaa !9
  %89 = load ptr, ptr %7, align 8, !tbaa !5
  %90 = getelementptr inbounds %struct.expdesc, ptr %89, i32 0, i32 0
  store i32 11, ptr %90, align 8, !tbaa !16
  %91 = load ptr, ptr %8, align 8, !tbaa !5
  %92 = getelementptr inbounds %struct.expdesc, ptr %91, i32 0, i32 1
  %93 = getelementptr inbounds %struct.anon, ptr %92, i32 0, i32 0
  %94 = load i32, ptr %93, align 8, !tbaa !14
  %95 = load ptr, ptr %7, align 8, !tbaa !5
  %96 = getelementptr inbounds %struct.expdesc, ptr %95, i32 0, i32 1
  %97 = getelementptr inbounds %struct.anon, ptr %96, i32 0, i32 0
  store i32 %94, ptr %97, align 8, !tbaa !14
  br label %104

98:                                               ; preds = %39, %32
  %99 = load ptr, ptr %5, align 8, !tbaa !5
  %100 = load ptr, ptr %8, align 8, !tbaa !5
  call void @luaK_exp2nextreg(ptr noundef %99, ptr noundef %100)
  %101 = load ptr, ptr %5, align 8, !tbaa !5
  %102 = load ptr, ptr %7, align 8, !tbaa !5
  %103 = load ptr, ptr %8, align 8, !tbaa !5
  call void @codearith(ptr noundef %101, i32 noundef 21, ptr noundef %102, ptr noundef %103)
  br label %104

104:                                              ; preds = %98, %55
  br label %154

105:                                              ; preds = %4
  %106 = load ptr, ptr %5, align 8, !tbaa !5
  %107 = load ptr, ptr %7, align 8, !tbaa !5
  %108 = load ptr, ptr %8, align 8, !tbaa !5
  call void @codearith(ptr noundef %106, i32 noundef 12, ptr noundef %107, ptr noundef %108)
  br label %154

109:                                              ; preds = %4
  %110 = load ptr, ptr %5, align 8, !tbaa !5
  %111 = load ptr, ptr %7, align 8, !tbaa !5
  %112 = load ptr, ptr %8, align 8, !tbaa !5
  call void @codearith(ptr noundef %110, i32 noundef 13, ptr noundef %111, ptr noundef %112)
  br label %154

113:                                              ; preds = %4
  %114 = load ptr, ptr %5, align 8, !tbaa !5
  %115 = load ptr, ptr %7, align 8, !tbaa !5
  %116 = load ptr, ptr %8, align 8, !tbaa !5
  call void @codearith(ptr noundef %114, i32 noundef 14, ptr noundef %115, ptr noundef %116)
  br label %154

117:                                              ; preds = %4
  %118 = load ptr, ptr %5, align 8, !tbaa !5
  %119 = load ptr, ptr %7, align 8, !tbaa !5
  %120 = load ptr, ptr %8, align 8, !tbaa !5
  call void @codearith(ptr noundef %118, i32 noundef 15, ptr noundef %119, ptr noundef %120)
  br label %154

121:                                              ; preds = %4
  %122 = load ptr, ptr %5, align 8, !tbaa !5
  %123 = load ptr, ptr %7, align 8, !tbaa !5
  %124 = load ptr, ptr %8, align 8, !tbaa !5
  call void @codearith(ptr noundef %122, i32 noundef 16, ptr noundef %123, ptr noundef %124)
  br label %154

125:                                              ; preds = %4
  %126 = load ptr, ptr %5, align 8, !tbaa !5
  %127 = load ptr, ptr %7, align 8, !tbaa !5
  %128 = load ptr, ptr %8, align 8, !tbaa !5
  call void @codearith(ptr noundef %126, i32 noundef 17, ptr noundef %127, ptr noundef %128)
  br label %154

129:                                              ; preds = %4
  %130 = load ptr, ptr %5, align 8, !tbaa !5
  %131 = load ptr, ptr %7, align 8, !tbaa !5
  %132 = load ptr, ptr %8, align 8, !tbaa !5
  call void @codecomp(ptr noundef %130, i32 noundef 23, i32 noundef 1, ptr noundef %131, ptr noundef %132)
  br label %154

133:                                              ; preds = %4
  %134 = load ptr, ptr %5, align 8, !tbaa !5
  %135 = load ptr, ptr %7, align 8, !tbaa !5
  %136 = load ptr, ptr %8, align 8, !tbaa !5
  call void @codecomp(ptr noundef %134, i32 noundef 23, i32 noundef 0, ptr noundef %135, ptr noundef %136)
  br label %154

137:                                              ; preds = %4
  %138 = load ptr, ptr %5, align 8, !tbaa !5
  %139 = load ptr, ptr %7, align 8, !tbaa !5
  %140 = load ptr, ptr %8, align 8, !tbaa !5
  call void @codecomp(ptr noundef %138, i32 noundef 24, i32 noundef 1, ptr noundef %139, ptr noundef %140)
  br label %154

141:                                              ; preds = %4
  %142 = load ptr, ptr %5, align 8, !tbaa !5
  %143 = load ptr, ptr %7, align 8, !tbaa !5
  %144 = load ptr, ptr %8, align 8, !tbaa !5
  call void @codecomp(ptr noundef %142, i32 noundef 25, i32 noundef 1, ptr noundef %143, ptr noundef %144)
  br label %154

145:                                              ; preds = %4
  %146 = load ptr, ptr %5, align 8, !tbaa !5
  %147 = load ptr, ptr %7, align 8, !tbaa !5
  %148 = load ptr, ptr %8, align 8, !tbaa !5
  call void @codecomp(ptr noundef %146, i32 noundef 24, i32 noundef 0, ptr noundef %147, ptr noundef %148)
  br label %154

149:                                              ; preds = %4
  %150 = load ptr, ptr %5, align 8, !tbaa !5
  %151 = load ptr, ptr %7, align 8, !tbaa !5
  %152 = load ptr, ptr %8, align 8, !tbaa !5
  call void @codecomp(ptr noundef %150, i32 noundef 25, i32 noundef 0, ptr noundef %151, ptr noundef %152)
  br label %154

153:                                              ; preds = %4
  br label %154

154:                                              ; preds = %153, %149, %145, %141, %137, %133, %129, %125, %121, %117, %113, %109, %105, %104, %21, %10
  ret void
}

; 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) #1

; Function Attrs: nounwind uwtable
declare hidden void @codecomp(ptr noundef, i32 noundef, i32 noundef, ptr noundef, ptr noundef) #0

attributes #0 = { 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 #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }

!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, !10, i64 20}
!12 = !{!"expdesc", !10, i64 0, !7, i64 8, !10, i64 16, !10, i64 20}
!13 = !{i64 0, i64 4, !9, i64 8, i64 8, !14, i64 16, i64 4, !9, i64 20, i64 4, !9}
!14 = !{!7, !7, i64 0}
!15 = !{!12, !10, i64 16}
!16 = !{!12, !10, i64 0}
!17 = !{!18, !6, i64 0}
!18 = !{!"FuncState", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !10, i64 48, !10, i64 52, !10, i64 56, !10, i64 60, !10, i64 64, !10, i64 68, !19, i64 72, !7, i64 74, !7, i64 75, !7, i64 196}
!19 = !{!"short", !7, i64 0}
!20 = !{!21, !6, i64 24}
!21 = !{!"Proto", !6, i64 0, !7, i64 8, !7, i64 9, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !6, i64 56, !6, i64 64, !10, i64 72, !10, i64 76, !10, i64 80, !10, i64 84, !10, i64 88, !10, i64 92, !10, i64 96, !10, i64 100, !6, i64 104, !7, i64 112, !7, i64 113, !7, i64 114, !7, i64 115}


; 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: nounwind uwtable
declare hidden void @luaK_concat(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare hidden void @luaK_dischargevars(ptr noundef, ptr noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare hidden void @luaK_exp2nextreg(ptr noundef, ptr noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare hidden void @freeexp(ptr noundef, ptr noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare hidden void @luaK_exp2val(ptr noundef, ptr noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare hidden void @codearith(ptr noundef, i32 noundef, ptr noundef, ptr noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
define hidden void @luaK_posfix(ptr noundef %0, i32 noundef %1, ptr noundef %2, ptr noundef %3) local_unnamed_addr #0 {
  switch i32 %1, label %54 [
    i32 13, label %5
    i32 14, label %9
    i32 6, label %13
    i32 0, label %42
    i32 1, label %43
    i32 2, label %44
    i32 3, label %45
    i32 4, label %46
    i32 5, label %47
    i32 8, label %48
    i32 7, label %49
    i32 9, label %50
    i32 10, label %51
    i32 11, label %52
    i32 12, label %53
  ]

5:                                                ; preds = %4
  tail call void @luaK_dischargevars(ptr noundef %0, ptr noundef %3)
  %6 = getelementptr inbounds i8, ptr %3, i64 20
  %7 = getelementptr inbounds i8, ptr %2, i64 20
  %8 = load i32, ptr %7, align 4, !tbaa !5
  tail call void @luaK_concat(ptr noundef %0, ptr noundef nonnull %6, i32 noundef %8)
  tail call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %2, ptr noundef nonnull align 8 dereferenceable(24) %3, i64 24, i1 false), !tbaa.struct !10
  br label %54

9:                                                ; preds = %4
  tail call void @luaK_dischargevars(ptr noundef %0, ptr noundef %3)
  %10 = getelementptr inbounds i8, ptr %3, i64 16
  %11 = getelementptr inbounds i8, ptr %2, i64 16
  %12 = load i32, ptr %11, align 8, !tbaa !13
  tail call void @luaK_concat(ptr noundef %0, ptr noundef nonnull %10, i32 noundef %12)
  tail call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %2, ptr noundef nonnull align 8 dereferenceable(24) %3, i64 24, i1 false), !tbaa.struct !10
  br label %54

13:                                               ; preds = %4
  tail call void @luaK_exp2val(ptr noundef %0, ptr noundef %3)
  %14 = load i32, ptr %3, align 8, !tbaa !14
  %15 = icmp eq i32 %14, 11
  br i1 %15, label %16, label %41

16:                                               ; preds = %13
  %17 = load ptr, ptr %0, align 8, !tbaa !15
  %18 = getelementptr inbounds i8, ptr %17, i64 24
  %19 = load ptr, ptr %18, align 8, !tbaa !19
  %20 = getelementptr inbounds i8, ptr %3, i64 8
  %21 = load i32, ptr %20, align 8, !tbaa !12
  %22 = sext i32 %21 to i64
  %23 = getelementptr inbounds i32, ptr %19, i64 %22
  %24 = load i32, ptr %23, align 4, !tbaa !11
  %25 = and i32 %24, 63
  %26 = icmp eq i32 %25, 21
  br i1 %26, label %27, label %41

27:                                               ; preds = %16
  tail call void @freeexp(ptr noundef nonnull %0, ptr noundef %2)
  %28 = load ptr, ptr %0, align 8, !tbaa !15
  %29 = getelementptr inbounds i8, ptr %28, i64 24
  %30 = load ptr, ptr %29, align 8, !tbaa !19
  %31 = load i32, ptr %20, align 8, !tbaa !12
  %32 = sext i32 %31 to i64
  %33 = getelementptr inbounds i32, ptr %30, i64 %32
  %34 = load i32, ptr %33, align 4, !tbaa !11
  %35 = and i32 %34, 8388607
  %36 = getelementptr inbounds i8, ptr %2, i64 8
  %37 = load i32, ptr %36, align 8, !tbaa !12
  %38 = shl i32 %37, 23
  %39 = or disjoint i32 %38, %35
  store i32 %39, ptr %33, align 4, !tbaa !11
  store i32 11, ptr %2, align 8, !tbaa !14
  %40 = load i32, ptr %20, align 8, !tbaa !12
  store i32 %40, ptr %36, align 8, !tbaa !12
  br label %54

41:                                               ; preds = %16, %13
  tail call void @luaK_exp2nextreg(ptr noundef %0, ptr noundef nonnull %3)
  tail call void @codearith(ptr noundef %0, i32 noundef 21, ptr noundef %2, ptr noundef nonnull %3)
  br label %54

42:                                               ; preds = %4
  tail call void @codearith(ptr noundef %0, i32 noundef 12, ptr noundef %2, ptr noundef %3)
  br label %54

43:                                               ; preds = %4
  tail call void @codearith(ptr noundef %0, i32 noundef 13, ptr noundef %2, ptr noundef %3)
  br label %54

44:                                               ; preds = %4
  tail call void @codearith(ptr noundef %0, i32 noundef 14, ptr noundef %2, ptr noundef %3)
  br label %54

45:                                               ; preds = %4
  tail call void @codearith(ptr noundef %0, i32 noundef 15, ptr noundef %2, ptr noundef %3)
  br label %54

46:                                               ; preds = %4
  tail call void @codearith(ptr noundef %0, i32 noundef 16, ptr noundef %2, ptr noundef %3)
  br label %54

47:                                               ; preds = %4
  tail call void @codearith(ptr noundef %0, i32 noundef 17, ptr noundef %2, ptr noundef %3)
  br label %54

48:                                               ; preds = %4
  tail call void @codecomp(ptr noundef %0, i32 noundef 23, i32 noundef 1, ptr noundef %2, ptr noundef %3)
  br label %54

49:                                               ; preds = %4
  tail call void @codecomp(ptr noundef %0, i32 noundef 23, i32 noundef 0, ptr noundef %2, ptr noundef %3)
  br label %54

50:                                               ; preds = %4
  tail call void @codecomp(ptr noundef %0, i32 noundef 24, i32 noundef 1, ptr noundef %2, ptr noundef %3)
  br label %54

51:                                               ; preds = %4
  tail call void @codecomp(ptr noundef %0, i32 noundef 25, i32 noundef 1, ptr noundef %2, ptr noundef %3)
  br label %54

52:                                               ; preds = %4
  tail call void @codecomp(ptr noundef %0, i32 noundef 24, i32 noundef 0, ptr noundef %2, ptr noundef %3)
  br label %54

53:                                               ; preds = %4
  tail call void @codecomp(ptr noundef %0, i32 noundef 25, i32 noundef 0, ptr noundef %2, ptr noundef %3)
  br label %54

54:                                               ; preds = %4, %27, %41, %53, %52, %51, %50, %49, %48, %47, %46, %45, %44, %43, %42, %9, %5
  ret void
}

; 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 hidden void @codecomp(ptr noundef, i32 noundef, i32 noundef, ptr noundef, ptr noundef) local_unnamed_addr #0

attributes #0 = { 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 #1 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }

!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 20}
!6 = !{!"expdesc", !7, i64 0, !8, i64 8, !7, i64 16, !7, i64 20}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{i64 0, i64 4, !11, i64 8, i64 8, !12, i64 16, i64 4, !11, i64 20, i64 4, !11}
!11 = !{!7, !7, i64 0}
!12 = !{!8, !8, i64 0}
!13 = !{!6, !7, i64 16}
!14 = !{!6, !7, i64 0}
!15 = !{!16, !17, i64 0}
!16 = !{!"FuncState", !17, i64 0, !17, i64 8, !17, i64 16, !17, i64 24, !17, i64 32, !17, i64 40, !7, i64 48, !7, i64 52, !7, i64 56, !7, i64 60, !7, i64 64, !7, i64 68, !18, i64 72, !8, i64 74, !8, i64 75, !8, i64 196}
!17 = !{!"any pointer", !8, i64 0}
!18 = !{!"short", !8, i64 0}
!19 = !{!20, !17, i64 24}
!20 = !{!"Proto", !17, i64 0, !8, i64 8, !8, i64 9, !17, i64 16, !17, i64 24, !17, i64 32, !17, i64 40, !17, i64 48, !17, i64 56, !17, i64 64, !7, i64 72, !7, i64 76, !7, i64 80, !7, i64 84, !7, i64 88, !7, i64 92, !7, i64 96, !7, i64 100, !17, i64 104, !8, i64 112, !8, i64 113, !8, i64 114, !8, i64 115}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass