; LLVM IR from csviragh/robotsim :: src/utilities (param_utils)

; 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.sit_parameters_t = type { i32, double, double, double, double, double, double, double, i32, double }

@.str.76 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.77 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.78 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.79 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.80 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.81 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.82 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.83 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.84 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.85 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.86 = external hidden unnamed_addr constant [79 x i8], align 1
@.str.87 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.88 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.89 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.90 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.91 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.92 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.93 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.94 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.95 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.96 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.97 = external hidden unnamed_addr constant [100 x i8], align 1
@.str.98 = external hidden unnamed_addr constant [61 x i8], align 1
@.str.99 = external hidden unnamed_addr constant [33 x i8], align 1

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

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

declare ptr @fgets(ptr noundef, i32 noundef, ptr noundef) #0

declare ptr @LSkip(ptr noundef) #0

declare ptr @RStrip(ptr noundef) #0

declare ptr @FindCharOrComment(ptr noundef, i8 noundef signext) #0

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

; Function Attrs: inlinehint nounwind willreturn memory(read) uwtable
declare double @atof(ptr noundef nonnull) #3

declare ptr @recover_fileName(ptr noundef) #0

; Function Attrs: noreturn nounwind
declare void @exit(i32 noundef) #4

; 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
define dso_local void @GetSituationParamsFromFile(ptr dead_on_unwind noalias writable sret(%struct.sit_parameters_t) align 8 %0, ptr noundef %1) #5 {
  %3 = alloca ptr, align 8
  %4 = alloca [256 x i8], align 16
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  store ptr %1, ptr %3, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 256, ptr %4) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #6
  store i32 0, ptr %9, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #6
  store i32 0, ptr %10, align 4, !tbaa !9
  br label %11

11:                                               ; preds = %156, %2
  %12 = getelementptr inbounds [256 x i8], ptr %4, i64 0, i64 0
  %13 = load ptr, ptr %3, align 8, !tbaa !5
  %14 = call ptr @fgets(ptr noundef %12, i32 noundef 256, ptr noundef %13)
  %15 = icmp ne ptr %14, null
  br i1 %15, label %16, label %157

16:                                               ; preds = %11
  %17 = getelementptr inbounds [256 x i8], ptr %4, i64 0, i64 0
  %18 = call ptr @RStrip(ptr noundef %17)
  %19 = call ptr @LSkip(ptr noundef %18)
  store ptr %19, ptr %5, align 8, !tbaa !5
  %20 = load ptr, ptr %5, align 8, !tbaa !5
  %21 = load i8, ptr %20, align 1, !tbaa !11
  %22 = sext i8 %21 to i32
  %23 = icmp eq i32 %22, 59
  br i1 %23, label %29, label %24

24:                                               ; preds = %16
  %25 = load ptr, ptr %5, align 8, !tbaa !5
  %26 = load i8, ptr %25, align 1, !tbaa !11
  %27 = sext i8 %26 to i32
  %28 = icmp eq i32 %27, 35
  br i1 %28, label %29, label %30

29:                                               ; preds = %24, %16
  br label %156

30:                                               ; preds = %24
  %31 = load ptr, ptr %5, align 8, !tbaa !5
  %32 = call ptr @FindCharOrComment(ptr noundef %31, i8 noundef signext 61)
  store ptr %32, ptr %6, align 8, !tbaa !5
  %33 = load ptr, ptr %6, align 8, !tbaa !5
  %34 = load i8, ptr %33, align 1, !tbaa !11
  %35 = sext i8 %34 to i32
  %36 = icmp eq i32 %35, 61
  br i1 %36, label %37, label %46

37:                                               ; preds = %30
  %38 = load ptr, ptr %6, align 8, !tbaa !5
  store i8 0, ptr %38, align 1, !tbaa !11
  %39 = load ptr, ptr %5, align 8, !tbaa !5
  %40 = call ptr @RStrip(ptr noundef %39)
  store ptr %40, ptr %7, align 8, !tbaa !5
  %41 = load ptr, ptr %6, align 8, !tbaa !5
  %42 = getelementptr inbounds i8, ptr %41, i64 1
  %43 = call ptr @LSkip(ptr noundef %42)
  store ptr %43, ptr %8, align 8, !tbaa !5
  %44 = load ptr, ptr %8, align 8, !tbaa !5
  %45 = call ptr @FindCharOrComment(ptr noundef %44, i8 noundef signext 0)
  store ptr %45, ptr %6, align 8, !tbaa !5
  br label %46

