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

; 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.lua_State = type { ptr, i8, i8, i8, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, i32, i32, i16, i16, i8, i8, i32, i32, ptr, %struct.lua_TValue, %struct.lua_TValue, ptr, ptr, ptr, i64 }
%struct.lua_TValue = type { %union.Value, i32 }
%union.Value = type { ptr }
%struct.global_State = type { %struct.stringtable, ptr, ptr, i8, i8, i32, ptr, ptr, ptr, ptr, ptr, ptr, %struct.Mbuffer, i64, i64, i64, i64, i32, i32, ptr, %struct.lua_TValue, ptr, %struct.UpVal, [9 x ptr], [17 x ptr] }
%struct.stringtable = type { ptr, i32, i32 }
%struct.Mbuffer = type { ptr, i64, i64 }
%struct.UpVal = type { ptr, i8, i8, ptr, %union.anon }
%union.anon = type { %struct.lua_TValue }
%struct.anon.0 = type { ptr, i8, i8, i8, i32, i64 }

@luaT_init.luaT_eventname = external hidden constant [17 x ptr], align 16

; Function Attrs: nounwind uwtable
define hidden void @luaT_init(ptr noundef %0) #0 {
  %2 = alloca ptr, align 8
  %3 = alloca i32, align 4
  store ptr %0, ptr %2, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #4
  store i32 0, ptr %3, align 4, !tbaa !9
  br label %4

4:                                                ; preds = %39, %1
  %5 = load i32, ptr %3, align 4, !tbaa !9
  %6 = icmp slt i32 %5, 17
  br i1 %6, label %7, label %42

7:                                                ; preds = %4
  %8 = load ptr, ptr %2, align 8, !tbaa !5
  %9 = load i32, ptr %3, align 4, !tbaa !9
  %10 = sext i32 %9 to i64
  %11 = getelementptr inbounds [17 x ptr], ptr @luaT_init.luaT_eventname, i64 0, i64 %10
  %12 = load ptr, ptr %11, align 8, !tbaa !5
  %13 = load i32, ptr %3, align 4, !tbaa !9
  %14 = sext i32 %13 to i64
  %15 = getelementptr inbounds [17 x ptr], ptr @luaT_init.luaT_eventname, i64 0, i64 %14
  %16 = load ptr, ptr %15, align 8, !tbaa !5
  %17 = call i64 @strlen(ptr noundef %16) #5
  %18 = call ptr @luaS_newlstr(ptr noundef %8, ptr noundef %12, i64 noundef %17)
  %19 = load ptr, ptr %2, align 8, !tbaa !5
  %20 = getelementptr inbounds %struct.lua_State, ptr %19, i32 0, i32 6
  %21 = load ptr, ptr %20, align 8, !tbaa !11
  %22 = getelementptr inbounds %struct.global_State, ptr %21, i32 0, i32 24
  %23 = load i32, ptr %3, align 4, !tbaa !9
  %24 = sext i32 %23 to i64
  %25 = getelementptr inbounds [17 x ptr], ptr %22, i64 0, i64 %24
  store ptr %18, ptr %25, align 8, !tbaa !5
  %26 = load ptr, ptr %2, align 8, !tbaa !5
  %27 = getelementptr inbounds %struct.lua_State, ptr %26, i32 0, i32 6
  %28 = load ptr, ptr %27, align 8, !tbaa !11
  %29 = getelementptr inbounds %struct.global_State, ptr %28, i32 0, i32 24
  %30 = load i32, ptr %3, align 4, !tbaa !9
  %31 = sext i32 %30 to i64
  %32 = getelementptr inbounds [17 x ptr], ptr %29, i64 0, i64 %31
  %33 = load ptr, ptr %32, align 8, !tbaa !5
  %34 = getelementptr inbounds %struct.anon.0, ptr %33, i32 0, i32 2
  %35 = load i8, ptr %34, align 1, !tbaa !16
  %36 = zext i8 %35 to i32
  %37 = or i32 %36, 32
  %38 = trunc i32 %37 to i8
  store i8 %38, ptr %34, align 1, !tbaa !16
  br label %39

