; LLVM IR from 2404589803/LowMemoryLLM :: src/huggingface (tokenizer)

; 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.TokenizerConfig = type { i32, ptr, ptr, i32, i32, ptr, ptr, ptr, ptr, ptr }
%struct.Tokenizer = type { %struct.TokenizerConfig, ptr, ptr, i64, i32 }
%struct.VocabHashTable = type { ptr, i64, i64 }

; Function Attrs: nounwind uwtable
define dso_local i32 @tokenizer_init(ptr noundef %0, ptr noundef %1) #0 {
  %3 = alloca i32, align 4
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  %6 = load ptr, ptr %4, align 8, !tbaa !5
  %7 = icmp ne ptr %6, null
  br i1 %7, label %8, label %16

8:                                                ; preds = %2
  %9 = load ptr, ptr %5, align 8, !tbaa !5
  %10 = icmp ne ptr %9, null
  br i1 %10, label %11, label %16

11:                                               ; preds = %8
  %12 = load ptr, ptr %5, align 8, !tbaa !5
  %13 = getelementptr inbounds %struct.TokenizerConfig, ptr %12, i32 0, i32 1
  %14 = load ptr, ptr %13, align 8, !tbaa !9
  %15 = icmp ne ptr %14, null
  br i1 %15, label %17, label %16

16:                                               ; preds = %11, %8, %2
  store i32 -1, ptr %3, align 4
  br label %170

17:                                               ; preds = %11
  %18 = call noalias ptr @malloc(i64 noundef 104) #4
  %19 = load ptr, ptr %4, align 8, !tbaa !5
  store ptr %18, ptr %19, align 8, !tbaa !5
  %20 = load ptr, ptr %4, align 8, !tbaa !5
  %21 = load ptr, ptr %20, align 8, !tbaa !5
  %22 = icmp ne ptr %21, null
  br i1 %22, label %24, label %23

23:                                               ; preds = %17
  store i32 -1, ptr %3, align 4
  br label %170

24:                                               ; preds = %17
  %25 = load ptr, ptr %4, align 8, !tbaa !5
  %26 = load ptr, ptr %25, align 8, !tbaa !5
  %27 = getelementptr inbounds %struct.Tokenizer, ptr %26, i32 0, i32 0
  %28 = load ptr, ptr %5, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %27, ptr align 8 %28, i64 72, i1 false)
  %29 = load ptr, ptr %5, align 8, !tbaa !5
  %30 = getelementptr inbounds %struct.TokenizerConfig, ptr %29, i32 0, i32 1
  %31 = load ptr, ptr %30, align 8, !tbaa !9
  %32 = call noalias ptr @strdup(ptr noundef %31) #5
  %33 = load ptr, ptr %4, align 8, !tbaa !5
  %34 = load ptr, ptr %33, align 8, !tbaa !5
  %35 = getelementptr inbounds %struct.Tokenizer, ptr %34, i32 0, i32 0
  %36 = getelementptr inbounds %struct.TokenizerConfig, ptr %35, i32 0, i32 1
  store ptr %32, ptr %36, align 8, !tbaa !12
  %37 = load ptr, ptr %5, align 8, !tbaa !5
  %38 = getelementptr inbounds %struct.TokenizerConfig, ptr %37, i32 0, i32 2
  %39 = load ptr, ptr %38, align 8, !tbaa !15
  %40 = icmp ne ptr %39, null
  br i1 %40, label %41, label %50

41:                                               ; preds = %24
  %42 = load ptr, ptr %5, align 8, !tbaa !5
  %43 = getelementptr inbounds %struct.TokenizerConfig, ptr %42, i32 0, i32 2
  %44 = load ptr, ptr %43, align 8, !tbaa !15
  %45 = call noalias ptr @strdup(ptr noundef %44) #5
  %46 = load ptr, ptr %4, align 8, !tbaa !5
  %47 = load ptr, ptr %46, align 8, !tbaa !5
  %48 = getelementptr inbounds %struct.Tokenizer, ptr %47, i32 0, i32 0
  %49 = getelementptr inbounds %struct.TokenizerConfig, ptr %48, i32 0, i32 2
  store ptr %45, ptr %49, align 8, !tbaa !16
  br label %50

