; LLVM IR from alexzheng42/sDMD :: src (DataSave)

; 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.CGGovStr = type { [2 x [16 x i8]], i32, i32, ptr, ptr }
%struct.FlowStr = type { i32, %struct.ConstVStr, %struct.ForceStr, %struct.ChargeStr }
%struct.ConstVStr = type { [4 x double] }
%struct.ForceStr = type { [4 x double], ptr, ptr }
%struct.ChargeStr = type { i32, i32, ptr, ptr, ptr, ptr }
%struct.ObstructionStr = type { i32, i32, ptr, ptr, ptr }
%struct.TunnelStr = type { i32, i32, ptr, ptr, %struct.AtomStr }
%struct.AtomStr = type { ptr, ptr }
%struct.SphObstStr = type { i32, i32, ptr, ptr }
%struct.DynamicWallStr = type { [16 x i8], i32, i32, double, double, double, double, [4 x double] }
%struct.REMDStr = type { i32, i32, i32, [50 x i8], [50 x i8], %struct.REMDTempStr }
%struct.REMDTempStr = type { i32, double }
%struct.FileStr = type { i32, [256 x i8], ptr }
%struct.PepStr = type { i32, i32, i32, i32, double }
%struct.AAStr = type { [5 x i8], i32, i32, i32, i32, double }

@timer = external global [30 x i8], align 16
@wallExist = external global [20 x i8], align 16
@.str.7 = external hidden unnamed_addr constant [3 x i8], align 1
@wallType = external global [20 x i8], align 16
@CG = external global %struct.CGGovStr, align 8
@flow = external global %struct.FlowStr, align 8
@obstObj = external global %struct.ObstructionStr, align 8
@tunlObj = external global %struct.TunnelStr, align 8
@SphObstObj = external global %struct.SphObstStr, align 8
@protein = external global ptr, align 8
@aminoacid = external global ptr, align 8
@numofprotein = external global i32, align 4
@.str.9 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [31 x i8], align 1
@oldcurrenttime = external global double, align 8
@.str.17 = external hidden unnamed_addr constant [31 x i8], align 1
@timestep = external global double, align 8
@.str.18 = external hidden unnamed_addr constant [31 x i8], align 1
@targetTemperature = external global double, align 8
@.str.19 = external hidden unnamed_addr constant [31 x i8], align 1
@outputrate = external global double, align 8
@.str.20 = external hidden unnamed_addr constant [31 x i8], align 1
@cutoffr = external global double, align 8
@.str.21 = external hidden unnamed_addr constant [26 x i8], align 1
@Methodtype = external global [20 x i8], align 16
@.str.22 = external hidden unnamed_addr constant [26 x i8], align 1
@thermostatType = external global [20 x i8], align 16
@.str.23 = external hidden unnamed_addr constant [31 x i8], align 1
@thermoF = external global double, align 8
@.str.24 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.26 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.27 = external hidden unnamed_addr constant [26 x i8], align 1
@wallDyn = external global %struct.DynamicWallStr, align 8
@.str.28 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.29 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.30 = external hidden unnamed_addr constant [45 x i8], align 1
@.str.31 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.32 = external hidden unnamed_addr constant [45 x i8], align 1
@boxDimension = external global [4 x double], align 16
@.str.33 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.34 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.35 = external hidden unnamed_addr constant [45 x i8], align 1
@.str.36 = external hidden unnamed_addr constant [45 x i8], align 1
@.str.37 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.38 = external hidden unnamed_addr constant [38 x i8], align 1
@.str.39 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.40 = external hidden unnamed_addr constant [39 x i8], align 1
@.str.41 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.42 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.43 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.44 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.45 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.46 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.47 = external hidden unnamed_addr constant [37 x i8], align 1
@.str.48 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.49 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.50 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.51 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.52 = external hidden unnamed_addr constant [26 x i8], align 1
@seed = external global i32, align 4
@.str.53 = external hidden unnamed_addr constant [26 x i8], align 1
@REMDInfo = external global %struct.REMDStr, align 8
@.str.54 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.55 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.56 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.57 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.58 = external hidden unnamed_addr constant [26 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: nounwind uwtable
declare dso_local void @BackupFile(ptr noundef) #1

; Function Attrs: nounwind uwtable
declare dso_local void @GenerateFile(ptr noundef) #1

; Function Attrs: nounwind uwtable
define dso_local void @SaveLog(ptr noundef %0) #1 {
  %2 = alloca ptr, align 8
  %3 = alloca ptr, align 8
  %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
  store ptr %0, ptr %2, align 8, !tbaa !5
  call void @DisplayTime(ptr noundef @timer)
  %11 = load ptr, ptr %2, align 8, !tbaa !5
  %12 = getelementptr inbounds %struct.FileStr, ptr %11, i32 0, i32 2
  %13 = load ptr, ptr %12, align 8, !tbaa !9
  %14 = icmp eq ptr %13, null
  br i1 %14, label %15, label %18

15:                                               ; preds = %1
  %16 = load ptr, ptr %2, align 8, !tbaa !5
  call void @BackupFile(ptr noundef %16)
  %17 = load ptr, ptr %2, align 8, !tbaa !5
  call void @GenerateFile(ptr noundef %17)
  br label %18

18:                                               ; preds = %15, %1
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #5
  %19 = load ptr, ptr %2, align 8, !tbaa !5
  %20 = getelementptr inbounds %struct.FileStr, ptr %19, i32 0, i32 2
  %21 = load ptr, ptr %20, align 8, !tbaa !9
  store ptr %21, ptr %3, align 8, !tbaa !5
  %22 = load ptr, ptr %3, align 8, !tbaa !5
  %23 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %22, ptr noundef @.str.9, ptr noundef @timer) #5
  %24 = load ptr, ptr %3, align 8, !tbaa !5
  %25 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %24, ptr noundef @.str.10) #5
  %26 = load ptr, ptr %3, align 8, !tbaa !5
  %27 = load i32, ptr @numofprotein, align 4, !tbaa !12
  %28 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %26, ptr noundef @.str.11, i32 noundef %27) #5
  %29 = load ptr, ptr %3, align 8, !tbaa !5
  %30 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %29, ptr noundef @.str.12) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #5
  store i32 1, ptr %4, align 4, !tbaa !12
  br label %31

31:                                               ; preds = %70, %18
  %32 = load i32, ptr %4, align 4, !tbaa !12
  %33 = load i32, ptr @numofprotein, align 4, !tbaa !12
  %34 = icmp sle i32 %32, %33
  br i1 %34, label %36, label %35

35:                                               ; preds = %31
  store i32 2, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #5
  br label %73

36:                                               ; preds = %31
  %37 = load ptr, ptr %3, align 8, !tbaa !5
  %38 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %37, ptr noundef @.str.13) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #5
  %39 = load ptr, ptr @protein, align 8, !tbaa !5
  %40 = load i32, ptr %4, align 4, !tbaa !12
  %41 = sext i32 %40 to i64
  %42 = getelementptr inbounds %struct.PepStr, ptr %39, i64 %41
  %43 = getelementptr inbounds %struct.PepStr, ptr %42, i32 0, i32 2
  %44 = load i32, ptr %43, align 8, !tbaa !13
  store i32 %44, ptr %6, align 4, !tbaa !12
  br label %45

45:                                               ; preds = %64, %36
  %46 = load i32, ptr %6, align 4, !tbaa !12
  %47 = load ptr, ptr @protein, align 8, !tbaa !5
  %48 = load i32, ptr %4, align 4, !tbaa !12
  %49 = sext i32 %48 to i64
  %50 = getelementptr inbounds %struct.PepStr, ptr %47, i64 %49
  %51 = getelementptr inbounds %struct.PepStr, ptr %50, i32 0, i32 3
  %52 = load i32, ptr %51, align 4, !tbaa !16
  %53 = icmp sle i32 %46, %52
  br i1 %53, label %55, label %54

54:                                               ; preds = %45
  store i32 5, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #5
  br label %67

55:                                               ; preds = %45
  %56 = load ptr, ptr %3, align 8, !tbaa !5
  %57 = load ptr, ptr @aminoacid, align 8, !tbaa !5
  %58 = load i32, ptr %6, align 4, !tbaa !12
  %59 = sext i32 %58 to i64
  %60 = getelementptr inbounds %struct.AAStr, ptr %57, i64 %59
  %61 = getelementptr inbounds %struct.AAStr, ptr %60, i32 0, i32 0
  %62 = getelementptr inbounds [5 x i8], ptr %61, i64 0, i64 0
  %63 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %56, ptr noundef @.str.14, ptr noundef %62) #5
  br label %64

64:                                               ; preds = %55
  %65 = load i32, ptr %6, align 4, !tbaa !12
  %66 = add nsw i32 %65, 1
  store i32 %66, ptr %6, align 4, !tbaa !12
  br label %45, !llvm.loop !17

67:                                               ; preds = %54
  %68 = load ptr, ptr %3, align 8, !tbaa !5
  %69 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %68, ptr noundef @.str.15) #5
  br label %70

