; LLVM IR from microsoft/LightAIMD :: src (molecule)

; 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.molecule = type { i64, i64, ptr, ptr, ptr, ptr, ptr, ptr, i64, ptr }

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #0

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

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

declare ptr @x_malloc(i64 noundef) #2

; Function Attrs: nounwind uwtable
define dso_local ptr @mol_elements(ptr noundef %0) #3 {
  %2 = alloca ptr, align 8
  %3 = alloca [128 x i64], align 16
  %4 = alloca i64, align 8
  %5 = alloca i64, align 8
  %6 = alloca i64, align 8
  %7 = alloca ptr, align 8
  %8 = alloca i64, align 8
  %9 = alloca i64, align 8
  store ptr %0, ptr %2, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1024, ptr %3) #4
  call void @llvm.memset.p0.i64(ptr align 16 %3, i8 0, i64 1024, i1 false)
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #4
  store i64 0, ptr %4, align 8, !tbaa !9
  br label %10

10:                                               ; preds = %25, %1
  %11 = load i64, ptr %4, align 8, !tbaa !9
  %12 = load ptr, ptr %2, align 8, !tbaa !5
  %13 = getelementptr inbounds %struct.molecule, ptr %12, i32 0, i32 0
  %14 = load i64, ptr %13, align 8, !tbaa !11
  %15 = icmp ult i64 %11, %14
  br i1 %15, label %17, label %16

16:                                               ; preds = %10
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #4
  br label %28

17:                                               ; preds = %10
  %18 = load ptr, ptr %2, align 8, !tbaa !5
  %19 = getelementptr inbounds %struct.molecule, ptr %18, i32 0, i32 2
  %20 = load ptr, ptr %19, align 8, !tbaa !13
  %21 = load i64, ptr %4, align 8, !tbaa !9
  %22 = getelementptr inbounds i64, ptr %20, i64 %21
  %23 = load i64, ptr %22, align 8, !tbaa !9
  %24 = getelementptr inbounds [128 x i64], ptr %3, i64 0, i64 %23
  store i64 1, ptr %24, align 8, !tbaa !9
  br label %25

25:                                               ; preds = %17
  %26 = load i64, ptr %4, align 8, !tbaa !9
  %27 = add i64 %26, 1
  store i64 %27, ptr %4, align 8, !tbaa !9
  br label %10, !llvm.loop !14

28:                                               ; preds = %16
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #4
  store i64 0, ptr %5, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #4
  store i64 0, ptr %6, align 8, !tbaa !9
  br label %29

29:                                               ; preds = %39, %28
  %30 = load i64, ptr %6, align 8, !tbaa !9
  %31 = icmp ult i64 %30, 128
  br i1 %31, label %33, label %32

32:                                               ; preds = %29
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #4
  br label %42

33:                                               ; preds = %29
  %34 = load i64, ptr %6, align 8, !tbaa !9
  %35 = getelementptr inbounds [128 x i64], ptr %3, i64 0, i64 %34
  %36 = load i64, ptr %35, align 8, !tbaa !9
  %37 = load i64, ptr %5, align 8, !tbaa !9
  %38 = add i64 %37, %36
  store i64 %38, ptr %5, align 8, !tbaa !9
  br label %39

39:                                               ; preds = %33
  %40 = load i64, ptr %6, align 8, !tbaa !9
  %41 = add i64 %40, 1
  store i64 %41, ptr %6, align 8, !tbaa !9
  br label %29, !llvm.loop !16

42:                                               ; preds = %32
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #4
  %43 = load i64, ptr %5, align 8, !tbaa !9
  %44 = add i64 %43, 1
  %45 = mul i64 8, %44
  %46 = call ptr @x_malloc(i64 noundef %45)
  store ptr %46, ptr %7, align 8, !tbaa !5
  %47 = load i64, ptr %5, align 8, !tbaa !9
  %48 = load ptr, ptr %7, align 8, !tbaa !5
  %49 = getelementptr inbounds i64, ptr %48, i64 0
  store i64 %47, ptr %49, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #4
  store i64 1, ptr %8, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #4
  store i64 0, ptr %9, align 8, !tbaa !9
  br label %50

