; LLVM IR from 0intro/wmii :: lib/libstuff/x11/text (textextents_l)

; 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.Rectangle = type { %struct.Point, %struct.Point }
%struct.Point = type { i32, i32 }
%struct.XRectangle = type { i16, i16, i16, i16 }
%struct._XGlyphInfo = type { i16, i16, i16, i16, i16, i16 }
%struct.Font = type { i32, %union.anon, %struct.Rectangle, i32, i32, i32, ptr }
%union.anon = type { ptr }
%struct.Xft = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr }

@xft = external global ptr, align 8
@display = external global ptr, align 8
@ZR = external constant %struct.Rectangle, align 4
@.str = external hidden unnamed_addr constant [83 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [18 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local { i64, i64 } @textextents_l(ptr noundef %0, ptr noundef %1, i32 noundef %2, ptr noundef %3) #0 {
  %5 = alloca %struct.Rectangle, align 4
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca ptr, align 8
  %10 = alloca %struct.Rectangle, align 4
  %11 = alloca %struct.XRectangle, align 2
  %12 = alloca %struct._XGlyphInfo, align 2
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  store ptr %0, ptr %6, align 8, !tbaa !5
  store ptr %1, ptr %7, align 8, !tbaa !5
  store i32 %2, ptr %8, align 4, !tbaa !9
  store ptr %3, ptr %9, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %10) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #4
  call void @llvm.lifetime.start.p0(i64 12, ptr %12) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #4
  %15 = load ptr, ptr %9, align 8, !tbaa !5
  %16 = icmp ne ptr %15, null
  br i1 %16, label %18, label %17

17:                                               ; preds = %4
  store ptr %13, ptr %9, align 8, !tbaa !5
  br label %18

18:                                               ; preds = %17, %4
  %19 = load ptr, ptr %6, align 8, !tbaa !5
  %20 = getelementptr inbounds %struct.Font, ptr %19, i32 0, i32 0
  %21 = load i32, ptr %20, align 8, !tbaa !11
  switch i32 %21, label %118 [
    i32 2, label %22
    i32 3, label %58
    i32 1, label %100
  ]

22:                                               ; preds = %18
  %23 = load ptr, ptr %6, align 8, !tbaa !5
  %24 = getelementptr inbounds %struct.Font, ptr %23, i32 0, i32 1
  %25 = load ptr, ptr %24, align 8, !tbaa !15
  %26 = load ptr, ptr %7, align 8, !tbaa !5
  %27 = load i32, ptr %8, align 4, !tbaa !9
  %28 = call i32 @Xutf8TextExtents(ptr noundef %25, ptr noundef %26, i32 noundef %27, ptr noundef %11, ptr noundef null)
  %29 = load ptr, ptr %9, align 8, !tbaa !5
  store i32 %28, ptr %29, align 4, !tbaa !9
  %30 = getelementptr inbounds %struct.Rectangle, ptr %5, i32 0, i32 0
  %31 = getelementptr inbounds %struct.Point, ptr %30, i32 0, i32 0
  %32 = getelementptr inbounds %struct.XRectangle, ptr %11, i32 0, i32 0
  %33 = load i16, ptr %32, align 2, !tbaa !16
  %34 = sext i16 %33 to i32
  store i32 %34, ptr %31, align 4, !tbaa !19
  %35 = getelementptr inbounds %struct.Point, ptr %30, i32 0, i32 1
  %36 = getelementptr inbounds %struct.XRectangle, ptr %11, i32 0, i32 1
  %37 = load i16, ptr %36, align 2, !tbaa !20
  %38 = sext i16 %37 to i32
  %39 = sub nsw i32 0, %38
  %40 = getelementptr inbounds %struct.XRectangle, ptr %11, i32 0, i32 3
  %41 = load i16, ptr %40, align 2, !tbaa !21
  %42 = zext i16 %41 to i32
  %43 = sub nsw i32 %39, %42
  store i32 %43, ptr %35, align 4, !tbaa !22
  %44 = getelementptr inbounds %struct.Rectangle, ptr %5, i32 0, i32 1
  %45 = getelementptr inbounds %struct.Point, ptr %44, i32 0, i32 0
  %46 = getelementptr inbounds %struct.XRectangle, ptr %11, i32 0, i32 0
  %47 = load i16, ptr %46, align 2, !tbaa !16
  %48 = sext i16 %47 to i32
  %49 = getelementptr inbounds %struct.XRectangle, ptr %11, i32 0, i32 2
  %50 = load i16, ptr %49, align 2, !tbaa !23
  %51 = zext i16 %50 to i32
  %52 = add nsw i32 %48, %51
  store i32 %52, ptr %45, align 4, !tbaa !19
  %53 = getelementptr inbounds %struct.Point, ptr %44, i32 0, i32 1
  %54 = getelementptr inbounds %struct.XRectangle, ptr %11, i32 0, i32 1
  %55 = load i16, ptr %54, align 2, !tbaa !20
  %56 = sext i16 %55 to i32
  %57 = sub nsw i32 0, %56
  store i32 %57, ptr %53, align 4, !tbaa !22
  store i32 1, ptr %14, align 4
  br label %119

58:                                               ; preds = %18
  %59 = load ptr, ptr @xft, align 8, !tbaa !5
  %60 = getelementptr inbounds %struct.Xft, ptr %59, i32 0, i32 5
  %61 = load ptr, ptr %60, align 8, !tbaa !24
  %62 = load ptr, ptr @display, align 8, !tbaa !5
  %63 = load ptr, ptr %6, align 8, !tbaa !5
  %64 = getelementptr inbounds %struct.Font, ptr %63, i32 0, i32 1
  %65 = load ptr, ptr %64, align 8, !tbaa !15
  %66 = load ptr, ptr %7, align 8, !tbaa !5
  %67 = load i32, ptr %8, align 4, !tbaa !9
  call void %61(ptr noundef %62, ptr noundef %65, ptr noundef %66, i32 noundef %67, ptr noundef %12)
  %68 = getelementptr inbounds %struct._XGlyphInfo, ptr %12, i32 0, i32 4
  %69 = load i16, ptr %68, align 2, !tbaa !26
  %70 = sext i16 %69 to i32
  %71 = load ptr, ptr %9, align 8, !tbaa !5
  store i32 %70, ptr %71, align 4, !tbaa !9
  %72 = getelementptr inbounds %struct.Rectangle, ptr %5, i32 0, i32 0
  %73 = getelementptr inbounds %struct.Point, ptr %72, i32 0, i32 0
  %74 = getelementptr inbounds %struct._XGlyphInfo, ptr %12, i32 0, i32 2
  %75 = load i16, ptr %74, align 2, !tbaa !28
  %76 = sext i16 %75 to i32
  %77 = sub nsw i32 0, %76
  store i32 %77, ptr %73, align 4, !tbaa !19
  %78 = getelementptr inbounds %struct.Point, ptr %72, i32 0, i32 1
  %79 = getelementptr inbounds %struct._XGlyphInfo, ptr %12, i32 0, i32 3
  %80 = load i16, ptr %79, align 2, !tbaa !29
  %81 = sext i16 %80 to i32
  %82 = getelementptr inbounds %struct._XGlyphInfo, ptr %12, i32 0, i32 1
  %83 = load i16, ptr %82, align 2, !tbaa !30
  %84 = zext i16 %83 to i32
  %85 = sub nsw i32 %81, %84
  store i32 %85, ptr %78, align 4, !tbaa !22
  %86 = getelementptr inbounds %struct.Rectangle, ptr %5, i32 0, i32 1
  %87 = getelementptr inbounds %struct.Point, ptr %86, i32 0, i32 0
  %88 = getelementptr inbounds %struct._XGlyphInfo, ptr %12, i32 0, i32 2
  %89 = load i16, ptr %88, align 2, !tbaa !28
  %90 = sext i16 %89 to i32
  %91 = sub nsw i32 0, %90
  %92 = getelementptr inbounds %struct._XGlyphInfo, ptr %12, i32 0, i32 0
  %93 = load i16, ptr %92, align 2, !tbaa !31
  %94 = zext i16 %93 to i32
  %95 = add nsw i32 %91, %94
  store i32 %95, ptr %87, align 4, !tbaa !19
  %96 = getelementptr inbounds %struct.Point, ptr %86, i32 0, i32 1
  %97 = getelementptr inbounds %struct._XGlyphInfo, ptr %12, i32 0, i32 3
  %98 = load i16, ptr %97, align 2, !tbaa !29
  %99 = sext i16 %98 to i32
  store i32 %99, ptr %96, align 4, !tbaa !22
  store i32 1, ptr %14, align 4
  br label %119

100:                                              ; preds = %18
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %10, ptr align 4 @ZR, i64 16, i1 false), !tbaa.struct !32
  %101 = load ptr, ptr %6, align 8, !tbaa !5
  %102 = getelementptr inbounds %struct.Font, ptr %101, i32 0, i32 1
  %103 = load ptr, ptr %102, align 8, !tbaa !15
  %104 = load ptr, ptr %7, align 8, !tbaa !5
  %105 = load i32, ptr %8, align 4, !tbaa !9
  %106 = call i32 @XTextWidth(ptr noundef %103, ptr noundef %104, i32 noundef %105)
  %107 = getelementptr inbounds %struct.Rectangle, ptr %10, i32 0, i32 1
  %108 = getelementptr inbounds %struct.Point, ptr %107, i32 0, i32 0
  store i32 %106, ptr %108, align 4, !tbaa !33
  %109 = load ptr, ptr %6, align 8, !tbaa !5
  %110 = getelementptr inbounds %struct.Font, ptr %109, i32 0, i32 3
  %111 = load i32, ptr %110, align 8, !tbaa !34
  %112 = getelementptr inbounds %struct.Rectangle, ptr %10, i32 0, i32 1
  %113 = getelementptr inbounds %struct.Point, ptr %112, i32 0, i32 1
  store i32 %111, ptr %113, align 4, !tbaa !35
  %114 = getelementptr inbounds %struct.Rectangle, ptr %10, i32 0, i32 1
  %115 = getelementptr inbounds %struct.Point, ptr %114, i32 0, i32 0
  %116 = load i32, ptr %115, align 4, !tbaa !33
  %117 = load ptr, ptr %9, align 8, !tbaa !5
  store i32 %116, ptr %117, align 4, !tbaa !9
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %5, ptr align 4 %10, i64 16, i1 false), !tbaa.struct !32
  store i32 1, ptr %14, align 4
  br label %119

