; LLVM IR from ROCm/aomp :: test/smoke-fails/flang-314750/NPB_FT/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.27 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.37 = external hidden unnamed_addr constant [56 x i8], align 1
@.str.125 = external hidden unnamed_addr constant [19 x i8], align 1
@deffile = external dso_local global ptr, align 8
@.str.126 = external hidden unnamed_addr constant [236 x i8], align 1
@.str.127 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.128 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.129 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.130 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.131 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.132 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.133 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.134 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.135 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.136 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.137 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.138 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.139 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.140 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.141 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.142 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.143 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.144 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.145 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.146 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.147 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.148 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.149 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.150 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.151 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.152 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.153 = external hidden unnamed_addr constant [11 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) #5
  call void @llvm.lifetime.start.p0(i64 400, ptr %6) #5
  call void @llvm.lifetime.start.p0(i64 400, ptr %7) #5
  call void @llvm.lifetime.start.p0(i64 400, ptr %8) #5
  call void @llvm.lifetime.start.p0(i64 400, ptr %9) #5
  call void @llvm.lifetime.start.p0(i64 400, ptr %10) #5
  call void @llvm.lifetime.start.p0(i64 400, ptr %11) #5
  call void @llvm.lifetime.start.p0(i64 400, ptr %12) #5
  call void @llvm.lifetime.start.p0(i64 400, ptr %13) #5
  call void @llvm.lifetime.start.p0(i64 400, ptr %14) #5
  call void @llvm.lifetime.start.p0(i64 400, ptr %15) #5
  call void @llvm.lifetime.start.p0(i64 400, ptr %16) #5
  call void @llvm.lifetime.start.p0(i64 400, ptr %17) #5
  call void @llvm.lifetime.start.p0(i64 400, ptr %18) #5
  call void @llvm.lifetime.start.p0(i64 400, ptr %19) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #5
  %22 = call noalias ptr @fopen(ptr noundef @.str.125, ptr noundef @.str.27)
  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.126, ptr noundef @.str.125)
  call void @exit(i32 noundef 1) #6
  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.127) #5
  %30 = getelementptr inbounds [400 x i8], ptr %7, i64 0, i64 0
  %31 = call ptr @strcpy(ptr noundef %30, ptr noundef @.str.127) #5
  %32 = getelementptr inbounds [400 x i8], ptr %8, i64 0, i64 0
  %33 = call ptr @strcpy(ptr noundef %32, ptr noundef @.str.127) #5
  %34 = getelementptr inbounds [400 x i8], ptr %9, i64 0, i64 0
  %35 = call ptr @strcpy(ptr noundef %34, ptr noundef @.str.127) #5
  %36 = getelementptr inbounds [400 x i8], ptr %10, i64 0, i64 0
  %37 = call ptr @strcpy(ptr noundef %36, ptr noundef @.str.127) #5
  %38 = getelementptr inbounds [400 x i8], ptr %11, i64 0, i64 0
  %39 = call ptr @strcpy(ptr noundef %38, ptr noundef @.str.127) #5
  %40 = getelementptr inbounds [400 x i8], ptr %13, i64 0, i64 0
  %41 = call ptr @strcpy(ptr noundef %40, ptr noundef @.str.127) #5
  %42 = getelementptr inbounds [400 x i8], ptr %14, i64 0, i64 0
  %43 = call ptr @strcpy(ptr noundef %42, ptr noundef @.str.127) #5
  %44 = getelementptr inbounds [400 x i8], ptr %15, i64 0, i64 0
  %45 = call ptr @strcpy(ptr noundef %44, ptr noundef @.str.127) #5
  %46 = getelementptr inbounds [400 x i8], ptr %16, i64 0, i64 0
  %47 = call ptr @strcpy(ptr noundef %46, ptr noundef @.str.127) #5
  %48 = getelementptr inbounds [400 x i8], ptr %17, i64 0, i64 0
  %49 = call ptr @strcpy(ptr noundef %48, ptr noundef @.str.127) #5
  %50 = getelementptr inbounds [400 x i8], ptr %18, i64 0, i64 0
  %51 = call ptr @strcpy(ptr noundef %50, ptr noundef @.str.127) #5
  %52 = getelementptr inbounds [400 x i8], ptr %19, i64 0, i64 0
  %53 = call ptr @strcpy(ptr noundef %52, ptr noundef @.str.127) #5
  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.128, 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.129, 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.130, 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.131, 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.132, 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.133, 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.134, 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.135, 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.136, 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.137, 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.138, 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.139, 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.140, ptr noundef %91)
  br label %54, !llvm.loop !12

92:                                               ; preds = %54
  %93 = call i64 @time(ptr noundef %21) #5
  %94 = call ptr @localtime(ptr noundef %21) #5
  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.141, ptr noundef %96) #5
  %98 = load i32, ptr %3, align 4, !tbaa !5
  switch i32 %98, label %133 [
    i32 4, label %99
    i32 0, label %99
    i32 1, label %99
    i32 3, label %99
    i32 2, label %99
    i32 6, label %99
    i32 7, label %99
    i32 8, label %99
    i32 5, label %117
    i32 9, label %117
  ]

99:                                               ; preds = %92, %92, %92, %92, %92, %92, %92, %92
  %100 = load ptr, ptr %4, align 8, !tbaa !9
  %101 = getelementptr inbounds [400 x i8], ptr %12, i64 0, i64 0
  call void @put_string(ptr noundef %100, ptr noundef @.str.142, ptr noundef %101)
  %102 = load ptr, ptr %4, align 8, !tbaa !9
  call void @put_string(ptr noundef %102, ptr noundef @.str.143, ptr noundef @.str.144)
  %103 = load ptr, ptr %4, align 8, !tbaa !9
  %104 = getelementptr inbounds [400 x i8], ptr %6, i64 0, i64 0
  call void @put_string(ptr noundef %103, ptr noundef @.str.145, ptr noundef %104)
  %105 = load ptr, ptr %4, align 8, !tbaa !9
  %106 = getelementptr inbounds [400 x i8], ptr %7, i64 0, i64 0
  call void @put_string(ptr noundef %105, ptr noundef @.str.146, ptr noundef %106)
  %107 = load ptr, ptr %4, align 8, !tbaa !9
  %108 = getelementptr inbounds [400 x i8], ptr %8, i64 0, i64 0
  call void @put_string(ptr noundef %107, ptr noundef @.str.147, ptr noundef %108)
  %109 = load ptr, ptr %4, align 8, !tbaa !9
  %110 = getelementptr inbounds [400 x i8], ptr %9, i64 0, i64 0
  call void @put_string(ptr noundef %109, ptr noundef @.str.148, ptr noundef %110)
  %111 = load ptr, ptr %4, align 8, !tbaa !9
  %112 = getelementptr inbounds [400 x i8], ptr %10, i64 0, i64 0
  call void @put_string(ptr noundef %111, ptr noundef @.str.149, ptr noundef %112)
  %113 = load ptr, ptr %4, align 8, !tbaa !9
  %114 = getelementptr inbounds [400 x i8], ptr %11, i64 0, i64 0
  call void @put_string(ptr noundef %113, ptr noundef @.str.150, ptr noundef %114)
  %115 = load ptr, ptr %4, align 8, !tbaa !9
  %116 = getelementptr inbounds [400 x i8], ptr %13, i64 0, i64 0
  call void @put_string(ptr noundef %115, ptr noundef @.str.151, ptr noundef %116)
  br label %136

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

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

136:                                              ; preds = %117, %99
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #5
  call void @llvm.lifetime.end.p0(i64 400, ptr %19) #5
  call void @llvm.lifetime.end.p0(i64 400, ptr %18) #5
  call void @llvm.lifetime.end.p0(i64 400, ptr %17) #5
  call void @llvm.lifetime.end.p0(i64 400, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 400, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 400, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 400, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 400, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 400, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 400, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 400, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 400, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 400, ptr %7) #5
  call void @llvm.lifetime.end.p0(i64 400, ptr %6) #5
  call void @llvm.lifetime.end.p0(i64 400, ptr %5) #5
  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: nounwind uwtable
declare dso_local void @put_string(ptr noundef, ptr noundef, ptr noundef) #3

