; LLVM IR from ROCm/aomp :: test/smoke-fails/clang-298140/NPB_LU/sys (setparams)

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

@.str.28 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.38 = external hidden unnamed_addr constant [56 x i8], align 1
@.str.114 = external hidden unnamed_addr constant [19 x i8], align 1
@deffile = external dso_local global ptr, align 8
@.str.115 = external hidden unnamed_addr constant [236 x i8], align 1
@.str.116 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.117 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.118 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.119 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.120 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.121 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.122 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.123 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.124 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.125 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.126 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.127 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.128 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.129 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.130 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.131 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.132 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.133 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.134 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.135 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.136 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.137 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.138 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.139 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.140 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.141 = external hidden unnamed_addr constant [4 x i8], align 1

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

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

; Function Attrs: noreturn nounwind
declare void @exit(i32 noundef) #2

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

declare noalias ptr @fopen(ptr noundef, ptr noundef) #1

; Function Attrs: nounwind uwtable
define dso_local void @write_compiler_info(i32 noundef %0, ptr noundef %1) #3 {
  %3 = alloca i32, align 4
  %4 = alloca ptr, align 8
  %5 = alloca [400 x i8], align 16
  %6 = alloca [400 x i8], align 16
  %7 = alloca [400 x i8], align 16
  %8 = alloca [400 x i8], align 16
  %9 = alloca [400 x i8], align 16
  %10 = alloca [400 x i8], align 16
  %11 = alloca [400 x i8], align 16
  %12 = alloca [400 x i8], align 16
  %13 = alloca [400 x i8], align 16
  %14 = alloca [400 x i8], align 16
  %15 = alloca [400 x i8], align 16
  %16 = alloca [400 x i8], align 16
  %17 = alloca [400 x i8], align 16
  %18 = alloca [400 x i8], align 16
  %19 = alloca [400 x i8], align 16
  %20 = alloca ptr, align 8
  %21 = alloca i64, align 8
  store i32 %0, ptr %3, align 4, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 400, ptr %5) #6
  call void @llvm.lifetime.start.p0(i64 400, ptr %6) #6
  call void @llvm.lifetime.start.p0(i64 400, ptr %7) #6
  call void @llvm.lifetime.start.p0(i64 400, ptr %8) #6
  call void @llvm.lifetime.start.p0(i64 400, ptr %9) #6
  call void @llvm.lifetime.start.p0(i64 400, ptr %10) #6
  call void @llvm.lifetime.start.p0(i64 400, ptr %11) #6
  call void @llvm.lifetime.start.p0(i64 400, ptr %12) #6
  call void @llvm.lifetime.start.p0(i64 400, ptr %13) #6
  call void @llvm.lifetime.start.p0(i64 400, ptr %14) #6
  call void @llvm.lifetime.start.p0(i64 400, ptr %15) #6
  call void @llvm.lifetime.start.p0(i64 400, ptr %16) #6
  call void @llvm.lifetime.start.p0(i64 400, ptr %17) #6
  call void @llvm.lifetime.start.p0(i64 400, ptr %18) #6
  call void @llvm.lifetime.start.p0(i64 400, ptr %19) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #6
  %22 = call noalias ptr @fopen(ptr noundef @.str.114, ptr noundef @.str.28)
  store ptr %22, ptr @deffile, align 8, !tbaa !9
  %23 = load ptr, ptr @deffile, align 8, !tbaa !9
  %24 = icmp eq ptr %23, null
  br i1 %24, label %25, label %27

25:                                               ; preds = %2
  %26 = call i32 (ptr, ...) @printf(ptr noundef @.str.115, ptr noundef @.str.114)
  call void @exit(i32 noundef 1) #7
  unreachable