39:                                               ; preds = %7
  %40 = load i32, ptr %3, align 4, !tbaa !9
  %41 = add nsw i32 %40, 1
  store i32 %41, ptr %3, align 4, !tbaa !9
  br label %4, !llvm.loop !17

42:                                               ; preds = %4
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #4
  ret void
}

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

declare hidden ptr @luaS_newlstr(ptr noundef, ptr noundef, i64 noundef) #2

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

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

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 nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind 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 }
attributes #5 = { nounwind willreturn memory(read) }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !6, i64 32}
!12 = !{!"lua_State", !6, i64 0, !7, i64 8, !7, i64 9, !7, i64 10, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !6, i64 56, !6, i64 64, !6, i64 72, !6, i64 80, !10, i64 88, !10, i64 92, !13, i64 96, !13, i64 98, !7, i64 100, !7, i64 101, !10, i64 104, !10, i64 108, !6, i64 112, !14, i64 120, !14, i64 136, !6, i64 152, !6, i64 160, !6, i64 168, !15, i64 176}
!13 = !{!"short", !7, i64 0}
!14 = !{!"lua_TValue", !7, i64 0, !10, i64 8}
!15 = !{!"long", !7, i64 0}
!16 = !{!7, !7, i64 0}
!17 = distinct !{!17, !18}
!18 = !{!"llvm.loop.mustprogress"}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

@luaT_init.luaT_eventname = external hidden local_unnamed_addr constant [17 x ptr], align 16

