; LLVM IR from moarseniy/CudaFEMproject :: FEMproject/thirdparty/segyio/src/SegyIn.ll (ZN7CSegyIn19readSEGYTraceHeaderEv)

; 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::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon.0 }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon.0 = type { i64, [8 x i8] }
%"class.std::allocator" = type { i8 }
%"class.std::bad_alloc" = type { %"class.std::exception" }
%"class.std::exception" = type { ptr }
%class.CSegyIO = type <{ ptr, i32, i32, i32, float, i32, [71 x i32], [27 x i32], [4 x i8], ptr, ptr, i64, %"class.std::basic_ifstream", %"class.std::basic_ofstream", %"class.std::__cxx11::basic_string", %"class.std::__cxx11::basic_string", i8, i8, [6 x i8] }>
%"class.std::basic_ifstream" = type { %"class.std::basic_istream.base", %"class.std::basic_filebuf", %"class.std::basic_ios" }
%"class.std::basic_istream.base" = type { ptr, i64 }
%"class.std::basic_filebuf" = type { %"class.std::basic_streambuf", %union.pthread_mutex_t, %"class.std::__basic_file", i32, %struct.__mbstate_t, %struct.__mbstate_t, %struct.__mbstate_t, ptr, i64, i8, i8, i8, i8, ptr, ptr, i8, ptr, ptr, i64, ptr, ptr }
%"class.std::basic_streambuf" = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, %"class.std::locale" }
%"class.std::locale" = type { ptr }
%union.pthread_mutex_t = type { %struct.__pthread_mutex_s }
%struct.__pthread_mutex_s = type { i32, i32, i32, i32, i32, i16, i16, %struct.__pthread_internal_list }
%struct.__pthread_internal_list = type { ptr, ptr }
%"class.std::__basic_file" = type <{ ptr, i8, [7 x i8] }>
%struct.__mbstate_t = type { i32, %union.anon }
%union.anon = type { i32 }
%"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::basic_ofstream" = type { %"class.std::basic_ostream.base", %"class.std::basic_filebuf", %"class.std::basic_ios" }
%"class.std::basic_ostream.base" = type { ptr }

@_ZTISt9bad_alloc = external constant ptr
@.str.4 = external hidden unnamed_addr constant [61 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [14 x i8], align 1
@_ZZN7CSegyIn19readSEGYTraceHeaderEvE5count = external hidden global i32, align 4
@.str.6 = external hidden unnamed_addr constant [43 x i8], align 1

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN7CSegyIO15setErrorMessageERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(1546), ptr noundef nonnull align 8 dereferenceable(32)) #1 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef, ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #3 align 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 uwtable
define dso_local noundef zeroext i1 @_ZN7CSegyIn19readSEGYTraceHeaderEv(ptr noundef nonnull align 8 dereferenceable(1546) %0) #3 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca i1, align 1
  %3 = alloca ptr, align 8
  %4 = alloca i32, align 4
  %5 = alloca i64, align 8
  %6 = alloca [240 x i8], align 16
  %7 = alloca [2 x i8], align 1
  %8 = alloca [4 x i8], align 1
  %9 = alloca i16, align 2
  %10 = alloca ptr, align 8
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca ptr, align 8
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca ptr, align 8
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca ptr, align 8
  %20 = alloca i32, align 4
  %21 = alloca i32, align 4
  %22 = alloca ptr, align 8
  %23 = alloca i32, align 4
  %24 = alloca i32, align 4
  %25 = alloca ptr, align 8
  %26 = alloca i32, align 4
  %27 = alloca i32, align 4
  %28 = alloca ptr, align 8
  %29 = alloca i32, align 4
  %30 = alloca i32, align 4
  %31 = alloca %"class.std::__cxx11::basic_string", align 8
  %32 = alloca %"class.std::allocator", align 1
  %33 = alloca ptr, align 8
  %34 = alloca i32, align 4
  %35 = alloca i32, align 4
  %36 = alloca %"class.std::__cxx11::basic_string", align 8
  %37 = alloca %"class.std::allocator", align 1
  %38 = alloca %"class.std::bad_alloc", align 8
  %39 = alloca %"class.std::__cxx11::basic_string", align 8
  %40 = alloca %"class.std::allocator", align 1
  store ptr %0, ptr %3, align 8, !tbaa !5
  %41 = load ptr, ptr %3, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #12
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #12
  store i64 0, ptr %5, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 240, ptr %6) #12
  call void @llvm.memset.p0.i64(ptr align 16 %6, i8 0, i64 240, i1 false)
  %42 = getelementptr inbounds %class.CSegyIO, ptr %41, i32 0, i32 12
  %43 = getelementptr inbounds [240 x i8], ptr %6, i64 0, i64 0
  %44 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSi4readEPcl(ptr noundef nonnull align 8 dereferenceable(16) %42, ptr noundef %43, i64 noundef 240)
  call void @llvm.lifetime.start.p0(i64 2, ptr %7) #12
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #12
  call void @llvm.lifetime.start.p0(i64 2, ptr %9) #12
  store i32 0, ptr %4, align 4, !tbaa !11
  br label %45

45:                                               ; preds = %60, %1
  %46 = load i32, ptr %4, align 4, !tbaa !11
  %47 = icmp slt i32 %46, 7
  br i1 %47, label %48, label %63

48:                                               ; preds = %45
  %49 = getelementptr inbounds [240 x i8], ptr %6, i64 0, i64 0
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #12
  %50 = getelementptr inbounds [4 x i8], ptr %8, i64 0, i64 0
  store ptr %50, ptr %10, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #12
  %51 = load i64, ptr %5, align 8, !tbaa !9
  %52 = trunc i64 %51 to i32
  store i32 %52, ptr %11, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #12
  store i32 4, ptr %12, align 4, !tbaa !11
  call void @_ZN7CSegyIn6getBufEPKcRKPcRKiS6_(ptr noundef nonnull align 8 dereferenceable(1546) %41, ptr noundef %49, ptr noundef nonnull align 8 dereferenceable(8) %10, ptr noundef nonnull align 4 dereferenceable(4) %11, ptr noundef nonnull align 4 dereferenceable(4) %12)
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #12
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #12
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #12
  %53 = getelementptr inbounds %class.CSegyIO, ptr %41, i32 0, i32 6
  %54 = load i32, ptr %4, align 4, !tbaa !11
  %55 = sext i32 %54 to i64
  %56 = getelementptr inbounds [71 x i32], ptr %53, i64 0, i64 %55
  %57 = getelementptr inbounds [4 x i8], ptr %8, i64 0, i64 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %56, ptr align 1 %57, i64 4, i1 false)
  %58 = load i64, ptr %5, align 8, !tbaa !9
  %59 = add nsw i64 %58, 4
  store i64 %59, ptr %5, align 8, !tbaa !9
  br label %60

60:                                               ; preds = %48
  %61 = load i32, ptr %4, align 4, !tbaa !11
  %62 = add nsw i32 %61, 1
  store i32 %62, ptr %4, align 4, !tbaa !11
  br label %45, !llvm.loop !13

63:                                               ; preds = %45
  %64 = getelementptr inbounds %class.CSegyIO, ptr %41, i32 0, i32 6
  %65 = getelementptr inbounds [71 x i32], ptr %64, i64 0, i64 2
  %66 = load i32, ptr %65, align 4, !tbaa !11
  %67 = getelementptr inbounds %class.CSegyIO, ptr %41, i32 0, i32 1
  store i32 %66, ptr %67, align 8, !tbaa !15
  br label %68

68:                                               ; preds = %85, %63
  %69 = load i32, ptr %4, align 4, !tbaa !11
  %70 = icmp slt i32 %69, 11
  br i1 %70, label %71, label %88

71:                                               ; preds = %68
  %72 = getelementptr inbounds [240 x i8], ptr %6, i64 0, i64 0
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #12
  %73 = getelementptr inbounds [2 x i8], ptr %7, i64 0, i64 0
  store ptr %73, ptr %13, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #12
  %74 = load i64, ptr %5, align 8, !tbaa !9
  %75 = trunc i64 %74 to i32
  store i32 %75, ptr %14, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #12
  store i32 2, ptr %15, align 4, !tbaa !11
  call void @_ZN7CSegyIn6getBufEPKcRKPcRKiS6_(ptr noundef nonnull align 8 dereferenceable(1546) %41, ptr noundef %72, ptr noundef nonnull align 8 dereferenceable(8) %13, ptr noundef nonnull align 4 dereferenceable(4) %14, ptr noundef nonnull align 4 dereferenceable(4) %15)
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #12
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #12
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #12
  %76 = getelementptr inbounds [2 x i8], ptr %7, i64 0, i64 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 2 %9, ptr align 1 %76, i64 2, i1 false)
  %77 = load i16, ptr %9, align 2, !tbaa !31
  %78 = zext i16 %77 to i32
  %79 = getelementptr inbounds %class.CSegyIO, ptr %41, i32 0, i32 6
  %80 = load i32, ptr %4, align 4, !tbaa !11
  %81 = sext i32 %80 to i64
  %82 = getelementptr inbounds [71 x i32], ptr %79, i64 0, i64 %81
  store i32 %78, ptr %82, align 4, !tbaa !11
  %83 = load i64, ptr %5, align 8, !tbaa !9
  %84 = add nsw i64 %83, 2
  store i64 %84, ptr %5, align 8, !tbaa !9
  br label %85

