; LLVM IR from aap/pdp6 :: tools (as6)

; 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.Value = type { i64, i32 }

@radix = external dso_local global i32, align 4
@pass2 = external dso_local global i32, align 4
@filename = external dso_local global ptr, align 8
@lineno = external dso_local global i32, align 4
@error = external dso_local global i32, align 4
@nlit = external dso_local global i32, align 4
@relfp = external dso_local global ptr, align 8
@lstfp = external dso_local global ptr, align 8
@relbreak = external dso_local global i64, align 8
@absbreak = external dso_local global i64, align 8
@.str.6 = external hidden unnamed_addr constant [1 x i8], align 1
@tmpfp = external dso_local global ptr, align 8
@infp = external dso_local global ptr, align 8
@progtitle = external dso_local global [256 x i8], align 16
@start = external dso_local global %struct.Value, align 8
@hadstart = external dso_local global i32, align 4
@.str.64 = external hidden unnamed_addr constant [6 x i8], align 1
@argv0 = external dso_local global ptr, align 8
@.str.66 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.67 = external hidden unnamed_addr constant [10 x i8], align 1
@nfiles = external dso_local global i32, align 4
@files = external dso_local global ptr, align 8
@.str.68 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.69 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.70 = external hidden unnamed_addr constant [6 x i8], align 1
@stdin = external global ptr, align 8
@.str.71 = external hidden unnamed_addr constant [12 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

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

; Function Attrs: nounwind uwtable
declare dso_local void @panic(ptr noundef, ...) #1

; Function Attrs: nounwind uwtable
declare dso_local ptr @mustopen(ptr noundef, ptr noundef) #1

; Function Attrs: nounwind uwtable
declare dso_local void @putword(i64 noundef, i32 noundef) #1

; Function Attrs: nounwind uwtable
declare dso_local void @startitem(i32 noundef) #1

declare i32 @right(i64 noundef) #2

declare i32 @putc(i32 noundef, ptr noundef) #2

declare i32 @fputs(ptr noundef, ptr noundef) #2

; Function Attrs: nounwind uwtable
declare dso_local void @litOp() #1

; Function Attrs: nounwind uwtable
declare dso_local void @assemble() #1

; Function Attrs: nounwind uwtable
declare dso_local void @resetdot() #1

; Function Attrs: nounwind uwtable
declare dso_local void @checkundef(i32 noundef) #1

; Function Attrs: nounwind uwtable
declare dso_local void @writesymtab() #1

declare i64 @rad50(i32 noundef, ptr noundef) #2

; Function Attrs: nounwind uwtable
declare dso_local void @cleanup() #1

; Function Attrs: nounwind uwtable
declare dso_local void @usage() #1

; Function Attrs: nounwind uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #1 {
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca i8, align 1
  %12 = alloca i32, align 4
  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 4, ptr %6) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #5
  store ptr @.str.66, ptr %7, align 8, !tbaa !9
  store ptr @.str.67, ptr %8, align 8, !tbaa !9
  %13 = load ptr, ptr @argv0, align 8, !tbaa !9
  %14 = icmp ne ptr %13, null
  br i1 %14, label %19, label %15

15:                                               ; preds = %2
  %16 = load ptr, ptr %5, align 8, !tbaa !9
  %17 = load ptr, ptr %16, align 8, !tbaa !9
  store ptr %17, ptr @argv0, align 8, !tbaa !9
  %18 = icmp ne ptr %17, null
  br label %19

19:                                               ; preds = %15, %2
  %20 = phi i1 [ true, %2 ], [ %18, %15 ]
  %21 = zext i1 %20 to i32
  %22 = load ptr, ptr %5, align 8, !tbaa !9
  %23 = getelementptr inbounds ptr, ptr %22, i32 1
  store ptr %23, ptr %5, align 8, !tbaa !9
  %24 = load i32, ptr %4, align 4, !tbaa !5
  %25 = add nsw i32 %24, -1
  store i32 %25, ptr %4, align 4, !tbaa !5
  br label %26

26:                                               ; preds = %146, %19
  %27 = load ptr, ptr %5, align 8, !tbaa !9
  %28 = getelementptr inbounds ptr, ptr %27, i64 0
  %29 = load ptr, ptr %28, align 8, !tbaa !9
  %30 = icmp ne ptr %29, null
  br i1 %30, label %31, label %47

31:                                               ; preds = %26
  %32 = load ptr, ptr %5, align 8, !tbaa !9
  %33 = getelementptr inbounds ptr, ptr %32, i64 0
  %34 = load ptr, ptr %33, align 8, !tbaa !9
  %35 = getelementptr inbounds i8, ptr %34, i64 0
  %36 = load i8, ptr %35, align 1, !tbaa !11
  %37 = sext i8 %36 to i32
  %38 = icmp eq i32 %37, 45
  br i1 %38, label %39, label %47