46:                                               ; preds = %37, %30
  %47 = load ptr, ptr %7, align 8, !tbaa !5
  %48 = call i32 @strcmp(ptr noundef %47, ptr noundef @.str.76) #7
  %49 = icmp eq i32 %48, 0
  br i1 %49, label %50, label %56

50:                                               ; preds = %46
  %51 = load ptr, ptr %8, align 8, !tbaa !5
  %52 = call i32 @atoi(ptr noundef %51) #7
  %53 = getelementptr inbounds %struct.sit_parameters_t, ptr %0, i32 0, i32 0
  store i32 %52, ptr %53, align 8, !tbaa !12
  %54 = load i32, ptr %9, align 4, !tbaa !9
  %55 = add nsw i32 %54, 1
  store i32 %55, ptr %9, align 4, !tbaa !9
  br label %155

56:                                               ; preds = %46
  %57 = load ptr, ptr %7, align 8, !tbaa !5
  %58 = call i32 @strcmp(ptr noundef %57, ptr noundef @.str.77) #7
  %59 = icmp eq i32 %58, 0
  br i1 %59, label %60, label %66

60:                                               ; preds = %56
  %61 = load ptr, ptr %8, align 8, !tbaa !5
  %62 = call double @atof(ptr noundef %61) #7
  %63 = getelementptr inbounds %struct.sit_parameters_t, ptr %0, i32 0, i32 4
  store double %62, ptr %63, align 8, !tbaa !15
  %64 = load i32, ptr %9, align 4, !tbaa !9
  %65 = add nsw i32 %64, 1
  store i32 %65, ptr %9, align 4, !tbaa !9
  br label %154

66:                                               ; preds = %56
  %67 = load ptr, ptr %7, align 8, !tbaa !5
  %68 = call i32 @strcmp(ptr noundef %67, ptr noundef @.str.78) #7
  %69 = icmp eq i32 %68, 0
  br i1 %69, label %70, label %76

70:                                               ; preds = %66
  %71 = load ptr, ptr %8, align 8, !tbaa !5
  %72 = call double @atof(ptr noundef %71) #7
  %73 = getelementptr inbounds %struct.sit_parameters_t, ptr %0, i32 0, i32 5
  store double %72, ptr %73, align 8, !tbaa !16
  %74 = load i32, ptr %9, align 4, !tbaa !9
  %75 = add nsw i32 %74, 1
  store i32 %75, ptr %9, align 4, !tbaa !9
  br label %153

76:                                               ; preds = %66
  %77 = load ptr, ptr %7, align 8, !tbaa !5
  %78 = call i32 @strcmp(ptr noundef %77, ptr noundef @.str.79) #7
  %79 = icmp eq i32 %78, 0
  br i1 %79, label %80, label %86

80:                                               ; preds = %76
  %81 = load ptr, ptr %8, align 8, !tbaa !5
  %82 = call double @atof(ptr noundef %81) #7
  %83 = getelementptr inbounds %struct.sit_parameters_t, ptr %0, i32 0, i32 1
  store double %82, ptr %83, align 8, !tbaa !17
  %84 = load i32, ptr %9, align 4, !tbaa !9
  %85 = add nsw i32 %84, 1
  store i32 %85, ptr %9, align 4, !tbaa !9
  br label %152

86:                                               ; preds = %76
  %87 = load ptr, ptr %7, align 8, !tbaa !5
  %88 = call i32 @strcmp(ptr noundef %87, ptr noundef @.str.80) #7
  %89 = icmp eq i32 %88, 0
  br i1 %89, label %90, label %96

90:                                               ; preds = %86
  %91 = load ptr, ptr %8, align 8, !tbaa !5
  %92 = call double @atof(ptr noundef %91) #7
  %93 = getelementptr inbounds %struct.sit_parameters_t, ptr %0, i32 0, i32 2
  store double %92, ptr %93, align 8, !tbaa !18
  %94 = load i32, ptr %9, align 4, !tbaa !9
  %95 = add nsw i32 %94, 1
  store i32 %95, ptr %9, align 4, !tbaa !9
  br label %151

