; LLVM IR from pmwkaa/monotone :: monotone/engine/io (index_op)

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

%struct.Runtime = type { %struct.ExceptionMgr, %struct.Error, ptr }
%struct.ExceptionMgr = type { ptr }
%struct.Error = type { [256 x i8], i32, ptr, ptr, i32, ptr, ptr }
%struct.File = type { i32, i64, %struct.Str, %struct.List }
%struct.Str = type { ptr, ptr, i8 }
%struct.List = type { ptr, ptr }
%struct.Index = type <{ i32, i32, i32, i32, %struct.Id, i32, i32, i64, i64, i64, i64, i32, i64, i64, i64, i32, i64, i8, i8, [4 x i32] }>
%struct.Id = type { i64, i64 }
%struct.Context = type { ptr, ptr, ptr }
%struct.Global = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr }

@mn_runtime = external thread_local global %struct.Runtime, align 8
@.str = external hidden unnamed_addr constant [79 x i8], align 1
@__func__.index_open = external hidden unnamed_addr constant [11 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [40 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [40 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [52 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local void @index_open(ptr noundef %0, ptr noundef %1, ptr noundef %2, i32 noundef %3, ptr noundef %4) #0 {
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca ptr, align 8
  %11 = alloca [4096 x i8], align 16
  %12 = alloca i64, align 8
  %13 = alloca i32, align 4
  %14 = alloca i8, align 1
  store ptr %0, ptr %6, align 8, !tbaa !5
  store ptr %1, ptr %7, align 8, !tbaa !5
  store ptr %2, ptr %8, align 8, !tbaa !5
  store i32 %3, ptr %9, align 4, !tbaa !9
  store ptr %4, ptr %10, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4096, ptr %11) #6
  %15 = load ptr, ptr %8, align 8, !tbaa !5
  %16 = load ptr, ptr %7, align 8, !tbaa !5
  %17 = load i32, ptr %9, align 4, !tbaa !9
  %18 = getelementptr inbounds [4096 x i8], ptr %11, i64 0, i64 0
  call void @id_path(ptr noundef %15, ptr noundef %16, i32 noundef %17, ptr noundef %18)
  %19 = load ptr, ptr %6, align 8, !tbaa !5
  %20 = getelementptr inbounds [4096 x i8], ptr %11, i64 0, i64 0
  call void @file_open(ptr noundef %19, ptr noundef %20)
  %21 = load ptr, ptr %6, align 8, !tbaa !5
  %22 = getelementptr inbounds %struct.File, ptr %21, i32 0, i32 1
  %23 = load i64, ptr %22, align 8, !tbaa !11
  %24 = icmp ult i64 %23, 130
  %25 = xor i1 %24, true
  %26 = xor i1 %25, true
  %27 = zext i1 %26 to i32
  %28 = sext i32 %27 to i64
  %29 = call i64 @llvm.expect.i64(i64 %28, i64 0)
  %30 = icmp ne i64 %29, 0
  br i1 %30, label %31, label %39

31:                                               ; preds = %5
  %32 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @mn_runtime)
  %33 = getelementptr inbounds %struct.Runtime, ptr %32, i32 0, i32 1
  %34 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @mn_runtime)
  %35 = getelementptr inbounds %struct.Runtime, ptr %34, i32 0, i32 0
  %36 = load ptr, ptr %6, align 8, !tbaa !5
  %37 = getelementptr inbounds %struct.File, ptr %36, i32 0, i32 2
  %38 = call ptr @str_of(ptr noundef %37)
  call void (ptr, ptr, ptr, ptr, i32, ptr, ...) @error_throw_as(ptr noundef %33, ptr noundef %35, ptr noundef @.str, ptr noundef @__func__.index_open, i32 noundef 36, ptr noundef @.str.1, ptr noundef %38) #7
  unreachable

39:                                               ; preds = %5
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #6
  %40 = load ptr, ptr %6, align 8, !tbaa !5
  %41 = getelementptr inbounds %struct.File, ptr %40, i32 0, i32 1
  %42 = load i64, ptr %41, align 8, !tbaa !11
  %43 = sub i64 %42, 130
  store i64 %43, ptr %12, align 8, !tbaa !17
  %44 = load ptr, ptr %6, align 8, !tbaa !5
  %45 = load ptr, ptr %10, align 8, !tbaa !5
  %46 = load i64, ptr %12, align 8, !tbaa !17
  call void @file_pread(ptr noundef %44, ptr noundef %45, i32 noundef 130, i64 noundef %46)
  %47 = load ptr, ptr %10, align 8, !tbaa !5
  %48 = getelementptr inbounds %struct.Index, ptr %47, i32 0, i32 2
  %49 = load i32, ptr %48, align 1, !tbaa !18
  %50 = icmp ne i32 %49, 545560085
  %51 = xor i1 %50, true
  %52 = xor i1 %51, true
  %53 = zext i1 %52 to i32
  %54 = sext i32 %53 to i64
  %55 = call i64 @llvm.expect.i64(i64 %54, i64 0)
  %56 = icmp ne i64 %55, 0
  br i1 %56, label %57, label %65

57:                                               ; preds = %39
  %58 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @mn_runtime)
  %59 = getelementptr inbounds %struct.Runtime, ptr %58, i32 0, i32 1
  %60 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @mn_runtime)
  %61 = getelementptr inbounds %struct.Runtime, ptr %60, i32 0, i32 0
  %62 = load ptr, ptr %6, align 8, !tbaa !5
  %63 = getelementptr inbounds %struct.File, ptr %62, i32 0, i32 2
  %64 = call ptr @str_of(ptr noundef %63)
  call void (ptr, ptr, ptr, ptr, i32, ptr, ...) @error_throw_as(ptr noundef %59, ptr noundef %61, ptr noundef @.str, ptr noundef @__func__.index_open, i32 noundef 46, ptr noundef @.str.2, ptr noundef %64) #7
  unreachable

