; LLVM IR from HRI-EU/Rcs :: src/RcsCore (Rcs_stackTrace)

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

@.str = external hidden unnamed_addr constant [8 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [2 x i8], align 1
@stderr = external global ptr, align 8
@.str.4 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [40 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [5 x i8], align 1

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z16symbolToFunctionRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr dead_on_unwind noalias writable sret(%"class.std::__cxx11::basic_string") align 8, ptr noundef nonnull align 8 dereferenceable(32)) #0

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #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 #2 align 2

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

; Function Attrs: mustprogress uwtable
define dso_local i32 @print_trace_entry(ptr noundef %0, i64 noundef %1) #0 personality ptr @__gxx_personality_v0 {
  %3 = alloca i32, align 4
  %4 = alloca ptr, align 8
  %5 = alloca i64, align 8
  %6 = alloca %struct.Dl_info, align 8
  %7 = alloca [1024 x i8], align 16
  %8 = alloca [1024 x i8], align 16
  %9 = alloca %struct.stat, align 8
  %10 = alloca [1024 x i8], align 16
  %11 = alloca ptr, align 8
  %12 = alloca [32 x i8], align 16
  %13 = alloca [512 x i8], align 16
  %14 = alloca ptr, align 8
  %15 = alloca i32, align 4
  %16 = alloca ptr, align 8
  %17 = alloca ptr, align 8
  %18 = alloca ptr, align 8
  %19 = alloca ptr, align 8
  %20 = alloca ptr, align 8
  %21 = alloca i32, align 4
  %22 = alloca ptr, align 8
  %23 = alloca %"class.std::__cxx11::basic_string", align 8
  %24 = alloca %"class.std::__cxx11::basic_string", align 8
  %25 = alloca %"class.std::allocator", align 1
  %26 = alloca ptr, align 8
  %27 = alloca i32, align 4
  %28 = alloca i32, align 4
  store ptr %0, ptr %4, align 8, !tbaa !5
  store i64 %1, ptr %5, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 32, ptr %6) #7
  %29 = load ptr, ptr %4, align 8, !tbaa !5
  %30 = call i32 @dladdr(ptr noundef %29, ptr noundef %6) #7
  %31 = icmp ne i32 %30, 0
  br i1 %31, label %32, label %205

32:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 1024, ptr %7) #7
  call void @llvm.lifetime.start.p0(i64 1024, ptr %8) #7
  %33 = getelementptr inbounds [1024 x i8], ptr %7, i64 0, i64 0
  %34 = getelementptr inbounds %struct.Dl_info, ptr %6, i32 0, i32 0
  %35 = load ptr, ptr %34, align 8, !tbaa !11
  %36 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef %33, ptr noundef @.str, ptr noundef %35) #7
  call void @llvm.lifetime.start.p0(i64 144, ptr %9) #7
  %37 = getelementptr inbounds [1024 x i8], ptr %7, i64 0, i64 0
  %38 = call i32 @stat(ptr noundef %37, ptr noundef %9) #7
  %39 = icmp ne i32 %38, -1
  br i1 %39, label %40, label %44

40:                                               ; preds = %32
  %41 = getelementptr inbounds [1024 x i8], ptr %8, i64 0, i64 0
  %42 = getelementptr inbounds [1024 x i8], ptr %7, i64 0, i64 0
  %43 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef %41, ptr noundef @.str.1, ptr noundef %42) #7
  br label %49

44:                                               ; preds = %32
  %45 = getelementptr inbounds [1024 x i8], ptr %8, i64 0, i64 0
  %46 = getelementptr inbounds %struct.Dl_info, ptr %6, i32 0, i32 0
  %47 = load ptr, ptr %46, align 8, !tbaa !11
  %48 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef %45, ptr noundef @.str.1, ptr noundef %47) #7
  br label %49