; 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 = { nounwind }
attributes #6 = { 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.27 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.37 = external hidden unnamed_addr constant [56 x i8], align 1
@.str.125 = external hidden unnamed_addr constant [19 x i8], align 1
@deffile = external dso_local local_unnamed_addr global ptr, align 8
@.str.126 = external hidden unnamed_addr constant [236 x i8], align 1
@.str.127 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.128 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.129 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.130 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.131 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.132 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.133 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.134 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.135 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.136 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.137 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.138 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.139 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.140 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.141 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.142 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.143 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.144 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.145 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.146 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.147 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.148 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.149 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.150 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.151 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.152 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.153 = external hidden unnamed_addr constant [11 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.125, ptr noundef nonnull @.str.27)
  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.126, ptr noundef nonnull @.str.125)
  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.127) #6
  %25 = call ptr @strcpy(ptr noundef nonnull dereferenceable(1) %5, ptr noundef nonnull dereferenceable(1) @.str.127) #6
  %26 = call ptr @strcpy(ptr noundef nonnull dereferenceable(1) %6, ptr noundef nonnull dereferenceable(1) @.str.127) #6
  %27 = call ptr @strcpy(ptr noundef nonnull dereferenceable(1) %7, ptr noundef nonnull dereferenceable(1) @.str.127) #6
  %28 = call ptr @strcpy(ptr noundef nonnull dereferenceable(1) %8, ptr noundef nonnull dereferenceable(1) @.str.127) #6
  %29 = call ptr @strcpy(ptr noundef nonnull dereferenceable(1) %9, ptr noundef nonnull dereferenceable(1) @.str.127) #6
  %30 = call ptr @strcpy(ptr noundef nonnull dereferenceable(1) %11, ptr noundef nonnull dereferenceable(1) @.str.127) #6
  %31 = call ptr @strcpy(ptr noundef nonnull dereferenceable(1) %12, ptr noundef nonnull dereferenceable(1) @.str.127) #6
  %32 = call ptr @strcpy(ptr noundef nonnull dereferenceable(1) %13, ptr noundef nonnull dereferenceable(1) @.str.127) #6
  %33 = call ptr @strcpy(ptr noundef nonnull dereferenceable(1) %14, ptr noundef nonnull dereferenceable(1) @.str.127) #6
  %34 = call ptr @strcpy(ptr noundef nonnull dereferenceable(1) %15, ptr noundef nonnull dereferenceable(1) @.str.127) #6
  %35 = call ptr @strcpy(ptr noundef nonnull dereferenceable(1) %16, ptr noundef nonnull dereferenceable(1) @.str.127) #6
  %36 = call ptr @strcpy(ptr noundef nonnull dereferenceable(1) %17, ptr noundef nonnull dereferenceable(1) @.str.127) #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.128, ptr noundef nonnull %4)
  call void @check_line(ptr noundef nonnull %3, ptr noundef nonnull @.str.129, ptr noundef nonnull %5)
  call void @check_line(ptr noundef nonnull %3, ptr noundef nonnull @.str.130, ptr noundef nonnull %6)
  call void @check_line(ptr noundef nonnull %3, ptr noundef nonnull @.str.131, ptr noundef nonnull %7)
  call void @check_line(ptr noundef nonnull %3, ptr noundef nonnull @.str.132, ptr noundef nonnull %8)
  call void @check_line(ptr noundef nonnull %3, ptr noundef nonnull @.str.133, ptr noundef nonnull %9)
  call void @check_line(ptr noundef nonnull %3, ptr noundef nonnull @.str.134, ptr noundef nonnull %11)
  call void @check_line(ptr noundef nonnull %3, ptr noundef nonnull @.str.135, ptr noundef nonnull %12)
  call void @check_line(ptr noundef nonnull %3, ptr noundef nonnull @.str.136, ptr noundef nonnull %13)
  call void @check_line(ptr noundef nonnull %3, ptr noundef nonnull @.str.137, ptr noundef nonnull %14)
  call void @check_line(ptr noundef nonnull %3, ptr noundef nonnull @.str.138, ptr noundef nonnull %15)
  call void @check_line(ptr noundef nonnull %3, ptr noundef nonnull @.str.139, ptr noundef nonnull %16)
  call void @check_line(ptr noundef nonnull %3, ptr noundef nonnull @.str.140, 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.141, ptr noundef %44) #6
  switch i32 %0, label %48 [
    i32 4, label %46
    i32 0, label %46
    i32 1, label %46
    i32 3, label %46
    i32 2, label %46
    i32 6, label %46
    i32 7, label %46
    i32 8, label %46
    i32 5, label %47
    i32 9, label %47
  ]

46:                                               ; preds = %._crit_edge, %._crit_edge, %._crit_edge, %._crit_edge, %._crit_edge, %._crit_edge, %._crit_edge, %._crit_edge
  call void @put_string(ptr noundef %1, ptr noundef nonnull @.str.142, ptr noundef nonnull %10)
  call void @put_string(ptr noundef %1, ptr noundef nonnull @.str.143, ptr noundef nonnull @.str.144)
  call void @put_string(ptr noundef %1, ptr noundef nonnull @.str.145, ptr noundef nonnull %4)
  call void @put_string(ptr noundef %1, ptr noundef nonnull @.str.146, ptr noundef nonnull %5)
  call void @put_string(ptr noundef %1, ptr noundef nonnull @.str.147, ptr noundef nonnull %6)
  call void @put_string(ptr noundef %1, ptr noundef nonnull @.str.148, ptr noundef nonnull %7)
  call void @put_string(ptr noundef %1, ptr noundef nonnull @.str.149, ptr noundef nonnull %8)
  call void @put_string(ptr noundef %1, ptr noundef nonnull @.str.150, ptr noundef nonnull %9)
  call void @put_string(ptr noundef %1, ptr noundef nonnull @.str.151, ptr noundef nonnull %11)
  br label %50

47:                                               ; preds = %._crit_edge, %._crit_edge
  call void @put_def_string(ptr noundef %1, ptr noundef nonnull @.str.152, ptr noundef nonnull %10)
  call void @put_def_string(ptr noundef %1, ptr noundef nonnull @.str.153, ptr noundef nonnull @.str.144)
  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 %13)
  call void @put_def_string(ptr noundef %1, ptr noundef nonnull @.str.137, ptr noundef nonnull %14)
  call void @put_def_string(ptr noundef %1, ptr noundef nonnull @.str.138, ptr noundef nonnull %15)
  call void @put_def_string(ptr noundef %1, ptr noundef nonnull @.str.139, ptr noundef nonnull %16)
  call void @put_def_string(ptr noundef %1, ptr noundef nonnull @.str.140, ptr noundef nonnull %17)
  br label %50

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

50:                                               ; preds = %47, %46
  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_string(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #3

; 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