50:                                               ; preds = %41, %24
  %51 = load ptr, ptr %5, align 8, !tbaa !5
  %52 = getelementptr inbounds %struct.TokenizerConfig, ptr %51, i32 0, i32 5
  %53 = load ptr, ptr %52, align 8, !tbaa !17
  %54 = icmp ne ptr %53, null
  br i1 %54, label %55, label %64

55:                                               ; preds = %50
  %56 = load ptr, ptr %5, align 8, !tbaa !5
  %57 = getelementptr inbounds %struct.TokenizerConfig, ptr %56, i32 0, i32 5
  %58 = load ptr, ptr %57, align 8, !tbaa !17
  %59 = call noalias ptr @strdup(ptr noundef %58) #5
  %60 = load ptr, ptr %4, align 8, !tbaa !5
  %61 = load ptr, ptr %60, align 8, !tbaa !5
  %62 = getelementptr inbounds %struct.Tokenizer, ptr %61, i32 0, i32 0
  %63 = getelementptr inbounds %struct.TokenizerConfig, ptr %62, i32 0, i32 5
  store ptr %59, ptr %63, align 8, !tbaa !18
  br label %64

64:                                               ; preds = %55, %50
  %65 = load ptr, ptr %5, align 8, !tbaa !5
  %66 = getelementptr inbounds %struct.TokenizerConfig, ptr %65, i32 0, i32 6
  %67 = load ptr, ptr %66, align 8, !tbaa !19
  %68 = icmp ne ptr %67, null
  br i1 %68, label %69, label %78

69:                                               ; preds = %64
  %70 = load ptr, ptr %5, align 8, !tbaa !5
  %71 = getelementptr inbounds %struct.TokenizerConfig, ptr %70, i32 0, i32 6
  %72 = load ptr, ptr %71, align 8, !tbaa !19
  %73 = call noalias ptr @strdup(ptr noundef %72) #5
  %74 = load ptr, ptr %4, align 8, !tbaa !5
  %75 = load ptr, ptr %74, align 8, !tbaa !5
  %76 = getelementptr inbounds %struct.Tokenizer, ptr %75, i32 0, i32 0
  %77 = getelementptr inbounds %struct.TokenizerConfig, ptr %76, i32 0, i32 6
  store ptr %73, ptr %77, align 8, !tbaa !20
  br label %78

78:                                               ; preds = %69, %64
  %79 = load ptr, ptr %5, align 8, !tbaa !5
  %80 = getelementptr inbounds %struct.TokenizerConfig, ptr %79, i32 0, i32 7
  %81 = load ptr, ptr %80, align 8, !tbaa !21
  %82 = icmp ne ptr %81, null
  br i1 %82, label %83, label %92

83:                                               ; preds = %78
  %84 = load ptr, ptr %5, align 8, !tbaa !5
  %85 = getelementptr inbounds %struct.TokenizerConfig, ptr %84, i32 0, i32 7
  %86 = load ptr, ptr %85, align 8, !tbaa !21
  %87 = call noalias ptr @strdup(ptr noundef %86) #5
  %88 = load ptr, ptr %4, align 8, !tbaa !5
  %89 = load ptr, ptr %88, align 8, !tbaa !5
  %90 = getelementptr inbounds %struct.Tokenizer, ptr %89, i32 0, i32 0
  %91 = getelementptr inbounds %struct.TokenizerConfig, ptr %90, i32 0, i32 7
  store ptr %87, ptr %91, align 8, !tbaa !22
  br label %92

92:                                               ; preds = %83, %78
  %93 = load ptr, ptr %5, align 8, !tbaa !5
  %94 = getelementptr inbounds %struct.TokenizerConfig, ptr %93, i32 0, i32 8
  %95 = load ptr, ptr %94, align 8, !tbaa !23
  %96 = icmp ne ptr %95, null
  br i1 %96, label %97, label %106

