; LLVM IR from tensorflow/tflite-micro :: tensorflow/lite/micro (span_test)

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

%"class.tflite::Span" = type { ptr, i64 }
%"struct.std::array" = type { [20 x i8] }
%"class.tflite::Span.0" = type { ptr, i64 }
%"class.tflite::Span.1" = type { ptr, i64 }

@_ZN10micro_test12tests_passedE = external dso_local global i32, align 4
@_ZN10micro_test12tests_failedE = external dso_local global i32, align 4
@_ZN10micro_test16is_test_completeE = external dso_local global i8, align 1
@_ZN10micro_test13did_test_failE = external dso_local global i8, align 1
@.str = external hidden unnamed_addr constant [32 x i8], align 1
@__const.main.a = external hidden unnamed_addr constant [3 x i32], align 4
@.str.1 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [92 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [52 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [37 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [37 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [21 x i8], align 1
@__const.main.a.8 = external hidden unnamed_addr constant [3 x i32], align 4
@__const.main.b = external hidden unnamed_addr constant [3 x i32], align 4
@__const.main.c = external hidden unnamed_addr constant [3 x i32], align 4
@.str.9 = external hidden unnamed_addr constant [40 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [41 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [23 x i8], align 1
@__const.main.a.12 = external hidden unnamed_addr constant [3 x i32], align 4
@__const.main.b.13 = external hidden unnamed_addr constant [3 x i32], align 4
@__const.main.c.14 = external hidden unnamed_addr constant [3 x i32], align 4
@.str.15 = external hidden unnamed_addr constant [41 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [40 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [25 x i8], align 1

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main(i32 noundef %0, ptr noundef %1) #0 {
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  %6 = alloca [3 x i32], align 4
  %7 = alloca %"class.tflite::Span", align 8
  %8 = alloca %"struct.std::array", align 1
  %9 = alloca %"class.tflite::Span.0", align 8
  %10 = alloca [3 x i32], align 4
  %11 = alloca [3 x i32], align 4
  %12 = alloca [3 x i32], align 4
  %13 = alloca %"class.tflite::Span.1", align 8
  %14 = alloca %"class.tflite::Span.1", align 8
  %15 = alloca %"class.tflite::Span.1", align 8
  %16 = alloca [3 x i32], align 4
  %17 = alloca [3 x i32], align 4
  %18 = alloca [3 x i32], align 4
  %19 = alloca %"class.tflite::Span.1", align 8
  %20 = alloca %"class.tflite::Span.1", align 8
  %21 = alloca %"class.tflite::Span.1", align 8
  store i32 0, ptr %3, align 4
  store i32 %0, ptr %4, align 4, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !9
  store i32 0, ptr @_ZN10micro_test12tests_passedE, align 4, !tbaa !5
  store i32 0, ptr @_ZN10micro_test12tests_failedE, align 4, !tbaa !5
  call void @_ZN6tflite14InitializeTestEv()
  call void (ptr, ...) @_Z11MicroPrintfPKcz(ptr noundef @.str)
  store i8 0, ptr @_ZN10micro_test16is_test_completeE, align 1, !tbaa !11
  store i8 0, ptr @_ZN10micro_test13did_test_failE, align 1, !tbaa !11
  br label %22

22:                                               ; preds = %42, %2
  %23 = load i8, ptr @_ZN10micro_test16is_test_completeE, align 1, !tbaa !11, !range !13, !noundef !14
  %24 = trunc i8 %23 to i1
  %25 = xor i1 %24, true
  br i1 %25, label %26, label %55

26:                                               ; preds = %22
  call void @llvm.lifetime.start.p0(i64 12, ptr %6) #7
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %6, ptr align 4 @__const.main.a, i64 12, i1 false)
  call void @llvm.lifetime.start.p0(i64 16, ptr %7) #7
  call void @_ZN6tflite4SpanIiEC2ILm3EEERAT__i(ptr noundef nonnull align 8 dereferenceable(16) %7, ptr noundef nonnull align 4 dereferenceable(12) %6) #7
  br label %27

27:                                               ; preds = %26
  %28 = call noundef ptr @_ZNK6tflite4SpanIiE4dataEv(ptr noundef nonnull align 8 dereferenceable(16) %7) #7
  %29 = getelementptr inbounds [3 x i32], ptr %6, i64 0, i64 0
  %30 = icmp eq ptr %28, %29
  br i1 %30, label %32, label %31

31:                                               ; preds = %27
  call void (ptr, ...) @_Z11MicroPrintfPKcz(ptr noundef @.str.1, ptr noundef @.str.2, i32 noundef 26)
  store i8 1, ptr @_ZN10micro_test13did_test_failE, align 1, !tbaa !11
  br label %32

32:                                               ; preds = %31, %27
  br label %33

33:                                               ; preds = %32
  br label %34

34:                                               ; preds = %33
  br label %35

35:                                               ; preds = %34
  %36 = call noundef i64 @_ZNK6tflite4SpanIiE4sizeEv(ptr noundef nonnull align 8 dereferenceable(16) %7) #7
  %37 = icmp eq i64 %36, 3
  br i1 %37, label %39, label %38

38:                                               ; preds = %35
  call void (ptr, ...) @_Z11MicroPrintfPKcz(ptr noundef @.str.3, ptr noundef @.str.2, i32 noundef 27)
  store i8 1, ptr @_ZN10micro_test13did_test_failE, align 1, !tbaa !11
  br label %39

39:                                               ; preds = %38, %35
  br label %40

40:                                               ; preds = %39
  br label %41

41:                                               ; preds = %40
  call void @llvm.lifetime.end.p0(i64 16, ptr %7) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr %6) #7
  br label %42

42:                                               ; preds = %41
  store i8 1, ptr @_ZN10micro_test16is_test_completeE, align 1, !tbaa !11
  %43 = load i8, ptr @_ZN10micro_test13did_test_failE, align 1, !tbaa !11, !range !13, !noundef !14
  %44 = trunc i8 %43 to i1
  %45 = zext i1 %44 to i64
  %46 = select i1 %44, i32 0, i32 1
  %47 = load i32, ptr @_ZN10micro_test12tests_passedE, align 4, !tbaa !5
  %48 = add nsw i32 %47, %46
  store i32 %48, ptr @_ZN10micro_test12tests_passedE, align 4, !tbaa !5
  %49 = load i8, ptr @_ZN10micro_test13did_test_failE, align 1, !tbaa !11, !range !13, !noundef !14
  %50 = trunc i8 %49 to i1
  %51 = zext i1 %50 to i64
  %52 = select i1 %50, i32 1, i32 0
  %53 = load i32, ptr @_ZN10micro_test12tests_failedE, align 4, !tbaa !5
  %54 = add nsw i32 %53, %52
  store i32 %54, ptr @_ZN10micro_test12tests_failedE, align 4, !tbaa !5
  br label %22, !llvm.loop !15

55:                                               ; preds = %22
  call void (ptr, ...) @_Z11MicroPrintfPKcz(ptr noundef @.str.4)
  store i8 0, ptr @_ZN10micro_test16is_test_completeE, align 1, !tbaa !11
  store i8 0, ptr @_ZN10micro_test13did_test_failE, align 1, !tbaa !11
  br label %56

56:                                               ; preds = %77, %55
  %57 = load i8, ptr @_ZN10micro_test16is_test_completeE, align 1, !tbaa !11, !range !13, !noundef !14
  %58 = trunc i8 %57 to i1
  %59 = xor i1 %58, true
  br i1 %59, label %60, label %90

60:                                               ; preds = %56
  call void @llvm.lifetime.start.p0(i64 20, ptr %8) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr %9) #7
  call void @_ZN6tflite4SpanIcEC2ILm20EEERSt5arrayIcXT_EE(ptr noundef nonnull align 8 dereferenceable(16) %9, ptr noundef nonnull align 1 dereferenceable(20) %8) #7
  br label %61

61:                                               ; preds = %60
  %62 = call noundef ptr @_ZNK6tflite4SpanIcE4dataEv(ptr noundef nonnull align 8 dereferenceable(16) %9) #7
  %63 = call noundef ptr @_ZNSt5arrayIcLm20EE4dataEv(ptr noundef nonnull align 1 dereferenceable(20) %8) #8
  %64 = icmp eq ptr %62, %63
  br i1 %64, label %66, label %65

65:                                               ; preds = %61
  call void (ptr, ...) @_Z11MicroPrintfPKcz(ptr noundef @.str.5, ptr noundef @.str.2, i32 noundef 33)
  store i8 1, ptr @_ZN10micro_test13did_test_failE, align 1, !tbaa !11
  br label %66

66:                                               ; preds = %65, %61
  br label %67

67:                                               ; preds = %66
  br label %68

68:                                               ; preds = %67
  br label %69

69:                                               ; preds = %68
  %70 = call noundef i64 @_ZNK6tflite4SpanIcE4sizeEv(ptr noundef nonnull align 8 dereferenceable(16) %9) #7
  %71 = call noundef i64 @_ZNKSt5arrayIcLm20EE4sizeEv(ptr noundef nonnull align 1 dereferenceable(20) %8) #8
  %72 = icmp eq i64 %70, %71
  br i1 %72, label %74, label %73

73:                                               ; preds = %69
  call void (ptr, ...) @_Z11MicroPrintfPKcz(ptr noundef @.str.6, ptr noundef @.str.2, i32 noundef 34)
  store i8 1, ptr @_ZN10micro_test13did_test_failE, align 1, !tbaa !11
  br label %74

74:                                               ; preds = %73, %69
  br label %75

75:                                               ; preds = %74
  br label %76

76:                                               ; preds = %75
  call void @llvm.lifetime.end.p0(i64 16, ptr %9) #7
  call void @llvm.lifetime.end.p0(i64 20, ptr %8) #7
  br label %77

77:                                               ; preds = %76
  store i8 1, ptr @_ZN10micro_test16is_test_completeE, align 1, !tbaa !11
  %78 = load i8, ptr @_ZN10micro_test13did_test_failE, align 1, !tbaa !11, !range !13, !noundef !14
  %79 = trunc i8 %78 to i1
  %80 = zext i1 %79 to i64
  %81 = select i1 %79, i32 0, i32 1
  %82 = load i32, ptr @_ZN10micro_test12tests_passedE, align 4, !tbaa !5
  %83 = add nsw i32 %82, %81
  store i32 %83, ptr @_ZN10micro_test12tests_passedE, align 4, !tbaa !5
  %84 = load i8, ptr @_ZN10micro_test13did_test_failE, align 1, !tbaa !11, !range !13, !noundef !14
  %85 = trunc i8 %84 to i1
  %86 = zext i1 %85 to i64
  %87 = select i1 %85, i32 1, i32 0
  %88 = load i32, ptr @_ZN10micro_test12tests_failedE, align 4, !tbaa !5
  %89 = add nsw i32 %88, %87
  store i32 %89, ptr @_ZN10micro_test12tests_failedE, align 4, !tbaa !5
  br label %56, !llvm.loop !17

90:                                               ; preds = %56
  call void (ptr, ...) @_Z11MicroPrintfPKcz(ptr noundef @.str.7)
  store i8 0, ptr @_ZN10micro_test16is_test_completeE, align 1, !tbaa !11
  store i8 0, ptr @_ZN10micro_test13did_test_failE, align 1, !tbaa !11
  br label %91

91:                                               ; preds = %108, %90
  %92 = load i8, ptr @_ZN10micro_test16is_test_completeE, align 1, !tbaa !11, !range !13, !noundef !14
  %93 = trunc i8 %92 to i1
  %94 = xor i1 %93, true
  br i1 %94, label %95, label %121

95:                                               ; preds = %91
  call void @llvm.lifetime.start.p0(i64 12, ptr %10) #7
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %10, ptr align 4 @__const.main.a.8, i64 12, i1 false)
  call void @llvm.lifetime.start.p0(i64 12, ptr %11) #7
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %11, ptr align 4 @__const.main.b, i64 12, i1 false)
  call void @llvm.lifetime.start.p0(i64 12, ptr %12) #7
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %12, ptr align 4 @__const.main.c, i64 12, i1 false)
  call void @llvm.lifetime.start.p0(i64 16, ptr %13) #7
  call void @_ZN6tflite4SpanIKiEC2ILm3EEERAT__S1_(ptr noundef nonnull align 8 dereferenceable(16) %13, ptr noundef nonnull align 4 dereferenceable(12) %10) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr %14) #7
  call void @_ZN6tflite4SpanIKiEC2ILm3EEERAT__S1_(ptr noundef nonnull align 8 dereferenceable(16) %14, ptr noundef nonnull align 4 dereferenceable(12) %11) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr %15) #7
  call void @_ZN6tflite4SpanIKiEC2ILm3EEERAT__S1_(ptr noundef nonnull align 8 dereferenceable(16) %15, ptr noundef nonnull align 4 dereferenceable(12) %12) #7
  br label %96

