; LLVM IR from tangjz/acm-icpc :: projecteuler (590)

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

%struct.Exp = type <{ i32, i8, [3 x i8] }>

@tot = external dso_local global i32, align 4
@pr = external dso_local global [50001 x i32], align 16
@d = external dso_local global [50001 x i32], align 16
@c = external dso_local global [5087 x [5087 x i32]], align 16
@cnt = external dso_local global [17 x i32], align 16
@fct = external dso_local global [17 x [5087 x %struct.Exp]], align 16
@.str = external hidden unnamed_addr constant [3 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [9 x i8], align 1

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

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

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

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

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

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

25:                                               ; preds = %78, %0
  %26 = load i32, ptr %2, align 4, !tbaa !5
  %27 = icmp slt i32 %26, 50001
  br i1 %27, label %29, label %28

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

29:                                               ; preds = %25
  %30 = load i32, ptr %2, align 4, !tbaa !5
  %31 = sext i32 %30 to i64
  %32 = getelementptr inbounds [50001 x i32], ptr @d, i64 0, i64 %31
  %33 = load i32, ptr %32, align 4, !tbaa !5
  %34 = icmp ne i32 %33, 0
  br i1 %34, label %44, label %35

35:                                               ; preds = %29
  %36 = load i32, ptr %2, align 4, !tbaa !5
  %37 = load i32, ptr %2, align 4, !tbaa !5
  %38 = sext i32 %37 to i64
  %39 = getelementptr inbounds [50001 x i32], ptr @d, i64 0, i64 %38
  store i32 %36, ptr %39, align 4, !tbaa !5
  %40 = load i32, ptr @tot, align 4, !tbaa !5
  %41 = add nsw i32 %40, 1
  store i32 %41, ptr @tot, align 4, !tbaa !5
  %42 = sext i32 %40 to i64
  %43 = getelementptr inbounds [50001 x i32], ptr @pr, i64 0, i64 %42
  store i32 %36, ptr %43, align 4, !tbaa !5
  br label %44

44:                                               ; preds = %35, %29
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #6
  store i32 0, ptr %4, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #6
  br label %45

45:                                               ; preds = %73, %44
  %46 = load i32, ptr %2, align 4, !tbaa !5
  %47 = load i32, ptr %4, align 4, !tbaa !5
  %48 = sext i32 %47 to i64
  %49 = getelementptr inbounds [50001 x i32], ptr @pr, i64 0, i64 %48
  %50 = load i32, ptr %49, align 4, !tbaa !5
  %51 = mul nsw i32 %46, %50
  store i32 %51, ptr %5, align 4, !tbaa !5
  %52 = icmp slt i32 %51, 50001
  br i1 %52, label %54, label %53

53:                                               ; preds = %45
  store i32 5, ptr %3, align 4
  br label %76

54:                                               ; preds = %45
  %55 = load i32, ptr %4, align 4, !tbaa !5
  %56 = sext i32 %55 to i64
  %57 = getelementptr inbounds [50001 x i32], ptr @pr, i64 0, i64 %56
  %58 = load i32, ptr %57, align 4, !tbaa !5
  %59 = load i32, ptr %5, align 4, !tbaa !5
  %60 = sext i32 %59 to i64
  %61 = getelementptr inbounds [50001 x i32], ptr @d, i64 0, i64 %60
  store i32 %58, ptr %61, align 4, !tbaa !5
  %62 = load i32, ptr %2, align 4, !tbaa !5
  %63 = sext i32 %62 to i64
  %64 = getelementptr inbounds [50001 x i32], ptr @d, i64 0, i64 %63
  %65 = load i32, ptr %64, align 4, !tbaa !5
  %66 = load i32, ptr %4, align 4, !tbaa !5
  %67 = sext i32 %66 to i64
  %68 = getelementptr inbounds [50001 x i32], ptr @pr, i64 0, i64 %67
  %69 = load i32, ptr %68, align 4, !tbaa !5
  %70 = icmp eq i32 %65, %69
  br i1 %70, label %71, label %72

71:                                               ; preds = %54
  store i32 5, ptr %3, align 4
  br label %76

72:                                               ; preds = %54
  br label %73

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

76:                                               ; preds = %71, %53
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #6
  br label %77

77:                                               ; preds = %76
  br label %78

78:                                               ; preds = %77
  %79 = load i32, ptr %2, align 4, !tbaa !5
  %80 = add nsw i32 %79, 1
  store i32 %80, ptr %2, align 4, !tbaa !5
  br label %25, !llvm.loop !11

81:                                               ; preds = %28
  %82 = load i32, ptr @tot, align 4, !tbaa !5
  %83 = sext i32 %82 to i64
  %84 = getelementptr inbounds [50001 x i32], ptr @pr, i64 0, i64 %83
  store i32 50001, ptr %84, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #6
  store i32 0, ptr %6, align 4, !tbaa !5
  br label %85

85:                                               ; preds = %147, %81
  %86 = load i32, ptr %6, align 4, !tbaa !5
  %87 = icmp slt i32 %86, 5087
  br i1 %87, label %89, label %88

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

89:                                               ; preds = %85
  %90 = load i32, ptr %6, align 4, !tbaa !5
  %91 = sext i32 %90 to i64
  %92 = getelementptr inbounds [5087 x [5087 x i32]], ptr @c, i64 0, i64 %91
  %93 = load i32, ptr %6, align 4, !tbaa !5
  %94 = sext i32 %93 to i64
  %95 = getelementptr inbounds [5087 x i32], ptr %92, i64 0, i64 %94
  store i32 1, ptr %95, align 4, !tbaa !5
  %96 = load i32, ptr %6, align 4, !tbaa !5
  %97 = sext i32 %96 to i64
  %98 = getelementptr inbounds [5087 x [5087 x i32]], ptr @c, i64 0, i64 %97
  %99 = getelementptr inbounds [5087 x i32], ptr %98, i64 0, i64 0
  store i32 1, ptr %99, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #6
  store i32 1, ptr %7, align 4, !tbaa !5
  br label %100

100:                                              ; preds = %143, %89
  %101 = load i32, ptr %7, align 4, !tbaa !5
  %102 = load i32, ptr %6, align 4, !tbaa !5
  %103 = icmp slt i32 %101, %102
  br i1 %103, label %105, label %104

104:                                              ; preds = %100
  store i32 11, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #6
  br label %146

105:                                              ; preds = %100
  %106 = load i32, ptr %6, align 4, !tbaa !5
  %107 = sub nsw i32 %106, 1
  %108 = sext i32 %107 to i64
  %109 = getelementptr inbounds [5087 x [5087 x i32]], ptr @c, i64 0, i64 %108
  %110 = load i32, ptr %7, align 4, !tbaa !5
  %111 = sub nsw i32 %110, 1
  %112 = sext i32 %111 to i64
  %113 = getelementptr inbounds [5087 x i32], ptr %109, i64 0, i64 %112
  %114 = load i32, ptr %113, align 4, !tbaa !5
  %115 = load i32, ptr %6, align 4, !tbaa !5
  %116 = sub nsw i32 %115, 1
  %117 = sext i32 %116 to i64
  %118 = getelementptr inbounds [5087 x [5087 x i32]], ptr @c, i64 0, i64 %117
  %119 = load i32, ptr %7, align 4, !tbaa !5
  %120 = sext i32 %119 to i64
  %121 = getelementptr inbounds [5087 x i32], ptr %118, i64 0, i64 %120
  %122 = load i32, ptr %121, align 4, !tbaa !5
  %123 = add nsw i32 %114, %122
  %124 = load i32, ptr %6, align 4, !tbaa !5
  %125 = sext i32 %124 to i64
  %126 = getelementptr inbounds [5087 x [5087 x i32]], ptr @c, i64 0, i64 %125
  %127 = load i32, ptr %7, align 4, !tbaa !5
  %128 = sext i32 %127 to i64
  %129 = getelementptr inbounds [5087 x i32], ptr %126, i64 0, i64 %128
  store i32 %123, ptr %129, align 4, !tbaa !5
  %130 = icmp sge i32 %123, 1000000000
  br i1 %130, label %131, label %141

131:                                              ; preds = %105
  %132 = load i32, ptr %6, align 4, !tbaa !5
  %133 = sext i32 %132 to i64
  %134 = getelementptr inbounds [5087 x [5087 x i32]], ptr @c, i64 0, i64 %133
  %135 = load i32, ptr %7, align 4, !tbaa !5
  %136 = sext i32 %135 to i64
  %137 = getelementptr inbounds [5087 x i32], ptr %134, i64 0, i64 %136
  %138 = load i32, ptr %137, align 4, !tbaa !5
  %139 = sub nsw i32 %138, 1000000000
  store i32 %139, ptr %137, align 4, !tbaa !5
  %140 = icmp ne i32 %139, 0
  br label %141

141:                                              ; preds = %131, %105
  %142 = phi i1 [ false, %105 ], [ %140, %131 ]
  br label %143

143:                                              ; preds = %141
  %144 = load i32, ptr %7, align 4, !tbaa !5
  %145 = add nsw i32 %144, 1
  store i32 %145, ptr %7, align 4, !tbaa !5
  br label %100, !llvm.loop !12

146:                                              ; preds = %104
  br label %147

147:                                              ; preds = %146
  %148 = load i32, ptr %6, align 4, !tbaa !5
  %149 = add nsw i32 %148, 1
  store i32 %149, ptr %6, align 4, !tbaa !5
  br label %85, !llvm.loop !13

150:                                              ; preds = %88
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #6
  br label %151

151:                                              ; preds = %285, %150
  %152 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef %8)
  %153 = icmp eq i32 %152, 1
  br i1 %153, label %154, label %292