97:                                               ; preds = %92
  %98 = load ptr, ptr %5, align 8, !tbaa !5
  %99 = getelementptr inbounds %struct.TokenizerConfig, ptr %98, i32 0, i32 8
  %100 = load ptr, ptr %99, align 8, !tbaa !23
  %101 = call noalias ptr @strdup(ptr noundef %100) #5
  %102 = load ptr, ptr %4, align 8, !tbaa !5
  %103 = load ptr, ptr %102, align 8, !tbaa !5
  %104 = getelementptr inbounds %struct.Tokenizer, ptr %103, i32 0, i32 0
  %105 = getelementptr inbounds %struct.TokenizerConfig, ptr %104, i32 0, i32 8
  store ptr %101, ptr %105, align 8, !tbaa !24
  br label %106

106:                                              ; preds = %97, %92
  %107 = load ptr, ptr %5, align 8, !tbaa !5
  %108 = getelementptr inbounds %struct.TokenizerConfig, ptr %107, i32 0, i32 9
  %109 = load ptr, ptr %108, align 8, !tbaa !25
  %110 = icmp ne ptr %109, null
  br i1 %110, label %111, label %120

111:                                              ; preds = %106
  %112 = load ptr, ptr %5, align 8, !tbaa !5
  %113 = getelementptr inbounds %struct.TokenizerConfig, ptr %112, i32 0, i32 9
  %114 = load ptr, ptr %113, align 8, !tbaa !25
  %115 = call noalias ptr @strdup(ptr noundef %114) #5
  %116 = load ptr, ptr %4, align 8, !tbaa !5
  %117 = load ptr, ptr %116, align 8, !tbaa !5
  %118 = getelementptr inbounds %struct.Tokenizer, ptr %117, i32 0, i32 0
  %119 = getelementptr inbounds %struct.TokenizerConfig, ptr %118, i32 0, i32 9
  store ptr %115, ptr %119, align 8, !tbaa !26
  br label %120

120:                                              ; preds = %111, %106
  %121 = call ptr @create_vocab_table(i64 noundef 65536)
  %122 = load ptr, ptr %4, align 8, !tbaa !5
  %123 = load ptr, ptr %122, align 8, !tbaa !5
  %124 = getelementptr inbounds %struct.Tokenizer, ptr %123, i32 0, i32 1
  store ptr %121, ptr %124, align 8, !tbaa !27
  %125 = load ptr, ptr %4, align 8, !tbaa !5
  %126 = load ptr, ptr %125, align 8, !tbaa !5
  %127 = getelementptr inbounds %struct.Tokenizer, ptr %126, i32 0, i32 1
  %128 = load ptr, ptr %127, align 8, !tbaa !27
  %129 = icmp ne ptr %128, null
  br i1 %129, label %133, label %130

130:                                              ; preds = %120
  %131 = load ptr, ptr %4, align 8, !tbaa !5
  %132 = load ptr, ptr %131, align 8, !tbaa !5
  call void @tokenizer_free(ptr noundef %132)
  store i32 -1, ptr %3, align 4
  br label %170

133:                                              ; preds = %120
  %134 = load ptr, ptr %4, align 8, !tbaa !5
  %135 = load ptr, ptr %134, align 8, !tbaa !5
  %136 = getelementptr inbounds %struct.Tokenizer, ptr %135, i32 0, i32 1
  %137 = load ptr, ptr %136, align 8, !tbaa !27
  %138 = load ptr, ptr %5, align 8, !tbaa !5
  %139 = getelementptr inbounds %struct.TokenizerConfig, ptr %138, i32 0, i32 1
  %140 = load ptr, ptr %139, align 8, !tbaa !9
  %141 = call i32 @load_vocab_file(ptr noundef %137, ptr noundef %140)
  %142 = icmp ne i32 %141, 0
  br i1 %142, label %143, label %146

