; LLVM IR from gem5/gem5 :: src/systemc/tests/systemc/datatypes/int/arith/arith01 (arith01)

; 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.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.sc_dt::sc_signed" = type { %"class.sc_dt::sc_value_base", i32, i32, i32, ptr }
%"class.sc_dt::sc_value_base" = type { ptr }
%struct.int9 = type { i16, [2 x i8] }
%struct.int31 = type { i32 }

@_ZN7sc_core23SC_ID_ASSERTION_FAILED_E = external constant [0 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [109 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [9 x i8], align 1
@_ZSt4cout = external global %"class.std::basic_ostream", align 8

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z6crunchRN5sc_dt9sc_signedE5int31ii(ptr noundef nonnull align 8 dereferenceable(32), i32, i32 noundef, i32 noundef) #0

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN5sc_dteqERKNS_9sc_signedEi(ptr noundef nonnull align 8 dereferenceable(32), i32 noundef) #2

declare void @_ZN7sc_core17sc_report_handler6reportENS_11sc_severityEPKcS3_S3_i(i32 noundef, ptr noundef, ptr noundef, ptr noundef, i32 noundef) #3

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_Z8fix_int9R4int9(ptr noundef nonnull align 4 dereferenceable(4)) #4

; Function Attrs: mustprogress uwtable
define dso_local i32 @sc_main(i32 noundef %0, ptr noundef %1) #0 personality ptr @__gxx_personality_v0 {
  %3 = alloca i32, align 4
  %4 = alloca ptr, align 8
  %5 = alloca %"class.sc_dt::sc_signed", align 8
  %6 = alloca %"class.sc_dt::sc_signed", align 8
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca %"class.sc_dt::sc_signed", align 8
  %10 = alloca %struct.int9, align 4
  %11 = alloca i32, align 4
  %12 = alloca %"class.sc_dt::sc_signed", align 8
  %13 = alloca i32, align 4
  %14 = alloca %"class.sc_dt::sc_signed", align 8
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca %struct.int31, align 4
  %18 = alloca %struct.int31, align 4
  %19 = alloca %struct.int31, align 4
  %20 = alloca %struct.int31, align 4
  store i32 %0, ptr %3, align 4, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 32, ptr %5) #6
  call void @_ZN5sc_dt9sc_signedC1Ei(ptr noundef nonnull align 8 dereferenceable(32) %5, i32 noundef 31)
  call void @llvm.lifetime.start.p0(i64 32, ptr %6) #6
  invoke void @_ZN5sc_dt9sc_signedC1Ei(ptr noundef nonnull align 8 dereferenceable(32) %6, i32 noundef 9)
          to label %21 unwind label %55

21:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 32, ptr %9) #6
  invoke void @_ZN5sc_dt9sc_signedC1Ei(ptr noundef nonnull align 8 dereferenceable(32) %9, i32 noundef 31)
          to label %22 unwind label %59

22:                                               ; preds = %21
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #6
  %23 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZN5sc_dt9sc_signedaSEi(ptr noundef nonnull align 8 dereferenceable(32) %6, i32 noundef -256)
          to label %24 unwind label %63

24:                                               ; preds = %22
  %25 = load i16, ptr %10, align 4
  %26 = and i16 %25, -512
  %27 = or i16 %26, 256
  store i16 %27, ptr %10, align 4
  %28 = load i16, ptr %10, align 4
  %29 = shl i16 %28, 7
  %30 = ashr i16 %29, 7
  %31 = sext i16 %30 to i32
  %32 = invoke noundef zeroext i1 @_ZN5sc_dteqERKNS_9sc_signedEi(ptr noundef nonnull align 8 dereferenceable(32) %6, i32 noundef %31)
          to label %33 unwind label %63

33:                                               ; preds = %24
  br i1 %32, label %34, label %35

34:                                               ; preds = %33
  br label %37

35:                                               ; preds = %33
  invoke void @_ZN7sc_core17sc_report_handler6reportENS_11sc_severityEPKcS3_S3_i(i32 noundef 3, ptr noundef @_ZN7sc_core23SC_ID_ASSERTION_FAILED_E, ptr noundef @.str.3, ptr noundef @.str.2, i32 noundef 96)
          to label %36 unwind label %63

36:                                               ; preds = %35
  br label %37

37:                                               ; preds = %36, %34
  %38 = phi i32 [ 0, %34 ], [ 0, %36 ]
  %39 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN5sc_dtlsERSoRKNS_9sc_signedE(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull align 8 dereferenceable(32) %6)
          to label %40 unwind label %63

40:                                               ; preds = %37
  %41 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %39, i8 noundef signext 9)
          to label %42 unwind label %63

42:                                               ; preds = %40
  %43 = load i16, ptr %10, align 4
  %44 = shl i16 %43, 7
  %45 = ashr i16 %44, 7
  %46 = sext i16 %45 to i32
  %47 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %41, i32 noundef %46)
          to label %48 unwind label %63

48:                                               ; preds = %42
  %49 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %47, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %50 unwind label %63

50:                                               ; preds = %48
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #6
  store i32 0, ptr %11, align 4, !tbaa !5
  br label %51

51:                                               ; preds = %105, %50
  %52 = load i32, ptr %11, align 4, !tbaa !5
  %53 = icmp slt i32 %52, 1000
  br i1 %53, label %67, label %54

54:                                               ; preds = %51
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #6
  br label %112

55:                                               ; preds = %2
  %56 = landingpad { ptr, i32 }
          cleanup
  %57 = extractvalue { ptr, i32 } %56, 0
  store ptr %57, ptr %7, align 8
  %58 = extractvalue { ptr, i32 } %56, 1
  store i32 %58, ptr %8, align 4
  br label %295

59:                                               ; preds = %21
  %60 = landingpad { ptr, i32 }
          cleanup
  %61 = extractvalue { ptr, i32 } %60, 0
  store ptr %61, ptr %7, align 8
  %62 = extractvalue { ptr, i32 } %60, 1
  store i32 %62, ptr %8, align 4
  br label %294