49:                                               ; preds = %44, %40
  call void @llvm.lifetime.start.p0(i64 1024, ptr %10) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #7
  %50 = getelementptr inbounds [1024 x i8], ptr %10, i64 0, i64 0
  store ptr %50, ptr %11, align 8, !tbaa !5
  %51 = getelementptr inbounds [1024 x i8], ptr %10, i64 0, i64 0
  call void @llvm.memset.p0.i64(ptr align 16 %51, i8 0, i64 1024, i1 false)
  call void @llvm.lifetime.start.p0(i64 32, ptr %12) #7
  %52 = getelementptr inbounds [32 x i8], ptr %12, i64 0, i64 0
  call void @llvm.memset.p0.i64(ptr align 16 %52, i8 0, i64 32, i1 false)
  %53 = getelementptr inbounds [1024 x i8], ptr %8, i64 0, i64 0
  %54 = load i8, ptr %53, align 16, !tbaa !13
  %55 = sext i8 %54 to i32
  %56 = icmp ne i32 %55, 0
  br i1 %56, label %57, label %142

57:                                               ; preds = %49
  call void @llvm.lifetime.start.p0(i64 512, ptr %13) #7
  %58 = load ptr, ptr %4, align 8, !tbaa !5
  %59 = icmp ult ptr %58, inttoptr (i64 136314880 to ptr)
  br i1 %59, label %60, label %68

60:                                               ; preds = %57
  %61 = load ptr, ptr %4, align 8, !tbaa !5
  %62 = icmp ugt ptr %61, inttoptr (i64 134217728 to ptr)
  br i1 %62, label %63, label %68

63:                                               ; preds = %60
  %64 = getelementptr inbounds [512 x i8], ptr %13, i64 0, i64 0
  %65 = load ptr, ptr %4, align 8, !tbaa !5
  %66 = getelementptr inbounds [1024 x i8], ptr %8, i64 0, i64 0
  %67 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef %64, ptr noundef @.str.2, ptr noundef %65, ptr noundef %66) #7
  br label %79

68:                                               ; preds = %60, %57
  %69 = getelementptr inbounds [512 x i8], ptr %13, i64 0, i64 0
  %70 = load ptr, ptr %4, align 8, !tbaa !5
  %71 = ptrtoint ptr %70 to i64
  %72 = getelementptr inbounds %struct.Dl_info, ptr %6, i32 0, i32 1
  %73 = load ptr, ptr %72, align 8, !tbaa !14
  %74 = ptrtoint ptr %73 to i64
  %75 = sub i64 %71, %74
  %76 = inttoptr i64 %75 to ptr
  %77 = getelementptr inbounds [1024 x i8], ptr %8, i64 0, i64 0
  %78 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef %69, ptr noundef @.str.2, ptr noundef %76, ptr noundef %77) #7
  br label %79

79:                                               ; preds = %68, %63
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #7
  %80 = getelementptr inbounds [512 x i8], ptr %13, i64 0, i64 0
  %81 = call noalias ptr @popen(ptr noundef %80, ptr noundef @.str.3)
  store ptr %81, ptr %14, align 8, !tbaa !5
  %82 = load ptr, ptr %14, align 8, !tbaa !5
  %83 = icmp ne ptr %82, null
  br i1 %83, label %84, label %94

84:                                               ; preds = %79
  br label %85

85:                                               ; preds = %90, %84
  %86 = getelementptr inbounds [1024 x i8], ptr %10, i64 0, i64 0
  %87 = load ptr, ptr %14, align 8, !tbaa !5
  %88 = call ptr @fgets(ptr noundef %86, i32 noundef 1024, ptr noundef %87)
  %89 = icmp ne ptr %88, null
  br i1 %89, label %90, label %91

90:                                               ; preds = %85
  br label %85, !llvm.loop !15

91:                                               ; preds = %85
  %92 = load ptr, ptr %14, align 8, !tbaa !5
  %93 = call i32 @pclose(ptr noundef %92)
  br label %98

94:                                               ; preds = %79
  %95 = load ptr, ptr @stderr, align 8, !tbaa !5
  %96 = getelementptr inbounds [512 x i8], ptr %13, i64 0, i64 0
  %97 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %95, ptr noundef @.str.4, ptr noundef %96) #7
  br label %98