143:                                              ; preds = %133
  %144 = load ptr, ptr %4, align 8, !tbaa !5
  %145 = load ptr, ptr %144, align 8, !tbaa !5
  call void @tokenizer_free(ptr noundef %145)
  store i32 -1, ptr %3, align 4
  br label %170

146:                                              ; preds = %133
  %147 = load ptr, ptr %5, align 8, !tbaa !5
  %148 = getelementptr inbounds %struct.TokenizerConfig, ptr %147, i32 0, i32 0
  %149 = load i32, ptr %148, align 8, !tbaa !28
  %150 = icmp eq i32 %149, 0
  br i1 %150, label %151, label %157

151:                                              ; preds = %146
  %152 = load ptr, ptr %5, align 8, !tbaa !5
  %153 = getelementptr inbounds %struct.TokenizerConfig, ptr %152, i32 0, i32 2
  %154 = load ptr, ptr %153, align 8, !tbaa !15
  %155 = icmp ne ptr %154, null
  br i1 %155, label %156, label %157

156:                                              ; preds = %151
  br label %157

157:                                              ; preds = %156, %151, %146
  %158 = load ptr, ptr %4, align 8, !tbaa !5
  %159 = load ptr, ptr %158, align 8, !tbaa !5
  %160 = getelementptr inbounds %struct.Tokenizer, ptr %159, i32 0, i32 1
  %161 = load ptr, ptr %160, align 8, !tbaa !27
  %162 = getelementptr inbounds %struct.VocabHashTable, ptr %161, i32 0, i32 1
  %163 = load i64, ptr %162, align 8, !tbaa !29
  %164 = load ptr, ptr %4, align 8, !tbaa !5
  %165 = load ptr, ptr %164, align 8, !tbaa !5
  %166 = getelementptr inbounds %struct.Tokenizer, ptr %165, i32 0, i32 3
  store i64 %163, ptr %166, align 8, !tbaa !31
  %167 = load ptr, ptr %4, align 8, !tbaa !5
  %168 = load ptr, ptr %167, align 8, !tbaa !5
  %169 = getelementptr inbounds %struct.Tokenizer, ptr %168, i32 0, i32 4
  store i32 1, ptr %169, align 8, !tbaa !32
  store i32 0, ptr %3, align 4
  br label %170

170:                                              ; preds = %157, %143, %130, %23, %16
  %171 = load i32, ptr %3, align 4
  ret i32 %171
}

; Function Attrs: nounwind allocsize(0)
declare noalias ptr @malloc(i64 noundef) #1

; 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) #2

; Function Attrs: nounwind
declare noalias ptr @strdup(ptr noundef) #3

; Function Attrs: nounwind uwtable
declare hidden ptr @create_vocab_table(i64 noundef) #0

; Function Attrs: nounwind uwtable
declare dso_local void @tokenizer_free(ptr noundef) #0

; Function Attrs: nounwind uwtable
declare hidden i32 @load_vocab_file(ptr noundef, ptr noundef) #0

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 = { nounwind 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 #2 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
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 = { nounwind allocsize(0) }
attributes #5 = { nounwind }

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

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


; 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"

; Function Attrs: nounwind uwtable
define dso_local range(i32 -1, 1) i32 @tokenizer_init(ptr noundef %0, ptr noundef readonly %1) local_unnamed_addr #0 {
  %3 = icmp ne ptr %0, null
  %4 = icmp ne ptr %1, null
  %or.cond = and i1 %3, %4
  br i1 %or.cond, label %5, label %69

5:                                                ; preds = %2
  %6 = getelementptr inbounds i8, ptr %1, i64 8
  %7 = load ptr, ptr %6, align 8, !tbaa !5
  %.not = icmp eq ptr %7, null
  br i1 %.not, label %69, label %8

8:                                                ; preds = %5
  %9 = tail call noalias dereferenceable_or_null(104) ptr @malloc(i64 noundef 104) #4
  store ptr %9, ptr %0, align 8, !tbaa !11
  %.not48 = icmp eq ptr %9, null
  br i1 %.not48, label %69, label %10

10:                                               ; preds = %8
  tail call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(72) %9, ptr noundef nonnull align 8 dereferenceable(72) %1, i64 72, i1 false)
  %11 = load ptr, ptr %6, align 8, !tbaa !5
  %12 = tail call noalias ptr @strdup(ptr noundef %11) #5
  %13 = getelementptr inbounds i8, ptr %9, i64 8
  store ptr %12, ptr %13, align 8, !tbaa !12
  %14 = getelementptr inbounds i8, ptr %1, i64 16
  %15 = load ptr, ptr %14, align 8, !tbaa !15
  %.not49 = icmp eq ptr %15, null
  br i1 %.not49, label %19, label %16

16:                                               ; preds = %10
  %17 = tail call noalias ptr @strdup(ptr noundef nonnull %15) #5
  %18 = getelementptr inbounds i8, ptr %9, i64 16
  store ptr %17, ptr %18, align 8, !tbaa !16
  br label %19

19:                                               ; preds = %16, %10
  %20 = getelementptr inbounds i8, ptr %1, i64 32
  %21 = load ptr, ptr %20, align 8, !tbaa !17
  %.not50 = icmp eq ptr %21, null
  br i1 %.not50, label %25, label %22

22:                                               ; preds = %19
  %23 = tail call noalias ptr @strdup(ptr noundef nonnull %21) #5
  %24 = getelementptr inbounds i8, ptr %9, i64 32
  store ptr %23, ptr %24, align 8, !tbaa !18
  br label %25

25:                                               ; preds = %22, %19
  %26 = getelementptr inbounds i8, ptr %1, i64 40
  %27 = load ptr, ptr %26, align 8, !tbaa !19
  %.not51 = icmp eq ptr %27, null
  br i1 %.not51, label %31, label %28

28:                                               ; preds = %25
  %29 = tail call noalias ptr @strdup(ptr noundef nonnull %27) #5
  %30 = getelementptr inbounds i8, ptr %9, i64 40
  store ptr %29, ptr %30, align 8, !tbaa !20
  br label %31

31:                                               ; preds = %28, %25
  %32 = getelementptr inbounds i8, ptr %1, i64 48
  %33 = load ptr, ptr %32, align 8, !tbaa !21
  %.not52 = icmp eq ptr %33, null
  br i1 %.not52, label %37, label %34

34:                                               ; preds = %31
  %35 = tail call noalias ptr @strdup(ptr noundef nonnull %33) #5
  %36 = getelementptr inbounds i8, ptr %9, i64 48
  store ptr %35, ptr %36, align 8, !tbaa !22
  br label %37

37:                                               ; preds = %34, %31
  %38 = getelementptr inbounds i8, ptr %1, i64 56
  %39 = load ptr, ptr %38, align 8, !tbaa !23
  %.not53 = icmp eq ptr %39, null
  br i1 %.not53, label %43, label %40

40:                                               ; preds = %37
  %41 = tail call noalias ptr @strdup(ptr noundef nonnull %39) #5
  %42 = getelementptr inbounds i8, ptr %9, i64 56
  store ptr %41, ptr %42, align 8, !tbaa !24
  br label %43

43:                                               ; preds = %40, %37
  %44 = getelementptr inbounds i8, ptr %1, i64 64
  %45 = load ptr, ptr %44, align 8, !tbaa !25
  %.not54 = icmp eq ptr %45, null
  br i1 %.not54, label %49, label %46

46:                                               ; preds = %43
  %47 = tail call noalias ptr @strdup(ptr noundef nonnull %45) #5
  %48 = getelementptr inbounds i8, ptr %9, i64 64
  store ptr %47, ptr %48, align 8, !tbaa !26
  br label %49

49:                                               ; preds = %46, %43
  %50 = tail call ptr @create_vocab_table(i64 noundef 65536)
  %51 = load ptr, ptr %0, align 8, !tbaa !11
  %52 = getelementptr inbounds i8, ptr %51, i64 72
  store ptr %50, ptr %52, align 8, !tbaa !27
  %53 = load ptr, ptr %0, align 8, !tbaa !11
  %54 = getelementptr inbounds i8, ptr %53, i64 72
  %55 = load ptr, ptr %54, align 8, !tbaa !27
  %.not55 = icmp eq ptr %55, null
  br i1 %.not55, label %56, label %57

56:                                               ; preds = %49
  tail call void @tokenizer_free(ptr noundef nonnull %53)
  br label %69

57:                                               ; preds = %49
  %58 = load ptr, ptr %6, align 8, !tbaa !5
  %59 = tail call i32 @load_vocab_file(ptr noundef nonnull %55, ptr noundef %58)
  %.not56 = icmp eq i32 %59, 0
  %60 = load ptr, ptr %0, align 8, !tbaa !11
  br i1 %.not56, label %62, label %61

61:                                               ; preds = %57
  tail call void @tokenizer_free(ptr noundef %60)
  br label %69

62:                                               ; preds = %57
  %63 = getelementptr inbounds i8, ptr %60, i64 72
  %64 = load ptr, ptr %63, align 8, !tbaa !27
  %65 = getelementptr inbounds i8, ptr %64, i64 8
  %66 = load i64, ptr %65, align 8, !tbaa !28
  %67 = getelementptr inbounds i8, ptr %60, i64 88
  store i64 %66, ptr %67, align 8, !tbaa !30
  %68 = getelementptr inbounds i8, ptr %60, i64 96
  store i32 1, ptr %68, align 8, !tbaa !31
  br label %69

69:                                               ; preds = %8, %2, %5, %62, %61, %56
  %.0 = phi i32 [ -1, %61 ], [ 0, %62 ], [ -1, %56 ], [ -1, %5 ], [ -1, %2 ], [ -1, %8 ]
  ret i32 %.0
}

; Function Attrs: mustprogress nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) memory(inaccessiblemem: readwrite)
declare noalias noundef ptr @malloc(i64 noundef) local_unnamed_addr #1

; 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) #2

; Function Attrs: mustprogress nofree nounwind willreturn memory(argmem: readwrite, inaccessiblemem: readwrite)
declare noalias ptr @strdup(ptr nocapture noundef readonly) local_unnamed_addr #3

; Function Attrs: nounwind uwtable
declare hidden ptr @create_vocab_table(i64 noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare dso_local void @tokenizer_free(ptr noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare hidden i32 @load_vocab_file(ptr noundef, ptr noundef) local_unnamed_addr #0

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 nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) memory(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 #2 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { mustprogress nofree nounwind willreturn 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 #4 = { nounwind allocsize(0) }
attributes #5 = { 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, !10, i64 8}
!6 = !{!"", !7, i64 0, !10, i64 8, !10, i64 16, !7, i64 24, !7, i64 28, !10, i64 32, !10, i64 40, !10, i64 48, !10, i64 56, !10, i64 64}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"any pointer", !8, i64 0}
!11 = !{!10, !10, i64 0}
!12 = !{!13, !10, i64 8}
!13 = !{!"", !6, i64 0, !10, i64 72, !10, i64 80, !14, i64 88, !7, i64 96}
!14 = !{!"long", !8, i64 0}
!15 = !{!6, !10, i64 16}
!16 = !{!13, !10, i64 16}
!17 = !{!6, !10, i64 32}
!18 = !{!13, !10, i64 32}
!19 = !{!6, !10, i64 40}
!20 = !{!13, !10, i64 40}
!21 = !{!6, !10, i64 48}
!22 = !{!13, !10, i64 48}
!23 = !{!6, !10, i64 56}
!24 = !{!13, !10, i64 56}
!25 = !{!6, !10, i64 64}
!26 = !{!13, !10, i64 64}
!27 = !{!13, !10, i64 72}
!28 = !{!29, !14, i64 8}
!29 = !{!"", !10, i64 0, !14, i64 8, !14, i64 16}
!30 = !{!13, !14, i64 88}
!31 = !{!13, !7, i64 96}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass