; LLVM IR from aap/pdp6 :: newemu (main)

; 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.PDP6 = type { i32, i32, i32, i32, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i64, i64, i8, i64, i64, i64, i32, i32, i32, i32, i32, i32, i64, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i32, i32, i32, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i32, i32, i64, i64, i64, i8, i8, i8, i8, i64, i8, i8, i8, i32, %struct.FD, i64, i8, i8, i8, i8, i8, i8, i8, i8, i32, i32, %struct.FD, i32, i64, i64, %struct.FD, i8, i64, i64, i64, i64, i64, i8, i64 }
%struct.FD = type { i32, i32, i32 }

@dis = external dso_local global ptr, align 8
@stderr = external global ptr, align 8
@argv0 = external dso_local global ptr, align 8
@.str.9 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [1 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [18 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: 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 @configmachine(ptr noundef) #2

; Function Attrs: nounwind uwtable
declare dso_local void @initemu(ptr noundef) #2

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

declare void @lightsoff(ptr noundef) #1

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

; Function Attrs: nounwind
declare i32 @fprintf(ptr noundef, ptr noundef, ...) #3

; Function Attrs: nounwind uwtable
declare dso_local void @inthandler(i32 noundef) #2

; Function Attrs: nounwind uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #2 {
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca %struct.PDP6, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca i8, align 1
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca ptr, align 8
  store i32 0, ptr %3, align 4
  store i32 %0, ptr %4, align 4, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #6
  call void @llvm.lifetime.start.p0(i64 432, ptr %7) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #6
  store ptr %7, ptr %8, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #6
  store ptr @.str.9, ptr %9, align 8, !tbaa !9
  store i32 3400, ptr %10, align 4, !tbaa !5
  %17 = load ptr, ptr @argv0, align 8, !tbaa !9
  %18 = icmp ne ptr %17, null
  br i1 %18, label %23, label %19

19:                                               ; preds = %2
  %20 = load ptr, ptr %5, align 8, !tbaa !9
  %21 = load ptr, ptr %20, align 8, !tbaa !9
  store ptr %21, ptr @argv0, align 8, !tbaa !9
  %22 = icmp ne ptr %21, null
  br label %23

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

30:                                               ; preds = %151, %23
  %31 = load ptr, ptr %5, align 8, !tbaa !9
  %32 = getelementptr inbounds ptr, ptr %31, i64 0
  %33 = load ptr, ptr %32, align 8, !tbaa !9
  %34 = icmp ne ptr %33, null
  br i1 %34, label %35, label %51

35:                                               ; preds = %30
  %36 = load ptr, ptr %5, align 8, !tbaa !9
  %37 = getelementptr inbounds ptr, ptr %36, i64 0
  %38 = load ptr, ptr %37, align 8, !tbaa !9
  %39 = getelementptr inbounds i8, ptr %38, i64 0
  %40 = load i8, ptr %39, align 1, !tbaa !11
  %41 = sext i8 %40 to i32
  %42 = icmp eq i32 %41, 45
  br i1 %42, label %43, label %51

43:                                               ; preds = %35
  %44 = load ptr, ptr %5, align 8, !tbaa !9
  %45 = getelementptr inbounds ptr, ptr %44, i64 0
  %46 = load ptr, ptr %45, align 8, !tbaa !9
  %47 = getelementptr inbounds i8, ptr %46, i64 1
  %48 = load i8, ptr %47, align 1, !tbaa !11
  %49 = sext i8 %48 to i32
  %50 = icmp ne i32 %49, 0
  br label %51

51:                                               ; preds = %43, %35, %30
  %52 = phi i1 [ false, %35 ], [ false, %30 ], [ %50, %43 ]
  br i1 %52, label %53, label %156

53:                                               ; preds = %51
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr %13) #6
  %54 = load ptr, ptr %5, align 8, !tbaa !9
  %55 = getelementptr inbounds ptr, ptr %54, i64 0
  %56 = load ptr, ptr %55, align 8, !tbaa !9
  %57 = getelementptr inbounds i8, ptr %56, i64 1
  store ptr %57, ptr %11, align 8, !tbaa !9
  %58 = load ptr, ptr %11, align 8, !tbaa !9
  %59 = getelementptr inbounds i8, ptr %58, i64 0
  %60 = load i8, ptr %59, align 1, !tbaa !11
  %61 = sext i8 %60 to i32
  %62 = icmp eq i32 %61, 45
  br i1 %62, label %63, label %74

63:                                               ; preds = %53
  %64 = load ptr, ptr %11, align 8, !tbaa !9
  %65 = getelementptr inbounds i8, ptr %64, i64 1
  %66 = load i8, ptr %65, align 1, !tbaa !11
  %67 = sext i8 %66 to i32
  %68 = icmp eq i32 %67, 0
  br i1 %68, label %69, label %74

69:                                               ; preds = %63
  %70 = load i32, ptr %4, align 4, !tbaa !5
  %71 = add nsw i32 %70, -1
  store i32 %71, ptr %4, align 4, !tbaa !5
  %72 = load ptr, ptr %5, align 8, !tbaa !9
  %73 = getelementptr inbounds ptr, ptr %72, i32 1
  store ptr %73, ptr %5, align 8, !tbaa !9
  store i32 2, ptr %14, align 4
  br label %148

74:                                               ; preds = %63, %53
  store i8 0, ptr %13, align 1, !tbaa !11
  br label %75

75:                                               ; preds = %143, %74
  %76 = load ptr, ptr %11, align 8, !tbaa !9
  %77 = load i8, ptr %76, align 1, !tbaa !11
  %78 = sext i8 %77 to i32
  %79 = icmp ne i32 %78, 0
  br i1 %79, label %80, label %86

80:                                               ; preds = %75
  %81 = load ptr, ptr %11, align 8, !tbaa !9
  %82 = getelementptr inbounds i8, ptr %81, i32 1
  store ptr %82, ptr %11, align 8, !tbaa !9
  %83 = load i8, ptr %81, align 1, !tbaa !11
  store i8 %83, ptr %13, align 1, !tbaa !11
  %84 = sext i8 %83 to i32
  %85 = icmp ne i32 %84, 0
  br label %86

86:                                               ; preds = %80, %75
  %87 = phi i1 [ false, %75 ], [ %85, %80 ]
  br i1 %87, label %88, label %144

88:                                               ; preds = %86
  %89 = load i8, ptr %13, align 1, !tbaa !11
  %90 = sext i8 %89 to i32
  switch i32 %90, label %142 [
    i32 104, label %91
    i32 112, label %116
  ]

91:                                               ; preds = %88
  %92 = load ptr, ptr %11, align 8, !tbaa !9
  store ptr %92, ptr %12, align 8, !tbaa !9
  store ptr @.str.10, ptr %11, align 8, !tbaa !9
  %93 = load ptr, ptr %12, align 8, !tbaa !9
  %94 = load i8, ptr %93, align 1, !tbaa !11
  %95 = sext i8 %94 to i32
  %96 = icmp ne i32 %95, 0
  br i1 %96, label %97, label %99

97:                                               ; preds = %91
  %98 = load ptr, ptr %12, align 8, !tbaa !9
  br label %114

99:                                               ; preds = %91
  %100 = load ptr, ptr %5, align 8, !tbaa !9
  %101 = getelementptr inbounds ptr, ptr %100, i64 1
  %102 = load ptr, ptr %101, align 8, !tbaa !9
  %103 = icmp ne ptr %102, null
  br i1 %103, label %104, label %110

104:                                              ; preds = %99
  %105 = load i32, ptr %4, align 4, !tbaa !5
  %106 = add nsw i32 %105, -1
  store i32 %106, ptr %4, align 4, !tbaa !5
  %107 = load ptr, ptr %5, align 8, !tbaa !9
  %108 = getelementptr inbounds ptr, ptr %107, i32 1
  store ptr %108, ptr %5, align 8, !tbaa !9
  %109 = load ptr, ptr %108, align 8, !tbaa !9
  br label %112

110:                                              ; preds = %99
  call void @usage()
  call void @abort() #7
  unreachable

111:                                              ; No predecessors!
  br label %112

112:                                              ; preds = %111, %104
  %113 = phi ptr [ %109, %104 ], [ null, %111 ]
  br label %114

114:                                              ; preds = %112, %97
  %115 = phi ptr [ %98, %97 ], [ %113, %112 ]
  store ptr %115, ptr %9, align 8, !tbaa !9
  br label %143

116:                                              ; preds = %88
  %117 = load ptr, ptr %11, align 8, !tbaa !9
  store ptr %117, ptr %12, align 8, !tbaa !9
  store ptr @.str.10, ptr %11, align 8, !tbaa !9
  %118 = load ptr, ptr %12, align 8, !tbaa !9
  %119 = load i8, ptr %118, align 1, !tbaa !11
  %120 = sext i8 %119 to i32
  %121 = icmp ne i32 %120, 0
  br i1 %121, label %122, label %124

122:                                              ; preds = %116
  %123 = load ptr, ptr %12, align 8, !tbaa !9
  br label %139

124:                                              ; preds = %116
  %125 = load ptr, ptr %5, align 8, !tbaa !9
  %126 = getelementptr inbounds ptr, ptr %125, i64 1
  %127 = load ptr, ptr %126, align 8, !tbaa !9
  %128 = icmp ne ptr %127, null
  br i1 %128, label %129, label %135

129:                                              ; preds = %124
  %130 = load i32, ptr %4, align 4, !tbaa !5
  %131 = add nsw i32 %130, -1
  store i32 %131, ptr %4, align 4, !tbaa !5
  %132 = load ptr, ptr %5, align 8, !tbaa !9
  %133 = getelementptr inbounds ptr, ptr %132, i32 1
  store ptr %133, ptr %5, align 8, !tbaa !9
  %134 = load ptr, ptr %133, align 8, !tbaa !9
  br label %137

135:                                              ; preds = %124
  call void @usage()
  call void @abort() #7
  unreachable

136:                                              ; No predecessors!
  br label %137

137:                                              ; preds = %136, %129
  %138 = phi ptr [ %134, %129 ], [ null, %136 ]
  br label %139

139:                                              ; preds = %137, %122
  %140 = phi ptr [ %123, %122 ], [ %138, %137 ]
  %141 = call i32 @atoi(ptr noundef %140) #8
  store i32 %141, ptr %10, align 4, !tbaa !5
  br label %143

142:                                              ; preds = %88
  call void @usage()
  br label %143

143:                                              ; preds = %142, %139, %114
  br label %75, !llvm.loop !12

144:                                              ; preds = %86
  store ptr null, ptr %12, align 8, !tbaa !9
  %145 = load ptr, ptr %12, align 8, !tbaa !9
  %146 = load i8, ptr %13, align 1, !tbaa !11
  %147 = load ptr, ptr %11, align 8, !tbaa !9
  store i32 0, ptr %14, align 4
  br label %148

148:                                              ; preds = %144, %69
  call void @llvm.lifetime.end.p0(i64 1, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #6
  %149 = load i32, ptr %14, align 4
  switch i32 %149, label %225 [
    i32 0, label %150
    i32 2, label %156
  ]

150:                                              ; preds = %148
  br label %151

151:                                              ; preds = %150
  %152 = load i32, ptr %4, align 4, !tbaa !5
  %153 = add nsw i32 %152, -1
  store i32 %153, ptr %4, align 4, !tbaa !5
  %154 = load ptr, ptr %5, align 8, !tbaa !9
  %155 = getelementptr inbounds ptr, ptr %154, i32 1
  store ptr %155, ptr %5, align 8, !tbaa !9
  br label %30, !llvm.loop !14

156:                                              ; preds = %148, %51
  %157 = load ptr, ptr %5, align 8, !tbaa !9
  %158 = load i32, ptr %4, align 4, !tbaa !5
  %159 = call ptr @getpanel()
  store ptr %159, ptr %6, align 8, !tbaa !9
  %160 = load ptr, ptr %6, align 8, !tbaa !9
  %161 = icmp eq ptr %160, null
  br i1 %161, label %162, label %165

162:                                              ; preds = %156
  %163 = load ptr, ptr @stderr, align 8, !tbaa !9
  %164 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %163, ptr noundef @.str.11) #6
  store i32 1, ptr %3, align 4
  store i32 1, ptr %14, align 4
  br label %223

165:                                              ; preds = %156
  %166 = call i32 @atexit(ptr noundef @exitcleanup) #6
  %167 = call ptr @signal(i32 noundef 13, ptr noundef inttoptr (i64 1 to ptr)) #6
  %168 = call ptr @signal(i32 noundef 2, ptr noundef @inthandler) #6
  %169 = load ptr, ptr %6, align 8, !tbaa !9
  call void @addcleanup(ptr noundef @lightsoff, ptr noundef %169)
  %170 = load ptr, ptr %8, align 8, !tbaa !9
  call void @initemu(ptr noundef %170)
  %171 = load ptr, ptr %8, align 8, !tbaa !9
  call void @configmachine(ptr noundef %171)
  call void @startpolling()
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #6
  %172 = load ptr, ptr %9, align 8, !tbaa !9
  %173 = load i32, ptr %10, align 4, !tbaa !5
  %174 = call i32 @dial(ptr noundef %172, i32 noundef %173)
  store i32 %174, ptr %15, align 4, !tbaa !5
  %175 = load i32, ptr %15, align 4, !tbaa !5
  %176 = icmp slt i32 %175, 0
  br i1 %176, label %177, label %179

177:                                              ; preds = %165
  %178 = call i32 (ptr, ...) @printf(ptr noundef @.str.12)
  br label %179

179:                                              ; preds = %177, %165
  %180 = load i32, ptr %15, align 4, !tbaa !5
  call void @nodelay(i32 noundef %180)
  %181 = load ptr, ptr @dis, align 8, !tbaa !9
  %182 = load i32, ptr %15, align 4, !tbaa !5
  call void @dis_connect(ptr noundef %181, i32 noundef %182)
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #6
  store ptr @.str.13, ptr %16, align 8, !tbaa !9
  %183 = load ptr, ptr %16, align 8, !tbaa !9
  %184 = call i32 (ptr, i32, ...) @open(ptr noundef %183, i32 noundef 0)
  %185 = load ptr, ptr %8, align 8, !tbaa !9
  %186 = getelementptr inbounds %struct.PDP6, ptr %185, i32 0, i32 154
  %187 = getelementptr inbounds %struct.FD, ptr %186, i32 0, i32 0
  store i32 %184, ptr %187, align 8, !tbaa !15
  %188 = load ptr, ptr %8, align 8, !tbaa !9
  %189 = getelementptr inbounds %struct.PDP6, ptr %188, i32 0, i32 154
  call void @waitfd(ptr noundef %189)
  %190 = call i32 (ptr, i32, ...) @open(ptr noundef @.str.14, i32 noundef 577, i32 noundef 420)
  %191 = load ptr, ptr %8, align 8, !tbaa !9
  %192 = getelementptr inbounds %struct.PDP6, ptr %191, i32 0, i32 141
  store i32 %190, ptr %192, align 4, !tbaa !20
  %193 = call i32 (ptr, i32, ...) @open(ptr noundef @.str.15, i32 noundef 2)
  %194 = load ptr, ptr %8, align 8, !tbaa !9
  %195 = getelementptr inbounds %struct.PDP6, ptr %194, i32 0, i32 166
  %196 = getelementptr inbounds %struct.FD, ptr %195, i32 0, i32 0
  store i32 %193, ptr %196, align 8, !tbaa !21
  %197 = load ptr, ptr %8, align 8, !tbaa !9
  %198 = getelementptr inbounds %struct.PDP6, ptr %197, i32 0, i32 166
  %199 = getelementptr inbounds %struct.FD, ptr %198, i32 0, i32 0
  %200 = load i32, ptr %199, align 8, !tbaa !21
  %201 = icmp slt i32 %200, 0
  br i1 %201, label %202, label %204

202:                                              ; preds = %179
  %203 = call i32 (ptr, ...) @printf(ptr noundef @.str.16)
  br label %204

204:                                              ; preds = %202, %179
  %205 = load ptr, ptr %8, align 8, !tbaa !9
  %206 = getelementptr inbounds %struct.PDP6, ptr %205, i32 0, i32 166
  call void @waitfd(ptr noundef %206)
  %207 = call i32 @dial(ptr noundef @.str.17, i32 noundef 20006)
  %208 = load ptr, ptr %8, align 8, !tbaa !9
  %209 = getelementptr inbounds %struct.PDP6, ptr %208, i32 0, i32 170
  %210 = getelementptr inbounds %struct.FD, ptr %209, i32 0, i32 0
  store i32 %207, ptr %210, align 8, !tbaa !22
  %211 = load ptr, ptr %8, align 8, !tbaa !9
  %212 = getelementptr inbounds %struct.PDP6, ptr %211, i32 0, i32 170
  %213 = getelementptr inbounds %struct.FD, ptr %212, i32 0, i32 0
  %214 = load i32, ptr %213, align 8, !tbaa !22
  %215 = icmp sge i32 %214, 0
  br i1 %215, label %216, label %218

216:                                              ; preds = %204
  %217 = call i32 (ptr, ...) @printf(ptr noundef @.str.18)
  br label %218

218:                                              ; preds = %216, %204
  %219 = load ptr, ptr %8, align 8, !tbaa !9
  %220 = getelementptr inbounds %struct.PDP6, ptr %219, i32 0, i32 170
  call void @waitfd(ptr noundef %220)
  %221 = load ptr, ptr %8, align 8, !tbaa !9
  %222 = load ptr, ptr %6, align 8, !tbaa !9
  call void @emu(ptr noundef %221, ptr noundef %222)
  store i32 0, ptr %3, align 4
  store i32 1, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #6
  br label %223

223:                                              ; preds = %218, %162
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 432, ptr %7) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #6
  %224 = load i32, ptr %3, align 4
  ret i32 %224

