; LLVM IR from BrunoLevy/learn-fpga :: LiteX/software/Doom/mc1-doom/src (p_setup)

; 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.subsector_s = type { ptr, i16, i16 }
%struct.seg_t = type { ptr, ptr, i32, i32, ptr, ptr, ptr, ptr }
%struct.side_t = type { i32, i32, i16, i16, i16, ptr }
%struct.line_s = type { ptr, ptr, i32, i32, i16, i16, i16, [2 x i16], [4 x i32], i32, ptr, ptr, i32, ptr }
%struct.sector_t = type { i32, i32, i16, i16, i16, i16, i16, i32, ptr, [4 x i32], %struct.degenmobj_t, i32, ptr, ptr, i32, ptr }
%struct.degenmobj_t = type { %struct.thinker_s, i32, i32, i32 }
%struct.thinker_s = type { ptr, ptr, %union.actionf_t }
%union.actionf_t = type { ptr }
%struct.vertex_t = type { i32, i32 }

@segs = external dso_local global ptr, align 8
@lines = external dso_local global ptr, align 8
@numsubsectors = external dso_local global i32, align 4
@subsectors = external dso_local global ptr, align 8
@numsectors = external dso_local global i32, align 4
@sectors = external dso_local global ptr, align 8
@numlines = external dso_local global i32, align 4
@bmaporgx = external dso_local global i32, align 4
@bmaporgy = external dso_local global i32, align 4
@bmapwidth = external dso_local global i32, align 4
@bmapheight = external dso_local global i32, align 4
@.str = external hidden unnamed_addr constant [25 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 ptr @Z_Malloc(i32 noundef, i32 noundef, 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
define dso_local void @P_GroupLines() #2 {
  %1 = alloca ptr, align 8
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca [4 x i32], align 16
  %10 = alloca i32, align 4
  call void @llvm.lifetime.start.p0(i64 8, ptr %1) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #4
  call void @llvm.lifetime.start.p0(i64 16, ptr %9) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #4
  %11 = load ptr, ptr @subsectors, align 8, !tbaa !5
  store ptr %11, ptr %7, align 8, !tbaa !5
  store i32 0, ptr %2, align 4, !tbaa !9
  br label %12

12:                                               ; preds = %30, %0
  %13 = load i32, ptr %2, align 4, !tbaa !9
  %14 = load i32, ptr @numsubsectors, align 4, !tbaa !9
  %15 = icmp slt i32 %13, %14
  br i1 %15, label %16, label %35

16:                                               ; preds = %12
  %17 = load ptr, ptr @segs, align 8, !tbaa !5
  %18 = load ptr, ptr %7, align 8, !tbaa !5
  %19 = getelementptr inbounds %struct.subsector_s, ptr %18, i32 0, i32 2
  %20 = load i16, ptr %19, align 2, !tbaa !11
  %21 = sext i16 %20 to i64
  %22 = getelementptr inbounds %struct.seg_t, ptr %17, i64 %21
  store ptr %22, ptr %8, align 8, !tbaa !5
  %23 = load ptr, ptr %8, align 8, !tbaa !5
  %24 = getelementptr inbounds %struct.seg_t, ptr %23, i32 0, i32 4
  %25 = load ptr, ptr %24, align 8, !tbaa !14
  %26 = getelementptr inbounds %struct.side_t, ptr %25, i32 0, i32 5
  %27 = load ptr, ptr %26, align 8, !tbaa !16
  %28 = load ptr, ptr %7, align 8, !tbaa !5
  %29 = getelementptr inbounds %struct.subsector_s, ptr %28, i32 0, i32 0
  store ptr %27, ptr %29, align 8, !tbaa !18
  br label %30

30:                                               ; preds = %16
  %31 = load i32, ptr %2, align 4, !tbaa !9
  %32 = add nsw i32 %31, 1
  store i32 %32, ptr %2, align 4, !tbaa !9
  %33 = load ptr, ptr %7, align 8, !tbaa !5
  %34 = getelementptr inbounds %struct.subsector_s, ptr %33, i32 1
  store ptr %34, ptr %7, align 8, !tbaa !5
  br label %12, !llvm.loop !19

35:                                               ; preds = %12
  %36 = load ptr, ptr @lines, align 8, !tbaa !5
  store ptr %36, ptr %5, align 8, !tbaa !5
  store i32 0, ptr %4, align 4, !tbaa !9
  store i32 0, ptr %2, align 4, !tbaa !9
  br label %37

37:                                               ; preds = %72, %35
  %38 = load i32, ptr %2, align 4, !tbaa !9
  %39 = load i32, ptr @numlines, align 4, !tbaa !9
  %40 = icmp slt i32 %38, %39
  br i1 %40, label %41, label %77

41:                                               ; preds = %37
  %42 = load i32, ptr %4, align 4, !tbaa !9
  %43 = add nsw i32 %42, 1
  store i32 %43, ptr %4, align 4, !tbaa !9
  %44 = load ptr, ptr %5, align 8, !tbaa !5
  %45 = getelementptr inbounds %struct.line_s, ptr %44, i32 0, i32 10
  %46 = load ptr, ptr %45, align 8, !tbaa !21
  %47 = getelementptr inbounds %struct.sector_t, ptr %46, i32 0, i32 14
  %48 = load i32, ptr %47, align 8, !tbaa !23
  %49 = add nsw i32 %48, 1
  store i32 %49, ptr %47, align 8, !tbaa !23
  %50 = load ptr, ptr %5, align 8, !tbaa !5
  %51 = getelementptr inbounds %struct.line_s, ptr %50, i32 0, i32 11
  %52 = load ptr, ptr %51, align 8, !tbaa !27
  %53 = icmp ne ptr %52, null
  br i1 %53, label %54, label %71

54:                                               ; preds = %41
  %55 = load ptr, ptr %5, align 8, !tbaa !5
  %56 = getelementptr inbounds %struct.line_s, ptr %55, i32 0, i32 11
  %57 = load ptr, ptr %56, align 8, !tbaa !27
  %58 = load ptr, ptr %5, align 8, !tbaa !5
  %59 = getelementptr inbounds %struct.line_s, ptr %58, i32 0, i32 10
  %60 = load ptr, ptr %59, align 8, !tbaa !21
  %61 = icmp ne ptr %57, %60
  br i1 %61, label %62, label %71

62:                                               ; preds = %54
  %63 = load ptr, ptr %5, align 8, !tbaa !5
  %64 = getelementptr inbounds %struct.line_s, ptr %63, i32 0, i32 11
  %65 = load ptr, ptr %64, align 8, !tbaa !27
  %66 = getelementptr inbounds %struct.sector_t, ptr %65, i32 0, i32 14
  %67 = load i32, ptr %66, align 8, !tbaa !23
  %68 = add nsw i32 %67, 1
  store i32 %68, ptr %66, align 8, !tbaa !23
  %69 = load i32, ptr %4, align 4, !tbaa !9
  %70 = add nsw i32 %69, 1
  store i32 %70, ptr %4, align 4, !tbaa !9
  br label %71

71:                                               ; preds = %62, %54, %41
  br label %72

72:                                               ; preds = %71
  %73 = load i32, ptr %2, align 4, !tbaa !9
  %74 = add nsw i32 %73, 1
  store i32 %74, ptr %2, align 4, !tbaa !9
  %75 = load ptr, ptr %5, align 8, !tbaa !5
  %76 = getelementptr inbounds %struct.line_s, ptr %75, i32 1
  store ptr %76, ptr %5, align 8, !tbaa !5
  br label %37, !llvm.loop !28

77:                                               ; preds = %37
  %78 = load i32, ptr %4, align 4, !tbaa !9
  %79 = sext i32 %78 to i64
  %80 = mul i64 %79, 8
  %81 = trunc i64 %80 to i32
  %82 = call ptr @Z_Malloc(i32 noundef %81, i32 noundef 50, ptr noundef null)
  store ptr %82, ptr %1, align 8, !tbaa !5
  %83 = load ptr, ptr @sectors, align 8, !tbaa !5
  store ptr %83, ptr %6, align 8, !tbaa !5
  store i32 0, ptr %2, align 4, !tbaa !9
  br label %84

84:                                               ; preds = %250, %77
  %85 = load i32, ptr %2, align 4, !tbaa !9
  %86 = load i32, ptr @numsectors, align 4, !tbaa !9
  %87 = icmp slt i32 %85, %86
  br i1 %87, label %88, label %255

88:                                               ; preds = %84
  %89 = getelementptr inbounds [4 x i32], ptr %9, i64 0, i64 0
  call void @M_ClearBox(ptr noundef %89)
  %90 = load ptr, ptr %1, align 8, !tbaa !5
  %91 = load ptr, ptr %6, align 8, !tbaa !5
  %92 = getelementptr inbounds %struct.sector_t, ptr %91, i32 0, i32 15
  store ptr %90, ptr %92, align 8, !tbaa !29
  %93 = load ptr, ptr @lines, align 8, !tbaa !5
  store ptr %93, ptr %5, align 8, !tbaa !5
  store i32 0, ptr %3, align 4, !tbaa !9
  br label %94

94:                                               ; preds = %137, %88
  %95 = load i32, ptr %3, align 4, !tbaa !9
  %96 = load i32, ptr @numlines, align 4, !tbaa !9
  %97 = icmp slt i32 %95, %96
  br i1 %97, label %98, label %142

98:                                               ; preds = %94
  %99 = load ptr, ptr %5, align 8, !tbaa !5
  %100 = getelementptr inbounds %struct.line_s, ptr %99, i32 0, i32 10
  %101 = load ptr, ptr %100, align 8, !tbaa !21
  %102 = load ptr, ptr %6, align 8, !tbaa !5
  %103 = icmp eq ptr %101, %102
  br i1 %103, label %110, label %104

104:                                              ; preds = %98
  %105 = load ptr, ptr %5, align 8, !tbaa !5
  %106 = getelementptr inbounds %struct.line_s, ptr %105, i32 0, i32 11
  %107 = load ptr, ptr %106, align 8, !tbaa !27
  %108 = load ptr, ptr %6, align 8, !tbaa !5
  %109 = icmp eq ptr %107, %108
  br i1 %109, label %110, label %136

110:                                              ; preds = %104, %98
  %111 = load ptr, ptr %5, align 8, !tbaa !5
  %112 = load ptr, ptr %1, align 8, !tbaa !5
  %113 = getelementptr inbounds ptr, ptr %112, i32 1
  store ptr %113, ptr %1, align 8, !tbaa !5
  store ptr %111, ptr %112, align 8, !tbaa !5
  %114 = getelementptr inbounds [4 x i32], ptr %9, i64 0, i64 0
  %115 = load ptr, ptr %5, align 8, !tbaa !5
  %116 = getelementptr inbounds %struct.line_s, ptr %115, i32 0, i32 0
  %117 = load ptr, ptr %116, align 8, !tbaa !30
  %118 = getelementptr inbounds %struct.vertex_t, ptr %117, i32 0, i32 0
  %119 = load i32, ptr %118, align 4, !tbaa !31
  %120 = load ptr, ptr %5, align 8, !tbaa !5
  %121 = getelementptr inbounds %struct.line_s, ptr %120, i32 0, i32 0
  %122 = load ptr, ptr %121, align 8, !tbaa !30
  %123 = getelementptr inbounds %struct.vertex_t, ptr %122, i32 0, i32 1
  %124 = load i32, ptr %123, align 4, !tbaa !33
  call void @M_AddToBox(ptr noundef %114, i32 noundef %119, i32 noundef %124)
  %125 = getelementptr inbounds [4 x i32], ptr %9, i64 0, i64 0
  %126 = load ptr, ptr %5, align 8, !tbaa !5
  %127 = getelementptr inbounds %struct.line_s, ptr %126, i32 0, i32 1
  %128 = load ptr, ptr %127, align 8, !tbaa !34
  %129 = getelementptr inbounds %struct.vertex_t, ptr %128, i32 0, i32 0
  %130 = load i32, ptr %129, align 4, !tbaa !31
  %131 = load ptr, ptr %5, align 8, !tbaa !5
  %132 = getelementptr inbounds %struct.line_s, ptr %131, i32 0, i32 1
  %133 = load ptr, ptr %132, align 8, !tbaa !34
  %134 = getelementptr inbounds %struct.vertex_t, ptr %133, i32 0, i32 1
  %135 = load i32, ptr %134, align 4, !tbaa !33
  call void @M_AddToBox(ptr noundef %125, i32 noundef %130, i32 noundef %135)
  br label %136

136:                                              ; preds = %110, %104
  br label %137

137:                                              ; preds = %136
  %138 = load i32, ptr %3, align 4, !tbaa !9
  %139 = add nsw i32 %138, 1
  store i32 %139, ptr %3, align 4, !tbaa !9
  %140 = load ptr, ptr %5, align 8, !tbaa !5
  %141 = getelementptr inbounds %struct.line_s, ptr %140, i32 1
  store ptr %141, ptr %5, align 8, !tbaa !5
  br label %94, !llvm.loop !35

142:                                              ; preds = %94
  %143 = load ptr, ptr %1, align 8, !tbaa !5
  %144 = load ptr, ptr %6, align 8, !tbaa !5
  %145 = getelementptr inbounds %struct.sector_t, ptr %144, i32 0, i32 15
  %146 = load ptr, ptr %145, align 8, !tbaa !29
  %147 = ptrtoint ptr %143 to i64
  %148 = ptrtoint ptr %146 to i64
  %149 = sub i64 %147, %148
  %150 = sdiv exact i64 %149, 8
  %151 = load ptr, ptr %6, align 8, !tbaa !5
  %152 = getelementptr inbounds %struct.sector_t, ptr %151, i32 0, i32 14
  %153 = load i32, ptr %152, align 8, !tbaa !23
  %154 = sext i32 %153 to i64
  %155 = icmp ne i64 %150, %154
  br i1 %155, label %156, label %157

156:                                              ; preds = %142
  call void (ptr, ...) @I_Error(ptr noundef @.str) #5
  unreachable

157:                                              ; preds = %142
  %158 = getelementptr inbounds [4 x i32], ptr %9, i64 0, i64 3
  %159 = load i32, ptr %158, align 4, !tbaa !9
  %160 = getelementptr inbounds [4 x i32], ptr %9, i64 0, i64 2
  %161 = load i32, ptr %160, align 8, !tbaa !9
  %162 = add nsw i32 %159, %161
  %163 = sdiv i32 %162, 2
  %164 = load ptr, ptr %6, align 8, !tbaa !5
  %165 = getelementptr inbounds %struct.sector_t, ptr %164, i32 0, i32 10
  %166 = getelementptr inbounds %struct.degenmobj_t, ptr %165, i32 0, i32 1
  store i32 %163, ptr %166, align 8, !tbaa !36
  %167 = getelementptr inbounds [4 x i32], ptr %9, i64 0, i64 0
  %168 = load i32, ptr %167, align 16, !tbaa !9
  %169 = getelementptr inbounds [4 x i32], ptr %9, i64 0, i64 1
  %170 = load i32, ptr %169, align 4, !tbaa !9
  %171 = add nsw i32 %168, %170
  %172 = sdiv i32 %171, 2
  %173 = load ptr, ptr %6, align 8, !tbaa !5
  %174 = getelementptr inbounds %struct.sector_t, ptr %173, i32 0, i32 10
  %175 = getelementptr inbounds %struct.degenmobj_t, ptr %174, i32 0, i32 2
  store i32 %172, ptr %175, align 4, !tbaa !37
  %176 = getelementptr inbounds [4 x i32], ptr %9, i64 0, i64 0
  %177 = load i32, ptr %176, align 16, !tbaa !9
  %178 = load i32, ptr @bmaporgy, align 4, !tbaa !9
  %179 = sub nsw i32 %177, %178
  %180 = add nsw i32 %179, 2097152
  %181 = ashr i32 %180, 23
  store i32 %181, ptr %10, align 4, !tbaa !9
  %182 = load i32, ptr %10, align 4, !tbaa !9
  %183 = load i32, ptr @bmapheight, align 4, !tbaa !9
  %184 = icmp sge i32 %182, %183
  br i1 %184, label %185, label %188

185:                                              ; preds = %157
  %186 = load i32, ptr @bmapheight, align 4, !tbaa !9
  %187 = sub nsw i32 %186, 1
  br label %190

188:                                              ; preds = %157
  %189 = load i32, ptr %10, align 4, !tbaa !9
  br label %190

190:                                              ; preds = %188, %185
  %191 = phi i32 [ %187, %185 ], [ %189, %188 ]
  store i32 %191, ptr %10, align 4, !tbaa !9
  %192 = load i32, ptr %10, align 4, !tbaa !9
  %193 = load ptr, ptr %6, align 8, !tbaa !5
  %194 = getelementptr inbounds %struct.sector_t, ptr %193, i32 0, i32 9
  %195 = getelementptr inbounds [4 x i32], ptr %194, i64 0, i64 0
  store i32 %192, ptr %195, align 8, !tbaa !9
  %196 = getelementptr inbounds [4 x i32], ptr %9, i64 0, i64 1
  %197 = load i32, ptr %196, align 4, !tbaa !9
  %198 = load i32, ptr @bmaporgy, align 4, !tbaa !9
  %199 = sub nsw i32 %197, %198
  %200 = sub nsw i32 %199, 2097152
  %201 = ashr i32 %200, 23
  store i32 %201, ptr %10, align 4, !tbaa !9
  %202 = load i32, ptr %10, align 4, !tbaa !9
  %203 = icmp slt i32 %202, 0
  br i1 %203, label %204, label %205

204:                                              ; preds = %190
  br label %207

205:                                              ; preds = %190
  %206 = load i32, ptr %10, align 4, !tbaa !9
  br label %207

207:                                              ; preds = %205, %204
  %208 = phi i32 [ 0, %204 ], [ %206, %205 ]
  store i32 %208, ptr %10, align 4, !tbaa !9
  %209 = load i32, ptr %10, align 4, !tbaa !9
  %210 = load ptr, ptr %6, align 8, !tbaa !5
  %211 = getelementptr inbounds %struct.sector_t, ptr %210, i32 0, i32 9
  %212 = getelementptr inbounds [4 x i32], ptr %211, i64 0, i64 1
  store i32 %209, ptr %212, align 4, !tbaa !9
  %213 = getelementptr inbounds [4 x i32], ptr %9, i64 0, i64 3
  %214 = load i32, ptr %213, align 4, !tbaa !9
  %215 = load i32, ptr @bmaporgx, align 4, !tbaa !9
  %216 = sub nsw i32 %214, %215
  %217 = add nsw i32 %216, 2097152
  %218 = ashr i32 %217, 23
  store i32 %218, ptr %10, align 4, !tbaa !9
  %219 = load i32, ptr %10, align 4, !tbaa !9
  %220 = load i32, ptr @bmapwidth, align 4, !tbaa !9
  %221 = icmp sge i32 %219, %220
  br i1 %221, label %222, label %225

222:                                              ; preds = %207
  %223 = load i32, ptr @bmapwidth, align 4, !tbaa !9
  %224 = sub nsw i32 %223, 1
  br label %227

225:                                              ; preds = %207
  %226 = load i32, ptr %10, align 4, !tbaa !9
  br label %227

227:                                              ; preds = %225, %222
  %228 = phi i32 [ %224, %222 ], [ %226, %225 ]
  store i32 %228, ptr %10, align 4, !tbaa !9
  %229 = load i32, ptr %10, align 4, !tbaa !9
  %230 = load ptr, ptr %6, align 8, !tbaa !5
  %231 = getelementptr inbounds %struct.sector_t, ptr %230, i32 0, i32 9
  %232 = getelementptr inbounds [4 x i32], ptr %231, i64 0, i64 3
  store i32 %229, ptr %232, align 4, !tbaa !9
  %233 = getelementptr inbounds [4 x i32], ptr %9, i64 0, i64 2
  %234 = load i32, ptr %233, align 8, !tbaa !9
  %235 = load i32, ptr @bmaporgx, align 4, !tbaa !9
  %236 = sub nsw i32 %234, %235
  %237 = sub nsw i32 %236, 2097152
  %238 = ashr i32 %237, 23
  store i32 %238, ptr %10, align 4, !tbaa !9
  %239 = load i32, ptr %10, align 4, !tbaa !9
  %240 = icmp slt i32 %239, 0
  br i1 %240, label %241, label %242

241:                                              ; preds = %227
  br label %244

242:                                              ; preds = %227
  %243 = load i32, ptr %10, align 4, !tbaa !9
  br label %244

244:                                              ; preds = %242, %241
  %245 = phi i32 [ 0, %241 ], [ %243, %242 ]
  store i32 %245, ptr %10, align 4, !tbaa !9
  %246 = load i32, ptr %10, align 4, !tbaa !9
  %247 = load ptr, ptr %6, align 8, !tbaa !5
  %248 = getelementptr inbounds %struct.sector_t, ptr %247, i32 0, i32 9
  %249 = getelementptr inbounds [4 x i32], ptr %248, i64 0, i64 2
  store i32 %246, ptr %249, align 8, !tbaa !9
  br label %250

250:                                              ; preds = %244
  %251 = load i32, ptr %2, align 4, !tbaa !9
  %252 = add nsw i32 %251, 1
  store i32 %252, ptr %2, align 4, !tbaa !9
  %253 = load ptr, ptr %6, align 8, !tbaa !5
  %254 = getelementptr inbounds %struct.sector_t, ptr %253, i32 1
  store ptr %254, ptr %6, align 8, !tbaa !5
  br label %84, !llvm.loop !38

255:                                              ; preds = %84
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %9) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %1) #4
  ret void
}