63:                                               ; preds = %264, %48, %42, %40, %37, %35, %24, %22
  %64 = landingpad { ptr, i32 }
          cleanup
  %65 = extractvalue { ptr, i32 } %64, 0
  store ptr %65, ptr %7, align 8
  %66 = extractvalue { ptr, i32 } %64, 1
  store i32 %66, ptr %8, align 4
  br label %293

67:                                               ; preds = %51
  invoke void @_ZN5sc_dt9sc_signedppEi(ptr dead_on_unwind writable sret(%"class.sc_dt::sc_signed") align 8 %12, ptr noundef nonnull align 8 dereferenceable(32) %6, i32 noundef 0)
          to label %68 unwind label %108

68:                                               ; preds = %67
  call void @_ZN5sc_dt9sc_signedD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %12) #6
  %69 = load i16, ptr %10, align 4
  %70 = shl i16 %69, 7
  %71 = ashr i16 %70, 7
  %72 = sext i16 %71 to i32
  %73 = add nsw i32 %72, 1
  %74 = trunc i32 %73 to i16
  %75 = load i16, ptr %10, align 4
  %76 = and i16 %74, 511
  %77 = and i16 %75, -512
  %78 = or i16 %77, %76
  store i16 %78, ptr %10, align 4
  %79 = shl i16 %76, 7
  %80 = ashr i16 %79, 7
  %81 = sext i16 %80 to i32
  call void @_Z8fix_int9R4int9(ptr noundef nonnull align 4 dereferenceable(4) %10)
  %82 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN5sc_dtlsERSoRKNS_9sc_signedE(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull align 8 dereferenceable(32) %6)
          to label %83 unwind label %108

83:                                               ; preds = %68
  %84 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %82, i8 noundef signext 9)
          to label %85 unwind label %108

85:                                               ; preds = %83
  %86 = load i16, ptr %10, align 4
  %87 = shl i16 %86, 7
  %88 = ashr i16 %87, 7
  %89 = sext i16 %88 to i32
  %90 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %84, i32 noundef %89)
          to label %91 unwind label %108

91:                                               ; preds = %85
  %92 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %90, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %93 unwind label %108

93:                                               ; preds = %91
  %94 = load i16, ptr %10, align 4
  %95 = shl i16 %94, 7
  %96 = ashr i16 %95, 7
  %97 = sext i16 %96 to i32
  %98 = invoke noundef zeroext i1 @_ZN5sc_dteqERKNS_9sc_signedEi(ptr noundef nonnull align 8 dereferenceable(32) %6, i32 noundef %97)
          to label %99 unwind label %108

99:                                               ; preds = %93
  br i1 %98, label %100, label %101

100:                                              ; preds = %99
  br label %103

101:                                              ; preds = %99
  invoke void @_ZN7sc_core17sc_report_handler6reportENS_11sc_severityEPKcS3_S3_i(i32 noundef 3, ptr noundef @_ZN7sc_core23SC_ID_ASSERTION_FAILED_E, ptr noundef @.str.3, ptr noundef @.str.2, i32 noundef 103)
          to label %102 unwind label %108

102:                                              ; preds = %101
  br label %103

103:                                              ; preds = %102, %100
  %104 = phi i32 [ 0, %100 ], [ 0, %102 ]
  br label %105

105:                                              ; preds = %103
  %106 = load i32, ptr %11, align 4, !tbaa !5
  %107 = add nsw i32 %106, 1
  store i32 %107, ptr %11, align 4, !tbaa !5
  br label %51, !llvm.loop !11

108:                                              ; preds = %101, %93, %91, %85, %83, %68, %67
  %109 = landingpad { ptr, i32 }
          cleanup
  %110 = extractvalue { ptr, i32 } %109, 0
  store ptr %110, ptr %7, align 8
  %111 = extractvalue { ptr, i32 } %109, 1
  store i32 %111, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #6
  br label %293

112:                                              ; preds = %54
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #6
  store i32 0, ptr %13, align 4, !tbaa !5
  br label %113

113:                                              ; preds = %155, %112
  %114 = load i32, ptr %13, align 4, !tbaa !5
  %115 = icmp slt i32 %114, 1000
  br i1 %115, label %117, label %116

116:                                              ; preds = %113
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #6
  br label %162

117:                                              ; preds = %113
  invoke void @_ZN5sc_dt9sc_signedmmEi(ptr dead_on_unwind writable sret(%"class.sc_dt::sc_signed") align 8 %14, ptr noundef nonnull align 8 dereferenceable(32) %6, i32 noundef 0)
          to label %118 unwind label %158

118:                                              ; preds = %117
  call void @_ZN5sc_dt9sc_signedD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %14) #6
  %119 = load i16, ptr %10, align 4
  %120 = shl i16 %119, 7
  %121 = ashr i16 %120, 7
  %122 = sext i16 %121 to i32
  %123 = add nsw i32 %122, -1
  %124 = trunc i32 %123 to i16
  %125 = load i16, ptr %10, align 4
  %126 = and i16 %124, 511
  %127 = and i16 %125, -512
  %128 = or i16 %127, %126
  store i16 %128, ptr %10, align 4
  %129 = shl i16 %126, 7
  %130 = ashr i16 %129, 7
  %131 = sext i16 %130 to i32
  call void @_Z8fix_int9R4int9(ptr noundef nonnull align 4 dereferenceable(4) %10)
  %132 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN5sc_dtlsERSoRKNS_9sc_signedE(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull align 8 dereferenceable(32) %6)
          to label %133 unwind label %158

133:                                              ; preds = %118
  %134 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %132, i8 noundef signext 9)
          to label %135 unwind label %158

135:                                              ; preds = %133
  %136 = load i16, ptr %10, align 4
  %137 = shl i16 %136, 7
  %138 = ashr i16 %137, 7
  %139 = sext i16 %138 to i32
  %140 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %134, i32 noundef %139)
          to label %141 unwind label %158

141:                                              ; preds = %135
  %142 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %140, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %143 unwind label %158

143:                                              ; preds = %141
  %144 = load i16, ptr %10, align 4
  %145 = shl i16 %144, 7
  %146 = ashr i16 %145, 7
  %147 = sext i16 %146 to i32
  %148 = invoke noundef zeroext i1 @_ZN5sc_dteqERKNS_9sc_signedEi(ptr noundef nonnull align 8 dereferenceable(32) %6, i32 noundef %147)
          to label %149 unwind label %158

149:                                              ; preds = %143
  br i1 %148, label %150, label %151

150:                                              ; preds = %149
  br label %153

151:                                              ; preds = %149
  invoke void @_ZN7sc_core17sc_report_handler6reportENS_11sc_severityEPKcS3_S3_i(i32 noundef 3, ptr noundef @_ZN7sc_core23SC_ID_ASSERTION_FAILED_E, ptr noundef @.str.3, ptr noundef @.str.2, i32 noundef 110)
          to label %152 unwind label %158

152:                                              ; preds = %151
  br label %153

153:                                              ; preds = %152, %150
  %154 = phi i32 [ 0, %150 ], [ 0, %152 ]
  br label %155

155:                                              ; preds = %153
  %156 = load i32, ptr %13, align 4, !tbaa !5
  %157 = add nsw i32 %156, 1
  store i32 %157, ptr %13, align 4, !tbaa !5
  br label %113, !llvm.loop !13

158:                                              ; preds = %151, %143, %141, %135, %133, %118, %117
  %159 = landingpad { ptr, i32 }
          cleanup
  %160 = extractvalue { ptr, i32 } %159, 0
  store ptr %160, ptr %7, align 8
  %161 = extractvalue { ptr, i32 } %159, 1
  store i32 %161, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #6
  br label %293

162:                                              ; preds = %116
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #6
  store i32 0, ptr %15, align 4, !tbaa !5
  br label %163

163:                                              ; preds = %206, %162
  %164 = load i32, ptr %15, align 4, !tbaa !5
  %165 = icmp slt i32 %164, 1000
  br i1 %165, label %167, label %166

166:                                              ; preds = %163
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #6
  br label %213

167:                                              ; preds = %163
  %168 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZN5sc_dt9sc_signedppEv(ptr noundef nonnull align 8 dereferenceable(32) %6)
          to label %169 unwind label %209

169:                                              ; preds = %167
  %170 = load i16, ptr %10, align 4
  %171 = shl i16 %170, 7
  %172 = ashr i16 %171, 7
  %173 = sext i16 %172 to i32
  %174 = add nsw i32 %173, 1
  %175 = trunc i32 %174 to i16
  %176 = load i16, ptr %10, align 4
  %177 = and i16 %175, 511
  %178 = and i16 %176, -512
  %179 = or i16 %178, %177
  store i16 %179, ptr %10, align 4
  %180 = shl i16 %177, 7
  %181 = ashr i16 %180, 7
  %182 = sext i16 %181 to i32
  call void @_Z8fix_int9R4int9(ptr noundef nonnull align 4 dereferenceable(4) %10)
  %183 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN5sc_dtlsERSoRKNS_9sc_signedE(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull align 8 dereferenceable(32) %6)
          to label %184 unwind label %209

184:                                              ; preds = %169
  %185 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %183, i8 noundef signext 9)
          to label %186 unwind label %209

186:                                              ; preds = %184
  %187 = load i16, ptr %10, align 4
  %188 = shl i16 %187, 7
  %189 = ashr i16 %188, 7
  %190 = sext i16 %189 to i32
  %191 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %185, i32 noundef %190)
          to label %192 unwind label %209

192:                                              ; preds = %186
  %193 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %191, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %194 unwind label %209

194:                                              ; preds = %192
  %195 = load i16, ptr %10, align 4
  %196 = shl i16 %195, 7
  %197 = ashr i16 %196, 7
  %198 = sext i16 %197 to i32
  %199 = invoke noundef zeroext i1 @_ZN5sc_dteqERKNS_9sc_signedEi(ptr noundef nonnull align 8 dereferenceable(32) %6, i32 noundef %198)
          to label %200 unwind label %209

200:                                              ; preds = %194
  br i1 %199, label %201, label %202

201:                                              ; preds = %200
  br label %204

202:                                              ; preds = %200
  invoke void @_ZN7sc_core17sc_report_handler6reportENS_11sc_severityEPKcS3_S3_i(i32 noundef 3, ptr noundef @_ZN7sc_core23SC_ID_ASSERTION_FAILED_E, ptr noundef @.str.3, ptr noundef @.str.2, i32 noundef 117)
          to label %203 unwind label %209

203:                                              ; preds = %202
  br label %204

204:                                              ; preds = %203, %201
  %205 = phi i32 [ 0, %201 ], [ 0, %203 ]
  br label %206

206:                                              ; preds = %204
  %207 = load i32, ptr %15, align 4, !tbaa !5
  %208 = add nsw i32 %207, 1
  store i32 %208, ptr %15, align 4, !tbaa !5
  br label %163, !llvm.loop !14

209:                                              ; preds = %202, %194, %192, %186, %184, %169, %167
  %210 = landingpad { ptr, i32 }
          cleanup
  %211 = extractvalue { ptr, i32 } %210, 0
  store ptr %211, ptr %7, align 8
  %212 = extractvalue { ptr, i32 } %210, 1
  store i32 %212, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #6
  br label %293

213:                                              ; preds = %166
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #6
  store i32 0, ptr %16, align 4, !tbaa !5
  br label %214

214:                                              ; preds = %257, %213
  %215 = load i32, ptr %16, align 4, !tbaa !5
  %216 = icmp slt i32 %215, 1000
  br i1 %216, label %218, label %217