70:                                               ; preds = %67
  %71 = load i32, ptr %4, align 4, !tbaa !12
  %72 = add nsw i32 %71, 1
  store i32 %72, ptr %4, align 4, !tbaa !12
  br label %31, !llvm.loop !19

73:                                               ; preds = %35
  %74 = load ptr, ptr %3, align 8, !tbaa !5
  %75 = load double, ptr @oldcurrenttime, align 8, !tbaa !20
  %76 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %74, ptr noundef @.str.16, double noundef %75) #5
  %77 = load ptr, ptr %3, align 8, !tbaa !5
  %78 = load double, ptr @timestep, align 8, !tbaa !20
  %79 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %77, ptr noundef @.str.17, double noundef %78) #5
  %80 = load ptr, ptr %3, align 8, !tbaa !5
  %81 = load double, ptr @targetTemperature, align 8, !tbaa !20
  %82 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %80, ptr noundef @.str.18, double noundef %81) #5
  %83 = load ptr, ptr %3, align 8, !tbaa !5
  %84 = load double, ptr @outputrate, align 8, !tbaa !20
  %85 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %83, ptr noundef @.str.19, double noundef %84) #5
  %86 = load ptr, ptr %3, align 8, !tbaa !5
  %87 = load double, ptr @cutoffr, align 8, !tbaa !20
  %88 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %86, ptr noundef @.str.20, double noundef %87) #5
  %89 = load ptr, ptr %3, align 8, !tbaa !5
  %90 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %89, ptr noundef @.str.21, ptr noundef @Methodtype) #5
  %91 = load ptr, ptr %3, align 8, !tbaa !5
  %92 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %91, ptr noundef @.str.22, ptr noundef @thermostatType) #5
  %93 = load ptr, ptr %3, align 8, !tbaa !5
  %94 = load double, ptr @thermoF, align 8, !tbaa !20
  %95 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %93, ptr noundef @.str.23, double noundef %94) #5
  %96 = load ptr, ptr %3, align 8, !tbaa !5
  %97 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %96, ptr noundef @.str.24, ptr noundef @CG, ptr noundef getelementptr inbounds ([2 x [16 x i8]], ptr @CG, i64 0, i64 1)) #5
  %98 = load ptr, ptr %3, align 8, !tbaa !5
  %99 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %98, ptr noundef @.str.25, ptr noundef @wallExist) #5
  %100 = load ptr, ptr %3, align 8, !tbaa !5
  %101 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %100, ptr noundef @.str.26, ptr noundef @wallType) #5
  %102 = load ptr, ptr %3, align 8, !tbaa !5
  %103 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %102, ptr noundef @.str.27, ptr noundef @wallDyn) #5
  %104 = load ptr, ptr %3, align 8, !tbaa !5
  %105 = load double, ptr getelementptr inbounds (%struct.DynamicWallStr, ptr @wallDyn, i32 0, i32 3), align 8, !tbaa !21
  %106 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %104, ptr noundef @.str.28, double noundef %105) #5
  %107 = load ptr, ptr %3, align 8, !tbaa !5
  %108 = load double, ptr getelementptr inbounds (%struct.DynamicWallStr, ptr @wallDyn, i32 0, i32 4), align 8, !tbaa !23
  %109 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %107, ptr noundef @.str.29, double noundef %108) #5
  %110 = call i32 @strcmp(ptr noundef @wallDyn, ptr noundef @.str.7) #6
  %111 = icmp ne i32 %110, 0
  br i1 %111, label %112, label %118

112:                                              ; preds = %73
  %113 = load ptr, ptr %3, align 8, !tbaa !5
  %114 = load double, ptr getelementptr inbounds ([4 x double], ptr getelementptr inbounds (%struct.DynamicWallStr, ptr @wallDyn, i32 0, i32 7), i64 0, i64 1), align 8, !tbaa !20
  %115 = load double, ptr getelementptr inbounds ([4 x double], ptr getelementptr inbounds (%struct.DynamicWallStr, ptr @wallDyn, i32 0, i32 7), i64 0, i64 2), align 8, !tbaa !20
  %116 = load double, ptr getelementptr inbounds ([4 x double], ptr getelementptr inbounds (%struct.DynamicWallStr, ptr @wallDyn, i32 0, i32 7), i64 0, i64 3), align 8, !tbaa !20
  %117 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %113, ptr noundef @.str.30, double noundef %114, double noundef %115, double noundef %116) #5
  br label %121

118:                                              ; preds = %73
  %119 = load ptr, ptr %3, align 8, !tbaa !5
  %120 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %119, ptr noundef @.str.31) #5
  br label %121

121:                                              ; preds = %118, %112
  %122 = load ptr, ptr %3, align 8, !tbaa !5
  %123 = load double, ptr getelementptr inbounds ([4 x double], ptr @boxDimension, i64 0, i64 1), align 8, !tbaa !20
  %124 = load double, ptr getelementptr inbounds ([4 x double], ptr @boxDimension, i64 0, i64 2), align 16, !tbaa !20
  %125 = load double, ptr getelementptr inbounds ([4 x double], ptr @boxDimension, i64 0, i64 3), align 8, !tbaa !20
  %126 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %122, ptr noundef @.str.32, double noundef %123, double noundef %124, double noundef %125) #5
  %127 = load ptr, ptr %3, align 8, !tbaa !5
  %128 = load i32, ptr @flow, align 8, !tbaa !24
  %129 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %127, ptr noundef @.str.33, i32 noundef %128) #5
  %130 = load i32, ptr @flow, align 8, !tbaa !24
  %131 = icmp ne i32 %130, 0
  br i1 %131, label %135, label %132

132:                                              ; preds = %121
  %133 = load ptr, ptr %3, align 8, !tbaa !5
  %134 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %133, ptr noundef @.str.34) #5
  br label %208

135:                                              ; preds = %121
  %136 = load i32, ptr @flow, align 8, !tbaa !24
  %137 = icmp eq i32 %136, 1
  br i1 %137, label %138, label %144

138:                                              ; preds = %135
  %139 = load ptr, ptr %3, align 8, !tbaa !5
  %140 = load double, ptr getelementptr inbounds ([4 x double], ptr getelementptr inbounds (%struct.FlowStr, ptr @flow, i32 0, i32 1), i64 0, i64 1), align 8, !tbaa !20
  %141 = load double, ptr getelementptr inbounds ([4 x double], ptr getelementptr inbounds (%struct.FlowStr, ptr @flow, i32 0, i32 1), i64 0, i64 2), align 8, !tbaa !20
  %142 = load double, ptr getelementptr inbounds ([4 x double], ptr getelementptr inbounds (%struct.FlowStr, ptr @flow, i32 0, i32 1), i64 0, i64 3), align 8, !tbaa !20
  %143 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %139, ptr noundef @.str.35, double noundef %140, double noundef %141, double noundef %142) #5
  br label %207

144:                                              ; preds = %135
  %145 = load i32, ptr @flow, align 8, !tbaa !24
  %146 = icmp eq i32 %145, 2
  br i1 %146, label %147, label %153

147:                                              ; preds = %144
  %148 = load ptr, ptr %3, align 8, !tbaa !5
  %149 = load double, ptr getelementptr inbounds ([4 x double], ptr getelementptr inbounds (%struct.FlowStr, ptr @flow, i32 0, i32 2), i64 0, i64 1), align 8, !tbaa !20
  %150 = load double, ptr getelementptr inbounds ([4 x double], ptr getelementptr inbounds (%struct.FlowStr, ptr @flow, i32 0, i32 2), i64 0, i64 2), align 8, !tbaa !20
  %151 = load double, ptr getelementptr inbounds ([4 x double], ptr getelementptr inbounds (%struct.FlowStr, ptr @flow, i32 0, i32 2), i64 0, i64 3), align 8, !tbaa !20
  %152 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %148, ptr noundef @.str.36, double noundef %149, double noundef %150, double noundef %151) #5
  br label %206

153:                                              ; preds = %144
  %154 = load i32, ptr @flow, align 8, !tbaa !24
  %155 = icmp eq i32 %154, 3
  br i1 %155, label %156, label %205

156:                                              ; preds = %153
  %157 = load ptr, ptr %3, align 8, !tbaa !5
  %158 = load i32, ptr getelementptr inbounds (%struct.FlowStr, ptr @flow, i32 0, i32 3), align 8, !tbaa !29
  %159 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %157, ptr noundef @.str.37, i32 noundef %158) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #5
  store i32 0, ptr %7, align 4, !tbaa !12
  br label %160

160:                                              ; preds = %199, %156
  %161 = load i32, ptr %7, align 4, !tbaa !12
  %162 = load i32, ptr getelementptr inbounds (%struct.FlowStr, ptr @flow, i32 0, i32 3), align 8, !tbaa !29
  %163 = icmp slt i32 %161, %162
  br i1 %163, label %165, label %164

164:                                              ; preds = %160
  store i32 8, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #5
  br label %202