98:                                               ; preds = %94, %91
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #7
  %99 = getelementptr inbounds [1024 x i8], ptr %10, i64 0, i64 0
  %100 = call i64 @strlen(ptr noundef %99) #8
  %101 = sub i64 %100, 1
  %102 = icmp ugt i64 %101, 0
  br i1 %102, label %103, label %107

103:                                              ; preds = %98
  %104 = getelementptr inbounds [1024 x i8], ptr %10, i64 0, i64 0
  %105 = call i64 @strlen(ptr noundef %104) #8
  %106 = sub i64 %105, 1
  br label %108

107:                                              ; preds = %98
  br label %108

108:                                              ; preds = %107, %103
  %109 = phi i64 [ %106, %103 ], [ 0, %107 ]
  %110 = trunc i64 %109 to i32
  store i32 %110, ptr %15, align 4, !tbaa !17
  %111 = load i32, ptr %15, align 4, !tbaa !17
  %112 = sext i32 %111 to i64
  %113 = getelementptr inbounds [1024 x i8], ptr %10, i64 0, i64 %112
  store i8 0, ptr %113, align 1, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #7
  %114 = getelementptr inbounds [1024 x i8], ptr %10, i64 0, i64 0
  %115 = call noundef ptr @strrchr(ptr noundef %114, i32 noundef 58) #8
  store ptr %115, ptr %16, align 8, !tbaa !5
  %116 = load ptr, ptr %16, align 8, !tbaa !5
  %117 = icmp ne ptr %116, null
  br i1 %117, label %118, label %123

118:                                              ; preds = %108
  %119 = getelementptr inbounds [32 x i8], ptr %12, i64 0, i64 0
  %120 = load ptr, ptr %16, align 8, !tbaa !5
  %121 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef %119, ptr noundef @.str.1, ptr noundef %120) #7
  %122 = load ptr, ptr %16, align 8, !tbaa !5
  store i8 0, ptr %122, align 1, !tbaa !13
  br label %123

123:                                              ; preds = %118, %108
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #7
  %124 = getelementptr inbounds [1024 x i8], ptr %10, i64 0, i64 0
  %125 = call noundef ptr @strchr(ptr noundef %124, i32 noundef 47) #8
  store ptr %125, ptr %17, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #7
  store ptr null, ptr %18, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #7
  store ptr null, ptr %19, align 8, !tbaa !5
  br label %126

126:                                              ; preds = %129, %123
  %127 = load ptr, ptr %17, align 8, !tbaa !5
  %128 = icmp ne ptr %127, null
  br i1 %128, label %129, label %135

129:                                              ; preds = %126
  %130 = load ptr, ptr %18, align 8, !tbaa !5
  store ptr %130, ptr %19, align 8, !tbaa !5
  %131 = load ptr, ptr %17, align 8, !tbaa !5
  store ptr %131, ptr %18, align 8, !tbaa !5
  %132 = load ptr, ptr %18, align 8, !tbaa !5
  %133 = getelementptr inbounds i8, ptr %132, i64 1
  %134 = call noundef ptr @strchr(ptr noundef %133, i32 noundef 47) #8
  store ptr %134, ptr %17, align 8, !tbaa !5
  br label %126, !llvm.loop !19

135:                                              ; preds = %126
  %136 = load ptr, ptr %19, align 8, !tbaa !5
  %137 = icmp ne ptr %136, null
  br i1 %137, label %138, label %141

138:                                              ; preds = %135
  %139 = load ptr, ptr %19, align 8, !tbaa !5
  %140 = getelementptr inbounds i8, ptr %139, i64 1
  store ptr %140, ptr %11, align 8, !tbaa !5
  br label %141

141:                                              ; preds = %138, %135
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #7
  call void @llvm.lifetime.end.p0(i64 512, ptr %13) #7
  br label %142

142:                                              ; preds = %141, %49
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #7
  %143 = getelementptr inbounds %struct.Dl_info, ptr %6, i32 0, i32 2
  %144 = load ptr, ptr %143, align 8, !tbaa !20
  store ptr %144, ptr %20, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #7
  %145 = load ptr, ptr %20, align 8, !tbaa !5
  %146 = call ptr @__cxa_demangle(ptr noundef %145, ptr noundef null, ptr noundef null, ptr noundef %21)
  store ptr %146, ptr %22, align 8, !tbaa !5
  %147 = load i32, ptr %21, align 4, !tbaa !17
  %148 = icmp eq i32 %147, 0
  br i1 %148, label %149, label %154