85:                                               ; preds = %71
  %86 = load i32, ptr %4, align 4, !tbaa !11
  %87 = add nsw i32 %86, 1
  store i32 %87, ptr %4, align 4, !tbaa !11
  br label %68, !llvm.loop !33

88:                                               ; preds = %68
  br label %89

89:                                               ; preds = %104, %88
  %90 = load i32, ptr %4, align 4, !tbaa !11
  %91 = icmp slt i32 %90, 19
  br i1 %91, label %92, label %107

92:                                               ; preds = %89
  %93 = getelementptr inbounds [240 x i8], ptr %6, i64 0, i64 0
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #12
  %94 = getelementptr inbounds [4 x i8], ptr %8, i64 0, i64 0
  store ptr %94, ptr %16, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #12
  %95 = load i64, ptr %5, align 8, !tbaa !9
  %96 = trunc i64 %95 to i32
  store i32 %96, ptr %17, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #12
  store i32 4, ptr %18, align 4, !tbaa !11
  call void @_ZN7CSegyIn6getBufEPKcRKPcRKiS6_(ptr noundef nonnull align 8 dereferenceable(1546) %41, ptr noundef %93, ptr noundef nonnull align 8 dereferenceable(8) %16, ptr noundef nonnull align 4 dereferenceable(4) %17, ptr noundef nonnull align 4 dereferenceable(4) %18)
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #12
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #12
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #12
  %97 = getelementptr inbounds %class.CSegyIO, ptr %41, i32 0, i32 6
  %98 = load i32, ptr %4, align 4, !tbaa !11
  %99 = sext i32 %98 to i64
  %100 = getelementptr inbounds [71 x i32], ptr %97, i64 0, i64 %99
  %101 = getelementptr inbounds [4 x i8], ptr %8, i64 0, i64 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %100, ptr align 1 %101, i64 4, i1 false)
  %102 = load i64, ptr %5, align 8, !tbaa !9
  %103 = add nsw i64 %102, 4
  store i64 %103, ptr %5, align 8, !tbaa !9
  br label %104

104:                                              ; preds = %92
  %105 = load i32, ptr %4, align 4, !tbaa !11
  %106 = add nsw i32 %105, 1
  store i32 %106, ptr %4, align 4, !tbaa !11
  br label %89, !llvm.loop !34

107:                                              ; preds = %89
  br label %108

108:                                              ; preds = %125, %107
  %109 = load i32, ptr %4, align 4, !tbaa !11
  %110 = icmp slt i32 %109, 21
  br i1 %110, label %111, label %128

111:                                              ; preds = %108
  %112 = getelementptr inbounds [240 x i8], ptr %6, i64 0, i64 0
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #12
  %113 = getelementptr inbounds [2 x i8], ptr %7, i64 0, i64 0
  store ptr %113, ptr %19, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #12
  %114 = load i64, ptr %5, align 8, !tbaa !9
  %115 = trunc i64 %114 to i32
  store i32 %115, ptr %20, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #12
  store i32 2, ptr %21, align 4, !tbaa !11
  call void @_ZN7CSegyIn6getBufEPKcRKPcRKiS6_(ptr noundef nonnull align 8 dereferenceable(1546) %41, ptr noundef %112, ptr noundef nonnull align 8 dereferenceable(8) %19, ptr noundef nonnull align 4 dereferenceable(4) %20, ptr noundef nonnull align 4 dereferenceable(4) %21)
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #12
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #12
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #12
  %116 = getelementptr inbounds [2 x i8], ptr %7, i64 0, i64 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 2 %9, ptr align 1 %116, i64 2, i1 false)
  %117 = load i16, ptr %9, align 2, !tbaa !31
  %118 = zext i16 %117 to i32
  %119 = getelementptr inbounds %class.CSegyIO, ptr %41, i32 0, i32 6
  %120 = load i32, ptr %4, align 4, !tbaa !11
  %121 = sext i32 %120 to i64
  %122 = getelementptr inbounds [71 x i32], ptr %119, i64 0, i64 %121
  store i32 %118, ptr %122, align 4, !tbaa !11
  %123 = load i64, ptr %5, align 8, !tbaa !9
  %124 = add nsw i64 %123, 2
  store i64 %124, ptr %5, align 8, !tbaa !9
  br label %125

125:                                              ; preds = %111
  %126 = load i32, ptr %4, align 4, !tbaa !11
  %127 = add nsw i32 %126, 1
  store i32 %127, ptr %4, align 4, !tbaa !11
  br label %108, !llvm.loop !35

128:                                              ; preds = %108
  br label %129

129:                                              ; preds = %144, %128
  %130 = load i32, ptr %4, align 4, !tbaa !11
  %131 = icmp slt i32 %130, 25
  br i1 %131, label %132, label %147

132:                                              ; preds = %129
  %133 = getelementptr inbounds [240 x i8], ptr %6, i64 0, i64 0
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #12
  %134 = getelementptr inbounds [4 x i8], ptr %8, i64 0, i64 0
  store ptr %134, ptr %22, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #12
  %135 = load i64, ptr %5, align 8, !tbaa !9
  %136 = trunc i64 %135 to i32
  store i32 %136, ptr %23, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #12
  store i32 4, ptr %24, align 4, !tbaa !11
  call void @_ZN7CSegyIn6getBufEPKcRKPcRKiS6_(ptr noundef nonnull align 8 dereferenceable(1546) %41, ptr noundef %133, ptr noundef nonnull align 8 dereferenceable(8) %22, ptr noundef nonnull align 4 dereferenceable(4) %23, ptr noundef nonnull align 4 dereferenceable(4) %24)
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #12
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #12
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #12
  %137 = getelementptr inbounds %class.CSegyIO, ptr %41, i32 0, i32 6
  %138 = load i32, ptr %4, align 4, !tbaa !11
  %139 = sext i32 %138 to i64
  %140 = getelementptr inbounds [71 x i32], ptr %137, i64 0, i64 %139
  %141 = getelementptr inbounds [4 x i8], ptr %8, i64 0, i64 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %140, ptr align 1 %141, i64 4, i1 false)
  %142 = load i64, ptr %5, align 8, !tbaa !9
  %143 = add nsw i64 %142, 4
  store i64 %143, ptr %5, align 8, !tbaa !9
  br label %144

144:                                              ; preds = %132
  %145 = load i32, ptr %4, align 4, !tbaa !11
  %146 = add nsw i32 %145, 1
  store i32 %146, ptr %4, align 4, !tbaa !11
  br label %129, !llvm.loop !36

147:                                              ; preds = %129
  br label %148

148:                                              ; preds = %165, %147
  %149 = load i32, ptr %4, align 4, !tbaa !11
  %150 = icmp slt i32 %149, 67
  br i1 %150, label %151, label %168

151:                                              ; preds = %148
  %152 = getelementptr inbounds [240 x i8], ptr %6, i64 0, i64 0
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #12
  %153 = getelementptr inbounds [2 x i8], ptr %7, i64 0, i64 0
  store ptr %153, ptr %25, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #12
  %154 = load i64, ptr %5, align 8, !tbaa !9
  %155 = trunc i64 %154 to i32
  store i32 %155, ptr %26, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #12
  store i32 2, ptr %27, align 4, !tbaa !11
  call void @_ZN7CSegyIn6getBufEPKcRKPcRKiS6_(ptr noundef nonnull align 8 dereferenceable(1546) %41, ptr noundef %152, ptr noundef nonnull align 8 dereferenceable(8) %25, ptr noundef nonnull align 4 dereferenceable(4) %26, ptr noundef nonnull align 4 dereferenceable(4) %27)
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #12
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #12
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #12
  %156 = getelementptr inbounds [2 x i8], ptr %7, i64 0, i64 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 2 %9, ptr align 1 %156, i64 2, i1 false)
  %157 = load i16, ptr %9, align 2, !tbaa !31
  %158 = zext i16 %157 to i32
  %159 = getelementptr inbounds %class.CSegyIO, ptr %41, i32 0, i32 6
  %160 = load i32, ptr %4, align 4, !tbaa !11
  %161 = sext i32 %160 to i64
  %162 = getelementptr inbounds [71 x i32], ptr %159, i64 0, i64 %161
  store i32 %158, ptr %162, align 4, !tbaa !11
  %163 = load i64, ptr %5, align 8, !tbaa !9
  %164 = add nsw i64 %163, 2
  store i64 %164, ptr %5, align 8, !tbaa !9
  br label %165

165:                                              ; preds = %151
  %166 = load i32, ptr %4, align 4, !tbaa !11
  %167 = add nsw i32 %166, 1
  store i32 %167, ptr %4, align 4, !tbaa !11
  br label %148, !llvm.loop !37

168:                                              ; preds = %148
  br label %169

169:                                              ; preds = %184, %168
  %170 = load i32, ptr %4, align 4, !tbaa !11
  %171 = icmp slt i32 %170, 71
  br i1 %171, label %172, label %187