declare void @M_ClearBox(ptr noundef) #1

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

; Function Attrs: noreturn
declare void @I_Error(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 = { 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 = { noreturn "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 }
attributes #5 = { noreturn }

!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 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !13, i64 10}
!12 = !{!"subsector_s", !6, i64 0, !13, i64 8, !13, i64 10}
!13 = !{!"short", !7, i64 0}
!14 = !{!15, !6, i64 24}
!15 = !{!"", !6, i64 0, !6, i64 8, !10, i64 16, !10, i64 20, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48}
!16 = !{!17, !6, i64 16}
!17 = !{!"", !10, i64 0, !10, i64 4, !13, i64 8, !13, i64 10, !13, i64 12, !6, i64 16}
!18 = !{!12, !6, i64 0}
!19 = distinct !{!19, !20}
!20 = !{!"llvm.loop.mustprogress"}
!21 = !{!22, !6, i64 56}
!22 = !{!"line_s", !6, i64 0, !6, i64 8, !10, i64 16, !10, i64 20, !13, i64 24, !13, i64 26, !13, i64 28, !7, i64 30, !7, i64 36, !10, i64 52, !6, i64 56, !6, i64 64, !10, i64 72, !6, i64 80}
!23 = !{!24, !10, i64 112}
!24 = !{!"", !10, i64 0, !10, i64 4, !13, i64 8, !13, i64 10, !13, i64 12, !13, i64 14, !13, i64 16, !10, i64 20, !6, i64 24, !7, i64 32, !25, i64 48, !10, i64 88, !6, i64 96, !6, i64 104, !10, i64 112, !6, i64 120}
!25 = !{!"", !26, i64 0, !10, i64 24, !10, i64 28, !10, i64 32}
!26 = !{!"thinker_s", !6, i64 0, !6, i64 8, !7, i64 16}
!27 = !{!22, !6, i64 64}
!28 = distinct !{!28, !20}
!29 = !{!24, !6, i64 120}
!30 = !{!22, !6, i64 0}
!31 = !{!32, !10, i64 0}
!32 = !{!"", !10, i64 0, !10, i64 4}
!33 = !{!32, !10, i64 4}
!34 = !{!22, !6, i64 8}
!35 = distinct !{!35, !20}
!36 = !{!24, !10, i64 72}
!37 = !{!24, !10, i64 76}
!38 = distinct !{!38, !20}


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

@segs = external dso_local local_unnamed_addr global ptr, align 8
@lines = external dso_local local_unnamed_addr global ptr, align 8
@numsubsectors = external dso_local local_unnamed_addr global i32, align 4
@subsectors = external dso_local local_unnamed_addr global ptr, align 8
@numsectors = external dso_local local_unnamed_addr global i32, align 4
@sectors = external dso_local local_unnamed_addr global ptr, align 8
@numlines = external dso_local local_unnamed_addr global i32, align 4
@bmaporgx = external dso_local local_unnamed_addr global i32, align 4
@bmaporgy = external dso_local local_unnamed_addr global i32, align 4
@bmapwidth = external dso_local local_unnamed_addr global i32, align 4
@bmapheight = external dso_local local_unnamed_addr global i32, align 4
@.str = external hidden unnamed_addr constant [25 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

declare ptr @Z_Malloc(i32 noundef, i32 noundef, ptr noundef) 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
define dso_local void @P_GroupLines() local_unnamed_addr #2 {
  %1 = alloca [4 x i32], align 16
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %1) #5
  %2 = load i32, ptr @numsubsectors, align 4, !tbaa !5
  %3 = icmp sgt i32 %2, 0
  br i1 %3, label %.lr.ph.preheader, label %._crit_edge

.lr.ph.preheader:                                 ; preds = %0
  %4 = load ptr, ptr @subsectors, align 8, !tbaa !9
  %xtraiter = and i32 %2, 1
  %5 = icmp eq i32 %2, 1
  br i1 %5, label %._crit_edge.loopexit.unr-lcssa, label %.lr.ph.preheader.new

.lr.ph.preheader.new:                             ; preds = %.lr.ph.preheader
  %unroll_iter = and i32 %2, 2147483646
  br label %.lr.ph

.lr.ph:                                           ; preds = %.lr.ph, %.lr.ph.preheader.new
  %.05871 = phi ptr [ %4, %.lr.ph.preheader.new ], [ %23, %.lr.ph ]
  %niter = phi i32 [ 0, %.lr.ph.preheader.new ], [ %niter.next.1, %.lr.ph ]
  %6 = load ptr, ptr @segs, align 8, !tbaa !9
  %7 = getelementptr inbounds i8, ptr %.05871, i64 10
  %8 = load i16, ptr %7, align 2, !tbaa !11
  %9 = sext i16 %8 to i64
  %10 = getelementptr inbounds %struct.seg_t, ptr %6, i64 %9, i32 4
  %11 = load ptr, ptr %10, align 8, !tbaa !14
  %12 = getelementptr inbounds i8, ptr %11, i64 16
  %13 = load ptr, ptr %12, align 8, !tbaa !16
  store ptr %13, ptr %.05871, align 8, !tbaa !18
  %14 = getelementptr inbounds i8, ptr %.05871, i64 16
  %15 = load ptr, ptr @segs, align 8, !tbaa !9
  %16 = getelementptr inbounds i8, ptr %.05871, i64 26
  %17 = load i16, ptr %16, align 2, !tbaa !11
  %18 = sext i16 %17 to i64
  %19 = getelementptr inbounds %struct.seg_t, ptr %15, i64 %18, i32 4
  %20 = load ptr, ptr %19, align 8, !tbaa !14
  %21 = getelementptr inbounds i8, ptr %20, i64 16
  %22 = load ptr, ptr %21, align 8, !tbaa !16
  store ptr %22, ptr %14, align 8, !tbaa !18
  %23 = getelementptr inbounds i8, ptr %.05871, i64 32
  %niter.next.1 = add i32 %niter, 2
  %niter.ncmp.1 = icmp eq i32 %niter.next.1, %unroll_iter
  br i1 %niter.ncmp.1, label %._crit_edge.loopexit.unr-lcssa, label %.lr.ph, !llvm.loop !19

._crit_edge.loopexit.unr-lcssa:                   ; preds = %.lr.ph, %.lr.ph.preheader
  %.05871.unr = phi ptr [ %4, %.lr.ph.preheader ], [ %23, %.lr.ph ]
  %lcmp.mod.not = icmp eq i32 %xtraiter, 0
  br i1 %lcmp.mod.not, label %._crit_edge, label %.lr.ph.epil

.lr.ph.epil:                                      ; preds = %._crit_edge.loopexit.unr-lcssa
  %24 = load ptr, ptr @segs, align 8, !tbaa !9
  %25 = getelementptr inbounds i8, ptr %.05871.unr, i64 10
  %26 = load i16, ptr %25, align 2, !tbaa !11
  %27 = sext i16 %26 to i64
  %28 = getelementptr inbounds %struct.seg_t, ptr %24, i64 %27, i32 4
  %29 = load ptr, ptr %28, align 8, !tbaa !14
  %30 = getelementptr inbounds i8, ptr %29, i64 16
  %31 = load ptr, ptr %30, align 8, !tbaa !16
  store ptr %31, ptr %.05871.unr, align 8, !tbaa !18
  br label %._crit_edge

._crit_edge:                                      ; preds = %.lr.ph.epil, %._crit_edge.loopexit.unr-lcssa, %0
  %32 = load i32, ptr @numlines, align 4, !tbaa !5
  %33 = icmp sgt i32 %32, 0
  br i1 %33, label %.lr.ph77.preheader, label %._crit_edge78

.lr.ph77.preheader:                               ; preds = %._crit_edge
  %34 = load ptr, ptr @lines, align 8, !tbaa !9
  br label %.lr.ph77

.lr.ph77:                                         ; preds = %.lr.ph77.preheader, %48
  %.15675 = phi i32 [ %49, %48 ], [ 0, %.lr.ph77.preheader ]
  %.06074 = phi ptr [ %50, %48 ], [ %34, %.lr.ph77.preheader ]
  %.06273 = phi i32 [ %.163, %48 ], [ 0, %.lr.ph77.preheader ]
  %35 = add nsw i32 %.06273, 1
  %36 = getelementptr inbounds i8, ptr %.06074, i64 56
  %37 = load ptr, ptr %36, align 8, !tbaa !21
  %38 = getelementptr inbounds i8, ptr %37, i64 112
  %39 = load i32, ptr %38, align 8, !tbaa !23
  %40 = add nsw i32 %39, 1
  store i32 %40, ptr %38, align 8, !tbaa !23
  %41 = getelementptr inbounds i8, ptr %.06074, i64 64
  %42 = load ptr, ptr %41, align 8, !tbaa !27
  %.not68 = icmp eq ptr %42, null
  %.not69 = icmp eq ptr %42, %37
  %or.cond = or i1 %.not68, %.not69
  br i1 %or.cond, label %48, label %43

43:                                               ; preds = %.lr.ph77
  %44 = getelementptr inbounds i8, ptr %42, i64 112
  %45 = load i32, ptr %44, align 8, !tbaa !23
  %46 = add nsw i32 %45, 1
  store i32 %46, ptr %44, align 8, !tbaa !23
  %47 = add nsw i32 %.06273, 2
  br label %48

48:                                               ; preds = %.lr.ph77, %43
  %.163 = phi i32 [ %47, %43 ], [ %35, %.lr.ph77 ]
  %49 = add nuw nsw i32 %.15675, 1
  %50 = getelementptr inbounds i8, ptr %.06074, i64 88
  %exitcond92.not = icmp eq i32 %49, %32
  br i1 %exitcond92.not, label %._crit_edge78.loopexit, label %.lr.ph77, !llvm.loop !28

._crit_edge78.loopexit:                           ; preds = %48
  %51 = shl i32 %.163, 3
  br label %._crit_edge78

._crit_edge78:                                    ; preds = %._crit_edge78.loopexit, %._crit_edge
  %.062.lcssa = phi i32 [ 0, %._crit_edge ], [ %51, %._crit_edge78.loopexit ]
  %52 = tail call ptr @Z_Malloc(i32 noundef %.062.lcssa, i32 noundef 50, ptr noundef null) #5
  %53 = load i32, ptr @numsectors, align 4, !tbaa !5
  %54 = icmp sgt i32 %53, 0
  br i1 %54, label %.lr.ph90, label %._crit_edge91

.lr.ph90:                                         ; preds = %._crit_edge78
  %55 = load ptr, ptr @sectors, align 8, !tbaa !9
  %56 = getelementptr inbounds i8, ptr %1, i64 12
  %57 = getelementptr inbounds i8, ptr %1, i64 8
  %58 = getelementptr inbounds i8, ptr %1, i64 4
  br label %59

59:                                               ; preds = %.lr.ph90, %97
  %.088 = phi ptr [ %52, %.lr.ph90 ], [ %.1.lcssa, %97 ]
  %.25787 = phi i32 [ 0, %.lr.ph90 ], [ %134, %97 ]
  %.05986 = phi ptr [ %55, %.lr.ph90 ], [ %135, %97 ]
  call void @M_ClearBox(ptr noundef nonnull %1) #5
  %60 = getelementptr inbounds i8, ptr %.05986, i64 120
  store ptr %.088, ptr %60, align 8, !tbaa !29
  %61 = load i32, ptr @numlines, align 4, !tbaa !5
  %62 = icmp sgt i32 %61, 0
  br i1 %62, label %.lr.ph83.preheader, label %._crit_edge84

.lr.ph83.preheader:                               ; preds = %59
  %63 = load ptr, ptr @lines, align 8, !tbaa !9
  br label %.lr.ph83

.lr.ph83:                                         ; preds = %.lr.ph83.preheader, %83
  %64 = phi i32 [ %84, %83 ], [ %61, %.lr.ph83.preheader ]
  %.181 = phi ptr [ %.2, %83 ], [ %.088, %.lr.ph83.preheader ]
  %.16180 = phi ptr [ %86, %83 ], [ %63, %.lr.ph83.preheader ]
  %.06479 = phi i32 [ %85, %83 ], [ 0, %.lr.ph83.preheader ]
  %65 = getelementptr inbounds i8, ptr %.16180, i64 56
  %66 = load ptr, ptr %65, align 8, !tbaa !21
  %67 = icmp eq ptr %66, %.05986
  br i1 %67, label %72, label %68

68:                                               ; preds = %.lr.ph83
  %69 = getelementptr inbounds i8, ptr %.16180, i64 64
  %70 = load ptr, ptr %69, align 8, !tbaa !27
  %71 = icmp eq ptr %70, %.05986
  br i1 %71, label %72, label %83

72:                                               ; preds = %68, %.lr.ph83
  %73 = getelementptr inbounds i8, ptr %.181, i64 8
  store ptr %.16180, ptr %.181, align 8, !tbaa !9
  %74 = load ptr, ptr %.16180, align 8, !tbaa !30
  %75 = load i32, ptr %74, align 4, !tbaa !31
  %76 = getelementptr inbounds i8, ptr %74, i64 4
  %77 = load i32, ptr %76, align 4, !tbaa !33
  call void @M_AddToBox(ptr noundef nonnull %1, i32 noundef %75, i32 noundef %77) #5
  %78 = getelementptr inbounds i8, ptr %.16180, i64 8
  %79 = load ptr, ptr %78, align 8, !tbaa !34
  %80 = load i32, ptr %79, align 4, !tbaa !31
  %81 = getelementptr inbounds i8, ptr %79, i64 4
  %82 = load i32, ptr %81, align 4, !tbaa !33
  call void @M_AddToBox(ptr noundef nonnull %1, i32 noundef %80, i32 noundef %82) #5
  %.pre = load i32, ptr @numlines, align 4, !tbaa !5
  br label %83

83:                                               ; preds = %68, %72
  %84 = phi i32 [ %.pre, %72 ], [ %64, %68 ]
  %.2 = phi ptr [ %73, %72 ], [ %.181, %68 ]
  %85 = add nuw nsw i32 %.06479, 1
  %86 = getelementptr inbounds i8, ptr %.16180, i64 88
  %87 = icmp slt i32 %85, %84
  br i1 %87, label %.lr.ph83, label %._crit_edge84.loopexit, !llvm.loop !35

._crit_edge84.loopexit:                           ; preds = %83
  %.pre93 = load ptr, ptr %60, align 8, !tbaa !29
  br label %._crit_edge84

._crit_edge84:                                    ; preds = %._crit_edge84.loopexit, %59
  %88 = phi ptr [ %.088, %59 ], [ %.pre93, %._crit_edge84.loopexit ]
  %.1.lcssa = phi ptr [ %.088, %59 ], [ %.2, %._crit_edge84.loopexit ]
  %89 = ptrtoint ptr %.1.lcssa to i64
  %90 = ptrtoint ptr %88 to i64
  %91 = sub i64 %89, %90
  %92 = ashr exact i64 %91, 3
  %93 = getelementptr inbounds i8, ptr %.05986, i64 112
  %94 = load i32, ptr %93, align 8, !tbaa !23
  %95 = sext i32 %94 to i64
  %.not = icmp eq i64 %92, %95
  br i1 %.not, label %97, label %96

96:                                               ; preds = %._crit_edge84
  call void (ptr, ...) @I_Error(ptr noundef nonnull @.str) #6
  unreachable

97:                                               ; preds = %._crit_edge84
  %98 = load i32, ptr %56, align 4, !tbaa !5
  %99 = load i32, ptr %57, align 8, !tbaa !5
  %100 = add nsw i32 %99, %98
  %101 = sdiv i32 %100, 2
  %102 = getelementptr inbounds i8, ptr %.05986, i64 72
  store i32 %101, ptr %102, align 8, !tbaa !36
  %103 = load i32, ptr %1, align 16, !tbaa !5
  %104 = load i32, ptr %58, align 4, !tbaa !5
  %105 = add nsw i32 %104, %103
  %106 = sdiv i32 %105, 2
  %107 = getelementptr inbounds i8, ptr %.05986, i64 76
  store i32 %106, ptr %107, align 4, !tbaa !37
  %108 = load i32, ptr @bmaporgy, align 4, !tbaa !5
  %109 = add i32 %103, 2097152
  %110 = sub i32 %109, %108
  %111 = ashr i32 %110, 23
  %112 = load i32, ptr @bmapheight, align 4
  %.not66 = icmp slt i32 %111, %112
  %113 = add nsw i32 %112, -1
  %114 = select i1 %.not66, i32 %111, i32 %113
  %115 = getelementptr inbounds i8, ptr %.05986, i64 32
  store i32 %114, ptr %115, align 8, !tbaa !5
  %116 = add i32 %104, -2097152
  %117 = sub i32 %116, %108
  %118 = ashr i32 %117, 23
  %119 = call i32 @llvm.smax.i32(i32 %118, i32 0)
  %120 = getelementptr inbounds i8, ptr %.05986, i64 36
  store i32 %119, ptr %120, align 4, !tbaa !5
  %121 = load i32, ptr @bmaporgx, align 4, !tbaa !5
  %122 = add i32 %98, 2097152
  %123 = sub i32 %122, %121
  %124 = ashr i32 %123, 23
  %125 = load i32, ptr @bmapwidth, align 4
  %.not67 = icmp slt i32 %124, %125
  %126 = add nsw i32 %125, -1
  %127 = select i1 %.not67, i32 %124, i32 %126
  %128 = getelementptr inbounds i8, ptr %.05986, i64 44
  store i32 %127, ptr %128, align 4, !tbaa !5
  %129 = add i32 %99, -2097152
  %130 = sub i32 %129, %121
  %131 = ashr i32 %130, 23
  %132 = call i32 @llvm.smax.i32(i32 %131, i32 0)
  %133 = getelementptr inbounds i8, ptr %.05986, i64 40
  store i32 %132, ptr %133, align 8, !tbaa !5
  %134 = add nuw nsw i32 %.25787, 1
  %135 = getelementptr inbounds i8, ptr %.05986, i64 128
  %136 = load i32, ptr @numsectors, align 4, !tbaa !5
  %137 = icmp slt i32 %134, %136
  br i1 %137, label %59, label %._crit_edge91, !llvm.loop !38

._crit_edge91:                                    ; preds = %97, %._crit_edge78
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %1) #5
  ret void
}