217:                                              ; preds = %214
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #6
  br label %264

218:                                              ; preds = %214
  %219 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZN5sc_dt9sc_signedmmEv(ptr noundef nonnull align 8 dereferenceable(32) %6)
          to label %220 unwind label %260

220:                                              ; preds = %218
  %221 = load i16, ptr %10, align 4
  %222 = shl i16 %221, 7
  %223 = ashr i16 %222, 7
  %224 = sext i16 %223 to i32
  %225 = add nsw i32 %224, -1
  %226 = trunc i32 %225 to i16
  %227 = load i16, ptr %10, align 4
  %228 = and i16 %226, 511
  %229 = and i16 %227, -512
  %230 = or i16 %229, %228
  store i16 %230, ptr %10, align 4
  %231 = shl i16 %228, 7
  %232 = ashr i16 %231, 7
  %233 = sext i16 %232 to i32
  call void @_Z8fix_int9R4int9(ptr noundef nonnull align 4 dereferenceable(4) %10)
  %234 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN5sc_dtlsERSoRKNS_9sc_signedE(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull align 8 dereferenceable(32) %6)
          to label %235 unwind label %260

235:                                              ; preds = %220
  %236 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %234, i8 noundef signext 9)
          to label %237 unwind label %260

237:                                              ; preds = %235
  %238 = load i16, ptr %10, align 4
  %239 = shl i16 %238, 7
  %240 = ashr i16 %239, 7
  %241 = sext i16 %240 to i32
  %242 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %236, i32 noundef %241)
          to label %243 unwind label %260

243:                                              ; preds = %237
  %244 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %242, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %245 unwind label %260

245:                                              ; preds = %243
  %246 = load i16, ptr %10, align 4
  %247 = shl i16 %246, 7
  %248 = ashr i16 %247, 7
  %249 = sext i16 %248 to i32
  %250 = invoke noundef zeroext i1 @_ZN5sc_dteqERKNS_9sc_signedEi(ptr noundef nonnull align 8 dereferenceable(32) %6, i32 noundef %249)
          to label %251 unwind label %260

251:                                              ; preds = %245
  br i1 %250, label %252, label %253

252:                                              ; preds = %251
  br label %255

253:                                              ; preds = %251
  invoke void @_ZN7sc_core17sc_report_handler6reportENS_11sc_severityEPKcS3_S3_i(i32 noundef 3, ptr noundef @_ZN7sc_core23SC_ID_ASSERTION_FAILED_E, ptr noundef @.str.3, ptr noundef @.str.2, i32 noundef 124)
          to label %254 unwind label %260

254:                                              ; preds = %253
  br label %255

255:                                              ; preds = %254, %252
  %256 = phi i32 [ 0, %252 ], [ 0, %254 ]
  br label %257

257:                                              ; preds = %255
  %258 = load i32, ptr %16, align 4, !tbaa !5
  %259 = add nsw i32 %258, 1
  store i32 %259, ptr %16, align 4, !tbaa !5
  br label %214, !llvm.loop !15

260:                                              ; preds = %253, %245, %243, %237, %235, %220, %218
  %261 = landingpad { ptr, i32 }
          cleanup
  %262 = extractvalue { ptr, i32 } %261, 0
  store ptr %262, ptr %7, align 8
  %263 = extractvalue { ptr, i32 } %261, 1
  store i32 %263, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #6
  br label %293

264:                                              ; preds = %217
  %265 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZN5sc_dt9sc_signedaSEi(ptr noundef nonnull align 8 dereferenceable(32) %9, i32 noundef 129023)
          to label %266 unwind label %63

266:                                              ; preds = %264
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #6
  %267 = load i32, ptr %17, align 4
  %268 = and i32 %267, -2147483648
  %269 = or i32 %268, 129023
  store i32 %269, ptr %17, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %18, ptr align 4 %17, i64 4, i1 false), !tbaa.struct !16
  %270 = getelementptr inbounds %struct.int31, ptr %18, i32 0, i32 0
  %271 = load i32, ptr %270, align 4
  invoke void @_Z6crunchRN5sc_dt9sc_signedE5int31ii(ptr noundef nonnull align 8 dereferenceable(32) %9, i32 %271, i32 noundef 491, i32 noundef 12089)
          to label %272 unwind label %289

272:                                              ; preds = %266
  %273 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZN5sc_dt9sc_signedaSEi(ptr noundef nonnull align 8 dereferenceable(32) %5, i32 noundef -129023)
          to label %274 unwind label %289

274:                                              ; preds = %272
  %275 = load i32, ptr %17, align 4
  %276 = and i32 %275, -2147483648
  %277 = or i32 %276, 2147354625
  store i32 %277, ptr %17, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %19, ptr align 4 %17, i64 4, i1 false), !tbaa.struct !16
  %278 = getelementptr inbounds %struct.int31, ptr %19, i32 0, i32 0
  %279 = load i32, ptr %278, align 4
  invoke void @_Z6crunchRN5sc_dt9sc_signedE5int31ii(ptr noundef nonnull align 8 dereferenceable(32) %5, i32 %279, i32 noundef 109, i32 noundef -426)
          to label %280 unwind label %289

280:                                              ; preds = %274
  %281 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZN5sc_dt9sc_signedaSEi(ptr noundef nonnull align 8 dereferenceable(32) %5, i32 noundef -1)
          to label %282 unwind label %289

282:                                              ; preds = %280
  %283 = load i32, ptr %17, align 4
  %284 = and i32 %283, -2147483648
  %285 = or i32 %284, 2147483647
  store i32 %285, ptr %17, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %20, ptr align 4 %17, i64 4, i1 false), !tbaa.struct !16
  %286 = getelementptr inbounds %struct.int31, ptr %20, i32 0, i32 0
  %287 = load i32, ptr %286, align 4
  invoke void @_Z6crunchRN5sc_dt9sc_signedE5int31ii(ptr noundef nonnull align 8 dereferenceable(32) %5, i32 %287, i32 noundef 30941, i32 noundef -1188)
          to label %288 unwind label %289

