; LLVM IR from aagdev/mlimgsynth :: src (test_prompt_preproc)

; 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.TestChunk = type { ptr, float }
%struct.TestPrompt = type { i32, i32, ptr, ptr }

@.str = external hidden unnamed_addr constant [38 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [14 x i8], align 1
@constinit = external hidden constant [2 x %struct.TestChunk], align 8
@.str.2 = external hidden unnamed_addr constant [16 x i8], align 1
@constinit.6 = external hidden constant [4 x %struct.TestChunk], align 8
@.str.7 = external hidden unnamed_addr constant [16 x i8], align 1
@constinit.8 = external hidden constant [4 x %struct.TestChunk], align 8
@.str.9 = external hidden unnamed_addr constant [18 x i8], align 1
@constinit.10 = external hidden constant [4 x %struct.TestChunk], align 8
@.str.11 = external hidden unnamed_addr constant [20 x i8], align 1
@constinit.12 = external hidden constant [4 x %struct.TestChunk], align 8
@.str.13 = external hidden unnamed_addr constant [30 x i8], align 1
@constinit.14 = external hidden constant [2 x %struct.TestChunk], align 8
@constinit.16 = external hidden constant [2 x %struct.TestChunk], align 8
@.str.17 = external hidden unnamed_addr constant [34 x i8], align 1
@constinit.18 = external hidden constant [2 x %struct.TestChunk], align 8
@constinit.19 = external hidden constant [2 x %struct.TestChunk], align 8
@.str.20 = external hidden unnamed_addr constant [18 x i8], align 1
@constinit.21 = external hidden constant [2 x %struct.TestChunk], align 8
@.str.22 = external hidden unnamed_addr constant [31 x i8], align 1
@constinit.23 = external hidden constant [2 x %struct.TestChunk], align 8
@.str.24 = external hidden unnamed_addr constant [85 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [2 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  %6 = alloca %struct.TestPrompt, align 8
  %7 = alloca [2 x %struct.TestChunk], align 8
  %8 = alloca %struct.TestPrompt, align 8
  %9 = alloca [4 x %struct.TestChunk], align 8
  %10 = alloca %struct.TestPrompt, align 8
  %11 = alloca [4 x %struct.TestChunk], align 8
  %12 = alloca %struct.TestPrompt, align 8
  %13 = alloca [4 x %struct.TestChunk], align 8
  %14 = alloca %struct.TestPrompt, align 8
  %15 = alloca [4 x %struct.TestChunk], align 8
  %16 = alloca %struct.TestPrompt, align 8
  %17 = alloca [2 x %struct.TestChunk], align 8
  %18 = alloca [2 x %struct.TestChunk], align 8
  %19 = alloca %struct.TestPrompt, align 8
  %20 = alloca [2 x %struct.TestChunk], align 8
  %21 = alloca [2 x %struct.TestChunk], align 8
  %22 = alloca %struct.TestPrompt, align 8
  %23 = alloca [2 x %struct.TestChunk], align 8
  %24 = alloca %struct.TestPrompt, align 8
  %25 = alloca [2 x %struct.TestChunk], align 8
  store i32 0, ptr %3, align 4
  store i32 %0, ptr %4, align 4, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !9
  call void @test_raw(ptr noundef @.str)
  %26 = getelementptr inbounds %struct.TestPrompt, ptr %6, i32 0, i32 0
  store i32 1, ptr %26, align 8, !tbaa !11
  %27 = getelementptr inbounds %struct.TestPrompt, ptr %6, i32 0, i32 1
  store i32 0, ptr %27, align 4, !tbaa !13
  %28 = getelementptr inbounds %struct.TestPrompt, ptr %6, i32 0, i32 2
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %7, ptr align 8 @constinit, i64 32, i1 false), !tbaa.struct !14
  %29 = getelementptr inbounds [2 x %struct.TestChunk], ptr %7, i64 0, i64 0
  store ptr %29, ptr %28, align 8, !tbaa !16
  %30 = getelementptr inbounds %struct.TestPrompt, ptr %6, i32 0, i32 3
  store ptr null, ptr %30, align 8, !tbaa !17
  call void @test(ptr noundef @.str.1, ptr noundef byval(%struct.TestPrompt) align 8 %6)
  %31 = getelementptr inbounds %struct.TestPrompt, ptr %8, i32 0, i32 0
  store i32 3, ptr %31, align 8, !tbaa !11
  %32 = getelementptr inbounds %struct.TestPrompt, ptr %8, i32 0, i32 1
  store i32 0, ptr %32, align 4, !tbaa !13
  %33 = getelementptr inbounds %struct.TestPrompt, ptr %8, i32 0, i32 2
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %9, ptr align 8 @constinit.6, i64 64, i1 false), !tbaa.struct !18
  %34 = getelementptr inbounds [4 x %struct.TestChunk], ptr %9, i64 0, i64 0
  store ptr %34, ptr %33, align 8, !tbaa !16
  %35 = getelementptr inbounds %struct.TestPrompt, ptr %8, i32 0, i32 3
  store ptr null, ptr %35, align 8, !tbaa !17
  call void @test(ptr noundef @.str.2, ptr noundef byval(%struct.TestPrompt) align 8 %8)
  %36 = getelementptr inbounds %struct.TestPrompt, ptr %10, i32 0, i32 0
  store i32 3, ptr %36, align 8, !tbaa !11
  %37 = getelementptr inbounds %struct.TestPrompt, ptr %10, i32 0, i32 1
  store i32 0, ptr %37, align 4, !tbaa !13
  %38 = getelementptr inbounds %struct.TestPrompt, ptr %10, i32 0, i32 2
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %11, ptr align 8 @constinit.8, i64 64, i1 false), !tbaa.struct !18
  %39 = getelementptr inbounds [4 x %struct.TestChunk], ptr %11, i64 0, i64 0
  store ptr %39, ptr %38, align 8, !tbaa !16
  %40 = getelementptr inbounds %struct.TestPrompt, ptr %10, i32 0, i32 3
  store ptr null, ptr %40, align 8, !tbaa !17
  call void @test(ptr noundef @.str.7, ptr noundef byval(%struct.TestPrompt) align 8 %10)
  %41 = getelementptr inbounds %struct.TestPrompt, ptr %12, i32 0, i32 0
  store i32 3, ptr %41, align 8, !tbaa !11
  %42 = getelementptr inbounds %struct.TestPrompt, ptr %12, i32 0, i32 1
  store i32 0, ptr %42, align 4, !tbaa !13
  %43 = getelementptr inbounds %struct.TestPrompt, ptr %12, i32 0, i32 2
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %13, ptr align 8 @constinit.10, i64 64, i1 false), !tbaa.struct !18
  %44 = getelementptr inbounds [4 x %struct.TestChunk], ptr %13, i64 0, i64 0
  store ptr %44, ptr %43, align 8, !tbaa !16
  %45 = getelementptr inbounds %struct.TestPrompt, ptr %12, i32 0, i32 3
  store ptr null, ptr %45, align 8, !tbaa !17
  call void @test(ptr noundef @.str.9, ptr noundef byval(%struct.TestPrompt) align 8 %12)
  %46 = getelementptr inbounds %struct.TestPrompt, ptr %14, i32 0, i32 0
  store i32 3, ptr %46, align 8, !tbaa !11
  %47 = getelementptr inbounds %struct.TestPrompt, ptr %14, i32 0, i32 1
  store i32 0, ptr %47, align 4, !tbaa !13
  %48 = getelementptr inbounds %struct.TestPrompt, ptr %14, i32 0, i32 2
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %15, ptr align 8 @constinit.12, i64 64, i1 false), !tbaa.struct !18
  %49 = getelementptr inbounds [4 x %struct.TestChunk], ptr %15, i64 0, i64 0
  store ptr %49, ptr %48, align 8, !tbaa !16
  %50 = getelementptr inbounds %struct.TestPrompt, ptr %14, i32 0, i32 3
  store ptr null, ptr %50, align 8, !tbaa !17
  call void @test(ptr noundef @.str.11, ptr noundef byval(%struct.TestPrompt) align 8 %14)
  %51 = getelementptr inbounds %struct.TestPrompt, ptr %16, i32 0, i32 0
  store i32 1, ptr %51, align 8, !tbaa !11
  %52 = getelementptr inbounds %struct.TestPrompt, ptr %16, i32 0, i32 1
  store i32 1, ptr %52, align 4, !tbaa !13
  %53 = getelementptr inbounds %struct.TestPrompt, ptr %16, i32 0, i32 2
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %17, ptr align 8 @constinit.14, i64 32, i1 false), !tbaa.struct !14
  %54 = getelementptr inbounds [2 x %struct.TestChunk], ptr %17, i64 0, i64 0
  store ptr %54, ptr %53, align 8, !tbaa !16
  %55 = getelementptr inbounds %struct.TestPrompt, ptr %16, i32 0, i32 3
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %18, ptr align 8 @constinit.16, i64 32, i1 false), !tbaa.struct !14
  %56 = getelementptr inbounds [2 x %struct.TestChunk], ptr %18, i64 0, i64 0
  store ptr %56, ptr %55, align 8, !tbaa !17
  call void @test(ptr noundef @.str.13, ptr noundef byval(%struct.TestPrompt) align 8 %16)
  %57 = getelementptr inbounds %struct.TestPrompt, ptr %19, i32 0, i32 0
  store i32 1, ptr %57, align 8, !tbaa !11
  %58 = getelementptr inbounds %struct.TestPrompt, ptr %19, i32 0, i32 1
  store i32 1, ptr %58, align 4, !tbaa !13
  %59 = getelementptr inbounds %struct.TestPrompt, ptr %19, i32 0, i32 2
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %20, ptr align 8 @constinit.18, i64 32, i1 false), !tbaa.struct !14
  %60 = getelementptr inbounds [2 x %struct.TestChunk], ptr %20, i64 0, i64 0
  store ptr %60, ptr %59, align 8, !tbaa !16
  %61 = getelementptr inbounds %struct.TestPrompt, ptr %19, i32 0, i32 3
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %21, ptr align 8 @constinit.19, i64 32, i1 false), !tbaa.struct !14
  %62 = getelementptr inbounds [2 x %struct.TestChunk], ptr %21, i64 0, i64 0
  store ptr %62, ptr %61, align 8, !tbaa !17
  call void @test(ptr noundef @.str.17, ptr noundef byval(%struct.TestPrompt) align 8 %19)
  %63 = getelementptr inbounds %struct.TestPrompt, ptr %22, i32 0, i32 0
  store i32 1, ptr %63, align 8, !tbaa !11
  %64 = getelementptr inbounds %struct.TestPrompt, ptr %22, i32 0, i32 1
  store i32 0, ptr %64, align 4, !tbaa !13
  %65 = getelementptr inbounds %struct.TestPrompt, ptr %22, i32 0, i32 2
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %23, ptr align 8 @constinit.21, i64 32, i1 false), !tbaa.struct !14
  %66 = getelementptr inbounds [2 x %struct.TestChunk], ptr %23, i64 0, i64 0
  store ptr %66, ptr %65, align 8, !tbaa !16
  %67 = getelementptr inbounds %struct.TestPrompt, ptr %22, i32 0, i32 3
  store ptr null, ptr %67, align 8, !tbaa !17
  call void @test(ptr noundef @.str.20, ptr noundef byval(%struct.TestPrompt) align 8 %22)
  %68 = getelementptr inbounds %struct.TestPrompt, ptr %24, i32 0, i32 0
  store i32 1, ptr %68, align 8, !tbaa !11
  %69 = getelementptr inbounds %struct.TestPrompt, ptr %24, i32 0, i32 1
  store i32 0, ptr %69, align 4, !tbaa !13
  %70 = getelementptr inbounds %struct.TestPrompt, ptr %24, i32 0, i32 2
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %25, ptr align 8 @constinit.23, i64 32, i1 false), !tbaa.struct !14
  %71 = getelementptr inbounds [2 x %struct.TestChunk], ptr %25, i64 0, i64 0
  store ptr %71, ptr %70, align 8, !tbaa !16
  %72 = getelementptr inbounds %struct.TestPrompt, ptr %24, i32 0, i32 3
  store ptr null, ptr %72, align 8, !tbaa !17
  call void @test(ptr noundef @.str.22, ptr noundef byval(%struct.TestPrompt) align 8 %24)
  br label %73

73:                                               ; preds = %2
  %74 = call i32 (ptr, ...) @printf(ptr noundef @.str.24)
  %75 = call i32 (ptr, ...) @printf(ptr noundef @.str.25)
  br label %76

76:                                               ; preds = %73
  ret i32 0
}

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

; Function Attrs: nounwind uwtable
declare hidden void @test(ptr noundef, ptr noundef byval(%struct.TestPrompt) align 8) #0

; 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

declare i32 @printf(ptr noundef, ...) #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 = { nocallback nofree 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" }

!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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = !{!12, !6, i64 0}
!12 = !{!"", !6, i64 0, !6, i64 4, !10, i64 8, !10, i64 16}
!13 = !{!12, !6, i64 4}
!14 = !{i64 0, i64 32, !15}
!15 = !{!7, !7, i64 0}
!16 = !{!12, !10, i64 8}
!17 = !{!12, !10, i64 16}
!18 = !{i64 0, i64 64, !15}


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

%struct.TestChunk = type { ptr, float }
%struct.TestPrompt = type { i32, i32, ptr, ptr }

@.str = external hidden unnamed_addr constant [38 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [14 x i8], align 1
@constinit = external hidden local_unnamed_addr constant [2 x %struct.TestChunk], align 8
@.str.2 = external hidden unnamed_addr constant [16 x i8], align 1
@constinit.6 = external hidden local_unnamed_addr constant [4 x %struct.TestChunk], align 8
@.str.7 = external hidden unnamed_addr constant [16 x i8], align 1
@constinit.8 = external hidden local_unnamed_addr constant [4 x %struct.TestChunk], align 8
@.str.9 = external hidden unnamed_addr constant [18 x i8], align 1
@constinit.10 = external hidden local_unnamed_addr constant [4 x %struct.TestChunk], align 8
@.str.11 = external hidden unnamed_addr constant [20 x i8], align 1
@constinit.12 = external hidden local_unnamed_addr constant [4 x %struct.TestChunk], align 8
@.str.13 = external hidden unnamed_addr constant [30 x i8], align 1
@constinit.14 = external hidden local_unnamed_addr constant [2 x %struct.TestChunk], align 8
@constinit.16 = external hidden local_unnamed_addr constant [2 x %struct.TestChunk], align 8
@.str.17 = external hidden unnamed_addr constant [34 x i8], align 1
@constinit.18 = external hidden local_unnamed_addr constant [2 x %struct.TestChunk], align 8
@constinit.19 = external hidden local_unnamed_addr constant [2 x %struct.TestChunk], align 8
@.str.20 = external hidden unnamed_addr constant [18 x i8], align 1
@constinit.21 = external hidden local_unnamed_addr constant [2 x %struct.TestChunk], align 8
@.str.22 = external hidden unnamed_addr constant [31 x i8], align 1
@constinit.23 = external hidden local_unnamed_addr constant [2 x %struct.TestChunk], align 8
@.str.24 = external hidden unnamed_addr constant [85 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [2 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local noundef i32 @main(i32 noundef %0, ptr nocapture noundef readnone %1) local_unnamed_addr #0 {
  %3 = alloca %struct.TestPrompt, align 8
  %4 = alloca [2 x %struct.TestChunk], align 8
  %5 = alloca %struct.TestPrompt, align 8
  %6 = alloca [4 x %struct.TestChunk], align 8
  %7 = alloca %struct.TestPrompt, align 8
  %8 = alloca [4 x %struct.TestChunk], align 8
  %9 = alloca %struct.TestPrompt, align 8
  %10 = alloca [4 x %struct.TestChunk], align 8
  %11 = alloca %struct.TestPrompt, align 8
  %12 = alloca [4 x %struct.TestChunk], align 8
  %13 = alloca %struct.TestPrompt, align 8
  %14 = alloca [2 x %struct.TestChunk], align 8
  %15 = alloca [2 x %struct.TestChunk], align 8
  %16 = alloca %struct.TestPrompt, align 8
  %17 = alloca [2 x %struct.TestChunk], align 8
  %18 = alloca [2 x %struct.TestChunk], align 8
  %19 = alloca %struct.TestPrompt, align 8
  %20 = alloca [2 x %struct.TestChunk], align 8
  %21 = alloca %struct.TestPrompt, align 8
  %22 = alloca [2 x %struct.TestChunk], align 8
  tail call void @test_raw(ptr noundef nonnull @.str)
  store i32 1, ptr %3, align 8, !tbaa !5
  %23 = getelementptr inbounds i8, ptr %3, i64 4
  store i32 0, ptr %23, align 4, !tbaa !11
  %24 = getelementptr inbounds i8, ptr %3, i64 8
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(32) %4, ptr noundef nonnull align 8 dereferenceable(32) @constinit, i64 32, i1 false), !tbaa.struct !12
  store ptr %4, ptr %24, align 8, !tbaa !14
  %25 = getelementptr inbounds i8, ptr %3, i64 16
  store ptr null, ptr %25, align 8, !tbaa !15
  call void @test(ptr noundef nonnull @.str.1, ptr noundef nonnull byval(%struct.TestPrompt) align 8 %3)
  store i32 3, ptr %5, align 8, !tbaa !5
  %26 = getelementptr inbounds i8, ptr %5, i64 4
  store i32 0, ptr %26, align 4, !tbaa !11
  %27 = getelementptr inbounds i8, ptr %5, i64 8
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %6, ptr noundef nonnull align 8 dereferenceable(64) @constinit.6, i64 64, i1 false), !tbaa.struct !16
  store ptr %6, ptr %27, align 8, !tbaa !14
  %28 = getelementptr inbounds i8, ptr %5, i64 16
  store ptr null, ptr %28, align 8, !tbaa !15
  call void @test(ptr noundef nonnull @.str.2, ptr noundef nonnull byval(%struct.TestPrompt) align 8 %5)
  store i32 3, ptr %7, align 8, !tbaa !5
  %29 = getelementptr inbounds i8, ptr %7, i64 4
  store i32 0, ptr %29, align 4, !tbaa !11
  %30 = getelementptr inbounds i8, ptr %7, i64 8
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %8, ptr noundef nonnull align 8 dereferenceable(64) @constinit.8, i64 64, i1 false), !tbaa.struct !16
  store ptr %8, ptr %30, align 8, !tbaa !14
  %31 = getelementptr inbounds i8, ptr %7, i64 16
  store ptr null, ptr %31, align 8, !tbaa !15
  call void @test(ptr noundef nonnull @.str.7, ptr noundef nonnull byval(%struct.TestPrompt) align 8 %7)
  store i32 3, ptr %9, align 8, !tbaa !5
  %32 = getelementptr inbounds i8, ptr %9, i64 4
  store i32 0, ptr %32, align 4, !tbaa !11
  %33 = getelementptr inbounds i8, ptr %9, i64 8
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %10, ptr noundef nonnull align 8 dereferenceable(64) @constinit.10, i64 64, i1 false), !tbaa.struct !16
  store ptr %10, ptr %33, align 8, !tbaa !14
  %34 = getelementptr inbounds i8, ptr %9, i64 16
  store ptr null, ptr %34, align 8, !tbaa !15
  call void @test(ptr noundef nonnull @.str.9, ptr noundef nonnull byval(%struct.TestPrompt) align 8 %9)
  store i32 3, ptr %11, align 8, !tbaa !5
  %35 = getelementptr inbounds i8, ptr %11, i64 4
  store i32 0, ptr %35, align 4, !tbaa !11
  %36 = getelementptr inbounds i8, ptr %11, i64 8
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %12, ptr noundef nonnull align 8 dereferenceable(64) @constinit.12, i64 64, i1 false), !tbaa.struct !16
  store ptr %12, ptr %36, align 8, !tbaa !14
  %37 = getelementptr inbounds i8, ptr %11, i64 16
  store ptr null, ptr %37, align 8, !tbaa !15
  call void @test(ptr noundef nonnull @.str.11, ptr noundef nonnull byval(%struct.TestPrompt) align 8 %11)
  store i32 1, ptr %13, align 8, !tbaa !5
  %38 = getelementptr inbounds i8, ptr %13, i64 4
  store i32 1, ptr %38, align 4, !tbaa !11
  %39 = getelementptr inbounds i8, ptr %13, i64 8
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(32) %14, ptr noundef nonnull align 8 dereferenceable(32) @constinit.14, i64 32, i1 false), !tbaa.struct !12
  store ptr %14, ptr %39, align 8, !tbaa !14
  %40 = getelementptr inbounds i8, ptr %13, i64 16
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(32) %15, ptr noundef nonnull align 8 dereferenceable(32) @constinit.16, i64 32, i1 false), !tbaa.struct !12
  store ptr %15, ptr %40, align 8, !tbaa !15
  call void @test(ptr noundef nonnull @.str.13, ptr noundef nonnull byval(%struct.TestPrompt) align 8 %13)
  store i32 1, ptr %16, align 8, !tbaa !5
  %41 = getelementptr inbounds i8, ptr %16, i64 4
  store i32 1, ptr %41, align 4, !tbaa !11
  %42 = getelementptr inbounds i8, ptr %16, i64 8
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(32) %17, ptr noundef nonnull align 8 dereferenceable(32) @constinit.18, i64 32, i1 false), !tbaa.struct !12
  store ptr %17, ptr %42, align 8, !tbaa !14
  %43 = getelementptr inbounds i8, ptr %16, i64 16
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(32) %18, ptr noundef nonnull align 8 dereferenceable(32) @constinit.19, i64 32, i1 false), !tbaa.struct !12
  store ptr %18, ptr %43, align 8, !tbaa !15
  call void @test(ptr noundef nonnull @.str.17, ptr noundef nonnull byval(%struct.TestPrompt) align 8 %16)
  store i32 1, ptr %19, align 8, !tbaa !5
  %44 = getelementptr inbounds i8, ptr %19, i64 4
  store i32 0, ptr %44, align 4, !tbaa !11
  %45 = getelementptr inbounds i8, ptr %19, i64 8
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(32) %20, ptr noundef nonnull align 8 dereferenceable(32) @constinit.21, i64 32, i1 false), !tbaa.struct !12
  store ptr %20, ptr %45, align 8, !tbaa !14
  %46 = getelementptr inbounds i8, ptr %19, i64 16
  store ptr null, ptr %46, align 8, !tbaa !15
  call void @test(ptr noundef nonnull @.str.20, ptr noundef nonnull byval(%struct.TestPrompt) align 8 %19)
  store i32 1, ptr %21, align 8, !tbaa !5
  %47 = getelementptr inbounds i8, ptr %21, i64 4
  store i32 0, ptr %47, align 4, !tbaa !11
  %48 = getelementptr inbounds i8, ptr %21, i64 8
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(32) %22, ptr noundef nonnull align 8 dereferenceable(32) @constinit.23, i64 32, i1 false), !tbaa.struct !12
  store ptr %22, ptr %48, align 8, !tbaa !14
  %49 = getelementptr inbounds i8, ptr %21, i64 16
  store ptr null, ptr %49, align 8, !tbaa !15
  call void @test(ptr noundef nonnull @.str.22, ptr noundef nonnull byval(%struct.TestPrompt) align 8 %21)
  %50 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.24)
  %51 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.25)
  ret i32 0
}

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

; Function Attrs: nounwind uwtable
declare hidden void @test(ptr noundef, ptr noundef byval(%struct.TestPrompt) align 8) 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: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, ...) 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 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nofree nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }

!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 = !{!"", !7, i64 0, !7, i64 4, !10, i64 8, !10, i64 16}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"any pointer", !8, i64 0}
!11 = !{!6, !7, i64 4}
!12 = !{i64 0, i64 32, !13}
!13 = !{!8, !8, i64 0}
!14 = !{!6, !10, i64 8}
!15 = !{!6, !10, i64 16}
!16 = !{i64 0, i64 64, !13}


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