declare void @M_ClearBox(ptr noundef) local_unnamed_addr #1

declare void @M_AddToBox(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #1

; Function Attrs: noreturn
declare void @I_Error(ptr noundef, ...) local_unnamed_addr #3

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.smax.i32(i32, i32) #4

attributes #0 = { mustprogress 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 = { noreturn "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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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 = !{!12, !13, i64 10}
!12 = !{!"subsector_s", !10, i64 0, !13, i64 8, !13, i64 10}
!13 = !{!"short", !7, i64 0}
!14 = !{!15, !10, i64 24}
!15 = !{!"", !10, i64 0, !10, i64 8, !6, i64 16, !6, i64 20, !10, i64 24, !10, i64 32, !10, i64 40, !10, i64 48}
!16 = !{!17, !10, i64 16}
!17 = !{!"", !6, i64 0, !6, i64 4, !13, i64 8, !13, i64 10, !13, i64 12, !10, i64 16}
!18 = !{!12, !10, i64 0}
!19 = distinct !{!19, !20}
!20 = !{!"llvm.loop.mustprogress"}
!21 = !{!22, !10, i64 56}
!22 = !{!"line_s", !10, i64 0, !10, i64 8, !6, i64 16, !6, i64 20, !13, i64 24, !13, i64 26, !13, i64 28, !7, i64 30, !7, i64 36, !6, i64 52, !10, i64 56, !10, i64 64, !6, i64 72, !10, i64 80}
!23 = !{!24, !6, i64 112}
!24 = !{!"", !6, i64 0, !6, i64 4, !13, i64 8, !13, i64 10, !13, i64 12, !13, i64 14, !13, i64 16, !6, i64 20, !10, i64 24, !7, i64 32, !25, i64 48, !6, i64 88, !10, i64 96, !10, i64 104, !6, i64 112, !10, i64 120}
!25 = !{!"", !26, i64 0, !6, i64 24, !6, i64 28, !6, i64 32}
!26 = !{!"thinker_s", !10, i64 0, !10, i64 8, !7, i64 16}
!27 = !{!22, !10, i64 64}
!28 = distinct !{!28, !20}
!29 = !{!24, !10, i64 120}
!30 = !{!22, !10, i64 0}
!31 = !{!32, !6, i64 0}
!32 = !{!"", !6, i64 0, !6, i64 4}
!33 = !{!32, !6, i64 4}
!34 = !{!22, !10, i64 8}
!35 = distinct !{!35, !20}
!36 = !{!24, !6, i64 72}
!37 = !{!24, !6, i64 76}
!38 = distinct !{!38, !20}


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