165:                                              ; preds = %160
  %166 = load ptr, ptr %3, align 8, !tbaa !5
  %167 = load ptr, ptr getelementptr inbounds (%struct.ChargeStr, ptr getelementptr inbounds (%struct.FlowStr, ptr @flow, i32 0, i32 3), i32 0, i32 2), align 8, !tbaa !30
  %168 = load i32, ptr %7, align 4, !tbaa !12
  %169 = sext i32 %168 to i64
  %170 = getelementptr inbounds ptr, ptr %167, i64 %169
  %171 = load ptr, ptr %170, align 8, !tbaa !5
  %172 = getelementptr inbounds double, ptr %171, i64 1
  %173 = load double, ptr %172, align 8, !tbaa !20
  %174 = load ptr, ptr getelementptr inbounds (%struct.ChargeStr, ptr getelementptr inbounds (%struct.FlowStr, ptr @flow, i32 0, i32 3), i32 0, i32 2), align 8, !tbaa !30
  %175 = load i32, ptr %7, align 4, !tbaa !12
  %176 = sext i32 %175 to i64
  %177 = getelementptr inbounds ptr, ptr %174, i64 %176
  %178 = load ptr, ptr %177, align 8, !tbaa !5
  %179 = getelementptr inbounds double, ptr %178, i64 2
  %180 = load double, ptr %179, align 8, !tbaa !20
  %181 = load ptr, ptr getelementptr inbounds (%struct.ChargeStr, ptr getelementptr inbounds (%struct.FlowStr, ptr @flow, i32 0, i32 3), i32 0, i32 2), align 8, !tbaa !30
  %182 = load i32, ptr %7, align 4, !tbaa !12
  %183 = sext i32 %182 to i64
  %184 = getelementptr inbounds ptr, ptr %181, i64 %183
  %185 = load ptr, ptr %184, align 8, !tbaa !5
  %186 = getelementptr inbounds double, ptr %185, i64 3
  %187 = load double, ptr %186, align 8, !tbaa !20
  %188 = load ptr, ptr getelementptr inbounds (%struct.ChargeStr, ptr getelementptr inbounds (%struct.FlowStr, ptr @flow, i32 0, i32 3), i32 0, i32 4), align 8, !tbaa !31
  %189 = load i32, ptr %7, align 4, !tbaa !12
  %190 = sext i32 %189 to i64
  %191 = getelementptr inbounds double, ptr %188, i64 %190
  %192 = load double, ptr %191, align 8, !tbaa !20
  %193 = load ptr, ptr getelementptr inbounds (%struct.ChargeStr, ptr getelementptr inbounds (%struct.FlowStr, ptr @flow, i32 0, i32 3), i32 0, i32 5), align 8, !tbaa !32
  %194 = load i32, ptr %7, align 4, !tbaa !12
  %195 = sext i32 %194 to i64
  %196 = getelementptr inbounds double, ptr %193, i64 %195
  %197 = load double, ptr %196, align 8, !tbaa !20
  %198 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %166, ptr noundef @.str.38, double noundef %173, double noundef %180, double noundef %187, double noundef %192, double noundef %197) #5
  br label %199

199:                                              ; preds = %165
  %200 = load i32, ptr %7, align 4, !tbaa !12
  %201 = add nsw i32 %200, 1
  store i32 %201, ptr %7, align 4, !tbaa !12
  br label %160, !llvm.loop !33

202:                                              ; preds = %164
  %203 = load ptr, ptr %3, align 8, !tbaa !5
  %204 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %203, ptr noundef @.str.15) #5
  br label %205

205:                                              ; preds = %202, %153
  br label %206

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

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

208:                                              ; preds = %207, %132
  %209 = load ptr, ptr %3, align 8, !tbaa !5
  %210 = load i32, ptr getelementptr inbounds (%struct.ObstructionStr, ptr @obstObj, i32 0, i32 1), align 4, !tbaa !34
  %211 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %209, ptr noundef @.str.39, i32 noundef %210) #5
  %212 = load i32, ptr getelementptr inbounds (%struct.ObstructionStr, ptr @obstObj, i32 0, i32 1), align 4, !tbaa !34
  %213 = icmp ne i32 %212, 0
  br i1 %213, label %217, label %214

214:                                              ; preds = %208
  %215 = load ptr, ptr %3, align 8, !tbaa !5
  %216 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %215, ptr noundef @.str.40) #5
  br label %263

217:                                              ; preds = %208
  %218 = load ptr, ptr %3, align 8, !tbaa !5
  %219 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %218, ptr noundef @.str.41) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #5
  store i32 0, ptr %8, align 4, !tbaa !12
  br label %220

220:                                              ; preds = %257, %217
  %221 = load i32, ptr %8, align 4, !tbaa !12
  %222 = load i32, ptr getelementptr inbounds (%struct.ObstructionStr, ptr @obstObj, i32 0, i32 1), align 4, !tbaa !34
  %223 = icmp slt i32 %221, %222
  br i1 %223, label %225, label %224

224:                                              ; preds = %220
  store i32 11, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #5
  br label %260

225:                                              ; preds = %220
  %226 = load ptr, ptr %3, align 8, !tbaa !5
  %227 = load ptr, ptr getelementptr inbounds (%struct.ObstructionStr, ptr @obstObj, i32 0, i32 3), align 8, !tbaa !36
  %228 = load i32, ptr %8, align 4, !tbaa !12
  %229 = sext i32 %228 to i64
  %230 = getelementptr inbounds ptr, ptr %227, i64 %229
  %231 = load ptr, ptr %230, align 8, !tbaa !5
  %232 = getelementptr inbounds double, ptr %231, i64 1
  %233 = load double, ptr %232, align 8, !tbaa !20
  %234 = load ptr, ptr getelementptr inbounds (%struct.ObstructionStr, ptr @obstObj, i32 0, i32 3), align 8, !tbaa !36
  %235 = load i32, ptr %8, align 4, !tbaa !12
  %236 = sext i32 %235 to i64
  %237 = getelementptr inbounds ptr, ptr %234, i64 %236
  %238 = load ptr, ptr %237, align 8, !tbaa !5
  %239 = getelementptr inbounds double, ptr %238, i64 2
  %240 = load double, ptr %239, align 8, !tbaa !20
  %241 = load ptr, ptr getelementptr inbounds (%struct.ObstructionStr, ptr @obstObj, i32 0, i32 3), align 8, !tbaa !36
  %242 = load i32, ptr %8, align 4, !tbaa !12
  %243 = sext i32 %242 to i64
  %244 = getelementptr inbounds ptr, ptr %241, i64 %243
  %245 = load ptr, ptr %244, align 8, !tbaa !5
  %246 = getelementptr inbounds double, ptr %245, i64 3
  %247 = load double, ptr %246, align 8, !tbaa !20
  %248 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %226, ptr noundef @.str.42, double noundef %233, double noundef %240, double noundef %247) #5
  %249 = load i32, ptr %8, align 4, !tbaa !12
  %250 = load i32, ptr getelementptr inbounds (%struct.ObstructionStr, ptr @obstObj, i32 0, i32 1), align 4, !tbaa !34
  %251 = sub nsw i32 %250, 1
  %252 = icmp slt i32 %249, %251
  br i1 %252, label %253, label %256

253:                                              ; preds = %225
  %254 = load ptr, ptr %3, align 8, !tbaa !5
  %255 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %254, ptr noundef @.str.43) #5
  br label %256

256:                                              ; preds = %253, %225
  br label %257

257:                                              ; preds = %256
  %258 = load i32, ptr %8, align 4, !tbaa !12
  %259 = add nsw i32 %258, 1
  store i32 %259, ptr %8, align 4, !tbaa !12
  br label %220, !llvm.loop !37

260:                                              ; preds = %224
  %261 = load ptr, ptr %3, align 8, !tbaa !5
  %262 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %261, ptr noundef @.str.15) #5
  br label %263

263:                                              ; preds = %260, %214
  %264 = load ptr, ptr %3, align 8, !tbaa !5
  %265 = load i32, ptr @tunlObj, align 8, !tbaa !38
  %266 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %264, ptr noundef @.str.44, i32 noundef %265) #5
  %267 = load i32, ptr @tunlObj, align 8, !tbaa !38
  %268 = icmp ne i32 %267, 0
  br i1 %268, label %272, label %269

269:                                              ; preds = %263
  %270 = load ptr, ptr %3, align 8, !tbaa !5
  %271 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %270, ptr noundef @.str.45) #5
  br label %330

272:                                              ; preds = %263
  %273 = load ptr, ptr %3, align 8, !tbaa !5
  %274 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %273, ptr noundef @.str.46) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #5
  store i32 0, ptr %9, align 4, !tbaa !12
  br label %275

275:                                              ; preds = %324, %272
  %276 = load i32, ptr %9, align 4, !tbaa !12
  %277 = load i32, ptr getelementptr inbounds (%struct.TunnelStr, ptr @tunlObj, i32 0, i32 1), align 4, !tbaa !41
  %278 = icmp slt i32 %276, %277
  br i1 %278, label %280, label %279

279:                                              ; preds = %275
  store i32 14, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #5
  br label %327