50:                                               ; preds = %67, %42
  %51 = load i64, ptr %9, align 8, !tbaa !9
  %52 = icmp ult i64 %51, 128
  br i1 %52, label %54, label %53

53:                                               ; preds = %50
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #4
  br label %70

54:                                               ; preds = %50
  %55 = load i64, ptr %9, align 8, !tbaa !9
  %56 = getelementptr inbounds [128 x i64], ptr %3, i64 0, i64 %55
  %57 = load i64, ptr %56, align 8, !tbaa !9
  %58 = icmp ne i64 %57, 0
  br i1 %58, label %59, label %66

59:                                               ; preds = %54
  %60 = load i64, ptr %9, align 8, !tbaa !9
  %61 = load ptr, ptr %7, align 8, !tbaa !5
  %62 = load i64, ptr %8, align 8, !tbaa !9
  %63 = getelementptr inbounds i64, ptr %61, i64 %62
  store i64 %60, ptr %63, align 8, !tbaa !9
  %64 = load i64, ptr %8, align 8, !tbaa !9
  %65 = add i64 %64, 1
  store i64 %65, ptr %8, align 8, !tbaa !9
  br label %66

66:                                               ; preds = %59, %54
  br label %67

67:                                               ; preds = %66
  %68 = load i64, ptr %9, align 8, !tbaa !9
  %69 = add i64 %68, 1
  store i64 %69, ptr %9, align 8, !tbaa !9
  br label %50, !llvm.loop !17

70:                                               ; preds = %53
  %71 = load ptr, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #4
  call void @llvm.lifetime.end.p0(i64 1024, ptr %3) #4
  ret ptr %71
}

attributes #0 = { nocallback nofree nounwind willreturn memory(argmem: write) }
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 uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"long", !7, i64 0}
!11 = !{!12, !10, i64 0}
!12 = !{!"molecule", !10, i64 0, !10, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !6, i64 56, !10, i64 64, !6, i64 72}
!13 = !{!12, !6, i64 16}
!14 = distinct !{!14, !15}
!15 = !{!"llvm.loop.mustprogress"}
!16 = distinct !{!16, !15}
!17 = distinct !{!17, !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"

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #0

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

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

declare ptr @x_malloc(i64 noundef) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
define dso_local noundef ptr @mol_elements(ptr nocapture noundef readonly %0) local_unnamed_addr #3 {
  %2 = alloca [128 x i64], align 16
  call void @llvm.lifetime.start.p0(i64 1024, ptr nonnull %2) #5
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(1024) %2, i8 0, i64 1024, i1 false)
  %3 = load i64, ptr %0, align 8, !tbaa !5
  %.not28 = icmp eq i64 %3, 0
  br i1 %.not28, label %vector.body.preheader, label %.lr.ph

.lr.ph:                                           ; preds = %1
  %4 = getelementptr inbounds i8, ptr %0, i64 16
  %5 = load ptr, ptr %4, align 8, !tbaa !11
  %xtraiter = and i64 %3, 3
  %6 = icmp ult i64 %3, 4
  br i1 %6, label %vector.body.preheader.loopexit.unr-lcssa, label %.lr.ph.new

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

