; LLVM IR from fritzsedlazeck/SURVIVOR :: src/simulator (SV_Simulator)

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%struct.struct_var = type { i32, %struct.position, %struct.position, %"class.std::__cxx11::basic_string", %"class.std::__cxx11::basic_string", i8, i32 }
%struct.position = type { %"class.std::__cxx11::basic_string", i32, i32 }

@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str.12 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [50 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [64 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.26 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.27 = external hidden unnamed_addr constant [7 x i8], align 1

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #0

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #1 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #0

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

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

; Function Attrs: mustprogress nounwind uwtable
declare noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32)) #3 align 2

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSERKS4_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(32)) #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt6vectorI10struct_varSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(160) ptr @_ZNSt6vectorI10struct_varSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #3 align 2

; Function Attrs: mustprogress uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2ERKS4_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEpLEPKc(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef) #1 align 2

declare noalias ptr @fopen(ptr noundef, ptr noundef) #5

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

declare i32 @fclose(ptr noundef) #5

; Function Attrs: mustprogress uwtable
define dso_local void @_Z8write_svNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt6vectorI10struct_varSaIS6_EE(ptr noundef %0, ptr noundef %1) #1 personality ptr @__gxx_personality_v0 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca %"class.std::__cxx11::basic_string", align 8
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca i64, align 8
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 32, ptr %5) #7
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2ERKS4_(ptr noundef nonnull align 8 dereferenceable(32) %5, ptr noundef nonnull align 8 dereferenceable(32) %0)
  %11 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEpLEPKc(ptr noundef nonnull align 8 dereferenceable(32) %5, ptr noundef @.str.18)
          to label %12 unwind label %28

12:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #7
  %13 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %5) #7
  %14 = invoke noalias ptr @fopen(ptr noundef %13, ptr noundef @.str.12)
          to label %15 unwind label %32

15:                                               ; preds = %12
  store ptr %14, ptr %8, align 8, !tbaa !5
  %16 = load ptr, ptr %8, align 8, !tbaa !5
  %17 = icmp eq ptr %16, null
  br i1 %17, label %18, label %36

18:                                               ; preds = %15
  %19 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.14)
          to label %20 unwind label %32

20:                                               ; preds = %18
  %21 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %5) #7
  %22 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %19, ptr noundef %21)
          to label %23 unwind label %32

23:                                               ; preds = %20
  %24 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %22, ptr noundef @.str.15)
          to label %25 unwind label %32

25:                                               ; preds = %23
  %26 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %24, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %27 unwind label %32

27:                                               ; preds = %25
  call void @exit(i32 noundef 0) #8
  unreachable

28:                                               ; preds = %2
  %29 = landingpad { ptr, i32 }
          cleanup
  %30 = extractvalue { ptr, i32 } %29, 0
  store ptr %30, ptr %6, align 8
  %31 = extractvalue { ptr, i32 } %29, 1
  store i32 %31, ptr %7, align 4
  br label %264

32:                                               ; preds = %38, %36, %25, %23, %20, %18, %12
  %33 = landingpad { ptr, i32 }
          cleanup
  %34 = extractvalue { ptr, i32 } %33, 0
  store ptr %34, ptr %6, align 8
  %35 = extractvalue { ptr, i32 } %33, 1
  store i32 %35, ptr %7, align 4
  br label %263

36:                                               ; preds = %15
  %37 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSERKS4_(ptr noundef nonnull align 8 dereferenceable(32) %5, ptr noundef nonnull align 8 dereferenceable(32) %0)
          to label %38 unwind label %32

38:                                               ; preds = %36
  %39 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEpLEPKc(ptr noundef nonnull align 8 dereferenceable(32) %5, ptr noundef @.str.19)
          to label %40 unwind label %32

40:                                               ; preds = %38
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #7
  %41 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %5) #7
  %42 = invoke noalias ptr @fopen(ptr noundef %41, ptr noundef @.str.12)
          to label %43 unwind label %56

43:                                               ; preds = %40
  store ptr %42, ptr %9, align 8, !tbaa !5
  %44 = load ptr, ptr %9, align 8, !tbaa !5
  %45 = icmp eq ptr %44, null
  br i1 %45, label %46, label %60

46:                                               ; preds = %43
  %47 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.14)
          to label %48 unwind label %56

48:                                               ; preds = %46
  %49 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %5) #7
  %50 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %47, ptr noundef %49)
          to label %51 unwind label %56

51:                                               ; preds = %48
  %52 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %50, ptr noundef @.str.15)
          to label %53 unwind label %56

53:                                               ; preds = %51
  %54 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %52, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %55 unwind label %56

55:                                               ; preds = %53
  call void @exit(i32 noundef 0) #8
  unreachable

56:                                               ; preds = %259, %256, %53, %51, %48, %46, %40
  %57 = landingpad { ptr, i32 }
          cleanup
  %58 = extractvalue { ptr, i32 } %57, 0
  store ptr %58, ptr %6, align 8
  %59 = extractvalue { ptr, i32 } %57, 1
  store i32 %59, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #7
  br label %263

60:                                               ; preds = %43
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #7
  store i64 0, ptr %10, align 8, !tbaa !9
  br label %61

61:                                               ; preds = %253, %60
  %62 = load i64, ptr %10, align 8, !tbaa !9
  %63 = call noundef i64 @_ZNKSt6vectorI10struct_varSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #7
  %64 = icmp ult i64 %62, %63
  br i1 %64, label %66, label %65

65:                                               ; preds = %61
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #7
  br label %256

66:                                               ; preds = %61
  %67 = load i64, ptr %10, align 8, !tbaa !9
  %68 = call noundef nonnull align 8 dereferenceable(160) ptr @_ZNSt6vectorI10struct_varSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %67) #7
  %69 = getelementptr inbounds %struct.struct_var, ptr %68, i32 0, i32 0
  %70 = load i32, ptr %69, align 8, !tbaa !11
  %71 = icmp eq i32 %70, 1
  br i1 %71, label %72, label %101

72:                                               ; preds = %66
  %73 = load ptr, ptr %9, align 8, !tbaa !5
  %74 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %73, ptr noundef @.str.16, i32 noundef 62) #7
  %75 = load ptr, ptr %9, align 8, !tbaa !5
  %76 = load i64, ptr %10, align 8, !tbaa !9
  %77 = call noundef nonnull align 8 dereferenceable(160) ptr @_ZNSt6vectorI10struct_varSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %76) #7
  %78 = getelementptr inbounds %struct.struct_var, ptr %77, i32 0, i32 1
  %79 = getelementptr inbounds %struct.position, ptr %78, i32 0, i32 0
  %80 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %79) #7
  %81 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %75, ptr noundef @.str.17, ptr noundef %80) #7
  %82 = load ptr, ptr %9, align 8, !tbaa !5
  %83 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %82, ptr noundef @.str.16, i32 noundef 95) #7
  %84 = load ptr, ptr %9, align 8, !tbaa !5
  %85 = load i64, ptr %10, align 8, !tbaa !9
  %86 = call noundef nonnull align 8 dereferenceable(160) ptr @_ZNSt6vectorI10struct_varSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %85) #7
  %87 = getelementptr inbounds %struct.struct_var, ptr %86, i32 0, i32 1
  %88 = getelementptr inbounds %struct.position, ptr %87, i32 0, i32 1
  %89 = load i32, ptr %88, align 8, !tbaa !18
  %90 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %84, ptr noundef @.str.20, i32 noundef %89) #7
  %91 = load ptr, ptr %9, align 8, !tbaa !5
  %92 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %91, ptr noundef @.str.16, i32 noundef 10) #7
  %93 = load ptr, ptr %9, align 8, !tbaa !5
  %94 = load i64, ptr %10, align 8, !tbaa !9
  %95 = call noundef nonnull align 8 dereferenceable(160) ptr @_ZNSt6vectorI10struct_varSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %94) #7
  %96 = getelementptr inbounds %struct.struct_var, ptr %95, i32 0, i32 3
  %97 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %96) #7
  %98 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %93, ptr noundef @.str.17, ptr noundef %97) #7
  %99 = load ptr, ptr %9, align 8, !tbaa !5
  %100 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %99, ptr noundef @.str.16, i32 noundef 10) #7
  br label %101

101:                                              ; preds = %72, %66
  %102 = load i64, ptr %10, align 8, !tbaa !9
  %103 = call noundef nonnull align 8 dereferenceable(160) ptr @_ZNSt6vectorI10struct_varSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %102) #7
  %104 = getelementptr inbounds %struct.struct_var, ptr %103, i32 0, i32 0
  %105 = load i32, ptr %104, align 8, !tbaa !11
  %106 = icmp eq i32 %105, 3
  br i1 %106, label %107, label %189

107:                                              ; preds = %101
  %108 = load ptr, ptr %8, align 8, !tbaa !5
  %109 = load i64, ptr %10, align 8, !tbaa !9
  %110 = call noundef nonnull align 8 dereferenceable(160) ptr @_ZNSt6vectorI10struct_varSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %109) #7
  %111 = getelementptr inbounds %struct.struct_var, ptr %110, i32 0, i32 1
  %112 = getelementptr inbounds %struct.position, ptr %111, i32 0, i32 0
  %113 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %112) #7
  %114 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %108, ptr noundef @.str.17, ptr noundef %113) #7
  %115 = load ptr, ptr %8, align 8, !tbaa !5
  %116 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %115, ptr noundef @.str.16, i32 noundef 9) #7
  %117 = load ptr, ptr %8, align 8, !tbaa !5
  %118 = load i64, ptr %10, align 8, !tbaa !9
  %119 = call noundef nonnull align 8 dereferenceable(160) ptr @_ZNSt6vectorI10struct_varSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %118) #7
  %120 = getelementptr inbounds %struct.struct_var, ptr %119, i32 0, i32 1
  %121 = getelementptr inbounds %struct.position, ptr %120, i32 0, i32 1
  %122 = load i32, ptr %121, align 8, !tbaa !18
  %123 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %117, ptr noundef @.str.20, i32 noundef %122) #7
  %124 = load ptr, ptr %8, align 8, !tbaa !5
  %125 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %124, ptr noundef @.str.16, i32 noundef 9) #7
  %126 = load ptr, ptr %8, align 8, !tbaa !5
  %127 = load i64, ptr %10, align 8, !tbaa !9
  %128 = call noundef nonnull align 8 dereferenceable(160) ptr @_ZNSt6vectorI10struct_varSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %127) #7
  %129 = getelementptr inbounds %struct.struct_var, ptr %128, i32 0, i32 2
  %130 = getelementptr inbounds %struct.position, ptr %129, i32 0, i32 0
  %131 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %130) #7
  %132 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %126, ptr noundef @.str.17, ptr noundef %131) #7
  %133 = load ptr, ptr %8, align 8, !tbaa !5
  %134 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %133, ptr noundef @.str.16, i32 noundef 9) #7
  %135 = load ptr, ptr %8, align 8, !tbaa !5
  %136 = load i64, ptr %10, align 8, !tbaa !9
  %137 = call noundef nonnull align 8 dereferenceable(160) ptr @_ZNSt6vectorI10struct_varSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %136) #7
  %138 = getelementptr inbounds %struct.struct_var, ptr %137, i32 0, i32 2
  %139 = getelementptr inbounds %struct.position, ptr %138, i32 0, i32 1
  %140 = load i32, ptr %139, align 8, !tbaa !19
  %141 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %135, ptr noundef @.str.20, i32 noundef %140) #7
  %142 = load ptr, ptr %8, align 8, !tbaa !5
  %143 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %142, ptr noundef @.str.16, i32 noundef 9) #7
  %144 = load i64, ptr %10, align 8, !tbaa !9
  %145 = call noundef nonnull align 8 dereferenceable(160) ptr @_ZNSt6vectorI10struct_varSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %144) #7
  %146 = getelementptr inbounds %struct.struct_var, ptr %145, i32 0, i32 0
  %147 = load i32, ptr %146, align 8, !tbaa !11
  %148 = icmp eq i32 %147, 3
  br i1 %148, label %149, label %152

149:                                              ; preds = %107
  %150 = load ptr, ptr %8, align 8, !tbaa !5
  %151 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %150, ptr noundef @.str.17, ptr noundef @.str.21) #7
  br label %152

152:                                              ; preds = %149, %107
  %153 = load ptr, ptr %8, align 8, !tbaa !5
  %154 = load i64, ptr %10, align 8, !tbaa !9
  %155 = call noundef nonnull align 8 dereferenceable(160) ptr @_ZNSt6vectorI10struct_varSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %154) #7
  %156 = getelementptr inbounds %struct.struct_var, ptr %155, i32 0, i32 1
  %157 = getelementptr inbounds %struct.position, ptr %156, i32 0, i32 0
  %158 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %157) #7
  %159 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %153, ptr noundef @.str.17, ptr noundef %158) #7
  %160 = load ptr, ptr %8, align 8, !tbaa !5
  %161 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %160, ptr noundef @.str.16, i32 noundef 9) #7
  %162 = load ptr, ptr %8, align 8, !tbaa !5
  %163 = load i64, ptr %10, align 8, !tbaa !9
  %164 = call noundef nonnull align 8 dereferenceable(160) ptr @_ZNSt6vectorI10struct_varSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %163) #7
  %165 = getelementptr inbounds %struct.struct_var, ptr %164, i32 0, i32 1
  %166 = getelementptr inbounds %struct.position, ptr %165, i32 0, i32 2
  %167 = load i32, ptr %166, align 4, !tbaa !20
  %168 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %162, ptr noundef @.str.20, i32 noundef %167) #7
  %169 = load ptr, ptr %8, align 8, !tbaa !5
  %170 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %169, ptr noundef @.str.16, i32 noundef 9) #7
  %171 = load ptr, ptr %8, align 8, !tbaa !5
  %172 = load i64, ptr %10, align 8, !tbaa !9
  %173 = call noundef nonnull align 8 dereferenceable(160) ptr @_ZNSt6vectorI10struct_varSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %172) #7
  %174 = getelementptr inbounds %struct.struct_var, ptr %173, i32 0, i32 2
  %175 = getelementptr inbounds %struct.position, ptr %174, i32 0, i32 0
  %176 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %175) #7
  %177 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %171, ptr noundef @.str.17, ptr noundef %176) #7
  %178 = load ptr, ptr %8, align 8, !tbaa !5
  %179 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %178, ptr noundef @.str.16, i32 noundef 9) #7
  %180 = load ptr, ptr %8, align 8, !tbaa !5
  %181 = load i64, ptr %10, align 8, !tbaa !9
  %182 = call noundef nonnull align 8 dereferenceable(160) ptr @_ZNSt6vectorI10struct_varSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %181) #7
  %183 = getelementptr inbounds %struct.struct_var, ptr %182, i32 0, i32 2
  %184 = getelementptr inbounds %struct.position, ptr %183, i32 0, i32 2
  %185 = load i32, ptr %184, align 4, !tbaa !21
  %186 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %180, ptr noundef @.str.20, i32 noundef %185) #7
  %187 = load ptr, ptr %8, align 8, !tbaa !5
  %188 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %187, ptr noundef @.str.16, i32 noundef 9) #7
  br label %226

189:                                              ; preds = %101
  %190 = load ptr, ptr %8, align 8, !tbaa !5
  %191 = load i64, ptr %10, align 8, !tbaa !9
  %192 = call noundef nonnull align 8 dereferenceable(160) ptr @_ZNSt6vectorI10struct_varSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %191) #7
  %193 = getelementptr inbounds %struct.struct_var, ptr %192, i32 0, i32 1
  %194 = getelementptr inbounds %struct.position, ptr %193, i32 0, i32 0
  %195 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %194) #7
  %196 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %190, ptr noundef @.str.17, ptr noundef %195) #7
  %197 = load ptr, ptr %8, align 8, !tbaa !5
  %198 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %197, ptr noundef @.str.16, i32 noundef 9) #7
  %199 = load ptr, ptr %8, align 8, !tbaa !5
  %200 = load i64, ptr %10, align 8, !tbaa !9
  %201 = call noundef nonnull align 8 dereferenceable(160) ptr @_ZNSt6vectorI10struct_varSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %200) #7
  %202 = getelementptr inbounds %struct.struct_var, ptr %201, i32 0, i32 1
  %203 = getelementptr inbounds %struct.position, ptr %202, i32 0, i32 1
  %204 = load i32, ptr %203, align 8, !tbaa !18
  %205 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %199, ptr noundef @.str.20, i32 noundef %204) #7
  %206 = load ptr, ptr %8, align 8, !tbaa !5
  %207 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %206, ptr noundef @.str.16, i32 noundef 9) #7
  %208 = load ptr, ptr %8, align 8, !tbaa !5
  %209 = load i64, ptr %10, align 8, !tbaa !9
  %210 = call noundef nonnull align 8 dereferenceable(160) ptr @_ZNSt6vectorI10struct_varSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %209) #7
  %211 = getelementptr inbounds %struct.struct_var, ptr %210, i32 0, i32 1
  %212 = getelementptr inbounds %struct.position, ptr %211, i32 0, i32 0
  %213 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %212) #7
  %214 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %208, ptr noundef @.str.17, ptr noundef %213) #7
  %215 = load ptr, ptr %8, align 8, !tbaa !5
  %216 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %215, ptr noundef @.str.16, i32 noundef 9) #7
  %217 = load ptr, ptr %8, align 8, !tbaa !5
  %218 = load i64, ptr %10, align 8, !tbaa !9
  %219 = call noundef nonnull align 8 dereferenceable(160) ptr @_ZNSt6vectorI10struct_varSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %218) #7
  %220 = getelementptr inbounds %struct.struct_var, ptr %219, i32 0, i32 1
  %221 = getelementptr inbounds %struct.position, ptr %220, i32 0, i32 2
  %222 = load i32, ptr %221, align 4, !tbaa !20
  %223 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %217, ptr noundef @.str.20, i32 noundef %222) #7
  %224 = load ptr, ptr %8, align 8, !tbaa !5
  %225 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %224, ptr noundef @.str.16, i32 noundef 9) #7
  br label %226

226:                                              ; preds = %189, %152
  %227 = load i64, ptr %10, align 8, !tbaa !9
  %228 = call noundef nonnull align 8 dereferenceable(160) ptr @_ZNSt6vectorI10struct_varSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %227) #7
  %229 = getelementptr inbounds %struct.struct_var, ptr %228, i32 0, i32 0
  %230 = load i32, ptr %229, align 8, !tbaa !11
  switch i32 %230, label %249 [
    i32 0, label %231
    i32 1, label %234
    i32 2, label %237
    i32 3, label %240
    i32 4, label %243
    i32 5, label %246
  ]

231:                                              ; preds = %226
  %232 = load ptr, ptr %8, align 8, !tbaa !5
  %233 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %232, ptr noundef @.str.17, ptr noundef @.str.22) #7
  br label %250

234:                                              ; preds = %226
  %235 = load ptr, ptr %8, align 8, !tbaa !5
  %236 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %235, ptr noundef @.str.17, ptr noundef @.str.23) #7
  br label %250

237:                                              ; preds = %226
  %238 = load ptr, ptr %8, align 8, !tbaa !5
  %239 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %238, ptr noundef @.str.17, ptr noundef @.str.24) #7
  br label %250

240:                                              ; preds = %226
  %241 = load ptr, ptr %8, align 8, !tbaa !5
  %242 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %241, ptr noundef @.str.17, ptr noundef @.str.25) #7
  br label %250

243:                                              ; preds = %226
  %244 = load ptr, ptr %8, align 8, !tbaa !5
  %245 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %244, ptr noundef @.str.17, ptr noundef @.str.26) #7
  br label %250

246:                                              ; preds = %226
  %247 = load ptr, ptr %8, align 8, !tbaa !5
  %248 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %247, ptr noundef @.str.17, ptr noundef @.str.27) #7
  br label %250

249:                                              ; preds = %226
  br label %250

250:                                              ; preds = %249, %246, %243, %240, %237, %234, %231
  %251 = load ptr, ptr %8, align 8, !tbaa !5
  %252 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %251, ptr noundef @.str.16, i32 noundef 10) #7
  br label %253

253:                                              ; preds = %250
  %254 = load i64, ptr %10, align 8, !tbaa !9
  %255 = add i64 %254, 1
  store i64 %255, ptr %10, align 8, !tbaa !9
  br label %61, !llvm.loop !22

256:                                              ; preds = %65
  %257 = load ptr, ptr %9, align 8, !tbaa !5
  %258 = invoke i32 @fclose(ptr noundef %257)
          to label %259 unwind label %56

259:                                              ; preds = %256
  %260 = load ptr, ptr %8, align 8, !tbaa !5
  %261 = invoke i32 @fclose(ptr noundef %260)
          to label %262 unwind label %56

262:                                              ; preds = %259
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #7
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %5) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %5) #7
  ret void

263:                                              ; preds = %56, %32
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #7
  br label %264

264:                                              ; preds = %263, %28
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %5) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %5) #7
  br label %265

265:                                              ; preds = %264
  %266 = load ptr, ptr %6, align 8
  %267 = load i32, ptr %7, align 4
  %268 = insertvalue { ptr, i32 } poison, ptr %266, 0
  %269 = insertvalue { ptr, i32 } %268, i32 %267, 1
  resume { ptr, i32 } %269
}

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"long", !7, i64 0}
!11 = !{!12, !13, i64 0}
!12 = !{!"_ZTS10struct_var", !13, i64 0, !14, i64 8, !14, i64 48, !15, i64 88, !15, i64 120, !17, i64 152, !13, i64 156}
!13 = !{!"int", !7, i64 0}
!14 = !{!"_ZTS8position", !15, i64 0, !13, i64 32, !13, i64 36}
!15 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !16, i64 0, !10, i64 8, !7, i64 16}
!16 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !6, i64 0}
!17 = !{!"bool", !7, i64 0}
!18 = !{!12, !13, i64 40}
!19 = !{!12, !13, i64 80}
!20 = !{!12, !13, i64 44}
!21 = !{!12, !13, i64 84}
!22 = distinct !{!22, !23}
!23 = !{!"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"

%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }

@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str.12 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [50 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [64 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.26 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.27 = external hidden unnamed_addr constant [7 x i8], align 1
@switch.table._Z8write_svNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt6vectorI10struct_varSaIS6_EE = private unnamed_addr constant [6 x ptr] [ptr @.str.22, ptr @.str.23, ptr @.str.24, ptr @.str.25, ptr @.str.26, ptr @.str.27], align 8

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) local_unnamed_addr #0

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) local_unnamed_addr #1 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #0

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

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

; Function Attrs: mustprogress nounwind uwtable
declare noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #3 align 2

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSERKS4_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt6vectorI10struct_varSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(160) ptr @_ZNSt6vectorI10struct_varSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2ERKS4_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEpLEPKc(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef) local_unnamed_addr #1 align 2

; Function Attrs: nofree nounwind
declare noalias noundef ptr @fopen(ptr nocapture noundef readonly, ptr nocapture noundef readonly) local_unnamed_addr #5

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_Z8write_svNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt6vectorI10struct_varSaIS6_EE(ptr noundef nonnull %0, ptr noundef %1) local_unnamed_addr #1 personality ptr @__gxx_personality_v0 {
  %3 = alloca %"class.std::__cxx11::basic_string", align 8
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %3) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2ERKS4_(ptr noundef nonnull align 8 dereferenceable(32) %3, ptr noundef nonnull align 8 dereferenceable(32) %0)
  %4 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEpLEPKc(ptr noundef nonnull align 8 dereferenceable(32) %3, ptr noundef nonnull @.str.18)
          to label %5 unwind label %19

5:                                                ; preds = %2
  %6 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %3) #6
  %7 = call noalias ptr @fopen(ptr noundef %6, ptr noundef nonnull @.str.12)
  %8 = icmp eq ptr %7, null
  br i1 %8, label %9, label %23

9:                                                ; preds = %5
  %10 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.14)
          to label %11 unwind label %21

11:                                               ; preds = %9
  %12 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %3) #6
  %13 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %10, ptr noundef %12)
          to label %14 unwind label %21

14:                                               ; preds = %11
  %15 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %13, ptr noundef nonnull @.str.15)
          to label %16 unwind label %21

16:                                               ; preds = %14
  %17 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %15, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %18 unwind label %21

18:                                               ; preds = %16
  call void @exit(i32 noundef 0) #7
  unreachable

19:                                               ; preds = %2
  %20 = landingpad { ptr, i32 }
          cleanup
  br label %130

21:                                               ; preds = %25, %23, %16, %14, %11, %9
  %22 = landingpad { ptr, i32 }
          cleanup
  br label %130

23:                                               ; preds = %5
  %24 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSERKS4_(ptr noundef nonnull align 8 dereferenceable(32) %3, ptr noundef nonnull align 8 dereferenceable(32) %0)
          to label %25 unwind label %21

25:                                               ; preds = %23
  %26 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEpLEPKc(ptr noundef nonnull align 8 dereferenceable(32) %3, ptr noundef nonnull @.str.19)
          to label %27 unwind label %21

27:                                               ; preds = %25
  %28 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %3) #6
  %29 = call noalias ptr @fopen(ptr noundef %28, ptr noundef nonnull @.str.12)
  %30 = icmp eq ptr %29, null
  br i1 %30, label %32, label %.preheader

.preheader:                                       ; preds = %27
  %31 = call noundef i64 @_ZNKSt6vectorI10struct_varSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #6
  %.not = icmp eq i64 %31, 0
  br i1 %.not, label %._crit_edge, label %.lr.ph

32:                                               ; preds = %27
  %33 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.14)
          to label %34 unwind label %42

34:                                               ; preds = %32
  %35 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %3) #6
  %36 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %33, ptr noundef %35)
          to label %37 unwind label %42

37:                                               ; preds = %34
  %38 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %36, ptr noundef nonnull @.str.15)
          to label %39 unwind label %42

39:                                               ; preds = %37
  %40 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %38, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %41 unwind label %42

41:                                               ; preds = %39
  call void @exit(i32 noundef 0) #7
  unreachable

42:                                               ; preds = %39, %37, %34, %32
  %43 = landingpad { ptr, i32 }
          cleanup
  br label %130

._crit_edge:                                      ; preds = %125, %.preheader
  %44 = call i32 @fclose(ptr noundef nonnull %29)
  %45 = call i32 @fclose(ptr noundef %7)
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %3) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %3) #6
  ret void

.lr.ph:                                           ; preds = %.preheader, %125
  %.072 = phi i64 [ %127, %125 ], [ 0, %.preheader ]
  %46 = call noundef nonnull align 8 dereferenceable(160) ptr @_ZNSt6vectorI10struct_varSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %.072) #6
  %47 = load i32, ptr %46, align 8, !tbaa !5
  %48 = icmp eq i32 %47, 1
  br i1 %48, label %49, label %66

49:                                               ; preds = %.lr.ph
  %50 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef nonnull %29, ptr noundef nonnull @.str.16, i32 noundef 62) #6
  %51 = call noundef nonnull align 8 dereferenceable(160) ptr @_ZNSt6vectorI10struct_varSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %.072) #6
  %52 = getelementptr inbounds i8, ptr %51, i64 8
  %53 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %52) #6
  %54 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef nonnull %29, ptr noundef nonnull @.str.17, ptr noundef %53) #6
  %55 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef nonnull %29, ptr noundef nonnull @.str.16, i32 noundef 95) #6
  %56 = call noundef nonnull align 8 dereferenceable(160) ptr @_ZNSt6vectorI10struct_varSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %.072) #6
  %57 = getelementptr inbounds i8, ptr %56, i64 40
  %58 = load i32, ptr %57, align 8, !tbaa !16
  %59 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef nonnull %29, ptr noundef nonnull @.str.20, i32 noundef %58) #6
  %60 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef nonnull %29, ptr noundef nonnull @.str.16, i32 noundef 10) #6
  %61 = call noundef nonnull align 8 dereferenceable(160) ptr @_ZNSt6vectorI10struct_varSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %.072) #6
  %62 = getelementptr inbounds i8, ptr %61, i64 88
  %63 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %62) #6
  %64 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef nonnull %29, ptr noundef nonnull @.str.17, ptr noundef %63) #6
  %65 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef nonnull %29, ptr noundef nonnull @.str.16, i32 noundef 10) #6
  br label %66

66:                                               ; preds = %49, %.lr.ph
  %67 = call noundef nonnull align 8 dereferenceable(160) ptr @_ZNSt6vectorI10struct_varSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %.072) #6
  %68 = load i32, ptr %67, align 8, !tbaa !5
  %69 = icmp eq i32 %68, 3
  %70 = call noundef nonnull align 8 dereferenceable(160) ptr @_ZNSt6vectorI10struct_varSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %.072) #6
  %71 = getelementptr inbounds i8, ptr %70, i64 8
  %72 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %71) #6
  %73 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %7, ptr noundef nonnull @.str.17, ptr noundef %72) #6
  %74 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %7, ptr noundef nonnull @.str.16, i32 noundef 9) #6
  %75 = call noundef nonnull align 8 dereferenceable(160) ptr @_ZNSt6vectorI10struct_varSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %.072) #6
  %76 = getelementptr inbounds i8, ptr %75, i64 40
  %77 = load i32, ptr %76, align 8, !tbaa !16
  %78 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %7, ptr noundef nonnull @.str.20, i32 noundef %77) #6
  %79 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %7, ptr noundef nonnull @.str.16, i32 noundef 9) #6
  %80 = call noundef nonnull align 8 dereferenceable(160) ptr @_ZNSt6vectorI10struct_varSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %.072) #6
  br i1 %69, label %81, label %109

81:                                               ; preds = %66
  %82 = getelementptr inbounds i8, ptr %80, i64 48
  %83 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %82) #6
  %84 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %7, ptr noundef nonnull @.str.17, ptr noundef %83) #6
  %85 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %7, ptr noundef nonnull @.str.16, i32 noundef 9) #6
  %86 = call noundef nonnull align 8 dereferenceable(160) ptr @_ZNSt6vectorI10struct_varSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %.072) #6
  %87 = getelementptr inbounds i8, ptr %86, i64 80
  %88 = load i32, ptr %87, align 8, !tbaa !17
  %89 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %7, ptr noundef nonnull @.str.20, i32 noundef %88) #6
  %90 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %7, ptr noundef nonnull @.str.16, i32 noundef 9) #6
  %91 = call noundef nonnull align 8 dereferenceable(160) ptr @_ZNSt6vectorI10struct_varSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %.072) #6
  %92 = load i32, ptr %91, align 8, !tbaa !5
  %93 = icmp eq i32 %92, 3
  br i1 %93, label %94, label %96

94:                                               ; preds = %81
  %95 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %7, ptr noundef nonnull @.str.17, ptr noundef nonnull @.str.21) #6
  br label %96

96:                                               ; preds = %94, %81
  %97 = call noundef nonnull align 8 dereferenceable(160) ptr @_ZNSt6vectorI10struct_varSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %.072) #6
  %98 = getelementptr inbounds i8, ptr %97, i64 8
  %99 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %98) #6
  %100 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %7, ptr noundef nonnull @.str.17, ptr noundef %99) #6
  %101 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %7, ptr noundef nonnull @.str.16, i32 noundef 9) #6
  %102 = call noundef nonnull align 8 dereferenceable(160) ptr @_ZNSt6vectorI10struct_varSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %.072) #6
  %103 = getelementptr inbounds i8, ptr %102, i64 44
  %104 = load i32, ptr %103, align 4, !tbaa !18
  %105 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %7, ptr noundef nonnull @.str.20, i32 noundef %104) #6
  %106 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %7, ptr noundef nonnull @.str.16, i32 noundef 9) #6
  %107 = call noundef nonnull align 8 dereferenceable(160) ptr @_ZNSt6vectorI10struct_varSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %.072) #6
  %108 = getelementptr inbounds i8, ptr %107, i64 48
  br label %111

109:                                              ; preds = %66
  %110 = getelementptr inbounds i8, ptr %80, i64 8
  br label %111

111:                                              ; preds = %109, %96
  %.sink75 = phi ptr [ %110, %109 ], [ %108, %96 ]
  %.sink74 = phi i64 [ 44, %109 ], [ 84, %96 ]
  %112 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %.sink75) #6
  %113 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %7, ptr noundef nonnull @.str.17, ptr noundef %112) #6
  %114 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %7, ptr noundef nonnull @.str.16, i32 noundef 9) #6
  %115 = call noundef nonnull align 8 dereferenceable(160) ptr @_ZNSt6vectorI10struct_varSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %.072) #6
  %116 = getelementptr inbounds i8, ptr %115, i64 %.sink74
  %117 = load i32, ptr %116, align 4, !tbaa !19
  %118 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %7, ptr noundef nonnull @.str.20, i32 noundef %117) #6
  %119 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %7, ptr noundef nonnull @.str.16, i32 noundef 9) #6
  %120 = call noundef nonnull align 8 dereferenceable(160) ptr @_ZNSt6vectorI10struct_varSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %.072) #6
  %121 = load i32, ptr %120, align 8, !tbaa !5
  %122 = icmp ult i32 %121, 6
  br i1 %122, label %switch.lookup, label %125

switch.lookup:                                    ; preds = %111
  %123 = zext nneg i32 %121 to i64
  %switch.gep = getelementptr inbounds [6 x ptr], ptr @switch.table._Z8write_svNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt6vectorI10struct_varSaIS6_EE, i64 0, i64 %123
  %switch.load = load ptr, ptr %switch.gep, align 8
  %124 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %7, ptr noundef nonnull @.str.17, ptr noundef nonnull %switch.load) #6
  br label %125

125:                                              ; preds = %111, %switch.lookup
  %126 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %7, ptr noundef nonnull @.str.16, i32 noundef 10) #6
  %127 = add nuw i64 %.072, 1
  %128 = call noundef i64 @_ZNKSt6vectorI10struct_varSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #6
  %129 = icmp ult i64 %127, %128
  br i1 %129, label %.lr.ph, label %._crit_edge, !llvm.loop !20

130:                                              ; preds = %21, %42, %19
  %.pn.pn = phi { ptr, i32 } [ %20, %19 ], [ %22, %21 ], [ %43, %42 ]
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %3) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %3) #6
  resume { ptr, i32 } %.pn.pn
}

attributes #0 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #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 = { 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 #6 = { nounwind }
attributes #7 = { 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, !7, i64 0}
!6 = !{!"_ZTS10struct_var", !7, i64 0, !10, i64 8, !10, i64 48, !11, i64 88, !11, i64 120, !15, i64 152, !7, i64 156}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"_ZTS8position", !11, i64 0, !7, i64 32, !7, i64 36}
!11 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !12, i64 0, !14, i64 8, !8, i64 16}
!12 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !13, i64 0}
!13 = !{!"any pointer", !8, i64 0}
!14 = !{!"long", !8, i64 0}
!15 = !{!"bool", !8, i64 0}
!16 = !{!6, !7, i64 40}
!17 = !{!6, !7, i64 80}
!18 = !{!6, !7, i64 44}
!19 = !{!7, !7, i64 0}
!20 = distinct !{!20, !21}
!21 = !{!"llvm.loop.mustprogress"}


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