65:                                               ; preds = %39
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #6
  %66 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @mn_runtime)
  %67 = getelementptr inbounds %struct.Runtime, ptr %66, i32 0, i32 2
  %68 = load ptr, ptr %67, align 8, !tbaa !21
  %69 = getelementptr inbounds %struct.Context, ptr %68, i32 0, i32 2
  %70 = load ptr, ptr %69, align 8, !tbaa !25
  %71 = getelementptr inbounds %struct.Global, ptr %70, i32 0, i32 4
  %72 = load ptr, ptr %71, align 8, !tbaa !27
  %73 = load ptr, ptr %10, align 8, !tbaa !5
  %74 = getelementptr inbounds i8, ptr %73, i64 4
  %75 = call i32 %72(i32 noundef 0, ptr noundef %74, i32 noundef 126)
  store i32 %75, ptr %13, align 4, !tbaa !9
  %76 = load i32, ptr %13, align 4, !tbaa !9
  %77 = load ptr, ptr %10, align 8, !tbaa !5
  %78 = getelementptr inbounds %struct.Index, ptr %77, i32 0, i32 0
  %79 = load i32, ptr %78, align 1, !tbaa !29
  %80 = icmp ne i32 %76, %79
  br i1 %80, label %81, label %89

81:                                               ; preds = %65
  %82 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @mn_runtime)
  %83 = getelementptr inbounds %struct.Runtime, ptr %82, i32 0, i32 1
  %84 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @mn_runtime)
  %85 = getelementptr inbounds %struct.Runtime, ptr %84, i32 0, i32 0
  %86 = load ptr, ptr %6, align 8, !tbaa !5
  %87 = getelementptr inbounds %struct.File, ptr %86, i32 0, i32 2
  %88 = call ptr @str_of(ptr noundef %87)
  call void (ptr, ptr, ptr, ptr, i32, ptr, ...) @error_throw_as(ptr noundef %83, ptr noundef %85, ptr noundef @.str, ptr noundef @__func__.index_open, i32 noundef 53, ptr noundef @.str.3, ptr noundef %88) #7
  unreachable

89:                                               ; preds = %65
  call void @llvm.lifetime.start.p0(i64 1, ptr %14) #6
  %90 = load i32, ptr %9, align 4, !tbaa !9
  %91 = icmp eq i32 %90, 8
  br i1 %91, label %92, label %103

92:                                               ; preds = %89
  %93 = load ptr, ptr %6, align 8, !tbaa !5
  %94 = getelementptr inbounds %struct.File, ptr %93, i32 0, i32 1
  %95 = load i64, ptr %94, align 8, !tbaa !11
  %96 = load ptr, ptr %10, align 8, !tbaa !5
  %97 = getelementptr inbounds %struct.Index, ptr %96, i32 0, i32 5
  %98 = load i32, ptr %97, align 1, !tbaa !30
  %99 = zext i32 %98 to i64
  %100 = add i64 %99, 130
  %101 = icmp eq i64 %95, %100
  %102 = zext i1 %101 to i8
  store i8 %102, ptr %14, align 1, !tbaa !31
  br label %112

103:                                              ; preds = %89
  %104 = load ptr, ptr %6, align 8, !tbaa !5
  %105 = getelementptr inbounds %struct.File, ptr %104, i32 0, i32 1
  %106 = load i64, ptr %105, align 8, !tbaa !11
  %107 = load ptr, ptr %10, align 8, !tbaa !5
  %108 = getelementptr inbounds %struct.Index, ptr %107, i32 0, i32 9
  %109 = load i64, ptr %108, align 1, !tbaa !32
  %110 = icmp eq i64 %106, %109
  %111 = zext i1 %110 to i8
  store i8 %111, ptr %14, align 1, !tbaa !31
  br label %112

112:                                              ; preds = %103, %92
  %113 = load i8, ptr %14, align 1, !tbaa !31, !range !33, !noundef !34
  %114 = trunc i8 %113 to i1
  br i1 %114, label %123, label %115

115:                                              ; preds = %112
  %116 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @mn_runtime)
  %117 = getelementptr inbounds %struct.Runtime, ptr %116, i32 0, i32 1
  %118 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @mn_runtime)
  %119 = getelementptr inbounds %struct.Runtime, ptr %118, i32 0, i32 0
  %120 = load ptr, ptr %6, align 8, !tbaa !5
  %121 = getelementptr inbounds %struct.File, ptr %120, i32 0, i32 2
  %122 = call ptr @str_of(ptr noundef %121)
  call void (ptr, ptr, ptr, ptr, i32, ptr, ...) @error_throw_as(ptr noundef %117, ptr noundef %119, ptr noundef @.str, ptr noundef @__func__.index_open, i32 noundef 63, ptr noundef @.str.4, ptr noundef %122) #7
  unreachable

123:                                              ; preds = %112
  %124 = load ptr, ptr %10, align 8, !tbaa !5
  %125 = getelementptr inbounds %struct.Index, ptr %124, i32 0, i32 3
  %126 = load i32, ptr %125, align 1, !tbaa !35
  %127 = icmp ugt i32 %126, 0
  %128 = xor i1 %127, true
  %129 = xor i1 %128, true
  %130 = zext i1 %129 to i32
  %131 = sext i32 %130 to i64
  %132 = call i64 @llvm.expect.i64(i64 %131, i64 0)
  %133 = icmp ne i64 %132, 0
  br i1 %133, label %134, label %142

134:                                              ; preds = %123
  %135 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @mn_runtime)
  %136 = getelementptr inbounds %struct.Runtime, ptr %135, i32 0, i32 1
  %137 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @mn_runtime)
  %138 = getelementptr inbounds %struct.Runtime, ptr %137, i32 0, i32 0
  %139 = load ptr, ptr %6, align 8, !tbaa !5
  %140 = getelementptr inbounds %struct.File, ptr %139, i32 0, i32 2
  %141 = call ptr @str_of(ptr noundef %140)
  call void (ptr, ptr, ptr, ptr, i32, ptr, ...) @error_throw_as(ptr noundef %136, ptr noundef %138, ptr noundef @.str, ptr noundef @__func__.index_open, i32 noundef 68, ptr noundef @.str.5, ptr noundef %141) #7
  unreachable

142:                                              ; preds = %123
  call void @llvm.lifetime.end.p0(i64 1, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 4096, ptr %11) #6
  ret void
}

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

; Function Attrs: inlinehint nounwind uwtable
declare hidden void @id_path(ptr noundef, ptr noundef, i32 noundef, ptr noundef) #2

; Function Attrs: inlinehint nounwind uwtable
declare hidden void @file_open(ptr noundef, ptr noundef) #2

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(none)
declare i64 @llvm.expect.i64(i64, i64) #3

; Function Attrs: inlinehint noreturn nounwind uwtable
declare hidden void @error_throw_as(ptr noundef, ptr noundef, ptr noundef, ptr noundef, i32 noundef, ptr noundef, ...) #4

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare nonnull ptr @llvm.threadlocal.address.p0(ptr nonnull) #5

; Function Attrs: inlinehint nounwind uwtable
declare hidden ptr @str_of(ptr noundef) #2

; Function Attrs: inlinehint nounwind uwtable
declare hidden void @file_pread(ptr noundef, ptr noundef, i32 noundef, i64 noundef) #2

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !13, i64 8}
!12 = !{!"File", !10, i64 0, !13, i64 8, !14, i64 16, !16, i64 40}
!13 = !{!"long", !7, i64 0}
!14 = !{!"Str", !6, i64 0, !6, i64 8, !15, i64 16}
!15 = !{!"_Bool", !7, i64 0}
!16 = !{!"List", !6, i64 0, !6, i64 8}
!17 = !{!13, !13, i64 0}
!18 = !{!19, !10, i64 8}
!19 = !{!"Index", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12, !20, i64 16, !10, i64 32, !10, i64 36, !13, i64 40, !13, i64 48, !13, i64 56, !13, i64 64, !10, i64 72, !13, i64 76, !13, i64 84, !13, i64 92, !10, i64 100, !13, i64 104, !7, i64 112, !7, i64 113, !7, i64 114}
!20 = !{!"Id", !13, i64 0, !13, i64 8}
!21 = !{!22, !6, i64 312}
!22 = !{!"Runtime", !23, i64 0, !24, i64 8, !6, i64 312}
!23 = !{!"ExceptionMgr", !6, i64 0}
!24 = !{!"Error", !7, i64 0, !10, i64 256, !6, i64 264, !6, i64 272, !10, i64 280, !6, i64 288, !6, i64 296}
!25 = !{!26, !6, i64 16}
!26 = !{!"Context", !6, i64 0, !6, i64 8, !6, i64 16}
!27 = !{!28, !6, i64 32}
!28 = !{!"Global", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48}
!29 = !{!19, !10, i64 0}
!30 = !{!19, !10, i64 32}
!31 = !{!15, !15, i64 0}
!32 = !{!19, !13, i64 56}
!33 = !{i8 0, i8 2}
!34 = !{}
!35 = !{!19, !10, i64 12}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%struct.Runtime = type { %struct.ExceptionMgr, %struct.Error, ptr }
%struct.ExceptionMgr = type { ptr }
%struct.Error = type { [256 x i8], i32, ptr, ptr, i32, ptr, ptr }

@mn_runtime = external thread_local global %struct.Runtime, align 8
@.str = external hidden unnamed_addr constant [79 x i8], align 1
@__func__.index_open = external hidden unnamed_addr constant [11 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [40 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [40 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [52 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local void @index_open(ptr noundef %0, ptr noundef %1, ptr noundef %2, i32 noundef %3, ptr noundef %4) local_unnamed_addr #0 {
  %6 = alloca [4096 x i8], align 16
  call void @llvm.lifetime.start.p0(i64 4096, ptr nonnull %6) #5
  call void @id_path(ptr noundef %2, ptr noundef %1, i32 noundef %3, ptr noundef nonnull %6)
  call void @file_open(ptr noundef %0, ptr noundef nonnull %6)
  %7 = getelementptr inbounds i8, ptr %0, i64 8
  %8 = load i64, ptr %7, align 8, !tbaa !5
  %9 = icmp ult i64 %8, 130
  br i1 %9, label %10, label %15, !prof !15

10:                                               ; preds = %5
  %11 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @mn_runtime)
  %12 = getelementptr inbounds i8, ptr %11, i64 8
  %13 = getelementptr inbounds i8, ptr %0, i64 16
  %14 = call ptr @str_of(ptr noundef nonnull %13)
  call void (ptr, ptr, ptr, ptr, i32, ptr, ...) @error_throw_as(ptr noundef nonnull %12, ptr noundef nonnull %11, ptr noundef nonnull @.str, ptr noundef nonnull @__func__.index_open, i32 noundef 36, ptr noundef nonnull @.str.1, ptr noundef %14) #6
  unreachable

15:                                               ; preds = %5
  %16 = add i64 %8, -130
  call void @file_pread(ptr noundef nonnull %0, ptr noundef %4, i32 noundef 130, i64 noundef %16)
  %17 = getelementptr inbounds i8, ptr %4, i64 8
  %18 = load i32, ptr %17, align 1, !tbaa !16
  %.not = icmp eq i32 %18, 545560085
  %19 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @mn_runtime)
  br i1 %.not, label %24, label %20, !prof !19

20:                                               ; preds = %15
  %21 = getelementptr inbounds i8, ptr %19, i64 8
  %22 = getelementptr inbounds i8, ptr %0, i64 16
  %23 = call ptr @str_of(ptr noundef nonnull %22)
  call void (ptr, ptr, ptr, ptr, i32, ptr, ...) @error_throw_as(ptr noundef nonnull %21, ptr noundef nonnull %19, ptr noundef nonnull @.str, ptr noundef nonnull @__func__.index_open, i32 noundef 46, ptr noundef nonnull @.str.2, ptr noundef %23) #6
  unreachable

24:                                               ; preds = %15
  %25 = getelementptr inbounds i8, ptr %19, i64 312
  %26 = load ptr, ptr %25, align 8, !tbaa !20
  %27 = getelementptr inbounds i8, ptr %26, i64 16
  %28 = load ptr, ptr %27, align 8, !tbaa !24
  %29 = getelementptr inbounds i8, ptr %28, i64 32
  %30 = load ptr, ptr %29, align 8, !tbaa !26
  %31 = getelementptr inbounds i8, ptr %4, i64 4
  %32 = call i32 %30(i32 noundef 0, ptr noundef nonnull %31, i32 noundef 126) #5
  %33 = load i32, ptr %4, align 1, !tbaa !28
  %.not25 = icmp eq i32 %32, %33
  br i1 %.not25, label %38, label %34

34:                                               ; preds = %24
  %35 = getelementptr inbounds i8, ptr %19, i64 8
  %36 = getelementptr inbounds i8, ptr %0, i64 16
  %37 = call ptr @str_of(ptr noundef nonnull %36)
  call void (ptr, ptr, ptr, ptr, i32, ptr, ...) @error_throw_as(ptr noundef nonnull %35, ptr noundef nonnull %19, ptr noundef nonnull @.str, ptr noundef nonnull @__func__.index_open, i32 noundef 53, ptr noundef nonnull @.str.3, ptr noundef %37) #6
  unreachable

38:                                               ; preds = %24
  %39 = icmp eq i32 %3, 8
  %40 = load i64, ptr %7, align 8, !tbaa !5
  br i1 %39, label %41, label %47

41:                                               ; preds = %38
  %42 = getelementptr inbounds i8, ptr %4, i64 32
  %43 = load i32, ptr %42, align 1, !tbaa !29
  %44 = zext i32 %43 to i64
  %45 = add nuw nsw i64 %44, 130
  %46 = icmp eq i64 %40, %45
  br i1 %46, label %55, label %51

47:                                               ; preds = %38
  %48 = getelementptr inbounds i8, ptr %4, i64 56
  %49 = load i64, ptr %48, align 1, !tbaa !30
  %50 = icmp eq i64 %40, %49
  br i1 %50, label %55, label %51

51:                                               ; preds = %41, %47
  %52 = getelementptr inbounds i8, ptr %19, i64 8
  %53 = getelementptr inbounds i8, ptr %0, i64 16
  %54 = call ptr @str_of(ptr noundef nonnull %53)
  call void (ptr, ptr, ptr, ptr, i32, ptr, ...) @error_throw_as(ptr noundef nonnull %52, ptr noundef nonnull %19, ptr noundef nonnull @.str, ptr noundef nonnull @__func__.index_open, i32 noundef 63, ptr noundef nonnull @.str.4, ptr noundef %54) #6
  unreachable

55:                                               ; preds = %41, %47
  %56 = getelementptr inbounds i8, ptr %4, i64 12
  %57 = load i32, ptr %56, align 1, !tbaa !31
  %.not26 = icmp eq i32 %57, 0
  br i1 %.not26, label %62, label %58, !prof !19

58:                                               ; preds = %55
  %59 = getelementptr inbounds i8, ptr %19, i64 8
  %60 = getelementptr inbounds i8, ptr %0, i64 16
  %61 = call ptr @str_of(ptr noundef nonnull %60)
  call void (ptr, ptr, ptr, ptr, i32, ptr, ...) @error_throw_as(ptr noundef nonnull %59, ptr noundef nonnull %19, ptr noundef nonnull @.str, ptr noundef nonnull @__func__.index_open, i32 noundef 68, ptr noundef nonnull @.str.5, ptr noundef %61) #6
  unreachable

62:                                               ; preds = %55
  call void @llvm.lifetime.end.p0(i64 4096, ptr nonnull %6) #5
  ret void
}

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

; Function Attrs: inlinehint nounwind uwtable
declare hidden void @id_path(ptr noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #2

; Function Attrs: inlinehint nounwind uwtable
declare hidden void @file_open(ptr noundef, ptr noundef) local_unnamed_addr #2

; Function Attrs: inlinehint noreturn nounwind uwtable
declare hidden void @error_throw_as(ptr noundef, ptr noundef, ptr noundef, ptr noundef, i32 noundef, ptr noundef, ...) local_unnamed_addr #3

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare nonnull ptr @llvm.threadlocal.address.p0(ptr nonnull) #4

; Function Attrs: inlinehint nounwind uwtable
declare hidden ptr @str_of(ptr noundef) local_unnamed_addr #2

; Function Attrs: inlinehint nounwind uwtable
declare hidden void @file_pread(ptr noundef, ptr noundef, i32 noundef, i64 noundef) local_unnamed_addr #2

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !10, i64 8}
!6 = !{!"File", !7, i64 0, !10, i64 8, !11, i64 16, !14, i64 40}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"long", !8, i64 0}
!11 = !{!"Str", !12, i64 0, !12, i64 8, !13, i64 16}
!12 = !{!"any pointer", !8, i64 0}
!13 = !{!"_Bool", !8, i64 0}
!14 = !{!"List", !12, i64 0, !12, i64 8}
!15 = !{!"branch_weights", !"expected", i32 1, i32 2000}
!16 = !{!17, !7, i64 8}
!17 = !{!"Index", !7, i64 0, !7, i64 4, !7, i64 8, !7, i64 12, !18, i64 16, !7, i64 32, !7, i64 36, !10, i64 40, !10, i64 48, !10, i64 56, !10, i64 64, !7, i64 72, !10, i64 76, !10, i64 84, !10, i64 92, !7, i64 100, !10, i64 104, !8, i64 112, !8, i64 113, !8, i64 114}
!18 = !{!"Id", !10, i64 0, !10, i64 8}
!19 = !{!"branch_weights", !"expected", i32 2000, i32 1}
!20 = !{!21, !12, i64 312}
!21 = !{!"Runtime", !22, i64 0, !23, i64 8, !12, i64 312}
!22 = !{!"ExceptionMgr", !12, i64 0}
!23 = !{!"Error", !8, i64 0, !7, i64 256, !12, i64 264, !12, i64 272, !7, i64 280, !12, i64 288, !12, i64 296}
!24 = !{!25, !12, i64 16}
!25 = !{!"Context", !12, i64 0, !12, i64 8, !12, i64 16}
!26 = !{!27, !12, i64 32}
!27 = !{!"Global", !12, i64 0, !12, i64 8, !12, i64 16, !12, i64 24, !12, i64 32, !12, i64 40, !12, i64 48}
!28 = !{!17, !7, i64 0}
!29 = !{!17, !7, i64 32}
!30 = !{!17, !10, i64 56}
!31 = !{!17, !7, i64 12}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LowerExpectIntrinsicPass,SROAPass,SimplifyCFGPass