225:                                              ; preds = %148
  unreachable
}

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

; Function Attrs: inlinehint nounwind willreturn memory(read) uwtable
declare i32 @atoi(ptr noundef nonnull) #5

declare ptr @getpanel() #1

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

declare void @exitcleanup() #1

; Function Attrs: nounwind
declare ptr @signal(i32 noundef, ptr noundef) #3

declare void @addcleanup(ptr noundef, ptr noundef) #1

declare void @startpolling() #1

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

declare void @nodelay(i32 noundef) #1

declare void @dis_connect(ptr noundef, i32 noundef) #1

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

declare void @waitfd(ptr noundef) #1

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 = { 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 #3 = { nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { 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 #5 = { inlinehint nounwind willreturn memory(read) 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 #6 = { nounwind }
attributes #7 = { noreturn nounwind }
attributes #8 = { nounwind willreturn memory(read) }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = !{!7, !7, i64 0}
!12 = distinct !{!12, !13}
!13 = !{!"llvm.loop.mustprogress"}
!14 = distinct !{!14, !13}
!15 = !{!16, !6, i64 288}
!16 = !{!"PDP6", !6, i64 0, !6, i64 4, !6, i64 8, !6, i64 12, !17, i64 16, !17, i64 17, !17, i64 18, !17, i64 19, !17, i64 20, !17, i64 21, !17, i64 22, !17, i64 23, !17, i64 24, !17, i64 25, !17, i64 26, !17, i64 27, !17, i64 28, !17, i64 29, !17, i64 30, !17, i64 31, !17, i64 32, !17, i64 33, !17, i64 34, !17, i64 35, !17, i64 36, !17, i64 37, !17, i64 38, !17, i64 39, !18, i64 40, !18, i64 48, !7, i64 56, !18, i64 64, !18, i64 72, !18, i64 80, !6, i64 88, !6, i64 92, !6, i64 96, !6, i64 100, !6, i64 104, !6, i64 108, !18, i64 112, !7, i64 120, !17, i64 121, !17, i64 122, !17, i64 123, !17, i64 124, !17, i64 125, !17, i64 126, !17, i64 127, !17, i64 128, !17, i64 129, !17, i64 130, !17, i64 131, !17, i64 132, !17, i64 133, !17, i64 134, !17, i64 135, !17, i64 136, !17, i64 137, !17, i64 138, !17, i64 139, !17, i64 140, !17, i64 141, !17, i64 142, !17, i64 143, !17, i64 144, !17, i64 145, !17, i64 146, !17, i64 147, !17, i64 148, !17, i64 149, !17, i64 150, !17, i64 151, !17, i64 152, !17, i64 153, !17, i64 154, !17, i64 155, !17, i64 156, !17, i64 157, !17, i64 158, !17, i64 159, !17, i64 160, !17, i64 161, !17, i64 162, !17, i64 163, !17, i64 164, !17, i64 165, !17, i64 166, !17, i64 167, !17, i64 168, !17, i64 169, !17, i64 170, !17, i64 171, !17, i64 172, !17, i64 173, !17, i64 174, !17, i64 175, !17, i64 176, !17, i64 177, !17, i64 178, !17, i64 179, !7, i64 180, !7, i64 181, !7, i64 182, !7, i64 183, !17, i64 184, !17, i64 185, !17, i64 186, !17, i64 187, !17, i64 188, !6, i64 192, !6, i64 196, !6, i64 200, !17, i64 204, !17, i64 205, !17, i64 206, !17, i64 207, !17, i64 208, !17, i64 209, !17, i64 210, !17, i64 211, !17, i64 212, !17, i64 213, !17, i64 214, !17, i64 215, !7, i64 216, !17, i64 217, !17, i64 218, !17, i64 219, !17, i64 220, !17, i64 221, !17, i64 222, !17, i64 223, !17, i64 224, !17, i64 225, !17, i64 226, !17, i64 227, !17, i64 228, !17, i64 229, !7, i64 230, !6, i64 232, !6, i64 236, !18, i64 240, !18, i64 248, !18, i64 256, !17, i64 264, !17, i64 265, !17, i64 266, !7, i64 267, !18, i64 272, !17, i64 280, !17, i64 281, !17, i64 282, !6, i64 284, !19, i64 288, !18, i64 304, !7, i64 312, !17, i64 313, !17, i64 314, !17, i64 315, !7, i64 316, !17, i64 317, !17, i64 318, !7, i64 319, !6, i64 320, !6, i64 324, !19, i64 328, !6, i64 340, !18, i64 344, !18, i64 352, !19, i64 360, !17, i64 372, !18, i64 376, !18, i64 384, !18, i64 392, !18, i64 400, !18, i64 408, !17, i64 416, !18, i64 424}
!17 = !{!"_Bool", !7, i64 0}
!18 = !{!"long long", !7, i64 0}
!19 = !{!"FD", !6, i64 0, !6, i64 4, !6, i64 8}
!20 = !{!16, !6, i64 236}
!21 = !{!16, !6, i64 328}
!22 = !{!16, !6, i64 360}


; 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.PDP6 = type { i32, i32, i32, i32, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i64, i64, i8, i64, i64, i64, i32, i32, i32, i32, i32, i32, i64, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i32, i32, i32, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i32, i32, i64, i64, i64, i8, i8, i8, i8, i64, i8, i8, i8, i32, %struct.FD, i64, i8, i8, i8, i8, i8, i8, i8, i8, i32, i32, %struct.FD, i32, i64, i64, %struct.FD, i8, i64, i64, i64, i64, i64, i8, i64 }
%struct.FD = type { i32, i32, i32 }

@dis = external dso_local local_unnamed_addr global ptr, align 8
@stderr = external local_unnamed_addr global ptr, align 8
@argv0 = external dso_local local_unnamed_addr global ptr, align 8
@.str.9 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [1 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [18 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: mustprogress 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 @configmachine(ptr noundef) local_unnamed_addr #2

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

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

declare void @lightsoff(ptr noundef) #3

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

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

; Function Attrs: nounwind uwtable
declare dso_local void @inthandler(i32 noundef) #2

; Function Attrs: nounwind uwtable
define dso_local range(i32 0, 2) i32 @main(i32 noundef %0, ptr nocapture noundef readonly %1) local_unnamed_addr #2 {
  %3 = alloca %struct.PDP6, align 8
  call void @llvm.lifetime.start.p0(i64 432, ptr nonnull %3) #8
  %4 = load ptr, ptr @argv0, align 8, !tbaa !5
  %.not = icmp eq ptr %4, null
  br i1 %.not, label %5, label %7

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

7:                                                ; preds = %5, %2
  %.074121 = getelementptr inbounds i8, ptr %1, i64 8
  %8 = load ptr, ptr %.074121, align 8, !tbaa !5
  %.not87123 = icmp eq ptr %8, null
  br i1 %.not87123, label %.critedge, label %.lr.ph128

.critedge2.loopexit:                              ; preds = %38
  %.074 = getelementptr inbounds i8, ptr %.478, i64 8
  %9 = load ptr, ptr %.074, align 8, !tbaa !5
  %.not87 = icmp eq ptr %9, null
  br i1 %.not87, label %.critedge, label %.lr.ph128, !llvm.loop !9

.lr.ph128:                                        ; preds = %7, %.critedge2.loopexit
  %10 = phi ptr [ %9, %.critedge2.loopexit ], [ %8, %7 ]
  %.074126 = phi ptr [ %.074, %.critedge2.loopexit ], [ %.074121, %7 ]
  %.064125 = phi i32 [ %.266, %.critedge2.loopexit ], [ 3400, %7 ]
  %.069124 = phi ptr [ %.271, %.critedge2.loopexit ], [ @.str.9, %7 ]
  %11 = load i8, ptr %10, align 1, !tbaa !11
  %12 = icmp eq i8 %11, 45
  br i1 %12, label %13, label %.critedge

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

16:                                               ; preds = %13
  %17 = getelementptr inbounds i8, ptr %10, i64 2
  %18 = load i8, ptr %17, align 1, !tbaa !11
  %19 = icmp eq i8 %18, 0
  br i1 %19, label %.critedge, label %.lr.ph.preheader

.lr.ph.preheader:                                 ; preds = %13, %16
  br label %.lr.ph

.lr.ph:                                           ; preds = %.lr.ph.preheader, %38
  %20 = phi i8 [ %39, %38 ], [ %15, %.lr.ph.preheader ]
  %.061116 = phi ptr [ %.162, %38 ], [ %14, %.lr.ph.preheader ]
  %.165115 = phi i32 [ %.266, %38 ], [ %.064125, %.lr.ph.preheader ]
  %.170114 = phi ptr [ %.271, %38 ], [ %.069124, %.lr.ph.preheader ]
  %.175113 = phi ptr [ %.478, %38 ], [ %.074126, %.lr.ph.preheader ]
  %21 = getelementptr inbounds i8, ptr %.061116, i64 1
  switch i8 %20, label %37 [
    i8 104, label %22
    i8 112, label %28
  ]

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

24:                                               ; preds = %22
  %25 = getelementptr inbounds i8, ptr %.175113, i64 8
  %26 = load ptr, ptr %25, align 8, !tbaa !5
  %.not93 = icmp eq ptr %26, null
  br i1 %.not93, label %27, label %38

27:                                               ; preds = %24
  tail call void @usage()
  tail call void @abort() #9
  unreachable

28:                                               ; preds = %.lr.ph
  %29 = load i8, ptr %21, align 1, !tbaa !11
  %.not90 = icmp eq i8 %29, 0
  br i1 %.not90, label %30, label %34

30:                                               ; preds = %28
  %31 = getelementptr inbounds i8, ptr %.175113, i64 8
  %32 = load ptr, ptr %31, align 8, !tbaa !5
  %.not91 = icmp eq ptr %32, null
  br i1 %.not91, label %33, label %34

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

34:                                               ; preds = %30, %28
  %.377 = phi ptr [ %.175113, %28 ], [ %31, %30 ]
  %35 = phi ptr [ %21, %28 ], [ %32, %30 ]
  %36 = tail call i32 @atoi(ptr nocapture noundef %35) #10
  br label %38

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

38:                                               ; preds = %24, %22, %37, %34
  %.478 = phi ptr [ %.175113, %37 ], [ %.377, %34 ], [ %.175113, %22 ], [ %25, %24 ]
  %.271 = phi ptr [ %.170114, %37 ], [ %.170114, %34 ], [ %21, %22 ], [ %26, %24 ]
  %.266 = phi i32 [ %.165115, %37 ], [ %36, %34 ], [ %.165115, %22 ], [ %.165115, %24 ]
  %.162 = phi ptr [ %21, %37 ], [ @.str.10, %34 ], [ @.str.10, %22 ], [ @.str.10, %24 ]
  %39 = load i8, ptr %.162, align 1, !tbaa !11
  %.not89 = icmp eq i8 %39, 0
  br i1 %.not89, label %.critedge2.loopexit, label %.lr.ph, !llvm.loop !12

.critedge:                                        ; preds = %.critedge2.loopexit, %.lr.ph128, %13, %16, %7
  %.069.lcssa = phi ptr [ @.str.9, %7 ], [ %.069124, %16 ], [ %.069124, %13 ], [ %.069124, %.lr.ph128 ], [ %.271, %.critedge2.loopexit ]
  %.064.lcssa = phi i32 [ 3400, %7 ], [ %.064125, %16 ], [ %.064125, %13 ], [ %.064125, %.lr.ph128 ], [ %.266, %.critedge2.loopexit ]
  %40 = tail call ptr @getpanel() #8
  %41 = icmp eq ptr %40, null
  br i1 %41, label %42, label %45

42:                                               ; preds = %.critedge
  %43 = load ptr, ptr @stderr, align 8, !tbaa !5
  %44 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %43, ptr noundef nonnull @.str.11) #11
  br label %71

45:                                               ; preds = %.critedge
  %46 = tail call i32 @atexit(ptr noundef nonnull @exitcleanup) #8
  %47 = tail call ptr @signal(i32 noundef 13, ptr noundef nonnull inttoptr (i64 1 to ptr)) #8
  %48 = tail call ptr @signal(i32 noundef 2, ptr noundef nonnull @inthandler) #8
  tail call void @addcleanup(ptr noundef nonnull @lightsoff, ptr noundef nonnull %40) #8
  call void @initemu(ptr noundef nonnull %3)
  call void @configmachine(ptr noundef nonnull %3)
  call void @startpolling() #8
  %49 = call i32 @dial(ptr noundef %.069.lcssa, i32 noundef %.064.lcssa) #8
  %50 = icmp slt i32 %49, 0
  br i1 %50, label %51, label %53

51:                                               ; preds = %45
  %52 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.12)
  br label %53

53:                                               ; preds = %51, %45
  call void @nodelay(i32 noundef %49) #8
  %54 = load ptr, ptr @dis, align 8, !tbaa !5
  call void @dis_connect(ptr noundef %54, i32 noundef %49) #8
  %55 = call i32 (ptr, i32, ...) @open(ptr noundef nonnull @.str.13, i32 noundef 0) #8
  %56 = getelementptr inbounds i8, ptr %3, i64 288
  store i32 %55, ptr %56, align 8, !tbaa !13
  call void @waitfd(ptr noundef nonnull %56) #8
  %57 = call i32 (ptr, i32, ...) @open(ptr noundef nonnull @.str.14, i32 noundef 577, i32 noundef 420) #8
  %58 = getelementptr inbounds i8, ptr %3, i64 236
  store i32 %57, ptr %58, align 4, !tbaa !19
  %59 = call i32 (ptr, i32, ...) @open(ptr noundef nonnull @.str.15, i32 noundef 2) #8
  %60 = getelementptr inbounds i8, ptr %3, i64 328
  store i32 %59, ptr %60, align 8, !tbaa !20
  %61 = icmp slt i32 %59, 0
  br i1 %61, label %62, label %64

62:                                               ; preds = %53
  %63 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.16)
  br label %64