39:                                               ; preds = %31
  %40 = load ptr, ptr %5, align 8, !tbaa !9
  %41 = getelementptr inbounds ptr, ptr %40, i64 0
  %42 = load ptr, ptr %41, align 8, !tbaa !9
  %43 = getelementptr inbounds i8, ptr %42, i64 1
  %44 = load i8, ptr %43, align 1, !tbaa !11
  %45 = sext i8 %44 to i32
  %46 = icmp ne i32 %45, 0
  br label %47

47:                                               ; preds = %39, %31, %26
  %48 = phi i1 [ false, %31 ], [ false, %26 ], [ %46, %39 ]
  br i1 %48, label %49, label %151

49:                                               ; preds = %47
  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 1, ptr %11) #5
  %50 = load ptr, ptr %5, align 8, !tbaa !9
  %51 = getelementptr inbounds ptr, ptr %50, i64 0
  %52 = load ptr, ptr %51, align 8, !tbaa !9
  %53 = getelementptr inbounds i8, ptr %52, i64 1
  store ptr %53, ptr %9, align 8, !tbaa !9
  %54 = load ptr, ptr %9, align 8, !tbaa !9
  %55 = getelementptr inbounds i8, ptr %54, i64 0
  %56 = load i8, ptr %55, align 1, !tbaa !11
  %57 = sext i8 %56 to i32
  %58 = icmp eq i32 %57, 45
  br i1 %58, label %59, label %70

59:                                               ; preds = %49
  %60 = load ptr, ptr %9, align 8, !tbaa !9
  %61 = getelementptr inbounds i8, ptr %60, i64 1
  %62 = load i8, ptr %61, align 1, !tbaa !11
  %63 = sext i8 %62 to i32
  %64 = icmp eq i32 %63, 0
  br i1 %64, label %65, label %70

65:                                               ; preds = %59
  %66 = load i32, ptr %4, align 4, !tbaa !5
  %67 = add nsw i32 %66, -1
  store i32 %67, ptr %4, align 4, !tbaa !5
  %68 = load ptr, ptr %5, align 8, !tbaa !9
  %69 = getelementptr inbounds ptr, ptr %68, i32 1
  store ptr %69, ptr %5, align 8, !tbaa !9
  store i32 2, ptr %12, align 4
  br label %143

70:                                               ; preds = %59, %49
  store i8 0, ptr %11, align 1, !tbaa !11
  br label %71

71:                                               ; preds = %138, %70
  %72 = load ptr, ptr %9, align 8, !tbaa !9
  %73 = load i8, ptr %72, align 1, !tbaa !11
  %74 = sext i8 %73 to i32
  %75 = icmp ne i32 %74, 0
  br i1 %75, label %76, label %82

76:                                               ; preds = %71
  %77 = load ptr, ptr %9, align 8, !tbaa !9
  %78 = getelementptr inbounds i8, ptr %77, i32 1
  store ptr %78, ptr %9, align 8, !tbaa !9
  %79 = load i8, ptr %77, align 1, !tbaa !11
  store i8 %79, ptr %11, align 1, !tbaa !11
  %80 = sext i8 %79 to i32
  %81 = icmp ne i32 %80, 0
  br label %82

82:                                               ; preds = %76, %71
  %83 = phi i1 [ false, %71 ], [ %81, %76 ]
  br i1 %83, label %84, label %139

84:                                               ; preds = %82
  %85 = load i8, ptr %11, align 1, !tbaa !11
  %86 = sext i8 %85 to i32
  switch i32 %86, label %137 [
    i32 111, label %87
    i32 108, label %112
  ]

87:                                               ; preds = %84
  %88 = load ptr, ptr %9, align 8, !tbaa !9
  store ptr %88, ptr %10, align 8, !tbaa !9
  store ptr @.str.6, ptr %9, align 8, !tbaa !9
  %89 = load ptr, ptr %10, align 8, !tbaa !9
  %90 = load i8, ptr %89, align 1, !tbaa !11
  %91 = sext i8 %90 to i32
  %92 = icmp ne i32 %91, 0
  br i1 %92, label %93, label %95

93:                                               ; preds = %87
  %94 = load ptr, ptr %10, align 8, !tbaa !9
  br label %110

95:                                               ; preds = %87
  %96 = load ptr, ptr %5, align 8, !tbaa !9
  %97 = getelementptr inbounds ptr, ptr %96, i64 1
  %98 = load ptr, ptr %97, align 8, !tbaa !9
  %99 = icmp ne ptr %98, null
  br i1 %99, label %100, label %106

100:                                              ; preds = %95
  %101 = load i32, ptr %4, align 4, !tbaa !5
  %102 = add nsw i32 %101, -1
  store i32 %102, ptr %4, align 4, !tbaa !5
  %103 = load ptr, ptr %5, align 8, !tbaa !9
  %104 = getelementptr inbounds ptr, ptr %103, i32 1
  store ptr %104, ptr %5, align 8, !tbaa !9
  %105 = load ptr, ptr %104, align 8, !tbaa !9
  br label %108

106:                                              ; preds = %95
  call void @usage()
  call void @abort() #6
  unreachable

107:                                              ; No predecessors!
  br label %108