96:                                               ; preds = %95
  %97 = call noundef zeroext i1 @_ZN6tfliteeqIKiS1_EEbRKNS_4SpanIT_EERKNS2_IT0_EE(ptr noundef nonnull align 8 dereferenceable(16) %13, ptr noundef nonnull align 8 dereferenceable(16) %14)
  br i1 %97, label %99, label %98

98:                                               ; preds = %96
  call void (ptr, ...) @_Z11MicroPrintfPKcz(ptr noundef @.str.9, ptr noundef @.str.2, i32 noundef 44)
  store i8 1, ptr @_ZN10micro_test13did_test_failE, align 1, !tbaa !11
  br label %99

99:                                               ; preds = %98, %96
  br label %100

100:                                              ; preds = %99
  br label %101

101:                                              ; preds = %100
  br label %102

102:                                              ; preds = %101
  %103 = call noundef zeroext i1 @_ZN6tfliteeqIKiS1_EEbRKNS_4SpanIT_EERKNS2_IT0_EE(ptr noundef nonnull align 8 dereferenceable(16) %13, ptr noundef nonnull align 8 dereferenceable(16) %15)
  br i1 %103, label %104, label %105

104:                                              ; preds = %102
  call void (ptr, ...) @_Z11MicroPrintfPKcz(ptr noundef @.str.10, ptr noundef @.str.2, i32 noundef 45)
  store i8 1, ptr @_ZN10micro_test13did_test_failE, align 1, !tbaa !11
  br label %105