96:                                               ; preds = %86
  %97 = load ptr, ptr %7, align 8, !tbaa !5
  %98 = call i32 @strcmp(ptr noundef %97, ptr noundef @.str.81) #7
  %99 = icmp eq i32 %98, 0
  br i1 %99, label %100, label %106

100:                                              ; preds = %96
  %101 = load ptr, ptr %8, align 8, !tbaa !5
  %102 = call double @atof(ptr noundef %101) #7
  %103 = getelementptr inbounds %struct.sit_parameters_t, ptr %0, i32 0, i32 3
  store double %102, ptr %103, align 8, !tbaa !19
  %104 = load i32, ptr %9, align 4, !tbaa !9
  %105 = add nsw i32 %104, 1
  store i32 %105, ptr %9, align 4, !tbaa !9
  br label %150

106:                                              ; preds = %96
  %107 = load ptr, ptr %7, align 8, !tbaa !5
  %108 = call i32 @strcmp(ptr noundef %107, ptr noundef @.str.82) #7
  %109 = icmp eq i32 %108, 0
  br i1 %109, label %110, label %116

110:                                              ; preds = %106
  %111 = load ptr, ptr %8, align 8, !tbaa !5
  %112 = call double @atof(ptr noundef %111) #7
  %113 = getelementptr inbounds %struct.sit_parameters_t, ptr %0, i32 0, i32 6
  store double %112, ptr %113, align 8, !tbaa !20
  %114 = load i32, ptr %9, align 4, !tbaa !9
  %115 = add nsw i32 %114, 1
  store i32 %115, ptr %9, align 4, !tbaa !9
  br label %149

116:                                              ; preds = %106
  %117 = load ptr, ptr %7, align 8, !tbaa !5
  %118 = call i32 @strcmp(ptr noundef %117, ptr noundef @.str.83) #7
  %119 = icmp eq i32 %118, 0
  br i1 %119, label %120, label %126

120:                                              ; preds = %116
  %121 = load ptr, ptr %8, align 8, !tbaa !5
  %122 = call double @atof(ptr noundef %121) #7
  %123 = getelementptr inbounds %struct.sit_parameters_t, ptr %0, i32 0, i32 7
  store double %122, ptr %123, align 8, !tbaa !21
  %124 = load i32, ptr %9, align 4, !tbaa !9
  %125 = add nsw i32 %124, 1
  store i32 %125, ptr %9, align 4, !tbaa !9
  br label %148

126:                                              ; preds = %116
  %127 = load ptr, ptr %7, align 8, !tbaa !5
  %128 = call i32 @strcmp(ptr noundef %127, ptr noundef @.str.84) #7
  %129 = icmp eq i32 %128, 0
  br i1 %129, label %130, label %136

130:                                              ; preds = %126
  %131 = load ptr, ptr %8, align 8, !tbaa !5
  %132 = call i32 @atoi(ptr noundef %131) #7
  %133 = getelementptr inbounds %struct.sit_parameters_t, ptr %0, i32 0, i32 8
  store i32 %132, ptr %133, align 8, !tbaa !22
  %134 = load i32, ptr %9, align 4, !tbaa !9
  %135 = add nsw i32 %134, 1
  store i32 %135, ptr %9, align 4, !tbaa !9
  br label %147

136:                                              ; preds = %126
  %137 = load ptr, ptr %7, align 8, !tbaa !5
  %138 = call i32 @strcmp(ptr noundef %137, ptr noundef @.str.85) #7
  %139 = icmp eq i32 %138, 0
  br i1 %139, label %140, label %146

140:                                              ; preds = %136
  %141 = load ptr, ptr %8, align 8, !tbaa !5
  %142 = call double @atof(ptr noundef %141) #7
  %143 = getelementptr inbounds %struct.sit_parameters_t, ptr %0, i32 0, i32 9
  store double %142, ptr %143, align 8, !tbaa !23
  %144 = load i32, ptr %9, align 4, !tbaa !9
  %145 = add nsw i32 %144, 1
  store i32 %145, ptr %9, align 4, !tbaa !9
  br label %146