149:                                              ; preds = %142
  %150 = load ptr, ptr %22, align 8, !tbaa !5
  %151 = icmp ne ptr %150, null
  br i1 %151, label %152, label %154

152:                                              ; preds = %149
  %153 = load ptr, ptr %22, align 8, !tbaa !5
  store ptr %153, ptr %20, align 8, !tbaa !5
  br label %154

154:                                              ; preds = %152, %149, %142
  call void @llvm.lifetime.start.p0(i64 32, ptr %23) #7
  call void @llvm.lifetime.start.p0(i64 32, ptr %24) #7
  %155 = load ptr, ptr %20, align 8, !tbaa !5
  %156 = icmp ne ptr %155, null
  br i1 %156, label %157, label %159

157:                                              ; preds = %154
  %158 = load ptr, ptr %20, align 8, !tbaa !5
  br label %160

159:                                              ; preds = %154
  br label %160

160:                                              ; preds = %159, %157
  %161 = phi ptr [ %158, %157 ], [ @.str.5, %159 ]
  call void @llvm.lifetime.start.p0(i64 1, ptr %25) #7
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %25) #7
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %24, ptr noundef %161, ptr noundef nonnull align 1 dereferenceable(1) %25)
          to label %162 unwind label %182

162:                                              ; preds = %160
  invoke void @_Z16symbolToFunctionRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %23, ptr noundef nonnull align 8 dereferenceable(32) %24)
          to label %163 unwind label %186

163:                                              ; preds = %162
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %24) #7
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %25) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %25) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %24) #7
  %164 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %23) #7
  store ptr %164, ptr %20, align 8, !tbaa !5
  %165 = load ptr, ptr @stderr, align 8, !tbaa !5
  %166 = load i64, ptr %5, align 8, !tbaa !9
  %167 = trunc i64 %166 to i32
  %168 = load ptr, ptr %20, align 8, !tbaa !5
  %169 = load ptr, ptr %4, align 8, !tbaa !5
  %170 = ptrtoint ptr %169 to i64
  %171 = getelementptr inbounds %struct.Dl_info, ptr %6, i32 0, i32 3
  %172 = load ptr, ptr %171, align 8, !tbaa !21
  %173 = ptrtoint ptr %172 to i64
  %174 = sub i64 %170, %173
  %175 = load ptr, ptr %11, align 8, !tbaa !5
  %176 = getelementptr inbounds [32 x i8], ptr %12, i64 0, i64 0
  %177 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %165, ptr noundef @.str.6, i32 noundef %167, ptr noundef %168, i64 noundef %174, ptr noundef %175, ptr noundef %176) #7
  %178 = load ptr, ptr %22, align 8, !tbaa !5
  %179 = icmp ne ptr %178, null
  br i1 %179, label %180, label %191

180:                                              ; preds = %163
  %181 = load ptr, ptr %22, align 8, !tbaa !5
  call void @free(ptr noundef %181) #7
  br label %191

182:                                              ; preds = %160
  %183 = landingpad { ptr, i32 }
          cleanup
  %184 = extractvalue { ptr, i32 } %183, 0
  store ptr %184, ptr %26, align 8
  %185 = extractvalue { ptr, i32 } %183, 1
  store i32 %185, ptr %27, align 4
  br label %190

186:                                              ; preds = %162
  %187 = landingpad { ptr, i32 }
          cleanup
  %188 = extractvalue { ptr, i32 } %187, 0
  store ptr %188, ptr %26, align 8
  %189 = extractvalue { ptr, i32 } %187, 1
  store i32 %189, ptr %27, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %24) #7
  br label %190