118:                                              ; preds = %18
  call void (ptr, i32, ptr, ...) @_die(ptr noundef @.str, i32 noundef 31, ptr noundef @.str.1)
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %5, ptr align 4 @ZR, i64 16, i1 false), !tbaa.struct !32
  store i32 1, ptr %14, align 4
  br label %119

119:                                              ; preds = %118, %100, %58, %22
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #4
  call void @llvm.lifetime.end.p0(i64 12, ptr %12) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %10) #4
  %120 = load { i64, i64 }, ptr %5, align 4
  ret { i64, i64 } %120
}

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

declare i32 @Xutf8TextExtents(ptr noundef, ptr noundef, i32 noundef, ptr noundef, ptr noundef) #2

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

declare i32 @XTextWidth(ptr noundef, ptr noundef, i32 noundef) #2

declare void @_die(ptr noundef, i32 noundef, ptr noundef, ...) #2

; 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 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
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 = !{!"int", !7, i64 0}
!11 = !{!12, !10, i64 0}
!12 = !{!"Font", !10, i64 0, !7, i64 8, !13, i64 16, !10, i64 32, !10, i64 36, !10, i64 40, !6, i64 48}
!13 = !{!"Rectangle", !14, i64 0, !14, i64 8}
!14 = !{!"Point", !10, i64 0, !10, i64 4}
!15 = !{!7, !7, i64 0}
!16 = !{!17, !18, i64 0}
!17 = !{!"", !18, i64 0, !18, i64 2, !18, i64 4, !18, i64 6}
!18 = !{!"short", !7, i64 0}
!19 = !{!14, !10, i64 0}
!20 = !{!17, !18, i64 2}
!21 = !{!17, !18, i64 6}
!22 = !{!14, !10, i64 4}
!23 = !{!17, !18, i64 4}
!24 = !{!25, !6, i64 40}
!25 = !{!"Xft", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48}
!26 = !{!27, !18, i64 8}
!27 = !{!"_XGlyphInfo", !18, i64 0, !18, i64 2, !18, i64 4, !18, i64 6, !18, i64 8, !18, i64 10}
!28 = !{!27, !18, i64 4}
!29 = !{!27, !18, i64 6}
!30 = !{!27, !18, i64 2}
!31 = !{!27, !18, i64 0}
!32 = !{i64 0, i64 4, !9, i64 4, i64 4, !9, i64 8, i64 4, !9, i64 12, i64 4, !9}
!33 = !{!13, !10, i64 8}
!34 = !{!12, !10, i64 32}
!35 = !{!13, !10, i64 12}


; 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.Rectangle = type { %struct.Point, %struct.Point }
%struct.Point = type { i32, i32 }
%struct.XRectangle = type { i16, i16, i16, i16 }
%struct._XGlyphInfo = type { i16, i16, i16, i16, i16, i16 }

@xft = external local_unnamed_addr global ptr, align 8
@display = external local_unnamed_addr global ptr, align 8
@ZR = external local_unnamed_addr constant %struct.Rectangle, align 4
@.str = external hidden unnamed_addr constant [83 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [18 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local { i64, i64 } @textextents_l(ptr nocapture noundef readonly %0, ptr noundef %1, i32 noundef %2, ptr noundef writeonly %3) local_unnamed_addr #0 {
  %5 = alloca %struct.XRectangle, align 2
  %6 = alloca %struct._XGlyphInfo, align 2
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #3
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %6) #3
  %.not = icmp eq ptr %3, null
  %7 = load i32, ptr %0, align 8, !tbaa !5
  switch i32 %7, label %56 [
    i32 2, label %8
    i32 3, label %26
    i32 1, label %50
  ]

8:                                                ; preds = %4
  %9 = getelementptr inbounds i8, ptr %0, i64 8
  %10 = load ptr, ptr %9, align 8, !tbaa !13
  %11 = call i32 @Xutf8TextExtents(ptr noundef %10, ptr noundef %1, i32 noundef %2, ptr noundef nonnull %5, ptr noundef null) #3
  br i1 %.not, label %.cont, label %.else

.else:                                            ; preds = %8
  store i32 %11, ptr %3, align 4, !tbaa !14
  br label %.cont

.cont:                                            ; preds = %8, %.else
  %12 = load i16, ptr %5, align 2, !tbaa !15
  %13 = sext i16 %12 to i32
  %14 = getelementptr inbounds i8, ptr %5, i64 2
  %15 = load i16, ptr %14, align 2, !tbaa !18
  %16 = sext i16 %15 to i32
  %17 = sub nsw i32 0, %16
  %18 = getelementptr inbounds i8, ptr %5, i64 6
  %19 = load i16, ptr %18, align 2, !tbaa !19
  %20 = zext i16 %19 to i32
  %21 = sub nsw i32 %17, %20
  %22 = getelementptr inbounds i8, ptr %5, i64 4
  %23 = load i16, ptr %22, align 2, !tbaa !20
  %24 = zext i16 %23 to i32
  %25 = add nsw i32 %24, %13
  %.sroa.7.8.insert.ext = zext i32 %25 to i64
  %.sroa.7.12.insert.ext = zext i32 %17 to i64
  %.sroa.7.12.insert.shift = shl nuw i64 %.sroa.7.12.insert.ext, 32
  %.sroa.7.12.insert.insert = or disjoint i64 %.sroa.7.12.insert.shift, %.sroa.7.8.insert.ext
  br label %57

26:                                               ; preds = %4
  %27 = load ptr, ptr @xft, align 8, !tbaa !21
  %28 = getelementptr inbounds i8, ptr %27, i64 40
  %29 = load ptr, ptr %28, align 8, !tbaa !22
  %30 = load ptr, ptr @display, align 8, !tbaa !21
  %31 = getelementptr inbounds i8, ptr %0, i64 8
  %32 = load ptr, ptr %31, align 8, !tbaa !13
  call void %29(ptr noundef %30, ptr noundef %32, ptr noundef %1, i32 noundef %2, ptr noundef nonnull %6) #3
  br i1 %.not, label %.cont40, label %.else42

.else42:                                          ; preds = %26
  %33 = getelementptr inbounds i8, ptr %6, i64 8
  %34 = load i16, ptr %33, align 2, !tbaa !24
  %35 = sext i16 %34 to i32
  store i32 %35, ptr %3, align 4, !tbaa !14
  br label %.cont40

.cont40:                                          ; preds = %26, %.else42
  %36 = getelementptr inbounds i8, ptr %6, i64 4
  %37 = load i16, ptr %36, align 2, !tbaa !26
  %38 = sext i16 %37 to i32
  %39 = sub nsw i32 0, %38
  %40 = getelementptr inbounds i8, ptr %6, i64 6
  %41 = load i16, ptr %40, align 2, !tbaa !27
  %42 = sext i16 %41 to i32
  %43 = getelementptr inbounds i8, ptr %6, i64 2
  %44 = load i16, ptr %43, align 2, !tbaa !28
  %45 = zext i16 %44 to i32
  %46 = sub nsw i32 %42, %45
  %47 = load i16, ptr %6, align 2, !tbaa !29
  %48 = zext i16 %47 to i32
  %49 = sub nsw i32 %48, %38
  %.sroa.7.8.insert.ext20 = zext i32 %49 to i64
  %.sroa.7.12.insert.ext28 = zext i32 %42 to i64
  %.sroa.7.12.insert.shift29 = shl nuw i64 %.sroa.7.12.insert.ext28, 32
  %.sroa.7.12.insert.insert31 = or disjoint i64 %.sroa.7.12.insert.shift29, %.sroa.7.8.insert.ext20
  br label %57

50:                                               ; preds = %4
  %.sroa.0.sroa.0.0.copyload = load i64, ptr @ZR, align 4
  %51 = getelementptr inbounds i8, ptr %0, i64 8
  %52 = load ptr, ptr %51, align 8, !tbaa !13
  %53 = tail call i32 @XTextWidth(ptr noundef %52, ptr noundef %1, i32 noundef %2) #3
  %54 = getelementptr inbounds i8, ptr %0, i64 32
  %55 = load i32, ptr %54, align 8, !tbaa !30
  br i1 %.not, label %.cont43, label %.else45

.else45:                                          ; preds = %50
  store i32 %53, ptr %3, align 4, !tbaa !14
  br label %.cont43

.cont43:                                          ; preds = %50, %.else45
  %.sroa.016.sroa.0.0.extract.trunc37 = trunc i64 %.sroa.0.sroa.0.0.copyload to i32
  %.sroa.016.sroa.5.0.extract.shift38 = lshr i64 %.sroa.0.sroa.0.0.copyload, 32
  %.sroa.016.sroa.5.0.extract.trunc39 = trunc nuw i64 %.sroa.016.sroa.5.0.extract.shift38 to i32
  %.sroa.7.8.insert.ext24 = zext i32 %53 to i64
  %.sroa.7.12.insert.ext33 = zext i32 %55 to i64
  %.sroa.7.12.insert.shift34 = shl nuw i64 %.sroa.7.12.insert.ext33, 32
  %.sroa.7.12.insert.insert36 = or disjoint i64 %.sroa.7.12.insert.shift34, %.sroa.7.8.insert.ext24
  br label %57

56:                                               ; preds = %4
  tail call void (ptr, i32, ptr, ...) @_die(ptr noundef nonnull @.str, i32 noundef 31, ptr noundef nonnull @.str.1) #3
  %.sroa.016.0.copyload = load i64, ptr @ZR, align 4
  %.sroa.016.sroa.0.0.extract.trunc = trunc i64 %.sroa.016.0.copyload to i32
  %.sroa.016.sroa.5.0.extract.shift = lshr i64 %.sroa.016.0.copyload, 32
  %.sroa.016.sroa.5.0.extract.trunc = trunc nuw i64 %.sroa.016.sroa.5.0.extract.shift to i32
  %.sroa.7.0.copyload = load i64, ptr getelementptr inbounds (i8, ptr @ZR, i64 8), align 4
  br label %57

57:                                               ; preds = %56, %.cont43, %.cont40, %.cont
  %.sroa.7.0 = phi i64 [ %.sroa.7.0.copyload, %56 ], [ %.sroa.7.12.insert.insert36, %.cont43 ], [ %.sroa.7.12.insert.insert31, %.cont40 ], [ %.sroa.7.12.insert.insert, %.cont ]
  %.sroa.016.sroa.0.0 = phi i32 [ %.sroa.016.sroa.0.0.extract.trunc, %56 ], [ %.sroa.016.sroa.0.0.extract.trunc37, %.cont43 ], [ %39, %.cont40 ], [ %13, %.cont ]
  %.sroa.016.sroa.5.0 = phi i32 [ %.sroa.016.sroa.5.0.extract.trunc, %56 ], [ %.sroa.016.sroa.5.0.extract.trunc39, %.cont43 ], [ %46, %.cont40 ], [ %21, %.cont ]
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %6) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #3
  %.sroa.016.sroa.5.0.insert.ext = zext i32 %.sroa.016.sroa.5.0 to i64
  %.sroa.016.sroa.5.0.insert.shift = shl nuw i64 %.sroa.016.sroa.5.0.insert.ext, 32
  %.sroa.016.sroa.0.0.insert.ext = zext i32 %.sroa.016.sroa.0.0 to i64
  %.sroa.016.sroa.0.0.insert.insert = or disjoint i64 %.sroa.016.sroa.5.0.insert.shift, %.sroa.016.sroa.0.0.insert.ext
  %.fca.0.insert = insertvalue { i64, i64 } poison, i64 %.sroa.016.sroa.0.0.insert.insert, 0
  %.fca.1.insert = insertvalue { i64, i64 } %.fca.0.insert, i64 %.sroa.7.0, 1
  ret { i64, i64 } %.fca.1.insert
}

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

declare i32 @Xutf8TextExtents(ptr noundef, ptr noundef, i32 noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

declare i32 @XTextWidth(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #2

declare void @_die(ptr noundef, i32 noundef, ptr noundef, ...) local_unnamed_addr #2

; Function Attrs: mustprogress 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 = { 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 }

!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 = !{!"Font", !7, i64 0, !8, i64 8, !10, i64 16, !7, i64 32, !7, i64 36, !7, i64 40, !12, i64 48}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"Rectangle", !11, i64 0, !11, i64 8}
!11 = !{!"Point", !7, i64 0, !7, i64 4}
!12 = !{!"any pointer", !8, i64 0}
!13 = !{!8, !8, i64 0}
!14 = !{!7, !7, i64 0}
!15 = !{!16, !17, i64 0}
!16 = !{!"", !17, i64 0, !17, i64 2, !17, i64 4, !17, i64 6}
!17 = !{!"short", !8, i64 0}
!18 = !{!16, !17, i64 2}
!19 = !{!16, !17, i64 6}
!20 = !{!16, !17, i64 4}
!21 = !{!12, !12, i64 0}
!22 = !{!23, !12, i64 40}
!23 = !{!"Xft", !12, i64 0, !12, i64 8, !12, i64 16, !12, i64 24, !12, i64 32, !12, i64 40, !12, i64 48}
!24 = !{!25, !17, i64 8}
!25 = !{!"_XGlyphInfo", !17, i64 0, !17, i64 2, !17, i64 4, !17, i64 6, !17, i64 8, !17, i64 10}
!26 = !{!25, !17, i64 4}
!27 = !{!25, !17, i64 6}
!28 = !{!25, !17, i64 2}
!29 = !{!25, !17, i64 0}
!30 = !{!6, !7, i64 32}


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