108:                                              ; preds = %107, %100
  %109 = phi ptr [ %105, %100 ], [ null, %107 ]
  br label %110

110:                                              ; preds = %108, %93
  %111 = phi ptr [ %94, %93 ], [ %109, %108 ]
  store ptr %111, ptr %7, align 8, !tbaa !9
  br label %138

112:                                              ; preds = %84
  %113 = load ptr, ptr %9, align 8, !tbaa !9
  store ptr %113, ptr %10, align 8, !tbaa !9
  store ptr @.str.6, ptr %9, align 8, !tbaa !9
  %114 = load ptr, ptr %10, align 8, !tbaa !9
  %115 = load i8, ptr %114, align 1, !tbaa !11
  %116 = sext i8 %115 to i32
  %117 = icmp ne i32 %116, 0
  br i1 %117, label %118, label %120

118:                                              ; preds = %112
  %119 = load ptr, ptr %10, align 8, !tbaa !9
  br label %135

120:                                              ; preds = %112
  %121 = load ptr, ptr %5, align 8, !tbaa !9
  %122 = getelementptr inbounds ptr, ptr %121, i64 1
  %123 = load ptr, ptr %122, align 8, !tbaa !9
  %124 = icmp ne ptr %123, null
  br i1 %124, label %125, label %131

125:                                              ; preds = %120
  %126 = load i32, ptr %4, align 4, !tbaa !5
  %127 = add nsw i32 %126, -1
  store i32 %127, ptr %4, align 4, !tbaa !5
  %128 = load ptr, ptr %5, align 8, !tbaa !9
  %129 = getelementptr inbounds ptr, ptr %128, i32 1
  store ptr %129, ptr %5, align 8, !tbaa !9
  %130 = load ptr, ptr %129, align 8, !tbaa !9
  br label %133

131:                                              ; preds = %120
  call void @usage()
  call void @abort() #6
  unreachable

132:                                              ; No predecessors!
  br label %133

133:                                              ; preds = %132, %125
  %134 = phi ptr [ %130, %125 ], [ null, %132 ]
  br label %135

135:                                              ; preds = %133, %118
  %136 = phi ptr [ %119, %118 ], [ %134, %133 ]
  store ptr %136, ptr %8, align 8, !tbaa !9
  br label %138

137:                                              ; preds = %84
  call void @usage()
  br label %138

138:                                              ; preds = %137, %135, %110
  br label %71, !llvm.loop !12

139:                                              ; preds = %82
  store ptr null, ptr %10, align 8, !tbaa !9
  %140 = load ptr, ptr %10, align 8, !tbaa !9
  %141 = load i8, ptr %11, align 1, !tbaa !11
  %142 = load ptr, ptr %9, align 8, !tbaa !9
  store i32 0, ptr %12, align 4
  br label %143

