; LLVM IR from lionsoul2014/friso :: src (tst-lex)

; 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.friso_config_struct = type { i16, i16, i16, i16, i16, i16, i16, i16, i16, i16, i32, i32, ptr, ptr, [13 x i8] }
%struct.friso_entry = type { ptr, i32 }
%struct.lex_entry_cdt = type { i8, i8, i8, i8, i32, ptr, ptr, ptr, i32 }
%struct.friso_array_entry = type { ptr, i32, i32 }

@.str = external hidden unnamed_addr constant [35 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [39 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [38 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [39 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [37 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [37 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [38 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [38 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [38 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [39 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.26 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.27 = external hidden unnamed_addr constant [45 x i8], align 1
@.str.28 = external hidden unnamed_addr constant [46 x i8], align 1
@.str.29 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.30 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.31 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.32 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.33 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.34 = external hidden unnamed_addr constant [37 x i8], align 1
@.str.35 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.36 = external hidden unnamed_addr constant [19 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca [15 x i8], align 1
  %9 = alloca i64, align 8
  %10 = alloca i64, align 8
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  store i32 0, ptr %3, align 4
  store i32 %0, ptr %4, align 4, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #5
  store i32 0, ptr %7, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 15, ptr %8) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #5
  %13 = call i64 @clock() #5
  store i64 %13, ptr %9, align 8, !tbaa !11
  %14 = call ptr @friso_new()
  store ptr %14, ptr %11, align 8, !tbaa !9
  %15 = call ptr @friso_new_config()
  store ptr %15, ptr %12, align 8, !tbaa !9
  %16 = load ptr, ptr %12, align 8, !tbaa !9
  %17 = getelementptr inbounds %struct.friso_config_struct, ptr %16, i32 0, i32 4
  store i16 0, ptr %17, align 8, !tbaa !13
  %18 = call ptr @friso_dic_new()
  %19 = load ptr, ptr %11, align 8, !tbaa !9
  %20 = getelementptr inbounds %struct.friso_entry, ptr %19, i32 0, i32 0
  store ptr %18, ptr %20, align 8, !tbaa !16
  %21 = load ptr, ptr %11, align 8, !tbaa !9
  %22 = load ptr, ptr %12, align 8, !tbaa !9
  call void @friso_dic_load(ptr noundef %21, ptr noundef %22, i32 noundef 0, ptr noundef @.str, i32 noundef 15)
  %23 = load ptr, ptr %11, align 8, !tbaa !9
  %24 = load ptr, ptr %12, align 8, !tbaa !9
  call void @friso_dic_load(ptr noundef %23, ptr noundef %24, i32 noundef 0, ptr noundef @.str.1, i32 noundef 15)
  %25 = load ptr, ptr %11, align 8, !tbaa !9
  %26 = load ptr, ptr %12, align 8, !tbaa !9
  call void @friso_dic_load(ptr noundef %25, ptr noundef %26, i32 noundef 0, ptr noundef @.str.2, i32 noundef 15)
  %27 = load ptr, ptr %11, align 8, !tbaa !9
  %28 = load ptr, ptr %12, align 8, !tbaa !9
  call void @friso_dic_load(ptr noundef %27, ptr noundef %28, i32 noundef 0, ptr noundef @.str.3, i32 noundef 15)
  %29 = load ptr, ptr %11, align 8, !tbaa !9
  %30 = load ptr, ptr %12, align 8, !tbaa !9
  call void @friso_dic_load(ptr noundef %29, ptr noundef %30, i32 noundef 0, ptr noundef @.str.4, i32 noundef 15)
  %31 = load ptr, ptr %11, align 8, !tbaa !9
  %32 = load ptr, ptr %12, align 8, !tbaa !9
  call void @friso_dic_load(ptr noundef %31, ptr noundef %32, i32 noundef 0, ptr noundef @.str.5, i32 noundef 15)
  %33 = load ptr, ptr %11, align 8, !tbaa !9
  %34 = load ptr, ptr %12, align 8, !tbaa !9
  call void @friso_dic_load(ptr noundef %33, ptr noundef %34, i32 noundef 0, ptr noundef @.str.6, i32 noundef 15)
  %35 = load ptr, ptr %11, align 8, !tbaa !9
  %36 = load ptr, ptr %12, align 8, !tbaa !9
  call void @friso_dic_load(ptr noundef %35, ptr noundef %36, i32 noundef 0, ptr noundef @.str.7, i32 noundef 15)
  %37 = load ptr, ptr %11, align 8, !tbaa !9
  %38 = load ptr, ptr %12, align 8, !tbaa !9
  call void @friso_dic_load(ptr noundef %37, ptr noundef %38, i32 noundef 0, ptr noundef @.str.8, i32 noundef 15)
  %39 = load ptr, ptr %11, align 8, !tbaa !9
  %40 = load ptr, ptr %12, align 8, !tbaa !9
  call void @friso_dic_load(ptr noundef %39, ptr noundef %40, i32 noundef 0, ptr noundef @.str.9, i32 noundef 15)
  %41 = load ptr, ptr %11, align 8, !tbaa !9
  %42 = load ptr, ptr %12, align 8, !tbaa !9
  call void @friso_dic_load(ptr noundef %41, ptr noundef %42, i32 noundef 0, ptr noundef @.str.10, i32 noundef 15)
  %43 = load ptr, ptr %11, align 8, !tbaa !9
  %44 = load ptr, ptr %12, align 8, !tbaa !9
  call void @friso_dic_load(ptr noundef %43, ptr noundef %44, i32 noundef 0, ptr noundef @.str.11, i32 noundef 15)
  %45 = load ptr, ptr %11, align 8, !tbaa !9
  %46 = load ptr, ptr %12, align 8, !tbaa !9
  call void @friso_dic_load(ptr noundef %45, ptr noundef %46, i32 noundef 0, ptr noundef @.str.12, i32 noundef 15)
  %47 = load ptr, ptr %11, align 8, !tbaa !9
  %48 = load ptr, ptr %12, align 8, !tbaa !9
  call void @friso_dic_load(ptr noundef %47, ptr noundef %48, i32 noundef 1, ptr noundef @.str.13, i32 noundef 15)
  %49 = load ptr, ptr %11, align 8, !tbaa !9
  %50 = load ptr, ptr %12, align 8, !tbaa !9
  call void @friso_dic_load(ptr noundef %49, ptr noundef %50, i32 noundef 2, ptr noundef @.str.14, i32 noundef 15)
  %51 = load ptr, ptr %11, align 8, !tbaa !9
  %52 = load ptr, ptr %12, align 8, !tbaa !9
  call void @friso_dic_load(ptr noundef %51, ptr noundef %52, i32 noundef 4, ptr noundef @.str.15, i32 noundef 15)
  %53 = load ptr, ptr %11, align 8, !tbaa !9
  %54 = load ptr, ptr %12, align 8, !tbaa !9
  call void @friso_dic_load(ptr noundef %53, ptr noundef %54, i32 noundef 5, ptr noundef @.str.16, i32 noundef 15)
  %55 = load ptr, ptr %11, align 8, !tbaa !9
  %56 = load ptr, ptr %12, align 8, !tbaa !9
  call void @friso_dic_load(ptr noundef %55, ptr noundef %56, i32 noundef 6, ptr noundef @.str.17, i32 noundef 15)
  %57 = load ptr, ptr %11, align 8, !tbaa !9
  %58 = load ptr, ptr %12, align 8, !tbaa !9
  call void @friso_dic_load(ptr noundef %57, ptr noundef %58, i32 noundef 7, ptr noundef @.str.18, i32 noundef 15)
  %59 = load ptr, ptr %11, align 8, !tbaa !9
  %60 = load ptr, ptr %12, align 8, !tbaa !9
  call void @friso_dic_load(ptr noundef %59, ptr noundef %60, i32 noundef 8, ptr noundef @.str.19, i32 noundef 15)
  %61 = call i64 @clock() #5
  store i64 %61, ptr %10, align 8, !tbaa !11
  %62 = load i64, ptr %10, align 8, !tbaa !11
  %63 = load i64, ptr %9, align 8, !tbaa !11
  %64 = sub nsw i64 %62, %63
  %65 = sitofp i64 %64 to double
  %66 = fdiv double %65, 1.000000e+06
  %67 = load ptr, ptr %11, align 8, !tbaa !9
  %68 = getelementptr inbounds %struct.friso_entry, ptr %67, i32 0, i32 0
  %69 = load ptr, ptr %68, align 8, !tbaa !16
  %70 = call i32 @friso_all_dic_size(ptr noundef %69)
  %71 = call i32 (ptr, ...) @printf(ptr noundef @.str.20, double noundef %66, i32 noundef %70)
  br label %72

72:                                               ; preds = %151, %103, %79, %2
  br label %73

73:                                               ; preds = %72
  %74 = load i32, ptr %7, align 4, !tbaa !5
  %75 = call i32 (ptr, ...) @printf(ptr noundef @.str.21, i32 noundef %74)
  %76 = getelementptr inbounds [15 x i8], ptr %8, i64 0, i64 0
  %77 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str.22, ptr noundef %76)
  %78 = icmp ne i32 %77, 1
  br i1 %78, label %79, label %81

79:                                               ; preds = %73
  %80 = call i32 (ptr, ...) @printf(ptr noundef @.str.23)
  br label %72

81:                                               ; preds = %73
  %82 = getelementptr inbounds [15 x i8], ptr %8, i64 0, i64 0
  %83 = call i32 @strcmp(ptr noundef %82, ptr noundef @.str.24) #6
  %84 = icmp eq i32 %83, 0
  br i1 %84, label %85, label %86

85:                                               ; preds = %81
  br label %152

86:                                               ; preds = %81
  %87 = getelementptr inbounds [15 x i8], ptr %8, i64 0, i64 0
  %88 = call i32 @strcmp(ptr noundef %87, ptr noundef @.str.25) #6
  %89 = icmp eq i32 %88, 0
  br i1 %89, label %90, label %95

90:                                               ; preds = %86
  %91 = call i32 (ptr, ...) @printf(ptr noundef @.str.26)
  %92 = call i32 (ptr, ...) @printf(ptr noundef @.str.27)
  %93 = call i32 (ptr, ...) @printf(ptr noundef @.str.28)
  %94 = call i32 (ptr, ...) @printf(ptr noundef @.str.29)
  br label %150

95:                                               ; preds = %86
  %96 = getelementptr inbounds [15 x i8], ptr %8, i64 0, i64 0
  %97 = call i32 @strcmp(ptr noundef %96, ptr noundef @.str.30) #6
  %98 = icmp eq i32 %97, 0
  br i1 %98, label %99, label %106

99:                                               ; preds = %95
  %100 = call i32 (ptr, ...) @printf(ptr noundef @.str.31)
  %101 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str.32, ptr noundef %7)
  %102 = icmp ne i32 %101, 1
  br i1 %102, label %103, label %105

103:                                              ; preds = %99
  %104 = call i32 (ptr, ...) @printf(ptr noundef @.str.33)
  br label %72

105:                                              ; preds = %99
  br label %149

106:                                              ; preds = %95
  %107 = call i64 @clock() #5
  store i64 %107, ptr %9, align 8, !tbaa !11
  %108 = load ptr, ptr %11, align 8, !tbaa !9
  %109 = getelementptr inbounds %struct.friso_entry, ptr %108, i32 0, i32 0
  %110 = load ptr, ptr %109, align 8, !tbaa !16
  %111 = load i32, ptr %7, align 4, !tbaa !5
  %112 = getelementptr inbounds [15 x i8], ptr %8, i64 0, i64 0
  %113 = call ptr @friso_dic_get(ptr noundef %110, i32 noundef %111, ptr noundef %112)
  store ptr %113, ptr %6, align 8, !tbaa !9
  %114 = call i64 @clock() #5
  store i64 %114, ptr %10, align 8, !tbaa !11
  %115 = load ptr, ptr %6, align 8, !tbaa !9
  %116 = icmp ne ptr %115, null
  br i1 %116, label %117, label %145

117:                                              ; preds = %106
  %118 = load ptr, ptr %6, align 8, !tbaa !9
  %119 = getelementptr inbounds %struct.lex_entry_cdt, ptr %118, i32 0, i32 5
  %120 = load ptr, ptr %119, align 8, !tbaa !18
  %121 = load ptr, ptr %6, align 8, !tbaa !9
  %122 = getelementptr inbounds %struct.lex_entry_cdt, ptr %121, i32 0, i32 6
  %123 = load ptr, ptr %122, align 8, !tbaa !20
  %124 = icmp eq ptr %123, null
  br i1 %124, label %125, label %126

125:                                              ; preds = %117
  br label %134

126:                                              ; preds = %117
  %127 = load ptr, ptr %6, align 8, !tbaa !9
  %128 = getelementptr inbounds %struct.lex_entry_cdt, ptr %127, i32 0, i32 6
  %129 = load ptr, ptr %128, align 8, !tbaa !20
  %130 = getelementptr inbounds %struct.friso_array_entry, ptr %129, i32 0, i32 0
  %131 = load ptr, ptr %130, align 8, !tbaa !21
  %132 = getelementptr inbounds ptr, ptr %131, i64 0
  %133 = load ptr, ptr %132, align 8, !tbaa !9
  br label %134

134:                                              ; preds = %126, %125
  %135 = phi ptr [ @.str.35, %125 ], [ %133, %126 ]
  %136 = load ptr, ptr %6, align 8, !tbaa !9
  %137 = getelementptr inbounds %struct.lex_entry_cdt, ptr %136, i32 0, i32 8
  %138 = load i32, ptr %137, align 8, !tbaa !23
  %139 = load i64, ptr %10, align 8, !tbaa !11
  %140 = load i64, ptr %9, align 8, !tbaa !11
  %141 = sub nsw i64 %139, %140
  %142 = sitofp i64 %141 to double
  %143 = fdiv double %142, 1.000000e+06
  %144 = call i32 (ptr, ...) @printf(ptr noundef @.str.34, ptr noundef %120, ptr noundef %135, i32 noundef %138, double noundef %143)
  br label %148

145:                                              ; preds = %106
  %146 = getelementptr inbounds [15 x i8], ptr %8, i64 0, i64 0
  %147 = call i32 (ptr, ...) @printf(ptr noundef @.str.36, ptr noundef %146)
  br label %148

148:                                              ; preds = %145, %134
  br label %149

149:                                              ; preds = %148, %105
  br label %150

150:                                              ; preds = %149, %90
  br label %151

151:                                              ; preds = %150
  br label %72

152:                                              ; preds = %85
  %153 = load ptr, ptr %11, align 8, !tbaa !9
  call void @friso_free(ptr noundef %153)
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 15, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #5
  ret i32 0
}

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

; Function Attrs: nounwind
declare i64 @clock() #2

declare ptr @friso_new() #3

declare ptr @friso_new_config() #3

declare ptr @friso_dic_new() #3

declare void @friso_dic_load(ptr noundef, ptr noundef, i32 noundef, ptr noundef, i32 noundef) #3

declare i32 @printf(ptr noundef, ...) #3

declare i32 @friso_all_dic_size(ptr noundef) #3

declare i32 @__isoc99_scanf(ptr noundef, ...) #3

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

declare ptr @friso_dic_get(ptr noundef, i32 noundef, ptr noundef) #3

declare void @friso_free(ptr noundef) #3

; 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 = { 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 #3 = { "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 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 #5 = { nounwind }
attributes #6 = { 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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"long", !7, i64 0}
!13 = !{!14, !15, i64 8}
!14 = !{!"friso_config_struct", !15, i64 0, !15, i64 2, !15, i64 4, !15, i64 6, !15, i64 8, !15, i64 10, !15, i64 12, !15, i64 14, !15, i64 16, !15, i64 18, !6, i64 20, !6, i64 24, !10, i64 32, !10, i64 40, !7, i64 48}
!15 = !{!"short", !7, i64 0}
!16 = !{!17, !10, i64 0}
!17 = !{!"", !10, i64 0, !6, i64 8}
!18 = !{!19, !10, i64 8}
!19 = !{!"", !7, i64 0, !7, i64 1, !7, i64 2, !7, i64 3, !6, i64 4, !10, i64 8, !10, i64 16, !10, i64 24, !6, i64 32}
!20 = !{!19, !10, i64 16}
!21 = !{!22, !10, i64 0}
!22 = !{!"", !10, i64 0, !6, i64 8, !6, i64 12}
!23 = !{!19, !6, i64 32}


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

@.str = external hidden unnamed_addr constant [35 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [39 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [38 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [39 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [37 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [37 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [38 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [38 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [38 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [39 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.26 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.27 = external hidden unnamed_addr constant [45 x i8], align 1
@.str.28 = external hidden unnamed_addr constant [46 x i8], align 1
@.str.29 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.30 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.31 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.32 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.33 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.34 = external hidden unnamed_addr constant [37 x i8], align 1
@.str.35 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.36 = external hidden unnamed_addr constant [19 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local noundef i32 @main(i32 noundef %0, ptr nocapture noundef readnone %1) local_unnamed_addr #0 {
  %3 = alloca i32, align 4
  %4 = alloca [15 x i8], align 1
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #6
  store i32 0, ptr %3, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 15, ptr nonnull %4) #6
  %5 = tail call i64 @clock() #6
  %6 = tail call ptr @friso_new() #6
  %7 = tail call ptr @friso_new_config() #6
  %8 = getelementptr inbounds i8, ptr %7, i64 8
  store i16 0, ptr %8, align 8, !tbaa !9
  %9 = tail call ptr @friso_dic_new() #6
  store ptr %9, ptr %6, align 8, !tbaa !13
  tail call void @friso_dic_load(ptr noundef nonnull %6, ptr noundef %7, i32 noundef 0, ptr noundef nonnull @.str, i32 noundef 15) #6
  tail call void @friso_dic_load(ptr noundef nonnull %6, ptr noundef %7, i32 noundef 0, ptr noundef nonnull @.str.1, i32 noundef 15) #6
  tail call void @friso_dic_load(ptr noundef nonnull %6, ptr noundef %7, i32 noundef 0, ptr noundef nonnull @.str.2, i32 noundef 15) #6
  tail call void @friso_dic_load(ptr noundef nonnull %6, ptr noundef %7, i32 noundef 0, ptr noundef nonnull @.str.3, i32 noundef 15) #6
  tail call void @friso_dic_load(ptr noundef nonnull %6, ptr noundef %7, i32 noundef 0, ptr noundef nonnull @.str.4, i32 noundef 15) #6
  tail call void @friso_dic_load(ptr noundef nonnull %6, ptr noundef %7, i32 noundef 0, ptr noundef nonnull @.str.5, i32 noundef 15) #6
  tail call void @friso_dic_load(ptr noundef nonnull %6, ptr noundef %7, i32 noundef 0, ptr noundef nonnull @.str.6, i32 noundef 15) #6
  tail call void @friso_dic_load(ptr noundef nonnull %6, ptr noundef %7, i32 noundef 0, ptr noundef nonnull @.str.7, i32 noundef 15) #6
  tail call void @friso_dic_load(ptr noundef nonnull %6, ptr noundef %7, i32 noundef 0, ptr noundef nonnull @.str.8, i32 noundef 15) #6
  tail call void @friso_dic_load(ptr noundef nonnull %6, ptr noundef %7, i32 noundef 0, ptr noundef nonnull @.str.9, i32 noundef 15) #6
  tail call void @friso_dic_load(ptr noundef nonnull %6, ptr noundef %7, i32 noundef 0, ptr noundef nonnull @.str.10, i32 noundef 15) #6
  tail call void @friso_dic_load(ptr noundef nonnull %6, ptr noundef %7, i32 noundef 0, ptr noundef nonnull @.str.11, i32 noundef 15) #6
  tail call void @friso_dic_load(ptr noundef nonnull %6, ptr noundef %7, i32 noundef 0, ptr noundef nonnull @.str.12, i32 noundef 15) #6
  tail call void @friso_dic_load(ptr noundef nonnull %6, ptr noundef %7, i32 noundef 1, ptr noundef nonnull @.str.13, i32 noundef 15) #6
  tail call void @friso_dic_load(ptr noundef nonnull %6, ptr noundef %7, i32 noundef 2, ptr noundef nonnull @.str.14, i32 noundef 15) #6
  tail call void @friso_dic_load(ptr noundef nonnull %6, ptr noundef %7, i32 noundef 4, ptr noundef nonnull @.str.15, i32 noundef 15) #6
  tail call void @friso_dic_load(ptr noundef nonnull %6, ptr noundef %7, i32 noundef 5, ptr noundef nonnull @.str.16, i32 noundef 15) #6
  tail call void @friso_dic_load(ptr noundef nonnull %6, ptr noundef %7, i32 noundef 6, ptr noundef nonnull @.str.17, i32 noundef 15) #6
  tail call void @friso_dic_load(ptr noundef nonnull %6, ptr noundef %7, i32 noundef 7, ptr noundef nonnull @.str.18, i32 noundef 15) #6
  tail call void @friso_dic_load(ptr noundef nonnull %6, ptr noundef %7, i32 noundef 8, ptr noundef nonnull @.str.19, i32 noundef 15) #6
  %10 = tail call i64 @clock() #6
  %11 = sub nsw i64 %10, %5
  %12 = sitofp i64 %11 to double
  %13 = fdiv double %12, 1.000000e+06
  %14 = load ptr, ptr %6, align 8, !tbaa !13
  %15 = tail call i32 @friso_all_dic_size(ptr noundef %14) #6
  %16 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.20, double noundef %13, i32 noundef %15)
  br label %17

17:                                               ; preds = %.backedge, %2
  %18 = phi i32 [ %.pre, %.backedge ], [ 0, %2 ]
  %19 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.21, i32 noundef %18)
  %20 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.22, ptr noundef nonnull %4)
  %.not = icmp eq i32 %20, 1
  br i1 %.not, label %23, label %21

21:                                               ; preds = %17
  %22 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.23)
  br label %.backedge

.backedge:                                        ; preds = %37, %65, %57, %29, %21, %40
  %.pre = load i32, ptr %3, align 4, !tbaa !5
  br label %17

23:                                               ; preds = %17
  %24 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %4, ptr noundef nonnull dereferenceable(1) @.str.24) #7
  %25 = icmp eq i32 %24, 0
  br i1 %25, label %67, label %26

26:                                               ; preds = %23
  %27 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %4, ptr noundef nonnull dereferenceable(1) @.str.25) #7
  %28 = icmp eq i32 %27, 0
  br i1 %28, label %29, label %34

29:                                               ; preds = %26
  %30 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.26)
  %31 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.27)
  %32 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.28)
  %33 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.29)
  br label %.backedge

34:                                               ; preds = %26
  %35 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %4, ptr noundef nonnull dereferenceable(1) @.str.30) #7
  %36 = icmp eq i32 %35, 0
  br i1 %36, label %37, label %42

37:                                               ; preds = %34
  %38 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.31)
  %39 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.32, ptr noundef nonnull %3)
  %.not55 = icmp eq i32 %39, 1
  br i1 %.not55, label %.backedge, label %40

40:                                               ; preds = %37
  %41 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.33)
  br label %.backedge

42:                                               ; preds = %34
  %43 = call i64 @clock() #6
  %44 = load ptr, ptr %6, align 8, !tbaa !13
  %45 = load i32, ptr %3, align 4, !tbaa !5
  %46 = call ptr @friso_dic_get(ptr noundef %44, i32 noundef %45, ptr noundef nonnull %4) #6
  %47 = call i64 @clock() #6
  %.not54 = icmp eq ptr %46, null
  br i1 %.not54, label %65, label %48

48:                                               ; preds = %42
  %49 = getelementptr inbounds i8, ptr %46, i64 8
  %50 = load ptr, ptr %49, align 8, !tbaa !15
  %51 = getelementptr inbounds i8, ptr %46, i64 16
  %52 = load ptr, ptr %51, align 8, !tbaa !17
  %53 = icmp eq ptr %52, null
  br i1 %53, label %57, label %54

54:                                               ; preds = %48
  %55 = load ptr, ptr %52, align 8, !tbaa !18
  %56 = load ptr, ptr %55, align 8, !tbaa !20
  br label %57

57:                                               ; preds = %48, %54
  %58 = phi ptr [ %56, %54 ], [ @.str.35, %48 ]
  %59 = getelementptr inbounds i8, ptr %46, i64 32
  %60 = load i32, ptr %59, align 8, !tbaa !21
  %61 = sub nsw i64 %47, %43
  %62 = sitofp i64 %61 to double
  %63 = fdiv double %62, 1.000000e+06
  %64 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.34, ptr noundef %50, ptr noundef %58, i32 noundef %60, double noundef %63)
  br label %.backedge

65:                                               ; preds = %42
  %66 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.36, ptr noundef nonnull %4)
  br label %.backedge

67:                                               ; preds = %23
  call void @friso_free(ptr noundef nonnull %6) #6
  call void @llvm.lifetime.end.p0(i64 15, ptr nonnull %4) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #6
  ret i32 0
}

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

; Function Attrs: nounwind
declare i64 @clock() local_unnamed_addr #2

declare ptr @friso_new() local_unnamed_addr #3

declare ptr @friso_new_config() local_unnamed_addr #3

declare ptr @friso_dic_new() local_unnamed_addr #3

declare void @friso_dic_load(ptr noundef, ptr noundef, i32 noundef, ptr noundef, i32 noundef) local_unnamed_addr #3

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

declare i32 @friso_all_dic_size(ptr noundef) local_unnamed_addr #3

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

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

declare ptr @friso_dic_get(ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #3

declare void @friso_free(ptr noundef) local_unnamed_addr #3

; 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 = { 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 #3 = { "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 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 #6 = { nounwind }
attributes #7 = { 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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !11, i64 8}
!10 = !{!"friso_config_struct", !11, i64 0, !11, i64 2, !11, i64 4, !11, i64 6, !11, i64 8, !11, i64 10, !11, i64 12, !11, i64 14, !11, i64 16, !11, i64 18, !6, i64 20, !6, i64 24, !12, i64 32, !12, i64 40, !7, i64 48}
!11 = !{!"short", !7, i64 0}
!12 = !{!"any pointer", !7, i64 0}
!13 = !{!14, !12, i64 0}
!14 = !{!"", !12, i64 0, !6, i64 8}
!15 = !{!16, !12, i64 8}
!16 = !{!"", !7, i64 0, !7, i64 1, !7, i64 2, !7, i64 3, !6, i64 4, !12, i64 8, !12, i64 16, !12, i64 24, !6, i64 32}
!17 = !{!16, !12, i64 16}
!18 = !{!19, !12, i64 0}
!19 = !{!"", !12, i64 0, !6, i64 8, !6, i64 12}
!20 = !{!12, !12, i64 0}
!21 = !{!16, !6, i64 32}


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