105:                                              ; preds = %104, %102
  br label %106

106:                                              ; preds = %105
  br label %107

107:                                              ; preds = %106
  call void @llvm.lifetime.end.p0(i64 16, ptr %15) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %14) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %13) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr %12) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr %11) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr %10) #7
  br label %108

108:                                              ; preds = %107
  store i8 1, ptr @_ZN10micro_test16is_test_completeE, align 1, !tbaa !11
  %109 = load i8, ptr @_ZN10micro_test13did_test_failE, align 1, !tbaa !11, !range !13, !noundef !14
  %110 = trunc i8 %109 to i1
  %111 = zext i1 %110 to i64
  %112 = select i1 %110, i32 0, i32 1
  %113 = load i32, ptr @_ZN10micro_test12tests_passedE, align 4, !tbaa !5
  %114 = add nsw i32 %113, %112
  store i32 %114, ptr @_ZN10micro_test12tests_passedE, align 4, !tbaa !5
  %115 = load i8, ptr @_ZN10micro_test13did_test_failE, align 1, !tbaa !11, !range !13, !noundef !14
  %116 = trunc i8 %115 to i1
  %117 = zext i1 %116 to i64
  %118 = select i1 %116, i32 1, i32 0
  %119 = load i32, ptr @_ZN10micro_test12tests_failedE, align 4, !tbaa !5
  %120 = add nsw i32 %119, %118
  store i32 %120, ptr @_ZN10micro_test12tests_failedE, align 4, !tbaa !5
  br label %91, !llvm.loop !18

121:                                              ; preds = %91
  call void (ptr, ...) @_Z11MicroPrintfPKcz(ptr noundef @.str.11)
  store i8 0, ptr @_ZN10micro_test16is_test_completeE, align 1, !tbaa !11
  store i8 0, ptr @_ZN10micro_test13did_test_failE, align 1, !tbaa !11
  br label %122

122:                                              ; preds = %139, %121
  %123 = load i8, ptr @_ZN10micro_test16is_test_completeE, align 1, !tbaa !11, !range !13, !noundef !14
  %124 = trunc i8 %123 to i1
  %125 = xor i1 %124, true
  br i1 %125, label %126, label %152

126:                                              ; preds = %122
  call void @llvm.lifetime.start.p0(i64 12, ptr %16) #7
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %16, ptr align 4 @__const.main.a.12, i64 12, i1 false)
  call void @llvm.lifetime.start.p0(i64 12, ptr %17) #7
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %17, ptr align 4 @__const.main.b.13, i64 12, i1 false)
  call void @llvm.lifetime.start.p0(i64 12, ptr %18) #7
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %18, ptr align 4 @__const.main.c.14, i64 12, i1 false)
  call void @llvm.lifetime.start.p0(i64 16, ptr %19) #7
  call void @_ZN6tflite4SpanIKiEC2ILm3EEERAT__S1_(ptr noundef nonnull align 8 dereferenceable(16) %19, ptr noundef nonnull align 4 dereferenceable(12) %16) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr %20) #7
  call void @_ZN6tflite4SpanIKiEC2ILm3EEERAT__S1_(ptr noundef nonnull align 8 dereferenceable(16) %20, ptr noundef nonnull align 4 dereferenceable(12) %17) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr %21) #7
  call void @_ZN6tflite4SpanIKiEC2ILm3EEERAT__S1_(ptr noundef nonnull align 8 dereferenceable(16) %21, ptr noundef nonnull align 4 dereferenceable(12) %18) #7
  br label %127

127:                                              ; preds = %126
  %128 = call noundef zeroext i1 @_ZN6tfliteneIKiS1_EEbRKNS_4SpanIT_EERKNS2_IT0_EE(ptr noundef nonnull align 8 dereferenceable(16) %19, ptr noundef nonnull align 8 dereferenceable(16) %20)
  br i1 %128, label %129, label %130

129:                                              ; preds = %127
  call void (ptr, ...) @_Z11MicroPrintfPKcz(ptr noundef @.str.15, ptr noundef @.str.2, i32 noundef 55)
  store i8 1, ptr @_ZN10micro_test13did_test_failE, align 1, !tbaa !11
  br label %130

130:                                              ; preds = %129, %127
  br label %131

131:                                              ; preds = %130
  br label %132

132:                                              ; preds = %131
  br label %133

133:                                              ; preds = %132
  %134 = call noundef zeroext i1 @_ZN6tfliteneIKiS1_EEbRKNS_4SpanIT_EERKNS2_IT0_EE(ptr noundef nonnull align 8 dereferenceable(16) %19, ptr noundef nonnull align 8 dereferenceable(16) %21)
  br i1 %134, label %136, label %135

135:                                              ; preds = %133
  call void (ptr, ...) @_Z11MicroPrintfPKcz(ptr noundef @.str.16, ptr noundef @.str.2, i32 noundef 56)
  store i8 1, ptr @_ZN10micro_test13did_test_failE, align 1, !tbaa !11
  br label %136

136:                                              ; preds = %135, %133
  br label %137

137:                                              ; preds = %136
  br label %138

138:                                              ; preds = %137
  call void @llvm.lifetime.end.p0(i64 16, ptr %21) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %20) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %19) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr %18) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr %17) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr %16) #7
  br label %139

139:                                              ; preds = %138
  store i8 1, ptr @_ZN10micro_test16is_test_completeE, align 1, !tbaa !11
  %140 = load i8, ptr @_ZN10micro_test13did_test_failE, align 1, !tbaa !11, !range !13, !noundef !14
  %141 = trunc i8 %140 to i1
  %142 = zext i1 %141 to i64
  %143 = select i1 %141, i32 0, i32 1
  %144 = load i32, ptr @_ZN10micro_test12tests_passedE, align 4, !tbaa !5
  %145 = add nsw i32 %144, %143
  store i32 %145, ptr @_ZN10micro_test12tests_passedE, align 4, !tbaa !5
  %146 = load i8, ptr @_ZN10micro_test13did_test_failE, align 1, !tbaa !11, !range !13, !noundef !14
  %147 = trunc i8 %146 to i1
  %148 = zext i1 %147 to i64
  %149 = select i1 %147, i32 1, i32 0
  %150 = load i32, ptr @_ZN10micro_test12tests_failedE, align 4, !tbaa !5
  %151 = add nsw i32 %150, %149
  store i32 %151, ptr @_ZN10micro_test12tests_failedE, align 4, !tbaa !5
  br label %122, !llvm.loop !19

152:                                              ; preds = %122
  %153 = load i32, ptr @_ZN10micro_test12tests_passedE, align 4, !tbaa !5
  %154 = load i32, ptr @_ZN10micro_test12tests_failedE, align 4, !tbaa !5
  %155 = load i32, ptr @_ZN10micro_test12tests_passedE, align 4, !tbaa !5
  %156 = add nsw i32 %154, %155
  call void (ptr, ...) @_Z11MicroPrintfPKcz(ptr noundef @.str.17, i32 noundef %153, i32 noundef %156)
  %157 = load i32, ptr @_ZN10micro_test12tests_failedE, align 4, !tbaa !5
  %158 = icmp eq i32 %157, 0
  br i1 %158, label %159, label %160

159:                                              ; preds = %152
  call void (ptr, ...) @_Z11MicroPrintfPKcz(ptr noundef @.str.18)
  store i32 0, ptr %3, align 4
  br label %161

160:                                              ; preds = %152
  call void (ptr, ...) @_Z11MicroPrintfPKcz(ptr noundef @.str.19)
  store i32 1, ptr %3, align 4
  br label %161

