; LLVM IR from ouuan/CPTH :: tests/ConstantModInt (ConstantModInt)

; 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_istream" = type { ptr, i64, %"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.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.CPTH::ConstantModInt" = type { i32 }
%"class.std::set" = type { %"class.std::_Rb_tree" }
%"class.std::_Rb_tree" = type { %"struct.std::_Rb_tree<CPTH::ConstantModInt<404404404>, CPTH::ConstantModInt<404404404>, std::_Identity<CPTH::ConstantModInt<404404404>>, std::less<CPTH::ConstantModInt<404404404>>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<CPTH::ConstantModInt<404404404>, CPTH::ConstantModInt<404404404>, std::_Identity<CPTH::ConstantModInt<404404404>>, std::less<CPTH::ConstantModInt<404404404>>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"struct.std::_Rb_tree_header" = type { %"struct.std::_Rb_tree_node_base", i64 }
%"struct.std::_Rb_tree_node_base" = type { i32, ptr, ptr, ptr }
%"struct.std::pair" = type <{ %"struct.std::_Rb_tree_const_iterator", i8, [7 x i8] }>
%"struct.std::_Rb_tree_const_iterator" = type { ptr }

@_ZSt3cin = external global %"class.std::basic_istream", align 8
@.str = external hidden unnamed_addr constant [16 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [84 x i8], align 1
@__PRETTY_FUNCTION__.main = external hidden unnamed_addr constant [11 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [13 x i8], align 1
@_ZSt4cout = external global %"class.std::basic_ostream", align 8

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_Z3gcdii(i32 noundef, i32 noundef) #0

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #1 personality ptr @__gxx_personality_v0 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca %"class.CPTH::ConstantModInt", align 4
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca %"class.std::set", align 8
  %11 = alloca %"class.CPTH::ConstantModInt", align 4
  %12 = alloca ptr, align 8
  %13 = alloca i32, align 4
  %14 = alloca %"struct.std::pair", align 8
  %15 = alloca %"class.CPTH::ConstantModInt", align 4
  %16 = alloca %"class.CPTH::ConstantModInt", align 4
  %17 = alloca %"class.CPTH::ConstantModInt", align 4
  %18 = alloca %"struct.std::pair", align 8
  %19 = alloca %"class.CPTH::ConstantModInt", align 4
  %20 = alloca %"class.CPTH::ConstantModInt", align 4
  %21 = alloca %"class.CPTH::ConstantModInt", align 4
  %22 = alloca %"class.CPTH::ConstantModInt", align 4
  %23 = alloca %"class.CPTH::ConstantModInt", align 4
  %24 = alloca %"class.CPTH::ConstantModInt", align 4
  %25 = alloca %"class.CPTH::ConstantModInt", align 4
  %26 = alloca %"class.CPTH::ConstantModInt", align 4
  %27 = alloca %"class.CPTH::ConstantModInt", align 4
  %28 = alloca %"class.CPTH::ConstantModInt", align 4
  %29 = alloca %"class.CPTH::ConstantModInt", align 4
  %30 = alloca %"class.CPTH::ConstantModInt", align 4
  %31 = alloca %"class.CPTH::ConstantModInt", align 4
  %32 = alloca %"class.CPTH::ConstantModInt", align 4
  %33 = alloca %"class.CPTH::ConstantModInt", align 4
  %34 = alloca %"class.CPTH::ConstantModInt", align 4
  %35 = alloca %"class.CPTH::ConstantModInt", align 4
  store i32 0, ptr %1, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #8
  %36 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %2)
  %37 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %36, ptr noundef nonnull align 4 dereferenceable(4) %3)
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #8
  call void @_ZN4CPTH14ConstantModIntILi404404404EEC2Ex(ptr noundef nonnull align 4 dereferenceable(4) %4, i64 noundef 0)
  %38 = load i32, ptr %3, align 4, !tbaa !5
  %39 = call noundef i32 @_ZNK4CPTH14ConstantModIntILi404404404EE6moduloEv(ptr noundef nonnull align 4 dereferenceable(4) %4)
  %40 = icmp eq i32 %38, %39
  br i1 %40, label %41, label %42

41:                                               ; preds = %0
  br label %44

42:                                               ; preds = %0
  call void @__assert_fail(ptr noundef @.str, ptr noundef @.str.1, i32 noundef 23, ptr noundef @__PRETTY_FUNCTION__.main) #9
  unreachable

43:                                               ; No predecessors!
  br label %44

44:                                               ; preds = %43, %41
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #8
  store i32 1, ptr %5, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #8
  %45 = load i32, ptr %3, align 4, !tbaa !5
  store i32 %45, ptr %6, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #8
  store i32 2, ptr %7, align 4, !tbaa !5
  br label %46

46:                                               ; preds = %80, %44
  %47 = load i32, ptr %7, align 4, !tbaa !5
  %48 = load i32, ptr %7, align 4, !tbaa !5
  %49 = mul nsw i32 %47, %48
  %50 = load i32, ptr %6, align 4, !tbaa !5
  %51 = icmp sle i32 %49, %50
  br i1 %51, label %53, label %52

52:                                               ; preds = %46
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #8
  br label %83

53:                                               ; preds = %46
  %54 = load i32, ptr %6, align 4, !tbaa !5
  %55 = load i32, ptr %7, align 4, !tbaa !5
  %56 = srem i32 %54, %55
  %57 = icmp eq i32 %56, 0
  br i1 %57, label %58, label %79

58:                                               ; preds = %53
  %59 = load i32, ptr %7, align 4, !tbaa !5
  %60 = sub nsw i32 %59, 1
  %61 = load i32, ptr %5, align 4, !tbaa !5
  %62 = mul nsw i32 %61, %60
  store i32 %62, ptr %5, align 4, !tbaa !5
  %63 = load i32, ptr %7, align 4, !tbaa !5
  %64 = load i32, ptr %6, align 4, !tbaa !5
  %65 = sdiv i32 %64, %63
  store i32 %65, ptr %6, align 4, !tbaa !5
  br label %66

66:                                               ; preds = %71, %58
  %67 = load i32, ptr %6, align 4, !tbaa !5
  %68 = load i32, ptr %7, align 4, !tbaa !5
  %69 = srem i32 %67, %68
  %70 = icmp eq i32 %69, 0
  br i1 %70, label %71, label %78

71:                                               ; preds = %66
  %72 = load i32, ptr %7, align 4, !tbaa !5
  %73 = load i32, ptr %5, align 4, !tbaa !5
  %74 = mul nsw i32 %73, %72
  store i32 %74, ptr %5, align 4, !tbaa !5
  %75 = load i32, ptr %7, align 4, !tbaa !5
  %76 = load i32, ptr %6, align 4, !tbaa !5
  %77 = sdiv i32 %76, %75
  store i32 %77, ptr %6, align 4, !tbaa !5
  br label %66, !llvm.loop !9

78:                                               ; preds = %66
  br label %79

79:                                               ; preds = %78, %53
  br label %80

80:                                               ; preds = %79
  %81 = load i32, ptr %7, align 4, !tbaa !5
  %82 = add nsw i32 %81, 1
  store i32 %82, ptr %7, align 4, !tbaa !5
  br label %46, !llvm.loop !11

83:                                               ; preds = %52
  %84 = load i32, ptr %6, align 4, !tbaa !5
  %85 = icmp sgt i32 %84, 1
  br i1 %85, label %86, label %91

86:                                               ; preds = %83
  %87 = load i32, ptr %6, align 4, !tbaa !5
  %88 = sub nsw i32 %87, 1
  %89 = load i32, ptr %5, align 4, !tbaa !5
  %90 = mul nsw i32 %89, %88
  store i32 %90, ptr %5, align 4, !tbaa !5
  br label %91

91:                                               ; preds = %86, %83
  br label %92

92:                                               ; preds = %277, %91
  %93 = load i32, ptr %2, align 4, !tbaa !5
  %94 = add nsw i32 %93, -1
  store i32 %94, ptr %2, align 4, !tbaa !5
  %95 = icmp ne i32 %93, 0
  br i1 %95, label %96, label %281

96:                                               ; preds = %92
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #8
  %97 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %8)
  %98 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %97, ptr noundef nonnull align 4 dereferenceable(4) %9)
  %99 = load i32, ptr %8, align 4, !tbaa !5
  switch i32 %99, label %258 [
    i32 1, label %100
    i32 2, label %176
    i32 3, label %191
    i32 4, label %198
    i32 5, label %214
  ]

100:                                              ; preds = %96
  call void @llvm.lifetime.start.p0(i64 48, ptr %10) #8
  call void @_ZNSt3setIN4CPTH14ConstantModIntILi404404404EEESt4lessIS2_ESaIS2_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(48) %10) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #8
  %101 = invoke noundef i32 @_ZNK4CPTH14ConstantModIntILi404404404EE5toIntEv(ptr noundef nonnull align 4 dereferenceable(4) %4)
          to label %102 unwind label %123

102:                                              ; preds = %100
  %103 = load i32, ptr %9, align 4, !tbaa !5
  %104 = add nsw i32 %101, %103
  %105 = load i32, ptr %3, align 4, !tbaa !5
  %106 = srem i32 %104, %105
  %107 = sext i32 %106 to i64
  invoke void @_ZN4CPTH14ConstantModIntILi404404404EEC2Ex(ptr noundef nonnull align 4 dereferenceable(4) %11, i64 noundef %107)
          to label %108 unwind label %123

108:                                              ; preds = %102
  %109 = invoke { ptr, i8 } @_ZNSt3setIN4CPTH14ConstantModIntILi404404404EEESt4lessIS2_ESaIS2_EE6insertERKS2_(ptr noundef nonnull align 8 dereferenceable(48) %10, ptr noundef nonnull align 4 dereferenceable(4) %11)
          to label %110 unwind label %123

110:                                              ; preds = %108
  %111 = getelementptr inbounds { ptr, i8 }, ptr %14, i32 0, i32 0
  %112 = extractvalue { ptr, i8 } %109, 0
  store ptr %112, ptr %111, align 8
  %113 = getelementptr inbounds { ptr, i8 }, ptr %14, i32 0, i32 1
  %114 = extractvalue { ptr, i8 } %109, 1
  store i8 %114, ptr %113, align 8
  %115 = load i32, ptr %2, align 4, !tbaa !5
  %116 = srem i32 %115, 3
  %117 = icmp eq i32 %116, 0
  br i1 %117, label %118, label %127

118:                                              ; preds = %110
  %119 = load i32, ptr %9, align 4, !tbaa !5
  %120 = sext i32 %119 to i64
  %121 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN4CPTH14ConstantModIntILi404404404EEpLEx(ptr noundef nonnull align 4 dereferenceable(4) %4, i64 noundef %120)
          to label %122 unwind label %123

122:                                              ; preds = %118
  br label %152

123:                                              ; preds = %154, %152, %134, %131, %118, %108, %102, %100
  %124 = landingpad { ptr, i32 }
          cleanup
  %125 = extractvalue { ptr, i32 } %124, 0
  store ptr %125, ptr %12, align 8
  %126 = extractvalue { ptr, i32 } %124, 1
  store i32 %126, ptr %13, align 4
  br label %175

127:                                              ; preds = %110
  %128 = load i32, ptr %2, align 4, !tbaa !5
  %129 = srem i32 %128, 3
  %130 = icmp eq i32 %129, 1
  br i1 %130, label %131, label %139

131:                                              ; preds = %127
  %132 = load i32, ptr %9, align 4, !tbaa !5
  %133 = sext i32 %132 to i64
  invoke void @_ZN4CPTH14ConstantModIntILi404404404EEC2Ex(ptr noundef nonnull align 4 dereferenceable(4) %15, i64 noundef %133)
          to label %134 unwind label %123

134:                                              ; preds = %131
  %135 = getelementptr inbounds %"class.CPTH::ConstantModInt", ptr %15, i32 0, i32 0
  %136 = load i32, ptr %135, align 4
  %137 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN4CPTH14ConstantModIntILi404404404EEpLES1_(ptr noundef nonnull align 4 dereferenceable(4) %4, i32 %136)
          to label %138 unwind label %123

138:                                              ; preds = %134
  br label %151

139:                                              ; preds = %127
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #8
  %140 = load i32, ptr %9, align 4, !tbaa !5
  %141 = sext i32 %140 to i64
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %17, ptr align 4 %4, i64 4, i1 false), !tbaa.struct !12
  %142 = getelementptr inbounds %"class.CPTH::ConstantModInt", ptr %17, i32 0, i32 0
  %143 = load i32, ptr %142, align 4
  %144 = invoke i32 @_ZN4CPTHplILi404404404EEENS_14ConstantModIntIXT_EEExS2_(i64 noundef %141, i32 %143)
          to label %145 unwind label %147

145:                                              ; preds = %139
  %146 = getelementptr inbounds %"class.CPTH::ConstantModInt", ptr %16, i32 0, i32 0
  store i32 %144, ptr %146, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %4, ptr align 4 %16, i64 4, i1 false), !tbaa.struct !12
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #8
  br label %151

147:                                              ; preds = %139
  %148 = landingpad { ptr, i32 }
          cleanup
  %149 = extractvalue { ptr, i32 } %148, 0
  store ptr %149, ptr %12, align 8
  %150 = extractvalue { ptr, i32 } %148, 1
  store i32 %150, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #8
  br label %175

151:                                              ; preds = %145, %138
  br label %152

152:                                              ; preds = %151, %122
  %153 = invoke { ptr, i8 } @_ZNSt3setIN4CPTH14ConstantModIntILi404404404EEESt4lessIS2_ESaIS2_EE6insertERKS2_(ptr noundef nonnull align 8 dereferenceable(48) %10, ptr noundef nonnull align 4 dereferenceable(4) %4)
          to label %154 unwind label %123

154:                                              ; preds = %152
  %155 = getelementptr inbounds { ptr, i8 }, ptr %18, i32 0, i32 0
  %156 = extractvalue { ptr, i8 } %153, 0
  store ptr %156, ptr %155, align 8
  %157 = getelementptr inbounds { ptr, i8 }, ptr %18, i32 0, i32 1
  %158 = extractvalue { ptr, i8 } %153, 1
  store i8 %158, ptr %157, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %19, ptr align 4 %4, i64 4, i1 false), !tbaa.struct !12
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %20, ptr align 4 %11, i64 4, i1 false), !tbaa.struct !12
  %159 = getelementptr inbounds %"class.CPTH::ConstantModInt", ptr %19, i32 0, i32 0
  %160 = load i32, ptr %159, align 4
  %161 = getelementptr inbounds %"class.CPTH::ConstantModInt", ptr %20, i32 0, i32 0
  %162 = load i32, ptr %161, align 4
  %163 = invoke noundef zeroext i1 @_ZN4CPTHeqILi404404404EEEbNS_14ConstantModIntIXT_EEES2_(i32 %160, i32 %162)
          to label %164 unwind label %123

164:                                              ; preds = %154
  br i1 %163, label %165, label %166

165:                                              ; preds = %164
  br label %168

166:                                              ; preds = %164
  call void @__assert_fail(ptr noundef @.str.2, ptr noundef @.str.1, i32 noundef 65, ptr noundef @__PRETTY_FUNCTION__.main) #9
  unreachable

167:                                              ; No predecessors!
  br label %168

168:                                              ; preds = %167, %165
  %169 = call noundef i64 @_ZNKSt3setIN4CPTH14ConstantModIntILi404404404EEESt4lessIS2_ESaIS2_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(48) %10) #8
  %170 = icmp eq i64 %169, 1
  br i1 %170, label %171, label %172

171:                                              ; preds = %168
  br label %174

172:                                              ; preds = %168
  call void @__assert_fail(ptr noundef @.str.3, ptr noundef @.str.1, i32 noundef 66, ptr noundef @__PRETTY_FUNCTION__.main) #9
  unreachable

173:                                              ; No predecessors!
  br label %174

174:                                              ; preds = %173, %171
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #8
  call void @_ZNSt3setIN4CPTH14ConstantModIntILi404404404EEESt4lessIS2_ESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %10) #8
  call void @llvm.lifetime.end.p0(i64 48, ptr %10) #8
  br label %258

175:                                              ; preds = %147, %123
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #8
  call void @_ZNSt3setIN4CPTH14ConstantModIntILi404404404EEESt4lessIS2_ESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %10) #8
  call void @llvm.lifetime.end.p0(i64 48, ptr %10) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #8
  br label %282

176:                                              ; preds = %96
  %177 = load i32, ptr %2, align 4, !tbaa !5
  %178 = and i32 %177, 1
  %179 = icmp ne i32 %178, 0
  br i1 %179, label %180, label %184

180:                                              ; preds = %176
  %181 = load i32, ptr %9, align 4, !tbaa !5
  %182 = sext i32 %181 to i64
  %183 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN4CPTH14ConstantModIntILi404404404EEmIEx(ptr noundef nonnull align 4 dereferenceable(4) %4, i64 noundef %182)
  br label %190

184:                                              ; preds = %176
  %185 = load i32, ptr %9, align 4, !tbaa !5
  %186 = sext i32 %185 to i64
  call void @_ZN4CPTH14ConstantModIntILi404404404EEC2Ex(ptr noundef nonnull align 4 dereferenceable(4) %21, i64 noundef %186)
  %187 = getelementptr inbounds %"class.CPTH::ConstantModInt", ptr %21, i32 0, i32 0
  %188 = load i32, ptr %187, align 4
  %189 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN4CPTH14ConstantModIntILi404404404EEmIES1_(ptr noundef nonnull align 4 dereferenceable(4) %4, i32 %188)
  br label %190

190:                                              ; preds = %184, %180
  br label %258

191:                                              ; preds = %96
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #8
  %192 = load i32, ptr %9, align 4, !tbaa !5
  %193 = sext i32 %192 to i64
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %23, ptr align 4 %4, i64 4, i1 false), !tbaa.struct !12
  %194 = getelementptr inbounds %"class.CPTH::ConstantModInt", ptr %23, i32 0, i32 0
  %195 = load i32, ptr %194, align 4
  %196 = call i32 @_ZN4CPTHmiILi404404404EEENS_14ConstantModIntIXT_EEExS2_(i64 noundef %193, i32 %195)
  %197 = getelementptr inbounds %"class.CPTH::ConstantModInt", ptr %22, i32 0, i32 0
  store i32 %196, ptr %197, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %4, ptr align 4 %22, i64 4, i1 false), !tbaa.struct !12
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #8
  br label %258

198:                                              ; preds = %96
  %199 = load i32, ptr %2, align 4, !tbaa !5
  %200 = and i32 %199, 1
  %201 = icmp ne i32 %200, 0
  br i1 %201, label %202, label %206

202:                                              ; preds = %198
  %203 = load i32, ptr %9, align 4, !tbaa !5
  %204 = sext i32 %203 to i64
  %205 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN4CPTH14ConstantModIntILi404404404EEmLEx(ptr noundef nonnull align 4 dereferenceable(4) %4, i64 noundef %204)
  br label %213

206:                                              ; preds = %198
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #8
  %207 = load i32, ptr %9, align 4, !tbaa !5
  %208 = sext i32 %207 to i64
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %25, ptr align 4 %4, i64 4, i1 false), !tbaa.struct !12
  %209 = getelementptr inbounds %"class.CPTH::ConstantModInt", ptr %25, i32 0, i32 0
  %210 = load i32, ptr %209, align 4
  %211 = call i32 @_ZN4CPTHmlILi404404404EEENS_14ConstantModIntIXT_EEExS2_(i64 noundef %208, i32 %210)
  %212 = getelementptr inbounds %"class.CPTH::ConstantModInt", ptr %24, i32 0, i32 0
  store i32 %211, ptr %212, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %4, ptr align 4 %24, i64 4, i1 false), !tbaa.struct !12
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #8
  br label %213

213:                                              ; preds = %206, %202
  br label %258

214:                                              ; preds = %96
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %26, ptr align 4 %4, i64 4, i1 false), !tbaa.struct !12
  %215 = load i32, ptr %2, align 4, !tbaa !5
  %216 = srem i32 %215, 3
  %217 = icmp eq i32 %216, 0
  br i1 %217, label %218, label %222

218:                                              ; preds = %214
  %219 = load i32, ptr %9, align 4, !tbaa !5
  %220 = sext i32 %219 to i64
  %221 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN4CPTH14ConstantModIntILi404404404EEdVEx(ptr noundef nonnull align 4 dereferenceable(4) %4, i64 noundef %220)
  br label %242

222:                                              ; preds = %214
  %223 = load i32, ptr %2, align 4, !tbaa !5
  %224 = srem i32 %223, 3
  %225 = icmp eq i32 %224, 1
  br i1 %225, label %226, label %232

226:                                              ; preds = %222
  %227 = load i32, ptr %9, align 4, !tbaa !5
  %228 = sext i32 %227 to i64
  call void @_ZN4CPTH14ConstantModIntILi404404404EEC2Ex(ptr noundef nonnull align 4 dereferenceable(4) %27, i64 noundef %228)
  %229 = getelementptr inbounds %"class.CPTH::ConstantModInt", ptr %27, i32 0, i32 0
  %230 = load i32, ptr %229, align 4
  %231 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN4CPTH14ConstantModIntILi404404404EEdVES1_(ptr noundef nonnull align 4 dereferenceable(4) %4, i32 %230)
  br label %241

232:                                              ; preds = %222
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #8
  %233 = call noundef i32 @_ZNK4CPTH14ConstantModIntILi404404404EE5toIntEv(ptr noundef nonnull align 4 dereferenceable(4) %4)
  %234 = sext i32 %233 to i64
  %235 = load i32, ptr %9, align 4, !tbaa !5
  %236 = sext i32 %235 to i64
  call void @_ZN4CPTH14ConstantModIntILi404404404EEC2Ex(ptr noundef nonnull align 4 dereferenceable(4) %29, i64 noundef %236)
  %237 = getelementptr inbounds %"class.CPTH::ConstantModInt", ptr %29, i32 0, i32 0
  %238 = load i32, ptr %237, align 4
  %239 = call i32 @_ZN4CPTHdvILi404404404EEENS_14ConstantModIntIXT_EEExS2_(i64 noundef %234, i32 %238)
  %240 = getelementptr inbounds %"class.CPTH::ConstantModInt", ptr %28, i32 0, i32 0
  store i32 %239, ptr %240, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %4, ptr align 4 %28, i64 4, i1 false), !tbaa.struct !12
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #8
  br label %241

241:                                              ; preds = %232, %226
  br label %242

242:                                              ; preds = %241, %218
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %31, ptr align 4 %4, i64 4, i1 false), !tbaa.struct !12
  %243 = load i32, ptr %9, align 4, !tbaa !5
  %244 = sext i32 %243 to i64
  %245 = getelementptr inbounds %"class.CPTH::ConstantModInt", ptr %31, i32 0, i32 0
  %246 = load i32, ptr %245, align 4
  %247 = call i32 @_ZN4CPTHmlILi404404404EEENS_14ConstantModIntIXT_EEES2_x(i32 %246, i64 noundef %244)
  %248 = getelementptr inbounds %"class.CPTH::ConstantModInt", ptr %30, i32 0, i32 0
  store i32 %247, ptr %248, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %32, ptr align 4 %26, i64 4, i1 false), !tbaa.struct !12
  %249 = getelementptr inbounds %"class.CPTH::ConstantModInt", ptr %30, i32 0, i32 0
  %250 = load i32, ptr %249, align 4
  %251 = getelementptr inbounds %"class.CPTH::ConstantModInt", ptr %32, i32 0, i32 0
  %252 = load i32, ptr %251, align 4
  %253 = call noundef zeroext i1 @_ZN4CPTHeqILi404404404EEEbNS_14ConstantModIntIXT_EEES2_(i32 %250, i32 %252)
  br i1 %253, label %254, label %255

254:                                              ; preds = %242
  br label %257

255:                                              ; preds = %242
  call void @__assert_fail(ptr noundef @.str.4, ptr noundef @.str.1, i32 noundef 93, ptr noundef @__PRETTY_FUNCTION__.main) #9
  unreachable

256:                                              ; No predecessors!
  br label %257

257:                                              ; preds = %256, %254
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #8
  br label %258

258:                                              ; preds = %257, %213, %191, %190, %174, %96
  call void @llvm.lifetime.start.p0(i64 4, ptr %33) #8
  %259 = call noundef i32 @_ZNK4CPTH14ConstantModIntILi404404404EE6moduloEv(ptr noundef nonnull align 4 dereferenceable(4) %4)
  %260 = sext i32 %259 to i64
  call void @_ZN4CPTH14ConstantModIntILi404404404EEC2Ex(ptr noundef nonnull align 4 dereferenceable(4) %33, i64 noundef %260)
  %261 = call noundef i32 @_ZNK4CPTH14ConstantModIntILi404404404EE5toIntEv(ptr noundef nonnull align 4 dereferenceable(4) %4)
  %262 = sext i32 %261 to i64
  call void @_ZN4CPTH14ConstantModIntILi404404404EE8setValueEx(ptr noundef nonnull align 4 dereferenceable(4) %33, i64 noundef %262)
  %263 = call noundef i32 @_ZNK4CPTH14ConstantModIntILi404404404EE5toIntEv(ptr noundef nonnull align 4 dereferenceable(4) %33)
  %264 = call noundef i32 @_Z3gcdii(i32 noundef %263, i32 noundef 404404404)
  %265 = icmp eq i32 %264, 1
  call void @llvm.lifetime.start.p0(i64 4, ptr %34) #8
  br i1 %265, label %266, label %275

266:                                              ; preds = %258
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %35, ptr align 4 %33, i64 4, i1 false), !tbaa.struct !12
  %267 = load i32, ptr %5, align 4, !tbaa !5
  %268 = add nsw i32 %267, 1
  %269 = sext i32 %268 to i64
  %270 = getelementptr inbounds %"class.CPTH::ConstantModInt", ptr %35, i32 0, i32 0
  %271 = load i32, ptr %270, align 4
  %272 = call i32 @_ZN4CPTH3powILi404404404EEENS_14ConstantModIntIXT_EEES2_y(i32 %271, i64 noundef %269)
  %273 = getelementptr inbounds %"class.CPTH::ConstantModInt", ptr %34, i32 0, i32 0
  store i32 %272, ptr %273, align 4
  %274 = call noundef i32 @_ZNK4CPTH14ConstantModIntILi404404404EE5toIntEv(ptr noundef nonnull align 4 dereferenceable(4) %34)
  br label %277

275:                                              ; preds = %258
  %276 = call noundef i32 @_ZNK4CPTH14ConstantModIntILi404404404EE5toIntEv(ptr noundef nonnull align 4 dereferenceable(4) %33)
  br label %277

277:                                              ; preds = %275, %266
  %278 = phi i32 [ %274, %266 ], [ %276, %275 ]
  %279 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %278)
  %280 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %279, i8 noundef signext 10)
  call void @llvm.lifetime.end.p0(i64 4, ptr %34) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %33) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #8
  br label %92, !llvm.loop !13

281:                                              ; preds = %92
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #8
  ret i32 0

282:                                              ; preds = %175
  %283 = load ptr, ptr %12, align 8
  %284 = load i32, ptr %13, align 4
  %285 = insertvalue { ptr, i32 } poison, ptr %283, 0
  %286 = insertvalue { ptr, i32 } %285, i32 %284, 1
  resume { ptr, i32 } %286
}

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

declare noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(4)) #3

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4CPTH14ConstantModIntILi404404404EEC2Ex(ptr noundef nonnull align 4 dereferenceable(4), i64 noundef) unnamed_addr #4 align 2

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

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

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

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

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

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress uwtable
declare dso_local { ptr, i8 } @_ZNSt3setIN4CPTH14ConstantModIntILi404404404EEESt4lessIS2_ESaIS2_EE6insertERKS2_(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 4 dereferenceable(4)) #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZN4CPTH14ConstantModIntILi404404404EEpLEx(ptr noundef nonnull align 4 dereferenceable(4), i64 noundef) #0 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local i32 @_ZN4CPTHplILi404404404EEENS_14ConstantModIntIXT_EEExS2_(i64 noundef, i32) #0

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN4CPTHeqILi404404404EEEbNS_14ConstantModIntIXT_EEES2_(i32, i32) #4

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZN4CPTH14ConstantModIntILi404404404EEmIEx(ptr noundef nonnull align 4 dereferenceable(4), i64 noundef) #0 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local i32 @_ZN4CPTHmiILi404404404EEENS_14ConstantModIntIXT_EEExS2_(i64 noundef, i32) #0

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZN4CPTH14ConstantModIntILi404404404EEmLEx(ptr noundef nonnull align 4 dereferenceable(4), i64 noundef) #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local i32 @_ZN4CPTHmlILi404404404EEENS_14ConstantModIntIXT_EEExS2_(i64 noundef, i32) #0

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZN4CPTH14ConstantModIntILi404404404EEdVEx(ptr noundef nonnull align 4 dereferenceable(4), i64 noundef) #0 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local i32 @_ZN4CPTHdvILi404404404EEENS_14ConstantModIntIXT_EEExS2_(i64 noundef, i32) #0

; Function Attrs: mustprogress uwtable
declare dso_local i32 @_ZN4CPTHmlILi404404404EEENS_14ConstantModIntIXT_EEES2_x(i32, i64 noundef) #0

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4CPTH14ConstantModIntILi404404404EE8setValueEx(ptr noundef nonnull align 4 dereferenceable(4), i64 noundef) #4 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) #7

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

; Function Attrs: mustprogress uwtable
declare dso_local i32 @_ZN4CPTH3powILi404404404EEENS_14ConstantModIntIXT_EEES2_y(i32, i64 noundef) #0

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 norecurse uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { noreturn nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #7 = { 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 #8 = { nounwind }
attributes #9 = { noreturn nounwind }

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

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


; 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_istream" = type { ptr, i64, %"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.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.CPTH::ConstantModInt" = type { i32 }
%"class.std::set" = type { %"class.std::_Rb_tree" }
%"class.std::_Rb_tree" = type { %"struct.std::_Rb_tree<CPTH::ConstantModInt<404404404>, CPTH::ConstantModInt<404404404>, std::_Identity<CPTH::ConstantModInt<404404404>>, std::less<CPTH::ConstantModInt<404404404>>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<CPTH::ConstantModInt<404404404>, CPTH::ConstantModInt<404404404>, std::_Identity<CPTH::ConstantModInt<404404404>>, std::less<CPTH::ConstantModInt<404404404>>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"struct.std::_Rb_tree_header" = type { %"struct.std::_Rb_tree_node_base", i64 }
%"struct.std::_Rb_tree_node_base" = type { i32, ptr, ptr, ptr }

@_ZSt3cin = external global %"class.std::basic_istream", align 8
@.str = external hidden unnamed_addr constant [16 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [84 x i8], align 1
@__PRETTY_FUNCTION__.main = external hidden unnamed_addr constant [11 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [13 x i8], align 1
@_ZSt4cout = external global %"class.std::basic_ostream", align 8

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_Z3gcdii(i32 noundef, i32 noundef) local_unnamed_addr #0

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #1 personality ptr @__gxx_personality_v0 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca %"class.CPTH::ConstantModInt", align 4
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca %"class.std::set", align 8
  %7 = alloca %"class.CPTH::ConstantModInt", align 4
  %8 = alloca %"class.CPTH::ConstantModInt", align 4
  %9 = alloca %"class.CPTH::ConstantModInt", align 4
  %10 = alloca %"class.CPTH::ConstantModInt", align 4
  %11 = alloca %"class.CPTH::ConstantModInt", align 4
  %12 = alloca %"class.CPTH::ConstantModInt", align 4
  %13 = alloca %"class.CPTH::ConstantModInt", align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #7
  %14 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %1)
  %15 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %14, ptr noundef nonnull align 4 dereferenceable(4) %2)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #7
  call void @_ZN4CPTH14ConstantModIntILi404404404EEC2Ex(ptr noundef nonnull align 4 dereferenceable(4) %3, i64 noundef 0)
  %16 = load i32, ptr %2, align 4, !tbaa !5
  %17 = call noundef i32 @_ZNK4CPTH14ConstantModIntILi404404404EE6moduloEv(ptr noundef nonnull align 4 dereferenceable(4) %3)
  %18 = icmp eq i32 %16, %17
  br i1 %18, label %20, label %19

19:                                               ; preds = %0
  call void @__assert_fail(ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, i32 noundef 23, ptr noundef nonnull @__PRETTY_FUNCTION__.main) #8
  unreachable

20:                                               ; preds = %0
  %21 = load i32, ptr %2, align 4, !tbaa !5
  %.not53 = icmp slt i32 %21, 4
  br i1 %.not53, label %._crit_edge, label %.lr.ph58

._crit_edge:                                      ; preds = %.loopexit, %20
  %.037.lcssa = phi i32 [ %21, %20 ], [ %.239, %.loopexit ]
  %.0.lcssa = phi i32 [ 1, %20 ], [ %.2, %.loopexit ]
  %22 = load i32, ptr %1, align 4, !tbaa !5
  %23 = add nsw i32 %22, -1
  store i32 %23, ptr %1, align 4, !tbaa !5
  %.not4561 = icmp eq i32 %22, 0
  br i1 %.not4561, label %._crit_edge64, label %.lr.ph63

.lr.ph63:                                         ; preds = %._crit_edge
  %24 = icmp sgt i32 %.037.lcssa, 1
  %25 = add nsw i32 %.037.lcssa, -1
  %26 = select i1 %24, i32 %25, i32 1
  %.3 = mul nsw i32 %26, %.0.lcssa
  %27 = add nsw i32 %.3, 1
  %28 = sext i32 %27 to i64
  br label %41

.lr.ph58:                                         ; preds = %20, %.loopexit
  %.057 = phi i32 [ %.2, %.loopexit ], [ 1, %20 ]
  %.03756 = phi i32 [ %.239, %.loopexit ], [ %21, %20 ]
  %.04054 = phi i32 [ %39, %.loopexit ], [ 2, %20 ]
  %29 = srem i32 %.03756, %.04054
  %.13849 = sdiv i32 %.03756, %.04054
  %30 = icmp eq i32 %29, 0
  br i1 %30, label %31, label %.loopexit

31:                                               ; preds = %.lr.ph58
  %32 = add nsw i32 %.04054, -1
  %33 = mul nsw i32 %.057, %32
  %34 = srem i32 %.13849, %.04054
  %35 = icmp eq i32 %34, 0
  br i1 %35, label %.lr.ph, label %.loopexit

.lr.ph:                                           ; preds = %31, %.lr.ph
  %.13851 = phi i32 [ %.138, %.lr.ph ], [ %.13849, %31 ]
  %.150 = phi i32 [ %36, %.lr.ph ], [ %33, %31 ]
  %36 = mul nsw i32 %.150, %.04054
  %.138 = sdiv i32 %.13851, %.04054
  %37 = srem i32 %.138, %.04054
  %38 = icmp eq i32 %37, 0
  br i1 %38, label %.lr.ph, label %.loopexit, !llvm.loop !9

.loopexit:                                        ; preds = %.lr.ph, %31, %.lr.ph58
  %.239 = phi i32 [ %.03756, %.lr.ph58 ], [ %.13849, %31 ], [ %.138, %.lr.ph ]
  %.2 = phi i32 [ %.057, %.lr.ph58 ], [ %33, %31 ], [ %36, %.lr.ph ]
  %39 = add nuw nsw i32 %.04054, 1
  %40 = mul nuw nsw i32 %39, %39
  %.not = icmp sgt i32 %40, %.239
  br i1 %.not, label %._crit_edge, label %.lr.ph58, !llvm.loop !11

41:                                               ; preds = %.lr.ph63, %139
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #7
  %42 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %4)
  %43 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %42, ptr noundef nonnull align 4 dereferenceable(4) %5)
  %44 = load i32, ptr %4, align 4, !tbaa !5
  switch i32 %44, label %129 [
    i32 1, label %45
    i32 2, label %81
    i32 3, label %91
    i32 4, label %95
    i32 5, label %104
  ]

45:                                               ; preds = %41
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %6) #7
  call void @_ZNSt3setIN4CPTH14ConstantModIntILi404404404EEESt4lessIS2_ESaIS2_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(48) %6) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %7) #7
  %46 = call noundef i32 @_ZNK4CPTH14ConstantModIntILi404404404EE5toIntEv(ptr noundef nonnull align 4 dereferenceable(4) %3)
  %47 = load i32, ptr %5, align 4, !tbaa !5
  %48 = add nsw i32 %47, %46
  %49 = load i32, ptr %2, align 4, !tbaa !5
  %50 = srem i32 %48, %49
  %51 = sext i32 %50 to i64
  call void @_ZN4CPTH14ConstantModIntILi404404404EEC2Ex(ptr noundef nonnull align 4 dereferenceable(4) %7, i64 noundef %51)
  %52 = invoke { ptr, i8 } @_ZNSt3setIN4CPTH14ConstantModIntILi404404404EEESt4lessIS2_ESaIS2_EE6insertERKS2_(ptr noundef nonnull align 8 dereferenceable(48) %6, ptr noundef nonnull align 4 dereferenceable(4) %7)
          to label %53 unwind label %60

53:                                               ; preds = %45
  %54 = load i32, ptr %1, align 4, !tbaa !5
  %55 = srem i32 %54, 3
  %56 = load i32, ptr %5, align 4, !tbaa !5
  %57 = sext i32 %56 to i64
  switch i32 %55, label %65 [
    i32 0, label %58
    i32 1, label %62
  ]

58:                                               ; preds = %53
  %59 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN4CPTH14ConstantModIntILi404404404EEpLEx(ptr noundef nonnull align 4 dereferenceable(4) %3, i64 noundef %57)
          to label %70 unwind label %60

60:                                               ; preds = %70, %62, %58, %45
  %61 = landingpad { ptr, i32 }
          cleanup
  br label %80

62:                                               ; preds = %53
  call void @_ZN4CPTH14ConstantModIntILi404404404EEC2Ex(ptr noundef nonnull align 4 dereferenceable(4) %8, i64 noundef %57)
  %63 = load i32, ptr %8, align 4
  %64 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN4CPTH14ConstantModIntILi404404404EEpLES1_(ptr noundef nonnull align 4 dereferenceable(4) %3, i32 %63)
          to label %70 unwind label %60

65:                                               ; preds = %53
  %.sroa.013.0.copyload = load i32, ptr %3, align 4, !tbaa !5
  %66 = invoke i32 @_ZN4CPTHplILi404404404EEENS_14ConstantModIntIXT_EEExS2_(i64 noundef %57, i32 %.sroa.013.0.copyload)
          to label %67 unwind label %68

67:                                               ; preds = %65
  store i32 %66, ptr %3, align 4, !tbaa !5
  br label %70

68:                                               ; preds = %65
  %69 = landingpad { ptr, i32 }
          cleanup
  br label %80

70:                                               ; preds = %67, %62, %58
  %71 = invoke { ptr, i8 } @_ZNSt3setIN4CPTH14ConstantModIntILi404404404EEESt4lessIS2_ESaIS2_EE6insertERKS2_(ptr noundef nonnull align 8 dereferenceable(48) %6, ptr noundef nonnull align 4 dereferenceable(4) %3)
          to label %72 unwind label %60

72:                                               ; preds = %70
  %.sroa.011.0.copyload = load i32, ptr %3, align 4, !tbaa !5
  %.sroa.010.0.copyload = load i32, ptr %7, align 4, !tbaa !5
  %73 = call noundef zeroext i1 @_ZN4CPTHeqILi404404404EEEbNS_14ConstantModIntIXT_EEES2_(i32 %.sroa.011.0.copyload, i32 %.sroa.010.0.copyload)
  br i1 %73, label %75, label %74

74:                                               ; preds = %72
  call void @__assert_fail(ptr noundef nonnull @.str.2, ptr noundef nonnull @.str.1, i32 noundef 65, ptr noundef nonnull @__PRETTY_FUNCTION__.main) #8
  unreachable

75:                                               ; preds = %72
  %76 = call noundef i64 @_ZNKSt3setIN4CPTH14ConstantModIntILi404404404EEESt4lessIS2_ESaIS2_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(48) %6) #7
  %77 = icmp eq i64 %76, 1
  br i1 %77, label %79, label %78

78:                                               ; preds = %75
  call void @__assert_fail(ptr noundef nonnull @.str.3, ptr noundef nonnull @.str.1, i32 noundef 66, ptr noundef nonnull @__PRETTY_FUNCTION__.main) #8
  unreachable

79:                                               ; preds = %75
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #7
  call void @_ZNSt3setIN4CPTH14ConstantModIntILi404404404EEESt4lessIS2_ESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %6) #7
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %6) #7
  br label %129

80:                                               ; preds = %68, %60
  %.pn = phi { ptr, i32 } [ %61, %60 ], [ %69, %68 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #7
  call void @_ZNSt3setIN4CPTH14ConstantModIntILi404404404EEESt4lessIS2_ESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %6) #7
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %6) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #7
  resume { ptr, i32 } %.pn

81:                                               ; preds = %41
  %82 = load i32, ptr %1, align 4, !tbaa !5
  %83 = and i32 %82, 1
  %.not47 = icmp eq i32 %83, 0
  %84 = load i32, ptr %5, align 4, !tbaa !5
  %85 = sext i32 %84 to i64
  br i1 %.not47, label %88, label %86

86:                                               ; preds = %81
  %87 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN4CPTH14ConstantModIntILi404404404EEmIEx(ptr noundef nonnull align 4 dereferenceable(4) %3, i64 noundef %85)
  br label %129

88:                                               ; preds = %81
  call void @_ZN4CPTH14ConstantModIntILi404404404EEC2Ex(ptr noundef nonnull align 4 dereferenceable(4) %9, i64 noundef %85)
  %89 = load i32, ptr %9, align 4
  %90 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN4CPTH14ConstantModIntILi404404404EEmIES1_(ptr noundef nonnull align 4 dereferenceable(4) %3, i32 %89)
  br label %129

91:                                               ; preds = %41
  %92 = load i32, ptr %5, align 4, !tbaa !5
  %93 = sext i32 %92 to i64
  %.sroa.08.0.copyload = load i32, ptr %3, align 4, !tbaa !5
  %94 = call i32 @_ZN4CPTHmiILi404404404EEENS_14ConstantModIntIXT_EEExS2_(i64 noundef %93, i32 %.sroa.08.0.copyload)
  store i32 %94, ptr %3, align 4, !tbaa !5
  br label %129

95:                                               ; preds = %41
  %96 = load i32, ptr %1, align 4, !tbaa !5
  %97 = and i32 %96, 1
  %.not46 = icmp eq i32 %97, 0
  %98 = load i32, ptr %5, align 4, !tbaa !5
  %99 = sext i32 %98 to i64
  br i1 %.not46, label %102, label %100

100:                                              ; preds = %95
  %101 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN4CPTH14ConstantModIntILi404404404EEmLEx(ptr noundef nonnull align 4 dereferenceable(4) %3, i64 noundef %99)
  br label %129

102:                                              ; preds = %95
  %.sroa.06.0.copyload = load i32, ptr %3, align 4, !tbaa !5
  %103 = call i32 @_ZN4CPTHmlILi404404404EEENS_14ConstantModIntIXT_EEExS2_(i64 noundef %99, i32 %.sroa.06.0.copyload)
  store i32 %103, ptr %3, align 4, !tbaa !5
  br label %129

104:                                              ; preds = %41
  %.sroa.05.0.copyload = load i32, ptr %3, align 4, !tbaa !5
  %105 = load i32, ptr %1, align 4, !tbaa !5
  %106 = srem i32 %105, 3
  switch i32 %106, label %116 [
    i32 0, label %107
    i32 1, label %111
  ]

107:                                              ; preds = %104
  %108 = load i32, ptr %5, align 4, !tbaa !5
  %109 = sext i32 %108 to i64
  %110 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN4CPTH14ConstantModIntILi404404404EEdVEx(ptr noundef nonnull align 4 dereferenceable(4) %3, i64 noundef %109)
  br label %123

111:                                              ; preds = %104
  %112 = load i32, ptr %5, align 4, !tbaa !5
  %113 = sext i32 %112 to i64
  call void @_ZN4CPTH14ConstantModIntILi404404404EEC2Ex(ptr noundef nonnull align 4 dereferenceable(4) %10, i64 noundef %113)
  %114 = load i32, ptr %10, align 4
  %115 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN4CPTH14ConstantModIntILi404404404EEdVES1_(ptr noundef nonnull align 4 dereferenceable(4) %3, i32 %114)
  br label %123

116:                                              ; preds = %104
  %117 = call noundef i32 @_ZNK4CPTH14ConstantModIntILi404404404EE5toIntEv(ptr noundef nonnull align 4 dereferenceable(4) %3)
  %118 = sext i32 %117 to i64
  %119 = load i32, ptr %5, align 4, !tbaa !5
  %120 = sext i32 %119 to i64
  call void @_ZN4CPTH14ConstantModIntILi404404404EEC2Ex(ptr noundef nonnull align 4 dereferenceable(4) %11, i64 noundef %120)
  %121 = load i32, ptr %11, align 4
  %122 = call i32 @_ZN4CPTHdvILi404404404EEENS_14ConstantModIntIXT_EEExS2_(i64 noundef %118, i32 %121)
  store i32 %122, ptr %3, align 4, !tbaa !5
  br label %123

123:                                              ; preds = %111, %116, %107
  %.sroa.02.0.copyload = load i32, ptr %3, align 4, !tbaa !5
  %124 = load i32, ptr %5, align 4, !tbaa !5
  %125 = sext i32 %124 to i64
  %126 = call i32 @_ZN4CPTHmlILi404404404EEENS_14ConstantModIntIXT_EEES2_x(i32 %.sroa.02.0.copyload, i64 noundef %125)
  %127 = call noundef zeroext i1 @_ZN4CPTHeqILi404404404EEEbNS_14ConstantModIntIXT_EEES2_(i32 %126, i32 %.sroa.05.0.copyload)
  br i1 %127, label %129, label %128

128:                                              ; preds = %123
  call void @__assert_fail(ptr noundef nonnull @.str.4, ptr noundef nonnull @.str.1, i32 noundef 93, ptr noundef nonnull @__PRETTY_FUNCTION__.main) #8
  unreachable

129:                                              ; preds = %123, %100, %102, %86, %88, %91, %79, %41
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %12) #7
  %130 = call noundef i32 @_ZNK4CPTH14ConstantModIntILi404404404EE6moduloEv(ptr noundef nonnull align 4 dereferenceable(4) %3)
  %131 = sext i32 %130 to i64
  call void @_ZN4CPTH14ConstantModIntILi404404404EEC2Ex(ptr noundef nonnull align 4 dereferenceable(4) %12, i64 noundef %131)
  %132 = call noundef i32 @_ZNK4CPTH14ConstantModIntILi404404404EE5toIntEv(ptr noundef nonnull align 4 dereferenceable(4) %3)
  %133 = sext i32 %132 to i64
  call void @_ZN4CPTH14ConstantModIntILi404404404EE8setValueEx(ptr noundef nonnull align 4 dereferenceable(4) %12, i64 noundef %133)
  %134 = call noundef i32 @_ZNK4CPTH14ConstantModIntILi404404404EE5toIntEv(ptr noundef nonnull align 4 dereferenceable(4) %12)
  %135 = call noundef i32 @_Z3gcdii(i32 noundef %134, i32 noundef 404404404)
  %136 = icmp eq i32 %135, 1
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %13) #7
  br i1 %136, label %137, label %139

137:                                              ; preds = %129
  %.sroa.0.0.copyload = load i32, ptr %12, align 4, !tbaa !5
  %138 = call i32 @_ZN4CPTH3powILi404404404EEENS_14ConstantModIntIXT_EEES2_y(i32 %.sroa.0.0.copyload, i64 noundef %28)
  store i32 %138, ptr %13, align 4
  br label %139

139:                                              ; preds = %129, %137
  %.sink = phi ptr [ %13, %137 ], [ %12, %129 ]
  %140 = call noundef i32 @_ZNK4CPTH14ConstantModIntILi404404404EE5toIntEv(ptr noundef nonnull align 4 dereferenceable(4) %.sink)
  %141 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %140)
  %142 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %141, i8 noundef signext 10)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %13) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %12) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #7
  %143 = load i32, ptr %1, align 4, !tbaa !5
  %144 = add nsw i32 %143, -1
  store i32 %144, ptr %1, align 4, !tbaa !5
  %.not45 = icmp eq i32 %143, 0
  br i1 %.not45, label %._crit_edge64, label %41, !llvm.loop !12

._crit_edge64:                                    ; preds = %139, %._crit_edge
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #7
  ret i32 0
}

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

declare noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #3

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4CPTH14ConstantModIntILi404404404EEC2Ex(ptr noundef nonnull align 4 dereferenceable(4), i64 noundef) unnamed_addr #4 align 2

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

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

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

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

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

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress uwtable
declare dso_local { ptr, i8 } @_ZNSt3setIN4CPTH14ConstantModIntILi404404404EEESt4lessIS2_ESaIS2_EE6insertERKS2_(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZN4CPTH14ConstantModIntILi404404404EEpLEx(ptr noundef nonnull align 4 dereferenceable(4), i64 noundef) local_unnamed_addr #0 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local i32 @_ZN4CPTHplILi404404404EEENS_14ConstantModIntIXT_EEExS2_(i64 noundef, i32) local_unnamed_addr #0

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN4CPTHeqILi404404404EEEbNS_14ConstantModIntIXT_EEES2_(i32, i32) local_unnamed_addr #4

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZN4CPTH14ConstantModIntILi404404404EEmIEx(ptr noundef nonnull align 4 dereferenceable(4), i64 noundef) local_unnamed_addr #0 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local i32 @_ZN4CPTHmiILi404404404EEENS_14ConstantModIntIXT_EEExS2_(i64 noundef, i32) local_unnamed_addr #0

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZN4CPTH14ConstantModIntILi404404404EEmLEx(ptr noundef nonnull align 4 dereferenceable(4), i64 noundef) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local i32 @_ZN4CPTHmlILi404404404EEENS_14ConstantModIntIXT_EEExS2_(i64 noundef, i32) local_unnamed_addr #0

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZN4CPTH14ConstantModIntILi404404404EEdVEx(ptr noundef nonnull align 4 dereferenceable(4), i64 noundef) local_unnamed_addr #0 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local i32 @_ZN4CPTHdvILi404404404EEENS_14ConstantModIntIXT_EEExS2_(i64 noundef, i32) local_unnamed_addr #0

; Function Attrs: mustprogress uwtable
declare dso_local i32 @_ZN4CPTHmlILi404404404EEENS_14ConstantModIntIXT_EEES2_x(i32, i64 noundef) local_unnamed_addr #0

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4CPTH14ConstantModIntILi404404404EE8setValueEx(ptr noundef nonnull align 4 dereferenceable(4), i64 noundef) local_unnamed_addr #4 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 #6

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 dso_local i32 @_ZN4CPTH3powILi404404404EEENS_14ConstantModIntIXT_EEES2_y(i32, i64 noundef) local_unnamed_addr #0

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

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

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


; Effective O3 passes: DivRemPairsPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,ReassociatePass,SROAPass,SimplifyCFGPass