64:                                               ; preds = %62, %53
  call void @waitfd(ptr noundef nonnull %60) #8
  %65 = call i32 @dial(ptr noundef nonnull @.str.17, i32 noundef 20006) #8
  %66 = getelementptr inbounds i8, ptr %3, i64 360
  store i32 %65, ptr %66, align 8, !tbaa !21
  %67 = icmp sgt i32 %65, -1
  br i1 %67, label %68, label %70

68:                                               ; preds = %64
  %69 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.18)
  br label %70

70:                                               ; preds = %68, %64
  call void @waitfd(ptr noundef nonnull %66) #8
  call void @emu(ptr noundef nonnull %3, ptr noundef nonnull %40)
  br label %71

71:                                               ; preds = %70, %42
  %.0 = phi i32 [ 1, %42 ], [ 0, %70 ]
  call void @llvm.lifetime.end.p0(i64 432, ptr nonnull %3) #8
  ret i32 %.0
}

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

; Function Attrs: inlinehint mustprogress nofree nounwind willreturn memory(read) uwtable
declare i32 @atoi(ptr nocapture noundef nonnull) local_unnamed_addr #5

declare ptr @getpanel() local_unnamed_addr #3

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

declare void @exitcleanup() #3

; Function Attrs: nounwind
declare ptr @signal(i32 noundef, ptr noundef) local_unnamed_addr #6

declare void @addcleanup(ptr noundef, ptr noundef) local_unnamed_addr #3

declare void @startpolling() local_unnamed_addr #3

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

declare void @nodelay(i32 noundef) local_unnamed_addr #3

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

; Function Attrs: nofree
declare noundef i32 @open(ptr nocapture noundef readonly, i32 noundef, ...) local_unnamed_addr #7

declare void @waitfd(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 = { 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 #3 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { 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 #5 = { inlinehint mustprogress nofree nounwind willreturn memory(read) 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 #6 = { 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 #7 = { nofree "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 #8 = { nounwind }
attributes #9 = { noreturn nounwind }
attributes #10 = { nounwind willreturn memory(read) }
attributes #11 = { cold 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, !15, i64 288}
!14 = !{!"PDP6", !15, i64 0, !15, i64 4, !15, i64 8, !15, i64 12, !16, i64 16, !16, i64 17, !16, i64 18, !16, i64 19, !16, i64 20, !16, i64 21, !16, i64 22, !16, i64 23, !16, i64 24, !16, i64 25, !16, i64 26, !16, i64 27, !16, i64 28, !16, i64 29, !16, i64 30, !16, i64 31, !16, i64 32, !16, i64 33, !16, i64 34, !16, i64 35, !16, i64 36, !16, i64 37, !16, i64 38, !16, i64 39, !17, i64 40, !17, i64 48, !7, i64 56, !17, i64 64, !17, i64 72, !17, i64 80, !15, i64 88, !15, i64 92, !15, i64 96, !15, i64 100, !15, i64 104, !15, i64 108, !17, i64 112, !7, i64 120, !16, i64 121, !16, i64 122, !16, i64 123, !16, i64 124, !16, i64 125, !16, i64 126, !16, i64 127, !16, i64 128, !16, i64 129, !16, i64 130, !16, i64 131, !16, i64 132, !16, i64 133, !16, i64 134, !16, i64 135, !16, i64 136, !16, i64 137, !16, i64 138, !16, i64 139, !16, i64 140, !16, i64 141, !16, i64 142, !16, i64 143, !16, i64 144, !16, i64 145, !16, i64 146, !16, i64 147, !16, i64 148, !16, i64 149, !16, i64 150, !16, i64 151, !16, i64 152, !16, i64 153, !16, i64 154, !16, i64 155, !16, i64 156, !16, i64 157, !16, i64 158, !16, i64 159, !16, i64 160, !16, i64 161, !16, i64 162, !16, i64 163, !16, i64 164, !16, i64 165, !16, i64 166, !16, i64 167, !16, i64 168, !16, i64 169, !16, i64 170, !16, i64 171, !16, i64 172, !16, i64 173, !16, i64 174, !16, i64 175, !16, i64 176, !16, i64 177, !16, i64 178, !16, i64 179, !7, i64 180, !7, i64 181, !7, i64 182, !7, i64 183, !16, i64 184, !16, i64 185, !16, i64 186, !16, i64 187, !16, i64 188, !15, i64 192, !15, i64 196, !15, i64 200, !16, i64 204, !16, i64 205, !16, i64 206, !16, i64 207, !16, i64 208, !16, i64 209, !16, i64 210, !16, i64 211, !16, i64 212, !16, i64 213, !16, i64 214, !16, i64 215, !7, i64 216, !16, i64 217, !16, i64 218, !16, i64 219, !16, i64 220, !16, i64 221, !16, i64 222, !16, i64 223, !16, i64 224, !16, i64 225, !16, i64 226, !16, i64 227, !16, i64 228, !16, i64 229, !7, i64 230, !15, i64 232, !15, i64 236, !17, i64 240, !17, i64 248, !17, i64 256, !16, i64 264, !16, i64 265, !16, i64 266, !7, i64 267, !17, i64 272, !16, i64 280, !16, i64 281, !16, i64 282, !15, i64 284, !18, i64 288, !17, i64 304, !7, i64 312, !16, i64 313, !16, i64 314, !16, i64 315, !7, i64 316, !16, i64 317, !16, i64 318, !7, i64 319, !15, i64 320, !15, i64 324, !18, i64 328, !15, i64 340, !17, i64 344, !17, i64 352, !18, i64 360, !16, i64 372, !17, i64 376, !17, i64 384, !17, i64 392, !17, i64 400, !17, i64 408, !16, i64 416, !17, i64 424}
!15 = !{!"int", !7, i64 0}
!16 = !{!"_Bool", !7, i64 0}
!17 = !{!"long long", !7, i64 0}
!18 = !{!"FD", !15, i64 0, !15, i64 4, !15, i64 8}
!19 = !{!14, !15, i64 236}
!20 = !{!14, !15, i64 328}
!21 = !{!14, !15, i64 360}


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