27:                                               ; preds = %2
  %28 = getelementptr inbounds [400 x i8], ptr %6, i64 0, i64 0
  %29 = call ptr @strcpy(ptr noundef %28, ptr noundef @.str.116) #6
  %30 = getelementptr inbounds [400 x i8], ptr %7, i64 0, i64 0
  %31 = call ptr @strcpy(ptr noundef %30, ptr noundef @.str.116) #6
  %32 = getelementptr inbounds [400 x i8], ptr %8, i64 0, i64 0
  %33 = call ptr @strcpy(ptr noundef %32, ptr noundef @.str.116) #6
  %34 = getelementptr inbounds [400 x i8], ptr %9, i64 0, i64 0
  %35 = call ptr @strcpy(ptr noundef %34, ptr noundef @.str.116) #6
  %36 = getelementptr inbounds [400 x i8], ptr %10, i64 0, i64 0
  %37 = call ptr @strcpy(ptr noundef %36, ptr noundef @.str.116) #6
  %38 = getelementptr inbounds [400 x i8], ptr %11, i64 0, i64 0
  %39 = call ptr @strcpy(ptr noundef %38, ptr noundef @.str.116) #6
  %40 = getelementptr inbounds [400 x i8], ptr %13, i64 0, i64 0
  %41 = call ptr @strcpy(ptr noundef %40, ptr noundef @.str.116) #6
  %42 = getelementptr inbounds [400 x i8], ptr %14, i64 0, i64 0
  %43 = call ptr @strcpy(ptr noundef %42, ptr noundef @.str.116) #6
  %44 = getelementptr inbounds [400 x i8], ptr %15, i64 0, i64 0
  %45 = call ptr @strcpy(ptr noundef %44, ptr noundef @.str.116) #6
  %46 = getelementptr inbounds [400 x i8], ptr %16, i64 0, i64 0
  %47 = call ptr @strcpy(ptr noundef %46, ptr noundef @.str.116) #6
  %48 = getelementptr inbounds [400 x i8], ptr %17, i64 0, i64 0
  %49 = call ptr @strcpy(ptr noundef %48, ptr noundef @.str.116) #6
  %50 = getelementptr inbounds [400 x i8], ptr %18, i64 0, i64 0
  %51 = call ptr @strcpy(ptr noundef %50, ptr noundef @.str.116) #6
  %52 = getelementptr inbounds [400 x i8], ptr %19, i64 0, i64 0
  %53 = call ptr @strcpy(ptr noundef %52, ptr noundef @.str.116) #6
  br label %54

54:                                               ; preds = %65, %64, %27
  %55 = getelementptr inbounds [400 x i8], ptr %5, i64 0, i64 0
  %56 = load ptr, ptr @deffile, align 8, !tbaa !9
  %57 = call ptr @fgets(ptr noundef %55, i32 noundef 400, ptr noundef %56)
  %58 = icmp ne ptr %57, null
  br i1 %58, label %59, label %92

59:                                               ; preds = %54
  %60 = getelementptr inbounds [400 x i8], ptr %5, i64 0, i64 0
  %61 = load i8, ptr %60, align 16, !tbaa !11
  %62 = sext i8 %61 to i32
  %63 = icmp eq i32 %62, 35
  br i1 %63, label %64, label %65

64:                                               ; preds = %59
  br label %54, !llvm.loop !12