172:                                              ; preds = %169
  %173 = getelementptr inbounds [240 x i8], ptr %6, i64 0, i64 0
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #12
  %174 = getelementptr inbounds [4 x i8], ptr %8, i64 0, i64 0
  store ptr %174, ptr %28, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %29) #12
  %175 = load i64, ptr %5, align 8, !tbaa !9
  %176 = trunc i64 %175 to i32
  store i32 %176, ptr %29, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %30) #12
  store i32 4, ptr %30, align 4, !tbaa !11
  call void @_ZN7CSegyIn6getBufEPKcRKPcRKiS6_(ptr noundef nonnull align 8 dereferenceable(1546) %41, ptr noundef %173, ptr noundef nonnull align 8 dereferenceable(8) %28, ptr noundef nonnull align 4 dereferenceable(4) %29, ptr noundef nonnull align 4 dereferenceable(4) %30)
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #12
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #12
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #12
  %177 = getelementptr inbounds %class.CSegyIO, ptr %41, i32 0, i32 6
  %178 = load i32, ptr %4, align 4, !tbaa !11
  %179 = sext i32 %178 to i64
  %180 = getelementptr inbounds [71 x i32], ptr %177, i64 0, i64 %179
  %181 = getelementptr inbounds [4 x i8], ptr %8, i64 0, i64 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %180, ptr align 1 %181, i64 4, i1 false)
  %182 = load i64, ptr %5, align 8, !tbaa !9
  %183 = add nsw i64 %182, 4
  store i64 %183, ptr %5, align 8, !tbaa !9
  br label %184

184:                                              ; preds = %172
  %185 = load i32, ptr %4, align 4, !tbaa !11
  %186 = add nsw i32 %185, 1
  store i32 %186, ptr %4, align 4, !tbaa !11
  br label %169, !llvm.loop !38

187:                                              ; preds = %169
  %188 = getelementptr inbounds %class.CSegyIO, ptr %41, i32 0, i32 6
  %189 = getelementptr inbounds [71 x i32], ptr %188, i64 0, i64 38
  %190 = load i32, ptr %189, align 4, !tbaa !11
  %191 = icmp sgt i32 %190, 65535
  br i1 %191, label %192, label %204

192:                                              ; preds = %187
  call void @llvm.lifetime.start.p0(i64 32, ptr %31) #12
  call void @llvm.lifetime.start.p0(i64 1, ptr %32) #12
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %32) #12
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %31, ptr noundef @.str.4, ptr noundef nonnull align 1 dereferenceable(1) %32)
          to label %193 unwind label %195

193:                                              ; preds = %192
  invoke void @_ZN7CSegyIO15setErrorMessageERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(1546) %41, ptr noundef nonnull align 8 dereferenceable(32) %31)
          to label %194 unwind label %199

194:                                              ; preds = %193
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %31) #12
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %32) #12
  call void @llvm.lifetime.end.p0(i64 1, ptr %32) #12
  call void @llvm.lifetime.end.p0(i64 32, ptr %31) #12
  store i1 false, ptr %2, align 1
  store i32 1, ptr %35, align 4
  br label %298

195:                                              ; preds = %192
  %196 = landingpad { ptr, i32 }
          cleanup
  %197 = extractvalue { ptr, i32 } %196, 0
  store ptr %197, ptr %33, align 8
  %198 = extractvalue { ptr, i32 } %196, 1
  store i32 %198, ptr %34, align 4
  br label %203

199:                                              ; preds = %193
  %200 = landingpad { ptr, i32 }
          cleanup
  %201 = extractvalue { ptr, i32 } %200, 0
  store ptr %201, ptr %33, align 8
  %202 = extractvalue { ptr, i32 } %200, 1
  store i32 %202, ptr %34, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %31) #12
  br label %203

203:                                              ; preds = %199, %195
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %32) #12
  call void @llvm.lifetime.end.p0(i64 1, ptr %32) #12
  call void @llvm.lifetime.end.p0(i64 32, ptr %31) #12
  br label %300

204:                                              ; preds = %187
  %205 = getelementptr inbounds %class.CSegyIO, ptr %41, i32 0, i32 6
  %206 = getelementptr inbounds [71 x i32], ptr %205, i64 0, i64 38
  %207 = load i32, ptr %206, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 32, ptr %36) #12
  call void @llvm.lifetime.start.p0(i64 1, ptr %37) #12
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %37) #12
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %36, ptr noundef @.str.5, ptr noundef nonnull align 1 dereferenceable(1) %37)
          to label %208 unwind label %213

208:                                              ; preds = %204
  %209 = invoke noundef zeroext i1 @_ZN7CSegyIO16isEffectiveValueIiEEbT_RKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(1546) %41, i32 noundef %207, ptr noundef nonnull align 8 dereferenceable(32) %36)
          to label %210 unwind label %217

210:                                              ; preds = %208
  %211 = xor i1 %209, true
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %36) #12
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %37) #12
  call void @llvm.lifetime.end.p0(i64 1, ptr %37) #12
  call void @llvm.lifetime.end.p0(i64 32, ptr %36) #12
  br i1 %211, label %212, label %222

212:                                              ; preds = %210
  store i1 false, ptr %2, align 1
  store i32 1, ptr %35, align 4
  br label %298

213:                                              ; preds = %204
  %214 = landingpad { ptr, i32 }
          cleanup
  %215 = extractvalue { ptr, i32 } %214, 0
  store ptr %215, ptr %33, align 8
  %216 = extractvalue { ptr, i32 } %214, 1
  store i32 %216, ptr %34, align 4
  br label %221

217:                                              ; preds = %208
  %218 = landingpad { ptr, i32 }
          cleanup
  %219 = extractvalue { ptr, i32 } %218, 0
  store ptr %219, ptr %33, align 8
  %220 = extractvalue { ptr, i32 } %218, 1
  store i32 %220, ptr %34, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %36) #12
  br label %221

221:                                              ; preds = %217, %213
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %37) #12
  call void @llvm.lifetime.end.p0(i64 1, ptr %37) #12
  call void @llvm.lifetime.end.p0(i64 32, ptr %36) #12
  br label %300

222:                                              ; preds = %210
  %223 = getelementptr inbounds %class.CSegyIO, ptr %41, i32 0, i32 6
  %224 = getelementptr inbounds [71 x i32], ptr %223, i64 0, i64 38
  %225 = load i32, ptr %224, align 4, !tbaa !11
  %226 = getelementptr inbounds %class.CSegyIO, ptr %41, i32 0, i32 2
  store i32 %225, ptr %226, align 4, !tbaa !39
  %227 = getelementptr inbounds %class.CSegyIO, ptr %41, i32 0, i32 6
  %228 = getelementptr inbounds [71 x i32], ptr %227, i64 0, i64 39
  %229 = load i32, ptr %228, align 4, !tbaa !11
  %230 = sitofp i32 %229 to float
  %231 = getelementptr inbounds %class.CSegyIO, ptr %41, i32 0, i32 4
  store float %230, ptr %231, align 4, !tbaa !40
  %232 = getelementptr inbounds %class.CSegyIO, ptr %41, i32 0, i32 4
  %233 = load float, ptr %232, align 4, !tbaa !40
  %234 = fpext float %233 to double
  %235 = fdiv double %234, 1.000000e+06
  %236 = fptrunc double %235 to float
  store float %236, ptr %232, align 4, !tbaa !40
  %237 = getelementptr inbounds %class.CSegyIO, ptr %41, i32 0, i32 11
  %238 = load i64, ptr %237, align 8, !tbaa !41
  %239 = sub nsw i64 %238, 3600
  %240 = getelementptr inbounds %class.CSegyIO, ptr %41, i32 0, i32 2
  %241 = load i32, ptr %240, align 4, !tbaa !39
  %242 = mul nsw i32 %241, 4
  %243 = add nsw i32 240, %242
  %244 = sext i32 %243 to i64
  %245 = sdiv i64 %239, %244
  %246 = trunc i64 %245 to i32
  %247 = getelementptr inbounds %class.CSegyIO, ptr %41, i32 0, i32 3
  store i32 %246, ptr %247, align 8, !tbaa !42
  %248 = load i32, ptr @_ZZN7CSegyIn19readSEGYTraceHeaderEvE5count, align 4, !tbaa !11
  %249 = icmp eq i32 %248, 0
  br i1 %249, label %250, label %287

250:                                              ; preds = %222
  %251 = getelementptr inbounds %class.CSegyIO, ptr %41, i32 0, i32 3
  %252 = load i32, ptr %251, align 8, !tbaa !42
  %253 = mul nsw i32 %252, 71
  %254 = sext i32 %253 to i64
  %255 = call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %254, i64 4)
  %256 = extractvalue { i64, i1 } %255, 1
  %257 = extractvalue { i64, i1 } %255, 0
  %258 = select i1 %256, i64 -1, i64 %257
  %259 = invoke noalias noundef nonnull ptr @_Znam(i64 noundef %258) #13
          to label %260 unwind label %262

260:                                              ; preds = %250
  %261 = getelementptr inbounds %class.CSegyIO, ptr %41, i32 0, i32 10
  store ptr %259, ptr %261, align 8, !tbaa !43
  br label %286

262:                                              ; preds = %250
  %263 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTISt9bad_alloc
  %264 = extractvalue { ptr, i32 } %263, 0
  store ptr %264, ptr %33, align 8
  %265 = extractvalue { ptr, i32 } %263, 1
  store i32 %265, ptr %34, align 4
  br label %266

266:                                              ; preds = %262
  %267 = load i32, ptr %34, align 4
  %268 = call i32 @llvm.eh.typeid.for.p0(ptr @_ZTISt9bad_alloc) #12
  %269 = icmp eq i32 %267, %268
  br i1 %269, label %270, label %300

270:                                              ; preds = %266
  call void @llvm.lifetime.start.p0(i64 8, ptr %38) #12
  %271 = load ptr, ptr %33, align 8
  %272 = call ptr @__cxa_get_exception_ptr(ptr %271) #12
  call void @_ZNSt9bad_allocC2ERKS_(ptr noundef nonnull align 8 dereferenceable(8) %38, ptr noundef nonnull align 8 dereferenceable(8) %272) #12
  %273 = call ptr @__cxa_begin_catch(ptr %271) #12
  call void @llvm.lifetime.start.p0(i64 32, ptr %39) #12
  call void @llvm.lifetime.start.p0(i64 1, ptr %40) #12
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %40) #12
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %39, ptr noundef @.str.6, ptr noundef nonnull align 1 dereferenceable(1) %40)
          to label %274 unwind label %276

274:                                              ; preds = %270
  invoke void @_ZN7CSegyIO15setErrorMessageERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(1546) %41, ptr noundef nonnull align 8 dereferenceable(32) %39)
          to label %275 unwind label %280

275:                                              ; preds = %274
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %39) #12
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %40) #12
  call void @llvm.lifetime.end.p0(i64 1, ptr %40) #12
  call void @llvm.lifetime.end.p0(i64 32, ptr %39) #12
  store i1 false, ptr %2, align 1
  store i32 1, ptr %35, align 4
  call void @_ZNSt9bad_allocD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %38) #12
  call void @__cxa_end_catch()
  call void @llvm.lifetime.end.p0(i64 8, ptr %38) #12
  br label %298

276:                                              ; preds = %270
  %277 = landingpad { ptr, i32 }
          cleanup
  %278 = extractvalue { ptr, i32 } %277, 0
  store ptr %278, ptr %33, align 8
  %279 = extractvalue { ptr, i32 } %277, 1
  store i32 %279, ptr %34, align 4
  br label %284

280:                                              ; preds = %274
  %281 = landingpad { ptr, i32 }
          cleanup
  %282 = extractvalue { ptr, i32 } %281, 0
  store ptr %282, ptr %33, align 8
  %283 = extractvalue { ptr, i32 } %281, 1
  store i32 %283, ptr %34, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %39) #12
  br label %284

284:                                              ; preds = %280, %276
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %40) #12
  call void @llvm.lifetime.end.p0(i64 1, ptr %40) #12
  call void @llvm.lifetime.end.p0(i64 32, ptr %39) #12
  call void @_ZNSt9bad_allocD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %38) #12
  invoke void @__cxa_end_catch()
          to label %285 unwind label %306

285:                                              ; preds = %284
  call void @llvm.lifetime.end.p0(i64 8, ptr %38) #12
  br label %300

286:                                              ; preds = %260
  br label %287

287:                                              ; preds = %286, %222
  %288 = getelementptr inbounds %class.CSegyIO, ptr %41, i32 0, i32 10
  %289 = load ptr, ptr %288, align 8, !tbaa !43
  %290 = load i32, ptr @_ZZN7CSegyIn19readSEGYTraceHeaderEvE5count, align 4, !tbaa !11
  %291 = mul nsw i32 %290, 71
  %292 = sext i32 %291 to i64
  %293 = getelementptr inbounds i32, ptr %289, i64 %292
  %294 = getelementptr inbounds %class.CSegyIO, ptr %41, i32 0, i32 6
  %295 = getelementptr inbounds [71 x i32], ptr %294, i64 0, i64 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %293, ptr align 4 %295, i64 284, i1 false)
  %296 = load i32, ptr @_ZZN7CSegyIn19readSEGYTraceHeaderEvE5count, align 4, !tbaa !11
  %297 = add nsw i32 %296, 1
  store i32 %297, ptr @_ZZN7CSegyIn19readSEGYTraceHeaderEvE5count, align 4, !tbaa !11
  store i1 true, ptr %2, align 1
  store i32 1, ptr %35, align 4
  br label %298

298:                                              ; preds = %287, %275, %212, %194
  call void @llvm.lifetime.end.p0(i64 2, ptr %9) #12
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #12
  call void @llvm.lifetime.end.p0(i64 2, ptr %7) #12
  call void @llvm.lifetime.end.p0(i64 240, ptr %6) #12
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #12
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #12
  %299 = load i1, ptr %2, align 1
  ret i1 %299

300:                                              ; preds = %285, %266, %221, %203
  call void @llvm.lifetime.end.p0(i64 2, ptr %9) #12
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #12
  call void @llvm.lifetime.end.p0(i64 2, ptr %7) #12
  call void @llvm.lifetime.end.p0(i64 240, ptr %6) #12
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #12
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #12
  br label %301

301:                                              ; preds = %300
  %302 = load ptr, ptr %33, align 8
  %303 = load i32, ptr %34, align 4
  %304 = insertvalue { ptr, i32 } poison, ptr %302, 0
  %305 = insertvalue { ptr, i32 } %304, i32 %303, 1
  resume { ptr, i32 } %305

306:                                              ; preds = %284
  %307 = landingpad { ptr, i32 }
          catch ptr null
  %308 = extractvalue { ptr, i32 } %307, 0
  call void @__clang_call_terminate(ptr %308) #14
  unreachable
}

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare { i64, i1 } @llvm.umul.with.overflow.i64(i64, i64) #4

; Function Attrs: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znam(i64 noundef) #5

; Function Attrs: nounwind memory(none)
declare i32 @llvm.eh.typeid.for.p0(ptr) #6

declare ptr @__cxa_get_exception_ptr(ptr)

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt9bad_allocC2ERKS_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #0 align 2

declare ptr @__cxa_begin_catch(ptr)

; Function Attrs: nounwind
declare void @_ZNSt9bad_allocD1Ev(ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #7

declare void @__cxa_end_catch()

; Function Attrs: noinline noreturn nounwind uwtable
declare hidden void @__clang_call_terminate(ptr noundef) #8

declare noundef nonnull align 8 dereferenceable(16) ptr @_ZNSi4readEPcl(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef, i64 noundef) #9

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7CSegyIn6getBufEPKcRKPcRKiS6_(ptr noundef nonnull align 8 dereferenceable(1546), ptr noundef, ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) #3 align 2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN7CSegyIO16isEffectiveValueIiEEbT_RKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(1546), i32 noundef, ptr noundef nonnull align 8 dereferenceable(32)) #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #0 align 2

attributes #0 = { 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 #1 = { 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 #2 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { 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 #4 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #5 = { nobuiltin allocsize(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 memory(none) }
attributes #7 = { 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 #8 = { noinline noreturn nounwind uwtable "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 #9 = { "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 #10 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #11 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #12 = { nounwind }
attributes #13 = { builtin allocsize(0) }
attributes #14 = { 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, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = !{!16, !12, i64 8}
!16 = !{!"_ZTS7CSegyIO", !12, i64 8, !12, i64 12, !12, i64 16, !17, i64 20, !12, i64 24, !7, i64 28, !7, i64 312, !6, i64 424, !6, i64 432, !10, i64 440, !18, i64 448, !27, i64 968, !29, i64 1480, !29, i64 1512, !24, i64 1544, !24, i64 1545}
!17 = !{!"float", !7, i64 0}
!18 = !{!"_ZTSSt14basic_ifstreamIcSt11char_traitsIcEE", !19, i64 0, !20, i64 16}
!19 = !{!"_ZTSSi", !10, i64 8}
!20 = !{!"_ZTSSt13basic_filebufIcSt11char_traitsIcEE", !21, i64 0, !7, i64 64, !23, i64 104, !25, i64 120, !26, i64 124, !26, i64 132, !26, i64 140, !6, i64 152, !10, i64 160, !24, i64 168, !24, i64 169, !24, i64 170, !7, i64 171, !6, i64 176, !6, i64 184, !24, i64 192, !6, i64 200, !6, i64 208, !10, i64 216, !6, i64 224, !6, i64 232}
!21 = !{!"_ZTSSt15basic_streambufIcSt11char_traitsIcEE", !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !22, i64 56}
!22 = !{!"_ZTSSt6locale", !6, i64 0}
!23 = !{!"_ZTSSt12__basic_fileIcE", !6, i64 0, !24, i64 8}
!24 = !{!"bool", !7, i64 0}
!25 = !{!"_ZTSSt13_Ios_Openmode", !7, i64 0}
!26 = !{!"_ZTS11__mbstate_t", !12, i64 0, !7, i64 4}
!27 = !{!"_ZTSSt14basic_ofstreamIcSt11char_traitsIcEE", !28, i64 0, !20, i64 8}
!28 = !{!"_ZTSSo"}
!29 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !30, i64 0, !10, i64 8, !7, i64 16}
!30 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !6, i64 0}
!31 = !{!32, !32, i64 0}
!32 = !{!"short", !7, i64 0}
!33 = distinct !{!33, !14}
!34 = distinct !{!34, !14}
!35 = distinct !{!35, !14}
!36 = distinct !{!36, !14}
!37 = distinct !{!37, !14}
!38 = distinct !{!38, !14}
!39 = !{!16, !12, i64 12}
!40 = !{!16, !17, i64 20}
!41 = !{!16, !10, i64 440}
!42 = !{!16, !12, i64 16}
!43 = !{!16, !6, i64 432}


; 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::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon.0 }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon.0 = type { i64, [8 x i8] }
%"class.std::allocator" = type { i8 }
%"class.std::bad_alloc" = type { %"class.std::exception" }
%"class.std::exception" = type { ptr }

@_ZTISt9bad_alloc = external constant ptr
@.str.4 = external hidden unnamed_addr constant [61 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [14 x i8], align 1
@_ZZN7CSegyIn19readSEGYTraceHeaderEvE5count = external hidden local_unnamed_addr global i32, align 4
@.str.6 = external hidden unnamed_addr constant [43 x i8], align 1

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN7CSegyIO15setErrorMessageERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(1546), ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #1 align 2

; 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 nounwind uwtable
declare void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef, ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #3 align 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 uwtable
define dso_local noundef zeroext i1 @_ZN7CSegyIn19readSEGYTraceHeaderEv(ptr noundef nonnull align 8 dereferenceable(1546) %0) local_unnamed_addr #3 align 2 personality ptr @__gxx_personality_v0 {
.lr.ph94.preheader:
  %1 = alloca [240 x i8], align 16
  %2 = alloca [2 x i8], align 2
  %3 = alloca [4 x i8], align 4
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca ptr, align 8
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca ptr, align 8
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca ptr, align 8
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca ptr, align 8
  %20 = alloca i32, align 4
  %21 = alloca i32, align 4
  %22 = alloca ptr, align 8
  %23 = alloca i32, align 4
  %24 = alloca i32, align 4
  %25 = alloca %"class.std::__cxx11::basic_string", align 8
  %26 = alloca %"class.std::allocator", align 1
  %27 = alloca %"class.std::__cxx11::basic_string", align 8
  %28 = alloca %"class.std::allocator", align 1
  %29 = alloca %"class.std::bad_alloc", align 8
  %30 = alloca %"class.std::__cxx11::basic_string", align 8
  %31 = alloca %"class.std::allocator", align 1
  call void @llvm.lifetime.start.p0(i64 240, ptr nonnull %1) #11
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(240) %1, i8 0, i64 240, i1 false)
  %32 = getelementptr inbounds i8, ptr %0, i64 448
  %33 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSi4readEPcl(ptr noundef nonnull align 8 dereferenceable(16) %32, ptr noundef nonnull %1, i64 noundef 240)
  call void @llvm.lifetime.start.p0(i64 2, ptr nonnull %2) #11
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #11
  %34 = getelementptr inbounds i8, ptr %0, i64 28
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #11
  store ptr %3, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #11
  store i32 0, ptr %5, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #11
  store i32 4, ptr %6, align 4, !tbaa !9
  call void @_ZN7CSegyIn6getBufEPKcRKPcRKiS6_(ptr noundef nonnull align 8 dereferenceable(1546) %0, ptr noundef nonnull %1, ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 4 dereferenceable(4) %5, ptr noundef nonnull align 4 dereferenceable(4) %6)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #11
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #11
  %35 = load i32, ptr %3, align 4
  store i32 %35, ptr %34, align 4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #11
  store ptr %3, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #11
  store i32 4, ptr %5, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #11
  store i32 4, ptr %6, align 4, !tbaa !9
  call void @_ZN7CSegyIn6getBufEPKcRKPcRKiS6_(ptr noundef nonnull align 8 dereferenceable(1546) %0, ptr noundef nonnull %1, ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 4 dereferenceable(4) %5, ptr noundef nonnull align 4 dereferenceable(4) %6)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #11
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #11
  %36 = getelementptr inbounds i8, ptr %0, i64 32
  %37 = load i32, ptr %3, align 4
  store i32 %37, ptr %36, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #11
  store ptr %3, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #11
  store i32 8, ptr %5, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #11
  store i32 4, ptr %6, align 4, !tbaa !9
  call void @_ZN7CSegyIn6getBufEPKcRKPcRKiS6_(ptr noundef nonnull align 8 dereferenceable(1546) %0, ptr noundef nonnull %1, ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 4 dereferenceable(4) %5, ptr noundef nonnull align 4 dereferenceable(4) %6)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #11
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #11
  %38 = getelementptr inbounds i8, ptr %0, i64 36
  %39 = load i32, ptr %3, align 4
  store i32 %39, ptr %38, align 4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #11
  store ptr %3, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #11
  store i32 12, ptr %5, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #11
  store i32 4, ptr %6, align 4, !tbaa !9
  call void @_ZN7CSegyIn6getBufEPKcRKPcRKiS6_(ptr noundef nonnull align 8 dereferenceable(1546) %0, ptr noundef nonnull %1, ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 4 dereferenceable(4) %5, ptr noundef nonnull align 4 dereferenceable(4) %6)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #11
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #11
  %40 = getelementptr inbounds i8, ptr %0, i64 40
  %41 = load i32, ptr %3, align 4
  store i32 %41, ptr %40, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #11
  store ptr %3, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #11
  store i32 16, ptr %5, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #11
  store i32 4, ptr %6, align 4, !tbaa !9
  call void @_ZN7CSegyIn6getBufEPKcRKPcRKiS6_(ptr noundef nonnull align 8 dereferenceable(1546) %0, ptr noundef nonnull %1, ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 4 dereferenceable(4) %5, ptr noundef nonnull align 4 dereferenceable(4) %6)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #11
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #11
  %42 = getelementptr inbounds i8, ptr %0, i64 44
  %43 = load i32, ptr %3, align 4
  store i32 %43, ptr %42, align 4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #11
  store ptr %3, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #11
  store i32 20, ptr %5, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #11
  store i32 4, ptr %6, align 4, !tbaa !9
  call void @_ZN7CSegyIn6getBufEPKcRKPcRKiS6_(ptr noundef nonnull align 8 dereferenceable(1546) %0, ptr noundef nonnull %1, ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 4 dereferenceable(4) %5, ptr noundef nonnull align 4 dereferenceable(4) %6)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #11
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #11
  %44 = getelementptr inbounds i8, ptr %0, i64 48
  %45 = load i32, ptr %3, align 4
  store i32 %45, ptr %44, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #11
  store ptr %3, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #11
  store i32 24, ptr %5, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #11
  store i32 4, ptr %6, align 4, !tbaa !9
  call void @_ZN7CSegyIn6getBufEPKcRKPcRKiS6_(ptr noundef nonnull align 8 dereferenceable(1546) %0, ptr noundef nonnull %1, ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 4 dereferenceable(4) %5, ptr noundef nonnull align 4 dereferenceable(4) %6)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #11
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #11
  %46 = getelementptr inbounds i8, ptr %0, i64 52
  %47 = load i32, ptr %3, align 4
  store i32 %47, ptr %46, align 4
  %48 = getelementptr inbounds i8, ptr %0, i64 36
  %49 = load i32, ptr %48, align 4, !tbaa !9
  %50 = getelementptr inbounds i8, ptr %0, i64 8
  store i32 %49, ptr %50, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #11
  store ptr %2, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %8) #11
  store i32 28, ptr %8, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %9) #11
  store i32 2, ptr %9, align 4, !tbaa !9
  call void @_ZN7CSegyIn6getBufEPKcRKPcRKiS6_(ptr noundef nonnull align 8 dereferenceable(1546) %0, ptr noundef nonnull %1, ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull align 4 dereferenceable(4) %8, ptr noundef nonnull align 4 dereferenceable(4) %9)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %9) #11
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #11
  %.0.copyload = load i16, ptr %2, align 2
  %51 = zext i16 %.0.copyload to i32
  %52 = getelementptr inbounds i8, ptr %0, i64 56
  store i32 %51, ptr %52, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #11
  store ptr %2, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %8) #11
  store i32 30, ptr %8, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %9) #11
  store i32 2, ptr %9, align 4, !tbaa !9
  call void @_ZN7CSegyIn6getBufEPKcRKPcRKiS6_(ptr noundef nonnull align 8 dereferenceable(1546) %0, ptr noundef nonnull %1, ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull align 4 dereferenceable(4) %8, ptr noundef nonnull align 4 dereferenceable(4) %9)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %9) #11
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #11
  %.0.copyload.1 = load i16, ptr %2, align 2
  %53 = zext i16 %.0.copyload.1 to i32
  %54 = getelementptr inbounds i8, ptr %0, i64 60
  store i32 %53, ptr %54, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #11
  store ptr %2, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %8) #11
  store i32 32, ptr %8, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %9) #11
  store i32 2, ptr %9, align 4, !tbaa !9
  call void @_ZN7CSegyIn6getBufEPKcRKPcRKiS6_(ptr noundef nonnull align 8 dereferenceable(1546) %0, ptr noundef nonnull %1, ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull align 4 dereferenceable(4) %8, ptr noundef nonnull align 4 dereferenceable(4) %9)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %9) #11
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #11
  %.0.copyload.2 = load i16, ptr %2, align 2
  %55 = zext i16 %.0.copyload.2 to i32
  %56 = getelementptr inbounds i8, ptr %0, i64 64
  store i32 %55, ptr %56, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #11
  store ptr %2, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %8) #11
  store i32 34, ptr %8, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %9) #11
  store i32 2, ptr %9, align 4, !tbaa !9
  call void @_ZN7CSegyIn6getBufEPKcRKPcRKiS6_(ptr noundef nonnull align 8 dereferenceable(1546) %0, ptr noundef nonnull %1, ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull align 4 dereferenceable(4) %8, ptr noundef nonnull align 4 dereferenceable(4) %9)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %9) #11
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #11
  %.0.copyload.3 = load i16, ptr %2, align 2
  %57 = zext i16 %.0.copyload.3 to i32
  %58 = getelementptr inbounds i8, ptr %0, i64 68
  store i32 %57, ptr %58, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #11
  store ptr %3, ptr %10, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %11) #11
  store i32 36, ptr %11, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %12) #11
  store i32 4, ptr %12, align 4, !tbaa !9
  call void @_ZN7CSegyIn6getBufEPKcRKPcRKiS6_(ptr noundef nonnull align 8 dereferenceable(1546) %0, ptr noundef nonnull %1, ptr noundef nonnull align 8 dereferenceable(8) %10, ptr noundef nonnull align 4 dereferenceable(4) %11, ptr noundef nonnull align 4 dereferenceable(4) %12)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %12) #11
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %11) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #11
  %59 = getelementptr inbounds i8, ptr %0, i64 72
  %60 = load i32, ptr %3, align 4
  store i32 %60, ptr %59, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #11
  store ptr %3, ptr %10, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %11) #11
  store i32 40, ptr %11, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %12) #11
  store i32 4, ptr %12, align 4, !tbaa !9
  call void @_ZN7CSegyIn6getBufEPKcRKPcRKiS6_(ptr noundef nonnull align 8 dereferenceable(1546) %0, ptr noundef nonnull %1, ptr noundef nonnull align 8 dereferenceable(8) %10, ptr noundef nonnull align 4 dereferenceable(4) %11, ptr noundef nonnull align 4 dereferenceable(4) %12)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %12) #11
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %11) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #11
  %61 = getelementptr inbounds i8, ptr %0, i64 76
  %62 = load i32, ptr %3, align 4
  store i32 %62, ptr %61, align 4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #11
  store ptr %3, ptr %10, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %11) #11
  store i32 44, ptr %11, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %12) #11
  store i32 4, ptr %12, align 4, !tbaa !9
  call void @_ZN7CSegyIn6getBufEPKcRKPcRKiS6_(ptr noundef nonnull align 8 dereferenceable(1546) %0, ptr noundef nonnull %1, ptr noundef nonnull align 8 dereferenceable(8) %10, ptr noundef nonnull align 4 dereferenceable(4) %11, ptr noundef nonnull align 4 dereferenceable(4) %12)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %12) #11
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %11) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #11
  %63 = getelementptr inbounds i8, ptr %0, i64 80
  %64 = load i32, ptr %3, align 4
  store i32 %64, ptr %63, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #11
  store ptr %3, ptr %10, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %11) #11
  store i32 48, ptr %11, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %12) #11
  store i32 4, ptr %12, align 4, !tbaa !9
  call void @_ZN7CSegyIn6getBufEPKcRKPcRKiS6_(ptr noundef nonnull align 8 dereferenceable(1546) %0, ptr noundef nonnull %1, ptr noundef nonnull align 8 dereferenceable(8) %10, ptr noundef nonnull align 4 dereferenceable(4) %11, ptr noundef nonnull align 4 dereferenceable(4) %12)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %12) #11
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %11) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #11
  %65 = getelementptr inbounds i8, ptr %0, i64 84
  %66 = load i32, ptr %3, align 4
  store i32 %66, ptr %65, align 4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #11
  store ptr %3, ptr %10, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %11) #11
  store i32 52, ptr %11, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %12) #11
  store i32 4, ptr %12, align 4, !tbaa !9
  call void @_ZN7CSegyIn6getBufEPKcRKPcRKiS6_(ptr noundef nonnull align 8 dereferenceable(1546) %0, ptr noundef nonnull %1, ptr noundef nonnull align 8 dereferenceable(8) %10, ptr noundef nonnull align 4 dereferenceable(4) %11, ptr noundef nonnull align 4 dereferenceable(4) %12)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %12) #11
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %11) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #11
  %67 = getelementptr inbounds i8, ptr %0, i64 88
  %68 = load i32, ptr %3, align 4
  store i32 %68, ptr %67, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #11
  store ptr %3, ptr %10, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %11) #11
  store i32 56, ptr %11, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %12) #11
  store i32 4, ptr %12, align 4, !tbaa !9
  call void @_ZN7CSegyIn6getBufEPKcRKPcRKiS6_(ptr noundef nonnull align 8 dereferenceable(1546) %0, ptr noundef nonnull %1, ptr noundef nonnull align 8 dereferenceable(8) %10, ptr noundef nonnull align 4 dereferenceable(4) %11, ptr noundef nonnull align 4 dereferenceable(4) %12)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %12) #11
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %11) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #11
  %69 = getelementptr inbounds i8, ptr %0, i64 92
  %70 = load i32, ptr %3, align 4
  store i32 %70, ptr %69, align 4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #11
  store ptr %3, ptr %10, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %11) #11
  store i32 60, ptr %11, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %12) #11
  store i32 4, ptr %12, align 4, !tbaa !9
  call void @_ZN7CSegyIn6getBufEPKcRKPcRKiS6_(ptr noundef nonnull align 8 dereferenceable(1546) %0, ptr noundef nonnull %1, ptr noundef nonnull align 8 dereferenceable(8) %10, ptr noundef nonnull align 4 dereferenceable(4) %11, ptr noundef nonnull align 4 dereferenceable(4) %12)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %12) #11
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %11) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #11
  %71 = getelementptr inbounds i8, ptr %0, i64 96
  %72 = load i32, ptr %3, align 4
  store i32 %72, ptr %71, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #11
  store ptr %3, ptr %10, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %11) #11
  store i32 64, ptr %11, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %12) #11
  store i32 4, ptr %12, align 4, !tbaa !9
  call void @_ZN7CSegyIn6getBufEPKcRKPcRKiS6_(ptr noundef nonnull align 8 dereferenceable(1546) %0, ptr noundef nonnull %1, ptr noundef nonnull align 8 dereferenceable(8) %10, ptr noundef nonnull align 4 dereferenceable(4) %11, ptr noundef nonnull align 4 dereferenceable(4) %12)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %12) #11
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %11) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #11
  %73 = getelementptr inbounds i8, ptr %0, i64 100
  %74 = load i32, ptr %3, align 4
  store i32 %74, ptr %73, align 4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %13) #11
  store ptr %2, ptr %13, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %14) #11
  store i32 68, ptr %14, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %15) #11
  store i32 2, ptr %15, align 4, !tbaa !9
  call void @_ZN7CSegyIn6getBufEPKcRKPcRKiS6_(ptr noundef nonnull align 8 dereferenceable(1546) %0, ptr noundef nonnull %1, ptr noundef nonnull align 8 dereferenceable(8) %13, ptr noundef nonnull align 4 dereferenceable(4) %14, ptr noundef nonnull align 4 dereferenceable(4) %15)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %15) #11
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %14) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #11
  %.0.copyload4 = load i16, ptr %2, align 2
  %75 = zext i16 %.0.copyload4 to i32
  %76 = getelementptr inbounds i8, ptr %0, i64 104
  store i32 %75, ptr %76, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %13) #11
  store ptr %2, ptr %13, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %14) #11
  store i32 70, ptr %14, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %15) #11
  store i32 2, ptr %15, align 4, !tbaa !9
  call void @_ZN7CSegyIn6getBufEPKcRKPcRKiS6_(ptr noundef nonnull align 8 dereferenceable(1546) %0, ptr noundef nonnull %1, ptr noundef nonnull align 8 dereferenceable(8) %13, ptr noundef nonnull align 4 dereferenceable(4) %14, ptr noundef nonnull align 4 dereferenceable(4) %15)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %15) #11
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %14) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #11
  %.0.copyload4.1 = load i16, ptr %2, align 2
  %77 = zext i16 %.0.copyload4.1 to i32
  %78 = getelementptr inbounds i8, ptr %0, i64 108
  store i32 %77, ptr %78, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %16) #11
  store ptr %3, ptr %16, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %17) #11
  store i32 72, ptr %17, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %18) #11
  store i32 4, ptr %18, align 4, !tbaa !9
  call void @_ZN7CSegyIn6getBufEPKcRKPcRKiS6_(ptr noundef nonnull align 8 dereferenceable(1546) %0, ptr noundef nonnull %1, ptr noundef nonnull align 8 dereferenceable(8) %16, ptr noundef nonnull align 4 dereferenceable(4) %17, ptr noundef nonnull align 4 dereferenceable(4) %18)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %18) #11
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %17) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %16) #11
  %79 = getelementptr inbounds i8, ptr %0, i64 112
  %80 = load i32, ptr %3, align 4
  store i32 %80, ptr %79, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %16) #11
  store ptr %3, ptr %16, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %17) #11
  store i32 76, ptr %17, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %18) #11
  store i32 4, ptr %18, align 4, !tbaa !9
  call void @_ZN7CSegyIn6getBufEPKcRKPcRKiS6_(ptr noundef nonnull align 8 dereferenceable(1546) %0, ptr noundef nonnull %1, ptr noundef nonnull align 8 dereferenceable(8) %16, ptr noundef nonnull align 4 dereferenceable(4) %17, ptr noundef nonnull align 4 dereferenceable(4) %18)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %18) #11
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %17) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %16) #11
  %81 = getelementptr inbounds i8, ptr %0, i64 116
  %82 = load i32, ptr %3, align 4
  store i32 %82, ptr %81, align 4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %16) #11
  store ptr %3, ptr %16, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %17) #11
  store i32 80, ptr %17, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %18) #11
  store i32 4, ptr %18, align 4, !tbaa !9
  call void @_ZN7CSegyIn6getBufEPKcRKPcRKiS6_(ptr noundef nonnull align 8 dereferenceable(1546) %0, ptr noundef nonnull %1, ptr noundef nonnull align 8 dereferenceable(8) %16, ptr noundef nonnull align 4 dereferenceable(4) %17, ptr noundef nonnull align 4 dereferenceable(4) %18)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %18) #11
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %17) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %16) #11
  %83 = getelementptr inbounds i8, ptr %0, i64 120
  %84 = load i32, ptr %3, align 4
  store i32 %84, ptr %83, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %16) #11
  store ptr %3, ptr %16, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %17) #11
  store i32 84, ptr %17, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %18) #11
  store i32 4, ptr %18, align 4, !tbaa !9
  call void @_ZN7CSegyIn6getBufEPKcRKPcRKiS6_(ptr noundef nonnull align 8 dereferenceable(1546) %0, ptr noundef nonnull %1, ptr noundef nonnull align 8 dereferenceable(8) %16, ptr noundef nonnull align 4 dereferenceable(4) %17, ptr noundef nonnull align 4 dereferenceable(4) %18)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %18) #11
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %17) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %16) #11
  %85 = getelementptr inbounds i8, ptr %0, i64 124
  %86 = load i32, ptr %3, align 4
  store i32 %86, ptr %85, align 4
  br label %.lr.ph94

.lr.ph94:                                         ; preds = %.lr.ph94.preheader, %.lr.ph94
  %indvars.iv = phi i64 [ 25, %.lr.ph94.preheader ], [ %indvars.iv.next, %.lr.ph94 ]
  %.593 = phi i64 [ 88, %.lr.ph94.preheader ], [ %90, %.lr.ph94 ]
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %19) #11
  store ptr %2, ptr %19, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %20) #11
  %87 = trunc i64 %.593 to i32
  store i32 %87, ptr %20, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %21) #11
  store i32 2, ptr %21, align 4, !tbaa !9
  call void @_ZN7CSegyIn6getBufEPKcRKPcRKiS6_(ptr noundef nonnull align 8 dereferenceable(1546) %0, ptr noundef nonnull %1, ptr noundef nonnull align 8 dereferenceable(8) %19, ptr noundef nonnull align 4 dereferenceable(4) %20, ptr noundef nonnull align 4 dereferenceable(4) %21)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %21) #11
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %20) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %19) #11
  %.0.copyload6 = load i16, ptr %2, align 2
  %88 = zext i16 %.0.copyload6 to i32
  %89 = getelementptr inbounds [71 x i32], ptr %34, i64 0, i64 %indvars.iv
  store i32 %88, ptr %89, align 4, !tbaa !9
  %90 = add nuw nsw i64 %.593, 2
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, 67
  br i1 %exitcond.not, label %._crit_edge, label %.lr.ph94, !llvm.loop !28

._crit_edge:                                      ; preds = %.lr.ph94
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %22) #11
  store ptr %3, ptr %22, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %23) #11
  %91 = trunc i64 %90 to i32
  store i32 %91, ptr %23, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %24) #11
  store i32 4, ptr %24, align 4, !tbaa !9
  call void @_ZN7CSegyIn6getBufEPKcRKPcRKiS6_(ptr noundef nonnull align 8 dereferenceable(1546) %0, ptr noundef nonnull %1, ptr noundef nonnull align 8 dereferenceable(8) %22, ptr noundef nonnull align 4 dereferenceable(4) %23, ptr noundef nonnull align 4 dereferenceable(4) %24)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %24) #11
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %23) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %22) #11
  %92 = getelementptr inbounds i8, ptr %0, i64 296
  %93 = load i32, ptr %3, align 4
  store i32 %93, ptr %92, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %22) #11
  store ptr %3, ptr %22, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %23) #11
  %94 = trunc i64 %.593 to i32
  %95 = add i32 %94, 6
  store i32 %95, ptr %23, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %24) #11
  store i32 4, ptr %24, align 4, !tbaa !9
  call void @_ZN7CSegyIn6getBufEPKcRKPcRKiS6_(ptr noundef nonnull align 8 dereferenceable(1546) %0, ptr noundef nonnull %1, ptr noundef nonnull align 8 dereferenceable(8) %22, ptr noundef nonnull align 4 dereferenceable(4) %23, ptr noundef nonnull align 4 dereferenceable(4) %24)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %24) #11
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %23) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %22) #11
  %96 = getelementptr inbounds i8, ptr %0, i64 300
  %97 = load i32, ptr %3, align 4
  store i32 %97, ptr %96, align 4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %22) #11
  store ptr %3, ptr %22, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %23) #11
  %98 = trunc i64 %.593 to i32
  %99 = add i32 %98, 10
  store i32 %99, ptr %23, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %24) #11
  store i32 4, ptr %24, align 4, !tbaa !9
  call void @_ZN7CSegyIn6getBufEPKcRKPcRKiS6_(ptr noundef nonnull align 8 dereferenceable(1546) %0, ptr noundef nonnull %1, ptr noundef nonnull align 8 dereferenceable(8) %22, ptr noundef nonnull align 4 dereferenceable(4) %23, ptr noundef nonnull align 4 dereferenceable(4) %24)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %24) #11
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %23) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %22) #11
  %100 = getelementptr inbounds i8, ptr %0, i64 304
  %101 = load i32, ptr %3, align 4
  store i32 %101, ptr %100, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %22) #11
  store ptr %3, ptr %22, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %23) #11
  %102 = trunc i64 %.593 to i32
  %103 = add i32 %102, 14
  store i32 %103, ptr %23, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %24) #11
  store i32 4, ptr %24, align 4, !tbaa !9
  call void @_ZN7CSegyIn6getBufEPKcRKPcRKiS6_(ptr noundef nonnull align 8 dereferenceable(1546) %0, ptr noundef nonnull %1, ptr noundef nonnull align 8 dereferenceable(8) %22, ptr noundef nonnull align 4 dereferenceable(4) %23, ptr noundef nonnull align 4 dereferenceable(4) %24)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %24) #11
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %23) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %22) #11
  %104 = getelementptr inbounds i8, ptr %0, i64 308
  %105 = load i32, ptr %3, align 4
  store i32 %105, ptr %104, align 4
  %106 = getelementptr inbounds i8, ptr %0, i64 180
  %107 = load i32, ptr %106, align 4, !tbaa !9
  %108 = icmp sgt i32 %107, 65535
  br i1 %108, label %109, label %117

109:                                              ; preds = %._crit_edge
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %25) #11
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %26) #11
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %26) #11
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %25, ptr noundef nonnull @.str.4, ptr noundef nonnull align 1 dereferenceable(1) %26)
          to label %110 unwind label %112

110:                                              ; preds = %109
  invoke void @_ZN7CSegyIO15setErrorMessageERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(1546) %0, ptr noundef nonnull align 8 dereferenceable(32) %25)
          to label %111 unwind label %114

111:                                              ; preds = %110
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %25) #11
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %26) #11
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %26) #11
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %25) #11
  br label %175

112:                                              ; preds = %109
  %113 = landingpad { ptr, i32 }
          cleanup
  br label %116

114:                                              ; preds = %110
  %115 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %25) #11
  br label %116

116:                                              ; preds = %114, %112
  %.pn66 = phi { ptr, i32 } [ %115, %114 ], [ %113, %112 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %26) #11
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %26) #11
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %25) #11
  br label %176

117:                                              ; preds = %._crit_edge
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %27) #11
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %28) #11
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %28) #11
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %27, ptr noundef nonnull @.str.5, ptr noundef nonnull align 1 dereferenceable(1) %28)
          to label %118 unwind label %121

118:                                              ; preds = %117
  %119 = invoke noundef zeroext i1 @_ZN7CSegyIO16isEffectiveValueIiEEbT_RKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(1546) %0, i32 noundef %107, ptr noundef nonnull align 8 dereferenceable(32) %27)
          to label %120 unwind label %123

120:                                              ; preds = %118
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %27) #11
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %28) #11
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %28) #11
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %27) #11
  br i1 %119, label %126, label %175

121:                                              ; preds = %117
  %122 = landingpad { ptr, i32 }
          cleanup
  br label %125

123:                                              ; preds = %118
  %124 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %27) #11
  br label %125

125:                                              ; preds = %123, %121
  %.pn = phi { ptr, i32 } [ %124, %123 ], [ %122, %121 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %28) #11
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %28) #11
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %27) #11
  br label %176

126:                                              ; preds = %120
  %127 = load i32, ptr %106, align 4, !tbaa !9
  %128 = getelementptr inbounds i8, ptr %0, i64 12
  store i32 %127, ptr %128, align 4, !tbaa !30
  %129 = getelementptr inbounds i8, ptr %0, i64 184
  %130 = load i32, ptr %129, align 8, !tbaa !9
  %131 = sitofp i32 %130 to float
  %132 = getelementptr inbounds i8, ptr %0, i64 20
  %133 = fdiv float %131, 1.000000e+06
  store float %133, ptr %132, align 4, !tbaa !31
  %134 = getelementptr inbounds i8, ptr %0, i64 440
  %135 = load i64, ptr %134, align 8, !tbaa !32
  %136 = add nsw i64 %135, -3600
  %137 = shl nsw i32 %127, 2
  %138 = add nsw i32 %137, 240
  %139 = sext i32 %138 to i64
  %140 = sdiv i64 %136, %139
  %141 = trunc i64 %140 to i32
  %142 = getelementptr inbounds i8, ptr %0, i64 16
  store i32 %141, ptr %142, align 8, !tbaa !33
  %143 = load i32, ptr @_ZZN7CSegyIn19readSEGYTraceHeaderEvE5count, align 4, !tbaa !9
  %144 = icmp eq i32 %143, 0
  br i1 %144, label %145, label %._crit_edge121

._crit_edge121:                                   ; preds = %126
  %.phi.trans.insert = getelementptr inbounds i8, ptr %0, i64 432
  %.pre = load ptr, ptr %.phi.trans.insert, align 8, !tbaa !34
  br label %168

145:                                              ; preds = %126
  %sext = mul i64 %140, 304942678016
  %146 = ashr exact i64 %sext, 30
  %.inv = icmp sgt i64 %sext, -1
  %147 = select i1 %.inv, i64 %146, i64 -1
  %148 = invoke noalias noundef nonnull ptr @_Znam(i64 noundef %147) #12
          to label %149 unwind label %151

149:                                              ; preds = %145
  %150 = getelementptr inbounds i8, ptr %0, i64 432
  store ptr %148, ptr %150, align 8, !tbaa !34
  br label %168

151:                                              ; preds = %145
  %152 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTISt9bad_alloc
  %153 = extractvalue { ptr, i32 } %152, 1
  %154 = call i32 @llvm.eh.typeid.for.p0(ptr nonnull @_ZTISt9bad_alloc) #11
  %155 = icmp eq i32 %153, %154
  br i1 %155, label %156, label %176

156:                                              ; preds = %151
  %157 = extractvalue { ptr, i32 } %152, 0
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %29) #11
  %158 = call ptr @__cxa_get_exception_ptr(ptr %157) #11
  call void @_ZNSt9bad_allocC2ERKS_(ptr noundef nonnull align 8 dereferenceable(8) %29, ptr noundef nonnull align 8 dereferenceable(8) %158) #11
  %159 = call ptr @__cxa_begin_catch(ptr %157) #11
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %30) #11
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %31) #11
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %31) #11
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %30, ptr noundef nonnull @.str.6, ptr noundef nonnull align 1 dereferenceable(1) %31)
          to label %160 unwind label %162

160:                                              ; preds = %156
  invoke void @_ZN7CSegyIO15setErrorMessageERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(1546) %0, ptr noundef nonnull align 8 dereferenceable(32) %30)
          to label %161 unwind label %164

161:                                              ; preds = %160
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %30) #11
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %31) #11
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %31) #11
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %30) #11
  call void @_ZNSt9bad_allocD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %29) #11
  call void @__cxa_end_catch()
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %29) #11
  br label %175

162:                                              ; preds = %156
  %163 = landingpad { ptr, i32 }
          cleanup
  br label %166

164:                                              ; preds = %160
  %165 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %30) #11
  br label %166

166:                                              ; preds = %164, %162
  %.pn64 = phi { ptr, i32 } [ %165, %164 ], [ %163, %162 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %31) #11
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %31) #11
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %30) #11
  call void @_ZNSt9bad_allocD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %29) #11
  invoke void @__cxa_end_catch()
          to label %167 unwind label %177

167:                                              ; preds = %166
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %29) #11
  br label %176

168:                                              ; preds = %._crit_edge121, %149
  %169 = phi ptr [ %.pre, %._crit_edge121 ], [ %148, %149 ]
  %170 = mul nsw i32 %143, 71
  %171 = sext i32 %170 to i64
  %172 = getelementptr inbounds i32, ptr %169, i64 %171
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(284) %172, ptr noundef nonnull align 4 dereferenceable(284) %34, i64 284, i1 false)
  %173 = load i32, ptr @_ZZN7CSegyIn19readSEGYTraceHeaderEvE5count, align 4, !tbaa !9
  %174 = add nsw i32 %173, 1
  store i32 %174, ptr @_ZZN7CSegyIn19readSEGYTraceHeaderEvE5count, align 4, !tbaa !9
  br label %175

175:                                              ; preds = %120, %168, %161, %111
  %.060 = phi i1 [ false, %111 ], [ true, %168 ], [ false, %161 ], [ false, %120 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #11
  call void @llvm.lifetime.end.p0(i64 2, ptr nonnull %2) #11
  call void @llvm.lifetime.end.p0(i64 240, ptr nonnull %1) #11
  ret i1 %.060

176:                                              ; preds = %167, %151, %125, %116
  %.merged = phi { ptr, i32 } [ %.pn66, %116 ], [ %.pn64, %167 ], [ %152, %151 ], [ %.pn, %125 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #11
  call void @llvm.lifetime.end.p0(i64 2, ptr nonnull %2) #11
  call void @llvm.lifetime.end.p0(i64 240, ptr nonnull %1) #11
  resume { ptr, i32 } %.merged

177:                                              ; preds = %166
  %178 = landingpad { ptr, i32 }
          catch ptr null
  %179 = extractvalue { ptr, i32 } %178, 0
  call void @__clang_call_terminate(ptr %179) #13
  unreachable
}

; Function Attrs: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znam(i64 noundef) local_unnamed_addr #4

; Function Attrs: nofree nosync nounwind memory(none)
declare i32 @llvm.eh.typeid.for.p0(ptr) #5

declare ptr @__cxa_get_exception_ptr(ptr) local_unnamed_addr

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt9bad_allocC2ERKS_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #0 align 2

declare ptr @__cxa_begin_catch(ptr) local_unnamed_addr

; Function Attrs: nounwind
declare void @_ZNSt9bad_allocD1Ev(ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #6

declare void @__cxa_end_catch() local_unnamed_addr

; Function Attrs: noinline noreturn nounwind uwtable
declare hidden void @__clang_call_terminate(ptr noundef) local_unnamed_addr #7

declare noundef nonnull align 8 dereferenceable(16) ptr @_ZNSi4readEPcl(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef, i64 noundef) local_unnamed_addr #8

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7CSegyIn6getBufEPKcRKPcRKiS6_(ptr noundef nonnull align 8 dereferenceable(1546), ptr noundef, ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #3 align 2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN7CSegyIO16isEffectiveValueIiEEbT_RKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(1546), i32 noundef, ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #0 align 2

attributes #0 = { 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 #1 = { 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 #2 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { 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 #4 = { nobuiltin allocsize(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 = { nofree nosync nounwind memory(none) }
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 = { noinline noreturn nounwind uwtable "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 #8 = { "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 #9 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #10 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #11 = { nounwind }
attributes #12 = { builtin allocsize(0) }
attributes #13 = { 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 = !{!"int", !7, i64 0}
!11 = !{!12, !10, i64 8}
!12 = !{!"_ZTS7CSegyIO", !10, i64 8, !10, i64 12, !10, i64 16, !13, i64 20, !10, i64 24, !7, i64 28, !7, i64 312, !6, i64 424, !6, i64 432, !14, i64 440, !15, i64 448, !24, i64 968, !26, i64 1480, !26, i64 1512, !21, i64 1544, !21, i64 1545}
!13 = !{!"float", !7, i64 0}
!14 = !{!"long", !7, i64 0}
!15 = !{!"_ZTSSt14basic_ifstreamIcSt11char_traitsIcEE", !16, i64 0, !17, i64 16}
!16 = !{!"_ZTSSi", !14, i64 8}
!17 = !{!"_ZTSSt13basic_filebufIcSt11char_traitsIcEE", !18, i64 0, !7, i64 64, !20, i64 104, !22, i64 120, !23, i64 124, !23, i64 132, !23, i64 140, !6, i64 152, !14, i64 160, !21, i64 168, !21, i64 169, !21, i64 170, !7, i64 171, !6, i64 176, !6, i64 184, !21, i64 192, !6, i64 200, !6, i64 208, !14, i64 216, !6, i64 224, !6, i64 232}
!18 = !{!"_ZTSSt15basic_streambufIcSt11char_traitsIcEE", !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !19, i64 56}
!19 = !{!"_ZTSSt6locale", !6, i64 0}
!20 = !{!"_ZTSSt12__basic_fileIcE", !6, i64 0, !21, i64 8}
!21 = !{!"bool", !7, i64 0}
!22 = !{!"_ZTSSt13_Ios_Openmode", !7, i64 0}
!23 = !{!"_ZTS11__mbstate_t", !10, i64 0, !7, i64 4}
!24 = !{!"_ZTSSt14basic_ofstreamIcSt11char_traitsIcEE", !25, i64 0, !17, i64 8}
!25 = !{!"_ZTSSo"}
!26 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !27, i64 0, !14, i64 8, !7, i64 16}
!27 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !6, i64 0}
!28 = distinct !{!28, !29}
!29 = !{!"llvm.loop.mustprogress"}
!30 = !{!12, !10, i64 12}
!31 = !{!12, !13, i64 20}
!32 = !{!12, !14, i64 440}
!33 = !{!12, !10, i64 16}
!34 = !{!12, !6, i64 432}


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