; Function Attrs: nounwind uwtable
define hidden void @luaT_init(ptr noundef %0) local_unnamed_addr #0 {
  %2 = getelementptr inbounds i8, ptr %0, i64 32
  %3 = load ptr, ptr @luaT_init.luaT_eventname, align 16, !tbaa !5
  %4 = tail call i64 @strlen(ptr noundef nonnull dereferenceable(1) %3) #3
  %5 = tail call ptr @luaS_newlstr(ptr noundef %0, ptr noundef %3, i64 noundef %4) #4
  %6 = load ptr, ptr %2, align 8, !tbaa !9
  %7 = getelementptr inbounds i8, ptr %6, i64 296
  store ptr %5, ptr %7, align 8, !tbaa !5
  %8 = load ptr, ptr %2, align 8, !tbaa !9
  %9 = getelementptr inbounds i8, ptr %8, i64 296
  %10 = load ptr, ptr %9, align 8, !tbaa !5
  %11 = getelementptr inbounds i8, ptr %10, i64 9
  %12 = load i8, ptr %11, align 1, !tbaa !15
  %13 = or i8 %12, 32
  store i8 %13, ptr %11, align 1, !tbaa !15
  %14 = load ptr, ptr getelementptr inbounds (i8, ptr @luaT_init.luaT_eventname, i64 8), align 8, !tbaa !5
  %15 = tail call i64 @strlen(ptr noundef nonnull dereferenceable(1) %14) #3
  %16 = tail call ptr @luaS_newlstr(ptr noundef %0, ptr noundef %14, i64 noundef %15) #4
  %17 = load ptr, ptr %2, align 8, !tbaa !9
  %18 = getelementptr inbounds i8, ptr %17, i64 304
  store ptr %16, ptr %18, align 8, !tbaa !5
  %19 = load ptr, ptr %2, align 8, !tbaa !9
  %20 = getelementptr inbounds i8, ptr %19, i64 304
  %21 = load ptr, ptr %20, align 8, !tbaa !5
  %22 = getelementptr inbounds i8, ptr %21, i64 9
  %23 = load i8, ptr %22, align 1, !tbaa !15
  %24 = or i8 %23, 32
  store i8 %24, ptr %22, align 1, !tbaa !15
  %25 = load ptr, ptr getelementptr inbounds (i8, ptr @luaT_init.luaT_eventname, i64 16), align 16, !tbaa !5
  %26 = tail call i64 @strlen(ptr noundef nonnull dereferenceable(1) %25) #3
  %27 = tail call ptr @luaS_newlstr(ptr noundef %0, ptr noundef %25, i64 noundef %26) #4
  %28 = load ptr, ptr %2, align 8, !tbaa !9
  %29 = getelementptr inbounds i8, ptr %28, i64 312
  store ptr %27, ptr %29, align 8, !tbaa !5
  %30 = load ptr, ptr %2, align 8, !tbaa !9
  %31 = getelementptr inbounds i8, ptr %30, i64 312
  %32 = load ptr, ptr %31, align 8, !tbaa !5
  %33 = getelementptr inbounds i8, ptr %32, i64 9
  %34 = load i8, ptr %33, align 1, !tbaa !15
  %35 = or i8 %34, 32
  store i8 %35, ptr %33, align 1, !tbaa !15
  %36 = load ptr, ptr getelementptr inbounds (i8, ptr @luaT_init.luaT_eventname, i64 24), align 8, !tbaa !5
  %37 = tail call i64 @strlen(ptr noundef nonnull dereferenceable(1) %36) #3
  %38 = tail call ptr @luaS_newlstr(ptr noundef %0, ptr noundef %36, i64 noundef %37) #4
  %39 = load ptr, ptr %2, align 8, !tbaa !9
  %40 = getelementptr inbounds i8, ptr %39, i64 320
  store ptr %38, ptr %40, align 8, !tbaa !5
  %41 = load ptr, ptr %2, align 8, !tbaa !9
  %42 = getelementptr inbounds i8, ptr %41, i64 320
  %43 = load ptr, ptr %42, align 8, !tbaa !5
  %44 = getelementptr inbounds i8, ptr %43, i64 9
  %45 = load i8, ptr %44, align 1, !tbaa !15
  %46 = or i8 %45, 32
  store i8 %46, ptr %44, align 1, !tbaa !15
  %47 = load ptr, ptr getelementptr inbounds (i8, ptr @luaT_init.luaT_eventname, i64 32), align 16, !tbaa !5
  %48 = tail call i64 @strlen(ptr noundef nonnull dereferenceable(1) %47) #3
  %49 = tail call ptr @luaS_newlstr(ptr noundef %0, ptr noundef %47, i64 noundef %48) #4
  %50 = load ptr, ptr %2, align 8, !tbaa !9
  %51 = getelementptr inbounds i8, ptr %50, i64 328
  store ptr %49, ptr %51, align 8, !tbaa !5
  %52 = load ptr, ptr %2, align 8, !tbaa !9
  %53 = getelementptr inbounds i8, ptr %52, i64 328
  %54 = load ptr, ptr %53, align 8, !tbaa !5
  %55 = getelementptr inbounds i8, ptr %54, i64 9
  %56 = load i8, ptr %55, align 1, !tbaa !15
  %57 = or i8 %56, 32
  store i8 %57, ptr %55, align 1, !tbaa !15
  %58 = load ptr, ptr getelementptr inbounds (i8, ptr @luaT_init.luaT_eventname, i64 40), align 8, !tbaa !5
  %59 = tail call i64 @strlen(ptr noundef nonnull dereferenceable(1) %58) #3
  %60 = tail call ptr @luaS_newlstr(ptr noundef %0, ptr noundef %58, i64 noundef %59) #4
  %61 = load ptr, ptr %2, align 8, !tbaa !9
  %62 = getelementptr inbounds i8, ptr %61, i64 336
  store ptr %60, ptr %62, align 8, !tbaa !5
  %63 = load ptr, ptr %2, align 8, !tbaa !9
  %64 = getelementptr inbounds i8, ptr %63, i64 336
  %65 = load ptr, ptr %64, align 8, !tbaa !5
  %66 = getelementptr inbounds i8, ptr %65, i64 9
  %67 = load i8, ptr %66, align 1, !tbaa !15
  %68 = or i8 %67, 32
  store i8 %68, ptr %66, align 1, !tbaa !15
  %69 = load ptr, ptr getelementptr inbounds (i8, ptr @luaT_init.luaT_eventname, i64 48), align 16, !tbaa !5
  %70 = tail call i64 @strlen(ptr noundef nonnull dereferenceable(1) %69) #3
  %71 = tail call ptr @luaS_newlstr(ptr noundef %0, ptr noundef %69, i64 noundef %70) #4
  %72 = load ptr, ptr %2, align 8, !tbaa !9
  %73 = getelementptr inbounds i8, ptr %72, i64 344
  store ptr %71, ptr %73, align 8, !tbaa !5
  %74 = load ptr, ptr %2, align 8, !tbaa !9
  %75 = getelementptr inbounds i8, ptr %74, i64 344
  %76 = load ptr, ptr %75, align 8, !tbaa !5
  %77 = getelementptr inbounds i8, ptr %76, i64 9
  %78 = load i8, ptr %77, align 1, !tbaa !15
  %79 = or i8 %78, 32
  store i8 %79, ptr %77, align 1, !tbaa !15
  %80 = load ptr, ptr getelementptr inbounds (i8, ptr @luaT_init.luaT_eventname, i64 56), align 8, !tbaa !5
  %81 = tail call i64 @strlen(ptr noundef nonnull dereferenceable(1) %80) #3
  %82 = tail call ptr @luaS_newlstr(ptr noundef %0, ptr noundef %80, i64 noundef %81) #4
  %83 = load ptr, ptr %2, align 8, !tbaa !9
  %84 = getelementptr inbounds i8, ptr %83, i64 352
  store ptr %82, ptr %84, align 8, !tbaa !5
  %85 = load ptr, ptr %2, align 8, !tbaa !9
  %86 = getelementptr inbounds i8, ptr %85, i64 352
  %87 = load ptr, ptr %86, align 8, !tbaa !5
  %88 = getelementptr inbounds i8, ptr %87, i64 9
  %89 = load i8, ptr %88, align 1, !tbaa !15
  %90 = or i8 %89, 32
  store i8 %90, ptr %88, align 1, !tbaa !15
  %91 = load ptr, ptr getelementptr inbounds (i8, ptr @luaT_init.luaT_eventname, i64 64), align 16, !tbaa !5
  %92 = tail call i64 @strlen(ptr noundef nonnull dereferenceable(1) %91) #3
  %93 = tail call ptr @luaS_newlstr(ptr noundef %0, ptr noundef %91, i64 noundef %92) #4
  %94 = load ptr, ptr %2, align 8, !tbaa !9
  %95 = getelementptr inbounds i8, ptr %94, i64 360
  store ptr %93, ptr %95, align 8, !tbaa !5
  %96 = load ptr, ptr %2, align 8, !tbaa !9
  %97 = getelementptr inbounds i8, ptr %96, i64 360
  %98 = load ptr, ptr %97, align 8, !tbaa !5
  %99 = getelementptr inbounds i8, ptr %98, i64 9
  %100 = load i8, ptr %99, align 1, !tbaa !15
  %101 = or i8 %100, 32
  store i8 %101, ptr %99, align 1, !tbaa !15
  %102 = load ptr, ptr getelementptr inbounds (i8, ptr @luaT_init.luaT_eventname, i64 72), align 8, !tbaa !5
  %103 = tail call i64 @strlen(ptr noundef nonnull dereferenceable(1) %102) #3
  %104 = tail call ptr @luaS_newlstr(ptr noundef %0, ptr noundef %102, i64 noundef %103) #4
  %105 = load ptr, ptr %2, align 8, !tbaa !9
  %106 = getelementptr inbounds i8, ptr %105, i64 368
  store ptr %104, ptr %106, align 8, !tbaa !5
  %107 = load ptr, ptr %2, align 8, !tbaa !9
  %108 = getelementptr inbounds i8, ptr %107, i64 368
  %109 = load ptr, ptr %108, align 8, !tbaa !5
  %110 = getelementptr inbounds i8, ptr %109, i64 9
  %111 = load i8, ptr %110, align 1, !tbaa !15
  %112 = or i8 %111, 32
  store i8 %112, ptr %110, align 1, !tbaa !15
  %113 = load ptr, ptr getelementptr inbounds (i8, ptr @luaT_init.luaT_eventname, i64 80), align 16, !tbaa !5
  %114 = tail call i64 @strlen(ptr noundef nonnull dereferenceable(1) %113) #3
  %115 = tail call ptr @luaS_newlstr(ptr noundef %0, ptr noundef %113, i64 noundef %114) #4
  %116 = load ptr, ptr %2, align 8, !tbaa !9
  %117 = getelementptr inbounds i8, ptr %116, i64 376
  store ptr %115, ptr %117, align 8, !tbaa !5
  %118 = load ptr, ptr %2, align 8, !tbaa !9
  %119 = getelementptr inbounds i8, ptr %118, i64 376
  %120 = load ptr, ptr %119, align 8, !tbaa !5
  %121 = getelementptr inbounds i8, ptr %120, i64 9
  %122 = load i8, ptr %121, align 1, !tbaa !15
  %123 = or i8 %122, 32
  store i8 %123, ptr %121, align 1, !tbaa !15
  %124 = load ptr, ptr getelementptr inbounds (i8, ptr @luaT_init.luaT_eventname, i64 88), align 8, !tbaa !5
  %125 = tail call i64 @strlen(ptr noundef nonnull dereferenceable(1) %124) #3
  %126 = tail call ptr @luaS_newlstr(ptr noundef %0, ptr noundef %124, i64 noundef %125) #4
  %127 = load ptr, ptr %2, align 8, !tbaa !9
  %128 = getelementptr inbounds i8, ptr %127, i64 384
  store ptr %126, ptr %128, align 8, !tbaa !5
  %129 = load ptr, ptr %2, align 8, !tbaa !9
  %130 = getelementptr inbounds i8, ptr %129, i64 384
  %131 = load ptr, ptr %130, align 8, !tbaa !5
  %132 = getelementptr inbounds i8, ptr %131, i64 9
  %133 = load i8, ptr %132, align 1, !tbaa !15
  %134 = or i8 %133, 32
  store i8 %134, ptr %132, align 1, !tbaa !15
  %135 = load ptr, ptr getelementptr inbounds (i8, ptr @luaT_init.luaT_eventname, i64 96), align 16, !tbaa !5
  %136 = tail call i64 @strlen(ptr noundef nonnull dereferenceable(1) %135) #3
  %137 = tail call ptr @luaS_newlstr(ptr noundef %0, ptr noundef %135, i64 noundef %136) #4
  %138 = load ptr, ptr %2, align 8, !tbaa !9
  %139 = getelementptr inbounds i8, ptr %138, i64 392
  store ptr %137, ptr %139, align 8, !tbaa !5
  %140 = load ptr, ptr %2, align 8, !tbaa !9
  %141 = getelementptr inbounds i8, ptr %140, i64 392
  %142 = load ptr, ptr %141, align 8, !tbaa !5
  %143 = getelementptr inbounds i8, ptr %142, i64 9
  %144 = load i8, ptr %143, align 1, !tbaa !15
  %145 = or i8 %144, 32
  store i8 %145, ptr %143, align 1, !tbaa !15
  %146 = load ptr, ptr getelementptr inbounds (i8, ptr @luaT_init.luaT_eventname, i64 104), align 8, !tbaa !5
  %147 = tail call i64 @strlen(ptr noundef nonnull dereferenceable(1) %146) #3
  %148 = tail call ptr @luaS_newlstr(ptr noundef %0, ptr noundef %146, i64 noundef %147) #4
  %149 = load ptr, ptr %2, align 8, !tbaa !9
  %150 = getelementptr inbounds i8, ptr %149, i64 400
  store ptr %148, ptr %150, align 8, !tbaa !5
  %151 = load ptr, ptr %2, align 8, !tbaa !9
  %152 = getelementptr inbounds i8, ptr %151, i64 400
  %153 = load ptr, ptr %152, align 8, !tbaa !5
  %154 = getelementptr inbounds i8, ptr %153, i64 9
  %155 = load i8, ptr %154, align 1, !tbaa !15
  %156 = or i8 %155, 32
  store i8 %156, ptr %154, align 1, !tbaa !15
  %157 = load ptr, ptr getelementptr inbounds (i8, ptr @luaT_init.luaT_eventname, i64 112), align 16, !tbaa !5
  %158 = tail call i64 @strlen(ptr noundef nonnull dereferenceable(1) %157) #3
  %159 = tail call ptr @luaS_newlstr(ptr noundef %0, ptr noundef %157, i64 noundef %158) #4
  %160 = load ptr, ptr %2, align 8, !tbaa !9
  %161 = getelementptr inbounds i8, ptr %160, i64 408
  store ptr %159, ptr %161, align 8, !tbaa !5
  %162 = load ptr, ptr %2, align 8, !tbaa !9
  %163 = getelementptr inbounds i8, ptr %162, i64 408
  %164 = load ptr, ptr %163, align 8, !tbaa !5
  %165 = getelementptr inbounds i8, ptr %164, i64 9
  %166 = load i8, ptr %165, align 1, !tbaa !15
  %167 = or i8 %166, 32
  store i8 %167, ptr %165, align 1, !tbaa !15
  %168 = load ptr, ptr getelementptr inbounds (i8, ptr @luaT_init.luaT_eventname, i64 120), align 8, !tbaa !5
  %169 = tail call i64 @strlen(ptr noundef nonnull dereferenceable(1) %168) #3
  %170 = tail call ptr @luaS_newlstr(ptr noundef %0, ptr noundef %168, i64 noundef %169) #4
  %171 = load ptr, ptr %2, align 8, !tbaa !9
  %172 = getelementptr inbounds i8, ptr %171, i64 416
  store ptr %170, ptr %172, align 8, !tbaa !5
  %173 = load ptr, ptr %2, align 8, !tbaa !9
  %174 = getelementptr inbounds i8, ptr %173, i64 416
  %175 = load ptr, ptr %174, align 8, !tbaa !5
  %176 = getelementptr inbounds i8, ptr %175, i64 9
  %177 = load i8, ptr %176, align 1, !tbaa !15
  %178 = or i8 %177, 32
  store i8 %178, ptr %176, align 1, !tbaa !15
  %179 = load ptr, ptr getelementptr inbounds (i8, ptr @luaT_init.luaT_eventname, i64 128), align 16, !tbaa !5
  %180 = tail call i64 @strlen(ptr noundef nonnull dereferenceable(1) %179) #3
  %181 = tail call ptr @luaS_newlstr(ptr noundef %0, ptr noundef %179, i64 noundef %180) #4
  %182 = load ptr, ptr %2, align 8, !tbaa !9
  %183 = getelementptr inbounds i8, ptr %182, i64 424
  store ptr %181, ptr %183, align 8, !tbaa !5
  %184 = load ptr, ptr %2, align 8, !tbaa !9
  %185 = getelementptr inbounds i8, ptr %184, i64 424
  %186 = load ptr, ptr %185, align 8, !tbaa !5
  %187 = getelementptr inbounds i8, ptr %186, i64 9
  %188 = load i8, ptr %187, align 1, !tbaa !15
  %189 = or i8 %188, 32
  store i8 %189, ptr %187, align 1, !tbaa !15
  ret void
}

declare hidden ptr @luaS_newlstr(ptr noundef, ptr noundef, i64 noundef) local_unnamed_addr #1

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

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 = { "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 = { nounwind willreturn memory(read) }
attributes #4 = { nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !6, i64 32}
!10 = !{!"lua_State", !6, i64 0, !7, i64 8, !7, i64 9, !7, i64 10, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !6, i64 56, !6, i64 64, !6, i64 72, !6, i64 80, !11, i64 88, !11, i64 92, !12, i64 96, !12, i64 98, !7, i64 100, !7, i64 101, !11, i64 104, !11, i64 108, !6, i64 112, !13, i64 120, !13, i64 136, !6, i64 152, !6, i64 160, !6, i64 168, !14, i64 176}
!11 = !{!"int", !7, i64 0}
!12 = !{!"short", !7, i64 0}
!13 = !{!"lua_TValue", !7, i64 0, !11, i64 8}
!14 = !{!"long", !7, i64 0}
!15 = !{!7, !7, i64 0}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,LICMPass,LoopRotatePass,SROAPass,SimplifyCFGPass,TailCallElimPass