143:                                              ; preds = %139, %65
  call void @llvm.lifetime.end.p0(i64 1, 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
  %144 = load i32, ptr %12, align 4
  switch i32 %144, label %232 [
    i32 0, label %145
    i32 2, label %151
  ]

145:                                              ; preds = %143
  br label %146

146:                                              ; preds = %145
  %147 = load i32, ptr %4, align 4, !tbaa !5
  %148 = add nsw i32 %147, -1
  store i32 %148, ptr %4, align 4, !tbaa !5
  %149 = load ptr, ptr %5, align 8, !tbaa !9
  %150 = getelementptr inbounds ptr, ptr %149, i32 1
  store ptr %150, ptr %5, align 8, !tbaa !9
  br label %26, !llvm.loop !14

151:                                              ; preds = %143, %47
  %152 = load ptr, ptr %5, align 8, !tbaa !9
  %153 = load i32, ptr %4, align 4, !tbaa !5
  %154 = load i32, ptr %4, align 4, !tbaa !5
  store i32 %154, ptr @nfiles, align 4, !tbaa !5
  %155 = load ptr, ptr %5, align 8, !tbaa !9
  store ptr %155, ptr @files, align 8, !tbaa !9
  %156 = call ptr @mustopen(ptr noundef @.str.64, ptr noundef @.str.68)
  store ptr %156, ptr @tmpfp, align 8, !tbaa !9
  %157 = call i32 @atexit(ptr noundef @cleanup) #5
  call void @initsymtab()
  call void @resetdot()
  store i32 0, ptr @pass2, align 4, !tbaa !5
  %158 = load i32, ptr %4, align 4, !tbaa !5
  %159 = icmp ne i32 %158, 0
  br i1 %159, label %160, label %186

160:                                              ; preds = %151
  store i32 0, ptr %6, align 4, !tbaa !5
  br label %161

161:                                              ; preds = %182, %160
  %162 = load i32, ptr %6, align 4, !tbaa !5
  %163 = load i32, ptr %4, align 4, !tbaa !5
  %164 = icmp slt i32 %162, %163
  br i1 %164, label %165, label %185

165:                                              ; preds = %161
  %166 = load ptr, ptr %5, align 8, !tbaa !9
  %167 = load i32, ptr %6, align 4, !tbaa !5
  %168 = sext i32 %167 to i64
  %169 = getelementptr inbounds ptr, ptr %166, i64 %168
  %170 = load ptr, ptr %169, align 8, !tbaa !9
  store ptr %170, ptr @filename, align 8, !tbaa !9
  %171 = load ptr, ptr @filename, align 8, !tbaa !9
  %172 = call ptr @mustopen(ptr noundef %171, ptr noundef @.str.69)
  store ptr %172, ptr @infp, align 8, !tbaa !9
  %173 = load ptr, ptr @tmpfp, align 8, !tbaa !9
  %174 = call i32 @putc(i32 noundef 1, ptr noundef %173)
  %175 = load ptr, ptr @filename, align 8, !tbaa !9
  %176 = load ptr, ptr @tmpfp, align 8, !tbaa !9
  %177 = call i32 @fputs(ptr noundef %175, ptr noundef %176)
  %178 = load ptr, ptr @tmpfp, align 8, !tbaa !9
  %179 = call i32 @putc(i32 noundef 0, ptr noundef %178)
  store i32 0, ptr @lineno, align 4, !tbaa !5
  call void @assemble()
  %180 = load ptr, ptr @infp, align 8, !tbaa !9
  %181 = call i32 @fclose(ptr noundef %180)
  br label %182

182:                                              ; preds = %165
  %183 = load i32, ptr %6, align 4, !tbaa !5
  %184 = add nsw i32 %183, 1
  store i32 %184, ptr %6, align 4, !tbaa !5
  br label %161, !llvm.loop !15

185:                                              ; preds = %161
  br label %195

186:                                              ; preds = %151
  store ptr @.str.70, ptr @filename, align 8, !tbaa !9
  %187 = load ptr, ptr @stdin, align 8, !tbaa !9
  store ptr %187, ptr @infp, align 8, !tbaa !9
  %188 = load ptr, ptr @tmpfp, align 8, !tbaa !9
  %189 = call i32 @putc(i32 noundef 1, ptr noundef %188)
  %190 = load ptr, ptr @filename, align 8, !tbaa !9
  %191 = load ptr, ptr @tmpfp, align 8, !tbaa !9
  %192 = call i32 @fputs(ptr noundef %190, ptr noundef %191)
  %193 = load ptr, ptr @tmpfp, align 8, !tbaa !9
  %194 = call i32 @putc(i32 noundef 0, ptr noundef %193)
  store i32 0, ptr @lineno, align 4, !tbaa !5
  call void @assemble()
  br label %195

195:                                              ; preds = %186, %185
  call void @litOp()
  %196 = load ptr, ptr @tmpfp, align 8, !tbaa !9
  %197 = call i32 @putc(i32 noundef 3, ptr noundef %196)
  %198 = load ptr, ptr @tmpfp, align 8, !tbaa !9
  %199 = call i32 @fclose(ptr noundef %198)
  call void @checkundef(i32 noundef 1)
  %200 = load i32, ptr @error, align 4, !tbaa !5
  %201 = and i32 %200, 1
  %202 = icmp ne i32 %201, 0
  br i1 %202, label %203, label %204

203:                                              ; preds = %195
  call void (ptr, ...) @panic(ptr noundef @.str.71)
  br label %204

204:                                              ; preds = %203, %195
  %205 = load ptr, ptr %8, align 8, !tbaa !9
  %206 = call ptr @mustopen(ptr noundef %205, ptr noundef @.str.68)
  store ptr %206, ptr @lstfp, align 8, !tbaa !9
  %207 = load ptr, ptr %7, align 8, !tbaa !9
  %208 = call ptr @mustopen(ptr noundef %207, ptr noundef @.str.68)
  store ptr %208, ptr @relfp, align 8, !tbaa !9
  %209 = call ptr @mustopen(ptr noundef @.str.64, ptr noundef @.str.69)
  store ptr %209, ptr @tmpfp, align 8, !tbaa !9
  call void @resetdot()
  store i32 0, ptr @nlit, align 4, !tbaa !5
  store i32 1, ptr @pass2, align 4, !tbaa !5
  store i32 8, ptr @radix, align 4, !tbaa !5
  call void @startitem(i32 noundef 6)
  %210 = call i64 @rad50(i32 noundef 0, ptr noundef @progtitle)
  call void @putword(i64 noundef %210, i32 noundef 0)
  call void @assemble()
  call void @litOp()
  call void @writesymtab()
  %211 = load i32, ptr @hadstart, align 4, !tbaa !5
  %212 = icmp ne i32 %211, 0
  br i1 %212, label %213, label %218

213:                                              ; preds = %204
  call void @startitem(i32 noundef 7)
  %214 = load i64, ptr @start, align 8, !tbaa !16
  %215 = call i32 @right(i64 noundef %214)
  %216 = zext i32 %215 to i64
  %217 = load i32, ptr getelementptr inbounds (%struct.Value, ptr @start, i32 0, i32 1), align 8, !tbaa !19
  call void @putword(i64 noundef %216, i32 noundef %217)
  br label %218

218:                                              ; preds = %213, %204
  call void @startitem(i32 noundef 5)
  %219 = load i64, ptr @relbreak, align 8, !tbaa !20
  %220 = call i32 @right(i64 noundef %219)
  %221 = zext i32 %220 to i64
  call void @putword(i64 noundef %221, i32 noundef 1)
  %222 = load i64, ptr @absbreak, align 8, !tbaa !20
  %223 = call i32 @right(i64 noundef %222)
  %224 = zext i32 %223 to i64
  call void @putword(i64 noundef %224, i32 noundef 0)
  call void @startitem(i32 noundef 0)
  %225 = load ptr, ptr @tmpfp, align 8, !tbaa !9
  %226 = call i32 @fclose(ptr noundef %225)
  %227 = load ptr, ptr @relfp, align 8, !tbaa !9
  %228 = call i32 @fclose(ptr noundef %227)
  %229 = load ptr, ptr @lstfp, align 8, !tbaa !9
  %230 = call i32 @fclose(ptr noundef %229)
  store i32 0, ptr %3, align 4
  store i32 1, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #5
  %231 = load i32, ptr %3, align 4
  ret i32 %231

232:                                              ; preds = %143
  unreachable
}

; Function Attrs: noreturn nounwind
declare void @abort() #3

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

; Function Attrs: nounwind uwtable
declare dso_local void @initsymtab() #1

declare i32 @fclose(ptr noundef) #2

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { "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 = { 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 #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"}
!14 = distinct !{!14, !13}
!15 = distinct !{!15, !13}
!16 = !{!17, !18, i64 0}
!17 = !{!"Value", !18, i64 0, !6, i64 8}
!18 = !{!"long", !7, i64 0}
!19 = !{!17, !6, i64 8}
!20 = !{!18, !18, i64 0}


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

%struct.Value = type { i64, i32 }

@radix = external dso_local local_unnamed_addr global i32, align 4
@pass2 = external dso_local local_unnamed_addr global i32, align 4
@filename = external dso_local local_unnamed_addr global ptr, align 8
@lineno = external dso_local local_unnamed_addr global i32, align 4
@error = external dso_local local_unnamed_addr global i32, align 4
@nlit = external dso_local local_unnamed_addr global i32, align 4
@relfp = external dso_local local_unnamed_addr global ptr, align 8
@lstfp = external dso_local local_unnamed_addr global ptr, align 8
@relbreak = external dso_local local_unnamed_addr global i64, align 8
@absbreak = external dso_local local_unnamed_addr global i64, align 8
@.str.6 = external hidden unnamed_addr constant [1 x i8], align 1
@tmpfp = external dso_local local_unnamed_addr global ptr, align 8
@infp = external dso_local local_unnamed_addr global ptr, align 8
@progtitle = external dso_local global [256 x i8], align 16
@start = external dso_local local_unnamed_addr global %struct.Value, align 8
@hadstart = external dso_local local_unnamed_addr global i32, align 4
@.str.64 = external hidden unnamed_addr constant [6 x i8], align 1
@argv0 = external dso_local local_unnamed_addr global ptr, align 8
@.str.66 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.67 = external hidden unnamed_addr constant [10 x i8], align 1
@nfiles = external dso_local local_unnamed_addr global i32, align 4
@files = external dso_local local_unnamed_addr global ptr, align 8
@.str.68 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.69 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.70 = external hidden unnamed_addr constant [6 x i8], align 1
@stdin = external local_unnamed_addr global ptr, align 8
@.str.71 = external hidden unnamed_addr constant [12 x i8], align 1

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

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

; Function Attrs: nounwind uwtable
declare dso_local void @putword(i64 noundef, i32 noundef) local_unnamed_addr #0

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

declare i32 @right(i64 noundef) local_unnamed_addr #1

; Function Attrs: nofree nounwind
declare noundef i32 @putc(i32 noundef, ptr nocapture noundef) local_unnamed_addr #2

; Function Attrs: nofree nounwind
declare noundef i32 @fputs(ptr nocapture noundef readonly, ptr nocapture noundef) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
declare dso_local void @litOp() local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare dso_local void @assemble() local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare dso_local void @resetdot() local_unnamed_addr #0

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

; Function Attrs: nounwind uwtable
declare dso_local void @writesymtab() local_unnamed_addr #0