146:                                              ; preds = %140, %136
  br label %147

147:                                              ; preds = %146, %130
  br label %148

148:                                              ; preds = %147, %120
  br label %149

149:                                              ; preds = %148, %110
  br label %150

150:                                              ; preds = %149, %100
  br label %151

151:                                              ; preds = %150, %90
  br label %152

152:                                              ; preds = %151, %80
  br label %153

153:                                              ; preds = %152, %70
  br label %154

154:                                              ; preds = %153, %60
  br label %155

155:                                              ; preds = %154, %50
  br label %156

156:                                              ; preds = %155, %29
  br label %11, !llvm.loop !24

157:                                              ; preds = %11
  %158 = load i32, ptr %9, align 4, !tbaa !9
  %159 = icmp slt i32 %158, 10
  br i1 %159, label %160, label %174

160:                                              ; preds = %157
  %161 = load ptr, ptr %3, align 8, !tbaa !5
  %162 = call ptr @recover_fileName(ptr noundef %161)
  %163 = call i32 (ptr, ...) @printf(ptr noundef @.str.86, ptr noundef %162)
  %164 = call i32 (ptr, ...) @printf(ptr noundef @.str.87)
  %165 = call i32 (ptr, ...) @printf(ptr noundef @.str.88)
  %166 = call i32 (ptr, ...) @printf(ptr noundef @.str.89)
  %167 = call i32 (ptr, ...) @printf(ptr noundef @.str.90)
  %168 = call i32 (ptr, ...) @printf(ptr noundef @.str.91)
  %169 = call i32 (ptr, ...) @printf(ptr noundef @.str.92)
  %170 = call i32 (ptr, ...) @printf(ptr noundef @.str.93)
  %171 = call i32 (ptr, ...) @printf(ptr noundef @.str.94)
  %172 = call i32 (ptr, ...) @printf(ptr noundef @.str.95)
  %173 = call i32 (ptr, ...) @printf(ptr noundef @.str.96)
  call void @exit(i32 noundef -1) #8
  unreachable

174:                                              ; preds = %157
  %175 = getelementptr inbounds %struct.sit_parameters_t, ptr %0, i32 0, i32 7
  %176 = load double, ptr %175, align 8, !tbaa !21
  %177 = getelementptr inbounds %struct.sit_parameters_t, ptr %0, i32 0, i32 5
  %178 = load double, ptr %177, align 8, !tbaa !16
  %179 = fcmp olt double %176, %178
  br i1 %179, label %180, label %182

180:                                              ; preds = %174
  %181 = call i32 (ptr, ...) @printf(ptr noundef @.str.97)
  call void @exit(i32 noundef -1) #8
  unreachable

182:                                              ; preds = %174
  %183 = getelementptr inbounds %struct.sit_parameters_t, ptr %0, i32 0, i32 5
  %184 = load double, ptr %183, align 8, !tbaa !16
  %185 = fcmp ole double %184, 0.000000e+00
  br i1 %185, label %186, label %188

186:                                              ; preds = %182
  %187 = call i32 (ptr, ...) @printf(ptr noundef @.str.98)
  call void @exit(i32 noundef -1) #8
  unreachable

188:                                              ; preds = %182
  %189 = getelementptr inbounds %struct.sit_parameters_t, ptr %0, i32 0, i32 1
  %190 = load double, ptr %189, align 8, !tbaa !17
  %191 = fcmp olt double %190, 0.000000e+00
  br i1 %191, label %200, label %192

192:                                              ; preds = %188
  %193 = getelementptr inbounds %struct.sit_parameters_t, ptr %0, i32 0, i32 2
  %194 = load double, ptr %193, align 8, !tbaa !18
  %195 = fcmp olt double %194, 0.000000e+00
  br i1 %195, label %200, label %196

196:                                              ; preds = %192
  %197 = getelementptr inbounds %struct.sit_parameters_t, ptr %0, i32 0, i32 3
  %198 = load double, ptr %197, align 8, !tbaa !19
  %199 = fcmp olt double %198, 0.000000e+00
  br i1 %199, label %200, label %202