280:                                              ; preds = %275
  %281 = load ptr, ptr %3, align 8, !tbaa !5
  %282 = load ptr, ptr getelementptr inbounds (%struct.TunnelStr, ptr @tunlObj, i32 0, i32 2), align 8, !tbaa !42
  %283 = load i32, ptr %9, align 4, !tbaa !12
  %284 = sext i32 %283 to i64
  %285 = getelementptr inbounds ptr, ptr %282, i64 %284
  %286 = load ptr, ptr %285, align 8, !tbaa !5
  %287 = getelementptr inbounds double, ptr %286, i64 0
  %288 = load double, ptr %287, align 8, !tbaa !20
  %289 = load ptr, ptr getelementptr inbounds (%struct.TunnelStr, ptr @tunlObj, i32 0, i32 2), align 8, !tbaa !42
  %290 = load i32, ptr %9, align 4, !tbaa !12
  %291 = sext i32 %290 to i64
  %292 = getelementptr inbounds ptr, ptr %289, i64 %291
  %293 = load ptr, ptr %292, align 8, !tbaa !5
  %294 = getelementptr inbounds double, ptr %293, i64 1
  %295 = load double, ptr %294, align 8, !tbaa !20
  %296 = load ptr, ptr getelementptr inbounds (%struct.TunnelStr, ptr @tunlObj, i32 0, i32 2), align 8, !tbaa !42
  %297 = load i32, ptr %9, align 4, !tbaa !12
  %298 = sext i32 %297 to i64
  %299 = getelementptr inbounds ptr, ptr %296, i64 %298
  %300 = load ptr, ptr %299, align 8, !tbaa !5
  %301 = getelementptr inbounds double, ptr %300, i64 2
  %302 = load double, ptr %301, align 8, !tbaa !20
  %303 = load ptr, ptr getelementptr inbounds (%struct.TunnelStr, ptr @tunlObj, i32 0, i32 2), align 8, !tbaa !42
  %304 = load i32, ptr %9, align 4, !tbaa !12
  %305 = sext i32 %304 to i64
  %306 = getelementptr inbounds ptr, ptr %303, i64 %305
  %307 = load ptr, ptr %306, align 8, !tbaa !5
  %308 = getelementptr inbounds double, ptr %307, i64 3
  %309 = load double, ptr %308, align 8, !tbaa !20
  %310 = load ptr, ptr getelementptr inbounds (%struct.TunnelStr, ptr @tunlObj, i32 0, i32 3), align 8, !tbaa !43
  %311 = load i32, ptr %9, align 4, !tbaa !12
  %312 = sext i32 %311 to i64
  %313 = getelementptr inbounds double, ptr %310, i64 %312
  %314 = load double, ptr %313, align 8, !tbaa !20
  %315 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %281, ptr noundef @.str.47, double noundef %288, double noundef %295, double noundef %302, double noundef %309, double noundef %314) #5
  %316 = load i32, ptr %9, align 4, !tbaa !12
  %317 = load i32, ptr getelementptr inbounds (%struct.TunnelStr, ptr @tunlObj, i32 0, i32 1), align 4, !tbaa !41
  %318 = sub nsw i32 %317, 1
  %319 = icmp slt i32 %316, %318
  br i1 %319, label %320, label %323

320:                                              ; preds = %280
  %321 = load ptr, ptr %3, align 8, !tbaa !5
  %322 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %321, ptr noundef @.str.43) #5
  br label %323

323:                                              ; preds = %320, %280
  br label %324

324:                                              ; preds = %323
  %325 = load i32, ptr %9, align 4, !tbaa !12
  %326 = add nsw i32 %325, 1
  store i32 %326, ptr %9, align 4, !tbaa !12
  br label %275, !llvm.loop !44

327:                                              ; preds = %279
  %328 = load ptr, ptr %3, align 8, !tbaa !5
  %329 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %328, ptr noundef @.str.15) #5
  br label %330

330:                                              ; preds = %327, %269
  %331 = load ptr, ptr %3, align 8, !tbaa !5
  %332 = load i32, ptr @SphObstObj, align 8, !tbaa !45
  %333 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %331, ptr noundef @.str.48, i32 noundef %332) #5
  %334 = load i32, ptr @SphObstObj, align 8, !tbaa !45
  %335 = icmp ne i32 %334, 0
  br i1 %335, label %339, label %336

336:                                              ; preds = %330
  %337 = load ptr, ptr %3, align 8, !tbaa !5
  %338 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %337, ptr noundef @.str.49) #5
  br label %391

339:                                              ; preds = %330
  %340 = load ptr, ptr %3, align 8, !tbaa !5
  %341 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %340, ptr noundef @.str.50) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #5
  store i32 0, ptr %10, align 4, !tbaa !12
  br label %342

342:                                              ; preds = %385, %339
  %343 = load i32, ptr %10, align 4, !tbaa !12
  %344 = load i32, ptr getelementptr inbounds (%struct.SphObstStr, ptr @SphObstObj, i32 0, i32 1), align 4, !tbaa !47
  %345 = icmp slt i32 %343, %344
  br i1 %345, label %347, label %346

346:                                              ; preds = %342
  store i32 17, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #5
  br label %388

347:                                              ; preds = %342
  %348 = load ptr, ptr %3, align 8, !tbaa !5
  %349 = load ptr, ptr getelementptr inbounds (%struct.SphObstStr, ptr @SphObstObj, i32 0, i32 3), align 8, !tbaa !48
  %350 = load i32, ptr %10, align 4, !tbaa !12
  %351 = sext i32 %350 to i64
  %352 = getelementptr inbounds ptr, ptr %349, i64 %351
  %353 = load ptr, ptr %352, align 8, !tbaa !5
  %354 = getelementptr inbounds double, ptr %353, i64 1
  %355 = load double, ptr %354, align 8, !tbaa !20
  %356 = load ptr, ptr getelementptr inbounds (%struct.SphObstStr, ptr @SphObstObj, i32 0, i32 3), align 8, !tbaa !48
  %357 = load i32, ptr %10, align 4, !tbaa !12
  %358 = sext i32 %357 to i64
  %359 = getelementptr inbounds ptr, ptr %356, i64 %358
  %360 = load ptr, ptr %359, align 8, !tbaa !5
  %361 = getelementptr inbounds double, ptr %360, i64 2
  %362 = load double, ptr %361, align 8, !tbaa !20
  %363 = load ptr, ptr getelementptr inbounds (%struct.SphObstStr, ptr @SphObstObj, i32 0, i32 3), align 8, !tbaa !48
  %364 = load i32, ptr %10, align 4, !tbaa !12
  %365 = sext i32 %364 to i64
  %366 = getelementptr inbounds ptr, ptr %363, i64 %365
  %367 = load ptr, ptr %366, align 8, !tbaa !5
  %368 = getelementptr inbounds double, ptr %367, i64 3
  %369 = load double, ptr %368, align 8, !tbaa !20
  %370 = load ptr, ptr getelementptr inbounds (%struct.SphObstStr, ptr @SphObstObj, i32 0, i32 2), align 8, !tbaa !49
  %371 = load i32, ptr %10, align 4, !tbaa !12
  %372 = sext i32 %371 to i64
  %373 = getelementptr inbounds double, ptr %370, i64 %372
  %374 = load double, ptr %373, align 8, !tbaa !20
  %375 = fmul double %374, 2.000000e+00
  %376 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %348, ptr noundef @.str.51, double noundef %355, double noundef %362, double noundef %369, double noundef %375) #5
  %377 = load i32, ptr %10, align 4, !tbaa !12
  %378 = load i32, ptr getelementptr inbounds (%struct.SphObstStr, ptr @SphObstObj, i32 0, i32 1), align 4, !tbaa !47
  %379 = sub nsw i32 %378, 1
  %380 = icmp slt i32 %377, %379
  br i1 %380, label %381, label %384

381:                                              ; preds = %347
  %382 = load ptr, ptr %3, align 8, !tbaa !5
  %383 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %382, ptr noundef @.str.43) #5
  br label %384

384:                                              ; preds = %381, %347
  br label %385

385:                                              ; preds = %384
  %386 = load i32, ptr %10, align 4, !tbaa !12
  %387 = add nsw i32 %386, 1
  store i32 %387, ptr %10, align 4, !tbaa !12
  br label %342, !llvm.loop !50

388:                                              ; preds = %346
  %389 = load ptr, ptr %3, align 8, !tbaa !5
  %390 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %389, ptr noundef @.str.15) #5
  br label %391

391:                                              ; preds = %388, %336
  %392 = load ptr, ptr %3, align 8, !tbaa !5
  %393 = load i32, ptr @seed, align 4, !tbaa !12
  %394 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %392, ptr noundef @.str.52, i32 noundef %393) #5
  %395 = load ptr, ptr %3, align 8, !tbaa !5
  %396 = load i32, ptr getelementptr inbounds (%struct.REMDStr, ptr @REMDInfo, i32 0, i32 1), align 4, !tbaa !51
  %397 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %395, ptr noundef @.str.53, i32 noundef %396) #5
  %398 = load ptr, ptr %3, align 8, !tbaa !5
  %399 = load double, ptr getelementptr inbounds (%struct.REMDTempStr, ptr getelementptr inbounds (%struct.REMDStr, ptr @REMDInfo, i32 0, i32 5), i32 0, i32 1), align 8, !tbaa !54
  %400 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %398, ptr noundef @.str.54, double noundef %399) #5
  %401 = load ptr, ptr %3, align 8, !tbaa !5
  %402 = load i32, ptr getelementptr inbounds (%struct.REMDStr, ptr @REMDInfo, i32 0, i32 5), align 8, !tbaa !55
  %403 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %401, ptr noundef @.str.55, i32 noundef %402) #5
  %404 = load ptr, ptr %3, align 8, !tbaa !5
  %405 = load i32, ptr getelementptr inbounds (%struct.REMDStr, ptr @REMDInfo, i32 0, i32 2), align 8, !tbaa !56
  %406 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %404, ptr noundef @.str.56, i32 noundef %405) #5
  %407 = load ptr, ptr %3, align 8, !tbaa !5
  %408 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %407, ptr noundef @.str.57, ptr noundef getelementptr inbounds (%struct.REMDStr, ptr @REMDInfo, i32 0, i32 3)) #5
  %409 = load ptr, ptr %3, align 8, !tbaa !5
  %410 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %409, ptr noundef @.str.58, ptr noundef getelementptr inbounds (%struct.REMDStr, ptr @REMDInfo, i32 0, i32 4)) #5
  %411 = load ptr, ptr %3, align 8, !tbaa !5
  %412 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %411, ptr noundef @.str.15) #5
  %413 = load ptr, ptr %3, align 8, !tbaa !5
  %414 = call i32 @fclose(ptr noundef %413)
  store i32 1, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #5
  ret void
}

; Function Attrs: nounwind willreturn memory(read)
declare i32 @strcmp(ptr noundef, ptr noundef) #2

declare i32 @fclose(ptr noundef) #3

declare void @DisplayTime(ptr noundef) #3

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !6, i64 264}
!10 = !{!"FileStr", !11, i64 0, !7, i64 4, !6, i64 264}
!11 = !{!"int", !7, i64 0}
!12 = !{!11, !11, i64 0}
!13 = !{!14, !11, i64 8}
!14 = !{!"PepStr", !11, i64 0, !11, i64 4, !11, i64 8, !11, i64 12, !15, i64 16}
!15 = !{!"double", !7, i64 0}
!16 = !{!14, !11, i64 12}
!17 = distinct !{!17, !18}
!18 = !{!"llvm.loop.mustprogress"}
!19 = distinct !{!19, !18}
!20 = !{!15, !15, i64 0}
!21 = !{!22, !15, i64 24}
!22 = !{!"DynamicWallStr", !7, i64 0, !11, i64 16, !11, i64 20, !15, i64 24, !15, i64 32, !15, i64 40, !15, i64 48, !7, i64 56}
!23 = !{!22, !15, i64 32}
!24 = !{!25, !11, i64 0}
!25 = !{!"FlowStr", !11, i64 0, !26, i64 8, !27, i64 40, !28, i64 88}
!26 = !{!"ConstVStr", !7, i64 0}
!27 = !{!"ForceStr", !7, i64 0, !6, i64 32, !6, i64 40}
!28 = !{!"ChargeStr", !11, i64 0, !11, i64 4, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32}
!29 = !{!25, !11, i64 88}
!30 = !{!25, !6, i64 96}
!31 = !{!25, !6, i64 112}
!32 = !{!25, !6, i64 120}
!33 = distinct !{!33, !18}
!34 = !{!35, !11, i64 4}
!35 = !{!"ObstructionStr", !11, i64 0, !11, i64 4, !6, i64 8, !6, i64 16, !6, i64 24}
!36 = !{!35, !6, i64 16}
!37 = distinct !{!37, !18}
!38 = !{!39, !11, i64 0}
!39 = !{!"TunnelStr", !11, i64 0, !11, i64 4, !6, i64 8, !6, i64 16, !40, i64 24}
!40 = !{!"AtomStr", !6, i64 0, !6, i64 8}
!41 = !{!39, !11, i64 4}
!42 = !{!39, !6, i64 8}
!43 = !{!39, !6, i64 16}
!44 = distinct !{!44, !18}
!45 = !{!46, !11, i64 0}
!46 = !{!"SphObstStr", !11, i64 0, !11, i64 4, !6, i64 8, !6, i64 16}
!47 = !{!46, !11, i64 4}
!48 = !{!46, !6, i64 16}
!49 = !{!46, !6, i64 8}
!50 = distinct !{!50, !18}
!51 = !{!52, !11, i64 4}
!52 = !{!"REMDStr", !11, i64 0, !11, i64 4, !11, i64 8, !7, i64 12, !7, i64 62, !53, i64 112}
!53 = !{!"REMDTempStr", !11, i64 0, !15, i64 8}
!54 = !{!52, !15, i64 120}
!55 = !{!52, !11, i64 112}
!56 = !{!52, !11, i64 8}


; 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.CGGovStr = type { [2 x [16 x i8]], i32, i32, ptr, ptr }
%struct.FlowStr = type { i32, %struct.ConstVStr, %struct.ForceStr, %struct.ChargeStr }
%struct.ConstVStr = type { [4 x double] }
%struct.ForceStr = type { [4 x double], ptr, ptr }
%struct.ChargeStr = type { i32, i32, ptr, ptr, ptr, ptr }
%struct.ObstructionStr = type { i32, i32, ptr, ptr, ptr }
%struct.TunnelStr = type { i32, i32, ptr, ptr, %struct.AtomStr }
%struct.AtomStr = type { ptr, ptr }
%struct.SphObstStr = type { i32, i32, ptr, ptr }
%struct.DynamicWallStr = type { [16 x i8], i32, i32, double, double, double, double, [4 x double] }
%struct.REMDStr = type { i32, i32, i32, [50 x i8], [50 x i8], %struct.REMDTempStr }
%struct.REMDTempStr = type { i32, double }
%struct.PepStr = type { i32, i32, i32, i32, double }
%struct.AAStr = type { [5 x i8], i32, i32, i32, i32, double }

@timer = external global [30 x i8], align 16
@wallExist = external global [20 x i8], align 16
@.str.7 = external hidden unnamed_addr constant [3 x i8], align 1
@wallType = external global [20 x i8], align 16
@CG = external global %struct.CGGovStr, align 8
@flow = external local_unnamed_addr global %struct.FlowStr, align 8
@obstObj = external local_unnamed_addr global %struct.ObstructionStr, align 8
@tunlObj = external local_unnamed_addr global %struct.TunnelStr, align 8
@SphObstObj = external local_unnamed_addr global %struct.SphObstStr, align 8
@protein = external local_unnamed_addr global ptr, align 8
@aminoacid = external local_unnamed_addr global ptr, align 8
@numofprotein = external local_unnamed_addr global i32, align 4
@.str.9 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [31 x i8], align 1
@oldcurrenttime = external local_unnamed_addr global double, align 8
@.str.17 = external hidden unnamed_addr constant [31 x i8], align 1
@timestep = external local_unnamed_addr global double, align 8
@.str.18 = external hidden unnamed_addr constant [31 x i8], align 1
@targetTemperature = external local_unnamed_addr global double, align 8
@.str.19 = external hidden unnamed_addr constant [31 x i8], align 1
@outputrate = external local_unnamed_addr global double, align 8
@.str.20 = external hidden unnamed_addr constant [31 x i8], align 1
@cutoffr = external local_unnamed_addr global double, align 8
@.str.21 = external hidden unnamed_addr constant [26 x i8], align 1
@Methodtype = external global [20 x i8], align 16
@.str.22 = external hidden unnamed_addr constant [26 x i8], align 1
@thermostatType = external global [20 x i8], align 16
@.str.23 = external hidden unnamed_addr constant [31 x i8], align 1
@thermoF = external local_unnamed_addr global double, align 8
@.str.24 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.26 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.27 = external hidden unnamed_addr constant [26 x i8], align 1
@wallDyn = external global %struct.DynamicWallStr, align 8
@.str.28 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.29 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.30 = external hidden unnamed_addr constant [45 x i8], align 1
@.str.31 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.32 = external hidden unnamed_addr constant [45 x i8], align 1
@boxDimension = external local_unnamed_addr global [4 x double], align 16
@.str.33 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.34 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.35 = external hidden unnamed_addr constant [45 x i8], align 1
@.str.36 = external hidden unnamed_addr constant [45 x i8], align 1
@.str.37 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.38 = external hidden unnamed_addr constant [38 x i8], align 1
@.str.39 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.40 = external hidden unnamed_addr constant [39 x i8], align 1
@.str.41 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.42 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.43 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.44 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.45 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.46 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.47 = external hidden unnamed_addr constant [37 x i8], align 1
@.str.48 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.49 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.50 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.51 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.52 = external hidden unnamed_addr constant [26 x i8], align 1
@seed = external local_unnamed_addr global i32, align 4
@.str.53 = external hidden unnamed_addr constant [26 x i8], align 1
@REMDInfo = external global %struct.REMDStr, align 8
@.str.54 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.55 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.56 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.57 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.58 = external hidden unnamed_addr constant [26 x i8], align 1

; Function Attrs: nounwind uwtable
declare dso_local void @BackupFile(ptr noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare dso_local void @GenerateFile(ptr noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
define dso_local void @SaveLog(ptr noundef %0) local_unnamed_addr #0 {
  tail call void @DisplayTime(ptr noundef nonnull @timer) #4
  %2 = getelementptr inbounds i8, ptr %0, i64 264
  %3 = load ptr, ptr %2, align 8, !tbaa !5
  %4 = icmp eq ptr %3, null
  br i1 %4, label %5, label %6

5:                                                ; preds = %1
  tail call void @BackupFile(ptr noundef nonnull %0)
  tail call void @GenerateFile(ptr noundef nonnull %0)
  %.pre = load ptr, ptr %2, align 8, !tbaa !5
  br label %6

6:                                                ; preds = %5, %1
  %7 = phi ptr [ %.pre, %5 ], [ %3, %1 ]
  %8 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %7, ptr noundef nonnull @.str.9, ptr noundef nonnull @timer) #4
  %9 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %7, ptr noundef nonnull @.str.10) #4
  %10 = load i32, ptr @numofprotein, align 4, !tbaa !11
  %11 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %7, ptr noundef nonnull @.str.11, i32 noundef %10) #4
  %12 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %7, ptr noundef nonnull @.str.12) #4
  %13 = load i32, ptr @numofprotein, align 4, !tbaa !11
  %.not110 = icmp slt i32 %13, 1
  br i1 %.not110, label %._crit_edge114, label %.lr.ph113

._crit_edge114:                                   ; preds = %._crit_edge, %6
  %14 = load double, ptr @oldcurrenttime, align 8, !tbaa !12
  %15 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %7, ptr noundef nonnull @.str.16, double noundef %14) #4
  %16 = load double, ptr @timestep, align 8, !tbaa !12
  %17 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %7, ptr noundef nonnull @.str.17, double noundef %16) #4
  %18 = load double, ptr @targetTemperature, align 8, !tbaa !12
  %19 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %7, ptr noundef nonnull @.str.18, double noundef %18) #4
  %20 = load double, ptr @outputrate, align 8, !tbaa !12
  %21 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %7, ptr noundef nonnull @.str.19, double noundef %20) #4
  %22 = load double, ptr @cutoffr, align 8, !tbaa !12
  %23 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %7, ptr noundef nonnull @.str.20, double noundef %22) #4
  %24 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %7, ptr noundef nonnull @.str.21, ptr noundef nonnull @Methodtype) #4
  %25 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %7, ptr noundef nonnull @.str.22, ptr noundef nonnull @thermostatType) #4
  %26 = load double, ptr @thermoF, align 8, !tbaa !12
  %27 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %7, ptr noundef nonnull @.str.23, double noundef %26) #4
  %28 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %7, ptr noundef nonnull @.str.24, ptr noundef nonnull @CG, ptr noundef nonnull getelementptr inbounds (i8, ptr @CG, i64 16)) #4
  %29 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %7, ptr noundef nonnull @.str.25, ptr noundef nonnull @wallExist) #4
  %30 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %7, ptr noundef nonnull @.str.26, ptr noundef nonnull @wallType) #4
  %31 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %7, ptr noundef nonnull @.str.27, ptr noundef nonnull @wallDyn) #4
  %32 = load double, ptr getelementptr inbounds (i8, ptr @wallDyn, i64 24), align 8, !tbaa !14
  %33 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %7, ptr noundef nonnull @.str.28, double noundef %32) #4
  %34 = load double, ptr getelementptr inbounds (i8, ptr @wallDyn, i64 32), align 8, !tbaa !16
  %35 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %7, ptr noundef nonnull @.str.29, double noundef %34) #4
  %36 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) @wallDyn, ptr noundef nonnull dereferenceable(1) @.str.7) #5
  %.not102 = icmp eq i32 %36, 0
  br i1 %.not102, label %59, label %54

.lr.ph113:                                        ; preds = %6, %._crit_edge
  %indvars.iv132 = phi i64 [ %indvars.iv.next133, %._crit_edge ], [ 1, %6 ]
  %37 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %7, ptr noundef nonnull @.str.13) #4
  %38 = load ptr, ptr @protein, align 8, !tbaa !17
  %39 = getelementptr inbounds %struct.PepStr, ptr %38, i64 %indvars.iv132, i32 2
  %40 = load i32, ptr %39, align 8, !tbaa !18
  %41 = getelementptr inbounds %struct.PepStr, ptr %38, i64 %indvars.iv132, i32 3
  %42 = load i32, ptr %41, align 4, !tbaa !20
  %.not107108 = icmp sgt i32 %40, %42
  br i1 %.not107108, label %._crit_edge, label %.lr.ph.preheader

.lr.ph.preheader:                                 ; preds = %.lr.ph113
  %43 = sext i32 %40 to i64
  br label %.lr.ph

._crit_edge:                                      ; preds = %.lr.ph, %.lr.ph113
  %44 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %7, ptr noundef nonnull @.str.15) #4
  %indvars.iv.next133 = add nuw nsw i64 %indvars.iv132, 1
  %45 = load i32, ptr @numofprotein, align 4, !tbaa !11
  %46 = sext i32 %45 to i64
  %.not.not = icmp slt i64 %indvars.iv132, %46
  br i1 %.not.not, label %.lr.ph113, label %._crit_edge114, !llvm.loop !21

.lr.ph:                                           ; preds = %.lr.ph.preheader, %.lr.ph
  %indvars.iv = phi i64 [ %43, %.lr.ph.preheader ], [ %indvars.iv.next, %.lr.ph ]
  %47 = load ptr, ptr @aminoacid, align 8, !tbaa !17
  %48 = getelementptr inbounds %struct.AAStr, ptr %47, i64 %indvars.iv
  %49 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %7, ptr noundef nonnull @.str.14, ptr noundef %48) #4
  %indvars.iv.next = add nsw i64 %indvars.iv, 1
  %50 = load ptr, ptr @protein, align 8, !tbaa !17
  %51 = getelementptr inbounds %struct.PepStr, ptr %50, i64 %indvars.iv132, i32 3
  %52 = load i32, ptr %51, align 4, !tbaa !20
  %53 = sext i32 %52 to i64
  %.not107.not = icmp slt i64 %indvars.iv, %53
  br i1 %.not107.not, label %.lr.ph, label %._crit_edge, !llvm.loop !23

54:                                               ; preds = %._crit_edge114
  %55 = load double, ptr getelementptr inbounds (i8, ptr @wallDyn, i64 64), align 8, !tbaa !12
  %56 = load double, ptr getelementptr inbounds (i8, ptr @wallDyn, i64 72), align 8, !tbaa !12
  %57 = load double, ptr getelementptr inbounds (i8, ptr @wallDyn, i64 80), align 8, !tbaa !12
  %58 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %7, ptr noundef nonnull @.str.30, double noundef %55, double noundef %56, double noundef %57) #4
  br label %61

59:                                               ; preds = %._crit_edge114
  %60 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %7, ptr noundef nonnull @.str.31) #4
  br label %61

61:                                               ; preds = %59, %54
  %62 = load double, ptr getelementptr inbounds (i8, ptr @boxDimension, i64 8), align 8, !tbaa !12
  %63 = load double, ptr getelementptr inbounds (i8, ptr @boxDimension, i64 16), align 16, !tbaa !12
  %64 = load double, ptr getelementptr inbounds (i8, ptr @boxDimension, i64 24), align 8, !tbaa !12
  %65 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %7, ptr noundef nonnull @.str.32, double noundef %62, double noundef %63, double noundef %64) #4
  %66 = load i32, ptr @flow, align 8, !tbaa !24
  %67 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %7, ptr noundef nonnull @.str.33, i32 noundef %66) #4
  %68 = load i32, ptr @flow, align 8, !tbaa !24
  switch i32 %68, label %106 [
    i32 0, label %69
    i32 1, label %71
    i32 2, label %76
    i32 3, label %81
  ]

69:                                               ; preds = %61
  %70 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %7, ptr noundef nonnull @.str.34) #4
  br label %106

71:                                               ; preds = %61
  %72 = load double, ptr getelementptr inbounds (i8, ptr @flow, i64 16), align 8, !tbaa !12
  %73 = load double, ptr getelementptr inbounds (i8, ptr @flow, i64 24), align 8, !tbaa !12
  %74 = load double, ptr getelementptr inbounds (i8, ptr @flow, i64 32), align 8, !tbaa !12
  %75 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %7, ptr noundef nonnull @.str.35, double noundef %72, double noundef %73, double noundef %74) #4
  br label %106

76:                                               ; preds = %61
  %77 = load double, ptr getelementptr inbounds (i8, ptr @flow, i64 48), align 8, !tbaa !12
  %78 = load double, ptr getelementptr inbounds (i8, ptr @flow, i64 56), align 8, !tbaa !12
  %79 = load double, ptr getelementptr inbounds (i8, ptr @flow, i64 64), align 8, !tbaa !12
  %80 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %7, ptr noundef nonnull @.str.36, double noundef %77, double noundef %78, double noundef %79) #4
  br label %106

81:                                               ; preds = %61
  %82 = load i32, ptr getelementptr inbounds (i8, ptr @flow, i64 88), align 8, !tbaa !29
  %83 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %7, ptr noundef nonnull @.str.37, i32 noundef %82) #4
  %84 = load i32, ptr getelementptr inbounds (i8, ptr @flow, i64 88), align 8, !tbaa !29
  %85 = icmp sgt i32 %84, 0
  br i1 %85, label %.lr.ph117, label %._crit_edge118

._crit_edge118:                                   ; preds = %.lr.ph117, %81
  %86 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %7, ptr noundef nonnull @.str.15) #4
  br label %106

.lr.ph117:                                        ; preds = %81, %.lr.ph117
  %indvars.iv135 = phi i64 [ %indvars.iv.next136, %.lr.ph117 ], [ 0, %81 ]
  %87 = load ptr, ptr getelementptr inbounds (i8, ptr @flow, i64 96), align 8, !tbaa !30
  %88 = getelementptr inbounds ptr, ptr %87, i64 %indvars.iv135
  %89 = load ptr, ptr %88, align 8, !tbaa !17
  %90 = getelementptr inbounds i8, ptr %89, i64 8
  %91 = load double, ptr %90, align 8, !tbaa !12
  %92 = getelementptr inbounds i8, ptr %89, i64 16
  %93 = load double, ptr %92, align 8, !tbaa !12
  %94 = getelementptr inbounds i8, ptr %89, i64 24
  %95 = load double, ptr %94, align 8, !tbaa !12
  %96 = load ptr, ptr getelementptr inbounds (i8, ptr @flow, i64 112), align 8, !tbaa !31
  %97 = getelementptr inbounds double, ptr %96, i64 %indvars.iv135
  %98 = load double, ptr %97, align 8, !tbaa !12
  %99 = load ptr, ptr getelementptr inbounds (i8, ptr @flow, i64 120), align 8, !tbaa !32
  %100 = getelementptr inbounds double, ptr %99, i64 %indvars.iv135
  %101 = load double, ptr %100, align 8, !tbaa !12
  %102 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %7, ptr noundef nonnull @.str.38, double noundef %91, double noundef %93, double noundef %95, double noundef %98, double noundef %101) #4
  %indvars.iv.next136 = add nuw nsw i64 %indvars.iv135, 1
  %103 = load i32, ptr getelementptr inbounds (i8, ptr @flow, i64 88), align 8, !tbaa !29
  %104 = sext i32 %103 to i64
  %105 = icmp slt i64 %indvars.iv.next136, %104
  br i1 %105, label %.lr.ph117, label %._crit_edge118, !llvm.loop !33

106:                                              ; preds = %61, %71, %._crit_edge118, %76, %69
  %107 = load i32, ptr getelementptr inbounds (i8, ptr @obstObj, i64 4), align 4, !tbaa !34
  %108 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %7, ptr noundef nonnull @.str.39, i32 noundef %107) #4
  %109 = load i32, ptr getelementptr inbounds (i8, ptr @obstObj, i64 4), align 4, !tbaa !34
  %.not104 = icmp eq i32 %109, 0
  br i1 %.not104, label %._crit_edge122, label %110

110:                                              ; preds = %106
  %111 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %7, ptr noundef nonnull @.str.41) #4
  %112 = load i32, ptr getelementptr inbounds (i8, ptr @obstObj, i64 4), align 4, !tbaa !34
  %113 = icmp sgt i32 %112, 0
  br i1 %113, label %.lr.ph121, label %._crit_edge122

.lr.ph121:                                        ; preds = %110, %130
  %indvars.iv138 = phi i64 [ %indvars.iv.next139, %130 ], [ 0, %110 ]
  %114 = load ptr, ptr getelementptr inbounds (i8, ptr @obstObj, i64 16), align 8, !tbaa !36
  %115 = getelementptr inbounds ptr, ptr %114, i64 %indvars.iv138
  %116 = load ptr, ptr %115, align 8, !tbaa !17
  %117 = getelementptr inbounds i8, ptr %116, i64 8
  %118 = load double, ptr %117, align 8, !tbaa !12
  %119 = getelementptr inbounds i8, ptr %116, i64 16
  %120 = load double, ptr %119, align 8, !tbaa !12
  %121 = getelementptr inbounds i8, ptr %116, i64 24
  %122 = load double, ptr %121, align 8, !tbaa !12
  %123 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %7, ptr noundef nonnull @.str.42, double noundef %118, double noundef %120, double noundef %122) #4
  %124 = load i32, ptr getelementptr inbounds (i8, ptr @obstObj, i64 4), align 4, !tbaa !34
  %125 = add nsw i32 %124, -1
  %126 = sext i32 %125 to i64
  %127 = icmp slt i64 %indvars.iv138, %126
  br i1 %127, label %128, label %130

128:                                              ; preds = %.lr.ph121
  %129 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %7, ptr noundef nonnull @.str.43) #4
  %.pre147 = load i32, ptr getelementptr inbounds (i8, ptr @obstObj, i64 4), align 4, !tbaa !34
  br label %130

130:                                              ; preds = %.lr.ph121, %128
  %131 = phi i32 [ %124, %.lr.ph121 ], [ %.pre147, %128 ]
  %indvars.iv.next139 = add nuw nsw i64 %indvars.iv138, 1
  %132 = sext i32 %131 to i64
  %133 = icmp slt i64 %indvars.iv.next139, %132
  br i1 %133, label %.lr.ph121, label %._crit_edge122, !llvm.loop !37

._crit_edge122:                                   ; preds = %130, %110, %106
  %.str.15.sink = phi ptr [ @.str.40, %106 ], [ @.str.15, %110 ], [ @.str.15, %130 ]
  %134 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %7, ptr noundef nonnull %.str.15.sink) #4
  %135 = load i32, ptr @tunlObj, align 8, !tbaa !38
  %136 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %7, ptr noundef nonnull @.str.44, i32 noundef %135) #4
  %137 = load i32, ptr @tunlObj, align 8, !tbaa !38
  %.not105 = icmp eq i32 %137, 0
  br i1 %.not105, label %._crit_edge126, label %138

138:                                              ; preds = %._crit_edge122
  %139 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %7, ptr noundef nonnull @.str.46) #4
  %140 = load i32, ptr getelementptr inbounds (i8, ptr @tunlObj, i64 4), align 4, !tbaa !41
  %141 = icmp sgt i32 %140, 0
  br i1 %141, label %.lr.ph125, label %._crit_edge126

.lr.ph125:                                        ; preds = %138, %162
  %indvars.iv141 = phi i64 [ %indvars.iv.next142, %162 ], [ 0, %138 ]
  %142 = load ptr, ptr getelementptr inbounds (i8, ptr @tunlObj, i64 8), align 8, !tbaa !42
  %143 = getelementptr inbounds ptr, ptr %142, i64 %indvars.iv141
  %144 = load ptr, ptr %143, align 8, !tbaa !17
  %145 = load double, ptr %144, align 8, !tbaa !12
  %146 = getelementptr inbounds i8, ptr %144, i64 8
  %147 = load double, ptr %146, align 8, !tbaa !12
  %148 = getelementptr inbounds i8, ptr %144, i64 16
  %149 = load double, ptr %148, align 8, !tbaa !12
  %150 = getelementptr inbounds i8, ptr %144, i64 24
  %151 = load double, ptr %150, align 8, !tbaa !12
  %152 = load ptr, ptr getelementptr inbounds (i8, ptr @tunlObj, i64 16), align 8, !tbaa !43
  %153 = getelementptr inbounds double, ptr %152, i64 %indvars.iv141
  %154 = load double, ptr %153, align 8, !tbaa !12
  %155 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %7, ptr noundef nonnull @.str.47, double noundef %145, double noundef %147, double noundef %149, double noundef %151, double noundef %154) #4
  %156 = load i32, ptr getelementptr inbounds (i8, ptr @tunlObj, i64 4), align 4, !tbaa !41
  %157 = add nsw i32 %156, -1
  %158 = sext i32 %157 to i64
  %159 = icmp slt i64 %indvars.iv141, %158
  br i1 %159, label %160, label %162

160:                                              ; preds = %.lr.ph125
  %161 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %7, ptr noundef nonnull @.str.43) #4
  %.pre148 = load i32, ptr getelementptr inbounds (i8, ptr @tunlObj, i64 4), align 4, !tbaa !41
  br label %162

162:                                              ; preds = %.lr.ph125, %160
  %163 = phi i32 [ %156, %.lr.ph125 ], [ %.pre148, %160 ]
  %indvars.iv.next142 = add nuw nsw i64 %indvars.iv141, 1
  %164 = sext i32 %163 to i64
  %165 = icmp slt i64 %indvars.iv.next142, %164
  br i1 %165, label %.lr.ph125, label %._crit_edge126, !llvm.loop !44

._crit_edge126:                                   ; preds = %162, %138, %._crit_edge122
  %.str.15.sink150 = phi ptr [ @.str.45, %._crit_edge122 ], [ @.str.15, %138 ], [ @.str.15, %162 ]
  %166 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %7, ptr noundef nonnull %.str.15.sink150) #4
  %167 = load i32, ptr @SphObstObj, align 8, !tbaa !45
  %168 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %7, ptr noundef nonnull @.str.48, i32 noundef %167) #4
  %169 = load i32, ptr @SphObstObj, align 8, !tbaa !45
  %.not106 = icmp eq i32 %169, 0
  br i1 %.not106, label %._crit_edge130, label %170

170:                                              ; preds = %._crit_edge126
  %171 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %7, ptr noundef nonnull @.str.50) #4
  %172 = load i32, ptr getelementptr inbounds (i8, ptr @SphObstObj, i64 4), align 4, !tbaa !47
  %173 = icmp sgt i32 %172, 0
  br i1 %173, label %.lr.ph129, label %._crit_edge130

.lr.ph129:                                        ; preds = %170, %194
  %indvars.iv144 = phi i64 [ %indvars.iv.next145, %194 ], [ 0, %170 ]
  %174 = load ptr, ptr getelementptr inbounds (i8, ptr @SphObstObj, i64 16), align 8, !tbaa !48
  %175 = getelementptr inbounds ptr, ptr %174, i64 %indvars.iv144
  %176 = load ptr, ptr %175, align 8, !tbaa !17
  %177 = getelementptr inbounds i8, ptr %176, i64 8
  %178 = load double, ptr %177, align 8, !tbaa !12
  %179 = getelementptr inbounds i8, ptr %176, i64 16
  %180 = load double, ptr %179, align 8, !tbaa !12
  %181 = getelementptr inbounds i8, ptr %176, i64 24
  %182 = load double, ptr %181, align 8, !tbaa !12
  %183 = load ptr, ptr getelementptr inbounds (i8, ptr @SphObstObj, i64 8), align 8, !tbaa !49
  %184 = getelementptr inbounds double, ptr %183, i64 %indvars.iv144
  %185 = load double, ptr %184, align 8, !tbaa !12
  %186 = fmul double %185, 2.000000e+00
  %187 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %7, ptr noundef nonnull @.str.51, double noundef %178, double noundef %180, double noundef %182, double noundef %186) #4
  %188 = load i32, ptr getelementptr inbounds (i8, ptr @SphObstObj, i64 4), align 4, !tbaa !47
  %189 = add nsw i32 %188, -1
  %190 = sext i32 %189 to i64
  %191 = icmp slt i64 %indvars.iv144, %190
  br i1 %191, label %192, label %194

192:                                              ; preds = %.lr.ph129
  %193 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %7, ptr noundef nonnull @.str.43) #4
  %.pre149 = load i32, ptr getelementptr inbounds (i8, ptr @SphObstObj, i64 4), align 4, !tbaa !47
  br label %194

194:                                              ; preds = %.lr.ph129, %192
  %195 = phi i32 [ %188, %.lr.ph129 ], [ %.pre149, %192 ]
  %indvars.iv.next145 = add nuw nsw i64 %indvars.iv144, 1
  %196 = sext i32 %195 to i64
  %197 = icmp slt i64 %indvars.iv.next145, %196
  br i1 %197, label %.lr.ph129, label %._crit_edge130, !llvm.loop !50

._crit_edge130:                                   ; preds = %194, %170, %._crit_edge126
  %.str.15.sink151 = phi ptr [ @.str.49, %._crit_edge126 ], [ @.str.15, %170 ], [ @.str.15, %194 ]
  %198 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %7, ptr noundef nonnull %.str.15.sink151) #4
  %199 = load i32, ptr @seed, align 4, !tbaa !11
  %200 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %7, ptr noundef nonnull @.str.52, i32 noundef %199) #4
  %201 = load i32, ptr getelementptr inbounds (i8, ptr @REMDInfo, i64 4), align 4, !tbaa !51
  %202 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %7, ptr noundef nonnull @.str.53, i32 noundef %201) #4
  %203 = load double, ptr getelementptr inbounds (i8, ptr @REMDInfo, i64 120), align 8, !tbaa !54
  %204 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %7, ptr noundef nonnull @.str.54, double noundef %203) #4
  %205 = load i32, ptr getelementptr inbounds (i8, ptr @REMDInfo, i64 112), align 8, !tbaa !55
  %206 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %7, ptr noundef nonnull @.str.55, i32 noundef %205) #4
  %207 = load i32, ptr getelementptr inbounds (i8, ptr @REMDInfo, i64 8), align 8, !tbaa !56
  %208 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %7, ptr noundef nonnull @.str.56, i32 noundef %207) #4
  %209 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %7, ptr noundef nonnull @.str.57, ptr noundef nonnull getelementptr inbounds (i8, ptr @REMDInfo, i64 12)) #4
  %210 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %7, ptr noundef nonnull @.str.58, ptr noundef nonnull getelementptr inbounds (i8, ptr @REMDInfo, i64 62)) #4
  %211 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %7, ptr noundef nonnull @.str.15) #4
  %212 = tail call i32 @fclose(ptr noundef %7)
  ret void
}

; Function Attrs: mustprogress nofree nounwind willreturn memory(argmem: read)
declare i32 @strcmp(ptr nocapture noundef, ptr nocapture noundef) local_unnamed_addr #1

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

declare void @DisplayTime(ptr noundef) local_unnamed_addr #3

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

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

!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, !10, i64 264}
!6 = !{!"FileStr", !7, i64 0, !8, i64 4, !10, i64 264}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"any pointer", !8, i64 0}
!11 = !{!7, !7, i64 0}
!12 = !{!13, !13, i64 0}
!13 = !{!"double", !8, i64 0}
!14 = !{!15, !13, i64 24}
!15 = !{!"DynamicWallStr", !8, i64 0, !7, i64 16, !7, i64 20, !13, i64 24, !13, i64 32, !13, i64 40, !13, i64 48, !8, i64 56}
!16 = !{!15, !13, i64 32}
!17 = !{!10, !10, i64 0}
!18 = !{!19, !7, i64 8}
!19 = !{!"PepStr", !7, i64 0, !7, i64 4, !7, i64 8, !7, i64 12, !13, i64 16}
!20 = !{!19, !7, i64 12}
!21 = distinct !{!21, !22}
!22 = !{!"llvm.loop.mustprogress"}
!23 = distinct !{!23, !22}
!24 = !{!25, !7, i64 0}
!25 = !{!"FlowStr", !7, i64 0, !26, i64 8, !27, i64 40, !28, i64 88}
!26 = !{!"ConstVStr", !8, i64 0}
!27 = !{!"ForceStr", !8, i64 0, !10, i64 32, !10, i64 40}
!28 = !{!"ChargeStr", !7, i64 0, !7, i64 4, !10, i64 8, !10, i64 16, !10, i64 24, !10, i64 32}
!29 = !{!25, !7, i64 88}
!30 = !{!25, !10, i64 96}
!31 = !{!25, !10, i64 112}
!32 = !{!25, !10, i64 120}
!33 = distinct !{!33, !22}
!34 = !{!35, !7, i64 4}
!35 = !{!"ObstructionStr", !7, i64 0, !7, i64 4, !10, i64 8, !10, i64 16, !10, i64 24}
!36 = !{!35, !10, i64 16}
!37 = distinct !{!37, !22}
!38 = !{!39, !7, i64 0}
!39 = !{!"TunnelStr", !7, i64 0, !7, i64 4, !10, i64 8, !10, i64 16, !40, i64 24}
!40 = !{!"AtomStr", !10, i64 0, !10, i64 8}
!41 = !{!39, !7, i64 4}
!42 = !{!39, !10, i64 8}
!43 = !{!39, !10, i64 16}
!44 = distinct !{!44, !22}
!45 = !{!46, !7, i64 0}
!46 = !{!"SphObstStr", !7, i64 0, !7, i64 4, !10, i64 8, !10, i64 16}
!47 = !{!46, !7, i64 4}
!48 = !{!46, !10, i64 16}
!49 = !{!46, !10, i64 8}
!50 = distinct !{!50, !22}
!51 = !{!52, !7, i64 4}
!52 = !{!"REMDStr", !7, i64 0, !7, i64 4, !7, i64 8, !8, i64 12, !8, i64 62, !53, i64 112}
!53 = !{!"REMDTempStr", !7, i64 0, !13, i64 8}
!54 = !{!52, !13, i64 120}
!55 = !{!52, !7, i64 112}
!56 = !{!52, !7, i64 8}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,SROAPass,SimplifyCFGPass,TailCallElimPass