7:                                                ; preds = %7, %.lr.ph.new
  %.02023 = phi i64 [ 0, %.lr.ph.new ], [ %23, %7 ]
  %niter = phi i64 [ 0, %.lr.ph.new ], [ %niter.next.3, %7 ]
  %8 = getelementptr inbounds i64, ptr %5, i64 %.02023
  %9 = load i64, ptr %8, align 8, !tbaa !12
  %10 = getelementptr inbounds [128 x i64], ptr %2, i64 0, i64 %9
  store i64 1, ptr %10, align 8, !tbaa !12
  %11 = or disjoint i64 %.02023, 1
  %12 = getelementptr inbounds i64, ptr %5, i64 %11
  %13 = load i64, ptr %12, align 8, !tbaa !12
  %14 = getelementptr inbounds [128 x i64], ptr %2, i64 0, i64 %13
  store i64 1, ptr %14, align 8, !tbaa !12
  %15 = or disjoint i64 %.02023, 2
  %16 = getelementptr inbounds i64, ptr %5, i64 %15
  %17 = load i64, ptr %16, align 8, !tbaa !12
  %18 = getelementptr inbounds [128 x i64], ptr %2, i64 0, i64 %17
  store i64 1, ptr %18, align 8, !tbaa !12
  %19 = or disjoint i64 %.02023, 3
  %20 = getelementptr inbounds i64, ptr %5, i64 %19
  %21 = load i64, ptr %20, align 8, !tbaa !12
  %22 = getelementptr inbounds [128 x i64], ptr %2, i64 0, i64 %21
  store i64 1, ptr %22, align 8, !tbaa !12
  %23 = add nuw i64 %.02023, 4
  %niter.next.3 = add i64 %niter, 4
  %niter.ncmp.3 = icmp eq i64 %niter.next.3, %unroll_iter
  br i1 %niter.ncmp.3, label %vector.body.preheader.loopexit.unr-lcssa, label %7, !llvm.loop !13

vector.body.preheader.loopexit.unr-lcssa:         ; preds = %7, %.lr.ph
  %.02023.unr = phi i64 [ 0, %.lr.ph ], [ %23, %7 ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %vector.body.preheader, label %.epil.preheader

.epil.preheader:                                  ; preds = %vector.body.preheader.loopexit.unr-lcssa, %.epil.preheader
  %.02023.epil = phi i64 [ %27, %.epil.preheader ], [ %.02023.unr, %vector.body.preheader.loopexit.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %.epil.preheader ], [ 0, %vector.body.preheader.loopexit.unr-lcssa ]
  %24 = getelementptr inbounds i64, ptr %5, i64 %.02023.epil
  %25 = load i64, ptr %24, align 8, !tbaa !12
  %26 = getelementptr inbounds [128 x i64], ptr %2, i64 0, i64 %25
  store i64 1, ptr %26, align 8, !tbaa !12
  %27 = add nuw i64 %.02023.epil, 1
  %epil.iter.next = add i64 %epil.iter, 1
  %epil.iter.cmp.not = icmp eq i64 %epil.iter.next, %xtraiter
  br i1 %epil.iter.cmp.not, label %vector.body.preheader, label %.epil.preheader, !llvm.loop !15

vector.body.preheader:                            ; preds = %vector.body.preheader.loopexit.unr-lcssa, %.epil.preheader, %1
  %28 = getelementptr inbounds i8, ptr %2, i64 16
  %wide.load = load <2 x i64>, ptr %2, align 16, !tbaa !12
  %wide.load32 = load <2 x i64>, ptr %28, align 16, !tbaa !12
  %29 = getelementptr inbounds i8, ptr %2, i64 32
  %30 = getelementptr inbounds i8, ptr %2, i64 48
  %wide.load.1 = load <2 x i64>, ptr %29, align 16, !tbaa !12
  %wide.load32.1 = load <2 x i64>, ptr %30, align 16, !tbaa !12
  %31 = add <2 x i64> %wide.load.1, %wide.load
  %32 = add <2 x i64> %wide.load32.1, %wide.load32
  %33 = getelementptr inbounds i8, ptr %2, i64 64
  %34 = getelementptr inbounds i8, ptr %2, i64 80
  %wide.load.2 = load <2 x i64>, ptr %33, align 16, !tbaa !12
  %wide.load32.2 = load <2 x i64>, ptr %34, align 16, !tbaa !12
  %35 = add <2 x i64> %wide.load.2, %31
  %36 = add <2 x i64> %wide.load32.2, %32
  %37 = getelementptr inbounds i8, ptr %2, i64 96
  %38 = getelementptr inbounds i8, ptr %2, i64 112
  %wide.load.3 = load <2 x i64>, ptr %37, align 16, !tbaa !12
  %wide.load32.3 = load <2 x i64>, ptr %38, align 16, !tbaa !12
  %39 = add <2 x i64> %wide.load.3, %35
  %40 = add <2 x i64> %wide.load32.3, %36
  %41 = getelementptr inbounds i8, ptr %2, i64 128
  %42 = getelementptr inbounds i8, ptr %2, i64 144
  %wide.load.4 = load <2 x i64>, ptr %41, align 16, !tbaa !12
  %wide.load32.4 = load <2 x i64>, ptr %42, align 16, !tbaa !12
  %43 = add <2 x i64> %wide.load.4, %39
  %44 = add <2 x i64> %wide.load32.4, %40
  %45 = getelementptr inbounds i8, ptr %2, i64 160
  %46 = getelementptr inbounds i8, ptr %2, i64 176
  %wide.load.5 = load <2 x i64>, ptr %45, align 16, !tbaa !12
  %wide.load32.5 = load <2 x i64>, ptr %46, align 16, !tbaa !12
  %47 = add <2 x i64> %wide.load.5, %43
  %48 = add <2 x i64> %wide.load32.5, %44
  %49 = getelementptr inbounds i8, ptr %2, i64 192
  %50 = getelementptr inbounds i8, ptr %2, i64 208
  %wide.load.6 = load <2 x i64>, ptr %49, align 16, !tbaa !12
  %wide.load32.6 = load <2 x i64>, ptr %50, align 16, !tbaa !12
  %51 = add <2 x i64> %wide.load.6, %47
  %52 = add <2 x i64> %wide.load32.6, %48
  %53 = getelementptr inbounds i8, ptr %2, i64 224
  %54 = getelementptr inbounds i8, ptr %2, i64 240
  %wide.load.7 = load <2 x i64>, ptr %53, align 16, !tbaa !12
  %wide.load32.7 = load <2 x i64>, ptr %54, align 16, !tbaa !12
  %55 = add <2 x i64> %wide.load.7, %51
  %56 = add <2 x i64> %wide.load32.7, %52
  %57 = getelementptr inbounds i8, ptr %2, i64 256
  %58 = getelementptr inbounds i8, ptr %2, i64 272
  %wide.load.8 = load <2 x i64>, ptr %57, align 16, !tbaa !12
  %wide.load32.8 = load <2 x i64>, ptr %58, align 16, !tbaa !12
  %59 = add <2 x i64> %wide.load.8, %55
  %60 = add <2 x i64> %wide.load32.8, %56
  %61 = getelementptr inbounds i8, ptr %2, i64 288
  %62 = getelementptr inbounds i8, ptr %2, i64 304
  %wide.load.9 = load <2 x i64>, ptr %61, align 16, !tbaa !12
  %wide.load32.9 = load <2 x i64>, ptr %62, align 16, !tbaa !12
  %63 = add <2 x i64> %wide.load.9, %59
  %64 = add <2 x i64> %wide.load32.9, %60
  %65 = getelementptr inbounds i8, ptr %2, i64 320
  %66 = getelementptr inbounds i8, ptr %2, i64 336
  %wide.load.10 = load <2 x i64>, ptr %65, align 16, !tbaa !12
  %wide.load32.10 = load <2 x i64>, ptr %66, align 16, !tbaa !12
  %67 = add <2 x i64> %wide.load.10, %63
  %68 = add <2 x i64> %wide.load32.10, %64
  %69 = getelementptr inbounds i8, ptr %2, i64 352
  %70 = getelementptr inbounds i8, ptr %2, i64 368
  %wide.load.11 = load <2 x i64>, ptr %69, align 16, !tbaa !12
  %wide.load32.11 = load <2 x i64>, ptr %70, align 16, !tbaa !12
  %71 = add <2 x i64> %wide.load.11, %67
  %72 = add <2 x i64> %wide.load32.11, %68
  %73 = getelementptr inbounds i8, ptr %2, i64 384
  %74 = getelementptr inbounds i8, ptr %2, i64 400
  %wide.load.12 = load <2 x i64>, ptr %73, align 16, !tbaa !12
  %wide.load32.12 = load <2 x i64>, ptr %74, align 16, !tbaa !12
  %75 = add <2 x i64> %wide.load.12, %71
  %76 = add <2 x i64> %wide.load32.12, %72
  %77 = getelementptr inbounds i8, ptr %2, i64 416
  %78 = getelementptr inbounds i8, ptr %2, i64 432
  %wide.load.13 = load <2 x i64>, ptr %77, align 16, !tbaa !12
  %wide.load32.13 = load <2 x i64>, ptr %78, align 16, !tbaa !12
  %79 = add <2 x i64> %wide.load.13, %75
  %80 = add <2 x i64> %wide.load32.13, %76
  %81 = getelementptr inbounds i8, ptr %2, i64 448
  %82 = getelementptr inbounds i8, ptr %2, i64 464
  %wide.load.14 = load <2 x i64>, ptr %81, align 16, !tbaa !12
  %wide.load32.14 = load <2 x i64>, ptr %82, align 16, !tbaa !12
  %83 = add <2 x i64> %wide.load.14, %79
  %84 = add <2 x i64> %wide.load32.14, %80
  %85 = getelementptr inbounds i8, ptr %2, i64 480
  %86 = getelementptr inbounds i8, ptr %2, i64 496
  %wide.load.15 = load <2 x i64>, ptr %85, align 16, !tbaa !12
  %wide.load32.15 = load <2 x i64>, ptr %86, align 16, !tbaa !12
  %87 = add <2 x i64> %wide.load.15, %83
  %88 = add <2 x i64> %wide.load32.15, %84
  %89 = getelementptr inbounds i8, ptr %2, i64 512
  %90 = getelementptr inbounds i8, ptr %2, i64 528
  %wide.load.16 = load <2 x i64>, ptr %89, align 16, !tbaa !12
  %wide.load32.16 = load <2 x i64>, ptr %90, align 16, !tbaa !12
  %91 = add <2 x i64> %wide.load.16, %87
  %92 = add <2 x i64> %wide.load32.16, %88
  %93 = getelementptr inbounds i8, ptr %2, i64 544
  %94 = getelementptr inbounds i8, ptr %2, i64 560
  %wide.load.17 = load <2 x i64>, ptr %93, align 16, !tbaa !12
  %wide.load32.17 = load <2 x i64>, ptr %94, align 16, !tbaa !12
  %95 = add <2 x i64> %wide.load.17, %91
  %96 = add <2 x i64> %wide.load32.17, %92
  %97 = getelementptr inbounds i8, ptr %2, i64 576
  %98 = getelementptr inbounds i8, ptr %2, i64 592
  %wide.load.18 = load <2 x i64>, ptr %97, align 16, !tbaa !12
  %wide.load32.18 = load <2 x i64>, ptr %98, align 16, !tbaa !12
  %99 = add <2 x i64> %wide.load.18, %95
  %100 = add <2 x i64> %wide.load32.18, %96
  %101 = getelementptr inbounds i8, ptr %2, i64 608
  %102 = getelementptr inbounds i8, ptr %2, i64 624
  %wide.load.19 = load <2 x i64>, ptr %101, align 16, !tbaa !12
  %wide.load32.19 = load <2 x i64>, ptr %102, align 16, !tbaa !12
  %103 = add <2 x i64> %wide.load.19, %99
  %104 = add <2 x i64> %wide.load32.19, %100
  %105 = getelementptr inbounds i8, ptr %2, i64 640
  %106 = getelementptr inbounds i8, ptr %2, i64 656
  %wide.load.20 = load <2 x i64>, ptr %105, align 16, !tbaa !12
  %wide.load32.20 = load <2 x i64>, ptr %106, align 16, !tbaa !12
  %107 = add <2 x i64> %wide.load.20, %103
  %108 = add <2 x i64> %wide.load32.20, %104
  %109 = getelementptr inbounds i8, ptr %2, i64 672
  %110 = getelementptr inbounds i8, ptr %2, i64 688
  %wide.load.21 = load <2 x i64>, ptr %109, align 16, !tbaa !12
  %wide.load32.21 = load <2 x i64>, ptr %110, align 16, !tbaa !12
  %111 = add <2 x i64> %wide.load.21, %107
  %112 = add <2 x i64> %wide.load32.21, %108
  %113 = getelementptr inbounds i8, ptr %2, i64 704
  %114 = getelementptr inbounds i8, ptr %2, i64 720
  %wide.load.22 = load <2 x i64>, ptr %113, align 16, !tbaa !12
  %wide.load32.22 = load <2 x i64>, ptr %114, align 16, !tbaa !12
  %115 = add <2 x i64> %wide.load.22, %111
  %116 = add <2 x i64> %wide.load32.22, %112
  %117 = getelementptr inbounds i8, ptr %2, i64 736
  %118 = getelementptr inbounds i8, ptr %2, i64 752
  %wide.load.23 = load <2 x i64>, ptr %117, align 16, !tbaa !12
  %wide.load32.23 = load <2 x i64>, ptr %118, align 16, !tbaa !12
  %119 = add <2 x i64> %wide.load.23, %115
  %120 = add <2 x i64> %wide.load32.23, %116
  %121 = getelementptr inbounds i8, ptr %2, i64 768
  %122 = getelementptr inbounds i8, ptr %2, i64 784
  %wide.load.24 = load <2 x i64>, ptr %121, align 16, !tbaa !12
  %wide.load32.24 = load <2 x i64>, ptr %122, align 16, !tbaa !12
  %123 = add <2 x i64> %wide.load.24, %119
  %124 = add <2 x i64> %wide.load32.24, %120
  %125 = getelementptr inbounds i8, ptr %2, i64 800
  %126 = getelementptr inbounds i8, ptr %2, i64 816
  %wide.load.25 = load <2 x i64>, ptr %125, align 16, !tbaa !12
  %wide.load32.25 = load <2 x i64>, ptr %126, align 16, !tbaa !12
  %127 = add <2 x i64> %wide.load.25, %123
  %128 = add <2 x i64> %wide.load32.25, %124
  %129 = getelementptr inbounds i8, ptr %2, i64 832
  %130 = getelementptr inbounds i8, ptr %2, i64 848
  %wide.load.26 = load <2 x i64>, ptr %129, align 16, !tbaa !12
  %wide.load32.26 = load <2 x i64>, ptr %130, align 16, !tbaa !12
  %131 = add <2 x i64> %wide.load.26, %127
  %132 = add <2 x i64> %wide.load32.26, %128
  %133 = getelementptr inbounds i8, ptr %2, i64 864
  %134 = getelementptr inbounds i8, ptr %2, i64 880
  %wide.load.27 = load <2 x i64>, ptr %133, align 16, !tbaa !12
  %wide.load32.27 = load <2 x i64>, ptr %134, align 16, !tbaa !12
  %135 = add <2 x i64> %wide.load.27, %131
  %136 = add <2 x i64> %wide.load32.27, %132
  %137 = getelementptr inbounds i8, ptr %2, i64 896
  %138 = getelementptr inbounds i8, ptr %2, i64 912
  %wide.load.28 = load <2 x i64>, ptr %137, align 16, !tbaa !12
  %wide.load32.28 = load <2 x i64>, ptr %138, align 16, !tbaa !12
  %139 = add <2 x i64> %wide.load.28, %135
  %140 = add <2 x i64> %wide.load32.28, %136
  %141 = getelementptr inbounds i8, ptr %2, i64 928
  %142 = getelementptr inbounds i8, ptr %2, i64 944
  %wide.load.29 = load <2 x i64>, ptr %141, align 16, !tbaa !12
  %wide.load32.29 = load <2 x i64>, ptr %142, align 16, !tbaa !12
  %143 = add <2 x i64> %wide.load.29, %139
  %144 = add <2 x i64> %wide.load32.29, %140
  %145 = getelementptr inbounds i8, ptr %2, i64 960
  %146 = getelementptr inbounds i8, ptr %2, i64 976
  %wide.load.30 = load <2 x i64>, ptr %145, align 16, !tbaa !12
  %wide.load32.30 = load <2 x i64>, ptr %146, align 16, !tbaa !12
  %147 = add <2 x i64> %wide.load.30, %143
  %148 = add <2 x i64> %wide.load32.30, %144
  %149 = getelementptr inbounds i8, ptr %2, i64 992
  %150 = getelementptr inbounds i8, ptr %2, i64 1008
  %wide.load.31 = load <2 x i64>, ptr %149, align 16, !tbaa !12
  %wide.load32.31 = load <2 x i64>, ptr %150, align 16, !tbaa !12
  %151 = add <2 x i64> %wide.load.31, %147
  %152 = add <2 x i64> %wide.load32.31, %148
  %bin.rdx = add <2 x i64> %152, %151
  %153 = tail call i64 @llvm.vector.reduce.add.v2i64(<2 x i64> %bin.rdx)
  %154 = shl i64 %153, 3
  %155 = add i64 %154, 8
  %156 = tail call ptr @x_malloc(i64 noundef %155) #5
  store i64 %153, ptr %156, align 8, !tbaa !12
  br label %158

157:                                              ; preds = %171
  call void @llvm.lifetime.end.p0(i64 1024, ptr nonnull %2) #5
  ret ptr %156

158:                                              ; preds = %171, %vector.body.preheader
  %.027 = phi i64 [ 0, %vector.body.preheader ], [ %172, %171 ]
  %.01926 = phi i64 [ 1, %vector.body.preheader ], [ %.1.1, %171 ]
  %159 = getelementptr inbounds [128 x i64], ptr %2, i64 0, i64 %.027
  %160 = load i64, ptr %159, align 16, !tbaa !12
  %.not = icmp eq i64 %160, 0
  br i1 %.not, label %164, label %161

161:                                              ; preds = %158
  %162 = getelementptr inbounds i64, ptr %156, i64 %.01926
  store i64 %.027, ptr %162, align 8, !tbaa !12
  %163 = add i64 %.01926, 1
  br label %164

164:                                              ; preds = %158, %161
  %.1 = phi i64 [ %163, %161 ], [ %.01926, %158 ]
  %165 = or disjoint i64 %.027, 1
  %166 = getelementptr inbounds [128 x i64], ptr %2, i64 0, i64 %165
  %167 = load i64, ptr %166, align 8, !tbaa !12
  %.not.1 = icmp eq i64 %167, 0
  br i1 %.not.1, label %171, label %168

168:                                              ; preds = %164
  %169 = getelementptr inbounds i64, ptr %156, i64 %.1
  store i64 %165, ptr %169, align 8, !tbaa !12
  %170 = add i64 %.1, 1
  br label %171

171:                                              ; preds = %168, %164
  %.1.1 = phi i64 [ %170, %168 ], [ %.1, %164 ]
  %172 = add nuw nsw i64 %.027, 2
  %exitcond30.not.1 = icmp eq i64 %172, 128
  br i1 %exitcond30.not.1, label %157, label %158, !llvm.loop !17
}

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i64 @llvm.vector.reduce.add.v2i64(<2 x i64>) #4

attributes #0 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #1 = { mustprogress 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 uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #5 = { 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, !7, i64 0}
!6 = !{!"molecule", !7, i64 0, !7, i64 8, !10, i64 16, !10, i64 24, !10, i64 32, !10, i64 40, !10, i64 48, !10, i64 56, !7, i64 64, !10, i64 72}
!7 = !{!"long", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"any pointer", !8, i64 0}
!11 = !{!6, !10, i64 16}
!12 = !{!7, !7, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.unroll.disable"}
!17 = distinct !{!17, !14}


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