; LLVM IR from stonne-simulator/omega :: omega-code/stonne/src/CompilerMSN.ll (ZN11CompilerMSN19generate_ms_signalsEj)

; 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.CompilerComponent = type <{ ptr, ptr, %"class.std::vector.23", ptr, i32, i8, [3 x i8], i32, [4 x i8] }>
%"class.std::vector.23" = type { %"struct.std::_Vector_base.24" }
%"struct.std::_Vector_base.24" = type { %"struct.std::_Vector_base<SparseVN, std::allocator<SparseVN>>::_Vector_impl" }
%"struct.std::_Vector_base<SparseVN, std::allocator<SparseVN>>::_Vector_impl" = type { %"struct.std::_Vector_base<SparseVN, std::allocator<SparseVN>>::_Vector_impl_data" }
%"struct.std::_Vector_base<SparseVN, std::allocator<SparseVN>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%class.CompilerMSN = type { %class.CompilerComponent.base, %"class.std::map", %"class.std::map.31", %"class.std::map.31", %"class.std::map.31", %"class.std::map.31", %"class.std::map" }
%class.CompilerComponent.base = type <{ ptr, ptr, %"class.std::vector.23", ptr, i32, i8, [3 x i8], i32 }>
%"class.std::map.31" = type { %"class.std::_Rb_tree.32" }
%"class.std::_Rb_tree.32" = type { %"struct.std::_Rb_tree<unsigned int, std::pair<const unsigned int, bool>, std::_Select1st<std::pair<const unsigned int, bool>>, std::less<unsigned int>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<unsigned int, std::pair<const unsigned int, bool>, std::_Select1st<std::pair<const unsigned int, bool>>, std::less<unsigned int>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"struct.std::_Rb_tree_header" = type { %"struct.std::_Rb_tree_node_base", i64 }
%"struct.std::_Rb_tree_node_base" = type { i32, ptr, ptr, ptr }
%"class.std::map" = type { %"class.std::_Rb_tree" }
%"class.std::_Rb_tree" = type { %"struct.std::_Rb_tree<unsigned int, std::pair<const unsigned int, unsigned int>, std::_Select1st<std::pair<const unsigned int, unsigned int>>, std::less<unsigned int>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<unsigned int, std::pair<const unsigned int, unsigned int>, std::_Select1st<std::pair<const unsigned int, unsigned int>>, std::less<unsigned int>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK4Tile11get_VN_SizeEv(ptr noundef nonnull align 4 dereferenceable(41)) #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK4Tile11get_Num_VNsEv(ptr noundef nonnull align 4 dereferenceable(41)) #1 align 2

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

24:                                               ; preds = %73, %2
  %25 = load i32, ptr %5, align 4, !tbaa !9
  %26 = getelementptr inbounds %class.CompilerComponent, ptr %23, i32 0, i32 1
  %27 = load ptr, ptr %26, align 8, !tbaa !11
  %28 = call noundef i32 @_ZNK4Tile11get_Num_VNsEv(ptr noundef nonnull align 4 dereferenceable(41) %27)
  %29 = icmp ult i32 %25, %28
  br i1 %29, label %31, label %30

30:                                               ; preds = %24
  store i32 2, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #3
  br label %76

31:                                               ; preds = %24
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #3
  store i32 0, ptr %7, align 4, !tbaa !9
  br label %32

32:                                               ; preds = %69, %31
  %33 = load i32, ptr %7, align 4, !tbaa !9
  %34 = getelementptr inbounds %class.CompilerComponent, ptr %23, i32 0, i32 1
  %35 = load ptr, ptr %34, align 8, !tbaa !11
  %36 = call noundef i32 @_ZNK4Tile11get_VN_SizeEv(ptr noundef nonnull align 4 dereferenceable(41) %35)
  %37 = icmp ult i32 %33, %36
  br i1 %37, label %39, label %38

38:                                               ; preds = %32
  store i32 5, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #3
  br label %72

39:                                               ; preds = %32
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #3
  %40 = load i32, ptr %5, align 4, !tbaa !9
  %41 = getelementptr inbounds %class.CompilerComponent, ptr %23, i32 0, i32 1
  %42 = load ptr, ptr %41, align 8, !tbaa !11
  %43 = call noundef i32 @_ZNK4Tile11get_VN_SizeEv(ptr noundef nonnull align 4 dereferenceable(41) %42)
  %44 = mul i32 %40, %43
  %45 = load i32, ptr %7, align 4, !tbaa !9
  %46 = add i32 %44, %45
  store i32 %46, ptr %8, align 4, !tbaa !9
  %47 = load i32, ptr %5, align 4, !tbaa !9
  %48 = getelementptr inbounds %class.CompilerMSN, ptr %23, i32 0, i32 1
  %49 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt3mapIjjSt4lessIjESaISt4pairIKjjEEEixERS3_(ptr noundef nonnull align 8 dereferenceable(48) %48, ptr noundef nonnull align 4 dereferenceable(4) %8)
  store i32 %47, ptr %49, align 4, !tbaa !9
  %50 = getelementptr inbounds %class.CompilerComponent, ptr %23, i32 0, i32 7
  %51 = load i32, ptr %50, align 8, !tbaa !18
  %52 = getelementptr inbounds %class.CompilerMSN, ptr %23, i32 0, i32 6
  %53 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt3mapIjjSt4lessIjESaISt4pairIKjjEEEixERS3_(ptr noundef nonnull align 8 dereferenceable(48) %52, ptr noundef nonnull align 4 dereferenceable(4) %8)
  store i32 %51, ptr %53, align 4, !tbaa !9
  %54 = getelementptr inbounds %class.CompilerMSN, ptr %23, i32 0, i32 5
  %55 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt3mapIjbSt4lessIjESaISt4pairIKjbEEEixERS3_(ptr noundef nonnull align 8 dereferenceable(48) %54, ptr noundef nonnull align 4 dereferenceable(4) %8)
  store i8 0, ptr %55, align 1, !tbaa !19
  %56 = getelementptr inbounds %class.CompilerComponent, ptr %23, i32 0, i32 1
  %57 = load ptr, ptr %56, align 8, !tbaa !11
  %58 = call noundef zeroext i1 @_ZNK4Tile19get_folding_enabledEv(ptr noundef nonnull align 4 dereferenceable(41) %57)
  br i1 %58, label %59, label %65

59:                                               ; preds = %39
  %60 = load i32, ptr %7, align 4, !tbaa !9
  %61 = icmp eq i32 %60, 0
  br i1 %61, label %62, label %65

62:                                               ; preds = %59
  %63 = getelementptr inbounds %class.CompilerMSN, ptr %23, i32 0, i32 4
  %64 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt3mapIjbSt4lessIjESaISt4pairIKjbEEEixERS3_(ptr noundef nonnull align 8 dereferenceable(48) %63, ptr noundef nonnull align 4 dereferenceable(4) %8)
  store i8 1, ptr %64, align 1, !tbaa !19
  br label %68

65:                                               ; preds = %59, %39
  %66 = getelementptr inbounds %class.CompilerMSN, ptr %23, i32 0, i32 4
  %67 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt3mapIjbSt4lessIjESaISt4pairIKjbEEEixERS3_(ptr noundef nonnull align 8 dereferenceable(48) %66, ptr noundef nonnull align 4 dereferenceable(4) %8)
  store i8 0, ptr %67, align 1, !tbaa !19
  br label %68

68:                                               ; preds = %65, %62
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #3
  br label %69

69:                                               ; preds = %68
  %70 = load i32, ptr %7, align 4, !tbaa !9
  %71 = add nsw i32 %70, 1
  store i32 %71, ptr %7, align 4, !tbaa !9
  br label %32, !llvm.loop !20

72:                                               ; preds = %38
  br label %73

73:                                               ; preds = %72
  %74 = load i32, ptr %5, align 4, !tbaa !9
  %75 = add nsw i32 %74, 1
  store i32 %75, ptr %5, align 4, !tbaa !9
  br label %24, !llvm.loop !22

76:                                               ; preds = %30
  %77 = getelementptr inbounds %class.CompilerComponent, ptr %23, i32 0, i32 1
  %78 = load ptr, ptr %77, align 8, !tbaa !11
  %79 = call noundef i32 @_ZNK4Tile8get_T_Y_Ev(ptr noundef nonnull align 4 dereferenceable(41) %78)
  %80 = icmp ugt i32 %79, 1
  br i1 %80, label %81, label %117

81:                                               ; preds = %76
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #3
  store i32 0, ptr %9, align 4, !tbaa !9
  br label %82

82:                                               ; preds = %113, %81
  %83 = load i32, ptr %9, align 4, !tbaa !9
  %84 = getelementptr inbounds %class.CompilerComponent, ptr %23, i32 0, i32 1
  %85 = load ptr, ptr %84, align 8, !tbaa !11
  %86 = call noundef i32 @_ZNK4Tile11get_Num_VNsEv(ptr noundef nonnull align 4 dereferenceable(41) %85)
  %87 = icmp ult i32 %83, %86
  br i1 %87, label %89, label %88

88:                                               ; preds = %82
  store i32 8, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #3
  br label %116

89:                                               ; preds = %82
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #3
  store i32 0, ptr %10, align 4, !tbaa !9
  br label %90

90:                                               ; preds = %109, %89
  %91 = load i32, ptr %10, align 4, !tbaa !9
  %92 = getelementptr inbounds %class.CompilerComponent, ptr %23, i32 0, i32 1
  %93 = load ptr, ptr %92, align 8, !tbaa !11
  %94 = call noundef i32 @_ZNK4Tile11get_VN_SizeEv(ptr noundef nonnull align 4 dereferenceable(41) %93)
  %95 = icmp ult i32 %91, %94
  br i1 %95, label %97, label %96

96:                                               ; preds = %90
  store i32 11, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #3
  br label %112

97:                                               ; preds = %90
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #3
  %98 = load i32, ptr %9, align 4, !tbaa !9
  %99 = getelementptr inbounds %class.CompilerComponent, ptr %23, i32 0, i32 1
  %100 = load ptr, ptr %99, align 8, !tbaa !11
  %101 = call noundef i32 @_ZNK4Tile11get_VN_SizeEv(ptr noundef nonnull align 4 dereferenceable(41) %100)
  %102 = mul i32 %98, %101
  %103 = load i32, ptr %10, align 4, !tbaa !9
  %104 = add i32 %102, %103
  store i32 %104, ptr %11, align 4, !tbaa !9
  %105 = getelementptr inbounds %class.CompilerMSN, ptr %23, i32 0, i32 2
  %106 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt3mapIjbSt4lessIjESaISt4pairIKjbEEEixERS3_(ptr noundef nonnull align 8 dereferenceable(48) %105, ptr noundef nonnull align 4 dereferenceable(4) %11)
  store i8 0, ptr %106, align 1, !tbaa !19
  %107 = getelementptr inbounds %class.CompilerMSN, ptr %23, i32 0, i32 3
  %108 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt3mapIjbSt4lessIjESaISt4pairIKjbEEEixERS3_(ptr noundef nonnull align 8 dereferenceable(48) %107, ptr noundef nonnull align 4 dereferenceable(4) %11)
  store i8 0, ptr %108, align 1, !tbaa !19
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #3
  br label %109

109:                                              ; preds = %97
  %110 = load i32, ptr %10, align 4, !tbaa !9
  %111 = add nsw i32 %110, 1
  store i32 %111, ptr %10, align 4, !tbaa !9
  br label %90, !llvm.loop !23

112:                                              ; preds = %96
  br label %113

113:                                              ; preds = %112
  %114 = load i32, ptr %9, align 4, !tbaa !9
  %115 = add nsw i32 %114, 1
  store i32 %115, ptr %9, align 4, !tbaa !9
  br label %82, !llvm.loop !24

116:                                              ; preds = %88
  br label %222

117:                                              ; preds = %76
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #3
  store i32 0, ptr %12, align 4, !tbaa !9
  %118 = getelementptr inbounds %class.CompilerComponent, ptr %23, i32 0, i32 1
  %119 = load ptr, ptr %118, align 8, !tbaa !11
  %120 = call noundef zeroext i1 @_ZNK4Tile19get_folding_enabledEv(ptr noundef nonnull align 4 dereferenceable(41) %119)
  br i1 %120, label %121, label %122

121:                                              ; preds = %117
  store i32 1, ptr %12, align 4, !tbaa !9
  br label %122

122:                                              ; preds = %121, %117
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #3
  store i32 0, ptr %13, align 4, !tbaa !9
  br label %123

123:                                              ; preds = %218, %122
  %124 = load i32, ptr %13, align 4, !tbaa !9
  %125 = getelementptr inbounds %class.CompilerComponent, ptr %23, i32 0, i32 1
  %126 = load ptr, ptr %125, align 8, !tbaa !11
  %127 = call noundef i32 @_ZNK4Tile11get_Num_VNsEv(ptr noundef nonnull align 4 dereferenceable(41) %126)
  %128 = icmp ult i32 %124, %127
  br i1 %128, label %130, label %129

129:                                              ; preds = %123
  store i32 14, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #3
  br label %221

130:                                              ; preds = %123
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #3
  store i32 0, ptr %14, align 4, !tbaa !9
  br label %131

131:                                              ; preds = %214, %130
  %132 = load i32, ptr %14, align 4, !tbaa !9
  %133 = getelementptr inbounds %class.CompilerComponent, ptr %23, i32 0, i32 1
  %134 = load ptr, ptr %133, align 8, !tbaa !11
  %135 = call noundef i32 @_ZNK4Tile7get_T_CEv(ptr noundef nonnull align 4 dereferenceable(41) %134)
  %136 = icmp ult i32 %132, %135
  br i1 %136, label %138, label %137

137:                                              ; preds = %131
  store i32 17, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #3
  br label %217

138:                                              ; preds = %131
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #3
  store i32 0, ptr %15, align 4, !tbaa !9
  br label %139

139:                                              ; preds = %210, %138
  %140 = load i32, ptr %15, align 4, !tbaa !9
  %141 = getelementptr inbounds %class.CompilerComponent, ptr %23, i32 0, i32 1
  %142 = load ptr, ptr %141, align 8, !tbaa !11
  %143 = call noundef i32 @_ZNK4Tile7get_T_REv(ptr noundef nonnull align 4 dereferenceable(41) %142)
  %144 = icmp ult i32 %140, %143
  br i1 %144, label %146, label %145

145:                                              ; preds = %139
  store i32 20, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #3
  br label %213

146:                                              ; preds = %139
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #3
  store i32 0, ptr %16, align 4, !tbaa !9
  br label %147

147:                                              ; preds = %206, %146
  %148 = load i32, ptr %16, align 4, !tbaa !9
  %149 = getelementptr inbounds %class.CompilerComponent, ptr %23, i32 0, i32 1
  %150 = load ptr, ptr %149, align 8, !tbaa !11
  %151 = call noundef i32 @_ZNK4Tile7get_T_SEv(ptr noundef nonnull align 4 dereferenceable(41) %150)
  %152 = icmp ult i32 %148, %151
  br i1 %152, label %154, label %153

153:                                              ; preds = %147
  store i32 23, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #3
  br label %209

154:                                              ; preds = %147
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #3
  %155 = load i32, ptr %13, align 4, !tbaa !9
  %156 = getelementptr inbounds %class.CompilerComponent, ptr %23, i32 0, i32 1
  %157 = load ptr, ptr %156, align 8, !tbaa !11
  %158 = call noundef i32 @_ZNK4Tile11get_VN_SizeEv(ptr noundef nonnull align 4 dereferenceable(41) %157)
  %159 = mul i32 %155, %158
  %160 = load i32, ptr %14, align 4, !tbaa !9
  %161 = getelementptr inbounds %class.CompilerComponent, ptr %23, i32 0, i32 1
  %162 = load ptr, ptr %161, align 8, !tbaa !11
  %163 = call noundef i32 @_ZNK4Tile7get_T_REv(ptr noundef nonnull align 4 dereferenceable(41) %162)
  %164 = mul i32 %160, %163
  %165 = getelementptr inbounds %class.CompilerComponent, ptr %23, i32 0, i32 1
  %166 = load ptr, ptr %165, align 8, !tbaa !11
  %167 = call noundef i32 @_ZNK4Tile7get_T_SEv(ptr noundef nonnull align 4 dereferenceable(41) %166)
  %168 = mul i32 %164, %167
  %169 = add i32 %159, %168
  %170 = load i32, ptr %15, align 4, !tbaa !9
  %171 = getelementptr inbounds %class.CompilerComponent, ptr %23, i32 0, i32 1
  %172 = load ptr, ptr %171, align 8, !tbaa !11
  %173 = call noundef i32 @_ZNK4Tile7get_T_SEv(ptr noundef nonnull align 4 dereferenceable(41) %172)
  %174 = mul i32 %170, %173
  %175 = add i32 %169, %174
  %176 = load i32, ptr %16, align 4, !tbaa !9
  %177 = add i32 %175, %176
  %178 = load i32, ptr %12, align 4, !tbaa !9
  %179 = add i32 %177, %178
  store i32 %179, ptr %17, align 4, !tbaa !9
  %180 = load i32, ptr %16, align 4, !tbaa !9
  %181 = icmp sgt i32 %180, 0
  br i1 %181, label %182, label %186

182:                                              ; preds = %154
  %183 = getelementptr inbounds %class.CompilerMSN, ptr %23, i32 0, i32 2
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #3
  %184 = load i32, ptr %17, align 4, !tbaa !9
  store i32 %184, ptr %18, align 4, !tbaa !9
  %185 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt3mapIjbSt4lessIjESaISt4pairIKjbEEEixEOj(ptr noundef nonnull align 8 dereferenceable(48) %183, ptr noundef nonnull align 4 dereferenceable(4) %18)
  store i8 1, ptr %185, align 1, !tbaa !19
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #3
  br label %190

186:                                              ; preds = %154
  %187 = getelementptr inbounds %class.CompilerMSN, ptr %23, i32 0, i32 2
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #3
  %188 = load i32, ptr %17, align 4, !tbaa !9
  store i32 %188, ptr %19, align 4, !tbaa !9
  %189 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt3mapIjbSt4lessIjESaISt4pairIKjbEEEixEOj(ptr noundef nonnull align 8 dereferenceable(48) %187, ptr noundef nonnull align 4 dereferenceable(4) %19)
  store i8 0, ptr %189, align 1, !tbaa !19
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #3
  br label %190

190:                                              ; preds = %186, %182
  %191 = load i32, ptr %16, align 4, !tbaa !9
  %192 = getelementptr inbounds %class.CompilerComponent, ptr %23, i32 0, i32 1
  %193 = load ptr, ptr %192, align 8, !tbaa !11
  %194 = call noundef i32 @_ZNK4Tile7get_T_SEv(ptr noundef nonnull align 4 dereferenceable(41) %193)
  %195 = sub i32 %194, 1
  %196 = icmp ult i32 %191, %195
  br i1 %196, label %197, label %201

197:                                              ; preds = %190
  %198 = getelementptr inbounds %class.CompilerMSN, ptr %23, i32 0, i32 3
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #3
  %199 = load i32, ptr %17, align 4, !tbaa !9
  store i32 %199, ptr %20, align 4, !tbaa !9
  %200 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt3mapIjbSt4lessIjESaISt4pairIKjbEEEixEOj(ptr noundef nonnull align 8 dereferenceable(48) %198, ptr noundef nonnull align 4 dereferenceable(4) %20)
  store i8 1, ptr %200, align 1, !tbaa !19
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #3
  br label %205

201:                                              ; preds = %190
  %202 = getelementptr inbounds %class.CompilerMSN, ptr %23, i32 0, i32 3
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #3
  %203 = load i32, ptr %17, align 4, !tbaa !9
  store i32 %203, ptr %21, align 4, !tbaa !9
  %204 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt3mapIjbSt4lessIjESaISt4pairIKjbEEEixEOj(ptr noundef nonnull align 8 dereferenceable(48) %202, ptr noundef nonnull align 4 dereferenceable(4) %21)
  store i8 0, ptr %204, align 1, !tbaa !19
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #3
  br label %205

205:                                              ; preds = %201, %197
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #3
  br label %206

206:                                              ; preds = %205
  %207 = load i32, ptr %16, align 4, !tbaa !9
  %208 = add nsw i32 %207, 1
  store i32 %208, ptr %16, align 4, !tbaa !9
  br label %147, !llvm.loop !25

209:                                              ; preds = %153
  br label %210

210:                                              ; preds = %209
  %211 = load i32, ptr %15, align 4, !tbaa !9
  %212 = add nsw i32 %211, 1
  store i32 %212, ptr %15, align 4, !tbaa !9
  br label %139, !llvm.loop !26

213:                                              ; preds = %145
  br label %214

214:                                              ; preds = %213
  %215 = load i32, ptr %14, align 4, !tbaa !9
  %216 = add nsw i32 %215, 1
  store i32 %216, ptr %14, align 4, !tbaa !9
  br label %131, !llvm.loop !27

217:                                              ; preds = %137
  br label %218

218:                                              ; preds = %217
  %219 = load i32, ptr %13, align 4, !tbaa !9
  %220 = add nsw i32 %219, 1
  store i32 %220, ptr %13, align 4, !tbaa !9
  br label %123, !llvm.loop !28

221:                                              ; preds = %129
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #3
  br label %222

222:                                              ; preds = %221, %116
  %223 = getelementptr inbounds %class.CompilerComponent, ptr %23, i32 0, i32 3
  %224 = load ptr, ptr %223, align 8, !tbaa !29
  %225 = call noundef i32 @_ZNK8DNNLayer11get_stridesEv(ptr noundef nonnull align 8 dereferenceable(84) %224)
  %226 = icmp ugt i32 %225, 1
  br i1 %226, label %236, label %227

227:                                              ; preds = %222
  %228 = getelementptr inbounds %class.CompilerComponent, ptr %23, i32 0, i32 3
  %229 = load ptr, ptr %228, align 8, !tbaa !29
  %230 = call noundef i32 @_ZNK8DNNLayer5get_SEv(ptr noundef nonnull align 8 dereferenceable(84) %229)
  %231 = getelementptr inbounds %class.CompilerComponent, ptr %23, i32 0, i32 1
  %232 = load ptr, ptr %231, align 8, !tbaa !11
  %233 = call noundef i32 @_ZNK4Tile7get_T_SEv(ptr noundef nonnull align 4 dereferenceable(41) %232)
  %234 = urem i32 %230, %233
  %235 = icmp ne i32 %234, 0
  br i1 %235, label %236, label %251

236:                                              ; preds = %227, %222
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #3
  store i32 0, ptr %22, align 4, !tbaa !9
  br label %237

237:                                              ; preds = %247, %236
  %238 = load i32, ptr %22, align 4, !tbaa !9
  %239 = load i32, ptr %4, align 4, !tbaa !9
  %240 = icmp ult i32 %238, %239
  br i1 %240, label %242, label %241

241:                                              ; preds = %237
  store i32 26, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #3
  br label %250

242:                                              ; preds = %237
  %243 = getelementptr inbounds %class.CompilerMSN, ptr %23, i32 0, i32 2
  %244 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt3mapIjbSt4lessIjESaISt4pairIKjbEEEixERS3_(ptr noundef nonnull align 8 dereferenceable(48) %243, ptr noundef nonnull align 4 dereferenceable(4) %22)
  store i8 0, ptr %244, align 1, !tbaa !19
  %245 = getelementptr inbounds %class.CompilerMSN, ptr %23, i32 0, i32 3
  %246 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt3mapIjbSt4lessIjESaISt4pairIKjbEEEixERS3_(ptr noundef nonnull align 8 dereferenceable(48) %245, ptr noundef nonnull align 4 dereferenceable(4) %22)
  store i8 0, ptr %246, align 1, !tbaa !19
  br label %247

247:                                              ; preds = %242
  %248 = load i32, ptr %22, align 4, !tbaa !9
  %249 = add i32 %248, 1
  store i32 %249, ptr %22, align 4, !tbaa !9
  br label %237, !llvm.loop !30

250:                                              ; preds = %241
  br label %251

251:                                              ; preds = %250, %227
  ret void
}

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt3mapIjjSt4lessIjESaISt4pairIKjjEEEixERS3_(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 4 dereferenceable(4)) #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt3mapIjbSt4lessIjESaISt4pairIKjbEEEixERS3_(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 4 dereferenceable(4)) #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK4Tile19get_folding_enabledEv(ptr noundef nonnull align 4 dereferenceable(41)) #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK4Tile8get_T_Y_Ev(ptr noundef nonnull align 4 dereferenceable(41)) #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK4Tile7get_T_CEv(ptr noundef nonnull align 4 dereferenceable(41)) #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK4Tile7get_T_REv(ptr noundef nonnull align 4 dereferenceable(41)) #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK4Tile7get_T_SEv(ptr noundef nonnull align 4 dereferenceable(41)) #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt3mapIjbSt4lessIjESaISt4pairIKjbEEEixEOj(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 4 dereferenceable(4)) #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK8DNNLayer11get_stridesEv(ptr noundef nonnull align 8 dereferenceable(84)) #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK8DNNLayer5get_SEv(ptr noundef nonnull align 8 dereferenceable(84)) #1 align 2

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { 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 #3 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !6, i64 8}
!12 = !{!"_ZTS17CompilerComponent", !6, i64 8, !13, i64 16, !6, i64 40, !10, i64 48, !17, i64 52, !10, i64 56}
!13 = !{!"_ZTSSt6vectorI8SparseVNSaIS0_EE", !14, i64 0}
!14 = !{!"_ZTSSt12_Vector_baseI8SparseVNSaIS0_EE", !15, i64 0}
!15 = !{!"_ZTSNSt12_Vector_baseI8SparseVNSaIS0_EE12_Vector_implE", !16, i64 0}
!16 = !{!"_ZTSNSt12_Vector_baseI8SparseVNSaIS0_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!17 = !{!"bool", !7, i64 0}
!18 = !{!12, !10, i64 56}
!19 = !{!17, !17, i64 0}
!20 = distinct !{!20, !21}
!21 = !{!"llvm.loop.mustprogress"}
!22 = distinct !{!22, !21}
!23 = distinct !{!23, !21}
!24 = distinct !{!24, !21}
!25 = distinct !{!25, !21}
!26 = distinct !{!26, !21}
!27 = distinct !{!27, !21}
!28 = distinct !{!28, !21}
!29 = !{!12, !6, i64 40}
!30 = distinct !{!30, !21}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK4Tile11get_VN_SizeEv(ptr noundef nonnull align 4 dereferenceable(41)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK4Tile11get_Num_VNsEv(ptr noundef nonnull align 4 dereferenceable(41)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN11CompilerMSN19generate_ms_signalsEj(ptr noundef nonnull align 8 dereferenceable(352) %0, i32 noundef %1) local_unnamed_addr #2 align 2 {
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = getelementptr inbounds i8, ptr %0, i64 8
  %11 = load ptr, ptr %10, align 8, !tbaa !5
  %12 = tail call noundef i32 @_ZNK4Tile11get_Num_VNsEv(ptr noundef nonnull align 4 dereferenceable(41) %11)
  %.not68 = icmp eq i32 %12, 0
  br i1 %.not68, label %._crit_edge52, label %.preheader49.lr.ph

.preheader49.lr.ph:                               ; preds = %2
  %13 = getelementptr inbounds i8, ptr %0, i64 64
  %14 = getelementptr inbounds i8, ptr %0, i64 56
  %15 = getelementptr inbounds i8, ptr %0, i64 304
  %16 = getelementptr inbounds i8, ptr %0, i64 256
  %17 = getelementptr inbounds i8, ptr %0, i64 208
  br label %.preheader49

.preheader49:                                     ; preds = %.preheader49.lr.ph, %._crit_edge
  %.051 = phi i32 [ 0, %.preheader49.lr.ph ], [ %27, %._crit_edge ]
  %18 = load ptr, ptr %10, align 8, !tbaa !5
  %19 = call noundef i32 @_ZNK4Tile11get_VN_SizeEv(ptr noundef nonnull align 4 dereferenceable(41) %18)
  %.not69 = icmp eq i32 %19, 0
  br i1 %.not69, label %._crit_edge, label %.lr.ph

._crit_edge52:                                    ; preds = %._crit_edge, %2
  %20 = load ptr, ptr %10, align 8, !tbaa !5
  %21 = call noundef i32 @_ZNK4Tile8get_T_Y_Ev(ptr noundef nonnull align 4 dereferenceable(41) %20)
  %22 = icmp ugt i32 %21, 1
  %23 = load ptr, ptr %10, align 8, !tbaa !5
  br i1 %22, label %.preheader44, label %63

.preheader44:                                     ; preds = %._crit_edge52
  %24 = call noundef i32 @_ZNK4Tile11get_Num_VNsEv(ptr noundef nonnull align 4 dereferenceable(41) %23)
  %.not74 = icmp eq i32 %24, 0
  br i1 %.not74, label %.loopexit, label %.preheader.lr.ph

.preheader.lr.ph:                                 ; preds = %.preheader44
  %25 = getelementptr inbounds i8, ptr %0, i64 112
  %26 = getelementptr inbounds i8, ptr %0, i64 160
  br label %.preheader

._crit_edge:                                      ; preds = %.lr.ph, %.preheader49
  %27 = add nuw nsw i32 %.051, 1
  %28 = load ptr, ptr %10, align 8, !tbaa !5
  %29 = call noundef i32 @_ZNK4Tile11get_Num_VNsEv(ptr noundef nonnull align 4 dereferenceable(41) %28)
  %30 = icmp ult i32 %27, %29
  br i1 %30, label %.preheader49, label %._crit_edge52, !llvm.loop !16

.lr.ph:                                           ; preds = %.preheader49, %.lr.ph
  %.04250 = phi i32 [ %43, %.lr.ph ], [ 0, %.preheader49 ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #3
  %31 = load ptr, ptr %10, align 8, !tbaa !5
  %32 = call noundef i32 @_ZNK4Tile11get_VN_SizeEv(ptr noundef nonnull align 4 dereferenceable(41) %31)
  %33 = mul i32 %32, %.051
  %34 = add i32 %33, %.04250
  store i32 %34, ptr %3, align 4, !tbaa !18
  %35 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt3mapIjjSt4lessIjESaISt4pairIKjjEEEixERS3_(ptr noundef nonnull align 8 dereferenceable(48) %13, ptr noundef nonnull align 4 dereferenceable(4) %3)
  store i32 %.051, ptr %35, align 4, !tbaa !18
  %36 = load i32, ptr %14, align 8, !tbaa !19
  %37 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt3mapIjjSt4lessIjESaISt4pairIKjjEEEixERS3_(ptr noundef nonnull align 8 dereferenceable(48) %15, ptr noundef nonnull align 4 dereferenceable(4) %3)
  store i32 %36, ptr %37, align 4, !tbaa !18
  %38 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt3mapIjbSt4lessIjESaISt4pairIKjbEEEixERS3_(ptr noundef nonnull align 8 dereferenceable(48) %16, ptr noundef nonnull align 4 dereferenceable(4) %3)
  store i8 0, ptr %38, align 1, !tbaa !20
  %39 = load ptr, ptr %10, align 8, !tbaa !5
  %40 = call noundef zeroext i1 @_ZNK4Tile19get_folding_enabledEv(ptr noundef nonnull align 4 dereferenceable(41) %39)
  %41 = icmp eq i32 %.04250, 0
  %or.cond = select i1 %40, i1 %41, i1 false
  %42 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt3mapIjbSt4lessIjESaISt4pairIKjbEEEixERS3_(ptr noundef nonnull align 8 dereferenceable(48) %17, ptr noundef nonnull align 4 dereferenceable(4) %3)
  %. = zext i1 %or.cond to i8
  store i8 %., ptr %42, align 1, !tbaa !20
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #3
  %43 = add nuw nsw i32 %.04250, 1
  %44 = load ptr, ptr %10, align 8, !tbaa !5
  %45 = call noundef i32 @_ZNK4Tile11get_VN_SizeEv(ptr noundef nonnull align 4 dereferenceable(41) %44)
  %46 = icmp ult i32 %43, %45
  br i1 %46, label %.lr.ph, label %._crit_edge, !llvm.loop !21

.preheader:                                       ; preds = %.preheader.lr.ph, %._crit_edge63
  %.04164 = phi i32 [ 0, %.preheader.lr.ph ], [ %49, %._crit_edge63 ]
  %47 = load ptr, ptr %10, align 8, !tbaa !5
  %48 = call noundef i32 @_ZNK4Tile11get_VN_SizeEv(ptr noundef nonnull align 4 dereferenceable(41) %47)
  %.not75 = icmp eq i32 %48, 0
  br i1 %.not75, label %._crit_edge63, label %.lr.ph62

._crit_edge63:                                    ; preds = %.lr.ph62, %.preheader
  %49 = add nuw nsw i32 %.04164, 1
  %50 = load ptr, ptr %10, align 8, !tbaa !5
  %51 = call noundef i32 @_ZNK4Tile11get_Num_VNsEv(ptr noundef nonnull align 4 dereferenceable(41) %50)
  %52 = icmp ult i32 %49, %51
  br i1 %52, label %.preheader, label %.loopexit, !llvm.loop !22

.lr.ph62:                                         ; preds = %.preheader, %.lr.ph62
  %.04061 = phi i32 [ %59, %.lr.ph62 ], [ 0, %.preheader ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #3
  %53 = load ptr, ptr %10, align 8, !tbaa !5
  %54 = call noundef i32 @_ZNK4Tile11get_VN_SizeEv(ptr noundef nonnull align 4 dereferenceable(41) %53)
  %55 = mul i32 %54, %.04164
  %56 = add i32 %55, %.04061
  store i32 %56, ptr %4, align 4, !tbaa !18
  %57 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt3mapIjbSt4lessIjESaISt4pairIKjbEEEixERS3_(ptr noundef nonnull align 8 dereferenceable(48) %25, ptr noundef nonnull align 4 dereferenceable(4) %4)
  store i8 0, ptr %57, align 1, !tbaa !20
  %58 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt3mapIjbSt4lessIjESaISt4pairIKjbEEEixERS3_(ptr noundef nonnull align 8 dereferenceable(48) %26, ptr noundef nonnull align 4 dereferenceable(4) %4)
  store i8 0, ptr %58, align 1, !tbaa !20
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #3
  %59 = add nuw nsw i32 %.04061, 1
  %60 = load ptr, ptr %10, align 8, !tbaa !5
  %61 = call noundef i32 @_ZNK4Tile11get_VN_SizeEv(ptr noundef nonnull align 4 dereferenceable(41) %60)
  %62 = icmp ult i32 %59, %61
  br i1 %62, label %.lr.ph62, label %._crit_edge63, !llvm.loop !23

63:                                               ; preds = %._crit_edge52
  %64 = call noundef zeroext i1 @_ZNK4Tile19get_folding_enabledEv(ptr noundef nonnull align 4 dereferenceable(41) %23)
  %spec.select = zext i1 %64 to i32
  %65 = load ptr, ptr %10, align 8, !tbaa !5
  %66 = call noundef i32 @_ZNK4Tile11get_Num_VNsEv(ptr noundef nonnull align 4 dereferenceable(41) %65)
  %.not70 = icmp eq i32 %66, 0
  br i1 %.not70, label %.loopexit, label %.preheader47.lr.ph

.preheader47.lr.ph:                               ; preds = %63
  %67 = getelementptr inbounds i8, ptr %0, i64 112
  %68 = getelementptr inbounds i8, ptr %0, i64 160
  br label %.preheader47

.preheader47:                                     ; preds = %.preheader47.lr.ph, %._crit_edge59
  %.03860 = phi i32 [ 0, %.preheader47.lr.ph ], [ %73, %._crit_edge59 ]
  %69 = load ptr, ptr %10, align 8, !tbaa !5
  %70 = call noundef i32 @_ZNK4Tile7get_T_CEv(ptr noundef nonnull align 4 dereferenceable(41) %69)
  %.not71 = icmp eq i32 %70, 0
  br i1 %.not71, label %._crit_edge59, label %.preheader46

.preheader46:                                     ; preds = %.preheader47, %._crit_edge57
  %.03758 = phi i32 [ %105, %._crit_edge57 ], [ 0, %.preheader47 ]
  %71 = load ptr, ptr %10, align 8, !tbaa !5
  %72 = call noundef i32 @_ZNK4Tile7get_T_REv(ptr noundef nonnull align 4 dereferenceable(41) %71)
  %.not72 = icmp eq i32 %72, 0
  br i1 %.not72, label %._crit_edge57, label %.preheader45

._crit_edge59:                                    ; preds = %._crit_edge57, %.preheader47
  %73 = add nuw nsw i32 %.03860, 1
  %74 = load ptr, ptr %10, align 8, !tbaa !5
  %75 = call noundef i32 @_ZNK4Tile11get_Num_VNsEv(ptr noundef nonnull align 4 dereferenceable(41) %74)
  %76 = icmp ult i32 %73, %75
  br i1 %76, label %.preheader47, label %.loopexit, !llvm.loop !24

.preheader45:                                     ; preds = %.preheader46, %._crit_edge55
  %.03656 = phi i32 [ %109, %._crit_edge55 ], [ 0, %.preheader46 ]
  %77 = load ptr, ptr %10, align 8, !tbaa !5
  %78 = call noundef i32 @_ZNK4Tile7get_T_SEv(ptr noundef nonnull align 4 dereferenceable(41) %77)
  %.not73 = icmp eq i32 %78, 0
  br i1 %.not73, label %._crit_edge55, label %79

79:                                               ; preds = %.preheader45
  %80 = load ptr, ptr %10, align 8, !tbaa !5
  %81 = call noundef i32 @_ZNK4Tile11get_VN_SizeEv(ptr noundef nonnull align 4 dereferenceable(41) %80)
  %82 = mul i32 %81, %.03860
  %83 = load ptr, ptr %10, align 8, !tbaa !5
  %84 = call noundef i32 @_ZNK4Tile7get_T_REv(ptr noundef nonnull align 4 dereferenceable(41) %83)
  %85 = mul i32 %84, %.03758
  %86 = load ptr, ptr %10, align 8, !tbaa !5
  %87 = call noundef i32 @_ZNK4Tile7get_T_SEv(ptr noundef nonnull align 4 dereferenceable(41) %86)
  %88 = mul i32 %85, %87
  %89 = load ptr, ptr %10, align 8, !tbaa !5
  %90 = call noundef i32 @_ZNK4Tile7get_T_SEv(ptr noundef nonnull align 4 dereferenceable(41) %89)
  %91 = mul i32 %90, %.03656
  %92 = add i32 %82, %spec.select
  %93 = add i32 %92, %88
  %94 = add i32 %93, %91
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #3
  store i32 %94, ptr %6, align 4, !tbaa !18
  %95 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt3mapIjbSt4lessIjESaISt4pairIKjbEEEixEOj(ptr noundef nonnull align 8 dereferenceable(48) %67, ptr noundef nonnull align 4 dereferenceable(4) %6)
  store i8 0, ptr %95, align 1, !tbaa !20
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #3
  %.pre = load ptr, ptr %10, align 8, !tbaa !5
  %96 = call noundef i32 @_ZNK4Tile7get_T_SEv(ptr noundef nonnull align 4 dereferenceable(41) %.pre)
  %.not = icmp eq i32 %96, 1
  br i1 %.not, label %97, label %99

97:                                               ; preds = %79
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %8) #3
  store i32 %94, ptr %8, align 4, !tbaa !18
  %98 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt3mapIjbSt4lessIjESaISt4pairIKjbEEEixEOj(ptr noundef nonnull align 8 dereferenceable(48) %68, ptr noundef nonnull align 4 dereferenceable(4) %8)
  store i8 0, ptr %98, align 1, !tbaa !20
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #3
  br label %101

99:                                               ; preds = %79
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %7) #3
  store i32 %94, ptr %7, align 4, !tbaa !18
  %100 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt3mapIjbSt4lessIjESaISt4pairIKjbEEEixEOj(ptr noundef nonnull align 8 dereferenceable(48) %68, ptr noundef nonnull align 4 dereferenceable(4) %7)
  store i8 1, ptr %100, align 1, !tbaa !20
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #3
  br label %101

101:                                              ; preds = %99, %97
  %102 = load ptr, ptr %10, align 8, !tbaa !5
  %103 = call noundef i32 @_ZNK4Tile7get_T_SEv(ptr noundef nonnull align 4 dereferenceable(41) %102)
  %104 = icmp ugt i32 %103, 1
  br i1 %104, label %.lr.ph54.peel.next, label %._crit_edge55

._crit_edge57:                                    ; preds = %._crit_edge55, %.preheader46
  %105 = add nuw nsw i32 %.03758, 1
  %106 = load ptr, ptr %10, align 8, !tbaa !5
  %107 = call noundef i32 @_ZNK4Tile7get_T_CEv(ptr noundef nonnull align 4 dereferenceable(41) %106)
  %108 = icmp ult i32 %105, %107
  br i1 %108, label %.preheader46, label %._crit_edge59, !llvm.loop !25

._crit_edge55:                                    ; preds = %137, %101, %.preheader45
  %109 = add nuw nsw i32 %.03656, 1
  %110 = load ptr, ptr %10, align 8, !tbaa !5
  %111 = call noundef i32 @_ZNK4Tile7get_T_REv(ptr noundef nonnull align 4 dereferenceable(41) %110)
  %112 = icmp ult i32 %109, %111
  br i1 %112, label %.preheader45, label %._crit_edge57, !llvm.loop !26

.lr.ph54.peel.next:                               ; preds = %101, %137
  %.03553 = phi i32 [ %138, %137 ], [ 1, %101 ]
  %113 = load ptr, ptr %10, align 8, !tbaa !5
  %114 = call noundef i32 @_ZNK4Tile11get_VN_SizeEv(ptr noundef nonnull align 4 dereferenceable(41) %113)
  %115 = mul i32 %114, %.03860
  %116 = load ptr, ptr %10, align 8, !tbaa !5
  %117 = call noundef i32 @_ZNK4Tile7get_T_REv(ptr noundef nonnull align 4 dereferenceable(41) %116)
  %118 = mul i32 %117, %.03758
  %119 = load ptr, ptr %10, align 8, !tbaa !5
  %120 = call noundef i32 @_ZNK4Tile7get_T_SEv(ptr noundef nonnull align 4 dereferenceable(41) %119)
  %121 = mul i32 %118, %120
  %122 = load ptr, ptr %10, align 8, !tbaa !5
  %123 = call noundef i32 @_ZNK4Tile7get_T_SEv(ptr noundef nonnull align 4 dereferenceable(41) %122)
  %124 = mul i32 %123, %.03656
  %125 = add nuw i32 %.03553, %spec.select
  %126 = add i32 %125, %115
  %127 = add i32 %126, %121
  %128 = add i32 %127, %124
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #3
  store i32 %128, ptr %5, align 4, !tbaa !18
  %129 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt3mapIjbSt4lessIjESaISt4pairIKjbEEEixEOj(ptr noundef nonnull align 8 dereferenceable(48) %67, ptr noundef nonnull align 4 dereferenceable(4) %5)
  store i8 1, ptr %129, align 1, !tbaa !20
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #3
  %.pre79 = load ptr, ptr %10, align 8, !tbaa !5
  %130 = call noundef i32 @_ZNK4Tile7get_T_SEv(ptr noundef nonnull align 4 dereferenceable(41) %.pre79)
  %131 = add i32 %130, -1
  %132 = icmp ult i32 %.03553, %131
  br i1 %132, label %133, label %135

133:                                              ; preds = %.lr.ph54.peel.next
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %7) #3
  store i32 %128, ptr %7, align 4, !tbaa !18
  %134 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt3mapIjbSt4lessIjESaISt4pairIKjbEEEixEOj(ptr noundef nonnull align 8 dereferenceable(48) %68, ptr noundef nonnull align 4 dereferenceable(4) %7)
  store i8 1, ptr %134, align 1, !tbaa !20
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #3
  br label %137

135:                                              ; preds = %.lr.ph54.peel.next
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %8) #3
  store i32 %128, ptr %8, align 4, !tbaa !18
  %136 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt3mapIjbSt4lessIjESaISt4pairIKjbEEEixEOj(ptr noundef nonnull align 8 dereferenceable(48) %68, ptr noundef nonnull align 4 dereferenceable(4) %8)
  store i8 0, ptr %136, align 1, !tbaa !20
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #3
  br label %137

137:                                              ; preds = %135, %133
  %138 = add nuw nsw i32 %.03553, 1
  %139 = load ptr, ptr %10, align 8, !tbaa !5
  %140 = call noundef i32 @_ZNK4Tile7get_T_SEv(ptr noundef nonnull align 4 dereferenceable(41) %139)
  %141 = icmp ult i32 %138, %140
  br i1 %141, label %.lr.ph54.peel.next, label %._crit_edge55, !llvm.loop !27

.loopexit:                                        ; preds = %._crit_edge59, %._crit_edge63, %63, %.preheader44
  %142 = getelementptr inbounds i8, ptr %0, i64 40
  %143 = load ptr, ptr %142, align 8, !tbaa !29
  %144 = call noundef i32 @_ZNK8DNNLayer11get_stridesEv(ptr noundef nonnull align 8 dereferenceable(84) %143)
  %145 = icmp ugt i32 %144, 1
  br i1 %145, label %152, label %146

146:                                              ; preds = %.loopexit
  %147 = load ptr, ptr %142, align 8, !tbaa !29
  %148 = call noundef i32 @_ZNK8DNNLayer5get_SEv(ptr noundef nonnull align 8 dereferenceable(84) %147)
  %149 = load ptr, ptr %10, align 8, !tbaa !5
  %150 = call noundef i32 @_ZNK4Tile7get_T_SEv(ptr noundef nonnull align 4 dereferenceable(41) %149)
  %151 = urem i32 %148, %150
  %.not43 = icmp eq i32 %151, 0
  br i1 %.not43, label %161, label %152

152:                                              ; preds = %146, %.loopexit
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %9) #3
  store i32 0, ptr %9, align 4, !tbaa !18
  %.not76 = icmp eq i32 %1, 0
  br i1 %.not76, label %._crit_edge67, label %.lr.ph66

.lr.ph66:                                         ; preds = %152
  %153 = getelementptr inbounds i8, ptr %0, i64 112
  %154 = getelementptr inbounds i8, ptr %0, i64 160
  br label %155

._crit_edge67:                                    ; preds = %155, %152
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %9) #3
  br label %161

155:                                              ; preds = %.lr.ph66, %155
  %156 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt3mapIjbSt4lessIjESaISt4pairIKjbEEEixERS3_(ptr noundef nonnull align 8 dereferenceable(48) %153, ptr noundef nonnull align 4 dereferenceable(4) %9)
  store i8 0, ptr %156, align 1, !tbaa !20
  %157 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt3mapIjbSt4lessIjESaISt4pairIKjbEEEixERS3_(ptr noundef nonnull align 8 dereferenceable(48) %154, ptr noundef nonnull align 4 dereferenceable(4) %9)
  store i8 0, ptr %157, align 1, !tbaa !20
  %158 = load i32, ptr %9, align 4, !tbaa !18
  %159 = add i32 %158, 1
  store i32 %159, ptr %9, align 4, !tbaa !18
  %160 = icmp ult i32 %159, %1
  br i1 %160, label %155, label %._crit_edge67, !llvm.loop !30

161:                                              ; preds = %._crit_edge67, %146
  ret void
}

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt3mapIjjSt4lessIjESaISt4pairIKjjEEEixERS3_(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt3mapIjbSt4lessIjESaISt4pairIKjbEEEixERS3_(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK4Tile19get_folding_enabledEv(ptr noundef nonnull align 4 dereferenceable(41)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK4Tile8get_T_Y_Ev(ptr noundef nonnull align 4 dereferenceable(41)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK4Tile7get_T_CEv(ptr noundef nonnull align 4 dereferenceable(41)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK4Tile7get_T_REv(ptr noundef nonnull align 4 dereferenceable(41)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK4Tile7get_T_SEv(ptr noundef nonnull align 4 dereferenceable(41)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt3mapIjbSt4lessIjESaISt4pairIKjbEEEixEOj(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK8DNNLayer11get_stridesEv(ptr noundef nonnull align 8 dereferenceable(84)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK8DNNLayer5get_SEv(ptr noundef nonnull align 8 dereferenceable(84)) local_unnamed_addr #1 align 2

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { 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 #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 8}
!6 = !{!"_ZTS17CompilerComponent", !7, i64 8, !10, i64 16, !7, i64 40, !14, i64 48, !15, i64 52, !14, i64 56}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"_ZTSSt6vectorI8SparseVNSaIS0_EE", !11, i64 0}
!11 = !{!"_ZTSSt12_Vector_baseI8SparseVNSaIS0_EE", !12, i64 0}
!12 = !{!"_ZTSNSt12_Vector_baseI8SparseVNSaIS0_EE12_Vector_implE", !13, i64 0}
!13 = !{!"_ZTSNSt12_Vector_baseI8SparseVNSaIS0_EE17_Vector_impl_dataE", !7, i64 0, !7, i64 8, !7, i64 16}
!14 = !{!"int", !8, i64 0}
!15 = !{!"bool", !8, i64 0}
!16 = distinct !{!16, !17}
!17 = !{!"llvm.loop.mustprogress"}
!18 = !{!14, !14, i64 0}
!19 = !{!6, !14, i64 56}
!20 = !{!15, !15, i64 0}
!21 = distinct !{!21, !17}
!22 = distinct !{!22, !17}
!23 = distinct !{!23, !17}
!24 = distinct !{!24, !17}
!25 = distinct !{!25, !17}
!26 = distinct !{!26, !17}
!27 = distinct !{!27, !17, !28}
!28 = !{!"llvm.loop.peeled.count", i32 1}
!29 = !{!6, !7, i64 40}
!30 = distinct !{!30, !17}


; Effective O3 passes: BDCEPass,EarlyCSEPass,GVNPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LCSSAPass,LICMPass,LoopFullUnrollPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,ReassociatePass,SCCPPass,SROAPass,SimplifyCFGPass,TailCallElimPass