154:                                              ; preds = %151
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #6
  store i32 0, ptr %9, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #6
  store i32 0, ptr %10, align 4, !tbaa !5
  br label %155

155:                                              ; preds = %200, %154
  %156 = load i32, ptr %10, align 4, !tbaa !5
  %157 = sext i32 %156 to i64
  %158 = getelementptr inbounds [50001 x i32], ptr @pr, i64 0, i64 %157
  %159 = load i32, ptr %158, align 4, !tbaa !5
  %160 = load i32, ptr %8, align 4, !tbaa !5
  %161 = icmp sle i32 %159, %160
  br i1 %161, label %163, label %162

162:                                              ; preds = %155
  store i32 16, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #6
  br label %203

163:                                              ; preds = %155
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #6
  store i32 0, ptr %11, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #6
  %164 = load i32, ptr %8, align 4, !tbaa !5
  store i32 %164, ptr %12, align 4, !tbaa !5
  br label %165

165:                                              ; preds = %174, %163
  %166 = load i32, ptr %12, align 4, !tbaa !5
  %167 = load i32, ptr %10, align 4, !tbaa !5
  %168 = sext i32 %167 to i64
  %169 = getelementptr inbounds [50001 x i32], ptr @pr, i64 0, i64 %168
  %170 = load i32, ptr %169, align 4, !tbaa !5
  %171 = icmp sge i32 %166, %170
  br i1 %171, label %173, label %172

172:                                              ; preds = %165
  store i32 19, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #6
  br label %183

173:                                              ; preds = %165
  br label %174

174:                                              ; preds = %173
  %175 = load i32, ptr %10, align 4, !tbaa !5
  %176 = sext i32 %175 to i64
  %177 = getelementptr inbounds [50001 x i32], ptr @pr, i64 0, i64 %176
  %178 = load i32, ptr %177, align 4, !tbaa !5
  %179 = load i32, ptr %12, align 4, !tbaa !5
  %180 = sdiv i32 %179, %178
  store i32 %180, ptr %12, align 4, !tbaa !5
  %181 = load i32, ptr %11, align 4, !tbaa !5
  %182 = add nsw i32 %181, 1
  store i32 %182, ptr %11, align 4, !tbaa !5
  br label %165, !llvm.loop !14

183:                                              ; preds = %172
  br label %184

184:                                              ; preds = %189, %183
  %185 = load i32, ptr %9, align 4, !tbaa !5
  %186 = load i32, ptr %11, align 4, !tbaa !5
  %187 = icmp slt i32 %185, %186
  br i1 %187, label %188, label %194

188:                                              ; preds = %184
  br label %189

189:                                              ; preds = %188
  %190 = load i32, ptr %9, align 4, !tbaa !5
  %191 = add nsw i32 %190, 1
  store i32 %191, ptr %9, align 4, !tbaa !5
  %192 = sext i32 %191 to i64
  %193 = getelementptr inbounds [17 x i32], ptr @cnt, i64 0, i64 %192
  store i32 0, ptr %193, align 4, !tbaa !5
  br label %184, !llvm.loop !15

194:                                              ; preds = %184
  %195 = load i32, ptr %11, align 4, !tbaa !5
  %196 = sext i32 %195 to i64
  %197 = getelementptr inbounds [17 x i32], ptr @cnt, i64 0, i64 %196
  %198 = load i32, ptr %197, align 4, !tbaa !5
  %199 = add nsw i32 %198, 1
  store i32 %199, ptr %197, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #6
  br label %200

200:                                              ; preds = %194
  %201 = load i32, ptr %10, align 4, !tbaa !5
  %202 = add nsw i32 %201, 1
  store i32 %202, ptr %10, align 4, !tbaa !5
  br label %155, !llvm.loop !16

203:                                              ; preds = %162
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #6
  store i64 1, ptr %13, align 8, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #6
  store i32 1, ptr %14, align 4, !tbaa !5
  br label %204

204:                                              ; preds = %275, %203
  %205 = load i32, ptr %14, align 4, !tbaa !5
  %206 = load i32, ptr %9, align 4, !tbaa !5
  %207 = icmp sle i32 %205, %206
  br i1 %207, label %209, label %208

208:                                              ; preds = %204
  store i32 25, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #6
  br label %285

209:                                              ; preds = %204
  %210 = load i32, ptr %14, align 4, !tbaa !5
  %211 = sext i32 %210 to i64
  %212 = getelementptr inbounds [17 x i32], ptr @cnt, i64 0, i64 %211
  %213 = load i32, ptr %212, align 4, !tbaa !5
  %214 = load i32, ptr %14, align 4, !tbaa !5
  %215 = load i32, ptr %9, align 4, !tbaa !5
  %216 = icmp eq i32 %214, %215
  %217 = zext i1 %216 to i64
  %218 = getelementptr inbounds [3 x i8], ptr @.str.3, i64 0, i64 %217
  %219 = load i8, ptr %218, align 1, !tbaa !19
  %220 = sext i8 %219 to i32
  %221 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %213, i32 noundef %220)
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #6
  call void @_ZN3ExpC2Ei(ptr noundef nonnull align 4 dereferenceable(5) %15, i32 noundef 1)
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #6
  %222 = load i32, ptr %14, align 4, !tbaa !5
  call void @_ZN3ExpC2Ei(ptr noundef nonnull align 4 dereferenceable(5) %16, i32 noundef %222)
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #6
  store i32 0, ptr %17, align 4, !tbaa !5
  br label %223

223:                                              ; preds = %238, %209
  %224 = load i32, ptr %17, align 4, !tbaa !5
  %225 = load i32, ptr %14, align 4, !tbaa !5
  %226 = sext i32 %225 to i64
  %227 = getelementptr inbounds [17 x i32], ptr @cnt, i64 0, i64 %226
  %228 = load i32, ptr %227, align 4, !tbaa !5
  %229 = icmp sle i32 %224, %228
  br i1 %229, label %231, label %230

230:                                              ; preds = %223
  store i32 28, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #6
  br label %243

231:                                              ; preds = %223
  %232 = load i32, ptr %14, align 4, !tbaa !5
  %233 = sext i32 %232 to i64
  %234 = getelementptr inbounds [17 x [5087 x %struct.Exp]], ptr @fct, i64 0, i64 %233
  %235 = load i32, ptr %17, align 4, !tbaa !5
  %236 = sext i32 %235 to i64
  %237 = getelementptr inbounds [5087 x %struct.Exp], ptr %234, i64 0, i64 %236
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %237, ptr align 4 %15, i64 5, i1 false), !tbaa.struct !20
  br label %238

238:                                              ; preds = %231
  %239 = load i32, ptr %17, align 4, !tbaa !5
  %240 = add nsw i32 %239, 1
  store i32 %240, ptr %17, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #6
  %241 = call i64 @_ZNK3ExpmlERKS_(ptr noundef nonnull align 4 dereferenceable(5) %15, ptr noundef nonnull align 4 dereferenceable(5) %16)
  %242 = trunc i64 %241 to i40
  store i40 %242, ptr %18, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %15, ptr align 4 %18, i64 5, i1 false), !tbaa.struct !20
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #6
  br label %223, !llvm.loop !23

243:                                              ; preds = %230
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #6
  call void @_ZN3ExpC2Ei(ptr noundef nonnull align 4 dereferenceable(5) %19, i32 noundef 1)
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %15, ptr align 4 %19, i64 5, i1 false), !tbaa.struct !20
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #6
  %244 = load i32, ptr %14, align 4, !tbaa !5
  %245 = add nsw i32 %244, 1
  call void @_ZN3ExpC2Ei(ptr noundef nonnull align 4 dereferenceable(5) %20, i32 noundef %245)
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %16, ptr align 4 %20, i64 5, i1 false), !tbaa.struct !20
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #6
  %246 = load i32, ptr %14, align 4, !tbaa !5
  %247 = sext i32 %246 to i64
  %248 = getelementptr inbounds [17 x i32], ptr @cnt, i64 0, i64 %247
  %249 = load i32, ptr %248, align 4, !tbaa !5
  store i32 %249, ptr %21, align 4, !tbaa !5
  br label %250

250:                                              ; preds = %269, %243
  %251 = load i32, ptr %21, align 4, !tbaa !5
  %252 = icmp sge i32 %251, 0
  br i1 %252, label %254, label %253

253:                                              ; preds = %250
  store i32 31, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #6
  br label %274

254:                                              ; preds = %250
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #6
  %255 = load i32, ptr %14, align 4, !tbaa !5
  %256 = sext i32 %255 to i64
  %257 = getelementptr inbounds [17 x [5087 x %struct.Exp]], ptr @fct, i64 0, i64 %256
  %258 = load i32, ptr %21, align 4, !tbaa !5
  %259 = sext i32 %258 to i64
  %260 = getelementptr inbounds [5087 x %struct.Exp], ptr %257, i64 0, i64 %259
  %261 = call i64 @_ZNK3ExpmlERKS_(ptr noundef nonnull align 4 dereferenceable(5) %260, ptr noundef nonnull align 4 dereferenceable(5) %15)
  %262 = trunc i64 %261 to i40
  store i40 %262, ptr %22, align 4
  %263 = load i32, ptr %14, align 4, !tbaa !5
  %264 = sext i32 %263 to i64
  %265 = getelementptr inbounds [17 x [5087 x %struct.Exp]], ptr @fct, i64 0, i64 %264
  %266 = load i32, ptr %21, align 4, !tbaa !5
  %267 = sext i32 %266 to i64
  %268 = getelementptr inbounds [5087 x %struct.Exp], ptr %265, i64 0, i64 %267
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %268, ptr align 4 %22, i64 5, i1 false), !tbaa.struct !20
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #6
  br label %269

269:                                              ; preds = %254
  %270 = load i32, ptr %21, align 4, !tbaa !5
  %271 = add nsw i32 %270, -1
  store i32 %271, ptr %21, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #6
  %272 = call i64 @_ZNK3ExpmlERKS_(ptr noundef nonnull align 4 dereferenceable(5) %15, ptr noundef nonnull align 4 dereferenceable(5) %16)
  %273 = trunc i64 %272 to i40
  store i40 %273, ptr %23, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %15, ptr align 4 %23, i64 5, i1 false), !tbaa.struct !20
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #6
  br label %250, !llvm.loop !24

274:                                              ; preds = %253
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #6
  br label %275

275:                                              ; preds = %274
  %276 = load i32, ptr %14, align 4, !tbaa !5
  %277 = add nsw i32 %276, 1
  store i32 %277, ptr %14, align 4, !tbaa !5
  %278 = sext i32 %276 to i64
  %279 = getelementptr inbounds [17 x i32], ptr @cnt, i64 0, i64 %278
  %280 = load i32, ptr %279, align 4, !tbaa !5
  %281 = add nsw i32 %280, 1
  %282 = sext i32 %281 to i64
  %283 = load i64, ptr %13, align 8, !tbaa !17
  %284 = mul nsw i64 %283, %282
  store i64 %284, ptr %13, align 8, !tbaa !17
  br label %204, !llvm.loop !25

285:                                              ; preds = %208
  %286 = load i64, ptr %13, align 8, !tbaa !17
  %287 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, i64 noundef %286)
  %288 = load i32, ptr %9, align 4, !tbaa !5
  call void @_ZN3ExpC2Ei(ptr noundef nonnull align 4 dereferenceable(5) %24, i32 noundef 1)
  %289 = load i64, ptr %24, align 4
  %290 = call noundef i32 @_Z3dfsi3Exp(i32 noundef %288, i64 %289)
  %291 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, i32 noundef %290)
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #6
  br label %151, !llvm.loop !26

292:                                              ; preds = %151
  store i32 0, ptr %1, align 4
  store i32 1, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #6
  %293 = load i32, ptr %1, align 4
  ret i32 %293
}

declare i32 @__isoc99_scanf(ptr noundef, ...) #4

declare i32 @printf(ptr noundef, ...) #4

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { 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 #4 = { "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 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { 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}
!13 = distinct !{!13, !10}
!14 = distinct !{!14, !10}
!15 = distinct !{!15, !10}
!16 = distinct !{!16, !10}
!17 = !{!18, !18, i64 0}
!18 = !{!"long long", !7, i64 0}
!19 = !{!7, !7, i64 0}
!20 = !{i64 0, i64 4, !5, i64 4, i64 1, !21}
!21 = !{!22, !22, i64 0}
!22 = !{!"bool", !7, i64 0}
!23 = distinct !{!23, !10}
!24 = distinct !{!24, !10}
!25 = distinct !{!25, !10}
!26 = distinct !{!26, !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"

%struct.Exp = type <{ i32, i8, [3 x i8] }>

@tot = external dso_local local_unnamed_addr global i32, align 4
@pr = external dso_local local_unnamed_addr global [50001 x i32], align 16
@d = external dso_local local_unnamed_addr global [50001 x i32], align 16
@c = external dso_local local_unnamed_addr global [5087 x [5087 x i32]], align 16
@cnt = external dso_local local_unnamed_addr global [17 x i32], align 16
@fct = external dso_local global [17 x [5087 x %struct.Exp]], align 16
@.str = external hidden unnamed_addr constant [3 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [9 x i8], align 1

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

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

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

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #2

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

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #3 {
  %1 = alloca i32, align 4
  %2 = alloca %struct.Exp, align 8
  %3 = alloca %struct.Exp, align 4
  %4 = alloca %struct.Exp, align 4
  %5 = alloca %struct.Exp, align 4
  %6 = alloca %struct.Exp, align 8
  %tot.promoted = load i32, ptr @tot, align 4, !tbaa !5
  br label %10

7:                                                ; preds = %._crit_edge
  %8 = sext i32 %19 to i64
  %9 = getelementptr inbounds [50001 x i32], ptr @pr, i64 0, i64 %8
  store i32 50001, ptr %9, align 4, !tbaa !5
  br label %37

10:                                               ; preds = %0, %._crit_edge
  %indvars.iv126 = phi i64 [ 2, %0 ], [ %indvars.iv.next127, %._crit_edge ]
  %11 = phi i32 [ %tot.promoted, %0 ], [ %19, %._crit_edge ]
  %12 = getelementptr inbounds [50001 x i32], ptr @d, i64 0, i64 %indvars.iv126
  %13 = load i32, ptr %12, align 4, !tbaa !5
  %.not85 = icmp eq i32 %13, 0
  %14 = trunc nuw nsw i64 %indvars.iv126 to i32
  br i1 %.not85, label %15, label %._crit_edge157

15:                                               ; preds = %10
  store i32 %14, ptr %12, align 4, !tbaa !5
  %16 = add nsw i32 %11, 1
  store i32 %16, ptr @tot, align 4, !tbaa !5
  %17 = sext i32 %11 to i64
  %18 = getelementptr inbounds [50001 x i32], ptr @pr, i64 0, i64 %17
  store i32 %14, ptr %18, align 4, !tbaa !5
  br label %._crit_edge157

._crit_edge157:                                   ; preds = %10, %15
  %19 = phi i32 [ %16, %15 ], [ %11, %10 ]
  %20 = load i32, ptr @pr, align 16, !tbaa !5
  %21 = mul nsw i32 %20, %14
  %22 = icmp slt i32 %21, 50001
  br i1 %22, label %.lr.ph, label %._crit_edge

23:                                               ; preds = %.lr.ph
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %24 = getelementptr inbounds [50001 x i32], ptr @pr, i64 0, i64 %indvars.iv.next
  %25 = load i32, ptr %24, align 4, !tbaa !5
  %26 = mul nsw i32 %25, %14
  %27 = icmp slt i32 %26, 50001
  br i1 %27, label %.lr.ph, label %._crit_edge, !llvm.loop !9

.lr.ph:                                           ; preds = %._crit_edge157, %23
  %indvars.iv = phi i64 [ %indvars.iv.next, %23 ], [ 0, %._crit_edge157 ]
  %28 = phi i32 [ %26, %23 ], [ %21, %._crit_edge157 ]
  %29 = phi i32 [ %25, %23 ], [ %20, %._crit_edge157 ]
  %30 = sext i32 %28 to i64
  %31 = getelementptr inbounds [50001 x i32], ptr @d, i64 0, i64 %30
  store i32 %29, ptr %31, align 4, !tbaa !5
  %32 = load i32, ptr %12, align 4, !tbaa !5
  %33 = icmp eq i32 %32, %29
  br i1 %33, label %._crit_edge, label %23

._crit_edge:                                      ; preds = %23, %.lr.ph, %._crit_edge157
  %indvars.iv.next127 = add nuw nsw i64 %indvars.iv126, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next127, 50001
  br i1 %exitcond.not, label %7, label %10, !llvm.loop !11

34:                                               ; preds = %._crit_edge95
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #7
  %35 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %1)
  %36 = icmp eq i32 %35, 1
  br i1 %36, label %.preheader88, label %._crit_edge121

37:                                               ; preds = %7, %._crit_edge95
  %indvars.iv133 = phi i64 [ 0, %7 ], [ %indvars.iv.next134, %._crit_edge95 ]
  %38 = add nsw i64 %indvars.iv133, -1
  %39 = getelementptr inbounds [5087 x [5087 x i32]], ptr @c, i64 0, i64 %indvars.iv133
  %40 = getelementptr inbounds [5087 x [5087 x i32]], ptr @c, i64 0, i64 %indvars.iv133, i64 %indvars.iv133
  store i32 1, ptr %40, align 4, !tbaa !5
  store i32 1, ptr %39, align 4, !tbaa !5
  %41 = icmp ugt i64 %indvars.iv133, 1
  br i1 %41, label %.lr.ph94, label %._crit_edge95

.lr.ph94:                                         ; preds = %37
  %42 = add nsw i64 %indvars.iv133, -1
  %.phi.trans.insert = getelementptr inbounds [5087 x [5087 x i32]], ptr @c, i64 0, i64 %42, i64 0
  %.pre = load i32, ptr %.phi.trans.insert, align 4, !tbaa !5
  %min.iters.check = icmp ult i64 %indvars.iv133, 9
  br i1 %min.iters.check, label %scalar.ph.preheader, label %vector.ph

scalar.ph.preheader:                              ; preds = %middle.block, %.lr.ph94
  %.ph = phi i32 [ %.pre, %.lr.ph94 ], [ %vector.recur.extract, %middle.block ]
  %indvars.iv129.ph = phi i64 [ 1, %.lr.ph94 ], [ %ind.end, %middle.block ]
  br label %scalar.ph

vector.ph:                                        ; preds = %.lr.ph94
  %n.vec = and i64 %38, -8
  %ind.end = or disjoint i64 %n.vec, 1
  %vector.recur.init = insertelement <4 x i32> poison, i32 %.pre, i64 3
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %vector.recur = phi <4 x i32> [ %vector.recur.init, %vector.ph ], [ %wide.load167, %vector.body ]
  %offset.idx = or disjoint i64 %index, 1
  %43 = getelementptr inbounds [5087 x [5087 x i32]], ptr @c, i64 0, i64 %42, i64 %offset.idx
  %44 = getelementptr inbounds i8, ptr %43, i64 16
  %wide.load = load <4 x i32>, ptr %43, align 4, !tbaa !5
  %wide.load167 = load <4 x i32>, ptr %44, align 4, !tbaa !5
  %45 = shufflevector <4 x i32> %vector.recur, <4 x i32> %wide.load, <4 x i32> <i32 3, i32 4, i32 5, i32 6>
  %46 = shufflevector <4 x i32> %wide.load, <4 x i32> %wide.load167, <4 x i32> <i32 3, i32 4, i32 5, i32 6>
  %47 = add nsw <4 x i32> %wide.load, %45
  %48 = add nsw <4 x i32> %wide.load167, %46
  %49 = getelementptr inbounds [5087 x [5087 x i32]], ptr @c, i64 0, i64 %indvars.iv133, i64 %offset.idx
  %50 = icmp sgt <4 x i32> %47, <i32 999999999, i32 999999999, i32 999999999, i32 999999999>
  %51 = icmp sgt <4 x i32> %48, <i32 999999999, i32 999999999, i32 999999999, i32 999999999>
  %52 = add nsw <4 x i32> %47, <i32 -1000000000, i32 -1000000000, i32 -1000000000, i32 -1000000000>
  %53 = add nsw <4 x i32> %48, <i32 -1000000000, i32 -1000000000, i32 -1000000000, i32 -1000000000>
  %54 = select <4 x i1> %50, <4 x i32> %52, <4 x i32> %47
  %55 = select <4 x i1> %51, <4 x i32> %53, <4 x i32> %48
  %56 = getelementptr inbounds i8, ptr %49, i64 16
  store <4 x i32> %54, ptr %49, align 4, !tbaa !5
  store <4 x i32> %55, ptr %56, align 4, !tbaa !5
  %index.next = add nuw i64 %index, 8
  %57 = icmp eq i64 %index.next, %n.vec
  br i1 %57, label %middle.block, label %vector.body, !llvm.loop !12

middle.block:                                     ; preds = %vector.body
  %vector.recur.extract = extractelement <4 x i32> %wide.load167, i64 3
  %cmp.n = icmp eq i64 %38, %n.vec
  br i1 %cmp.n, label %._crit_edge95, label %scalar.ph.preheader

._crit_edge95:                                    ; preds = %scalar.ph, %middle.block, %37
  %indvars.iv.next134 = add nuw nsw i64 %indvars.iv133, 1
  %exitcond136.not = icmp eq i64 %indvars.iv.next134, 5087
  br i1 %exitcond136.not, label %34, label %37, !llvm.loop !15

scalar.ph:                                        ; preds = %scalar.ph.preheader, %scalar.ph
  %58 = phi i32 [ %60, %scalar.ph ], [ %.ph, %scalar.ph.preheader ]
  %indvars.iv129 = phi i64 [ %indvars.iv.next130, %scalar.ph ], [ %indvars.iv129.ph, %scalar.ph.preheader ]
  %59 = getelementptr inbounds [5087 x [5087 x i32]], ptr @c, i64 0, i64 %42, i64 %indvars.iv129
  %60 = load i32, ptr %59, align 4, !tbaa !5
  %61 = add nsw i32 %60, %58
  %62 = getelementptr inbounds [5087 x [5087 x i32]], ptr @c, i64 0, i64 %indvars.iv133, i64 %indvars.iv129
  %63 = icmp sgt i32 %61, 999999999
  %64 = add nsw i32 %61, -1000000000
  %spec.select = select i1 %63, i32 %64, i32 %61
  store i32 %spec.select, ptr %62, align 4, !tbaa !5
  %indvars.iv.next130 = add nuw nsw i64 %indvars.iv129, 1
  %exitcond132.not = icmp eq i64 %indvars.iv.next130, %indvars.iv133
  br i1 %exitcond132.not, label %._crit_edge95, label %scalar.ph, !llvm.loop !16

.preheader88:                                     ; preds = %34, %._crit_edge119
  %65 = load i32, ptr %1, align 4, !tbaa !5
  %66 = load i32, ptr @pr, align 16, !tbaa !5
  %.not102 = icmp sgt i32 %66, %65
  br i1 %.not102, label %._crit_edge119, label %.preheader86

.preheader87:                                     ; preds = %._crit_edge101
  %.not82115 = icmp slt i32 %.1.lcssa, 1
  br i1 %.not82115, label %._crit_edge119, label %.lr.ph118.preheader

.lr.ph118.preheader:                              ; preds = %.preheader87
  %67 = zext nneg i32 %.1.lcssa to i64
  %68 = add nuw i32 %.1.lcssa, 1
  %wide.trip.count = zext i32 %68 to i64
  br label %.lr.ph118

.preheader86:                                     ; preds = %.preheader88, %._crit_edge101
  %indvars.iv143 = phi i64 [ %indvars.iv.next144, %._crit_edge101 ], [ 0, %.preheader88 ]
  %69 = phi i32 [ %85, %._crit_edge101 ], [ %66, %.preheader88 ]
  %.077103 = phi i32 [ %.1.lcssa, %._crit_edge101 ], [ 0, %.preheader88 ]
  br label %77

.preheader:                                       ; preds = %77
  %.not122 = icmp sgt i32 %.077103, %.07597
  br i1 %.not122, label %._crit_edge101, label %.lr.ph100.preheader

.lr.ph100.preheader:                              ; preds = %.preheader
  %70 = add i32 %.077103, 1
  %71 = sext i32 %70 to i64
  %72 = shl nsw i64 %71, 2
  %scevgep = getelementptr i8, ptr @cnt, i64 %72
  %73 = sub i32 %.07597, %.077103
  %74 = zext i32 %73 to i64
  %75 = shl nuw nsw i64 %74, 2
  %76 = add nuw nsw i64 %75, 4
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 4 dereferenceable(1) %scevgep, i8 0, i64 %76, i1 false), !tbaa !5
  br label %._crit_edge101

77:                                               ; preds = %.preheader86, %77
  %indvars.iv140 = phi i32 [ 1, %.preheader86 ], [ %indvars.iv.next141, %77 ]
  %.07498 = phi i32 [ %65, %.preheader86 ], [ %78, %77 ]
  %.07597 = phi i32 [ 0, %.preheader86 ], [ %79, %77 ]
  %78 = sdiv i32 %.07498, %69
  %79 = add nuw nsw i32 %.07597, 1
  %.not84 = icmp slt i32 %78, %69
  %indvars.iv.next141 = add nuw i32 %indvars.iv140, 1
  br i1 %.not84, label %.preheader, label %77, !llvm.loop !17

._crit_edge101:                                   ; preds = %.lr.ph100.preheader, %.preheader
  %.1.lcssa = phi i32 [ %.077103, %.preheader ], [ %indvars.iv140, %.lr.ph100.preheader ]
  %80 = zext nneg i32 %79 to i64
  %81 = getelementptr inbounds [17 x i32], ptr @cnt, i64 0, i64 %80
  %82 = load i32, ptr %81, align 4, !tbaa !5
  %83 = add nsw i32 %82, 1
  store i32 %83, ptr %81, align 4, !tbaa !5
  %indvars.iv.next144 = add nuw nsw i64 %indvars.iv143, 1
  %84 = getelementptr inbounds [50001 x i32], ptr @pr, i64 0, i64 %indvars.iv.next144
  %85 = load i32, ptr %84, align 4, !tbaa !5
  %.not = icmp sgt i32 %85, %65
  br i1 %.not, label %.preheader87, label %.preheader86, !llvm.loop !18

._crit_edge119:                                   ; preds = %._crit_edge114, %.preheader88, %.preheader87
  %.077.lcssa161 = phi i32 [ %.1.lcssa, %.preheader87 ], [ 0, %.preheader88 ], [ %.1.lcssa, %._crit_edge114 ]
  %.073.lcssa = phi i64 [ 1, %.preheader87 ], [ 1, %.preheader88 ], [ %114, %._crit_edge114 ]
  %86 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.4, i64 noundef %.073.lcssa)
  call void @_ZN3ExpC2Ei(ptr noundef nonnull align 4 dereferenceable(5) %6, i32 noundef 1)
  %87 = load i64, ptr %6, align 8
  %88 = call noundef i32 @_Z3dfsi3Exp(i32 noundef %.077.lcssa161, i64 %87)
  %89 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.5, i32 noundef %88)
  %90 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %1)
  %91 = icmp eq i32 %90, 1
  br i1 %91, label %.preheader88, label %._crit_edge121, !llvm.loop !19

.lr.ph118:                                        ; preds = %.lr.ph118.preheader, %._crit_edge114
  %indvars.iv152 = phi i64 [ 1, %.lr.ph118.preheader ], [ %indvars.iv.next153, %._crit_edge114 ]
  %.073116 = phi i64 [ 1, %.lr.ph118.preheader ], [ %114, %._crit_edge114 ]
  %92 = getelementptr inbounds [17 x i32], ptr @cnt, i64 0, i64 %indvars.iv152
  %93 = load i32, ptr %92, align 4, !tbaa !5
  %94 = icmp eq i64 %indvars.iv152, %67
  %95 = zext i1 %94 to i64
  %96 = getelementptr inbounds [3 x i8], ptr @.str.3, i64 0, i64 %95
  %97 = load i8, ptr %96, align 1, !tbaa !20
  %98 = sext i8 %97 to i32
  %99 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2, i32 noundef %93, i32 noundef %98)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #7
  call void @_ZN3ExpC2Ei(ptr noundef nonnull align 4 dereferenceable(5) %2, i32 noundef 1)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #7
  %100 = trunc nuw nsw i64 %indvars.iv152 to i32
  call void @_ZN3ExpC2Ei(ptr noundef nonnull align 4 dereferenceable(5) %3, i32 noundef %100)
  %101 = load i32, ptr %92, align 4, !tbaa !5
  %.not83106 = icmp slt i32 %101, 0
  br i1 %.not83106, label %._crit_edge110, label %.lr.ph109

._crit_edge110:                                   ; preds = %.lr.ph109, %.lr.ph118
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #7
  call void @_ZN3ExpC2Ei(ptr noundef nonnull align 4 dereferenceable(5) %4, i32 noundef 1)
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(5) %2, ptr noundef nonnull align 4 dereferenceable(5) %4, i64 5, i1 false), !tbaa.struct !21
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #7
  %indvars.iv.next153 = add nuw nsw i64 %indvars.iv152, 1
  %102 = trunc nuw i64 %indvars.iv.next153 to i32
  call void @_ZN3ExpC2Ei(ptr noundef nonnull align 4 dereferenceable(5) %5, i32 noundef %102)
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(5) %3, ptr noundef nonnull align 4 dereferenceable(5) %5, i64 5, i1 false), !tbaa.struct !21
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #7
  %103 = load i32, ptr %92, align 4, !tbaa !5
  %104 = icmp sgt i32 %103, -1
  br i1 %104, label %.lr.ph113.preheader, label %._crit_edge114

.lr.ph113.preheader:                              ; preds = %._crit_edge110
  %105 = zext nneg i32 %103 to i64
  br label %.lr.ph113

.lr.ph109:                                        ; preds = %.lr.ph118, %.lr.ph109
  %indvars.iv146 = phi i64 [ %indvars.iv.next147, %.lr.ph109 ], [ 0, %.lr.ph118 ]
  %106 = getelementptr inbounds [17 x [5087 x %struct.Exp]], ptr @fct, i64 0, i64 %indvars.iv152, i64 %indvars.iv146
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(5) %106, ptr noundef nonnull align 8 dereferenceable(5) %2, i64 5, i1 false), !tbaa.struct !21
  %indvars.iv.next147 = add nuw nsw i64 %indvars.iv146, 1
  %107 = call i64 @_ZNK3ExpmlERKS_(ptr noundef nonnull align 4 dereferenceable(5) %2, ptr noundef nonnull align 4 dereferenceable(5) %3)
  %108 = trunc i64 %107 to i40
  store i40 %108, ptr %2, align 8
  %109 = load i32, ptr %92, align 4, !tbaa !5
  %110 = sext i32 %109 to i64
  %.not83.not = icmp slt i64 %indvars.iv146, %110
  br i1 %.not83.not, label %.lr.ph109, label %._crit_edge110, !llvm.loop !24

._crit_edge114.loopexit:                          ; preds = %.lr.ph113
  %.pre156 = load i32, ptr %92, align 4, !tbaa !5
  br label %._crit_edge114

._crit_edge114:                                   ; preds = %._crit_edge114.loopexit, %._crit_edge110
  %111 = phi i32 [ %.pre156, %._crit_edge114.loopexit ], [ %103, %._crit_edge110 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #7
  %112 = add nsw i32 %111, 1
  %113 = sext i32 %112 to i64
  %114 = mul nsw i64 %.073116, %113
  %exitcond155.not = icmp eq i64 %indvars.iv.next153, %wide.trip.count
  br i1 %exitcond155.not, label %._crit_edge119, label %.lr.ph118, !llvm.loop !25

.lr.ph113:                                        ; preds = %.lr.ph113.preheader, %.lr.ph113
  %indvars.iv149 = phi i64 [ %105, %.lr.ph113.preheader ], [ %indvars.iv.next150, %.lr.ph113 ]
  %115 = getelementptr inbounds [17 x [5087 x %struct.Exp]], ptr @fct, i64 0, i64 %indvars.iv152, i64 %indvars.iv149
  %116 = call i64 @_ZNK3ExpmlERKS_(ptr noundef nonnull align 4 dereferenceable(5) %115, ptr noundef nonnull align 4 dereferenceable(5) %2)
  %117 = trunc i64 %116 to i40
  store i40 %117, ptr %115, align 8
  %indvars.iv.next150 = add nsw i64 %indvars.iv149, -1
  %118 = call i64 @_ZNK3ExpmlERKS_(ptr noundef nonnull align 4 dereferenceable(5) %2, ptr noundef nonnull align 4 dereferenceable(5) %3)
  %119 = trunc i64 %118 to i40
  store i40 %119, ptr %2, align 8
  %.not164 = icmp eq i64 %indvars.iv149, 0
  br i1 %.not164, label %._crit_edge114.loopexit, label %.lr.ph113, !llvm.loop !26

._crit_edge121:                                   ; preds = %._crit_edge119, %34
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #7
  ret i32 0
}

; Function Attrs: nofree nounwind
declare noundef i32 @__isoc99_scanf(ptr nocapture noundef readonly, ...) local_unnamed_addr #4

; Function Attrs: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #4

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

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #6

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { 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 #4 = { nofree 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 #5 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #7 = { 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, !13, !14}
!13 = !{!"llvm.loop.isvectorized", i32 1}
!14 = !{!"llvm.loop.unroll.runtime.disable"}
!15 = distinct !{!15, !10}
!16 = distinct !{!16, !10, !14, !13}
!17 = distinct !{!17, !10}
!18 = distinct !{!18, !10}
!19 = distinct !{!19, !10}
!20 = !{!7, !7, i64 0}
!21 = !{i64 0, i64 4, !5, i64 4, i64 1, !22}
!22 = !{!23, !23, i64 0}
!23 = !{!"bool", !7, i64 0}
!24 = distinct !{!24, !10}
!25 = distinct !{!25, !10}
!26 = distinct !{!26, !10}


; Effective O3 passes: BDCEPass,CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopIdiomRecognizePass,LoopInstSimplifyPass,LoopLoadEliminationPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,LoopVectorizePass,ReassociatePass,SROAPass,SimplifyCFGPass