161:                                              ; preds = %160, %159
  %162 = load i32, ptr %3, align 4
  ret i32 %162
}

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN6tflite14InitializeTestEv() #1

declare void @_Z11MicroPrintfPKcz(ptr noundef, ...) #2

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN6tflite4SpanIiEC2ILm3EEERAT__i(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(12)) unnamed_addr #5 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNK6tflite4SpanIiE4dataEv(ptr noundef nonnull align 8 dereferenceable(16)) #5 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNK6tflite4SpanIiE4sizeEv(ptr noundef nonnull align 8 dereferenceable(16)) #5 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN6tflite4SpanIcEC2ILm20EEERSt5arrayIcXT_EE(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 1 dereferenceable(20)) unnamed_addr #5 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNK6tflite4SpanIcE4dataEv(ptr noundef nonnull align 8 dereferenceable(16)) #5 align 2

; Function Attrs: mustprogress nounwind willreturn memory(none) uwtable
declare dso_local noundef ptr @_ZNSt5arrayIcLm20EE4dataEv(ptr noundef nonnull align 1 dereferenceable(20)) #6 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNK6tflite4SpanIcE4sizeEv(ptr noundef nonnull align 8 dereferenceable(16)) #5 align 2

; Function Attrs: mustprogress nounwind willreturn memory(none) uwtable
declare dso_local noundef i64 @_ZNKSt5arrayIcLm20EE4sizeEv(ptr noundef nonnull align 1 dereferenceable(20)) #6 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN6tflite4SpanIKiEC2ILm3EEERAT__S1_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(12)) unnamed_addr #5 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN6tfliteeqIKiS1_EEbRKNS_4SpanIT_EERKNS2_IT0_EE(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) #5

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN6tfliteneIKiS1_EEbRKNS_4SpanIT_EERKNS2_IT0_EE(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) #5

attributes #0 = { mustprogress norecurse 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 = { inlinehint mustprogress 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 #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 nosync nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #5 = { mustprogress 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 #6 = { mustprogress nounwind willreturn memory(none) 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 #7 = { nounwind }
attributes #8 = { nounwind willreturn memory(none) }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"bool", !7, i64 0}
!13 = !{i8 0, i8 2}
!14 = !{}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.mustprogress"}
!17 = distinct !{!17, !16}
!18 = distinct !{!18, !16}
!19 = distinct !{!19, !16}


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

%"class.tflite::Span" = type { ptr, i64 }
%"struct.std::array" = type { [20 x i8] }
%"class.tflite::Span.0" = type { ptr, i64 }
%"class.tflite::Span.1" = type { ptr, i64 }

