; LLVM IR from gem5/gem5 :: ext/systemc/src/sysc/datatypes/fx/scfx_rep.ll (ZNK5sc_dt8scfx_rep9to_doubleEv)

; 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.sc_dt::scfx_ieee_double" = type { %"union.sc_dt::ieee_double" }
%"union.sc_dt::ieee_double" = type { double }
%"class.sc_dt::scfx_rep" = type <{ %"class.sc_dt::scfx_mant", i32, i32, i32, i32, i32, i8, [3 x i8] }>
%"class.sc_dt::scfx_mant" = type <{ ptr, i32, [4 x i8] }>

; 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: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZN5sc_dt13scfx_find_msbEm(i64 noundef) #1

; Function Attrs: mustprogress uwtable
define dso_local noundef double @_ZNK5sc_dt8scfx_rep9to_doubleEv(ptr noundef nonnull align 8 dereferenceable(37) %0) #2 align 2 {
  %2 = alloca double, align 8
  %3 = alloca ptr, align 8
  %4 = alloca %"class.sc_dt::scfx_ieee_double", align 8
  %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 double, align 8
  store ptr %0, ptr %3, align 8, !tbaa !5
  %14 = load ptr, ptr %3, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #5
  call void @_ZN5sc_dt16scfx_ieee_doubleC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %4)
  %15 = call noundef zeroext i1 @_ZNK5sc_dt8scfx_rep6is_nanEv(ptr noundef nonnull align 8 dereferenceable(37) %14)
  br i1 %15, label %16, label %18

16:                                               ; preds = %1
  call void @_ZN5sc_dt16scfx_ieee_double7set_nanEv(ptr noundef nonnull align 8 dereferenceable(8) %4)
  %17 = call noundef double @_ZNK5sc_dt16scfx_ieee_doublecvdEv(ptr noundef nonnull align 8 dereferenceable(8) %4)
  store double %17, ptr %2, align 8
  store i32 1, ptr %5, align 4
  br label %259

18:                                               ; preds = %1
  %19 = call noundef zeroext i1 @_ZNK5sc_dt8scfx_rep6is_infEv(ptr noundef nonnull align 8 dereferenceable(37) %14)
  br i1 %19, label %20, label %26

20:                                               ; preds = %18
  call void @_ZN5sc_dt16scfx_ieee_double7set_infEv(ptr noundef nonnull align 8 dereferenceable(8) %4)
  %21 = getelementptr inbounds %"class.sc_dt::scfx_rep", ptr %14, i32 0, i32 2
  %22 = load i32, ptr %21, align 4, !tbaa !9
  %23 = icmp slt i32 %22, 0
  %24 = zext i1 %23 to i32
  call void @_ZN5sc_dt16scfx_ieee_double8negativeEj(ptr noundef nonnull align 8 dereferenceable(8) %4, i32 noundef %24)
  %25 = call noundef double @_ZNK5sc_dt16scfx_ieee_doublecvdEv(ptr noundef nonnull align 8 dereferenceable(8) %4)
  store double %25, ptr %2, align 8
  store i32 1, ptr %5, align 4
  br label %259

26:                                               ; preds = %18
  %27 = call noundef zeroext i1 @_ZNK5sc_dt8scfx_rep7is_zeroEv(ptr noundef nonnull align 8 dereferenceable(37) %14)
  br i1 %27, label %28, label %35

28:                                               ; preds = %26
  %29 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN5sc_dt16scfx_ieee_doubleaSEd(ptr noundef nonnull align 8 dereferenceable(8) %4, double noundef 0.000000e+00)
  %30 = getelementptr inbounds %"class.sc_dt::scfx_rep", ptr %14, i32 0, i32 2
  %31 = load i32, ptr %30, align 4, !tbaa !9
  %32 = icmp slt i32 %31, 0
  %33 = zext i1 %32 to i32
  call void @_ZN5sc_dt16scfx_ieee_double8negativeEj(ptr noundef nonnull align 8 dereferenceable(8) %4, i32 noundef %33)
  %34 = call noundef double @_ZNK5sc_dt16scfx_ieee_doublecvdEv(ptr noundef nonnull align 8 dereferenceable(8) %4)
  store double %34, ptr %2, align 8
  store i32 1, ptr %5, align 4
  br label %259

35:                                               ; preds = %26
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #5
  %36 = getelementptr inbounds %"class.sc_dt::scfx_rep", ptr %14, i32 0, i32 0
  %37 = getelementptr inbounds %"class.sc_dt::scfx_rep", ptr %14, i32 0, i32 4
  %38 = load i32, ptr %37, align 4, !tbaa !15
  %39 = call noundef i32 @_ZNK5sc_dt9scfx_mantixEi(ptr noundef nonnull align 8 dereferenceable(12) %36, i32 noundef %38)
  %40 = zext i32 %39 to i64
  %41 = call noundef i32 @_ZN5sc_dt13scfx_find_msbEm(i64 noundef %40)
  store i32 %41, ptr %6, align 4, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #5
  %42 = getelementptr inbounds %"class.sc_dt::scfx_rep", ptr %14, i32 0, i32 4
  %43 = load i32, ptr %42, align 4, !tbaa !15
  %44 = getelementptr inbounds %"class.sc_dt::scfx_rep", ptr %14, i32 0, i32 1
  %45 = load i32, ptr %44, align 8, !tbaa !17
  %46 = sub nsw i32 %43, %45
  %47 = mul nsw i32 %46, 32
  %48 = load i32, ptr %6, align 4, !tbaa !16
  %49 = add nsw i32 %47, %48
  store i32 %49, ptr %7, align 4, !tbaa !16
  %50 = load i32, ptr %7, align 4, !tbaa !16
  %51 = icmp sgt i32 %50, 1023
  br i1 %51, label %52, label %58