200:                                              ; preds = %196, %192, %188
  %201 = call i32 (ptr, ...) @printf(ptr noundef @.str.99)
  call void @exit(i32 noundef -1) #8
  unreachable

202:                                              ; preds = %196
  br label %203

203:                                              ; preds = %202
  br label %204

204:                                              ; preds = %203
  %205 = getelementptr inbounds %struct.sit_parameters_t, ptr %0, i32 0, i32 7
  %206 = load double, ptr %205, align 8, !tbaa !21
  %207 = fadd double %206, 2.000000e+01
  %208 = getelementptr inbounds %struct.sit_parameters_t, ptr %0, i32 0, i32 4
  %209 = load double, ptr %208, align 8, !tbaa !15
  %210 = fcmp ogt double %207, %209
  br i1 %210, label %211, label %216

211:                                              ; preds = %204
  %212 = getelementptr inbounds %struct.sit_parameters_t, ptr %0, i32 0, i32 4
  %213 = load double, ptr %212, align 8, !tbaa !15
  %214 = fsub double %213, 2.000000e+01
  %215 = getelementptr inbounds %struct.sit_parameters_t, ptr %0, i32 0, i32 7
  store double %214, ptr %215, align 8, !tbaa !21
  br label %216

216:                                              ; preds = %211, %204
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #6
  call void @llvm.lifetime.end.p0(i64 256, ptr %4) #6
  ret void
}

; Function Attrs: inlinehint nounwind willreturn memory(read) uwtable
declare i32 @atoi(ptr noundef nonnull) #3

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!7, !7, i64 0}
!12 = !{!13, !10, i64 0}
!13 = !{!"", !10, i64 0, !14, i64 8, !14, i64 16, !14, i64 24, !14, i64 32, !14, i64 40, !14, i64 48, !14, i64 56, !10, i64 64, !14, i64 72}
!14 = !{!"double", !7, i64 0}
!15 = !{!13, !14, i64 32}
!16 = !{!13, !14, i64 40}
!17 = !{!13, !14, i64 8}
!18 = !{!13, !14, i64 16}
!19 = !{!13, !14, i64 24}
!20 = !{!13, !14, i64 48}
!21 = !{!13, !14, i64 56}
!22 = !{!13, !10, i64 64}
!23 = !{!13, !14, i64 72}
!24 = distinct !{!24, !25}
!25 = !{!"llvm.loop.mustprogress"}


; 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.sit_parameters_t = type { i32, double, double, double, double, double, double, double, i32, double }

@.str.76 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.77 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.78 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.79 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.80 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.81 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.82 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.83 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.84 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.85 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.86 = external hidden unnamed_addr constant [79 x i8], align 1
@.str.87 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.88 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.89 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.90 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.91 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.92 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.93 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.94 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.95 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.96 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.97 = external hidden unnamed_addr constant [100 x i8], align 1
@.str.98 = external hidden unnamed_addr constant [61 x i8], align 1
@.str.99 = external hidden unnamed_addr constant [33 x i8], align 1

; Function Attrs: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, ...) 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: nofree nounwind
declare noundef ptr @fgets(ptr noundef, i32 noundef, ptr nocapture noundef) local_unnamed_addr #0

declare ptr @LSkip(ptr noundef) local_unnamed_addr #2

declare ptr @RStrip(ptr noundef) local_unnamed_addr #2

declare ptr @FindCharOrComment(ptr noundef, i8 noundef signext) local_unnamed_addr #2

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

; Function Attrs: inlinehint mustprogress nofree nounwind willreturn memory(read) uwtable
declare double @atof(ptr nocapture noundef nonnull) local_unnamed_addr #4

declare ptr @recover_fileName(ptr noundef) local_unnamed_addr #2

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

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

; Function Attrs: nounwind uwtable
define dso_local void @GetSituationParamsFromFile(ptr dead_on_unwind noalias nocapture writable sret(%struct.sit_parameters_t) align 8 %0, ptr noundef %1) local_unnamed_addr #6 {
  %3 = alloca [256 x i8], align 16
  call void @llvm.lifetime.start.p0(i64 256, ptr nonnull %3) #7
  %4 = call ptr @fgets(ptr noundef nonnull %3, i32 noundef 256, ptr noundef %1)
  %.not54 = icmp eq ptr %4, null
  br i1 %.not54, label %._crit_edge.thread, label %.lr.ph

.lr.ph:                                           ; preds = %2
  %5 = getelementptr inbounds i8, ptr %0, i64 72
  %6 = getelementptr inbounds i8, ptr %0, i64 64
  %7 = getelementptr inbounds i8, ptr %0, i64 56
  %8 = getelementptr inbounds i8, ptr %0, i64 48
  %9 = getelementptr inbounds i8, ptr %0, i64 24
  %10 = getelementptr inbounds i8, ptr %0, i64 16
  %11 = getelementptr inbounds i8, ptr %0, i64 8
  %12 = getelementptr inbounds i8, ptr %0, i64 40
  %13 = getelementptr inbounds i8, ptr %0, i64 32
  br label %14

14:                                               ; preds = %.lr.ph, %87
  %.057 = phi i32 [ 0, %.lr.ph ], [ %.1, %87 ]
  %.04556 = phi ptr [ undef, %.lr.ph ], [ %.2, %87 ]
  %.04755 = phi ptr [ undef, %.lr.ph ], [ %.249, %87 ]
  %15 = call ptr @RStrip(ptr noundef nonnull %3) #7
  %16 = call ptr @LSkip(ptr noundef %15) #7
  %17 = load i8, ptr %16, align 1, !tbaa !5
  switch i8 %17, label %18 [
    i8 59, label %87
    i8 35, label %87
  ]

18:                                               ; preds = %14
  %19 = call ptr @FindCharOrComment(ptr noundef nonnull %16, i8 noundef signext 61) #7
  %20 = load i8, ptr %19, align 1, !tbaa !5
  %21 = icmp eq i8 %20, 61
  br i1 %21, label %22, label %27

22:                                               ; preds = %18
  store i8 0, ptr %19, align 1, !tbaa !5
  %23 = call ptr @RStrip(ptr noundef nonnull %16) #7
  %24 = getelementptr inbounds i8, ptr %19, i64 1
  %25 = call ptr @LSkip(ptr noundef nonnull %24) #7
  %26 = call ptr @FindCharOrComment(ptr noundef %25, i8 noundef signext 0) #7
  br label %27

27:                                               ; preds = %22, %18
  %.148 = phi ptr [ %23, %22 ], [ %.04755, %18 ]
  %.146 = phi ptr [ %25, %22 ], [ %.04556, %18 ]
  %28 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %.148, ptr noundef nonnull dereferenceable(1) @.str.76) #8
  %29 = icmp eq i32 %28, 0
  br i1 %29, label %30, label %33

30:                                               ; preds = %27
  %31 = call i32 @atoi(ptr nocapture noundef %.146) #8
  store i32 %31, ptr %0, align 8, !tbaa !8
  %32 = add nsw i32 %.057, 1
  br label %87

33:                                               ; preds = %27
  %34 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %.148, ptr noundef nonnull dereferenceable(1) @.str.77) #8
  %35 = icmp eq i32 %34, 0
  br i1 %35, label %36, label %39

36:                                               ; preds = %33
  %37 = call double @atof(ptr noundef %.146) #8
  store double %37, ptr %13, align 8, !tbaa !12
  %38 = add nsw i32 %.057, 1
  br label %87

39:                                               ; preds = %33
  %40 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %.148, ptr noundef nonnull dereferenceable(1) @.str.78) #8
  %41 = icmp eq i32 %40, 0
  br i1 %41, label %42, label %45

42:                                               ; preds = %39
  %43 = call double @atof(ptr noundef %.146) #8
  store double %43, ptr %12, align 8, !tbaa !13
  %44 = add nsw i32 %.057, 1
  br label %87

45:                                               ; preds = %39
  %46 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %.148, ptr noundef nonnull dereferenceable(1) @.str.79) #8
  %47 = icmp eq i32 %46, 0
  br i1 %47, label %48, label %51