288:                                              ; preds = %282
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #6
  call void @_ZN5sc_dt9sc_signedD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %9) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %9) #6
  call void @_ZN5sc_dt9sc_signedD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %6) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %6) #6
  call void @_ZN5sc_dt9sc_signedD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %5) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %5) #6
  ret i32 0

289:                                              ; preds = %282, %280, %274, %272, %266
  %290 = landingpad { ptr, i32 }
          cleanup
  %291 = extractvalue { ptr, i32 } %290, 0
  store ptr %291, ptr %7, align 8
  %292 = extractvalue { ptr, i32 } %290, 1
  store i32 %292, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #6
  br label %293

293:                                              ; preds = %289, %260, %209, %158, %108, %63
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #6
  call void @_ZN5sc_dt9sc_signedD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %9) #6
  br label %294

294:                                              ; preds = %293, %59
  call void @llvm.lifetime.end.p0(i64 32, ptr %9) #6
  call void @_ZN5sc_dt9sc_signedD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %6) #6
  br label %295

295:                                              ; preds = %294, %55
  call void @llvm.lifetime.end.p0(i64 32, ptr %6) #6
  call void @_ZN5sc_dt9sc_signedD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %5) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %5) #6
  br label %296

296:                                              ; preds = %295
  %297 = load ptr, ptr %7, align 8
  %298 = load i32, ptr %8, align 4
  %299 = insertvalue { ptr, i32 } poison, ptr %297, 0
  %300 = insertvalue { ptr, i32 } %299, i32 %298, 1
  resume { ptr, i32 } %300
}

declare void @_ZN5sc_dt9sc_signedC1Ei(ptr noundef nonnull align 8 dereferenceable(32), i32 noundef) unnamed_addr #3

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(32) ptr @_ZN5sc_dt9sc_signedaSEi(ptr noundef nonnull align 8 dereferenceable(32), i32 noundef) #0 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8), i8 noundef signext) #2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZN5sc_dtlsERSoRKNS_9sc_signedE(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(32)) #2

declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) #3

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #0 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #2

declare void @_ZN5sc_dt9sc_signedppEi(ptr dead_on_unwind writable sret(%"class.sc_dt::sc_signed") align 8, ptr noundef nonnull align 8 dereferenceable(32), i32 noundef) #3

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN5sc_dt9sc_signedD2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #4 align 2

declare void @_ZN5sc_dt9sc_signedmmEi(ptr dead_on_unwind writable sret(%"class.sc_dt::sc_signed") align 8, ptr noundef nonnull align 8 dereferenceable(32), i32 noundef) #3

declare noundef nonnull align 8 dereferenceable(32) ptr @_ZN5sc_dt9sc_signedppEv(ptr noundef nonnull align 8 dereferenceable(32)) #3

declare noundef nonnull align 8 dereferenceable(32) ptr @_ZN5sc_dt9sc_signedmmEv(ptr noundef nonnull align 8 dereferenceable(32)) #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) #5

attributes #0 = { 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 #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 #3 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { 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 #5 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #6 = { 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 = !{!"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 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = distinct !{!13, !12}
!14 = distinct !{!14, !12}
!15 = distinct !{!15, !12}
!16 = !{i64 0, i64 4, !17}
!17 = !{!7, !7, i64 0}


; 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.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.sc_dt::sc_signed" = type { %"class.sc_dt::sc_value_base", i32, i32, i32, ptr }
%"class.sc_dt::sc_value_base" = type { ptr }
%struct.int9 = type { i16, [2 x i8] }

@_ZN7sc_core23SC_ID_ASSERTION_FAILED_E = external constant [0 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [109 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [9 x i8], align 1
@_ZSt4cout = external global %"class.std::basic_ostream", align 8

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z6crunchRN5sc_dt9sc_signedE5int31ii(ptr noundef nonnull align 8 dereferenceable(32), i32, i32 noundef, i32 noundef) local_unnamed_addr #0

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN5sc_dteqERKNS_9sc_signedEi(ptr noundef nonnull align 8 dereferenceable(32), i32 noundef) local_unnamed_addr #2

declare void @_ZN7sc_core17sc_report_handler6reportENS_11sc_severityEPKcS3_S3_i(i32 noundef, ptr noundef, ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #3

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_Z8fix_int9R4int9(ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #4

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @sc_main(i32 noundef %0, ptr nocapture noundef readnone %1) local_unnamed_addr #0 personality ptr @__gxx_personality_v0 {
  %3 = alloca %"class.sc_dt::sc_signed", align 8
  %4 = alloca %"class.sc_dt::sc_signed", align 8
  %5 = alloca %"class.sc_dt::sc_signed", align 8
  %6 = alloca %struct.int9, align 4
  %7 = alloca %"class.sc_dt::sc_signed", align 8
  %8 = alloca %"class.sc_dt::sc_signed", align 8
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %3) #5
  call void @_ZN5sc_dt9sc_signedC1Ei(ptr noundef nonnull align 8 dereferenceable(32) %3, i32 noundef 31)
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %4) #5
  invoke void @_ZN5sc_dt9sc_signedC1Ei(ptr noundef nonnull align 8 dereferenceable(32) %4, i32 noundef 9)
          to label %9 unwind label %31

9:                                                ; preds = %2
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %5) #5
  invoke void @_ZN5sc_dt9sc_signedC1Ei(ptr noundef nonnull align 8 dereferenceable(32) %5, i32 noundef 31)
          to label %10 unwind label %33

10:                                               ; preds = %9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #5
  %11 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZN5sc_dt9sc_signedaSEi(ptr noundef nonnull align 8 dereferenceable(32) %4, i32 noundef -256)
          to label %12 unwind label %35

12:                                               ; preds = %10
  %13 = load i16, ptr %6, align 4
  %14 = and i16 %13, -512
  %15 = or disjoint i16 %14, 256
  store i16 %15, ptr %6, align 4
  %16 = invoke noundef zeroext i1 @_ZN5sc_dteqERKNS_9sc_signedEi(ptr noundef nonnull align 8 dereferenceable(32) %4, i32 noundef -256)
          to label %17 unwind label %35

17:                                               ; preds = %12
  br i1 %16, label %19, label %18

18:                                               ; preds = %17
  invoke void @_ZN7sc_core17sc_report_handler6reportENS_11sc_severityEPKcS3_S3_i(i32 noundef 3, ptr noundef nonnull @_ZN7sc_core23SC_ID_ASSERTION_FAILED_E, ptr noundef nonnull @.str.3, ptr noundef nonnull @.str.2, i32 noundef 96)
          to label %19 unwind label %35

19:                                               ; preds = %18, %17
  %20 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN5sc_dtlsERSoRKNS_9sc_signedE(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull align 8 dereferenceable(32) %4)
          to label %21 unwind label %35

21:                                               ; preds = %19
  %22 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %20, i8 noundef signext 9)
          to label %23 unwind label %35

23:                                               ; preds = %21
  %24 = load i16, ptr %6, align 4
  %25 = shl i16 %24, 7
  %26 = ashr exact i16 %25, 7
  %27 = sext i16 %26 to i32
  %28 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %22, i32 noundef %27)
          to label %29 unwind label %35

29:                                               ; preds = %23
  %30 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %28, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %.preheader32 unwind label %35

31:                                               ; preds = %2
  %32 = landingpad { ptr, i32 }
          cleanup
  br label %165

33:                                               ; preds = %9
  %34 = landingpad { ptr, i32 }
          cleanup
  br label %164

35:                                               ; preds = %122, %29, %23, %21, %19, %18, %12, %10
  %36 = landingpad { ptr, i32 }
          cleanup
  br label %163

.preheader32:                                     ; preds = %29, %61
  %.02033 = phi i32 [ %62, %61 ], [ 0, %29 ]
  invoke void @_ZN5sc_dt9sc_signedppEi(ptr dead_on_unwind nonnull writable sret(%"class.sc_dt::sc_signed") align 8 %7, ptr noundef nonnull align 8 dereferenceable(32) %4, i32 noundef 0)
          to label %37 unwind label %63

37:                                               ; preds = %.preheader32
  call void @_ZN5sc_dt9sc_signedD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %7) #5
  %38 = load i16, ptr %6, align 4
  %narrow26 = add i16 %38, 1
  %39 = and i16 %narrow26, 511
  %40 = and i16 %38, -512
  %41 = or disjoint i16 %39, %40
  store i16 %41, ptr %6, align 4
  call void @_Z8fix_int9R4int9(ptr noundef nonnull align 4 dereferenceable(4) %6)
  %42 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN5sc_dtlsERSoRKNS_9sc_signedE(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull align 8 dereferenceable(32) %4)
          to label %43 unwind label %63

43:                                               ; preds = %37
  %44 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %42, i8 noundef signext 9)
          to label %45 unwind label %63

45:                                               ; preds = %43
  %46 = load i16, ptr %6, align 4
  %47 = shl i16 %46, 7
  %48 = ashr exact i16 %47, 7
  %49 = sext i16 %48 to i32
  %50 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %44, i32 noundef %49)
          to label %51 unwind label %63

51:                                               ; preds = %45
  %52 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %50, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %53 unwind label %63

53:                                               ; preds = %51
  %54 = load i16, ptr %6, align 4
  %55 = shl i16 %54, 7
  %56 = ashr exact i16 %55, 7
  %57 = sext i16 %56 to i32
  %58 = invoke noundef zeroext i1 @_ZN5sc_dteqERKNS_9sc_signedEi(ptr noundef nonnull align 8 dereferenceable(32) %4, i32 noundef %57)
          to label %59 unwind label %63

59:                                               ; preds = %53
  br i1 %58, label %61, label %60

60:                                               ; preds = %59
  invoke void @_ZN7sc_core17sc_report_handler6reportENS_11sc_severityEPKcS3_S3_i(i32 noundef 3, ptr noundef nonnull @_ZN7sc_core23SC_ID_ASSERTION_FAILED_E, ptr noundef nonnull @.str.3, ptr noundef nonnull @.str.2, i32 noundef 103)
          to label %61 unwind label %63

61:                                               ; preds = %59, %60
  %62 = add nuw nsw i32 %.02033, 1
  %exitcond.not = icmp eq i32 %62, 1000
  br i1 %exitcond.not, label %.preheader31, label %.preheader32, !llvm.loop !5

63:                                               ; preds = %60, %53, %51, %45, %43, %37, %.preheader32
  %64 = landingpad { ptr, i32 }
          cleanup
  br label %163

.preheader31:                                     ; preds = %61, %89
  %.02334 = phi i32 [ %90, %89 ], [ 0, %61 ]
  invoke void @_ZN5sc_dt9sc_signedmmEi(ptr dead_on_unwind nonnull writable sret(%"class.sc_dt::sc_signed") align 8 %8, ptr noundef nonnull align 8 dereferenceable(32) %4, i32 noundef 0)
          to label %65 unwind label %91

65:                                               ; preds = %.preheader31
  call void @_ZN5sc_dt9sc_signedD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %8) #5
  %66 = load i16, ptr %6, align 4
  %narrow25 = add i16 %66, 511
  %67 = and i16 %narrow25, 511
  %68 = and i16 %66, -512
  %69 = or disjoint i16 %67, %68
  store i16 %69, ptr %6, align 4
  call void @_Z8fix_int9R4int9(ptr noundef nonnull align 4 dereferenceable(4) %6)
  %70 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN5sc_dtlsERSoRKNS_9sc_signedE(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull align 8 dereferenceable(32) %4)
          to label %71 unwind label %91

71:                                               ; preds = %65
  %72 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %70, i8 noundef signext 9)
          to label %73 unwind label %91

73:                                               ; preds = %71
  %74 = load i16, ptr %6, align 4
  %75 = shl i16 %74, 7
  %76 = ashr exact i16 %75, 7
  %77 = sext i16 %76 to i32
  %78 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %72, i32 noundef %77)
          to label %79 unwind label %91

79:                                               ; preds = %73
  %80 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %78, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %81 unwind label %91

81:                                               ; preds = %79
  %82 = load i16, ptr %6, align 4
  %83 = shl i16 %82, 7
  %84 = ashr exact i16 %83, 7
  %85 = sext i16 %84 to i32
  %86 = invoke noundef zeroext i1 @_ZN5sc_dteqERKNS_9sc_signedEi(ptr noundef nonnull align 8 dereferenceable(32) %4, i32 noundef %85)
          to label %87 unwind label %91

87:                                               ; preds = %81
  br i1 %86, label %89, label %88

88:                                               ; preds = %87
  invoke void @_ZN7sc_core17sc_report_handler6reportENS_11sc_severityEPKcS3_S3_i(i32 noundef 3, ptr noundef nonnull @_ZN7sc_core23SC_ID_ASSERTION_FAILED_E, ptr noundef nonnull @.str.3, ptr noundef nonnull @.str.2, i32 noundef 110)
          to label %89 unwind label %91

89:                                               ; preds = %87, %88
  %90 = add nuw nsw i32 %.02334, 1
  %exitcond37.not = icmp eq i32 %90, 1000
  br i1 %exitcond37.not, label %.preheader30, label %.preheader31, !llvm.loop !7

91:                                               ; preds = %88, %81, %79, %73, %71, %65, %.preheader31
  %92 = landingpad { ptr, i32 }
          cleanup
  br label %163

.preheader30:                                     ; preds = %89, %118
  %.02235 = phi i32 [ %119, %118 ], [ 0, %89 ]
  %93 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZN5sc_dt9sc_signedppEv(ptr noundef nonnull align 8 dereferenceable(32) %4)
          to label %94 unwind label %120

94:                                               ; preds = %.preheader30
  %95 = load i16, ptr %6, align 4
  %narrow24 = add i16 %95, 1
  %96 = and i16 %narrow24, 511
  %97 = and i16 %95, -512
  %98 = or disjoint i16 %96, %97
  store i16 %98, ptr %6, align 4
  call void @_Z8fix_int9R4int9(ptr noundef nonnull align 4 dereferenceable(4) %6)
  %99 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN5sc_dtlsERSoRKNS_9sc_signedE(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull align 8 dereferenceable(32) %4)
          to label %100 unwind label %120

100:                                              ; preds = %94
  %101 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %99, i8 noundef signext 9)
          to label %102 unwind label %120

102:                                              ; preds = %100
  %103 = load i16, ptr %6, align 4
  %104 = shl i16 %103, 7
  %105 = ashr exact i16 %104, 7
  %106 = sext i16 %105 to i32
  %107 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %101, i32 noundef %106)
          to label %108 unwind label %120

108:                                              ; preds = %102
  %109 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %107, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %110 unwind label %120

110:                                              ; preds = %108
  %111 = load i16, ptr %6, align 4
  %112 = shl i16 %111, 7
  %113 = ashr exact i16 %112, 7
  %114 = sext i16 %113 to i32
  %115 = invoke noundef zeroext i1 @_ZN5sc_dteqERKNS_9sc_signedEi(ptr noundef nonnull align 8 dereferenceable(32) %4, i32 noundef %114)
          to label %116 unwind label %120

116:                                              ; preds = %110
  br i1 %115, label %118, label %117

117:                                              ; preds = %116
  invoke void @_ZN7sc_core17sc_report_handler6reportENS_11sc_severityEPKcS3_S3_i(i32 noundef 3, ptr noundef nonnull @_ZN7sc_core23SC_ID_ASSERTION_FAILED_E, ptr noundef nonnull @.str.3, ptr noundef nonnull @.str.2, i32 noundef 117)
          to label %118 unwind label %120

118:                                              ; preds = %116, %117
  %119 = add nuw nsw i32 %.02235, 1
  %exitcond38.not = icmp eq i32 %119, 1000
  br i1 %exitcond38.not, label %.preheader, label %.preheader30, !llvm.loop !8

120:                                              ; preds = %117, %110, %108, %102, %100, %94, %.preheader30
  %121 = landingpad { ptr, i32 }
          cleanup
  br label %163

122:                                              ; preds = %149
  %123 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZN5sc_dt9sc_signedaSEi(ptr noundef nonnull align 8 dereferenceable(32) %5, i32 noundef 129023)
          to label %153 unwind label %35

.preheader:                                       ; preds = %118, %149
  %.02136 = phi i32 [ %150, %149 ], [ 0, %118 ]
  %124 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZN5sc_dt9sc_signedmmEv(ptr noundef nonnull align 8 dereferenceable(32) %4)
          to label %125 unwind label %151

125:                                              ; preds = %.preheader
  %126 = load i16, ptr %6, align 4
  %narrow = add i16 %126, 511
  %127 = and i16 %narrow, 511
  %128 = and i16 %126, -512
  %129 = or disjoint i16 %127, %128
  store i16 %129, ptr %6, align 4
  call void @_Z8fix_int9R4int9(ptr noundef nonnull align 4 dereferenceable(4) %6)
  %130 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN5sc_dtlsERSoRKNS_9sc_signedE(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull align 8 dereferenceable(32) %4)
          to label %131 unwind label %151

131:                                              ; preds = %125
  %132 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %130, i8 noundef signext 9)
          to label %133 unwind label %151

