; LLVM IR from square/subzero :: core/external-crypto/aes (aestmr)

; 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.aes_crypt_ctx = type { [60 x i32], %union.aes_inf, [12 x i8] }
%union.aes_inf = type { i32 }
%struct.cpu_set_t = type { [16 x i64] }

@kl = external hidden global [3 x i64], align 16
@ekt = external hidden global [3 x double], align 16
@dkt = external hidden global [3 x double], align 16
@et = external hidden global [3 x double], align 16
@dt = external hidden global [3 x double], align 16
@.str.4 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [4 x i8], align 1
@stdout = external global ptr, align 8
@.str.8 = external hidden unnamed_addr constant [38 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [1 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [79 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [3 x i8], align 1

; Function Attrs: nounwind uwtable
declare dso_local i32 @time_base(ptr noundef, ptr noundef) #0

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

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

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

; Function Attrs: nounwind uwtable
declare dso_local i32 @time_eks8(i32 noundef, ptr noundef, ptr noundef) #0

; Function Attrs: nounwind uwtable
declare dso_local i32 @time_dks8(i32 noundef, ptr noundef, ptr noundef) #0

; Function Attrs: nounwind uwtable
declare dso_local i32 @time_enc16(i32 noundef, ptr noundef, ptr noundef) #0

; Function Attrs: nounwind uwtable
declare dso_local i32 @time_dec16(i32 noundef, ptr noundef, ptr noundef) #0

; Function Attrs: nounwind uwtable
declare dso_local double @e_cycles(i64 noundef, ptr noundef) #0

; Function Attrs: nounwind uwtable
declare dso_local double @d_cycles(i64 noundef, ptr noundef) #0

; Function Attrs: nounwind uwtable
declare dso_local double @ke_cycles(i64 noundef, ptr noundef) #0

; Function Attrs: nounwind uwtable
declare dso_local double @kd_cycles(i64 noundef, ptr noundef) #0

; Function Attrs: nounwind
declare i32 @fprintf(ptr noundef, ptr noundef, ...) #3

; Function Attrs: nounwind uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca [1 x %struct.aes_crypt_ctx], align 16
  %8 = alloca [1 x %struct.aes_crypt_ctx], align 16
  %9 = alloca double, align 8
  %10 = alloca double, align 8
  %11 = alloca double, align 8
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca %struct.cpu_set_t, align 8
  %16 = alloca i64, align 8
  %17 = alloca i64, align 8
  %18 = alloca i32, align 4
  store i32 0, ptr %3, align 4
  store i32 %0, ptr %4, align 4, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #6
  call void @llvm.lifetime.start.p0(i64 256, ptr %7) #6
  call void @llvm.lifetime.start.p0(i64 256, ptr %8) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #6
  call void @llvm.lifetime.start.p0(i64 128, ptr %15) #6
  br label %19

19:                                               ; preds = %2
  call void @llvm.memset.p0.i64(ptr align 8 %15, i8 0, i64 128, i1 false)
  br label %20

20:                                               ; preds = %19
  br label %21

21:                                               ; preds = %20
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #6
  store i64 0, ptr %16, align 8, !tbaa !11
  %22 = load i64, ptr %16, align 8, !tbaa !11
  %23 = udiv i64 %22, 8
  %24 = icmp ult i64 %23, 128
  br i1 %24, label %25, label %36

25:                                               ; preds = %21
  %26 = load i64, ptr %16, align 8, !tbaa !11
  %27 = urem i64 %26, 64
  %28 = shl i64 1, %27
  %29 = getelementptr inbounds %struct.cpu_set_t, ptr %15, i32 0, i32 0
  %30 = getelementptr inbounds [16 x i64], ptr %29, i64 0, i64 0
  %31 = load i64, ptr %16, align 8, !tbaa !11
  %32 = udiv i64 %31, 64
  %33 = getelementptr inbounds i64, ptr %30, i64 %32
  %34 = load i64, ptr %33, align 8, !tbaa !11
  %35 = or i64 %34, %28
  store i64 %35, ptr %33, align 8, !tbaa !11
  br label %37

36:                                               ; preds = %21
  br label %37

37:                                               ; preds = %36, %25
  %38 = phi i64 [ %35, %25 ], [ 0, %36 ]
  store i64 %38, ptr %17, align 8, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #6
  %39 = load i64, ptr %17, align 8, !tbaa !11
  %40 = call i32 @sched_setaffinity(i32 noundef 0, i64 noundef 128, ptr noundef %15) #6
  %41 = icmp eq i32 %40, -1
  br i1 %41, label %42, label %43

42:                                               ; preds = %37
  call void @perror(ptr noundef @.str.4)
  store i32 -1, ptr %3, align 4
  store i32 1, ptr %18, align 4
  br label %260

43:                                               ; preds = %37
  %44 = call i32 @aes_init()
  call void @llvm.memset.p0.i64(ptr align 16 %7, i8 0, i64 256, i1 false)
  call void @llvm.memset.p0.i64(ptr align 16 %8, i8 0, i64 256, i1 false)
  %45 = load i32, ptr %4, align 4, !tbaa !5
  %46 = icmp eq i32 %45, 2
  br i1 %46, label %47, label %65

47:                                               ; preds = %43
  %48 = load ptr, ptr %5, align 8, !tbaa !9
  %49 = getelementptr inbounds ptr, ptr %48, i64 1
  %50 = load ptr, ptr %49, align 8, !tbaa !9
  %51 = call i32 @fopen_s(ptr noundef %6, ptr noundef %50, ptr noundef @.str.5)
  %52 = icmp ne i32 %51, 0
  br i1 %52, label %53, label %64

53:                                               ; preds = %47
  %54 = load i32, ptr %4, align 4, !tbaa !5
  %55 = icmp eq i32 %54, 2
  br i1 %55, label %56, label %60

56:                                               ; preds = %53
  %57 = load ptr, ptr %5, align 8, !tbaa !9
  %58 = getelementptr inbounds ptr, ptr %57, i64 1
  %59 = load ptr, ptr %58, align 8, !tbaa !9
  br label %61

60:                                               ; preds = %53
  br label %61

61:                                               ; preds = %60, %56
  %62 = phi ptr [ %59, %56 ], [ @.str.7, %60 ]
  %63 = call i32 (ptr, ...) @printf(ptr noundef @.str.6, ptr noundef %62)
  store i32 -1, ptr %3, align 4
  store i32 1, ptr %18, align 4
  br label %260

64:                                               ; preds = %47
  br label %67

65:                                               ; preds = %43
  %66 = load ptr, ptr @stdout, align 8, !tbaa !9
  store ptr %66, ptr %6, align 8, !tbaa !9
  br label %67

67:                                               ; preds = %65, %64
  %68 = call i32 (ptr, ...) @printf(ptr noundef @.str.8, ptr noundef @.str.9, ptr noundef @.str.10)
  store i32 0, ptr %12, align 4, !tbaa !5
  br label %69

69:                                               ; preds = %109, %67
  %70 = load i32, ptr %12, align 4, !tbaa !5
  %71 = icmp slt i32 %70, 3
  br i1 %71, label %72, label %112

72:                                               ; preds = %69
  %73 = load i32, ptr %12, align 4, !tbaa !5
  %74 = sext i32 %73 to i64
  %75 = getelementptr inbounds [3 x i64], ptr @kl, i64 0, i64 %74
  %76 = load i64, ptr %75, align 8, !tbaa !11
  %77 = getelementptr inbounds [1 x %struct.aes_crypt_ctx], ptr %7, i64 0, i64 0
  %78 = call double @ke_cycles(i64 noundef %76, ptr noundef %77)
  %79 = load i32, ptr %12, align 4, !tbaa !5
  %80 = sext i32 %79 to i64
  %81 = getelementptr inbounds [3 x double], ptr @ekt, i64 0, i64 %80
  store double %78, ptr %81, align 8, !tbaa !13
  %82 = load i32, ptr %12, align 4, !tbaa !5
  %83 = sext i32 %82 to i64
  %84 = getelementptr inbounds [3 x i64], ptr @kl, i64 0, i64 %83
  %85 = load i64, ptr %84, align 8, !tbaa !11
  %86 = getelementptr inbounds [1 x %struct.aes_crypt_ctx], ptr %8, i64 0, i64 0
  %87 = call double @kd_cycles(i64 noundef %85, ptr noundef %86)
  %88 = load i32, ptr %12, align 4, !tbaa !5
  %89 = sext i32 %88 to i64
  %90 = getelementptr inbounds [3 x double], ptr @dkt, i64 0, i64 %89
  store double %87, ptr %90, align 8, !tbaa !13
  %91 = load i32, ptr %12, align 4, !tbaa !5
  %92 = sext i32 %91 to i64
  %93 = getelementptr inbounds [3 x i64], ptr @kl, i64 0, i64 %92
  %94 = load i64, ptr %93, align 8, !tbaa !11
  %95 = getelementptr inbounds [1 x %struct.aes_crypt_ctx], ptr %7, i64 0, i64 0
  %96 = call double @e_cycles(i64 noundef %94, ptr noundef %95)
  %97 = load i32, ptr %12, align 4, !tbaa !5
  %98 = sext i32 %97 to i64
  %99 = getelementptr inbounds [3 x double], ptr @et, i64 0, i64 %98
  store double %96, ptr %99, align 8, !tbaa !13
  %100 = load i32, ptr %12, align 4, !tbaa !5
  %101 = sext i32 %100 to i64
  %102 = getelementptr inbounds [3 x i64], ptr @kl, i64 0, i64 %101
  %103 = load i64, ptr %102, align 8, !tbaa !11
  %104 = getelementptr inbounds [1 x %struct.aes_crypt_ctx], ptr %8, i64 0, i64 0
  %105 = call double @d_cycles(i64 noundef %103, ptr noundef %104)
  %106 = load i32, ptr %12, align 4, !tbaa !5
  %107 = sext i32 %106 to i64
  %108 = getelementptr inbounds [3 x double], ptr @dt, i64 0, i64 %107
  store double %105, ptr %108, align 8, !tbaa !13
  br label %109

109:                                              ; preds = %72
  %110 = load i32, ptr %12, align 4, !tbaa !5
  %111 = add nsw i32 %110, 1
  store i32 %111, ptr %12, align 4, !tbaa !5
  br label %69, !llvm.loop !15

112:                                              ; preds = %69
  %113 = load ptr, ptr %6, align 8, !tbaa !9
  %114 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %113, ptr noundef @.str.11) #6
  store i32 0, ptr %13, align 4, !tbaa !5
  br label %115

115:                                              ; preds = %158, %112
  %116 = load i32, ptr %13, align 4, !tbaa !5
  %117 = icmp slt i32 %116, 3
  br i1 %117, label %118, label %161

118:                                              ; preds = %115
  %119 = load i32, ptr %13, align 4, !tbaa !5
  %120 = sext i32 %119 to i64
  %121 = getelementptr inbounds [3 x double], ptr @et, i64 0, i64 %120
  %122 = load double, ptr %121, align 8, !tbaa !13
  %123 = fdiv double %122, 1.600000e+01
  store double %123, ptr %10, align 8, !tbaa !13
  %124 = load double, ptr %10, align 8, !tbaa !13
  %125 = call double @llvm.fmuladd.f64(double 1.000000e+01, double %124, double 5.000000e-01)
  %126 = fptosi double %125 to i32
  store i32 %126, ptr %14, align 4, !tbaa !5
  %127 = load ptr, ptr %6, align 8, !tbaa !9
  %128 = load i32, ptr %13, align 4, !tbaa !5
  %129 = mul nsw i32 64, %128
  %130 = add nsw i32 128, %129
  %131 = load i32, ptr %13, align 4, !tbaa !5
  %132 = sext i32 %131 to i64
  %133 = getelementptr inbounds [3 x double], ptr @ekt, i64 0, i64 %132
  %134 = load double, ptr %133, align 8, !tbaa !13
  %135 = load i32, ptr %14, align 4, !tbaa !5
  %136 = sdiv i32 %135, 10
  %137 = load i32, ptr %14, align 4, !tbaa !5
  %138 = srem i32 %137, 10
  %139 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %127, ptr noundef @.str.12, i32 noundef %130, double noundef %134, i32 noundef %136, i32 noundef %138) #6
  %140 = load i32, ptr %13, align 4, !tbaa !5
  %141 = sext i32 %140 to i64
  %142 = getelementptr inbounds [3 x double], ptr @dt, i64 0, i64 %141
  %143 = load double, ptr %142, align 8, !tbaa !13
  %144 = fdiv double %143, 1.600000e+01
  store double %144, ptr %10, align 8, !tbaa !13
  %145 = load double, ptr %10, align 8, !tbaa !13
  %146 = call double @llvm.fmuladd.f64(double 1.000000e+01, double %145, double 5.000000e-01)
  %147 = fptosi double %146 to i32
  store i32 %147, ptr %14, align 4, !tbaa !5
  %148 = load ptr, ptr %6, align 8, !tbaa !9
  %149 = load i32, ptr %13, align 4, !tbaa !5
  %150 = sext i32 %149 to i64
  %151 = getelementptr inbounds [3 x double], ptr @dkt, i64 0, i64 %150
  %152 = load double, ptr %151, align 8, !tbaa !13
  %153 = load i32, ptr %14, align 4, !tbaa !5
  %154 = sdiv i32 %153, 10
  %155 = load i32, ptr %14, align 4, !tbaa !5
  %156 = srem i32 %155, 10
  %157 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %148, ptr noundef @.str.13, double noundef %152, i32 noundef %154, i32 noundef %156) #6
  br label %158