@_ZN10micro_test12tests_passedE = external dso_local local_unnamed_addr global i32, align 4
@_ZN10micro_test12tests_failedE = external dso_local local_unnamed_addr global i32, align 4
@_ZN10micro_test16is_test_completeE = external dso_local local_unnamed_addr global i8, align 1
@_ZN10micro_test13did_test_failE = external dso_local local_unnamed_addr global i8, align 1
@.str = external hidden unnamed_addr constant [32 x i8], align 1
@__const.main.a = external hidden unnamed_addr constant [3 x i32], align 4
@.str.1 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [92 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [52 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [37 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [37 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [21 x i8], align 1
@__const.main.a.8 = external hidden unnamed_addr constant [3 x i32], align 4
@__const.main.b = external hidden unnamed_addr constant [3 x i32], align 4
@__const.main.c = external hidden unnamed_addr constant [3 x i32], align 4
@.str.9 = external hidden unnamed_addr constant [40 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [41 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [23 x i8], align 1
@__const.main.a.12 = external hidden unnamed_addr constant [3 x i32], align 4
@__const.main.b.13 = external hidden unnamed_addr constant [3 x i32], align 4
@__const.main.c.14 = external hidden unnamed_addr constant [3 x i32], align 4
@.str.15 = external hidden unnamed_addr constant [41 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [40 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [25 x i8], align 1

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef range(i32 0, 2) i32 @main(i32 noundef %0, ptr nocapture noundef readnone %1) local_unnamed_addr #0 {
.lr.ph:
  %2 = alloca [3 x i32], align 4
  %3 = alloca %"class.tflite::Span", align 8
  %4 = alloca %"struct.std::array", align 1
  %5 = alloca %"class.tflite::Span.0", align 8
  %6 = alloca [3 x i32], align 4
  %7 = alloca [3 x i32], align 4
  %8 = alloca [3 x i32], align 4
  %9 = alloca %"class.tflite::Span.1", align 8
  %10 = alloca %"class.tflite::Span.1", align 8
  %11 = alloca %"class.tflite::Span.1", align 8
  %12 = alloca [3 x i32], align 4
  %13 = alloca [3 x i32], align 4
  %14 = alloca [3 x i32], align 4
  %15 = alloca %"class.tflite::Span.1", align 8
  %16 = alloca %"class.tflite::Span.1", align 8
  %17 = alloca %"class.tflite::Span.1", align 8
  store i32 0, ptr @_ZN10micro_test12tests_passedE, align 4, !tbaa !5
  store i32 0, ptr @_ZN10micro_test12tests_failedE, align 4, !tbaa !5
  tail call void @_ZN6tflite14InitializeTestEv()
  tail call void (ptr, ...) @_Z11MicroPrintfPKcz(ptr noundef nonnull @.str)
  store i8 0, ptr @_ZN10micro_test16is_test_completeE, align 1, !tbaa !9
  store i8 0, ptr @_ZN10micro_test13did_test_failE, align 1, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %2) #7
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(12) %2, ptr noundef nonnull align 4 dereferenceable(12) @__const.main.a, i64 12, i1 false)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %3) #7
  call void @_ZN6tflite4SpanIiEC2ILm3EEERAT__i(ptr noundef nonnull align 8 dereferenceable(16) %3, ptr noundef nonnull align 4 dereferenceable(12) %2) #7
  %18 = call noundef ptr @_ZNK6tflite4SpanIiE4dataEv(ptr noundef nonnull align 8 dereferenceable(16) %3) #7
  %19 = icmp eq ptr %18, %2
  br i1 %19, label %21, label %20

20:                                               ; preds = %.lr.ph
  call void (ptr, ...) @_Z11MicroPrintfPKcz(ptr noundef nonnull @.str.1, ptr noundef nonnull @.str.2, i32 noundef 26)
  store i8 1, ptr @_ZN10micro_test13did_test_failE, align 1, !tbaa !9
  br label %21

21:                                               ; preds = %.lr.ph, %20
  %22 = call noundef i64 @_ZNK6tflite4SpanIiE4sizeEv(ptr noundef nonnull align 8 dereferenceable(16) %3) #7
  %23 = icmp eq i64 %22, 3
  br i1 %23, label %._crit_edge13, label %24

._crit_edge13:                                    ; preds = %21
  %.pre = load i8, ptr @_ZN10micro_test13did_test_failE, align 1, !tbaa !9, !range !11
  br label %.lr.ph5

24:                                               ; preds = %21
  call void (ptr, ...) @_Z11MicroPrintfPKcz(ptr noundef nonnull @.str.3, ptr noundef nonnull @.str.2, i32 noundef 27)
  store i8 1, ptr @_ZN10micro_test13did_test_failE, align 1, !tbaa !9
  br label %.lr.ph5

.lr.ph5:                                          ; preds = %._crit_edge13, %24
  %25 = phi i8 [ %.pre, %._crit_edge13 ], [ 1, %24 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %3) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %2) #7
  store i8 1, ptr @_ZN10micro_test16is_test_completeE, align 1, !tbaa !9
  %26 = xor i8 %25, 1
  %not.3 = zext nneg i8 %26 to i32
  %27 = load i32, ptr @_ZN10micro_test12tests_passedE, align 4, !tbaa !5
  %28 = add nsw i32 %27, %not.3
  store i32 %28, ptr @_ZN10micro_test12tests_passedE, align 4, !tbaa !5
  %29 = zext nneg i8 %25 to i32
  %30 = load i32, ptr @_ZN10micro_test12tests_failedE, align 4, !tbaa !5
  %31 = add nsw i32 %30, %29
  store i32 %31, ptr @_ZN10micro_test12tests_failedE, align 4, !tbaa !5
  call void (ptr, ...) @_Z11MicroPrintfPKcz(ptr noundef nonnull @.str.4)
  store i8 0, ptr @_ZN10micro_test16is_test_completeE, align 1, !tbaa !9
  store i8 0, ptr @_ZN10micro_test13did_test_failE, align 1, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 20, ptr nonnull %4) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %5) #7
  call void @_ZN6tflite4SpanIcEC2ILm20EEERSt5arrayIcXT_EE(ptr noundef nonnull align 8 dereferenceable(16) %5, ptr noundef nonnull align 1 dereferenceable(20) %4) #7
  %32 = call noundef ptr @_ZNK6tflite4SpanIcE4dataEv(ptr noundef nonnull align 8 dereferenceable(16) %5) #7
  %33 = call noundef ptr @_ZNSt5arrayIcLm20EE4dataEv(ptr noundef nonnull align 1 dereferenceable(20) %4) #8
  %34 = icmp eq ptr %32, %33
  br i1 %34, label %36, label %35

35:                                               ; preds = %.lr.ph5
  call void (ptr, ...) @_Z11MicroPrintfPKcz(ptr noundef nonnull @.str.5, ptr noundef nonnull @.str.2, i32 noundef 33)
  store i8 1, ptr @_ZN10micro_test13did_test_failE, align 1, !tbaa !9
  br label %36

36:                                               ; preds = %.lr.ph5, %35
  %37 = call noundef i64 @_ZNK6tflite4SpanIcE4sizeEv(ptr noundef nonnull align 8 dereferenceable(16) %5) #7
  %38 = call noundef i64 @_ZNKSt5arrayIcLm20EE4sizeEv(ptr noundef nonnull align 1 dereferenceable(20) %4) #8
  %39 = icmp eq i64 %37, %38
  br i1 %39, label %._crit_edge14, label %40

._crit_edge14:                                    ; preds = %36
  %.pre15 = load i8, ptr @_ZN10micro_test13did_test_failE, align 1, !tbaa !9, !range !11
  br label %.lr.ph8

40:                                               ; preds = %36
  call void (ptr, ...) @_Z11MicroPrintfPKcz(ptr noundef nonnull @.str.6, ptr noundef nonnull @.str.2, i32 noundef 34)
  store i8 1, ptr @_ZN10micro_test13did_test_failE, align 1, !tbaa !9
  br label %.lr.ph8

.lr.ph8:                                          ; preds = %._crit_edge14, %40
  %41 = phi i8 [ %.pre15, %._crit_edge14 ], [ 1, %40 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #7
  call void @llvm.lifetime.end.p0(i64 20, ptr nonnull %4) #7
  store i8 1, ptr @_ZN10micro_test16is_test_completeE, align 1, !tbaa !9
  %42 = xor i8 %41, 1
  %not.2 = zext nneg i8 %42 to i32
  %43 = load i32, ptr @_ZN10micro_test12tests_passedE, align 4, !tbaa !5
  %44 = add nsw i32 %43, %not.2
  store i32 %44, ptr @_ZN10micro_test12tests_passedE, align 4, !tbaa !5
  %45 = zext nneg i8 %41 to i32
  %46 = load i32, ptr @_ZN10micro_test12tests_failedE, align 4, !tbaa !5
  %47 = add nsw i32 %46, %45
  store i32 %47, ptr @_ZN10micro_test12tests_failedE, align 4, !tbaa !5
  call void (ptr, ...) @_Z11MicroPrintfPKcz(ptr noundef nonnull @.str.7)
  store i8 0, ptr @_ZN10micro_test16is_test_completeE, align 1, !tbaa !9
  store i8 0, ptr @_ZN10micro_test13did_test_failE, align 1, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %6) #7
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(12) %6, ptr noundef nonnull align 4 dereferenceable(12) @__const.main.a.8, i64 12, i1 false)
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %7) #7
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(12) %7, ptr noundef nonnull align 4 dereferenceable(12) @__const.main.b, i64 12, i1 false)
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %8) #7
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(12) %8, ptr noundef nonnull align 4 dereferenceable(12) @__const.main.c, i64 12, i1 false)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %9) #7
  call void @_ZN6tflite4SpanIKiEC2ILm3EEERAT__S1_(ptr noundef nonnull align 8 dereferenceable(16) %9, ptr noundef nonnull align 4 dereferenceable(12) %6) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %10) #7
  call void @_ZN6tflite4SpanIKiEC2ILm3EEERAT__S1_(ptr noundef nonnull align 8 dereferenceable(16) %10, ptr noundef nonnull align 4 dereferenceable(12) %7) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %11) #7
  call void @_ZN6tflite4SpanIKiEC2ILm3EEERAT__S1_(ptr noundef nonnull align 8 dereferenceable(16) %11, ptr noundef nonnull align 4 dereferenceable(12) %8) #7
  %48 = call noundef zeroext i1 @_ZN6tfliteeqIKiS1_EEbRKNS_4SpanIT_EERKNS2_IT0_EE(ptr noundef nonnull align 8 dereferenceable(16) %9, ptr noundef nonnull align 8 dereferenceable(16) %10)
  br i1 %48, label %50, label %49

49:                                               ; preds = %.lr.ph8
  call void (ptr, ...) @_Z11MicroPrintfPKcz(ptr noundef nonnull @.str.9, ptr noundef nonnull @.str.2, i32 noundef 44)
  store i8 1, ptr @_ZN10micro_test13did_test_failE, align 1, !tbaa !9
  br label %50

50:                                               ; preds = %.lr.ph8, %49
  %51 = call noundef zeroext i1 @_ZN6tfliteeqIKiS1_EEbRKNS_4SpanIT_EERKNS2_IT0_EE(ptr noundef nonnull align 8 dereferenceable(16) %9, ptr noundef nonnull align 8 dereferenceable(16) %11)
  br i1 %51, label %52, label %._crit_edge16

._crit_edge16:                                    ; preds = %50
  %.pre17 = load i8, ptr @_ZN10micro_test13did_test_failE, align 1, !tbaa !9, !range !11
  br label %.lr.ph11

52:                                               ; preds = %50
  call void (ptr, ...) @_Z11MicroPrintfPKcz(ptr noundef nonnull @.str.10, ptr noundef nonnull @.str.2, i32 noundef 45)
  store i8 1, ptr @_ZN10micro_test13did_test_failE, align 1, !tbaa !9
  br label %.lr.ph11

.lr.ph11:                                         ; preds = %._crit_edge16, %52
  %53 = phi i8 [ %.pre17, %._crit_edge16 ], [ 1, %52 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %11) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %10) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %9) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %8) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %7) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %6) #7
  store i8 1, ptr @_ZN10micro_test16is_test_completeE, align 1, !tbaa !9
  %54 = xor i8 %53, 1
  %not.1 = zext nneg i8 %54 to i32
  %55 = load i32, ptr @_ZN10micro_test12tests_passedE, align 4, !tbaa !5
  %56 = add nsw i32 %55, %not.1
  store i32 %56, ptr @_ZN10micro_test12tests_passedE, align 4, !tbaa !5
  %57 = zext nneg i8 %53 to i32
  %58 = load i32, ptr @_ZN10micro_test12tests_failedE, align 4, !tbaa !5
  %59 = add nsw i32 %58, %57
  store i32 %59, ptr @_ZN10micro_test12tests_failedE, align 4, !tbaa !5
  call void (ptr, ...) @_Z11MicroPrintfPKcz(ptr noundef nonnull @.str.11)
  store i8 0, ptr @_ZN10micro_test16is_test_completeE, align 1, !tbaa !9
  store i8 0, ptr @_ZN10micro_test13did_test_failE, align 1, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %12) #7
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(12) %12, ptr noundef nonnull align 4 dereferenceable(12) @__const.main.a.12, i64 12, i1 false)
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %13) #7
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(12) %13, ptr noundef nonnull align 4 dereferenceable(12) @__const.main.b.13, i64 12, i1 false)
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %14) #7
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(12) %14, ptr noundef nonnull align 4 dereferenceable(12) @__const.main.c.14, i64 12, i1 false)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %15) #7
  call void @_ZN6tflite4SpanIKiEC2ILm3EEERAT__S1_(ptr noundef nonnull align 8 dereferenceable(16) %15, ptr noundef nonnull align 4 dereferenceable(12) %12) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %16) #7
  call void @_ZN6tflite4SpanIKiEC2ILm3EEERAT__S1_(ptr noundef nonnull align 8 dereferenceable(16) %16, ptr noundef nonnull align 4 dereferenceable(12) %13) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %17) #7
  call void @_ZN6tflite4SpanIKiEC2ILm3EEERAT__S1_(ptr noundef nonnull align 8 dereferenceable(16) %17, ptr noundef nonnull align 4 dereferenceable(12) %14) #7
  %60 = call noundef zeroext i1 @_ZN6tfliteneIKiS1_EEbRKNS_4SpanIT_EERKNS2_IT0_EE(ptr noundef nonnull align 8 dereferenceable(16) %15, ptr noundef nonnull align 8 dereferenceable(16) %16)
  br i1 %60, label %61, label %62

61:                                               ; preds = %.lr.ph11
  call void (ptr, ...) @_Z11MicroPrintfPKcz(ptr noundef nonnull @.str.15, ptr noundef nonnull @.str.2, i32 noundef 55)
  store i8 1, ptr @_ZN10micro_test13did_test_failE, align 1, !tbaa !9
  br label %62

62:                                               ; preds = %.lr.ph11, %61
  %63 = call noundef zeroext i1 @_ZN6tfliteneIKiS1_EEbRKNS_4SpanIT_EERKNS2_IT0_EE(ptr noundef nonnull align 8 dereferenceable(16) %15, ptr noundef nonnull align 8 dereferenceable(16) %17)
  br i1 %63, label %._crit_edge18, label %64

._crit_edge18:                                    ; preds = %62
  %.pre19 = load i8, ptr @_ZN10micro_test13did_test_failE, align 1, !tbaa !9, !range !11
  br label %._crit_edge12

64:                                               ; preds = %62
  call void (ptr, ...) @_Z11MicroPrintfPKcz(ptr noundef nonnull @.str.16, ptr noundef nonnull @.str.2, i32 noundef 56)
  store i8 1, ptr @_ZN10micro_test13did_test_failE, align 1, !tbaa !9
  br label %._crit_edge12

._crit_edge12:                                    ; preds = %._crit_edge18, %64
  %65 = phi i8 [ %.pre19, %._crit_edge18 ], [ 1, %64 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %17) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %16) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %15) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %14) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %13) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %12) #7
  store i8 1, ptr @_ZN10micro_test16is_test_completeE, align 1, !tbaa !9
  %66 = xor i8 %65, 1
  %not. = zext nneg i8 %66 to i32
  %67 = load i32, ptr @_ZN10micro_test12tests_passedE, align 4, !tbaa !5
  %68 = add nsw i32 %67, %not.
  store i32 %68, ptr @_ZN10micro_test12tests_passedE, align 4, !tbaa !5
  %69 = zext nneg i8 %65 to i32
  %70 = load i32, ptr @_ZN10micro_test12tests_failedE, align 4, !tbaa !5
  %71 = add nsw i32 %70, %69
  store i32 %71, ptr @_ZN10micro_test12tests_failedE, align 4, !tbaa !5
  %72 = add nsw i32 %71, %68
  call void (ptr, ...) @_Z11MicroPrintfPKcz(ptr noundef nonnull @.str.17, i32 noundef %68, i32 noundef %72)
  %73 = load i32, ptr @_ZN10micro_test12tests_failedE, align 4, !tbaa !5
  %74 = icmp ne i32 %73, 0
  %.str.18..str.19 = select i1 %74, ptr @.str.19, ptr @.str.18
  %. = zext i1 %74 to i32
  call void (ptr, ...) @_Z11MicroPrintfPKcz(ptr noundef nonnull %.str.18..str.19)
  ret i32 %.
}

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN6tflite14InitializeTestEv() local_unnamed_addr #1

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN6tflite4SpanIiEC2ILm3EEERAT__i(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(12)) unnamed_addr #5 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNK6tflite4SpanIiE4dataEv(ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #5 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNK6tflite4SpanIiE4sizeEv(ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #5 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN6tflite4SpanIcEC2ILm20EEERSt5arrayIcXT_EE(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 1 dereferenceable(20)) unnamed_addr #5 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNK6tflite4SpanIcE4dataEv(ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #5 align 2

; Function Attrs: mustprogress nofree nosync nounwind willreturn memory(none) uwtable
declare dso_local noundef ptr @_ZNSt5arrayIcLm20EE4dataEv(ptr noundef nonnull align 1 dereferenceable(20)) local_unnamed_addr #6 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNK6tflite4SpanIcE4sizeEv(ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #5 align 2

; Function Attrs: mustprogress nofree nosync nounwind willreturn memory(none) uwtable
declare dso_local noundef i64 @_ZNKSt5arrayIcLm20EE4sizeEv(ptr noundef nonnull align 1 dereferenceable(20)) local_unnamed_addr #6 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN6tflite4SpanIKiEC2ILm3EEERAT__S1_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(12)) unnamed_addr #5 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN6tfliteeqIKiS1_EEbRKNS_4SpanIT_EERKNS2_IT0_EE(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #5

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN6tfliteneIKiS1_EEbRKNS_4SpanIT_EERKNS2_IT0_EE(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #5

attributes #0 = { mustprogress norecurse 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 = { inlinehint mustprogress 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 #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 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #5 = { mustprogress 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 #6 = { mustprogress nofree nosync nounwind willreturn memory(none) 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 #7 = { nounwind }
attributes #8 = { nounwind willreturn memory(none) }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"bool", !7, i64 0}
!11 = !{i8 0, i8 2}


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