52:                                               ; preds = %35
  call void @_ZN5sc_dt16scfx_ieee_double7set_infEv(ptr noundef nonnull align 8 dereferenceable(8) %4)
  %53 = getelementptr inbounds %"class.sc_dt::scfx_rep", ptr %14, i32 0, i32 2
  %54 = load i32, ptr %53, align 4, !tbaa !9
  %55 = icmp slt i32 %54, 0
  %56 = zext i1 %55 to i32
  call void @_ZN5sc_dt16scfx_ieee_double8negativeEj(ptr noundef nonnull align 8 dereferenceable(8) %4, i32 noundef %56)
  %57 = call noundef double @_ZNK5sc_dt16scfx_ieee_doublecvdEv(ptr noundef nonnull align 8 dereferenceable(8) %4)
  store double %57, ptr %2, align 8
  store i32 1, ptr %5, align 4
  br label %258

58:                                               ; preds = %35
  %59 = load i32, ptr %7, align 4, !tbaa !16
  %60 = icmp slt i32 %59, -1074
  br i1 %60, label %61, label %64

61:                                               ; preds = %58
  %62 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN5sc_dt16scfx_ieee_doubleaSEd(ptr noundef nonnull align 8 dereferenceable(8) %4, double noundef 0.000000e+00)
  %63 = call noundef double @_ZNK5sc_dt16scfx_ieee_doublecvdEv(ptr noundef nonnull align 8 dereferenceable(8) %4)
  store double %63, ptr %2, align 8
  store i32 1, ptr %5, align 4
  br label %258

64:                                               ; preds = %58
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #5
  %65 = load i32, ptr %6, align 4, !tbaa !16
  %66 = sub nsw i32 20, %65
  store i32 %66, ptr %8, align 4, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #5
  store i32 0, ptr %10, align 4, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #5
  store i32 0, ptr %11, align 4, !tbaa !16
  %67 = load i32, ptr %8, align 4, !tbaa !16
  %68 = icmp eq i32 %67, 0
  br i1 %68, label %69, label %101

69:                                               ; preds = %64
  %70 = getelementptr inbounds %"class.sc_dt::scfx_rep", ptr %14, i32 0, i32 0
  %71 = getelementptr inbounds %"class.sc_dt::scfx_rep", ptr %14, i32 0, i32 4
  %72 = load i32, ptr %71, align 4, !tbaa !15
  %73 = call noundef i32 @_ZNK5sc_dt9scfx_mantixEi(ptr noundef nonnull align 8 dereferenceable(12) %70, i32 noundef %72)
  %74 = and i32 %73, -1048577
  store i32 %74, ptr %9, align 4, !tbaa !16
  %75 = getelementptr inbounds %"class.sc_dt::scfx_rep", ptr %14, i32 0, i32 4
  %76 = load i32, ptr %75, align 4, !tbaa !15
  %77 = getelementptr inbounds %"class.sc_dt::scfx_rep", ptr %14, i32 0, i32 5
  %78 = load i32, ptr %77, align 8, !tbaa !18
  %79 = icmp sgt i32 %76, %78
  br i1 %79, label %80, label %100

80:                                               ; preds = %69
  %81 = getelementptr inbounds %"class.sc_dt::scfx_rep", ptr %14, i32 0, i32 0
  %82 = getelementptr inbounds %"class.sc_dt::scfx_rep", ptr %14, i32 0, i32 4
  %83 = load i32, ptr %82, align 4, !tbaa !15
  %84 = sub nsw i32 %83, 1
  %85 = call noundef i32 @_ZNK5sc_dt9scfx_mantixEi(ptr noundef nonnull align 8 dereferenceable(12) %81, i32 noundef %84)
  store i32 %85, ptr %10, align 4, !tbaa !16
  %86 = getelementptr inbounds %"class.sc_dt::scfx_rep", ptr %14, i32 0, i32 4
  %87 = load i32, ptr %86, align 4, !tbaa !15
  %88 = sub nsw i32 %87, 1
  %89 = getelementptr inbounds %"class.sc_dt::scfx_rep", ptr %14, i32 0, i32 5
  %90 = load i32, ptr %89, align 8, !tbaa !18
  %91 = icmp sgt i32 %88, %90
  br i1 %91, label %92, label %99

92:                                               ; preds = %80
  %93 = getelementptr inbounds %"class.sc_dt::scfx_rep", ptr %14, i32 0, i32 0
  %94 = getelementptr inbounds %"class.sc_dt::scfx_rep", ptr %14, i32 0, i32 4
  %95 = load i32, ptr %94, align 4, !tbaa !15
  %96 = sub nsw i32 %95, 2
  %97 = call noundef i32 @_ZNK5sc_dt9scfx_mantixEi(ptr noundef nonnull align 8 dereferenceable(12) %93, i32 noundef %96)
  %98 = lshr i32 %97, 31
  store i32 %98, ptr %11, align 4, !tbaa !16
  br label %99

99:                                               ; preds = %92, %80
  br label %100

100:                                              ; preds = %99, %69
  br label %208

101:                                              ; preds = %64
  %102 = load i32, ptr %8, align 4, !tbaa !16
  %103 = icmp slt i32 %102, 0
  br i1 %103, label %104, label %147