48:                                               ; preds = %45
  %49 = call double @atof(ptr noundef %.146) #8
  store double %49, ptr %11, align 8, !tbaa !14
  %50 = add nsw i32 %.057, 1
  br label %87

51:                                               ; preds = %45
  %52 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %.148, ptr noundef nonnull dereferenceable(1) @.str.80) #8
  %53 = icmp eq i32 %52, 0
  br i1 %53, label %54, label %57

54:                                               ; preds = %51
  %55 = call double @atof(ptr noundef %.146) #8
  store double %55, ptr %10, align 8, !tbaa !15
  %56 = add nsw i32 %.057, 1
  br label %87

57:                                               ; preds = %51
  %58 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %.148, ptr noundef nonnull dereferenceable(1) @.str.81) #8
  %59 = icmp eq i32 %58, 0
  br i1 %59, label %60, label %63

60:                                               ; preds = %57
  %61 = call double @atof(ptr noundef %.146) #8
  store double %61, ptr %9, align 8, !tbaa !16
  %62 = add nsw i32 %.057, 1
  br label %87

63:                                               ; preds = %57
  %64 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %.148, ptr noundef nonnull dereferenceable(1) @.str.82) #8
  %65 = icmp eq i32 %64, 0
  br i1 %65, label %66, label %69

66:                                               ; preds = %63
  %67 = call double @atof(ptr noundef %.146) #8
  store double %67, ptr %8, align 8, !tbaa !17
  %68 = add nsw i32 %.057, 1
  br label %87

69:                                               ; preds = %63
  %70 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %.148, ptr noundef nonnull dereferenceable(1) @.str.83) #8
  %71 = icmp eq i32 %70, 0
  br i1 %71, label %72, label %75

72:                                               ; preds = %69
  %73 = call double @atof(ptr noundef %.146) #8
  store double %73, ptr %7, align 8, !tbaa !18
  %74 = add nsw i32 %.057, 1
  br label %87

75:                                               ; preds = %69
  %76 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %.148, ptr noundef nonnull dereferenceable(1) @.str.84) #8
  %77 = icmp eq i32 %76, 0
  br i1 %77, label %78, label %81

78:                                               ; preds = %75
  %79 = call i32 @atoi(ptr nocapture noundef %.146) #8
  store i32 %79, ptr %6, align 8, !tbaa !19
  %80 = add nsw i32 %.057, 1
  br label %87

81:                                               ; preds = %75
  %82 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %.148, ptr noundef nonnull dereferenceable(1) @.str.85) #8
  %83 = icmp eq i32 %82, 0
  br i1 %83, label %84, label %87

84:                                               ; preds = %81
  %85 = call double @atof(ptr noundef %.146) #8
  store double %85, ptr %5, align 8, !tbaa !20
  %86 = add nsw i32 %.057, 1
  br label %87

87:                                               ; preds = %14, %14, %30, %42, %54, %66, %78, %84, %81, %72, %60, %48, %36
  %.249 = phi ptr [ %.04755, %14 ], [ %.148, %30 ], [ %.148, %36 ], [ %.148, %42 ], [ %.148, %48 ], [ %.148, %54 ], [ %.148, %60 ], [ %.148, %66 ], [ %.148, %72 ], [ %.148, %78 ], [ %.148, %84 ], [ %.148, %81 ], [ %.04755, %14 ]
  %.2 = phi ptr [ %.04556, %14 ], [ %.146, %30 ], [ %.146, %36 ], [ %.146, %42 ], [ %.146, %48 ], [ %.146, %54 ], [ %.146, %60 ], [ %.146, %66 ], [ %.146, %72 ], [ %.146, %78 ], [ %.146, %84 ], [ %.146, %81 ], [ %.04556, %14 ]
  %.1 = phi i32 [ %.057, %14 ], [ %32, %30 ], [ %38, %36 ], [ %44, %42 ], [ %50, %48 ], [ %56, %54 ], [ %62, %60 ], [ %68, %66 ], [ %74, %72 ], [ %80, %78 ], [ %86, %84 ], [ %.057, %81 ], [ %.057, %14 ]
  %88 = call ptr @fgets(ptr noundef nonnull %3, i32 noundef 256, ptr noundef %1)
  %.not = icmp eq ptr %88, null
  br i1 %.not, label %._crit_edge, label %14, !llvm.loop !21