133:                                              ; preds = %131
  %134 = load i16, ptr %6, align 4
  %135 = shl i16 %134, 7
  %136 = ashr exact i16 %135, 7
  %137 = sext i16 %136 to i32
  %138 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %132, i32 noundef %137)
          to label %139 unwind label %151

139:                                              ; preds = %133
  %140 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %138, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %141 unwind label %151

141:                                              ; preds = %139
  %142 = load i16, ptr %6, align 4
  %143 = shl i16 %142, 7
  %144 = ashr exact i16 %143, 7
  %145 = sext i16 %144 to i32
  %146 = invoke noundef zeroext i1 @_ZN5sc_dteqERKNS_9sc_signedEi(ptr noundef nonnull align 8 dereferenceable(32) %4, i32 noundef %145)
          to label %147 unwind label %151

147:                                              ; preds = %141
  br i1 %146, label %149, label %148

148:                                              ; preds = %147
  invoke void @_ZN7sc_core17sc_report_handler6reportENS_11sc_severityEPKcS3_S3_i(i32 noundef 3, ptr noundef nonnull @_ZN7sc_core23SC_ID_ASSERTION_FAILED_E, ptr noundef nonnull @.str.3, ptr noundef nonnull @.str.2, i32 noundef 124)
          to label %149 unwind label %151

149:                                              ; preds = %147, %148
  %150 = add nuw nsw i32 %.02136, 1
  %exitcond39.not = icmp eq i32 %150, 1000
  br i1 %exitcond39.not, label %122, label %.preheader, !llvm.loop !9

151:                                              ; preds = %148, %141, %139, %133, %131, %125, %.preheader
  %152 = landingpad { ptr, i32 }
          cleanup
  br label %163

153:                                              ; preds = %122
  invoke void @_Z6crunchRN5sc_dt9sc_signedE5int31ii(ptr noundef nonnull align 8 dereferenceable(32) %5, i32 129023, i32 noundef 491, i32 noundef 12089)
          to label %154 unwind label %161

154:                                              ; preds = %153
  %155 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZN5sc_dt9sc_signedaSEi(ptr noundef nonnull align 8 dereferenceable(32) %3, i32 noundef -129023)
          to label %156 unwind label %161

156:                                              ; preds = %154
  invoke void @_Z6crunchRN5sc_dt9sc_signedE5int31ii(ptr noundef nonnull align 8 dereferenceable(32) %3, i32 2147354625, i32 noundef 109, i32 noundef -426)
          to label %157 unwind label %161

157:                                              ; preds = %156
  %158 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZN5sc_dt9sc_signedaSEi(ptr noundef nonnull align 8 dereferenceable(32) %3, i32 noundef -1)
          to label %159 unwind label %161

159:                                              ; preds = %157
  invoke void @_Z6crunchRN5sc_dt9sc_signedE5int31ii(ptr noundef nonnull align 8 dereferenceable(32) %3, i32 2147483647, i32 noundef 30941, i32 noundef -1188)
          to label %160 unwind label %161

160:                                              ; preds = %159
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #5
  call void @_ZN5sc_dt9sc_signedD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %5) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %5) #5
  call void @_ZN5sc_dt9sc_signedD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %4) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %4) #5
  call void @_ZN5sc_dt9sc_signedD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %3) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %3) #5
  ret i32 0

161:                                              ; preds = %159, %157, %156, %154, %153
  %162 = landingpad { ptr, i32 }
          cleanup
  br label %163

163:                                              ; preds = %161, %151, %120, %91, %63, %35
  %.pn = phi { ptr, i32 } [ %64, %63 ], [ %92, %91 ], [ %121, %120 ], [ %152, %151 ], [ %162, %161 ], [ %36, %35 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #5
  call void @_ZN5sc_dt9sc_signedD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %5) #5
  br label %164

164:                                              ; preds = %163, %33
  %.pn.pn = phi { ptr, i32 } [ %.pn, %163 ], [ %34, %33 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %5) #5
  call void @_ZN5sc_dt9sc_signedD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %4) #5
  br label %165

165:                                              ; preds = %164, %31
  %.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn, %164 ], [ %32, %31 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %4) #5
  call void @_ZN5sc_dt9sc_signedD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %3) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %3) #5
  resume { ptr, i32 } %.pn.pn.pn
}

declare void @_ZN5sc_dt9sc_signedC1Ei(ptr noundef nonnull align 8 dereferenceable(32), i32 noundef) unnamed_addr #3

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(32) ptr @_ZN5sc_dt9sc_signedaSEi(ptr noundef nonnull align 8 dereferenceable(32), i32 noundef) local_unnamed_addr #0 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8), i8 noundef signext) local_unnamed_addr #2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZN5sc_dtlsERSoRKNS_9sc_signedE(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #2

declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) local_unnamed_addr #0 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #2

declare void @_ZN5sc_dt9sc_signedppEi(ptr dead_on_unwind writable sret(%"class.sc_dt::sc_signed") align 8, ptr noundef nonnull align 8 dereferenceable(32), i32 noundef) local_unnamed_addr #3

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN5sc_dt9sc_signedD2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #4 align 2

declare void @_ZN5sc_dt9sc_signedmmEi(ptr dead_on_unwind writable sret(%"class.sc_dt::sc_signed") align 8, ptr noundef nonnull align 8 dereferenceable(32), i32 noundef) local_unnamed_addr #3

declare noundef nonnull align 8 dereferenceable(32) ptr @_ZN5sc_dt9sc_signedppEv(ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #3

declare noundef nonnull align 8 dereferenceable(32) ptr @_ZN5sc_dt9sc_signedmmEv(ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #3

attributes #0 = { 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 #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 #3 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { 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 #5 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = distinct !{!5, !6}
!6 = !{!"llvm.loop.mustprogress"}
!7 = distinct !{!7, !6}
!8 = distinct !{!8, !6}
!9 = distinct !{!9, !6}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,ReassociatePass,SROAPass,SimplifyCFGPass