190:                                              ; preds = %186, %182
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %25) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %25) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %24) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %23) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %12) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #7
  call void @llvm.lifetime.end.p0(i64 1024, ptr %10) #7
  call void @llvm.lifetime.end.p0(i64 144, ptr %9) #7
  call void @llvm.lifetime.end.p0(i64 1024, ptr %8) #7
  call void @llvm.lifetime.end.p0(i64 1024, ptr %7) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %6) #7
  br label %209

191:                                              ; preds = %180, %163
  %192 = getelementptr inbounds %struct.Dl_info, ptr %6, i32 0, i32 2
  %193 = load ptr, ptr %192, align 8, !tbaa !20
  %194 = icmp ne ptr %193, null
  br i1 %194, label %195, label %201

195:                                              ; preds = %191
  %196 = getelementptr inbounds %struct.Dl_info, ptr %6, i32 0, i32 2
  %197 = load ptr, ptr %196, align 8, !tbaa !20
  %198 = call i32 @strcmp(ptr noundef %197, ptr noundef @.str.7) #8
  %199 = icmp ne i32 %198, 0
  br i1 %199, label %201, label %200

200:                                              ; preds = %195
  store i32 0, ptr %3, align 4
  store i32 1, ptr %28, align 4
  br label %202

201:                                              ; preds = %195, %191
  store i32 0, ptr %28, align 4
  br label %202

202:                                              ; preds = %201, %200
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %23) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %23) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %12) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #7
  call void @llvm.lifetime.end.p0(i64 1024, ptr %10) #7
  call void @llvm.lifetime.end.p0(i64 144, ptr %9) #7
  call void @llvm.lifetime.end.p0(i64 1024, ptr %8) #7
  call void @llvm.lifetime.end.p0(i64 1024, ptr %7) #7
  %203 = load i32, ptr %28, align 4
  switch i32 %203, label %207 [
    i32 0, label %204
  ]

204:                                              ; preds = %202
  br label %206

205:                                              ; preds = %2
  store i32 0, ptr %3, align 4
  store i32 1, ptr %28, align 4
  br label %207

206:                                              ; preds = %204
  store i32 1, ptr %3, align 4
  store i32 1, ptr %28, align 4
  br label %207

207:                                              ; preds = %206, %205, %202
  call void @llvm.lifetime.end.p0(i64 32, ptr %6) #7
  %208 = load i32, ptr %3, align 4
  ret i32 %208

209:                                              ; preds = %190
  %210 = load ptr, ptr %26, align 8
  %211 = load i32, ptr %27, align 4
  %212 = insertvalue { ptr, i32 } poison, ptr %210, 0
  %213 = insertvalue { ptr, i32 } %212, i32 %211, 1
  resume { ptr, i32 } %213
}

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

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

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

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

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

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

declare i32 @pclose(ptr noundef) #5

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

; Function Attrs: nounwind willreturn memory(read)
declare i64 @strlen(ptr noundef) #6

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

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

declare ptr @__cxa_demangle(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #5

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

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

; Function Attrs: nounwind
declare void @free(ptr noundef) #3

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

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

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

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

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


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

@.str = external hidden unnamed_addr constant [8 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [2 x i8], align 1
@stderr = external local_unnamed_addr global ptr, align 8
@.str.4 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [40 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [5 x i8], align 1

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z16symbolToFunctionRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr dead_on_unwind noalias writable sret(%"class.std::__cxx11::basic_string") align 8, ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #0

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

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 #2 align 2

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

; Function Attrs: mustprogress uwtable
define dso_local range(i32 0, 2) i32 @print_trace_entry(ptr noundef %0, i64 noundef %1) local_unnamed_addr #0 personality ptr @__gxx_personality_v0 {
  %3 = alloca %struct.Dl_info, align 8
  %4 = alloca [1024 x i8], align 16
  %5 = alloca [1024 x i8], align 16
  %6 = alloca %struct.stat, align 8
  %7 = alloca [1024 x i8], align 16
  %8 = alloca [32 x i8], align 16
  %9 = alloca [512 x i8], align 16
  %10 = alloca i32, align 4
  %11 = alloca %"class.std::__cxx11::basic_string", align 8
  %12 = alloca %"class.std::__cxx11::basic_string", align 8
  %13 = alloca %"class.std::allocator", align 1
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %3) #9
  %14 = call i32 @dladdr(ptr noundef %0, ptr noundef nonnull %3) #9
  %.not = icmp eq i32 %14, 0
  br i1 %.not, label %91, label %15

15:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 1024, ptr nonnull %4) #9
  call void @llvm.lifetime.start.p0(i64 1024, ptr nonnull %5) #9
  %16 = load ptr, ptr %3, align 8, !tbaa !5
  %17 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef nonnull dereferenceable(1) %4, ptr noundef nonnull dereferenceable(1) @.str, ptr noundef %16) #9
  call void @llvm.lifetime.start.p0(i64 144, ptr nonnull %6) #9
  %18 = call i32 @stat(ptr noundef nonnull %4, ptr noundef nonnull %6) #9
  %.not50 = icmp eq i32 %18, -1
  br i1 %.not50, label %21, label %19

19:                                               ; preds = %15
  %20 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef nonnull dereferenceable(1) %5, ptr noundef nonnull dereferenceable(1) @.str.1, ptr noundef nonnull %4) #9
  br label %24

21:                                               ; preds = %15
  %22 = load ptr, ptr %3, align 8, !tbaa !5
  %23 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef nonnull dereferenceable(1) %5, ptr noundef nonnull dereferenceable(1) @.str.1, ptr noundef %22) #9
  br label %24

24:                                               ; preds = %21, %19
  call void @llvm.lifetime.start.p0(i64 1024, ptr nonnull %7) #9
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(1024) %7, i8 0, i64 1024, i1 false)
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %8) #9
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(32) %8, i8 0, i64 32, i1 false)
  %25 = load i8, ptr %5, align 16, !tbaa !10
  %.not51 = icmp eq i8 %25, 0
  br i1 %.not51, label %60, label %26

26:                                               ; preds = %24
  call void @llvm.lifetime.start.p0(i64 512, ptr nonnull %9) #9
  %27 = icmp ult ptr %0, inttoptr (i64 136314880 to ptr)
  %28 = icmp ugt ptr %0, inttoptr (i64 134217728 to ptr)
  %or.cond = and i1 %27, %28
  br i1 %or.cond, label %29, label %31

29:                                               ; preds = %26
  %30 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef nonnull dereferenceable(1) %9, ptr noundef nonnull dereferenceable(1) @.str.2, ptr noundef nonnull %0, ptr noundef nonnull %5) #9
  br label %39

31:                                               ; preds = %26
  %32 = ptrtoint ptr %0 to i64
  %33 = getelementptr inbounds i8, ptr %3, i64 8
  %34 = load ptr, ptr %33, align 8, !tbaa !11
  %35 = ptrtoint ptr %34 to i64
  %36 = sub i64 %32, %35
  %37 = inttoptr i64 %36 to ptr
  %38 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef nonnull dereferenceable(1) %9, ptr noundef nonnull dereferenceable(1) @.str.2, ptr noundef %37, ptr noundef nonnull %5) #9
  br label %39

39:                                               ; preds = %31, %29
  %40 = call noalias ptr @popen(ptr noundef nonnull %9, ptr noundef nonnull @.str.3)
  %.not52 = icmp eq ptr %40, null
  br i1 %.not52, label %44, label %.preheader

.preheader:                                       ; preds = %39, %.preheader
  %41 = call ptr @fgets(ptr noundef nonnull %7, i32 noundef 1024, ptr noundef nonnull %40)
  %.not53 = icmp eq ptr %41, null
  br i1 %.not53, label %42, label %.preheader, !llvm.loop !12

42:                                               ; preds = %.preheader
  %43 = call i32 @pclose(ptr noundef nonnull %40)
  br label %47

44:                                               ; preds = %39
  %45 = load ptr, ptr @stderr, align 8, !tbaa !14
  %46 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %45, ptr noundef nonnull @.str.4, ptr noundef nonnull %9) #10
  br label %47

47:                                               ; preds = %44, %42
  %48 = call i64 @strlen(ptr noundef nonnull dereferenceable(1) %7) #11
  %49 = shl i64 %48, 32
  %sext = add i64 %49, -4294967296
  %50 = ashr exact i64 %sext, 32
  %51 = getelementptr inbounds [1024 x i8], ptr %7, i64 0, i64 %50
  store i8 0, ptr %51, align 1, !tbaa !10
  %52 = call noundef ptr @strrchr(ptr noundef nonnull dereferenceable(1) %7, i32 noundef 58) #11
  %.not55 = icmp eq ptr %52, null
  br i1 %.not55, label %55, label %53

53:                                               ; preds = %47
  %54 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef nonnull dereferenceable(1) %8, ptr noundef nonnull dereferenceable(1) @.str.1, ptr noundef nonnull %52) #9
  store i8 0, ptr %52, align 1, !tbaa !10
  br label %55

55:                                               ; preds = %53, %47
  %56 = call noundef ptr @strchr(ptr noundef nonnull dereferenceable(1) %7, i32 noundef 47) #11
  %.not5665 = icmp eq ptr %56, null
  br i1 %.not5665, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %55, %.lr.ph
  %.04067 = phi ptr [ %.04166, %.lr.ph ], [ null, %55 ]
  %.04166 = phi ptr [ %58, %.lr.ph ], [ %56, %55 ]
  %57 = getelementptr inbounds i8, ptr %.04166, i64 1
  %58 = call noundef ptr @strchr(ptr noundef nonnull dereferenceable(1) %57, i32 noundef 47) #11
  %.not56 = icmp eq ptr %58, null
  br i1 %.not56, label %._crit_edge, label %.lr.ph, !llvm.loop !15

._crit_edge:                                      ; preds = %.lr.ph, %55
  %.039.lcssa = phi ptr [ null, %55 ], [ %.04067, %.lr.ph ]
  %.not57 = icmp eq ptr %.039.lcssa, null
  %59 = getelementptr inbounds i8, ptr %.039.lcssa, i64 1
  %spec.select = select i1 %.not57, ptr %7, ptr %59
  call void @llvm.lifetime.end.p0(i64 512, ptr nonnull %9) #9
  br label %60

60:                                               ; preds = %._crit_edge, %24
  %.143 = phi ptr [ %spec.select, %._crit_edge ], [ %7, %24 ]
  %61 = getelementptr inbounds i8, ptr %3, i64 16
  %62 = load ptr, ptr %61, align 8, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %10) #9
  %63 = call ptr @__cxa_demangle(ptr noundef %62, ptr noundef null, ptr noundef null, ptr noundef nonnull %10)
  %64 = load i32, ptr %10, align 4, !tbaa !17
  %65 = icmp eq i32 %64, 0
  %66 = icmp ne ptr %63, null
  %or.cond3 = select i1 %65, i1 %66, i1 false
  %spec.select62 = select i1 %or.cond3, ptr %63, ptr %62
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %11) #9
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %12) #9
  %.not58 = icmp eq ptr %spec.select62, null
  %67 = select i1 %.not58, ptr @.str.5, ptr %spec.select62
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %13) #9
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %13) #9
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %12, ptr noundef nonnull %67, ptr noundef nonnull align 1 dereferenceable(1) %13)
          to label %68 unwind label %80

68:                                               ; preds = %60
  invoke void @_Z16symbolToFunctionRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %11, ptr noundef nonnull align 8 dereferenceable(32) %12)
          to label %69 unwind label %82

69:                                               ; preds = %68
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %12) #9
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %13) #9
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %13) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %12) #9
  %70 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %11) #9
  %71 = load ptr, ptr @stderr, align 8, !tbaa !14
  %72 = trunc i64 %1 to i32
  %73 = ptrtoint ptr %0 to i64
  %74 = getelementptr inbounds i8, ptr %3, i64 24
  %75 = load ptr, ptr %74, align 8, !tbaa !19
  %76 = ptrtoint ptr %75 to i64
  %77 = sub i64 %73, %76
  %78 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %71, ptr noundef nonnull @.str.6, i32 noundef %72, ptr noundef %70, i64 noundef %77, ptr noundef %.143, ptr noundef nonnull %8) #10
  br i1 %66, label %79, label %85

79:                                               ; preds = %69
  call void @free(ptr noundef nonnull %63) #9
  br label %85

80:                                               ; preds = %60
  %81 = landingpad { ptr, i32 }
          cleanup
  br label %84

82:                                               ; preds = %68
  %83 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %12) #9
  br label %84

84:                                               ; preds = %82, %80
  %.pn = phi { ptr, i32 } [ %83, %82 ], [ %81, %80 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %13) #9
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %13) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %12) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %11) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %10) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %8) #9
  call void @llvm.lifetime.end.p0(i64 1024, ptr nonnull %7) #9
  call void @llvm.lifetime.end.p0(i64 144, ptr nonnull %6) #9
  call void @llvm.lifetime.end.p0(i64 1024, ptr nonnull %5) #9
  call void @llvm.lifetime.end.p0(i64 1024, ptr nonnull %4) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %3) #9
  resume { ptr, i32 } %.pn

85:                                               ; preds = %79, %69
  %86 = load ptr, ptr %61, align 8, !tbaa !16
  %.not60 = icmp eq ptr %86, null
  br i1 %.not60, label %90, label %87

87:                                               ; preds = %85
  %88 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %86, ptr noundef nonnull dereferenceable(1) @.str.7) #11
  %.not61 = icmp eq i32 %88, 0
  br i1 %.not61, label %89, label %90

89:                                               ; preds = %87
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %11) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %11) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %10) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %8) #9
  call void @llvm.lifetime.end.p0(i64 1024, ptr nonnull %7) #9
  call void @llvm.lifetime.end.p0(i64 144, ptr nonnull %6) #9
  call void @llvm.lifetime.end.p0(i64 1024, ptr nonnull %5) #9
  call void @llvm.lifetime.end.p0(i64 1024, ptr nonnull %4) #9
  br label %91

90:                                               ; preds = %85, %87
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %11) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %11) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %10) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %8) #9
  call void @llvm.lifetime.end.p0(i64 1024, ptr nonnull %7) #9
  call void @llvm.lifetime.end.p0(i64 144, ptr nonnull %6) #9
  call void @llvm.lifetime.end.p0(i64 1024, ptr nonnull %5) #9
  call void @llvm.lifetime.end.p0(i64 1024, ptr nonnull %4) #9
  br label %91

91:                                               ; preds = %90, %89, %2
  %.1 = phi i32 [ 0, %2 ], [ 1, %90 ], [ 0, %89 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %3) #9
  ret i32 %.1
}

; Function Attrs: nounwind
declare i32 @dladdr(ptr noundef, ptr noundef) local_unnamed_addr #3

; Function Attrs: nofree nounwind
declare noundef i32 @sprintf(ptr noalias nocapture noundef writeonly, ptr nocapture noundef readonly, ...) local_unnamed_addr #4

; Function Attrs: nofree nounwind
declare noundef i32 @stat(ptr nocapture noundef readonly, ptr nocapture noundef) local_unnamed_addr #4

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

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

; Function Attrs: nofree nounwind
declare noundef ptr @fgets(ptr noundef, i32 noundef, ptr nocapture noundef) local_unnamed_addr #4

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

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

; Function Attrs: mustprogress nofree nounwind willreturn memory(argmem: read)
declare i64 @strlen(ptr nocapture noundef) local_unnamed_addr #6

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

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

declare ptr @__cxa_demangle(ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #7

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

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

; Function Attrs: mustprogress nounwind willreturn allockind("free") memory(argmem: readwrite, inaccessiblemem: readwrite)
declare void @free(ptr allocptr nocapture noundef) local_unnamed_addr #8

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

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

attributes #0 = { 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 nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 #3 = { nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { 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 #5 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #6 = { mustprogress nofree nounwind willreturn memory(argmem: read) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { "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 = { mustprogress nounwind willreturn allockind("free") memory(argmem: readwrite, inaccessiblemem: readwrite) "alloc-family"="malloc" "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 = { nounwind }
attributes #10 = { cold nounwind }
attributes #11 = { nounwind willreturn memory(read) }

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

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


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,ReassociatePass,SROAPass,SimplifyCFGPass