; LLVM IR from ESPboy-edu/ESPboy_tinyphysicsengine :: programs (hello)

; 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.TPE_Joint = type { %struct.TPE_Vec3, [3 x i16], i8 }
%struct.TPE_Vec3 = type { i32, i32, i32 }
%struct.TPE_Connection = type { i8, i8, i16 }

; Function Attrs: nounwind uwtable
declare dso_local void @TPE_joint(ptr dead_on_unwind noalias writable sret(%struct.TPE_Joint) align 4, i64, i32, i32 noundef) #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

; Function Attrs: nounwind uwtable
declare dso_local { i64, i32 } @TPE_vec3(i32 noundef, i32 noundef, i32 noundef) #0

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

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

; Function Attrs: nounwind uwtable
define dso_local void @TPE_makeBox(ptr noundef %0, ptr noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %4, i32 noundef %5) #0 {
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i8, align 1
  %14 = alloca %struct.TPE_Joint, align 4
  %15 = alloca %struct.TPE_Vec3, align 4
  %16 = alloca { i64, i32 }, align 8
  %17 = alloca { i64, i32 }, align 4
  store ptr %0, ptr %7, align 8, !tbaa !5
  store ptr %1, ptr %8, align 8, !tbaa !5
  store i32 %2, ptr %9, align 4, !tbaa !9
  store i32 %3, ptr %10, align 4, !tbaa !9
  store i32 %4, ptr %11, align 4, !tbaa !9
  store i32 %5, ptr %12, align 4, !tbaa !9
  %18 = load i32, ptr %9, align 4, !tbaa !9
  %19 = sdiv i32 %18, 2
  store i32 %19, ptr %9, align 4, !tbaa !9
  %20 = load i32, ptr %10, align 4, !tbaa !9
  %21 = sdiv i32 %20, 2
  store i32 %21, ptr %10, align 4, !tbaa !9
  %22 = load i32, ptr %11, align 4, !tbaa !9
  %23 = sdiv i32 %22, 2
  store i32 %23, ptr %11, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 1, ptr %13) #3
  store i8 0, ptr %13, align 1, !tbaa !11
  br label %24

24:                                               ; preds = %75, %6
  %25 = load i8, ptr %13, align 1, !tbaa !11
  %26 = zext i8 %25 to i32
  %27 = icmp slt i32 %26, 8
  br i1 %27, label %29, label %28

28:                                               ; preds = %24
  call void @llvm.lifetime.end.p0(i64 1, ptr %13) #3
  br label %78

29:                                               ; preds = %24
  %30 = load ptr, ptr %7, align 8, !tbaa !5
  %31 = load i8, ptr %13, align 1, !tbaa !11
  %32 = zext i8 %31 to i64
  %33 = getelementptr inbounds %struct.TPE_Joint, ptr %30, i64 %32
  call void @llvm.lifetime.start.p0(i64 20, ptr %14) #3
  %34 = load i8, ptr %13, align 1, !tbaa !11
  %35 = zext i8 %34 to i32
  %36 = srem i32 %35, 2
  %37 = icmp ne i32 %36, 0
  br i1 %37, label %38, label %40

38:                                               ; preds = %29
  %39 = load i32, ptr %9, align 4, !tbaa !9
  br label %43

40:                                               ; preds = %29
  %41 = load i32, ptr %9, align 4, !tbaa !9
  %42 = mul nsw i32 -1, %41
  br label %43

43:                                               ; preds = %40, %38
  %44 = phi i32 [ %39, %38 ], [ %42, %40 ]
  %45 = load i8, ptr %13, align 1, !tbaa !11
  %46 = zext i8 %45 to i32
  %47 = ashr i32 %46, 2
  %48 = srem i32 %47, 2
  %49 = icmp ne i32 %48, 0
  br i1 %49, label %50, label %52

50:                                               ; preds = %43
  %51 = load i32, ptr %11, align 4, !tbaa !9
  br label %55

52:                                               ; preds = %43
  %53 = load i32, ptr %11, align 4, !tbaa !9
  %54 = mul nsw i32 -1, %53
  br label %55

55:                                               ; preds = %52, %50
  %56 = phi i32 [ %51, %50 ], [ %54, %52 ]
  %57 = load i8, ptr %13, align 1, !tbaa !11
  %58 = zext i8 %57 to i32
  %59 = ashr i32 %58, 1
  %60 = srem i32 %59, 2
  %61 = icmp ne i32 %60, 0
  br i1 %61, label %62, label %64

62:                                               ; preds = %55
  %63 = load i32, ptr %10, align 4, !tbaa !9
  br label %67

64:                                               ; preds = %55
  %65 = load i32, ptr %10, align 4, !tbaa !9
  %66 = mul nsw i32 -1, %65
  br label %67

67:                                               ; preds = %64, %62
  %68 = phi i32 [ %63, %62 ], [ %66, %64 ]
  %69 = call { i64, i32 } @TPE_vec3(i32 noundef %44, i32 noundef %56, i32 noundef %68)
  store { i64, i32 } %69, ptr %16, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %15, ptr align 8 %16, i64 12, i1 false)
  %70 = load i32, ptr %12, align 4, !tbaa !9
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %17, ptr align 4 %15, i64 12, i1 false)
  %71 = getelementptr inbounds { i64, i32 }, ptr %17, i32 0, i32 0
  %72 = load i64, ptr %71, align 4
  %73 = getelementptr inbounds { i64, i32 }, ptr %17, i32 0, i32 1
  %74 = load i32, ptr %73, align 4
  call void @TPE_joint(ptr dead_on_unwind writable sret(%struct.TPE_Joint) align 4 %14, i64 %72, i32 %74, i32 noundef %70)
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %33, ptr align 4 %14, i64 20, i1 false), !tbaa.struct !12
  call void @llvm.lifetime.end.p0(i64 20, ptr %14) #3
  br label %75

75:                                               ; preds = %67
  %76 = load i8, ptr %13, align 1, !tbaa !11
  %77 = add i8 %76, 1
  store i8 %77, ptr %13, align 1, !tbaa !11
  br label %24, !llvm.loop !13

78:                                               ; preds = %28
  %79 = load ptr, ptr %8, align 8, !tbaa !5
  %80 = getelementptr inbounds %struct.TPE_Connection, ptr %79, i64 0
  %81 = getelementptr inbounds %struct.TPE_Connection, ptr %80, i32 0, i32 0
  store i8 0, ptr %81, align 2, !tbaa !15
  %82 = load ptr, ptr %8, align 8, !tbaa !5
  %83 = getelementptr inbounds %struct.TPE_Connection, ptr %82, i64 0
  %84 = getelementptr inbounds %struct.TPE_Connection, ptr %83, i32 0, i32 1
  store i8 1, ptr %84, align 1, !tbaa !18
  %85 = load ptr, ptr %8, align 8, !tbaa !5
  %86 = getelementptr inbounds %struct.TPE_Connection, ptr %85, i64 1
  %87 = getelementptr inbounds %struct.TPE_Connection, ptr %86, i32 0, i32 0
  store i8 1, ptr %87, align 2, !tbaa !15
  %88 = load ptr, ptr %8, align 8, !tbaa !5
  %89 = getelementptr inbounds %struct.TPE_Connection, ptr %88, i64 1
  %90 = getelementptr inbounds %struct.TPE_Connection, ptr %89, i32 0, i32 1
  store i8 3, ptr %90, align 1, !tbaa !18
  %91 = load ptr, ptr %8, align 8, !tbaa !5
  %92 = getelementptr inbounds %struct.TPE_Connection, ptr %91, i64 2
  %93 = getelementptr inbounds %struct.TPE_Connection, ptr %92, i32 0, i32 0
  store i8 3, ptr %93, align 2, !tbaa !15
  %94 = load ptr, ptr %8, align 8, !tbaa !5
  %95 = getelementptr inbounds %struct.TPE_Connection, ptr %94, i64 2
  %96 = getelementptr inbounds %struct.TPE_Connection, ptr %95, i32 0, i32 1
  store i8 2, ptr %96, align 1, !tbaa !18
  %97 = load ptr, ptr %8, align 8, !tbaa !5
  %98 = getelementptr inbounds %struct.TPE_Connection, ptr %97, i64 3
  %99 = getelementptr inbounds %struct.TPE_Connection, ptr %98, i32 0, i32 0
  store i8 2, ptr %99, align 2, !tbaa !15
  %100 = load ptr, ptr %8, align 8, !tbaa !5
  %101 = getelementptr inbounds %struct.TPE_Connection, ptr %100, i64 3
  %102 = getelementptr inbounds %struct.TPE_Connection, ptr %101, i32 0, i32 1
  store i8 0, ptr %102, align 1, !tbaa !18
  %103 = load ptr, ptr %8, align 8, !tbaa !5
  %104 = getelementptr inbounds %struct.TPE_Connection, ptr %103, i64 4
  %105 = getelementptr inbounds %struct.TPE_Connection, ptr %104, i32 0, i32 0
  store i8 4, ptr %105, align 2, !tbaa !15
  %106 = load ptr, ptr %8, align 8, !tbaa !5
  %107 = getelementptr inbounds %struct.TPE_Connection, ptr %106, i64 4
  %108 = getelementptr inbounds %struct.TPE_Connection, ptr %107, i32 0, i32 1
  store i8 5, ptr %108, align 1, !tbaa !18
  %109 = load ptr, ptr %8, align 8, !tbaa !5
  %110 = getelementptr inbounds %struct.TPE_Connection, ptr %109, i64 5
  %111 = getelementptr inbounds %struct.TPE_Connection, ptr %110, i32 0, i32 0
  store i8 5, ptr %111, align 2, !tbaa !15
  %112 = load ptr, ptr %8, align 8, !tbaa !5
  %113 = getelementptr inbounds %struct.TPE_Connection, ptr %112, i64 5
  %114 = getelementptr inbounds %struct.TPE_Connection, ptr %113, i32 0, i32 1
  store i8 7, ptr %114, align 1, !tbaa !18
  %115 = load ptr, ptr %8, align 8, !tbaa !5
  %116 = getelementptr inbounds %struct.TPE_Connection, ptr %115, i64 6
  %117 = getelementptr inbounds %struct.TPE_Connection, ptr %116, i32 0, i32 0
  store i8 7, ptr %117, align 2, !tbaa !15
  %118 = load ptr, ptr %8, align 8, !tbaa !5
  %119 = getelementptr inbounds %struct.TPE_Connection, ptr %118, i64 6
  %120 = getelementptr inbounds %struct.TPE_Connection, ptr %119, i32 0, i32 1
  store i8 6, ptr %120, align 1, !tbaa !18
  %121 = load ptr, ptr %8, align 8, !tbaa !5
  %122 = getelementptr inbounds %struct.TPE_Connection, ptr %121, i64 7
  %123 = getelementptr inbounds %struct.TPE_Connection, ptr %122, i32 0, i32 0
  store i8 6, ptr %123, align 2, !tbaa !15
  %124 = load ptr, ptr %8, align 8, !tbaa !5
  %125 = getelementptr inbounds %struct.TPE_Connection, ptr %124, i64 7
  %126 = getelementptr inbounds %struct.TPE_Connection, ptr %125, i32 0, i32 1
  store i8 4, ptr %126, align 1, !tbaa !18
  %127 = load ptr, ptr %8, align 8, !tbaa !5
  %128 = getelementptr inbounds %struct.TPE_Connection, ptr %127, i64 8
  %129 = getelementptr inbounds %struct.TPE_Connection, ptr %128, i32 0, i32 0
  store i8 0, ptr %129, align 2, !tbaa !15
  %130 = load ptr, ptr %8, align 8, !tbaa !5
  %131 = getelementptr inbounds %struct.TPE_Connection, ptr %130, i64 8
  %132 = getelementptr inbounds %struct.TPE_Connection, ptr %131, i32 0, i32 1
  store i8 4, ptr %132, align 1, !tbaa !18
  %133 = load ptr, ptr %8, align 8, !tbaa !5
  %134 = getelementptr inbounds %struct.TPE_Connection, ptr %133, i64 9
  %135 = getelementptr inbounds %struct.TPE_Connection, ptr %134, i32 0, i32 0
  store i8 1, ptr %135, align 2, !tbaa !15
  %136 = load ptr, ptr %8, align 8, !tbaa !5
  %137 = getelementptr inbounds %struct.TPE_Connection, ptr %136, i64 9
  %138 = getelementptr inbounds %struct.TPE_Connection, ptr %137, i32 0, i32 1
  store i8 5, ptr %138, align 1, !tbaa !18
  %139 = load ptr, ptr %8, align 8, !tbaa !5
  %140 = getelementptr inbounds %struct.TPE_Connection, ptr %139, i64 10
  %141 = getelementptr inbounds %struct.TPE_Connection, ptr %140, i32 0, i32 0
  store i8 3, ptr %141, align 2, !tbaa !15
  %142 = load ptr, ptr %8, align 8, !tbaa !5
  %143 = getelementptr inbounds %struct.TPE_Connection, ptr %142, i64 10
  %144 = getelementptr inbounds %struct.TPE_Connection, ptr %143, i32 0, i32 1
  store i8 7, ptr %144, align 1, !tbaa !18
  %145 = load ptr, ptr %8, align 8, !tbaa !5
  %146 = getelementptr inbounds %struct.TPE_Connection, ptr %145, i64 11
  %147 = getelementptr inbounds %struct.TPE_Connection, ptr %146, i32 0, i32 0
  store i8 2, ptr %147, align 2, !tbaa !15
  %148 = load ptr, ptr %8, align 8, !tbaa !5
  %149 = getelementptr inbounds %struct.TPE_Connection, ptr %148, i64 11
  %150 = getelementptr inbounds %struct.TPE_Connection, ptr %149, i32 0, i32 1
  store i8 6, ptr %150, align 1, !tbaa !18
  %151 = load ptr, ptr %8, align 8, !tbaa !5
  %152 = getelementptr inbounds %struct.TPE_Connection, ptr %151, i64 12
  %153 = getelementptr inbounds %struct.TPE_Connection, ptr %152, i32 0, i32 0
  store i8 0, ptr %153, align 2, !tbaa !15
  %154 = load ptr, ptr %8, align 8, !tbaa !5
  %155 = getelementptr inbounds %struct.TPE_Connection, ptr %154, i64 12
  %156 = getelementptr inbounds %struct.TPE_Connection, ptr %155, i32 0, i32 1
  store i8 7, ptr %156, align 1, !tbaa !18
  %157 = load ptr, ptr %8, align 8, !tbaa !5
  %158 = getelementptr inbounds %struct.TPE_Connection, ptr %157, i64 13
  %159 = getelementptr inbounds %struct.TPE_Connection, ptr %158, i32 0, i32 0
  store i8 1, ptr %159, align 2, !tbaa !15
  %160 = load ptr, ptr %8, align 8, !tbaa !5
  %161 = getelementptr inbounds %struct.TPE_Connection, ptr %160, i64 13
  %162 = getelementptr inbounds %struct.TPE_Connection, ptr %161, i32 0, i32 1
  store i8 6, ptr %162, align 1, !tbaa !18
  %163 = load ptr, ptr %8, align 8, !tbaa !5
  %164 = getelementptr inbounds %struct.TPE_Connection, ptr %163, i64 14
  %165 = getelementptr inbounds %struct.TPE_Connection, ptr %164, i32 0, i32 0
  store i8 2, ptr %165, align 2, !tbaa !15
  %166 = load ptr, ptr %8, align 8, !tbaa !5
  %167 = getelementptr inbounds %struct.TPE_Connection, ptr %166, i64 14
  %168 = getelementptr inbounds %struct.TPE_Connection, ptr %167, i32 0, i32 1
  store i8 5, ptr %168, align 1, !tbaa !18
  %169 = load ptr, ptr %8, align 8, !tbaa !5
  %170 = getelementptr inbounds %struct.TPE_Connection, ptr %169, i64 15
  %171 = getelementptr inbounds %struct.TPE_Connection, ptr %170, i32 0, i32 0
  store i8 3, ptr %171, align 2, !tbaa !15
  %172 = load ptr, ptr %8, align 8, !tbaa !5
  %173 = getelementptr inbounds %struct.TPE_Connection, ptr %172, i64 15
  %174 = getelementptr inbounds %struct.TPE_Connection, ptr %173, i32 0, i32 1
  store i8 4, ptr %174, align 1, !tbaa !18
  ret void
}

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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { 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, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!7, !7, i64 0}
!12 = !{i64 0, i64 4, !9, i64 4, i64 4, !9, i64 8, i64 4, !9, i64 12, i64 6, !11, i64 18, i64 1, !11}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = !{!16, !7, i64 0}
!16 = !{!"", !7, i64 0, !7, i64 1, !17, i64 2}
!17 = !{!"short", !7, i64 0}
!18 = !{!16, !7, i64 1}


; 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.TPE_Joint = type { %struct.TPE_Vec3, [3 x i16], i8 }
%struct.TPE_Vec3 = type { i32, i32, i32 }

; Function Attrs: nounwind uwtable
declare dso_local void @TPE_joint(ptr dead_on_unwind noalias writable sret(%struct.TPE_Joint) align 4, i64, i32, i32 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 { i64, i32 } @TPE_vec3(i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #0

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

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

; Function Attrs: nounwind uwtable
define dso_local void @TPE_makeBox(ptr nocapture noundef writeonly %0, ptr nocapture noundef writeonly %1, i32 noundef %2, i32 noundef %3, i32 noundef %4, i32 noundef %5) local_unnamed_addr #0 {
  %7 = alloca %struct.TPE_Joint, align 4
  %8 = sdiv i32 %2, 2
  %9 = sdiv i32 %3, 2
  %10 = sdiv i32 %4, 2
  %11 = sub nsw i32 0, %8
  %12 = sub nsw i32 0, %10
  %13 = sub nsw i32 0, %9
  call void @llvm.lifetime.start.p0(i64 20, ptr nonnull %7) #3
  %14 = tail call { i64, i32 } @TPE_vec3(i32 noundef %11, i32 noundef %12, i32 noundef %13)
  %.fca.0.extract = extractvalue { i64, i32 } %14, 0
  %.fca.1.extract = extractvalue { i64, i32 } %14, 1
  call void @TPE_joint(ptr dead_on_unwind nonnull writable sret(%struct.TPE_Joint) align 4 %7, i64 %.fca.0.extract, i32 %.fca.1.extract, i32 noundef %5)
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(20) %0, ptr noundef nonnull align 4 dereferenceable(20) %7, i64 20, i1 false), !tbaa.struct !5
  call void @llvm.lifetime.end.p0(i64 20, ptr nonnull %7) #3
  %15 = getelementptr inbounds i8, ptr %0, i64 20
  call void @llvm.lifetime.start.p0(i64 20, ptr nonnull %7) #3
  %16 = call { i64, i32 } @TPE_vec3(i32 noundef %8, i32 noundef %12, i32 noundef %13)
  %.fca.0.extract.1 = extractvalue { i64, i32 } %16, 0
  %.fca.1.extract.1 = extractvalue { i64, i32 } %16, 1
  call void @TPE_joint(ptr dead_on_unwind nonnull writable sret(%struct.TPE_Joint) align 4 %7, i64 %.fca.0.extract.1, i32 %.fca.1.extract.1, i32 noundef %5)
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(20) %15, ptr noundef nonnull align 4 dereferenceable(20) %7, i64 20, i1 false), !tbaa.struct !5
  call void @llvm.lifetime.end.p0(i64 20, ptr nonnull %7) #3
  %17 = getelementptr inbounds i8, ptr %0, i64 40
  call void @llvm.lifetime.start.p0(i64 20, ptr nonnull %7) #3
  %18 = call { i64, i32 } @TPE_vec3(i32 noundef %11, i32 noundef %12, i32 noundef %9)
  %.fca.0.extract.2 = extractvalue { i64, i32 } %18, 0
  %.fca.1.extract.2 = extractvalue { i64, i32 } %18, 1
  call void @TPE_joint(ptr dead_on_unwind nonnull writable sret(%struct.TPE_Joint) align 4 %7, i64 %.fca.0.extract.2, i32 %.fca.1.extract.2, i32 noundef %5)
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(20) %17, ptr noundef nonnull align 4 dereferenceable(20) %7, i64 20, i1 false), !tbaa.struct !5
  call void @llvm.lifetime.end.p0(i64 20, ptr nonnull %7) #3
  %19 = getelementptr inbounds i8, ptr %0, i64 60
  call void @llvm.lifetime.start.p0(i64 20, ptr nonnull %7) #3
  %20 = call { i64, i32 } @TPE_vec3(i32 noundef %8, i32 noundef %12, i32 noundef %9)
  %.fca.0.extract.3 = extractvalue { i64, i32 } %20, 0
  %.fca.1.extract.3 = extractvalue { i64, i32 } %20, 1
  call void @TPE_joint(ptr dead_on_unwind nonnull writable sret(%struct.TPE_Joint) align 4 %7, i64 %.fca.0.extract.3, i32 %.fca.1.extract.3, i32 noundef %5)
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(20) %19, ptr noundef nonnull align 4 dereferenceable(20) %7, i64 20, i1 false), !tbaa.struct !5
  call void @llvm.lifetime.end.p0(i64 20, ptr nonnull %7) #3
  %21 = getelementptr inbounds i8, ptr %0, i64 80
  call void @llvm.lifetime.start.p0(i64 20, ptr nonnull %7) #3
  %22 = call { i64, i32 } @TPE_vec3(i32 noundef %11, i32 noundef %10, i32 noundef %13)
  %.fca.0.extract.4 = extractvalue { i64, i32 } %22, 0
  %.fca.1.extract.4 = extractvalue { i64, i32 } %22, 1
  call void @TPE_joint(ptr dead_on_unwind nonnull writable sret(%struct.TPE_Joint) align 4 %7, i64 %.fca.0.extract.4, i32 %.fca.1.extract.4, i32 noundef %5)
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(20) %21, ptr noundef nonnull align 4 dereferenceable(20) %7, i64 20, i1 false), !tbaa.struct !5
  call void @llvm.lifetime.end.p0(i64 20, ptr nonnull %7) #3
  %23 = getelementptr inbounds i8, ptr %0, i64 100
  call void @llvm.lifetime.start.p0(i64 20, ptr nonnull %7) #3
  %24 = call { i64, i32 } @TPE_vec3(i32 noundef %8, i32 noundef %10, i32 noundef %13)
  %.fca.0.extract.5 = extractvalue { i64, i32 } %24, 0
  %.fca.1.extract.5 = extractvalue { i64, i32 } %24, 1
  call void @TPE_joint(ptr dead_on_unwind nonnull writable sret(%struct.TPE_Joint) align 4 %7, i64 %.fca.0.extract.5, i32 %.fca.1.extract.5, i32 noundef %5)
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(20) %23, ptr noundef nonnull align 4 dereferenceable(20) %7, i64 20, i1 false), !tbaa.struct !5
  call void @llvm.lifetime.end.p0(i64 20, ptr nonnull %7) #3
  %25 = getelementptr inbounds i8, ptr %0, i64 120
  call void @llvm.lifetime.start.p0(i64 20, ptr nonnull %7) #3
  %26 = call { i64, i32 } @TPE_vec3(i32 noundef %11, i32 noundef %10, i32 noundef %9)
  %.fca.0.extract.6 = extractvalue { i64, i32 } %26, 0
  %.fca.1.extract.6 = extractvalue { i64, i32 } %26, 1
  call void @TPE_joint(ptr dead_on_unwind nonnull writable sret(%struct.TPE_Joint) align 4 %7, i64 %.fca.0.extract.6, i32 %.fca.1.extract.6, i32 noundef %5)
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(20) %25, ptr noundef nonnull align 4 dereferenceable(20) %7, i64 20, i1 false), !tbaa.struct !5
  call void @llvm.lifetime.end.p0(i64 20, ptr nonnull %7) #3
  %27 = getelementptr inbounds i8, ptr %0, i64 140
  call void @llvm.lifetime.start.p0(i64 20, ptr nonnull %7) #3
  %28 = call { i64, i32 } @TPE_vec3(i32 noundef %8, i32 noundef %10, i32 noundef %9)
  %.fca.0.extract.7 = extractvalue { i64, i32 } %28, 0
  %.fca.1.extract.7 = extractvalue { i64, i32 } %28, 1
  call void @TPE_joint(ptr dead_on_unwind nonnull writable sret(%struct.TPE_Joint) align 4 %7, i64 %.fca.0.extract.7, i32 %.fca.1.extract.7, i32 noundef %5)
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(20) %27, ptr noundef nonnull align 4 dereferenceable(20) %7, i64 20, i1 false), !tbaa.struct !5
  call void @llvm.lifetime.end.p0(i64 20, ptr nonnull %7) #3
  store i8 0, ptr %1, align 2, !tbaa !11
  %29 = getelementptr inbounds i8, ptr %1, i64 1
  store i8 1, ptr %29, align 1, !tbaa !14
  %30 = getelementptr inbounds i8, ptr %1, i64 4
  store i8 1, ptr %30, align 2, !tbaa !11
  %31 = getelementptr inbounds i8, ptr %1, i64 5
  store i8 3, ptr %31, align 1, !tbaa !14
  %32 = getelementptr inbounds i8, ptr %1, i64 8
  store i8 3, ptr %32, align 2, !tbaa !11
  %33 = getelementptr inbounds i8, ptr %1, i64 9
  store i8 2, ptr %33, align 1, !tbaa !14
  %34 = getelementptr inbounds i8, ptr %1, i64 12
  store i8 2, ptr %34, align 2, !tbaa !11
  %35 = getelementptr inbounds i8, ptr %1, i64 13
  store i8 0, ptr %35, align 1, !tbaa !14
  %36 = getelementptr inbounds i8, ptr %1, i64 16
  store i8 4, ptr %36, align 2, !tbaa !11
  %37 = getelementptr inbounds i8, ptr %1, i64 17
  store i8 5, ptr %37, align 1, !tbaa !14
  %38 = getelementptr inbounds i8, ptr %1, i64 20
  store i8 5, ptr %38, align 2, !tbaa !11
  %39 = getelementptr inbounds i8, ptr %1, i64 21
  store i8 7, ptr %39, align 1, !tbaa !14
  %40 = getelementptr inbounds i8, ptr %1, i64 24
  store i8 7, ptr %40, align 2, !tbaa !11
  %41 = getelementptr inbounds i8, ptr %1, i64 25
  store i8 6, ptr %41, align 1, !tbaa !14
  %42 = getelementptr inbounds i8, ptr %1, i64 28
  store i8 6, ptr %42, align 2, !tbaa !11
  %43 = getelementptr inbounds i8, ptr %1, i64 29
  store i8 4, ptr %43, align 1, !tbaa !14
  %44 = getelementptr inbounds i8, ptr %1, i64 32
  store i8 0, ptr %44, align 2, !tbaa !11
  %45 = getelementptr inbounds i8, ptr %1, i64 33
  store i8 4, ptr %45, align 1, !tbaa !14
  %46 = getelementptr inbounds i8, ptr %1, i64 36
  store i8 1, ptr %46, align 2, !tbaa !11
  %47 = getelementptr inbounds i8, ptr %1, i64 37
  store i8 5, ptr %47, align 1, !tbaa !14
  %48 = getelementptr inbounds i8, ptr %1, i64 40
  store i8 3, ptr %48, align 2, !tbaa !11
  %49 = getelementptr inbounds i8, ptr %1, i64 41
  store i8 7, ptr %49, align 1, !tbaa !14
  %50 = getelementptr inbounds i8, ptr %1, i64 44
  store i8 2, ptr %50, align 2, !tbaa !11
  %51 = getelementptr inbounds i8, ptr %1, i64 45
  store i8 6, ptr %51, align 1, !tbaa !14
  %52 = getelementptr inbounds i8, ptr %1, i64 48
  store i8 0, ptr %52, align 2, !tbaa !11
  %53 = getelementptr inbounds i8, ptr %1, i64 49
  store i8 7, ptr %53, align 1, !tbaa !14
  %54 = getelementptr inbounds i8, ptr %1, i64 52
  store i8 1, ptr %54, align 2, !tbaa !11
  %55 = getelementptr inbounds i8, ptr %1, i64 53
  store i8 6, ptr %55, align 1, !tbaa !14
  %56 = getelementptr inbounds i8, ptr %1, i64 56
  store i8 2, ptr %56, align 2, !tbaa !11
  %57 = getelementptr inbounds i8, ptr %1, i64 57
  store i8 5, ptr %57, align 1, !tbaa !14
  %58 = getelementptr inbounds i8, ptr %1, i64 60
  store i8 3, ptr %58, align 2, !tbaa !11
  %59 = getelementptr inbounds i8, ptr %1, i64 61
  store i8 4, ptr %59, align 1, !tbaa !14
  ret void
}

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 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { 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 = !{i64 0, i64 4, !6, i64 4, i64 4, !6, i64 8, i64 4, !6, i64 12, i64 6, !10, i64 18, i64 1, !10}
!6 = !{!7, !7, i64 0}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!8, !8, i64 0}
!11 = !{!12, !8, i64 0}
!12 = !{!"", !8, i64 0, !8, i64 1, !13, i64 2}
!13 = !{!"short", !8, i64 0}
!14 = !{!12, !8, i64 1}


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