158:                                              ; preds = %118
  %159 = load i32, ptr %13, align 4, !tbaa !5
  %160 = add nsw i32 %159, 1
  store i32 %160, ptr %13, align 4, !tbaa !5
  br label %115, !llvm.loop !17

161:                                              ; preds = %115
  %162 = call i32 @time_base(ptr noundef %9, ptr noundef %11)
  store i32 128, ptr %13, align 4, !tbaa !5
  br label %163

163:                                              ; preds = %248, %161
  %164 = load i32, ptr %13, align 4, !tbaa !5
  %165 = icmp sle i32 %164, 256
  br i1 %165, label %166, label %251

166:                                              ; preds = %163
  %167 = load ptr, ptr %6, align 8, !tbaa !9
  %168 = load i32, ptr %13, align 4, !tbaa !5
  %169 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %167, ptr noundef @.str.14, i32 noundef %168) #6
  %170 = load i32, ptr %13, align 4, !tbaa !5
  %171 = call i32 @time_eks8(i32 noundef %170, ptr noundef %10, ptr noundef %11)
  %172 = load double, ptr %10, align 8, !tbaa !13
  %173 = fdiv double 1.000000e+02, %172
  %174 = load double, ptr %11, align 8, !tbaa !13
  %175 = fmul double %174, %173
  store double %175, ptr %11, align 8, !tbaa !13
  %176 = load double, ptr %10, align 8, !tbaa !13
  %177 = load double, ptr %9, align 8, !tbaa !13
  %178 = fsub double %176, %177
  %179 = fadd double %178, 4.000000e+00
  %180 = fdiv double %179, 8.000000e+00
  store double %180, ptr %10, align 8, !tbaa !13
  %181 = load ptr, ptr %6, align 8, !tbaa !9
  %182 = load double, ptr %10, align 8, !tbaa !13
  %183 = load double, ptr %11, align 8, !tbaa !13
  %184 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %181, ptr noundef @.str.15, double noundef %182, double noundef %183) #6
  %185 = load i32, ptr %13, align 4, !tbaa !5
  %186 = call i32 @time_enc16(i32 noundef %185, ptr noundef %10, ptr noundef %11)
  %187 = load double, ptr %10, align 8, !tbaa !13
  %188 = fdiv double 1.000000e+02, %187
  %189 = load double, ptr %11, align 8, !tbaa !13
  %190 = fmul double %189, %188
  store double %190, ptr %11, align 8, !tbaa !13
  %191 = load double, ptr %10, align 8, !tbaa !13
  %192 = load double, ptr %9, align 8, !tbaa !13
  %193 = fsub double %191, %192
  %194 = fmul double 1.000000e+01, %193
  %195 = fdiv double %194, 2.560000e+02
  %196 = fptosi double %195 to i32
  %197 = sitofp i32 %196 to double
  %198 = fdiv double %197, 1.000000e+01
  store double %198, ptr %10, align 8, !tbaa !13
  %199 = load double, ptr %11, align 8, !tbaa !13
  %200 = fmul double 1.000000e+01, %199
  %201 = fptosi double %200 to i32
  %202 = sitofp i32 %201 to double
  %203 = fdiv double %202, 1.000000e+01
  store double %203, ptr %11, align 8, !tbaa !13
  %204 = load ptr, ptr %6, align 8, !tbaa !9
  %205 = load double, ptr %10, align 8, !tbaa !13
  %206 = load double, ptr %11, align 8, !tbaa !13
  %207 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %204, ptr noundef @.str.16, double noundef %205, double noundef %206) #6
  %208 = load i32, ptr %13, align 4, !tbaa !5
  %209 = call i32 @time_dks8(i32 noundef %208, ptr noundef %10, ptr noundef %11)
  %210 = load double, ptr %10, align 8, !tbaa !13
  %211 = fdiv double 1.000000e+02, %210
  %212 = load double, ptr %11, align 8, !tbaa !13
  %213 = fmul double %212, %211
  store double %213, ptr %11, align 8, !tbaa !13
  %214 = load double, ptr %10, align 8, !tbaa !13
  %215 = load double, ptr %9, align 8, !tbaa !13
  %216 = fsub double %214, %215
  %217 = fadd double %216, 4.000000e+00
  %218 = fdiv double %217, 8.000000e+00
  %219 = fptosi double %218 to i32
  %220 = sitofp i32 %219 to double
  store double %220, ptr %10, align 8, !tbaa !13
  %221 = load ptr, ptr %6, align 8, !tbaa !9
  %222 = load double, ptr %10, align 8, !tbaa !13
  %223 = load double, ptr %11, align 8, !tbaa !13
  %224 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %221, ptr noundef @.str.17, double noundef %222, double noundef %223) #6
  %225 = load i32, ptr %13, align 4, !tbaa !5
  %226 = call i32 @time_dec16(i32 noundef %225, ptr noundef %10, ptr noundef %11)
  %227 = load double, ptr %10, align 8, !tbaa !13
  %228 = fdiv double 1.000000e+02, %227
  %229 = load double, ptr %11, align 8, !tbaa !13
  %230 = fmul double %229, %228
  store double %230, ptr %11, align 8, !tbaa !13
  %231 = load double, ptr %10, align 8, !tbaa !13
  %232 = load double, ptr %9, align 8, !tbaa !13
  %233 = fsub double %231, %232
  %234 = fmul double 1.000000e+01, %233
  %235 = fdiv double %234, 2.560000e+02
  %236 = fptosi double %235 to i32
  %237 = sitofp i32 %236 to double
  %238 = fdiv double %237, 1.000000e+01
  store double %238, ptr %10, align 8, !tbaa !13
  %239 = load double, ptr %11, align 8, !tbaa !13
  %240 = fmul double 1.000000e+01, %239
  %241 = fptosi double %240 to i32
  %242 = sitofp i32 %241 to double
  %243 = fdiv double %242, 1.000000e+01
  store double %243, ptr %11, align 8, !tbaa !13
  %244 = load ptr, ptr %6, align 8, !tbaa !9
  %245 = load double, ptr %10, align 8, !tbaa !13
  %246 = load double, ptr %11, align 8, !tbaa !13
  %247 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %244, ptr noundef @.str.16, double noundef %245, double noundef %246) #6
  br label %248

248:                                              ; preds = %166
  %249 = load i32, ptr %13, align 4, !tbaa !5
  %250 = add nsw i32 %249, 64
  store i32 %250, ptr %13, align 4, !tbaa !5
  br label %163, !llvm.loop !18

251:                                              ; preds = %163
  %252 = load ptr, ptr %6, align 8, !tbaa !9
  %253 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %252, ptr noundef @.str.18) #6
  %254 = load i32, ptr %4, align 4, !tbaa !5
  %255 = icmp eq i32 %254, 2
  br i1 %255, label %256, label %259

256:                                              ; preds = %251
  %257 = load ptr, ptr %6, align 8, !tbaa !9
  %258 = call i32 @fclose(ptr noundef %257)
  br label %259

259:                                              ; preds = %256, %251
  store i32 0, ptr %3, align 4
  store i32 1, ptr %18, align 4
  br label %260

260:                                              ; preds = %259, %61, %42
  call void @llvm.lifetime.end.p0(i64 128, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 256, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 256, ptr %7) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #6
  %261 = load i32, ptr %3, align 4
  ret i32 %261
}

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

; Function Attrs: nounwind
declare i32 @sched_setaffinity(i32 noundef, i64 noundef, ptr noundef) #3

declare void @perror(ptr noundef) #5

declare i32 @aes_init() #5

declare i32 @fopen_s(ptr noundef, ptr noundef, ptr noundef) #5

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

declare i32 @fclose(ptr noundef) #5

attributes #0 = { 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 #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #3 = { 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 #4 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #5 = { "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/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"long", !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"double", !7, i64 0}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.mustprogress"}
!17 = distinct !{!17, !16}
!18 = distinct !{!18, !16}


; 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.aes_crypt_ctx = type { [60 x i32], %union.aes_inf, [12 x i8] }
%union.aes_inf = type { i32 }
%struct.cpu_set_t = type { [16 x i64] }

@kl = external hidden local_unnamed_addr global [3 x i64], align 16
@ekt = external hidden local_unnamed_addr global [3 x double], align 16
@dkt = external hidden local_unnamed_addr global [3 x double], align 16
@et = external hidden local_unnamed_addr global [3 x double], align 16
@dt = external hidden local_unnamed_addr global [3 x double], align 16
@.str.4 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [28 x i8], align 1
@stdout = external local_unnamed_addr global ptr, align 8
@.str.8 = external hidden unnamed_addr constant [38 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [1 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [79 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [3 x i8], align 1

; Function Attrs: nounwind uwtable
declare dso_local i32 @time_base(ptr noundef, ptr noundef) local_unnamed_addr #0

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

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

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

; Function Attrs: nounwind uwtable
declare dso_local i32 @time_eks8(i32 noundef, ptr noundef, ptr noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare dso_local i32 @time_dks8(i32 noundef, ptr noundef, ptr noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare dso_local i32 @time_enc16(i32 noundef, ptr noundef, ptr noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare dso_local i32 @time_dec16(i32 noundef, ptr noundef, ptr noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare dso_local double @e_cycles(i64 noundef, ptr noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare dso_local double @d_cycles(i64 noundef, ptr noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare dso_local double @ke_cycles(i64 noundef, ptr noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare dso_local double @kd_cycles(i64 noundef, ptr noundef) local_unnamed_addr #0

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

; Function Attrs: nounwind uwtable
define dso_local range(i32 -1, 1) i32 @main(i32 noundef %0, ptr nocapture noundef readonly %1) local_unnamed_addr #0 {
  %3 = alloca ptr, align 8
  %4 = alloca [1 x %struct.aes_crypt_ctx], align 16
  %5 = alloca [1 x %struct.aes_crypt_ctx], align 16
  %6 = alloca double, align 8
  %7 = alloca double, align 8
  %8 = alloca double, align 8
  %9 = alloca %struct.cpu_set_t, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #7
  call void @llvm.lifetime.start.p0(i64 256, ptr nonnull %4) #7
  call void @llvm.lifetime.start.p0(i64 256, ptr nonnull %5) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #7
  call void @llvm.lifetime.start.p0(i64 128, ptr nonnull %9) #7
  %10 = getelementptr inbounds i8, ptr %9, i64 8
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(128) %10, i8 0, i64 120, i1 false)
  store i64 1, ptr %9, align 8, !tbaa !5
  %11 = call i32 @sched_setaffinity(i32 noundef 0, i64 noundef 128, ptr noundef nonnull %9) #7
  %12 = icmp eq i32 %11, -1
  br i1 %12, label %13, label %14

13:                                               ; preds = %2
  call void @perror(ptr noundef nonnull @.str.4) #8
  br label %300

14:                                               ; preds = %2
  %15 = call i32 @aes_init() #7
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(256) %4, i8 0, i64 256, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(256) %5, i8 0, i64 256, i1 false)
  %16 = icmp eq i32 %0, 2
  br i1 %16, label %17, label %24

17:                                               ; preds = %14
  %18 = getelementptr inbounds i8, ptr %1, i64 8
  %19 = load ptr, ptr %18, align 8, !tbaa !9
  %20 = call i32 @fopen_s(ptr noundef nonnull %3, ptr noundef %19, ptr noundef nonnull @.str.5) #7
  %.not = icmp eq i32 %20, 0
  br i1 %.not, label %26, label %21

21:                                               ; preds = %17
  %22 = load ptr, ptr %18, align 8, !tbaa !9
  %23 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.6, ptr noundef %22)
  br label %300

24:                                               ; preds = %14
  %25 = load ptr, ptr @stdout, align 8, !tbaa !9
  store ptr %25, ptr %3, align 8, !tbaa !9
  br label %26

26:                                               ; preds = %17, %24
  %27 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.8, ptr noundef nonnull @.str.9, ptr noundef nonnull @.str.10)
  %28 = load i64, ptr @kl, align 16, !tbaa !5
  %29 = call double @ke_cycles(i64 noundef %28, ptr noundef nonnull %4)
  store double %29, ptr @ekt, align 16, !tbaa !11
  %30 = load i64, ptr @kl, align 16, !tbaa !5
  %31 = call double @kd_cycles(i64 noundef %30, ptr noundef nonnull %5)
  store double %31, ptr @dkt, align 16, !tbaa !11
  %32 = load i64, ptr @kl, align 16, !tbaa !5
  %33 = call double @e_cycles(i64 noundef %32, ptr noundef nonnull %4)
  store double %33, ptr @et, align 16, !tbaa !11
  %34 = load i64, ptr @kl, align 16, !tbaa !5
  %35 = call double @d_cycles(i64 noundef %34, ptr noundef nonnull %5)
  store double %35, ptr @dt, align 16, !tbaa !11
  %36 = load i64, ptr getelementptr inbounds (i8, ptr @kl, i64 8), align 8, !tbaa !5
  %37 = call double @ke_cycles(i64 noundef %36, ptr noundef nonnull %4)
  store double %37, ptr getelementptr inbounds (i8, ptr @ekt, i64 8), align 8, !tbaa !11
  %38 = load i64, ptr getelementptr inbounds (i8, ptr @kl, i64 8), align 8, !tbaa !5
  %39 = call double @kd_cycles(i64 noundef %38, ptr noundef nonnull %5)
  store double %39, ptr getelementptr inbounds (i8, ptr @dkt, i64 8), align 8, !tbaa !11
  %40 = load i64, ptr getelementptr inbounds (i8, ptr @kl, i64 8), align 8, !tbaa !5
  %41 = call double @e_cycles(i64 noundef %40, ptr noundef nonnull %4)
  store double %41, ptr getelementptr inbounds (i8, ptr @et, i64 8), align 8, !tbaa !11
  %42 = load i64, ptr getelementptr inbounds (i8, ptr @kl, i64 8), align 8, !tbaa !5
  %43 = call double @d_cycles(i64 noundef %42, ptr noundef nonnull %5)
  store double %43, ptr getelementptr inbounds (i8, ptr @dt, i64 8), align 8, !tbaa !11
  %44 = load i64, ptr getelementptr inbounds (i8, ptr @kl, i64 16), align 16, !tbaa !5
  %45 = call double @ke_cycles(i64 noundef %44, ptr noundef nonnull %4)
  store double %45, ptr getelementptr inbounds (i8, ptr @ekt, i64 16), align 16, !tbaa !11
  %46 = load i64, ptr getelementptr inbounds (i8, ptr @kl, i64 16), align 16, !tbaa !5
  %47 = call double @kd_cycles(i64 noundef %46, ptr noundef nonnull %5)
  store double %47, ptr getelementptr inbounds (i8, ptr @dkt, i64 16), align 16, !tbaa !11
  %48 = load i64, ptr getelementptr inbounds (i8, ptr @kl, i64 16), align 16, !tbaa !5
  %49 = call double @e_cycles(i64 noundef %48, ptr noundef nonnull %4)
  store double %49, ptr getelementptr inbounds (i8, ptr @et, i64 16), align 16, !tbaa !11
  %50 = load i64, ptr getelementptr inbounds (i8, ptr @kl, i64 16), align 16, !tbaa !5
  %51 = call double @d_cycles(i64 noundef %50, ptr noundef nonnull %5)
  store double %51, ptr getelementptr inbounds (i8, ptr @dt, i64 16), align 16, !tbaa !11
  %52 = load ptr, ptr %3, align 8, !tbaa !9
  %53 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %52, ptr noundef nonnull @.str.11) #7
  %54 = load double, ptr @et, align 16, !tbaa !11
  %55 = fmul double %54, 6.250000e-02
  %56 = call double @llvm.fmuladd.f64(double %55, double 1.000000e+01, double 5.000000e-01)
  %57 = fptosi double %56 to i32
  %58 = load ptr, ptr %3, align 8, !tbaa !9
  %59 = load double, ptr @ekt, align 16, !tbaa !11
  %60 = sdiv i32 %57, 10
  %61 = srem i32 %57, 10
  %62 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %58, ptr noundef nonnull @.str.12, i32 noundef 128, double noundef %59, i32 noundef %60, i32 noundef %61) #7
  %63 = load double, ptr @dt, align 16, !tbaa !11
  %64 = fmul double %63, 6.250000e-02
  %65 = call double @llvm.fmuladd.f64(double %64, double 1.000000e+01, double 5.000000e-01)
  %66 = fptosi double %65 to i32
  %67 = load ptr, ptr %3, align 8, !tbaa !9
  %68 = load double, ptr @dkt, align 16, !tbaa !11
  %69 = sdiv i32 %66, 10
  %70 = srem i32 %66, 10
  %71 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %67, ptr noundef nonnull @.str.13, double noundef %68, i32 noundef %69, i32 noundef %70) #7
  %72 = load double, ptr getelementptr inbounds (i8, ptr @et, i64 8), align 8, !tbaa !11
  %73 = fmul double %72, 6.250000e-02
  %74 = call double @llvm.fmuladd.f64(double %73, double 1.000000e+01, double 5.000000e-01)
  %75 = fptosi double %74 to i32
  %76 = load ptr, ptr %3, align 8, !tbaa !9
  %77 = load double, ptr getelementptr inbounds (i8, ptr @ekt, i64 8), align 8, !tbaa !11
  %78 = sdiv i32 %75, 10
  %79 = srem i32 %75, 10
  %80 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %76, ptr noundef nonnull @.str.12, i32 noundef 192, double noundef %77, i32 noundef %78, i32 noundef %79) #7
  %81 = load double, ptr getelementptr inbounds (i8, ptr @dt, i64 8), align 8, !tbaa !11
  %82 = fmul double %81, 6.250000e-02
  %83 = call double @llvm.fmuladd.f64(double %82, double 1.000000e+01, double 5.000000e-01)
  %84 = fptosi double %83 to i32
  %85 = load ptr, ptr %3, align 8, !tbaa !9
  %86 = load double, ptr getelementptr inbounds (i8, ptr @dkt, i64 8), align 8, !tbaa !11
  %87 = sdiv i32 %84, 10
  %88 = srem i32 %84, 10
  %89 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %85, ptr noundef nonnull @.str.13, double noundef %86, i32 noundef %87, i32 noundef %88) #7
  %90 = load double, ptr getelementptr inbounds (i8, ptr @et, i64 16), align 16, !tbaa !11
  %91 = fmul double %90, 6.250000e-02
  %92 = call double @llvm.fmuladd.f64(double %91, double 1.000000e+01, double 5.000000e-01)
  %93 = fptosi double %92 to i32
  %94 = load ptr, ptr %3, align 8, !tbaa !9
  %95 = load double, ptr getelementptr inbounds (i8, ptr @ekt, i64 16), align 16, !tbaa !11
  %96 = sdiv i32 %93, 10
  %97 = srem i32 %93, 10
  %98 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %94, ptr noundef nonnull @.str.12, i32 noundef 256, double noundef %95, i32 noundef %96, i32 noundef %97) #7
  %99 = load double, ptr getelementptr inbounds (i8, ptr @dt, i64 16), align 16, !tbaa !11
  %100 = fmul double %99, 6.250000e-02
  store double %100, ptr %7, align 8, !tbaa !11
  %101 = call double @llvm.fmuladd.f64(double %100, double 1.000000e+01, double 5.000000e-01)
  %102 = fptosi double %101 to i32
  %103 = load ptr, ptr %3, align 8, !tbaa !9
  %104 = load double, ptr getelementptr inbounds (i8, ptr @dkt, i64 16), align 16, !tbaa !11
  %105 = sdiv i32 %102, 10
  %106 = srem i32 %102, 10
  %107 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %103, ptr noundef nonnull @.str.13, double noundef %104, i32 noundef %105, i32 noundef %106) #7
  %108 = call i32 @time_base(ptr noundef nonnull %6, ptr noundef nonnull %8)
  %109 = load ptr, ptr %3, align 8, !tbaa !9
  %110 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %109, ptr noundef nonnull @.str.14, i32 noundef 128) #7
  %111 = call i32 @time_eks8(i32 noundef 128, ptr noundef nonnull %7, ptr noundef nonnull %8)
  %112 = load double, ptr %7, align 8, !tbaa !11
  %113 = fdiv double 1.000000e+02, %112
  %114 = load double, ptr %8, align 8, !tbaa !11
  %115 = fmul double %114, %113
  store double %115, ptr %8, align 8, !tbaa !11
  %116 = load double, ptr %6, align 8, !tbaa !11
  %117 = fsub double %112, %116
  %118 = fadd double %117, 4.000000e+00
  %119 = fmul double %118, 1.250000e-01
  store double %119, ptr %7, align 8, !tbaa !11
  %120 = load ptr, ptr %3, align 8, !tbaa !9
  %121 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %120, ptr noundef nonnull @.str.15, double noundef %119, double noundef %115) #7
  %122 = call i32 @time_enc16(i32 noundef 128, ptr noundef nonnull %7, ptr noundef nonnull %8)
  %123 = load double, ptr %7, align 8, !tbaa !11
  %124 = fdiv double 1.000000e+02, %123
  %125 = load double, ptr %8, align 8, !tbaa !11
  %126 = fmul double %125, %124
  %127 = load double, ptr %6, align 8, !tbaa !11
  %128 = fsub double %123, %127
  %129 = fmul double %128, 1.000000e+01
  %130 = fmul double %129, 3.906250e-03
  %131 = fptosi double %130 to i32
  %132 = sitofp i32 %131 to double
  %133 = fdiv double %132, 1.000000e+01
  store double %133, ptr %7, align 8, !tbaa !11
  %134 = fmul double %126, 1.000000e+01
  %135 = fptosi double %134 to i32
  %136 = sitofp i32 %135 to double
  %137 = fdiv double %136, 1.000000e+01
  store double %137, ptr %8, align 8, !tbaa !11
  %138 = load ptr, ptr %3, align 8, !tbaa !9
  %139 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %138, ptr noundef nonnull @.str.16, double noundef %133, double noundef %137) #7
  %140 = call i32 @time_dks8(i32 noundef 128, ptr noundef nonnull %7, ptr noundef nonnull %8)
  %141 = load double, ptr %7, align 8, !tbaa !11
  %142 = fdiv double 1.000000e+02, %141
  %143 = load double, ptr %8, align 8, !tbaa !11
  %144 = fmul double %143, %142
  store double %144, ptr %8, align 8, !tbaa !11
  %145 = load double, ptr %6, align 8, !tbaa !11
  %146 = fsub double %141, %145
  %147 = fadd double %146, 4.000000e+00
  %148 = fmul double %147, 1.250000e-01
  %149 = fptosi double %148 to i32
  %150 = sitofp i32 %149 to double
  store double %150, ptr %7, align 8, !tbaa !11
  %151 = load ptr, ptr %3, align 8, !tbaa !9
  %152 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %151, ptr noundef nonnull @.str.17, double noundef %150, double noundef %144) #7
  %153 = call i32 @time_dec16(i32 noundef 128, ptr noundef nonnull %7, ptr noundef nonnull %8)
  %154 = load double, ptr %7, align 8, !tbaa !11
  %155 = fdiv double 1.000000e+02, %154
  %156 = load double, ptr %8, align 8, !tbaa !11
  %157 = fmul double %156, %155
  %158 = load double, ptr %6, align 8, !tbaa !11
  %159 = fsub double %154, %158
  %160 = fmul double %159, 1.000000e+01
  %161 = fmul double %160, 3.906250e-03
  %162 = fptosi double %161 to i32
  %163 = sitofp i32 %162 to double
  %164 = fdiv double %163, 1.000000e+01
  store double %164, ptr %7, align 8, !tbaa !11
  %165 = fmul double %157, 1.000000e+01
  %166 = fptosi double %165 to i32
  %167 = sitofp i32 %166 to double
  %168 = fdiv double %167, 1.000000e+01
  store double %168, ptr %8, align 8, !tbaa !11
  %169 = load ptr, ptr %3, align 8, !tbaa !9
  %170 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %169, ptr noundef nonnull @.str.16, double noundef %164, double noundef %168) #7
  %171 = load ptr, ptr %3, align 8, !tbaa !9
  %172 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %171, ptr noundef nonnull @.str.14, i32 noundef 192) #7
  %173 = call i32 @time_eks8(i32 noundef 192, ptr noundef nonnull %7, ptr noundef nonnull %8)
  %174 = load double, ptr %7, align 8, !tbaa !11
  %175 = fdiv double 1.000000e+02, %174
  %176 = load double, ptr %8, align 8, !tbaa !11
  %177 = fmul double %176, %175
  store double %177, ptr %8, align 8, !tbaa !11
  %178 = load double, ptr %6, align 8, !tbaa !11
  %179 = fsub double %174, %178
  %180 = fadd double %179, 4.000000e+00
  %181 = fmul double %180, 1.250000e-01
  store double %181, ptr %7, align 8, !tbaa !11
  %182 = load ptr, ptr %3, align 8, !tbaa !9
  %183 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %182, ptr noundef nonnull @.str.15, double noundef %181, double noundef %177) #7
  %184 = call i32 @time_enc16(i32 noundef 192, ptr noundef nonnull %7, ptr noundef nonnull %8)
  %185 = load double, ptr %7, align 8, !tbaa !11
  %186 = fdiv double 1.000000e+02, %185
  %187 = load double, ptr %8, align 8, !tbaa !11
  %188 = fmul double %187, %186
  %189 = load double, ptr %6, align 8, !tbaa !11
  %190 = fsub double %185, %189
  %191 = fmul double %190, 1.000000e+01
  %192 = fmul double %191, 3.906250e-03
  %193 = fptosi double %192 to i32
  %194 = sitofp i32 %193 to double
  %195 = fdiv double %194, 1.000000e+01
  store double %195, ptr %7, align 8, !tbaa !11
  %196 = fmul double %188, 1.000000e+01
  %197 = fptosi double %196 to i32
  %198 = sitofp i32 %197 to double
  %199 = fdiv double %198, 1.000000e+01
  store double %199, ptr %8, align 8, !tbaa !11
  %200 = load ptr, ptr %3, align 8, !tbaa !9
  %201 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %200, ptr noundef nonnull @.str.16, double noundef %195, double noundef %199) #7
  %202 = call i32 @time_dks8(i32 noundef 192, ptr noundef nonnull %7, ptr noundef nonnull %8)
  %203 = load double, ptr %7, align 8, !tbaa !11
  %204 = fdiv double 1.000000e+02, %203
  %205 = load double, ptr %8, align 8, !tbaa !11
  %206 = fmul double %205, %204
  store double %206, ptr %8, align 8, !tbaa !11
  %207 = load double, ptr %6, align 8, !tbaa !11
  %208 = fsub double %203, %207
  %209 = fadd double %208, 4.000000e+00
  %210 = fmul double %209, 1.250000e-01
  %211 = fptosi double %210 to i32
  %212 = sitofp i32 %211 to double
  store double %212, ptr %7, align 8, !tbaa !11
  %213 = load ptr, ptr %3, align 8, !tbaa !9
  %214 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %213, ptr noundef nonnull @.str.17, double noundef %212, double noundef %206) #7
  %215 = call i32 @time_dec16(i32 noundef 192, ptr noundef nonnull %7, ptr noundef nonnull %8)
  %216 = load double, ptr %7, align 8, !tbaa !11
  %217 = fdiv double 1.000000e+02, %216
  %218 = load double, ptr %8, align 8, !tbaa !11
  %219 = fmul double %218, %217
  %220 = load double, ptr %6, align 8, !tbaa !11
  %221 = fsub double %216, %220
  %222 = fmul double %221, 1.000000e+01
  %223 = fmul double %222, 3.906250e-03
  %224 = fptosi double %223 to i32
  %225 = sitofp i32 %224 to double
  %226 = fdiv double %225, 1.000000e+01
  store double %226, ptr %7, align 8, !tbaa !11
  %227 = fmul double %219, 1.000000e+01
  %228 = fptosi double %227 to i32
  %229 = sitofp i32 %228 to double
  %230 = fdiv double %229, 1.000000e+01
  store double %230, ptr %8, align 8, !tbaa !11
  %231 = load ptr, ptr %3, align 8, !tbaa !9
  %232 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %231, ptr noundef nonnull @.str.16, double noundef %226, double noundef %230) #7
  %233 = load ptr, ptr %3, align 8, !tbaa !9
  %234 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %233, ptr noundef nonnull @.str.14, i32 noundef 256) #7
  %235 = call i32 @time_eks8(i32 noundef 256, ptr noundef nonnull %7, ptr noundef nonnull %8)
  %236 = load double, ptr %7, align 8, !tbaa !11
  %237 = fdiv double 1.000000e+02, %236
  %238 = load double, ptr %8, align 8, !tbaa !11
  %239 = fmul double %238, %237
  store double %239, ptr %8, align 8, !tbaa !11
  %240 = load double, ptr %6, align 8, !tbaa !11
  %241 = fsub double %236, %240
  %242 = fadd double %241, 4.000000e+00
  %243 = fmul double %242, 1.250000e-01
  store double %243, ptr %7, align 8, !tbaa !11
  %244 = load ptr, ptr %3, align 8, !tbaa !9
  %245 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %244, ptr noundef nonnull @.str.15, double noundef %243, double noundef %239) #7
  %246 = call i32 @time_enc16(i32 noundef 256, ptr noundef nonnull %7, ptr noundef nonnull %8)
  %247 = load double, ptr %7, align 8, !tbaa !11
  %248 = fdiv double 1.000000e+02, %247
  %249 = load double, ptr %8, align 8, !tbaa !11
  %250 = fmul double %249, %248
  %251 = load double, ptr %6, align 8, !tbaa !11
  %252 = fsub double %247, %251
  %253 = fmul double %252, 1.000000e+01
  %254 = fmul double %253, 3.906250e-03
  %255 = fptosi double %254 to i32
  %256 = sitofp i32 %255 to double
  %257 = fdiv double %256, 1.000000e+01
  store double %257, ptr %7, align 8, !tbaa !11
  %258 = fmul double %250, 1.000000e+01
  %259 = fptosi double %258 to i32
  %260 = sitofp i32 %259 to double
  %261 = fdiv double %260, 1.000000e+01
  store double %261, ptr %8, align 8, !tbaa !11
  %262 = load ptr, ptr %3, align 8, !tbaa !9
  %263 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %262, ptr noundef nonnull @.str.16, double noundef %257, double noundef %261) #7
  %264 = call i32 @time_dks8(i32 noundef 256, ptr noundef nonnull %7, ptr noundef nonnull %8)
  %265 = load double, ptr %7, align 8, !tbaa !11
  %266 = fdiv double 1.000000e+02, %265
  %267 = load double, ptr %8, align 8, !tbaa !11
  %268 = fmul double %267, %266
  store double %268, ptr %8, align 8, !tbaa !11
  %269 = load double, ptr %6, align 8, !tbaa !11
  %270 = fsub double %265, %269
  %271 = fadd double %270, 4.000000e+00
  %272 = fmul double %271, 1.250000e-01
  %273 = fptosi double %272 to i32
  %274 = sitofp i32 %273 to double
  store double %274, ptr %7, align 8, !tbaa !11
  %275 = load ptr, ptr %3, align 8, !tbaa !9
  %276 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %275, ptr noundef nonnull @.str.17, double noundef %274, double noundef %268) #7
  %277 = call i32 @time_dec16(i32 noundef 256, ptr noundef nonnull %7, ptr noundef nonnull %8)
  %278 = load double, ptr %7, align 8, !tbaa !11
  %279 = fdiv double 1.000000e+02, %278
  %280 = load double, ptr %8, align 8, !tbaa !11
  %281 = fmul double %280, %279
  %282 = load double, ptr %6, align 8, !tbaa !11
  %283 = fsub double %278, %282
  %284 = fmul double %283, 1.000000e+01
  %285 = fmul double %284, 3.906250e-03
  %286 = fptosi double %285 to i32
  %287 = sitofp i32 %286 to double
  %288 = fdiv double %287, 1.000000e+01
  store double %288, ptr %7, align 8, !tbaa !11
  %289 = fmul double %281, 1.000000e+01
  %290 = fptosi double %289 to i32
  %291 = sitofp i32 %290 to double
  %292 = fdiv double %291, 1.000000e+01
  store double %292, ptr %8, align 8, !tbaa !11
  %293 = load ptr, ptr %3, align 8, !tbaa !9
  %294 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %293, ptr noundef nonnull @.str.16, double noundef %288, double noundef %292) #7
  %295 = load ptr, ptr %3, align 8, !tbaa !9
  %296 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %295, ptr noundef nonnull @.str.18) #7
  br i1 %16, label %297, label %300

297:                                              ; preds = %26
  %298 = load ptr, ptr %3, align 8, !tbaa !9
  %299 = call i32 @fclose(ptr noundef %298)
  br label %300

300:                                              ; preds = %26, %297, %21, %13
  %.0 = phi i32 [ -1, %13 ], [ -1, %21 ], [ 0, %297 ], [ 0, %26 ]
  call void @llvm.lifetime.end.p0(i64 128, ptr nonnull %9) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #7
  call void @llvm.lifetime.end.p0(i64 256, ptr nonnull %5) #7
  call void @llvm.lifetime.end.p0(i64 256, ptr nonnull %4) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #7
  ret i32 %.0
}

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

; Function Attrs: nounwind
declare i32 @sched_setaffinity(i32 noundef, i64 noundef, ptr noundef) local_unnamed_addr #5

; Function Attrs: nofree nounwind
declare void @perror(ptr nocapture noundef readonly) local_unnamed_addr #3

declare i32 @aes_init() local_unnamed_addr #6

declare i32 @fopen_s(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #6

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

; Function Attrs: nofree nounwind
declare noundef i32 @fclose(ptr nocapture noundef) local_unnamed_addr #3

attributes #0 = { 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 #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #3 = { 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 #4 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #5 = { 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 = { "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 = { cold }

!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 = !{!"long", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"double", !7, i64 0}


; Effective O3 passes: DSEPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,LoopRotatePass,PostOrderFunctionAttrsPass,ReassociatePass,SROAPass,SimplifyCFGPass