._crit_edge:                                      ; preds = %87
  %89 = icmp slt i32 %.1, 10
  br i1 %89, label %._crit_edge.thread, label %102

._crit_edge.thread:                               ; preds = %2, %._crit_edge
  %90 = call ptr @recover_fileName(ptr noundef %1) #7
  %91 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.86, ptr noundef %90)
  %92 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.87)
  %93 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.88)
  %94 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.89)
  %95 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.90)
  %96 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.91)
  %97 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.92)
  %98 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.93)
  %99 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.94)
  %100 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.95)
  %101 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.96)
  call void @exit(i32 noundef -1) #9
  unreachable

102:                                              ; preds = %._crit_edge
  %103 = getelementptr inbounds i8, ptr %0, i64 56
  %104 = load double, ptr %103, align 8, !tbaa !18
  %105 = getelementptr inbounds i8, ptr %0, i64 40
  %106 = load double, ptr %105, align 8, !tbaa !13
  %107 = fcmp olt double %104, %106
  br i1 %107, label %108, label %110

108:                                              ; preds = %102
  %109 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.97)
  call void @exit(i32 noundef -1) #9
  unreachable

110:                                              ; preds = %102
  %111 = fcmp ugt double %106, 0.000000e+00
  br i1 %111, label %114, label %112

112:                                              ; preds = %110
  %113 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.98)
  call void @exit(i32 noundef -1) #9
  unreachable

114:                                              ; preds = %110
  %115 = getelementptr inbounds i8, ptr %0, i64 8
  %116 = load double, ptr %115, align 8, !tbaa !14
  %117 = fcmp olt double %116, 0.000000e+00
  %118 = getelementptr inbounds i8, ptr %0, i64 16
  %119 = load double, ptr %118, align 8
  %120 = fcmp olt double %119, 0.000000e+00
  %or.cond = select i1 %117, i1 true, i1 %120
  %121 = getelementptr inbounds i8, ptr %0, i64 24
  %122 = load double, ptr %121, align 8
  %123 = fcmp olt double %122, 0.000000e+00
  %or.cond5 = select i1 %or.cond, i1 true, i1 %123
  br i1 %or.cond5, label %124, label %126

124:                                              ; preds = %114
  %125 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.99)
  call void @exit(i32 noundef -1) #9
  unreachable

126:                                              ; preds = %114
  %127 = fadd double %104, 2.000000e+01
  %128 = getelementptr inbounds i8, ptr %0, i64 32
  %129 = load double, ptr %128, align 8, !tbaa !12
  %130 = fcmp ogt double %127, %129
  br i1 %130, label %131, label %133

131:                                              ; preds = %126
  %132 = fadd double %129, -2.000000e+01
  store double %132, ptr %103, align 8, !tbaa !18
  br label %133

133:                                              ; preds = %131, %126
  call void @llvm.lifetime.end.p0(i64 256, ptr nonnull %3) #7
  ret void
}

; Function Attrs: inlinehint mustprogress nofree nounwind willreturn memory(read) uwtable
declare i32 @atoi(ptr nocapture noundef nonnull) local_unnamed_addr #4

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"omnipotent char", !7, i64 0}
!7 = !{!"Simple C/C++ TBAA"}
!8 = !{!9, !10, i64 0}
!9 = !{!"", !10, i64 0, !11, i64 8, !11, i64 16, !11, i64 24, !11, i64 32, !11, i64 40, !11, i64 48, !11, i64 56, !10, i64 64, !11, i64 72}
!10 = !{!"int", !6, i64 0}
!11 = !{!"double", !6, i64 0}
!12 = !{!9, !11, i64 32}
!13 = !{!9, !11, i64 40}
!14 = !{!9, !11, i64 8}
!15 = !{!9, !11, i64 16}
!16 = !{!9, !11, i64 24}
!17 = !{!9, !11, i64 48}
!18 = !{!9, !11, i64 56}
!19 = !{!9, !10, i64 64}
!20 = !{!9, !11, i64 72}
!21 = distinct !{!21, !22}
!22 = !{!"llvm.loop.mustprogress"}


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