104:                                              ; preds = %101
  %105 = getelementptr inbounds %"class.sc_dt::scfx_rep", ptr %14, i32 0, i32 0
  %106 = getelementptr inbounds %"class.sc_dt::scfx_rep", ptr %14, i32 0, i32 4
  %107 = load i32, ptr %106, align 4, !tbaa !15
  %108 = call noundef i32 @_ZNK5sc_dt9scfx_mantixEi(ptr noundef nonnull align 8 dereferenceable(12) %105, i32 noundef %107)
  %109 = load i32, ptr %8, align 4, !tbaa !16
  %110 = sub nsw i32 0, %109
  %111 = lshr i32 %108, %110
  %112 = and i32 %111, -1048577
  store i32 %112, ptr %9, align 4, !tbaa !16
  %113 = getelementptr inbounds %"class.sc_dt::scfx_rep", ptr %14, i32 0, i32 0
  %114 = getelementptr inbounds %"class.sc_dt::scfx_rep", ptr %14, i32 0, i32 4
  %115 = load i32, ptr %114, align 4, !tbaa !15
  %116 = call noundef i32 @_ZNK5sc_dt9scfx_mantixEi(ptr noundef nonnull align 8 dereferenceable(12) %113, i32 noundef %115)
  %117 = load i32, ptr %8, align 4, !tbaa !16
  %118 = add nsw i32 32, %117
  %119 = shl i32 %116, %118
  store i32 %119, ptr %10, align 4, !tbaa !16
  %120 = getelementptr inbounds %"class.sc_dt::scfx_rep", ptr %14, i32 0, i32 4
  %121 = load i32, ptr %120, align 4, !tbaa !15
  %122 = getelementptr inbounds %"class.sc_dt::scfx_rep", ptr %14, i32 0, i32 5
  %123 = load i32, ptr %122, align 8, !tbaa !18
  %124 = icmp sgt i32 %121, %123
  br i1 %124, label %125, label %146

125:                                              ; preds = %104
  %126 = getelementptr inbounds %"class.sc_dt::scfx_rep", ptr %14, i32 0, i32 0
  %127 = getelementptr inbounds %"class.sc_dt::scfx_rep", ptr %14, i32 0, i32 4
  %128 = load i32, ptr %127, align 4, !tbaa !15
  %129 = sub nsw i32 %128, 1
  %130 = call noundef i32 @_ZNK5sc_dt9scfx_mantixEi(ptr noundef nonnull align 8 dereferenceable(12) %126, i32 noundef %129)
  %131 = load i32, ptr %8, align 4, !tbaa !16
  %132 = sub nsw i32 0, %131
  %133 = lshr i32 %130, %132
  %134 = load i32, ptr %10, align 4, !tbaa !16
  %135 = or i32 %134, %133
  store i32 %135, ptr %10, align 4, !tbaa !16
  %136 = getelementptr inbounds %"class.sc_dt::scfx_rep", ptr %14, i32 0, i32 0
  %137 = getelementptr inbounds %"class.sc_dt::scfx_rep", ptr %14, i32 0, i32 4
  %138 = load i32, ptr %137, align 4, !tbaa !15
  %139 = sub nsw i32 %138, 1
  %140 = call noundef i32 @_ZNK5sc_dt9scfx_mantixEi(ptr noundef nonnull align 8 dereferenceable(12) %136, i32 noundef %139)
  %141 = load i32, ptr %8, align 4, !tbaa !16
  %142 = sub nsw i32 0, %141
  %143 = sub nsw i32 %142, 1
  %144 = lshr i32 %140, %143
  %145 = and i32 %144, 1
  store i32 %145, ptr %11, align 4, !tbaa !16
  br label %146

146:                                              ; preds = %125, %104
  br label %207

147:                                              ; preds = %101
  %148 = getelementptr inbounds %"class.sc_dt::scfx_rep", ptr %14, i32 0, i32 0
  %149 = getelementptr inbounds %"class.sc_dt::scfx_rep", ptr %14, i32 0, i32 4
  %150 = load i32, ptr %149, align 4, !tbaa !15
  %151 = call noundef i32 @_ZNK5sc_dt9scfx_mantixEi(ptr noundef nonnull align 8 dereferenceable(12) %148, i32 noundef %150)
  %152 = load i32, ptr %8, align 4, !tbaa !16
  %153 = shl i32 %151, %152
  %154 = and i32 %153, -1048577
  store i32 %154, ptr %9, align 4, !tbaa !16
  %155 = getelementptr inbounds %"class.sc_dt::scfx_rep", ptr %14, i32 0, i32 4
  %156 = load i32, ptr %155, align 4, !tbaa !15
  %157 = getelementptr inbounds %"class.sc_dt::scfx_rep", ptr %14, i32 0, i32 5
  %158 = load i32, ptr %157, align 8, !tbaa !18
  %159 = icmp sgt i32 %156, %158
  br i1 %159, label %160, label %206

160:                                              ; preds = %147
  %161 = getelementptr inbounds %"class.sc_dt::scfx_rep", ptr %14, i32 0, i32 0
  %162 = getelementptr inbounds %"class.sc_dt::scfx_rep", ptr %14, i32 0, i32 4
  %163 = load i32, ptr %162, align 4, !tbaa !15
  %164 = sub nsw i32 %163, 1
  %165 = call noundef i32 @_ZNK5sc_dt9scfx_mantixEi(ptr noundef nonnull align 8 dereferenceable(12) %161, i32 noundef %164)
  %166 = load i32, ptr %8, align 4, !tbaa !16
  %167 = sub nsw i32 32, %166
  %168 = lshr i32 %165, %167
  %169 = load i32, ptr %9, align 4, !tbaa !16
  %170 = or i32 %169, %168
  store i32 %170, ptr %9, align 4, !tbaa !16
  %171 = getelementptr inbounds %"class.sc_dt::scfx_rep", ptr %14, i32 0, i32 0
  %172 = getelementptr inbounds %"class.sc_dt::scfx_rep", ptr %14, i32 0, i32 4
  %173 = load i32, ptr %172, align 4, !tbaa !15
  %174 = sub nsw i32 %173, 1
  %175 = call noundef i32 @_ZNK5sc_dt9scfx_mantixEi(ptr noundef nonnull align 8 dereferenceable(12) %171, i32 noundef %174)
  %176 = load i32, ptr %8, align 4, !tbaa !16
  %177 = shl i32 %175, %176
  store i32 %177, ptr %10, align 4, !tbaa !16
  %178 = getelementptr inbounds %"class.sc_dt::scfx_rep", ptr %14, i32 0, i32 4
  %179 = load i32, ptr %178, align 4, !tbaa !15
  %180 = sub nsw i32 %179, 1
  %181 = getelementptr inbounds %"class.sc_dt::scfx_rep", ptr %14, i32 0, i32 5
  %182 = load i32, ptr %181, align 8, !tbaa !18
  %183 = icmp sgt i32 %180, %182
  br i1 %183, label %184, label %205

184:                                              ; preds = %160
  %185 = getelementptr inbounds %"class.sc_dt::scfx_rep", ptr %14, i32 0, i32 0
  %186 = getelementptr inbounds %"class.sc_dt::scfx_rep", ptr %14, i32 0, i32 4
  %187 = load i32, ptr %186, align 4, !tbaa !15
  %188 = sub nsw i32 %187, 2
  %189 = call noundef i32 @_ZNK5sc_dt9scfx_mantixEi(ptr noundef nonnull align 8 dereferenceable(12) %185, i32 noundef %188)
  %190 = load i32, ptr %8, align 4, !tbaa !16
  %191 = sub nsw i32 32, %190
  %192 = lshr i32 %189, %191
  %193 = load i32, ptr %10, align 4, !tbaa !16
  %194 = or i32 %193, %192
  store i32 %194, ptr %10, align 4, !tbaa !16
  %195 = getelementptr inbounds %"class.sc_dt::scfx_rep", ptr %14, i32 0, i32 0
  %196 = getelementptr inbounds %"class.sc_dt::scfx_rep", ptr %14, i32 0, i32 4
  %197 = load i32, ptr %196, align 4, !tbaa !15
  %198 = sub nsw i32 %197, 2
  %199 = call noundef i32 @_ZNK5sc_dt9scfx_mantixEi(ptr noundef nonnull align 8 dereferenceable(12) %195, i32 noundef %198)
  %200 = load i32, ptr %8, align 4, !tbaa !16
  %201 = sub nsw i32 32, %200
  %202 = sub nsw i32 %201, 1
  %203 = lshr i32 %199, %202
  %204 = and i32 %203, 1
  store i32 %204, ptr %11, align 4, !tbaa !16
  br label %205

205:                                              ; preds = %184, %160
  br label %206

206:                                              ; preds = %205, %147
  br label %207

207:                                              ; preds = %206, %146
  br label %208

208:                                              ; preds = %207, %100
  %209 = load i32, ptr %7, align 4, !tbaa !16
  %210 = icmp slt i32 %209, -1022
  br i1 %210, label %211, label %236

211:                                              ; preds = %208
  %212 = load i32, ptr %9, align 4, !tbaa !16
  %213 = or i32 %212, 1048576
  store i32 %213, ptr %9, align 4, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #5
  %214 = load i32, ptr %7, align 4, !tbaa !16
  %215 = sub nsw i32 -1022, %214
  store i32 %215, ptr %12, align 4, !tbaa !16
  %216 = load i32, ptr %12, align 4, !tbaa !16
  %217 = icmp slt i32 %216, 32
  br i1 %217, label %218, label %230

218:                                              ; preds = %211
  %219 = load i32, ptr %10, align 4, !tbaa !16
  %220 = load i32, ptr %12, align 4, !tbaa !16
  %221 = lshr i32 %219, %220
  %222 = load i32, ptr %9, align 4, !tbaa !16
  %223 = load i32, ptr %12, align 4, !tbaa !16
  %224 = sub nsw i32 32, %223
  %225 = shl i32 %222, %224
  %226 = or i32 %221, %225
  store i32 %226, ptr %10, align 4, !tbaa !16
  %227 = load i32, ptr %9, align 4, !tbaa !16
  %228 = load i32, ptr %12, align 4, !tbaa !16
  %229 = lshr i32 %227, %228
  store i32 %229, ptr %9, align 4, !tbaa !16
  br label %235

230:                                              ; preds = %211
  %231 = load i32, ptr %9, align 4, !tbaa !16
  %232 = load i32, ptr %12, align 4, !tbaa !16
  %233 = sub nsw i32 %232, 32
  %234 = lshr i32 %231, %233
  store i32 %234, ptr %10, align 4, !tbaa !16
  store i32 0, ptr %9, align 4, !tbaa !16
  br label %235

235:                                              ; preds = %230, %218
  store i32 0, ptr %11, align 4, !tbaa !16
  store i32 -1023, ptr %7, align 4, !tbaa !16
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #5
  br label %236

236:                                              ; preds = %235, %208
  %237 = load i32, ptr %9, align 4, !tbaa !16
  call void @_ZN5sc_dt16scfx_ieee_double9mantissa0Ej(ptr noundef nonnull align 8 dereferenceable(8) %4, i32 noundef %237)
  %238 = load i32, ptr %10, align 4, !tbaa !16
  call void @_ZN5sc_dt16scfx_ieee_double9mantissa1Ej(ptr noundef nonnull align 8 dereferenceable(8) %4, i32 noundef %238)
  %239 = load i32, ptr %7, align 4, !tbaa !16
  call void @_ZN5sc_dt16scfx_ieee_double8exponentEi(ptr noundef nonnull align 8 dereferenceable(8) %4, i32 noundef %239)
  %240 = getelementptr inbounds %"class.sc_dt::scfx_rep", ptr %14, i32 0, i32 2
  %241 = load i32, ptr %240, align 4, !tbaa !9
  %242 = icmp slt i32 %241, 0
  %243 = zext i1 %242 to i32
  call void @_ZN5sc_dt16scfx_ieee_double8negativeEj(ptr noundef nonnull align 8 dereferenceable(8) %4, i32 noundef %243)
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #5
  %244 = call noundef double @_ZNK5sc_dt16scfx_ieee_doublecvdEv(ptr noundef nonnull align 8 dereferenceable(8) %4)
  store double %244, ptr %13, align 8, !tbaa !19
  %245 = load i32, ptr %11, align 4, !tbaa !16
  %246 = icmp ne i32 %245, 0
  br i1 %246, label %247, label %256

247:                                              ; preds = %236
  %248 = getelementptr inbounds %"class.sc_dt::scfx_rep", ptr %14, i32 0, i32 2
  %249 = load i32, ptr %248, align 4, !tbaa !9
  %250 = sitofp i32 %249 to double
  %251 = load i32, ptr %7, align 4, !tbaa !16
  %252 = sub i32 %251, 52
  %253 = call noundef double @_ZN5sc_dt9scfx_pow2Ei(i32 noundef %252)
  %254 = load double, ptr %13, align 8, !tbaa !19
  %255 = call double @llvm.fmuladd.f64(double %250, double %253, double %254)
  store double %255, ptr %13, align 8, !tbaa !19
  br label %256

256:                                              ; preds = %247, %236
  %257 = load double, ptr %13, align 8, !tbaa !19
  store double %257, ptr %2, align 8
  store i32 1, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #5
  br label %258

258:                                              ; preds = %256, %61, %52
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #5
  br label %259

259:                                              ; preds = %258, %28, %20, %16
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #5
  %260 = load double, ptr %2, align 8
  ret double %260
}

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN5sc_dt16scfx_ieee_doubleC2Ev(ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #1 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK5sc_dt8scfx_rep6is_nanEv(ptr noundef nonnull align 8 dereferenceable(37)) #1 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN5sc_dt16scfx_ieee_double7set_nanEv(ptr noundef nonnull align 8 dereferenceable(8)) #3 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef double @_ZNK5sc_dt16scfx_ieee_doublecvdEv(ptr noundef nonnull align 8 dereferenceable(8)) #1 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK5sc_dt8scfx_rep6is_infEv(ptr noundef nonnull align 8 dereferenceable(37)) #1 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN5sc_dt16scfx_ieee_double7set_infEv(ptr noundef nonnull align 8 dereferenceable(8)) #3 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN5sc_dt16scfx_ieee_double8negativeEj(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) #1 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZNK5sc_dt8scfx_rep7is_zeroEv(ptr noundef nonnull align 8 dereferenceable(37)) #3 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZN5sc_dt16scfx_ieee_doubleaSEd(ptr noundef nonnull align 8 dereferenceable(8), double noundef) #1 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK5sc_dt9scfx_mantixEi(ptr noundef nonnull align 8 dereferenceable(12), i32 noundef) #1 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN5sc_dt16scfx_ieee_double9mantissa0Ej(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) #1 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN5sc_dt16scfx_ieee_double9mantissa1Ej(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) #1 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN5sc_dt16scfx_ieee_double8exponentEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) #1 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef double @_ZN5sc_dt9scfx_pow2Ei(i32 noundef) #3

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #4

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { inlinehint 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 = { 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 #4 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !12, i64 20}
!10 = !{!"_ZTSN5sc_dt8scfx_repE", !11, i64 0, !12, i64 16, !12, i64 20, !13, i64 24, !12, i64 28, !12, i64 32, !14, i64 36}
!11 = !{!"_ZTSN5sc_dt9scfx_mantE", !6, i64 0, !12, i64 8}
!12 = !{!"int", !7, i64 0}
!13 = !{!"_ZTSN5sc_dt8scfx_rep5stateE", !7, i64 0}
!14 = !{!"bool", !7, i64 0}
!15 = !{!10, !12, i64 28}
!16 = !{!12, !12, i64 0}
!17 = !{!10, !12, i64 16}
!18 = !{!10, !12, i64 32}
!19 = !{!20, !20, i64 0}
!20 = !{!"double", !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.sc_dt::scfx_ieee_double" = type { %"union.sc_dt::ieee_double" }
%"union.sc_dt::ieee_double" = type { double }

; 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: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZN5sc_dt13scfx_find_msbEm(i64 noundef) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
define dso_local noundef double @_ZNK5sc_dt8scfx_rep9to_doubleEv(ptr noundef nonnull align 8 dereferenceable(37) %0) local_unnamed_addr #2 align 2 {
  %2 = alloca %"class.sc_dt::scfx_ieee_double", align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #5
  call void @_ZN5sc_dt16scfx_ieee_doubleC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %2)
  %3 = call noundef zeroext i1 @_ZNK5sc_dt8scfx_rep6is_nanEv(ptr noundef nonnull align 8 dereferenceable(37) %0)
  br i1 %3, label %4, label %6

4:                                                ; preds = %1
  call void @_ZN5sc_dt16scfx_ieee_double7set_nanEv(ptr noundef nonnull align 8 dereferenceable(8) %2)
  %5 = call noundef double @_ZNK5sc_dt16scfx_ieee_doublecvdEv(ptr noundef nonnull align 8 dereferenceable(8) %2)
  br label %143

6:                                                ; preds = %1
  %7 = call noundef zeroext i1 @_ZNK5sc_dt8scfx_rep6is_infEv(ptr noundef nonnull align 8 dereferenceable(37) %0)
  br i1 %7, label %8, label %12

8:                                                ; preds = %6
  call void @_ZN5sc_dt16scfx_ieee_double7set_infEv(ptr noundef nonnull align 8 dereferenceable(8) %2)
  %9 = getelementptr inbounds i8, ptr %0, i64 20
  %10 = load i32, ptr %9, align 4, !tbaa !5
  %.lobit56 = lshr i32 %10, 31
  call void @_ZN5sc_dt16scfx_ieee_double8negativeEj(ptr noundef nonnull align 8 dereferenceable(8) %2, i32 noundef %.lobit56)
  %11 = call noundef double @_ZNK5sc_dt16scfx_ieee_doublecvdEv(ptr noundef nonnull align 8 dereferenceable(8) %2)
  br label %143

12:                                               ; preds = %6
  %13 = call noundef zeroext i1 @_ZNK5sc_dt8scfx_rep7is_zeroEv(ptr noundef nonnull align 8 dereferenceable(37) %0)
  br i1 %13, label %14, label %19

14:                                               ; preds = %12
  %15 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN5sc_dt16scfx_ieee_doubleaSEd(ptr noundef nonnull align 8 dereferenceable(8) %2, double noundef 0.000000e+00)
  %16 = getelementptr inbounds i8, ptr %0, i64 20
  %17 = load i32, ptr %16, align 4, !tbaa !5
  %.lobit55 = lshr i32 %17, 31
  call void @_ZN5sc_dt16scfx_ieee_double8negativeEj(ptr noundef nonnull align 8 dereferenceable(8) %2, i32 noundef %.lobit55)
  %18 = call noundef double @_ZNK5sc_dt16scfx_ieee_doublecvdEv(ptr noundef nonnull align 8 dereferenceable(8) %2)
  br label %143

19:                                               ; preds = %12
  %20 = getelementptr inbounds i8, ptr %0, i64 28
  %21 = load i32, ptr %20, align 4, !tbaa !14
  %22 = call noundef i32 @_ZNK5sc_dt9scfx_mantixEi(ptr noundef nonnull align 8 dereferenceable(12) %0, i32 noundef %21)
  %23 = zext i32 %22 to i64
  %24 = call noundef i32 @_ZN5sc_dt13scfx_find_msbEm(i64 noundef %23)
  %25 = load i32, ptr %20, align 4, !tbaa !14
  %26 = getelementptr inbounds i8, ptr %0, i64 16
  %27 = load i32, ptr %26, align 8, !tbaa !15
  %28 = sub nsw i32 %25, %27
  %29 = shl nsw i32 %28, 5
  %30 = add nsw i32 %29, %24
  %31 = icmp sgt i32 %30, 1023
  br i1 %31, label %32, label %36

32:                                               ; preds = %19
  call void @_ZN5sc_dt16scfx_ieee_double7set_infEv(ptr noundef nonnull align 8 dereferenceable(8) %2)
  %33 = getelementptr inbounds i8, ptr %0, i64 20
  %34 = load i32, ptr %33, align 4, !tbaa !5
  %.lobit54 = lshr i32 %34, 31
  call void @_ZN5sc_dt16scfx_ieee_double8negativeEj(ptr noundef nonnull align 8 dereferenceable(8) %2, i32 noundef %.lobit54)
  %35 = call noundef double @_ZNK5sc_dt16scfx_ieee_doublecvdEv(ptr noundef nonnull align 8 dereferenceable(8) %2)
  br label %143

36:                                               ; preds = %19
  %37 = icmp slt i32 %30, -1074
  br i1 %37, label %38, label %41

38:                                               ; preds = %36
  %39 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN5sc_dt16scfx_ieee_doubleaSEd(ptr noundef nonnull align 8 dereferenceable(8) %2, double noundef 0.000000e+00)
  %40 = call noundef double @_ZNK5sc_dt16scfx_ieee_doublecvdEv(ptr noundef nonnull align 8 dereferenceable(8) %2)
  br label %143

41:                                               ; preds = %36
  %.neg = add nsw i32 %24, -20
  %42 = sub nsw i32 20, %24
  %43 = icmp eq i32 %24, 20
  br i1 %43, label %44, label %62

44:                                               ; preds = %41
  %45 = call noundef i32 @_ZNK5sc_dt9scfx_mantixEi(ptr noundef nonnull align 8 dereferenceable(12) %0, i32 noundef %25)
  %46 = and i32 %45, -1048577
  %47 = load i32, ptr %20, align 4, !tbaa !14
  %48 = getelementptr inbounds i8, ptr %0, i64 32
  %49 = load i32, ptr %48, align 8, !tbaa !16
  %50 = icmp sgt i32 %47, %49
  br i1 %50, label %51, label %118

51:                                               ; preds = %44
  %52 = add nsw i32 %47, -1
  %53 = call noundef i32 @_ZNK5sc_dt9scfx_mantixEi(ptr noundef nonnull align 8 dereferenceable(12) %0, i32 noundef %52)
  %54 = load i32, ptr %20, align 4, !tbaa !14
  %55 = add nsw i32 %54, -1
  %56 = load i32, ptr %48, align 8, !tbaa !16
  %57 = icmp sgt i32 %55, %56
  br i1 %57, label %58, label %118

58:                                               ; preds = %51
  %59 = add nsw i32 %54, -2
  %60 = call noundef i32 @_ZNK5sc_dt9scfx_mantixEi(ptr noundef nonnull align 8 dereferenceable(12) %0, i32 noundef %59)
  %61 = lshr i32 %60, 31
  br label %118

62:                                               ; preds = %41
  %63 = icmp sgt i32 %24, 20
  %64 = call noundef i32 @_ZNK5sc_dt9scfx_mantixEi(ptr noundef nonnull align 8 dereferenceable(12) %0, i32 noundef %25)
  %65 = load i32, ptr %20, align 4, !tbaa !14
  br i1 %63, label %66, label %87

66:                                               ; preds = %62
  %67 = lshr i32 %64, %.neg
  %68 = and i32 %67, -1048577
  %69 = call noundef i32 @_ZNK5sc_dt9scfx_mantixEi(ptr noundef nonnull align 8 dereferenceable(12) %0, i32 noundef %65)
  %70 = sub nsw i32 52, %24
  %71 = shl i32 %69, %70
  %72 = load i32, ptr %20, align 4, !tbaa !14
  %73 = getelementptr inbounds i8, ptr %0, i64 32
  %74 = load i32, ptr %73, align 8, !tbaa !16
  %75 = icmp sgt i32 %72, %74
  br i1 %75, label %76, label %118

76:                                               ; preds = %66
  %77 = add nsw i32 %72, -1
  %78 = call noundef i32 @_ZNK5sc_dt9scfx_mantixEi(ptr noundef nonnull align 8 dereferenceable(12) %0, i32 noundef %77)
  %79 = lshr i32 %78, %.neg
  %80 = or i32 %79, %71
  %81 = load i32, ptr %20, align 4, !tbaa !14
  %82 = add nsw i32 %81, -1
  %83 = call noundef i32 @_ZNK5sc_dt9scfx_mantixEi(ptr noundef nonnull align 8 dereferenceable(12) %0, i32 noundef %82)
  %84 = add nsw i32 %24, -21
  %85 = lshr i32 %83, %84
  %86 = and i32 %85, 1
  br label %118

87:                                               ; preds = %62
  %88 = shl i32 %64, %42
  %89 = and i32 %88, -1048577
  %90 = getelementptr inbounds i8, ptr %0, i64 32
  %91 = load i32, ptr %90, align 8, !tbaa !16
  %92 = icmp sgt i32 %65, %91
  br i1 %92, label %93, label %118

93:                                               ; preds = %87
  %94 = add nsw i32 %65, -1
  %95 = call noundef i32 @_ZNK5sc_dt9scfx_mantixEi(ptr noundef nonnull align 8 dereferenceable(12) %0, i32 noundef %94)
  %96 = add nsw i32 %24, 12
  %97 = lshr i32 %95, %96
  %98 = or i32 %97, %89
  %99 = load i32, ptr %20, align 4, !tbaa !14
  %100 = add nsw i32 %99, -1
  %101 = call noundef i32 @_ZNK5sc_dt9scfx_mantixEi(ptr noundef nonnull align 8 dereferenceable(12) %0, i32 noundef %100)
  %102 = shl i32 %101, %42
  %103 = load i32, ptr %20, align 4, !tbaa !14
  %104 = add nsw i32 %103, -1
  %105 = load i32, ptr %90, align 8, !tbaa !16
  %106 = icmp sgt i32 %104, %105
  br i1 %106, label %107, label %118

107:                                              ; preds = %93
  %108 = add nsw i32 %103, -2
  %109 = call noundef i32 @_ZNK5sc_dt9scfx_mantixEi(ptr noundef nonnull align 8 dereferenceable(12) %0, i32 noundef %108)
  %110 = lshr i32 %109, %96
  %111 = or i32 %110, %102
  %112 = load i32, ptr %20, align 4, !tbaa !14
  %113 = add nsw i32 %112, -2
  %114 = call noundef i32 @_ZNK5sc_dt9scfx_mantixEi(ptr noundef nonnull align 8 dereferenceable(12) %0, i32 noundef %113)
  %115 = add nsw i32 %24, 11
  %116 = lshr i32 %114, %115
  %117 = and i32 %116, 1
  br label %118

118:                                              ; preds = %76, %66, %93, %107, %87, %44, %58, %51
  %.043 = phi i32 [ %46, %58 ], [ %46, %51 ], [ %46, %44 ], [ %68, %76 ], [ %68, %66 ], [ %98, %107 ], [ %98, %93 ], [ %89, %87 ]
  %.041 = phi i32 [ %53, %58 ], [ %53, %51 ], [ 0, %44 ], [ %80, %76 ], [ %71, %66 ], [ %111, %107 ], [ %102, %93 ], [ 0, %87 ]
  %.039 = phi i32 [ %61, %58 ], [ 0, %51 ], [ 0, %44 ], [ %86, %76 ], [ 0, %66 ], [ %117, %107 ], [ 0, %93 ], [ 0, %87 ]
  %119 = icmp slt i32 %30, -1022
  br i1 %119, label %120, label %133

120:                                              ; preds = %118
  %121 = or i32 %.043, 1048576
  %122 = icmp ugt i32 %30, -1054
  br i1 %122, label %123, label %130

123:                                              ; preds = %120
  %124 = sub nuw nsw i32 -1022, %30
  %125 = lshr i32 %.041, %124
  %126 = add nsw i32 %30, 1054
  %127 = shl i32 %121, %126
  %128 = or i32 %125, %127
  %129 = lshr i32 %121, %124
  br label %133

130:                                              ; preds = %120
  %131 = sub nuw nsw i32 -1054, %30
  %132 = lshr i32 %121, %131
  br label %133

133:                                              ; preds = %123, %130, %118
  %.046 = phi i32 [ %30, %118 ], [ -1023, %130 ], [ -1023, %123 ]
  %.245 = phi i32 [ %.043, %118 ], [ 0, %130 ], [ %129, %123 ]
  %.2 = phi i32 [ %.041, %118 ], [ %132, %130 ], [ %128, %123 ]
  %.140 = phi i32 [ %.039, %118 ], [ 0, %130 ], [ 0, %123 ]
  call void @_ZN5sc_dt16scfx_ieee_double9mantissa0Ej(ptr noundef nonnull align 8 dereferenceable(8) %2, i32 noundef %.245)
  call void @_ZN5sc_dt16scfx_ieee_double9mantissa1Ej(ptr noundef nonnull align 8 dereferenceable(8) %2, i32 noundef %.2)
  call void @_ZN5sc_dt16scfx_ieee_double8exponentEi(ptr noundef nonnull align 8 dereferenceable(8) %2, i32 noundef %.046)
  %134 = getelementptr inbounds i8, ptr %0, i64 20
  %135 = load i32, ptr %134, align 4, !tbaa !5
  %.lobit = lshr i32 %135, 31
  call void @_ZN5sc_dt16scfx_ieee_double8negativeEj(ptr noundef nonnull align 8 dereferenceable(8) %2, i32 noundef %.lobit)
  %136 = call noundef double @_ZNK5sc_dt16scfx_ieee_doublecvdEv(ptr noundef nonnull align 8 dereferenceable(8) %2)
  %.not = icmp eq i32 %.140, 0
  br i1 %.not, label %143, label %137

137:                                              ; preds = %133
  %138 = load i32, ptr %134, align 4, !tbaa !5
  %139 = sitofp i32 %138 to double
  %140 = add nsw i32 %.046, -52
  %141 = call noundef double @_ZN5sc_dt9scfx_pow2Ei(i32 noundef %140)
  %142 = call double @llvm.fmuladd.f64(double %139, double %141, double %136)
  br label %143

143:                                              ; preds = %32, %38, %137, %133, %14, %8, %4
  %.1 = phi double [ %5, %4 ], [ %11, %8 ], [ %18, %14 ], [ %35, %32 ], [ %40, %38 ], [ %142, %137 ], [ %136, %133 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #5
  ret double %.1
}

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN5sc_dt16scfx_ieee_doubleC2Ev(ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #1 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK5sc_dt8scfx_rep6is_nanEv(ptr noundef nonnull align 8 dereferenceable(37)) local_unnamed_addr #1 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN5sc_dt16scfx_ieee_double7set_nanEv(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #3 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef double @_ZNK5sc_dt16scfx_ieee_doublecvdEv(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #1 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK5sc_dt8scfx_rep6is_infEv(ptr noundef nonnull align 8 dereferenceable(37)) local_unnamed_addr #1 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN5sc_dt16scfx_ieee_double7set_infEv(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #3 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN5sc_dt16scfx_ieee_double8negativeEj(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) local_unnamed_addr #1 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZNK5sc_dt8scfx_rep7is_zeroEv(ptr noundef nonnull align 8 dereferenceable(37)) local_unnamed_addr #3 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZN5sc_dt16scfx_ieee_doubleaSEd(ptr noundef nonnull align 8 dereferenceable(8), double noundef) local_unnamed_addr #1 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK5sc_dt9scfx_mantixEi(ptr noundef nonnull align 8 dereferenceable(12), i32 noundef) local_unnamed_addr #1 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN5sc_dt16scfx_ieee_double9mantissa0Ej(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) local_unnamed_addr #1 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN5sc_dt16scfx_ieee_double9mantissa1Ej(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) local_unnamed_addr #1 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN5sc_dt16scfx_ieee_double8exponentEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) local_unnamed_addr #1 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef double @_ZN5sc_dt9scfx_pow2Ei(i32 noundef) local_unnamed_addr #3

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #4

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { inlinehint 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 = { 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 #4 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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 = !{!6, !11, i64 20}
!6 = !{!"_ZTSN5sc_dt8scfx_repE", !7, i64 0, !11, i64 16, !11, i64 20, !12, i64 24, !11, i64 28, !11, i64 32, !13, i64 36}
!7 = !{!"_ZTSN5sc_dt9scfx_mantE", !8, i64 0, !11, i64 8}
!8 = !{!"any pointer", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C++ TBAA"}
!11 = !{!"int", !9, i64 0}
!12 = !{!"_ZTSN5sc_dt8scfx_rep5stateE", !9, i64 0}
!13 = !{!"bool", !9, i64 0}
!14 = !{!6, !11, i64 28}
!15 = !{!6, !11, i64 16}
!16 = !{!6, !11, i64 32}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,ReassociatePass,SROAPass,SimplifyCFGPass