declare i64 @rad50(i32 noundef, ptr noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
declare dso_local void @cleanup() #0

; Function Attrs: nounwind uwtable
declare dso_local void @usage() local_unnamed_addr #0

; Function Attrs: nounwind uwtable
define dso_local noundef i32 @main(i32 noundef %0, ptr noundef %1) local_unnamed_addr #0 {
  %3 = load ptr, ptr @argv0, align 8, !tbaa !5
  %.not = icmp eq ptr %3, null
  br i1 %.not, label %4, label %6

4:                                                ; preds = %2
  %5 = load ptr, ptr %1, align 8, !tbaa !5
  store ptr %5, ptr @argv0, align 8, !tbaa !5
  br label %6

6:                                                ; preds = %4, %2
  %.058128 = getelementptr inbounds i8, ptr %1, i64 8
  %.063129 = add nsw i32 %0, -1
  %7 = load ptr, ptr %.058128, align 8, !tbaa !5
  %.not75130 = icmp eq ptr %7, null
  br i1 %.not75130, label %.critedge, label %.lr.ph137

.critedge2.loopexit:                              ; preds = %40
  %.058 = getelementptr inbounds i8, ptr %.462, i64 8
  %.063 = add nsw i32 %.467, -1
  %8 = load ptr, ptr %.058, align 8, !tbaa !5
  %.not75 = icmp eq ptr %8, null
  br i1 %.not75, label %.critedge, label %.lr.ph137, !llvm.loop !9

.lr.ph137:                                        ; preds = %6, %.critedge2.loopexit
  %9 = phi ptr [ %8, %.critedge2.loopexit ], [ %7, %6 ]
  %.063136 = phi i32 [ %.063, %.critedge2.loopexit ], [ %.063129, %6 ]
  %.058135 = phi ptr [ %.058, %.critedge2.loopexit ], [ %.058128, %6 ]
  %.049134 = phi ptr [ %.251, %.critedge2.loopexit ], [ @.str.67, %6 ]
  %.052133 = phi ptr [ %.254, %.critedge2.loopexit ], [ @.str.66, %6 ]
  %.pn132 = phi ptr [ %.462, %.critedge2.loopexit ], [ %1, %6 ]
  %.063.in131 = phi i32 [ %.467, %.critedge2.loopexit ], [ %0, %6 ]
  %10 = load i8, ptr %9, align 1, !tbaa !11
  %11 = icmp eq i8 %10, 45
  br i1 %11, label %12, label %.critedge

12:                                               ; preds = %.lr.ph137
  %13 = getelementptr inbounds i8, ptr %9, i64 1
  %14 = load i8, ptr %13, align 1, !tbaa !11
  switch i8 %14, label %.lr.ph.preheader [
    i8 0, label %.critedge
    i8 45, label %15
  ]

15:                                               ; preds = %12
  %16 = getelementptr inbounds i8, ptr %9, i64 2
  %17 = load i8, ptr %16, align 1, !tbaa !11
  %18 = icmp eq i8 %17, 0
  br i1 %18, label %.critedge2.thread, label %.lr.ph.preheader

.lr.ph.preheader:                                 ; preds = %12, %15
  br label %.lr.ph

.critedge2.thread:                                ; preds = %15
  %19 = add nsw i32 %.063.in131, -2
  %20 = getelementptr inbounds i8, ptr %.pn132, i64 16
  br label %.critedge

.lr.ph:                                           ; preds = %.lr.ph.preheader, %40
  %21 = phi i8 [ %41, %40 ], [ %14, %.lr.ph.preheader ]
  %.047124 = phi ptr [ %.148, %40 ], [ %13, %.lr.ph.preheader ]
  %.150123 = phi ptr [ %.251, %40 ], [ %.049134, %.lr.ph.preheader ]
  %.153122 = phi ptr [ %.254, %40 ], [ %.052133, %.lr.ph.preheader ]
  %.159121 = phi ptr [ %.462, %40 ], [ %.058135, %.lr.ph.preheader ]
  %.164120 = phi i32 [ %.467, %40 ], [ %.063136, %.lr.ph.preheader ]
  %22 = getelementptr inbounds i8, ptr %.047124, i64 1
  switch i8 %21, label %39 [
    i8 111, label %23
    i8 108, label %31
  ]

23:                                               ; preds = %.lr.ph
  %24 = load i8, ptr %22, align 1, !tbaa !11
  %.not80 = icmp eq i8 %24, 0
  br i1 %.not80, label %25, label %40

25:                                               ; preds = %23
  %26 = getelementptr inbounds i8, ptr %.159121, i64 8
  %27 = load ptr, ptr %26, align 8, !tbaa !5
  %.not81 = icmp eq ptr %27, null
  br i1 %.not81, label %30, label %28

28:                                               ; preds = %25
  %29 = add nsw i32 %.164120, -1
  br label %40

30:                                               ; preds = %25
  tail call void @usage()
  tail call void @abort() #4
  unreachable

31:                                               ; preds = %.lr.ph
  %32 = load i8, ptr %22, align 1, !tbaa !11
  %.not78 = icmp eq i8 %32, 0
  br i1 %.not78, label %33, label %40

33:                                               ; preds = %31
  %34 = getelementptr inbounds i8, ptr %.159121, i64 8
  %35 = load ptr, ptr %34, align 8, !tbaa !5
  %.not79 = icmp eq ptr %35, null
  br i1 %.not79, label %38, label %36

36:                                               ; preds = %33
  %37 = add nsw i32 %.164120, -1
  br label %40

38:                                               ; preds = %33
  tail call void @usage()
  tail call void @abort() #4
  unreachable

39:                                               ; preds = %.lr.ph
  tail call void @usage()
  br label %40

40:                                               ; preds = %36, %31, %28, %23, %39
  %.467 = phi i32 [ %.164120, %39 ], [ %29, %28 ], [ %.164120, %23 ], [ %37, %36 ], [ %.164120, %31 ]
  %.462 = phi ptr [ %.159121, %39 ], [ %26, %28 ], [ %.159121, %23 ], [ %34, %36 ], [ %.159121, %31 ]
  %.254 = phi ptr [ %.153122, %39 ], [ %27, %28 ], [ %22, %23 ], [ %.153122, %36 ], [ %.153122, %31 ]
  %.251 = phi ptr [ %.150123, %39 ], [ %.150123, %28 ], [ %.150123, %23 ], [ %35, %36 ], [ %22, %31 ]
  %.148 = phi ptr [ %22, %39 ], [ @.str.6, %28 ], [ @.str.6, %23 ], [ @.str.6, %36 ], [ @.str.6, %31 ]
  %41 = load i8, ptr %.148, align 1, !tbaa !11
  %.not77 = icmp eq i8 %41, 0
  br i1 %.not77, label %.critedge2.loopexit, label %.lr.ph, !llvm.loop !12

.critedge:                                        ; preds = %.critedge2.loopexit, %.lr.ph137, %12, %6, %.critedge2.thread
  %.052112 = phi ptr [ %.052133, %.critedge2.thread ], [ @.str.66, %6 ], [ %.254, %.critedge2.loopexit ], [ %.052133, %.lr.ph137 ], [ %.052133, %12 ]
  %.049108 = phi ptr [ %.049134, %.critedge2.thread ], [ @.str.67, %6 ], [ %.251, %.critedge2.loopexit ], [ %.049134, %.lr.ph137 ], [ %.049134, %12 ]
  %.669 = phi i32 [ %19, %.critedge2.thread ], [ %.063129, %6 ], [ %.063, %.critedge2.loopexit ], [ %.063136, %.lr.ph137 ], [ %.063136, %12 ]
  %.6 = phi ptr [ %20, %.critedge2.thread ], [ %.058128, %6 ], [ %.058, %.critedge2.loopexit ], [ %.058135, %.lr.ph137 ], [ %.058135, %12 ]
  store i32 %.669, ptr @nfiles, align 4, !tbaa !13
  store ptr %.6, ptr @files, align 8, !tbaa !5
  %42 = tail call ptr @mustopen(ptr noundef nonnull @.str.64, ptr noundef nonnull @.str.68)
  store ptr %42, ptr @tmpfp, align 8, !tbaa !5
  %43 = tail call i32 @atexit(ptr noundef nonnull @cleanup) #5
  tail call void @initsymtab()
  tail call void @resetdot()
  store i32 0, ptr @pass2, align 4, !tbaa !13
  %.not82 = icmp eq i32 %.669, 0
  br i1 %.not82, label %57, label %.preheader

.preheader:                                       ; preds = %.critedge
  %44 = icmp sgt i32 %.669, 0
  br i1 %44, label %.lr.ph152.preheader, label %.loopexit

.lr.ph152.preheader:                              ; preds = %.preheader
  %wide.trip.count = zext nneg i32 %.669 to i64
  br label %.lr.ph152

.lr.ph152:                                        ; preds = %.lr.ph152.preheader, %.lr.ph152
  %indvars.iv = phi i64 [ 0, %.lr.ph152.preheader ], [ %indvars.iv.next, %.lr.ph152 ]
  %45 = getelementptr inbounds ptr, ptr %.6, i64 %indvars.iv
  %46 = load ptr, ptr %45, align 8, !tbaa !5
  store ptr %46, ptr @filename, align 8, !tbaa !5
  %47 = tail call ptr @mustopen(ptr noundef %46, ptr noundef nonnull @.str.69)
  store ptr %47, ptr @infp, align 8, !tbaa !5
  %48 = load ptr, ptr @tmpfp, align 8, !tbaa !5
  %49 = tail call i32 @putc(i32 noundef 1, ptr noundef %48)
  %50 = load ptr, ptr @filename, align 8, !tbaa !5
  %51 = load ptr, ptr @tmpfp, align 8, !tbaa !5
  %52 = tail call i32 @fputs(ptr noundef %50, ptr noundef %51)
  %53 = load ptr, ptr @tmpfp, align 8, !tbaa !5
  %54 = tail call i32 @putc(i32 noundef 0, ptr noundef %53)
  store i32 0, ptr @lineno, align 4, !tbaa !13
  tail call void @assemble()
  %55 = load ptr, ptr @infp, align 8, !tbaa !5
  %56 = tail call i32 @fclose(ptr noundef %55)
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond.not, label %.loopexit, label %.lr.ph152, !llvm.loop !15

57:                                               ; preds = %.critedge
  store ptr @.str.70, ptr @filename, align 8, !tbaa !5
  %58 = load ptr, ptr @stdin, align 8, !tbaa !5
  store ptr %58, ptr @infp, align 8, !tbaa !5
  %59 = load ptr, ptr @tmpfp, align 8, !tbaa !5
  %60 = tail call i32 @putc(i32 noundef 1, ptr noundef %59)
  %61 = load ptr, ptr @filename, align 8, !tbaa !5
  %62 = load ptr, ptr @tmpfp, align 8, !tbaa !5
  %63 = tail call i32 @fputs(ptr noundef %61, ptr noundef %62)
  %64 = load ptr, ptr @tmpfp, align 8, !tbaa !5
  %65 = tail call i32 @putc(i32 noundef 0, ptr noundef %64)
  store i32 0, ptr @lineno, align 4, !tbaa !13
  tail call void @assemble()
  br label %.loopexit

.loopexit:                                        ; preds = %.lr.ph152, %.preheader, %57
  tail call void @litOp()
  %66 = load ptr, ptr @tmpfp, align 8, !tbaa !5
  %67 = tail call i32 @putc(i32 noundef 3, ptr noundef %66)
  %68 = load ptr, ptr @tmpfp, align 8, !tbaa !5
  %69 = tail call i32 @fclose(ptr noundef %68)
  tail call void @checkundef(i32 noundef 1)
  %70 = load i32, ptr @error, align 4, !tbaa !13
  %71 = and i32 %70, 1
  %.not83 = icmp eq i32 %71, 0
  br i1 %.not83, label %73, label %72

72:                                               ; preds = %.loopexit
  tail call void (ptr, ...) @panic(ptr noundef nonnull @.str.71)
  br label %73

73:                                               ; preds = %72, %.loopexit
  %74 = tail call ptr @mustopen(ptr noundef %.049108, ptr noundef nonnull @.str.68)
  store ptr %74, ptr @lstfp, align 8, !tbaa !5
  %75 = tail call ptr @mustopen(ptr noundef %.052112, ptr noundef nonnull @.str.68)
  store ptr %75, ptr @relfp, align 8, !tbaa !5
  %76 = tail call ptr @mustopen(ptr noundef nonnull @.str.64, ptr noundef nonnull @.str.69)
  store ptr %76, ptr @tmpfp, align 8, !tbaa !5
  tail call void @resetdot()
  store i32 0, ptr @nlit, align 4, !tbaa !13
  store i32 1, ptr @pass2, align 4, !tbaa !13
  store i32 8, ptr @radix, align 4, !tbaa !13
  tail call void @startitem(i32 noundef 6)
  %77 = tail call i64 @rad50(i32 noundef 0, ptr noundef nonnull @progtitle) #5
  tail call void @putword(i64 noundef %77, i32 noundef 0)
  tail call void @assemble()
  tail call void @litOp()
  tail call void @writesymtab()
  %78 = load i32, ptr @hadstart, align 4, !tbaa !13
  %.not84 = icmp eq i32 %78, 0
  br i1 %.not84, label %84, label %79

79:                                               ; preds = %73
  tail call void @startitem(i32 noundef 7)
  %80 = load i64, ptr @start, align 8, !tbaa !16
  %81 = tail call i32 @right(i64 noundef %80) #5
  %82 = zext i32 %81 to i64
  %83 = load i32, ptr getelementptr inbounds (i8, ptr @start, i64 8), align 8, !tbaa !19
  tail call void @putword(i64 noundef %82, i32 noundef %83)
  br label %84

84:                                               ; preds = %79, %73
  tail call void @startitem(i32 noundef 5)
  %85 = load i64, ptr @relbreak, align 8, !tbaa !20
  %86 = tail call i32 @right(i64 noundef %85) #5
  %87 = zext i32 %86 to i64
  tail call void @putword(i64 noundef %87, i32 noundef 1)
  %88 = load i64, ptr @absbreak, align 8, !tbaa !20
  %89 = tail call i32 @right(i64 noundef %88) #5
  %90 = zext i32 %89 to i64
  tail call void @putword(i64 noundef %90, i32 noundef 0)
  tail call void @startitem(i32 noundef 0)
  %91 = load ptr, ptr @tmpfp, align 8, !tbaa !5
  %92 = tail call i32 @fclose(ptr noundef %91)
  %93 = load ptr, ptr @relfp, align 8, !tbaa !5
  %94 = tail call i32 @fclose(ptr noundef %93)
  %95 = load ptr, ptr @lstfp, align 8, !tbaa !5
  %96 = tail call i32 @fclose(ptr noundef %95)
  ret i32 0
}

; Function Attrs: noreturn nounwind
declare void @abort() local_unnamed_addr #3

; Function Attrs: nofree nounwind
declare i32 @atexit(ptr noundef) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
declare dso_local void @initsymtab() local_unnamed_addr #0

; Function Attrs: nofree nounwind
declare noundef i32 @fclose(ptr nocapture noundef) local_unnamed_addr #2

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 = { "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 = { 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 #3 = { 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 #4 = { noreturn nounwind }
attributes #5 = { nounwind }

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

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


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass