; LLVM IR from ryanlayer/giggle :: test/unit/unity (unity)

; 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._Unity = type { ptr, ptr, ptr, ptr, i64, i64, i64, i64, i64, i64, [1 x %struct.__jmp_buf_tag] }
%struct.__jmp_buf_tag = type { [8 x i64], i32, %struct.__sigset_t }
%struct.__sigset_t = type { [16 x i64] }

@Unity = external dso_local global %struct._Unity, align 8
@UnityStrExpected = external hidden constant [11 x i8], align 1
@UnityStrWas = external hidden constant [6 x i8], align 1
@UnityStrPointless = external hidden constant [55 x i8], align 16
@UnityStrElement = external hidden constant [10 x i8], align 1

; Function Attrs: nounwind uwtable
declare dso_local void @UnityPrint(ptr noundef) #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

; Function Attrs: nounwind uwtable
declare dso_local void @UnityPrintNumberByStyle(i64 noundef, i32 noundef) #0

; Function Attrs: nounwind uwtable
declare dso_local void @UnityPrintNumberUnsigned(i64 noundef) #0

; Function Attrs: nounwind uwtable
declare hidden void @UnityTestResultsFailBegin(i64 noundef) #0

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

; Function Attrs: noreturn nounwind
declare void @longjmp(ptr noundef, i32 noundef) #2

; Function Attrs: nounwind uwtable
define dso_local void @UnityAssertEqualIntArray(ptr noundef %0, ptr noundef %1, i32 noundef %2, ptr noundef %3, i64 noundef %4, i32 noundef %5) #0 {
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca ptr, align 8
  %11 = alloca i64, align 8
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca ptr, align 8
  %15 = alloca ptr, align 8
  %16 = alloca 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 ptr %3, ptr %10, align 8, !tbaa !5
  store i64 %4, ptr %11, align 8, !tbaa !11
  store i32 %5, ptr %12, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #3
  %17 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %17, ptr %13, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #3
  %18 = load ptr, ptr %7, align 8, !tbaa !5
  store ptr %18, ptr %14, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #3
  %19 = load ptr, ptr %8, align 8, !tbaa !5
  store ptr %19, ptr %15, align 8, !tbaa !5
  %20 = load i64, ptr getelementptr inbounds (%struct._Unity, ptr @Unity, i32 0, i32 8), align 8, !tbaa !13
  %21 = icmp ne i64 %20, 0
  br i1 %21, label %25, label %22

22:                                               ; preds = %6
  %23 = load i64, ptr getelementptr inbounds (%struct._Unity, ptr @Unity, i32 0, i32 9), align 8, !tbaa !15
  %24 = icmp ne i64 %23, 0
  br i1 %24, label %25, label %26

25:                                               ; preds = %22, %6
  store i32 1, ptr %16, align 4
  br label %194

26:                                               ; preds = %22
  %27 = load i32, ptr %13, align 4, !tbaa !9
  %28 = icmp eq i32 %27, 0
  br i1 %28, label %29, label %32

29:                                               ; preds = %26
  %30 = load i64, ptr %11, align 8, !tbaa !11
  call void @UnityTestResultsFailBegin(i64 noundef %30)
  call void @UnityPrint(ptr noundef @UnityStrPointless)
  %31 = load ptr, ptr %10, align 8, !tbaa !5
  call void @UnityAddMsgIfSpecified(ptr noundef %31)
  store i64 1, ptr getelementptr inbounds (%struct._Unity, ptr @Unity, i32 0, i32 8), align 8, !tbaa !13
  call void @longjmp(ptr noundef getelementptr inbounds (%struct._Unity, ptr @Unity, i32 0, i32 10), i32 noundef 1) #4
  unreachable

32:                                               ; preds = %26
  %33 = load ptr, ptr %7, align 8, !tbaa !5
  %34 = load ptr, ptr %8, align 8, !tbaa !5
  %35 = load i64, ptr %11, align 8, !tbaa !11
  %36 = load ptr, ptr %10, align 8, !tbaa !5
  %37 = call i32 @UnityCheckArraysForNull(ptr noundef %33, ptr noundef %34, i64 noundef %35, ptr noundef %36)
  %38 = icmp eq i32 %37, 1
  br i1 %38, label %39, label %40

39:                                               ; preds = %32
  store i32 1, ptr %16, align 4
  br label %194

40:                                               ; preds = %32
  %41 = load i32, ptr %12, align 4, !tbaa !9
  %42 = and i32 %41, -129
  switch i32 %42, label %156 [
    i32 65, label %43
    i32 17, label %43
    i32 33, label %43
    i32 66, label %82
    i32 18, label %82
    i32 34, label %82
    i32 72, label %121
    i32 24, label %121
    i32 40, label %121
  ]

43:                                               ; preds = %40, %40, %40
  br label %44

44:                                               ; preds = %72, %43
  %45 = load i32, ptr %13, align 4, !tbaa !9
  %46 = add i32 %45, -1
  store i32 %46, ptr %13, align 4, !tbaa !9
  %47 = icmp ne i32 %45, 0
  br i1 %47, label %48, label %81

48:                                               ; preds = %44
  %49 = load ptr, ptr %14, align 8, !tbaa !5
  %50 = load i8, ptr %49, align 1, !tbaa !16
  %51 = sext i8 %50 to i32
  %52 = load ptr, ptr %15, align 8, !tbaa !5
  %53 = load i8, ptr %52, align 1, !tbaa !16
  %54 = sext i8 %53 to i32
  %55 = icmp ne i32 %51, %54
  br i1 %55, label %56, label %72

56:                                               ; preds = %48
  %57 = load i64, ptr %11, align 8, !tbaa !11
  call void @UnityTestResultsFailBegin(i64 noundef %57)
  call void @UnityPrint(ptr noundef @UnityStrElement)
  %58 = load i32, ptr %9, align 4, !tbaa !9
  %59 = load i32, ptr %13, align 4, !tbaa !9
  %60 = sub i32 %58, %59
  %61 = sub i32 %60, 1
  %62 = zext i32 %61 to i64
  call void @UnityPrintNumberUnsigned(i64 noundef %62)
  call void @UnityPrint(ptr noundef @UnityStrExpected)
  %63 = load ptr, ptr %14, align 8, !tbaa !5
  %64 = load i8, ptr %63, align 1, !tbaa !16
  %65 = sext i8 %64 to i64
  %66 = load i32, ptr %12, align 4, !tbaa !9
  call void @UnityPrintNumberByStyle(i64 noundef %65, i32 noundef %66)
  call void @UnityPrint(ptr noundef @UnityStrWas)
  %67 = load ptr, ptr %15, align 8, !tbaa !5
  %68 = load i8, ptr %67, align 1, !tbaa !16
  %69 = sext i8 %68 to i64
  %70 = load i32, ptr %12, align 4, !tbaa !9
  call void @UnityPrintNumberByStyle(i64 noundef %69, i32 noundef %70)
  %71 = load ptr, ptr %10, align 8, !tbaa !5
  call void @UnityAddMsgIfSpecified(ptr noundef %71)
  store i64 1, ptr getelementptr inbounds (%struct._Unity, ptr @Unity, i32 0, i32 8), align 8, !tbaa !13
  call void @longjmp(ptr noundef getelementptr inbounds (%struct._Unity, ptr @Unity, i32 0, i32 10), i32 noundef 1) #4
  unreachable

72:                                               ; preds = %48
  %73 = load ptr, ptr %14, align 8, !tbaa !5
  %74 = ptrtoint ptr %73 to i64
  %75 = add i64 %74, 1
  %76 = inttoptr i64 %75 to ptr
  store ptr %76, ptr %14, align 8, !tbaa !5
  %77 = load ptr, ptr %15, align 8, !tbaa !5
  %78 = ptrtoint ptr %77 to i64
  %79 = add i64 %78, 1
  %80 = inttoptr i64 %79 to ptr
  store ptr %80, ptr %15, align 8, !tbaa !5
  br label %44, !llvm.loop !17

81:                                               ; preds = %44
  br label %193

82:                                               ; preds = %40, %40, %40
  br label %83

83:                                               ; preds = %111, %82
  %84 = load i32, ptr %13, align 4, !tbaa !9
  %85 = add i32 %84, -1
  store i32 %85, ptr %13, align 4, !tbaa !9
  %86 = icmp ne i32 %84, 0
  br i1 %86, label %87, label %120

87:                                               ; preds = %83
  %88 = load ptr, ptr %14, align 8, !tbaa !5
  %89 = load i16, ptr %88, align 2, !tbaa !19
  %90 = sext i16 %89 to i32
  %91 = load ptr, ptr %15, align 8, !tbaa !5
  %92 = load i16, ptr %91, align 2, !tbaa !19
  %93 = sext i16 %92 to i32
  %94 = icmp ne i32 %90, %93
  br i1 %94, label %95, label %111

95:                                               ; preds = %87
  %96 = load i64, ptr %11, align 8, !tbaa !11
  call void @UnityTestResultsFailBegin(i64 noundef %96)
  call void @UnityPrint(ptr noundef @UnityStrElement)
  %97 = load i32, ptr %9, align 4, !tbaa !9
  %98 = load i32, ptr %13, align 4, !tbaa !9
  %99 = sub i32 %97, %98
  %100 = sub i32 %99, 1
  %101 = zext i32 %100 to i64
  call void @UnityPrintNumberUnsigned(i64 noundef %101)
  call void @UnityPrint(ptr noundef @UnityStrExpected)
  %102 = load ptr, ptr %14, align 8, !tbaa !5
  %103 = load i16, ptr %102, align 2, !tbaa !19
  %104 = sext i16 %103 to i64
  %105 = load i32, ptr %12, align 4, !tbaa !9
  call void @UnityPrintNumberByStyle(i64 noundef %104, i32 noundef %105)
  call void @UnityPrint(ptr noundef @UnityStrWas)
  %106 = load ptr, ptr %15, align 8, !tbaa !5
  %107 = load i16, ptr %106, align 2, !tbaa !19
  %108 = sext i16 %107 to i64
  %109 = load i32, ptr %12, align 4, !tbaa !9
  call void @UnityPrintNumberByStyle(i64 noundef %108, i32 noundef %109)
  %110 = load ptr, ptr %10, align 8, !tbaa !5
  call void @UnityAddMsgIfSpecified(ptr noundef %110)
  store i64 1, ptr getelementptr inbounds (%struct._Unity, ptr @Unity, i32 0, i32 8), align 8, !tbaa !13
  call void @longjmp(ptr noundef getelementptr inbounds (%struct._Unity, ptr @Unity, i32 0, i32 10), i32 noundef 1) #4
  unreachable

111:                                              ; preds = %87
  %112 = load ptr, ptr %14, align 8, !tbaa !5
  %113 = ptrtoint ptr %112 to i64
  %114 = add i64 %113, 2
  %115 = inttoptr i64 %114 to ptr
  store ptr %115, ptr %14, align 8, !tbaa !5
  %116 = load ptr, ptr %15, align 8, !tbaa !5
  %117 = ptrtoint ptr %116 to i64
  %118 = add i64 %117, 2
  %119 = inttoptr i64 %118 to ptr
  store ptr %119, ptr %15, align 8, !tbaa !5
  br label %83, !llvm.loop !21

120:                                              ; preds = %83
  br label %193

121:                                              ; preds = %40, %40, %40
  br label %122

122:                                              ; preds = %146, %121
  %123 = load i32, ptr %13, align 4, !tbaa !9
  %124 = add i32 %123, -1
  store i32 %124, ptr %13, align 4, !tbaa !9
  %125 = icmp ne i32 %123, 0
  br i1 %125, label %126, label %155

126:                                              ; preds = %122
  %127 = load ptr, ptr %14, align 8, !tbaa !5
  %128 = load i64, ptr %127, align 8, !tbaa !11
  %129 = load ptr, ptr %15, align 8, !tbaa !5
  %130 = load i64, ptr %129, align 8, !tbaa !11
  %131 = icmp ne i64 %128, %130
  br i1 %131, label %132, label %146

132:                                              ; preds = %126
  %133 = load i64, ptr %11, align 8, !tbaa !11
  call void @UnityTestResultsFailBegin(i64 noundef %133)
  call void @UnityPrint(ptr noundef @UnityStrElement)
  %134 = load i32, ptr %9, align 4, !tbaa !9
  %135 = load i32, ptr %13, align 4, !tbaa !9
  %136 = sub i32 %134, %135
  %137 = sub i32 %136, 1
  %138 = zext i32 %137 to i64
  call void @UnityPrintNumberUnsigned(i64 noundef %138)
  call void @UnityPrint(ptr noundef @UnityStrExpected)
  %139 = load ptr, ptr %14, align 8, !tbaa !5
  %140 = load i64, ptr %139, align 8, !tbaa !11
  %141 = load i32, ptr %12, align 4, !tbaa !9
  call void @UnityPrintNumberByStyle(i64 noundef %140, i32 noundef %141)
  call void @UnityPrint(ptr noundef @UnityStrWas)
  %142 = load ptr, ptr %15, align 8, !tbaa !5
  %143 = load i64, ptr %142, align 8, !tbaa !11
  %144 = load i32, ptr %12, align 4, !tbaa !9
  call void @UnityPrintNumberByStyle(i64 noundef %143, i32 noundef %144)
  %145 = load ptr, ptr %10, align 8, !tbaa !5
  call void @UnityAddMsgIfSpecified(ptr noundef %145)
  store i64 1, ptr getelementptr inbounds (%struct._Unity, ptr @Unity, i32 0, i32 8), align 8, !tbaa !13
  call void @longjmp(ptr noundef getelementptr inbounds (%struct._Unity, ptr @Unity, i32 0, i32 10), i32 noundef 1) #4
  unreachable

146:                                              ; preds = %126
  %147 = load ptr, ptr %14, align 8, !tbaa !5
  %148 = ptrtoint ptr %147 to i64
  %149 = add i64 %148, 8
  %150 = inttoptr i64 %149 to ptr
  store ptr %150, ptr %14, align 8, !tbaa !5
  %151 = load ptr, ptr %15, align 8, !tbaa !5
  %152 = ptrtoint ptr %151 to i64
  %153 = add i64 %152, 8
  %154 = inttoptr i64 %153 to ptr
  store ptr %154, ptr %15, align 8, !tbaa !5
  br label %122, !llvm.loop !22

155:                                              ; preds = %122
  br label %193

156:                                              ; preds = %40
  br label %157

157:                                              ; preds = %183, %156
  %158 = load i32, ptr %13, align 4, !tbaa !9
  %159 = add i32 %158, -1
  store i32 %159, ptr %13, align 4, !tbaa !9
  %160 = icmp ne i32 %158, 0
  br i1 %160, label %161, label %192

161:                                              ; preds = %157
  %162 = load ptr, ptr %14, align 8, !tbaa !5
  %163 = load i32, ptr %162, align 4, !tbaa !9
  %164 = load ptr, ptr %15, align 8, !tbaa !5
  %165 = load i32, ptr %164, align 4, !tbaa !9
  %166 = icmp ne i32 %163, %165
  br i1 %166, label %167, label %183

167:                                              ; preds = %161
  %168 = load i64, ptr %11, align 8, !tbaa !11
  call void @UnityTestResultsFailBegin(i64 noundef %168)
  call void @UnityPrint(ptr noundef @UnityStrElement)
  %169 = load i32, ptr %9, align 4, !tbaa !9
  %170 = load i32, ptr %13, align 4, !tbaa !9
  %171 = sub i32 %169, %170
  %172 = sub i32 %171, 1
  %173 = zext i32 %172 to i64
  call void @UnityPrintNumberUnsigned(i64 noundef %173)
  call void @UnityPrint(ptr noundef @UnityStrExpected)
  %174 = load ptr, ptr %14, align 8, !tbaa !5
  %175 = load i32, ptr %174, align 4, !tbaa !9
  %176 = sext i32 %175 to i64
  %177 = load i32, ptr %12, align 4, !tbaa !9
  call void @UnityPrintNumberByStyle(i64 noundef %176, i32 noundef %177)
  call void @UnityPrint(ptr noundef @UnityStrWas)
  %178 = load ptr, ptr %15, align 8, !tbaa !5
  %179 = load i32, ptr %178, align 4, !tbaa !9
  %180 = sext i32 %179 to i64
  %181 = load i32, ptr %12, align 4, !tbaa !9
  call void @UnityPrintNumberByStyle(i64 noundef %180, i32 noundef %181)
  %182 = load ptr, ptr %10, align 8, !tbaa !5
  call void @UnityAddMsgIfSpecified(ptr noundef %182)
  store i64 1, ptr getelementptr inbounds (%struct._Unity, ptr @Unity, i32 0, i32 8), align 8, !tbaa !13
  call void @longjmp(ptr noundef getelementptr inbounds (%struct._Unity, ptr @Unity, i32 0, i32 10), i32 noundef 1) #4
  unreachable

183:                                              ; preds = %161
  %184 = load ptr, ptr %14, align 8, !tbaa !5
  %185 = ptrtoint ptr %184 to i64
  %186 = add i64 %185, 4
  %187 = inttoptr i64 %186 to ptr
  store ptr %187, ptr %14, align 8, !tbaa !5
  %188 = load ptr, ptr %15, align 8, !tbaa !5
  %189 = ptrtoint ptr %188 to i64
  %190 = add i64 %189, 4
  %191 = inttoptr i64 %190 to ptr
  store ptr %191, ptr %15, align 8, !tbaa !5
  br label %157, !llvm.loop !23

192:                                              ; preds = %157
  br label %193

193:                                              ; preds = %192, %155, %120, %81
  store i32 0, ptr %16, align 4
  br label %194

194:                                              ; preds = %193, %39, %25
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #3
  %195 = load i32, ptr %16, align 4
  switch i32 %195, label %197 [
    i32 0, label %196
    i32 1, label %196
  ]

196:                                              ; preds = %194, %194
  ret void

197:                                              ; preds = %194
  unreachable
}

; Function Attrs: nounwind uwtable
declare hidden i32 @UnityCheckArraysForNull(ptr noundef, ptr noundef, i64 noundef, ptr noundef) #0

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 = { noreturn 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" }
attributes #3 = { nounwind }
attributes #4 = { noreturn 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, !12, i64 0}
!12 = !{!"long", !7, i64 0}
!13 = !{!14, !12, i64 64}
!14 = !{!"_Unity", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !12, i64 32, !12, i64 40, !12, i64 48, !12, i64 56, !12, i64 64, !12, i64 72, !7, i64 80}
!15 = !{!14, !12, i64 72}
!16 = !{!7, !7, i64 0}
!17 = distinct !{!17, !18}
!18 = !{!"llvm.loop.mustprogress"}
!19 = !{!20, !20, i64 0}
!20 = !{!"short", !7, i64 0}
!21 = distinct !{!21, !18}
!22 = distinct !{!22, !18}
!23 = distinct !{!23, !18}


; 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._Unity = type { ptr, ptr, ptr, ptr, i64, i64, i64, i64, i64, i64, [1 x %struct.__jmp_buf_tag] }
%struct.__jmp_buf_tag = type { [8 x i64], i32, %struct.__sigset_t }
%struct.__sigset_t = type { [16 x i64] }

@Unity = external dso_local global %struct._Unity, align 8
@UnityStrExpected = external hidden constant [11 x i8], align 1
@UnityStrWas = external hidden constant [6 x i8], align 1
@UnityStrPointless = external hidden constant [55 x i8], align 16
@UnityStrElement = external hidden constant [10 x i8], align 1

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

; Function Attrs: nounwind uwtable
declare dso_local void @UnityPrintNumberByStyle(i64 noundef, i32 noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare dso_local void @UnityPrintNumberUnsigned(i64 noundef) local_unnamed_addr #0

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

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

; Function Attrs: noreturn nounwind
declare void @longjmp(ptr noundef, i32 noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
define dso_local void @UnityAssertEqualIntArray(ptr noundef %0, ptr noundef %1, i32 noundef %2, ptr noundef %3, i64 noundef %4, i32 noundef %5) local_unnamed_addr #0 {
  %7 = load i64, ptr getelementptr inbounds (i8, ptr @Unity, i64 64), align 8, !tbaa !5
  %8 = icmp ne i64 %7, 0
  %9 = load i64, ptr getelementptr inbounds (i8, ptr @Unity, i64 72), align 8
  %10 = icmp ne i64 %9, 0
  %or.cond = select i1 %8, i1 true, i1 %10
  br i1 %or.cond, label %.loopexit, label %11

11:                                               ; preds = %6
  %12 = icmp eq i32 %2, 0
  br i1 %12, label %13, label %14

13:                                               ; preds = %11
  tail call void @UnityTestResultsFailBegin(i64 noundef %4)
  tail call void @UnityPrint(ptr noundef nonnull @UnityStrPointless)
  tail call void @UnityAddMsgIfSpecified(ptr noundef %3)
  store i64 1, ptr getelementptr inbounds (i8, ptr @Unity, i64 64), align 8, !tbaa !5
  tail call void @longjmp(ptr noundef nonnull getelementptr inbounds (i8, ptr @Unity, i64 80), i32 noundef 1) #2
  unreachable

14:                                               ; preds = %11
  %15 = tail call i32 @UnityCheckArraysForNull(ptr noundef %0, ptr noundef %1, i64 noundef %4, ptr noundef %3)
  %16 = icmp eq i32 %15, 1
  br i1 %16, label %.loopexit, label %17

17:                                               ; preds = %14
  %18 = and i32 %5, -129
  switch i32 %18, label %.preheader [
    i32 65, label %.preheader154
    i32 17, label %.preheader154
    i32 33, label %.preheader154
    i32 66, label %.preheader159
    i32 18, label %.preheader159
    i32 34, label %.preheader159
    i32 72, label %.preheader164
    i32 24, label %.preheader164
    i32 40, label %.preheader164
  ]

.preheader164:                                    ; preds = %17, %17, %17
  br label %55

.preheader159:                                    ; preds = %17, %17, %17
  br label %37

.preheader154:                                    ; preds = %17, %17, %17
  br label %19

19:                                               ; preds = %.preheader154, %29
  %.0102 = phi ptr [ %36, %29 ], [ %1, %.preheader154 ]
  %.063101 = phi ptr [ %33, %29 ], [ %0, %.preheader154 ]
  %.067100 = phi i32 [ %30, %29 ], [ %2, %.preheader154 ]
  %20 = load i8, ptr %.063101, align 1, !tbaa !11
  %21 = load i8, ptr %.0102, align 1, !tbaa !11
  %.not76 = icmp eq i8 %20, %21
  br i1 %.not76, label %29, label %22

22:                                               ; preds = %19
  tail call void @UnityTestResultsFailBegin(i64 noundef %4)
  tail call void @UnityPrint(ptr noundef nonnull @UnityStrElement)
  %23 = sub i32 %2, %.067100
  %24 = zext i32 %23 to i64
  tail call void @UnityPrintNumberUnsigned(i64 noundef %24)
  tail call void @UnityPrint(ptr noundef nonnull @UnityStrExpected)
  %25 = load i8, ptr %.063101, align 1, !tbaa !11
  %26 = sext i8 %25 to i64
  tail call void @UnityPrintNumberByStyle(i64 noundef %26, i32 noundef %5)
  tail call void @UnityPrint(ptr noundef nonnull @UnityStrWas)
  %27 = load i8, ptr %.0102, align 1, !tbaa !11
  %28 = sext i8 %27 to i64
  tail call void @UnityPrintNumberByStyle(i64 noundef %28, i32 noundef %5)
  tail call void @UnityAddMsgIfSpecified(ptr noundef %3)
  store i64 1, ptr getelementptr inbounds (i8, ptr @Unity, i64 64), align 8, !tbaa !5
  tail call void @longjmp(ptr noundef nonnull getelementptr inbounds (i8, ptr @Unity, i64 80), i32 noundef 1) #2
  unreachable

29:                                               ; preds = %19
  %30 = add i32 %.067100, -1
  %31 = ptrtoint ptr %.063101 to i64
  %32 = add i64 %31, 1
  %33 = inttoptr i64 %32 to ptr
  %34 = ptrtoint ptr %.0102 to i64
  %35 = add i64 %34, 1
  %36 = inttoptr i64 %35 to ptr
  %.not75 = icmp eq i32 %30, 0
  br i1 %.not75, label %.loopexit, label %19, !llvm.loop !12

37:                                               ; preds = %.preheader159, %47
  %.199 = phi ptr [ %54, %47 ], [ %1, %.preheader159 ]
  %.16498 = phi ptr [ %51, %47 ], [ %0, %.preheader159 ]
  %.16897 = phi i32 [ %48, %47 ], [ %2, %.preheader159 ]
  %38 = load i16, ptr %.16498, align 2, !tbaa !14
  %39 = load i16, ptr %.199, align 2, !tbaa !14
  %.not74 = icmp eq i16 %38, %39
  br i1 %.not74, label %47, label %40

40:                                               ; preds = %37
  tail call void @UnityTestResultsFailBegin(i64 noundef %4)
  tail call void @UnityPrint(ptr noundef nonnull @UnityStrElement)
  %41 = sub i32 %2, %.16897
  %42 = zext i32 %41 to i64
  tail call void @UnityPrintNumberUnsigned(i64 noundef %42)
  tail call void @UnityPrint(ptr noundef nonnull @UnityStrExpected)
  %43 = load i16, ptr %.16498, align 2, !tbaa !14
  %44 = sext i16 %43 to i64
  tail call void @UnityPrintNumberByStyle(i64 noundef %44, i32 noundef %5)
  tail call void @UnityPrint(ptr noundef nonnull @UnityStrWas)
  %45 = load i16, ptr %.199, align 2, !tbaa !14
  %46 = sext i16 %45 to i64
  tail call void @UnityPrintNumberByStyle(i64 noundef %46, i32 noundef %5)
  tail call void @UnityAddMsgIfSpecified(ptr noundef %3)
  store i64 1, ptr getelementptr inbounds (i8, ptr @Unity, i64 64), align 8, !tbaa !5
  tail call void @longjmp(ptr noundef nonnull getelementptr inbounds (i8, ptr @Unity, i64 80), i32 noundef 1) #2
  unreachable

47:                                               ; preds = %37
  %48 = add i32 %.16897, -1
  %49 = ptrtoint ptr %.16498 to i64
  %50 = add i64 %49, 2
  %51 = inttoptr i64 %50 to ptr
  %52 = ptrtoint ptr %.199 to i64
  %53 = add i64 %52, 2
  %54 = inttoptr i64 %53 to ptr
  %.not73 = icmp eq i32 %48, 0
  br i1 %.not73, label %.loopexit, label %37, !llvm.loop !16

55:                                               ; preds = %.preheader164, %63
  %.296 = phi ptr [ %70, %63 ], [ %1, %.preheader164 ]
  %.26595 = phi ptr [ %67, %63 ], [ %0, %.preheader164 ]
  %.26994 = phi i32 [ %64, %63 ], [ %2, %.preheader164 ]
  %56 = load i64, ptr %.26595, align 8, !tbaa !17
  %57 = load i64, ptr %.296, align 8, !tbaa !17
  %.not72 = icmp eq i64 %56, %57
  br i1 %.not72, label %63, label %58

58:                                               ; preds = %55
  tail call void @UnityTestResultsFailBegin(i64 noundef %4)
  tail call void @UnityPrint(ptr noundef nonnull @UnityStrElement)
  %59 = sub i32 %2, %.26994
  %60 = zext i32 %59 to i64
  tail call void @UnityPrintNumberUnsigned(i64 noundef %60)
  tail call void @UnityPrint(ptr noundef nonnull @UnityStrExpected)
  %61 = load i64, ptr %.26595, align 8, !tbaa !17
  tail call void @UnityPrintNumberByStyle(i64 noundef %61, i32 noundef %5)
  tail call void @UnityPrint(ptr noundef nonnull @UnityStrWas)
  %62 = load i64, ptr %.296, align 8, !tbaa !17
  tail call void @UnityPrintNumberByStyle(i64 noundef %62, i32 noundef %5)
  tail call void @UnityAddMsgIfSpecified(ptr noundef %3)
  store i64 1, ptr getelementptr inbounds (i8, ptr @Unity, i64 64), align 8, !tbaa !5
  tail call void @longjmp(ptr noundef nonnull getelementptr inbounds (i8, ptr @Unity, i64 80), i32 noundef 1) #2
  unreachable

63:                                               ; preds = %55
  %64 = add i32 %.26994, -1
  %65 = ptrtoint ptr %.26595 to i64
  %66 = add i64 %65, 8
  %67 = inttoptr i64 %66 to ptr
  %68 = ptrtoint ptr %.296 to i64
  %69 = add i64 %68, 8
  %70 = inttoptr i64 %69 to ptr
  %.not = icmp eq i32 %64, 0
  br i1 %.not, label %.loopexit, label %55, !llvm.loop !18

.preheader:                                       ; preds = %17, %80
  %.3105 = phi ptr [ %87, %80 ], [ %1, %17 ]
  %.366104 = phi ptr [ %84, %80 ], [ %0, %17 ]
  %.370103 = phi i32 [ %81, %80 ], [ %2, %17 ]
  %71 = load i32, ptr %.366104, align 4, !tbaa !19
  %72 = load i32, ptr %.3105, align 4, !tbaa !19
  %.not78 = icmp eq i32 %71, %72
  br i1 %.not78, label %80, label %73

73:                                               ; preds = %.preheader
  tail call void @UnityTestResultsFailBegin(i64 noundef %4)
  tail call void @UnityPrint(ptr noundef nonnull @UnityStrElement)
  %74 = sub i32 %2, %.370103
  %75 = zext i32 %74 to i64
  tail call void @UnityPrintNumberUnsigned(i64 noundef %75)
  tail call void @UnityPrint(ptr noundef nonnull @UnityStrExpected)
  %76 = load i32, ptr %.366104, align 4, !tbaa !19
  %77 = sext i32 %76 to i64
  tail call void @UnityPrintNumberByStyle(i64 noundef %77, i32 noundef %5)
  tail call void @UnityPrint(ptr noundef nonnull @UnityStrWas)
  %78 = load i32, ptr %.3105, align 4, !tbaa !19
  %79 = sext i32 %78 to i64
  tail call void @UnityPrintNumberByStyle(i64 noundef %79, i32 noundef %5)
  tail call void @UnityAddMsgIfSpecified(ptr noundef %3)
  store i64 1, ptr getelementptr inbounds (i8, ptr @Unity, i64 64), align 8, !tbaa !5
  tail call void @longjmp(ptr noundef nonnull getelementptr inbounds (i8, ptr @Unity, i64 80), i32 noundef 1) #2
  unreachable

80:                                               ; preds = %.preheader
  %81 = add i32 %.370103, -1
  %82 = ptrtoint ptr %.366104 to i64
  %83 = add i64 %82, 4
  %84 = inttoptr i64 %83 to ptr
  %85 = ptrtoint ptr %.3105 to i64
  %86 = add i64 %85, 4
  %87 = inttoptr i64 %86 to ptr
  %.not77 = icmp eq i32 %81, 0
  br i1 %.not77, label %.loopexit, label %.preheader, !llvm.loop !21

.loopexit:                                        ; preds = %63, %47, %29, %80, %14, %6
  ret void
}

; Function Attrs: nounwind uwtable
declare hidden i32 @UnityCheckArraysForNull(ptr noundef, ptr noundef, i64 noundef, ptr noundef) local_unnamed_addr #0

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 = { noreturn 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" }
attributes #2 = { noreturn 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, !10, i64 64}
!6 = !{!"_Unity", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !10, i64 32, !10, i64 40, !10, i64 48, !10, i64 56, !10, i64 64, !10, i64 72, !8, i64 80}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"long", !8, i64 0}
!11 = !{!8, !8, i64 0}
!12 = distinct !{!12, !13}
!13 = !{!"llvm.loop.mustprogress"}
!14 = !{!15, !15, i64 0}
!15 = !{!"short", !8, i64 0}
!16 = distinct !{!16, !13}
!17 = !{!10, !10, i64 0}
!18 = distinct !{!18, !13}
!19 = !{!20, !20, i64 0}
!20 = !{!"int", !8, i64 0}
!21 = distinct !{!21, !13}


; Effective O3 passes: GVNPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,SROAPass,SimplifyCFGPass,TailCallElimPass