65:                                               ; preds = %59
  %66 = getelementptr inbounds [400 x i8], ptr %5, i64 0, i64 0
  %67 = getelementptr inbounds [400 x i8], ptr %6, i64 0, i64 0
  call void @check_line(ptr noundef %66, ptr noundef @.str.117, ptr noundef %67)
  %68 = getelementptr inbounds [400 x i8], ptr %5, i64 0, i64 0
  %69 = getelementptr inbounds [400 x i8], ptr %7, i64 0, i64 0
  call void @check_line(ptr noundef %68, ptr noundef @.str.118, ptr noundef %69)
  %70 = getelementptr inbounds [400 x i8], ptr %5, i64 0, i64 0
  %71 = getelementptr inbounds [400 x i8], ptr %8, i64 0, i64 0
  call void @check_line(ptr noundef %70, ptr noundef @.str.119, ptr noundef %71)
  %72 = getelementptr inbounds [400 x i8], ptr %5, i64 0, i64 0
  %73 = getelementptr inbounds [400 x i8], ptr %9, i64 0, i64 0
  call void @check_line(ptr noundef %72, ptr noundef @.str.120, ptr noundef %73)
  %74 = getelementptr inbounds [400 x i8], ptr %5, i64 0, i64 0
  %75 = getelementptr inbounds [400 x i8], ptr %10, i64 0, i64 0
  call void @check_line(ptr noundef %74, ptr noundef @.str.121, ptr noundef %75)
  %76 = getelementptr inbounds [400 x i8], ptr %5, i64 0, i64 0
  %77 = getelementptr inbounds [400 x i8], ptr %11, i64 0, i64 0
  call void @check_line(ptr noundef %76, ptr noundef @.str.122, ptr noundef %77)
  %78 = getelementptr inbounds [400 x i8], ptr %5, i64 0, i64 0
  %79 = getelementptr inbounds [400 x i8], ptr %13, i64 0, i64 0
  call void @check_line(ptr noundef %78, ptr noundef @.str.123, ptr noundef %79)
  %80 = getelementptr inbounds [400 x i8], ptr %5, i64 0, i64 0
  %81 = getelementptr inbounds [400 x i8], ptr %14, i64 0, i64 0
  call void @check_line(ptr noundef %80, ptr noundef @.str.124, ptr noundef %81)
  %82 = getelementptr inbounds [400 x i8], ptr %5, i64 0, i64 0
  %83 = getelementptr inbounds [400 x i8], ptr %15, i64 0, i64 0
  call void @check_line(ptr noundef %82, ptr noundef @.str.125, ptr noundef %83)
  %84 = getelementptr inbounds [400 x i8], ptr %5, i64 0, i64 0
  %85 = getelementptr inbounds [400 x i8], ptr %16, i64 0, i64 0
  call void @check_line(ptr noundef %84, ptr noundef @.str.126, ptr noundef %85)
  %86 = getelementptr inbounds [400 x i8], ptr %5, i64 0, i64 0
  %87 = getelementptr inbounds [400 x i8], ptr %17, i64 0, i64 0
  call void @check_line(ptr noundef %86, ptr noundef @.str.127, ptr noundef %87)
  %88 = getelementptr inbounds [400 x i8], ptr %5, i64 0, i64 0
  %89 = getelementptr inbounds [400 x i8], ptr %18, i64 0, i64 0
  call void @check_line(ptr noundef %88, ptr noundef @.str.128, ptr noundef %89)
  %90 = getelementptr inbounds [400 x i8], ptr %5, i64 0, i64 0
  %91 = getelementptr inbounds [400 x i8], ptr %19, i64 0, i64 0
  call void @check_line(ptr noundef %90, ptr noundef @.str.129, ptr noundef %91)
  br label %54, !llvm.loop !12

92:                                               ; preds = %54
  %93 = call i64 @time(ptr noundef %21) #6
  %94 = call ptr @localtime(ptr noundef %21) #6
  store ptr %94, ptr %20, align 8, !tbaa !9
  %95 = getelementptr inbounds [400 x i8], ptr %12, i64 0, i64 0
  %96 = load ptr, ptr %20, align 8, !tbaa !9
  %97 = call i64 @strftime(ptr noundef %95, i64 noundef 400, ptr noundef @.str.130, ptr noundef %96) #6
  %98 = getelementptr inbounds [400 x i8], ptr %12, i64 0, i64 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %98, ptr align 1 @.str.131, i64 8, i1 false)
  %99 = load i32, ptr %3, align 4, !tbaa !5
  switch i32 %99, label %134 [
    i32 4, label %100
    i32 0, label %100
    i32 1, label %100
    i32 3, label %100
    i32 2, label %100
    i32 6, label %100
    i32 7, label %100
    i32 8, label %100
    i32 5, label %118
    i32 9, label %118
  ]

100:                                              ; preds = %92, %92, %92, %92, %92, %92, %92, %92
  %101 = load ptr, ptr %4, align 8, !tbaa !9
  %102 = getelementptr inbounds [400 x i8], ptr %12, i64 0, i64 0
  call void @put_def_string(ptr noundef %101, ptr noundef @.str.132, ptr noundef %102)
  %103 = load ptr, ptr %4, align 8, !tbaa !9
  call void @put_def_string(ptr noundef %103, ptr noundef @.str.133, ptr noundef @.str.134)
  %104 = load ptr, ptr %4, align 8, !tbaa !9
  %105 = getelementptr inbounds [400 x i8], ptr %14, i64 0, i64 0
  call void @put_def_string(ptr noundef %104, ptr noundef @.str.135, ptr noundef %105)
  %106 = load ptr, ptr %4, align 8, !tbaa !9
  %107 = getelementptr inbounds [400 x i8], ptr %16, i64 0, i64 0
  call void @put_def_string(ptr noundef %106, ptr noundef @.str.136, ptr noundef %107)
  %108 = load ptr, ptr %4, align 8, !tbaa !9
  %109 = getelementptr inbounds [400 x i8], ptr %18, i64 0, i64 0
  call void @put_def_string(ptr noundef %108, ptr noundef @.str.137, ptr noundef %109)
  %110 = load ptr, ptr %4, align 8, !tbaa !9
  %111 = getelementptr inbounds [400 x i8], ptr %19, i64 0, i64 0
  call void @put_def_string(ptr noundef %110, ptr noundef @.str.138, ptr noundef %111)
  %112 = load ptr, ptr %4, align 8, !tbaa !9
  %113 = getelementptr inbounds [400 x i8], ptr %15, i64 0, i64 0
  call void @put_def_string(ptr noundef %112, ptr noundef @.str.139, ptr noundef %113)
  %114 = load ptr, ptr %4, align 8, !tbaa !9
  %115 = getelementptr inbounds [400 x i8], ptr %17, i64 0, i64 0
  call void @put_def_string(ptr noundef %114, ptr noundef @.str.140, ptr noundef %115)
  %116 = load ptr, ptr %4, align 8, !tbaa !9
  %117 = getelementptr inbounds [400 x i8], ptr %13, i64 0, i64 0
  call void @put_def_string(ptr noundef %116, ptr noundef @.str.141, ptr noundef %117)
  br label %137

118:                                              ; preds = %92, %92
  %119 = load ptr, ptr %4, align 8, !tbaa !9
  %120 = getelementptr inbounds [400 x i8], ptr %12, i64 0, i64 0
  call void @put_def_string(ptr noundef %119, ptr noundef @.str.132, ptr noundef %120)
  %121 = load ptr, ptr %4, align 8, !tbaa !9
  call void @put_def_string(ptr noundef %121, ptr noundef @.str.133, ptr noundef @.str.134)
  %122 = load ptr, ptr %4, align 8, !tbaa !9
  %123 = getelementptr inbounds [400 x i8], ptr %14, i64 0, i64 0
  call void @put_def_string(ptr noundef %122, ptr noundef @.str.124, ptr noundef %123)
  %124 = load ptr, ptr %4, align 8, !tbaa !9
  %125 = getelementptr inbounds [400 x i8], ptr %15, i64 0, i64 0
  call void @put_def_string(ptr noundef %124, ptr noundef @.str.125, ptr noundef %125)
  %126 = load ptr, ptr %4, align 8, !tbaa !9
  %127 = getelementptr inbounds [400 x i8], ptr %16, i64 0, i64 0
  call void @put_def_string(ptr noundef %126, ptr noundef @.str.126, ptr noundef %127)
  %128 = load ptr, ptr %4, align 8, !tbaa !9
  %129 = getelementptr inbounds [400 x i8], ptr %17, i64 0, i64 0
  call void @put_def_string(ptr noundef %128, ptr noundef @.str.127, ptr noundef %129)
  %130 = load ptr, ptr %4, align 8, !tbaa !9
  %131 = getelementptr inbounds [400 x i8], ptr %18, i64 0, i64 0
  call void @put_def_string(ptr noundef %130, ptr noundef @.str.128, ptr noundef %131)
  %132 = load ptr, ptr %4, align 8, !tbaa !9
  %133 = getelementptr inbounds [400 x i8], ptr %19, i64 0, i64 0
  call void @put_def_string(ptr noundef %132, ptr noundef @.str.129, ptr noundef %133)
  br label %137

134:                                              ; preds = %92
  %135 = load i32, ptr %3, align 4, !tbaa !5
  %136 = call i32 (ptr, ...) @printf(ptr noundef @.str.38, i32 noundef %135)
  call void @exit(i32 noundef 1) #7
  unreachable

137:                                              ; preds = %118, %100
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #6
  call void @llvm.lifetime.end.p0(i64 400, ptr %19) #6
  call void @llvm.lifetime.end.p0(i64 400, ptr %18) #6
  call void @llvm.lifetime.end.p0(i64 400, ptr %17) #6
  call void @llvm.lifetime.end.p0(i64 400, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 400, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 400, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 400, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 400, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 400, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 400, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 400, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 400, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 400, ptr %7) #6
  call void @llvm.lifetime.end.p0(i64 400, ptr %6) #6
  call void @llvm.lifetime.end.p0(i64 400, ptr %5) #6
  ret void
}

; Function Attrs: nounwind
declare ptr @strcpy(ptr noundef, ptr noundef) #4

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

; Function Attrs: nounwind uwtable
declare dso_local void @check_line(ptr noundef, ptr noundef, ptr noundef) #3

; Function Attrs: nounwind
declare i64 @time(ptr noundef) #4

; Function Attrs: nounwind
declare ptr @localtime(ptr noundef) #4

; Function Attrs: nounwind
declare i64 @strftime(ptr noundef, i64 noundef, ptr noundef, ptr noundef) #4

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

; Function Attrs: nounwind uwtable
declare dso_local void @put_def_string(ptr noundef, ptr noundef, ptr noundef) #3

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { "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 = { noreturn 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 = { 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 = { 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 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #6 = { nounwind }
attributes #7 = { noreturn nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"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 = !{!7, !7, i64 0}
!12 = distinct !{!12, !13}
!13 = !{!"llvm.loop.mustprogress"}


; 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.28 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.38 = external hidden unnamed_addr constant [56 x i8], align 1
@.str.114 = external hidden unnamed_addr constant [19 x i8], align 1
@deffile = external dso_local local_unnamed_addr global ptr, align 8
@.str.115 = external hidden unnamed_addr constant [236 x i8], align 1
@.str.116 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.117 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.118 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.119 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.120 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.121 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.122 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.123 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.124 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.125 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.126 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.127 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.128 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.129 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.130 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.131 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.132 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.133 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.134 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.135 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.136 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.137 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.138 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.139 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.140 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.141 = external hidden unnamed_addr constant [4 x i8], align 1

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

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

; Function Attrs: noreturn nounwind
declare void @exit(i32 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) #0

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

; Function Attrs: nounwind uwtable
define dso_local void @write_compiler_info(i32 noundef %0, ptr noundef %1) local_unnamed_addr #3 {
  %3 = alloca [400 x i8], align 16
  %4 = alloca [400 x i8], align 16
  %5 = alloca [400 x i8], align 16
  %6 = alloca [400 x i8], align 16
  %7 = alloca [400 x i8], align 16
  %8 = alloca [400 x i8], align 16
  %9 = alloca [400 x i8], align 16
  %10 = alloca [400 x i8], align 16
  %11 = alloca [400 x i8], align 16
  %12 = alloca [400 x i8], align 16
  %13 = alloca [400 x i8], align 16
  %14 = alloca [400 x i8], align 16
  %15 = alloca [400 x i8], align 16
  %16 = alloca [400 x i8], align 16
  %17 = alloca [400 x i8], align 16
  %18 = alloca i64, align 8
  call void @llvm.lifetime.start.p0(i64 400, ptr nonnull %3) #6
  call void @llvm.lifetime.start.p0(i64 400, ptr nonnull %4) #6
  call void @llvm.lifetime.start.p0(i64 400, ptr nonnull %5) #6
  call void @llvm.lifetime.start.p0(i64 400, ptr nonnull %6) #6
  call void @llvm.lifetime.start.p0(i64 400, ptr nonnull %7) #6
  call void @llvm.lifetime.start.p0(i64 400, ptr nonnull %8) #6
  call void @llvm.lifetime.start.p0(i64 400, ptr nonnull %9) #6
  call void @llvm.lifetime.start.p0(i64 400, ptr nonnull %10) #6
  call void @llvm.lifetime.start.p0(i64 400, ptr nonnull %11) #6
  call void @llvm.lifetime.start.p0(i64 400, ptr nonnull %12) #6
  call void @llvm.lifetime.start.p0(i64 400, ptr nonnull %13) #6
  call void @llvm.lifetime.start.p0(i64 400, ptr nonnull %14) #6
  call void @llvm.lifetime.start.p0(i64 400, ptr nonnull %15) #6
  call void @llvm.lifetime.start.p0(i64 400, ptr nonnull %16) #6
  call void @llvm.lifetime.start.p0(i64 400, ptr nonnull %17) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %18) #6
  %19 = tail call noalias ptr @fopen(ptr noundef nonnull @.str.114, ptr noundef nonnull @.str.28)
  store ptr %19, ptr @deffile, align 8, !tbaa !5
  %20 = icmp eq ptr %19, null
  br i1 %20, label %21, label %23

21:                                               ; preds = %2
  %22 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.115, ptr noundef nonnull @.str.114)
  tail call void @exit(i32 noundef 1) #7
  unreachable

23:                                               ; preds = %2
  %24 = call ptr @strcpy(ptr noundef nonnull dereferenceable(1) %4, ptr noundef nonnull dereferenceable(1) @.str.116) #6
  %25 = call ptr @strcpy(ptr noundef nonnull dereferenceable(1) %5, ptr noundef nonnull dereferenceable(1) @.str.116) #6
  %26 = call ptr @strcpy(ptr noundef nonnull dereferenceable(1) %6, ptr noundef nonnull dereferenceable(1) @.str.116) #6
  %27 = call ptr @strcpy(ptr noundef nonnull dereferenceable(1) %7, ptr noundef nonnull dereferenceable(1) @.str.116) #6
  %28 = call ptr @strcpy(ptr noundef nonnull dereferenceable(1) %8, ptr noundef nonnull dereferenceable(1) @.str.116) #6
  %29 = call ptr @strcpy(ptr noundef nonnull dereferenceable(1) %9, ptr noundef nonnull dereferenceable(1) @.str.116) #6
  %30 = call ptr @strcpy(ptr noundef nonnull dereferenceable(1) %11, ptr noundef nonnull dereferenceable(1) @.str.116) #6
  %31 = call ptr @strcpy(ptr noundef nonnull dereferenceable(1) %12, ptr noundef nonnull dereferenceable(1) @.str.116) #6
  %32 = call ptr @strcpy(ptr noundef nonnull dereferenceable(1) %13, ptr noundef nonnull dereferenceable(1) @.str.116) #6
  %33 = call ptr @strcpy(ptr noundef nonnull dereferenceable(1) %14, ptr noundef nonnull dereferenceable(1) @.str.116) #6
  %34 = call ptr @strcpy(ptr noundef nonnull dereferenceable(1) %15, ptr noundef nonnull dereferenceable(1) @.str.116) #6
  %35 = call ptr @strcpy(ptr noundef nonnull dereferenceable(1) %16, ptr noundef nonnull dereferenceable(1) @.str.116) #6
  %36 = call ptr @strcpy(ptr noundef nonnull dereferenceable(1) %17, ptr noundef nonnull dereferenceable(1) @.str.116) #6
  %37 = call ptr @fgets(ptr noundef nonnull %3, i32 noundef 400, ptr noundef nonnull %19)
  %.not19 = icmp eq ptr %37, null
  br i1 %.not19, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %23, %.backedge
  %38 = load i8, ptr %3, align 16, !tbaa !9
  %39 = icmp eq i8 %38, 35
  br i1 %39, label %.backedge, label %40

40:                                               ; preds = %.lr.ph
  call void @check_line(ptr noundef nonnull %3, ptr noundef nonnull @.str.117, ptr noundef nonnull %4)
  call void @check_line(ptr noundef nonnull %3, ptr noundef nonnull @.str.118, ptr noundef nonnull %5)
  call void @check_line(ptr noundef nonnull %3, ptr noundef nonnull @.str.119, ptr noundef nonnull %6)
  call void @check_line(ptr noundef nonnull %3, ptr noundef nonnull @.str.120, ptr noundef nonnull %7)
  call void @check_line(ptr noundef nonnull %3, ptr noundef nonnull @.str.121, ptr noundef nonnull %8)
  call void @check_line(ptr noundef nonnull %3, ptr noundef nonnull @.str.122, ptr noundef nonnull %9)
  call void @check_line(ptr noundef nonnull %3, ptr noundef nonnull @.str.123, ptr noundef nonnull %11)
  call void @check_line(ptr noundef nonnull %3, ptr noundef nonnull @.str.124, ptr noundef nonnull %12)
  call void @check_line(ptr noundef nonnull %3, ptr noundef nonnull @.str.125, ptr noundef nonnull %13)
  call void @check_line(ptr noundef nonnull %3, ptr noundef nonnull @.str.126, ptr noundef nonnull %14)
  call void @check_line(ptr noundef nonnull %3, ptr noundef nonnull @.str.127, ptr noundef nonnull %15)
  call void @check_line(ptr noundef nonnull %3, ptr noundef nonnull @.str.128, ptr noundef nonnull %16)
  call void @check_line(ptr noundef nonnull %3, ptr noundef nonnull @.str.129, ptr noundef nonnull %17)
  br label %.backedge

.backedge:                                        ; preds = %40, %.lr.ph
  %41 = load ptr, ptr @deffile, align 8, !tbaa !5
  %42 = call ptr @fgets(ptr noundef nonnull %3, i32 noundef 400, ptr noundef %41)
  %.not = icmp eq ptr %42, null
  br i1 %.not, label %._crit_edge, label %.lr.ph, !llvm.loop !10

._crit_edge:                                      ; preds = %.backedge, %23
  %43 = call i64 @time(ptr noundef nonnull %18) #6
  %44 = call ptr @localtime(ptr noundef nonnull %18) #6
  %45 = call i64 @strftime(ptr noundef nonnull %10, i64 noundef 400, ptr noundef nonnull @.str.130, ptr noundef %44) #6
  %46 = load i64, ptr @.str.131, align 1
  store i64 %46, ptr %10, align 16
  switch i32 %0, label %49 [
    i32 4, label %47
    i32 0, label %47
    i32 1, label %47
    i32 3, label %47
    i32 2, label %47
    i32 6, label %47
    i32 7, label %47
    i32 8, label %47
    i32 5, label %48
    i32 9, label %48
  ]

47:                                               ; preds = %._crit_edge, %._crit_edge, %._crit_edge, %._crit_edge, %._crit_edge, %._crit_edge, %._crit_edge, %._crit_edge
  call void @put_def_string(ptr noundef %1, ptr noundef nonnull @.str.132, ptr noundef nonnull %10)
  call void @put_def_string(ptr noundef %1, ptr noundef nonnull @.str.133, ptr noundef nonnull @.str.134)
  call void @put_def_string(ptr noundef %1, ptr noundef nonnull @.str.135, ptr noundef nonnull %12)
  call void @put_def_string(ptr noundef %1, ptr noundef nonnull @.str.136, ptr noundef nonnull %14)
  call void @put_def_string(ptr noundef %1, ptr noundef nonnull @.str.137, ptr noundef nonnull %16)
  call void @put_def_string(ptr noundef %1, ptr noundef nonnull @.str.138, ptr noundef nonnull %17)
  call void @put_def_string(ptr noundef %1, ptr noundef nonnull @.str.139, ptr noundef nonnull %13)
  call void @put_def_string(ptr noundef %1, ptr noundef nonnull @.str.140, ptr noundef nonnull %15)
  call void @put_def_string(ptr noundef %1, ptr noundef nonnull @.str.141, ptr noundef nonnull %11)
  br label %51

48:                                               ; preds = %._crit_edge, %._crit_edge
  call void @put_def_string(ptr noundef %1, ptr noundef nonnull @.str.132, ptr noundef nonnull %10)
  call void @put_def_string(ptr noundef %1, ptr noundef nonnull @.str.133, ptr noundef nonnull @.str.134)
  call void @put_def_string(ptr noundef %1, ptr noundef nonnull @.str.124, ptr noundef nonnull %12)
  call void @put_def_string(ptr noundef %1, ptr noundef nonnull @.str.125, ptr noundef nonnull %13)
  call void @put_def_string(ptr noundef %1, ptr noundef nonnull @.str.126, ptr noundef nonnull %14)
  call void @put_def_string(ptr noundef %1, ptr noundef nonnull @.str.127, ptr noundef nonnull %15)
  call void @put_def_string(ptr noundef %1, ptr noundef nonnull @.str.128, ptr noundef nonnull %16)
  call void @put_def_string(ptr noundef %1, ptr noundef nonnull @.str.129, ptr noundef nonnull %17)
  br label %51

49:                                               ; preds = %._crit_edge
  %50 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.38, i32 noundef %0)
  call void @exit(i32 noundef 1) #7
  unreachable

51:                                               ; preds = %48, %47
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %18) #6
  call void @llvm.lifetime.end.p0(i64 400, ptr nonnull %17) #6
  call void @llvm.lifetime.end.p0(i64 400, ptr nonnull %16) #6
  call void @llvm.lifetime.end.p0(i64 400, ptr nonnull %15) #6
  call void @llvm.lifetime.end.p0(i64 400, ptr nonnull %14) #6
  call void @llvm.lifetime.end.p0(i64 400, ptr nonnull %13) #6
  call void @llvm.lifetime.end.p0(i64 400, ptr nonnull %12) #6
  call void @llvm.lifetime.end.p0(i64 400, ptr nonnull %11) #6
  call void @llvm.lifetime.end.p0(i64 400, ptr nonnull %10) #6
  call void @llvm.lifetime.end.p0(i64 400, ptr nonnull %9) #6
  call void @llvm.lifetime.end.p0(i64 400, ptr nonnull %8) #6
  call void @llvm.lifetime.end.p0(i64 400, ptr nonnull %7) #6
  call void @llvm.lifetime.end.p0(i64 400, ptr nonnull %6) #6
  call void @llvm.lifetime.end.p0(i64 400, ptr nonnull %5) #6
  call void @llvm.lifetime.end.p0(i64 400, ptr nonnull %4) #6
  call void @llvm.lifetime.end.p0(i64 400, ptr nonnull %3) #6
  ret void
}

; Function Attrs: mustprogress nofree nounwind willreturn memory(argmem: readwrite)
declare ptr @strcpy(ptr noalias noundef returned writeonly, ptr noalias 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 #1

; Function Attrs: nounwind uwtable
declare dso_local void @check_line(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #3

; Function Attrs: nounwind
declare i64 @time(ptr noundef) local_unnamed_addr #5

; Function Attrs: nounwind
declare ptr @localtime(ptr noundef) local_unnamed_addr #5

; Function Attrs: nounwind
declare i64 @strftime(ptr noundef, i64 noundef, ptr noundef, ptr noundef) local_unnamed_addr #5

; Function Attrs: nounwind uwtable
declare dso_local void @put_def_string(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #3

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { noreturn 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 = { 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 nofree nounwind willreturn memory(argmem: readwrite) "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 "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 = { noreturn nounwind }

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

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


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,SROAPass,SimplifyCFGPass,TailCallElimPass