; LLVM IR from rdguez-mariano/fast_imas_IPOL :: io_png/libs/png (pngwutil)

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

@.str.39 = external hidden unnamed_addr constant [42 x i8], align 1
@png_pCAL = external global [5 x i8], align 1

; Function Attrs: nounwind uwtable
declare dso_local void @png_save_int_32(ptr noundef, i64 noundef) #0

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

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

; Function Attrs: nounwind uwtable
declare dso_local void @png_write_chunk_start(ptr noundef, ptr noundef, i64 noundef) #0

; Function Attrs: nounwind uwtable
declare dso_local void @png_write_chunk_data(ptr noundef, ptr noundef, i64 noundef) #0

; Function Attrs: nounwind uwtable
declare dso_local void @png_write_chunk_end(ptr noundef) #0

declare void @png_warning(ptr noundef, ptr noundef) #2

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

declare void @png_free(ptr noundef, ptr noundef) #2

; Function Attrs: nounwind willreturn memory(read)
declare i64 @strlen(ptr noundef) #3

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

26:                                               ; preds = %8
  %27 = load ptr, ptr %9, align 8, !tbaa !5
  call void @png_warning(ptr noundef %27, ptr noundef @.str.39)
  br label %28

28:                                               ; preds = %26, %8
  %29 = load ptr, ptr %9, align 8, !tbaa !5
  %30 = load ptr, ptr %10, align 8, !tbaa !5
  %31 = call i64 @png_check_keyword(ptr noundef %29, ptr noundef %30, ptr noundef %22)
  %32 = add i64 %31, 1
  store i64 %32, ptr %17, align 8, !tbaa !9
  %33 = load ptr, ptr %15, align 8, !tbaa !5
  %34 = call i64 @strlen(ptr noundef %33) #5
  %35 = load i32, ptr %14, align 4, !tbaa !11
  %36 = icmp eq i32 %35, 0
  %37 = zext i1 %36 to i64
  %38 = select i1 %36, i32 0, i32 1
  %39 = sext i32 %38 to i64
  %40 = add i64 %34, %39
  store i64 %40, ptr %18, align 8, !tbaa !9
  %41 = load i64, ptr %17, align 8, !tbaa !9
  %42 = load i64, ptr %18, align 8, !tbaa !9
  %43 = add i64 %41, %42
  %44 = add i64 %43, 10
  store i64 %44, ptr %19, align 8, !tbaa !9
  %45 = load ptr, ptr %9, align 8, !tbaa !5
  %46 = load i32, ptr %14, align 4, !tbaa !11
  %47 = sext i32 %46 to i64
  %48 = mul i64 %47, 8
  %49 = call ptr @png_malloc(ptr noundef %45, i64 noundef %48)
  store ptr %49, ptr %20, align 8, !tbaa !5
  store i32 0, ptr %23, align 4, !tbaa !11
  br label %50

50:                                               ; preds = %80, %28
  %51 = load i32, ptr %23, align 4, !tbaa !11
  %52 = load i32, ptr %14, align 4, !tbaa !11
  %53 = icmp slt i32 %51, %52
  br i1 %53, label %54, label %83

54:                                               ; preds = %50
  %55 = load ptr, ptr %16, align 8, !tbaa !5
  %56 = load i32, ptr %23, align 4, !tbaa !11
  %57 = sext i32 %56 to i64
  %58 = getelementptr inbounds ptr, ptr %55, i64 %57
  %59 = load ptr, ptr %58, align 8, !tbaa !5
  %60 = call i64 @strlen(ptr noundef %59) #5
  %61 = load i32, ptr %23, align 4, !tbaa !11
  %62 = load i32, ptr %14, align 4, !tbaa !11
  %63 = sub nsw i32 %62, 1
  %64 = icmp eq i32 %61, %63
  %65 = zext i1 %64 to i64
  %66 = select i1 %64, i32 0, i32 1
  %67 = sext i32 %66 to i64
  %68 = add i64 %60, %67
  %69 = load ptr, ptr %20, align 8, !tbaa !5
  %70 = load i32, ptr %23, align 4, !tbaa !11
  %71 = sext i32 %70 to i64
  %72 = getelementptr inbounds i64, ptr %69, i64 %71
  store i64 %68, ptr %72, align 8, !tbaa !9
  %73 = load ptr, ptr %20, align 8, !tbaa !5
  %74 = load i32, ptr %23, align 4, !tbaa !11
  %75 = sext i32 %74 to i64
  %76 = getelementptr inbounds i64, ptr %73, i64 %75
  %77 = load i64, ptr %76, align 8, !tbaa !9
  %78 = load i64, ptr %19, align 8, !tbaa !9
  %79 = add i64 %78, %77
  store i64 %79, ptr %19, align 8, !tbaa !9
  br label %80

80:                                               ; preds = %54
  %81 = load i32, ptr %23, align 4, !tbaa !11
  %82 = add nsw i32 %81, 1
  store i32 %82, ptr %23, align 4, !tbaa !11
  br label %50, !llvm.loop !13

83:                                               ; preds = %50
  %84 = load ptr, ptr %9, align 8, !tbaa !5
  %85 = load i64, ptr %19, align 8, !tbaa !9
  call void @png_write_chunk_start(ptr noundef %84, ptr noundef @png_pCAL, i64 noundef %85)
  %86 = load ptr, ptr %9, align 8, !tbaa !5
  %87 = load ptr, ptr %22, align 8, !tbaa !5
  %88 = load i64, ptr %17, align 8, !tbaa !9
  call void @png_write_chunk_data(ptr noundef %86, ptr noundef %87, i64 noundef %88)
  %89 = getelementptr inbounds [10 x i8], ptr %21, i64 0, i64 0
  %90 = load i64, ptr %11, align 8, !tbaa !9
  call void @png_save_int_32(ptr noundef %89, i64 noundef %90)
  %91 = getelementptr inbounds [10 x i8], ptr %21, i64 0, i64 0
  %92 = getelementptr inbounds i8, ptr %91, i64 4
  %93 = load i64, ptr %12, align 8, !tbaa !9
  call void @png_save_int_32(ptr noundef %92, i64 noundef %93)
  %94 = load i32, ptr %13, align 4, !tbaa !11
  %95 = trunc i32 %94 to i8
  %96 = getelementptr inbounds [10 x i8], ptr %21, i64 0, i64 8
  store i8 %95, ptr %96, align 1, !tbaa !15
  %97 = load i32, ptr %14, align 4, !tbaa !11
  %98 = trunc i32 %97 to i8
  %99 = getelementptr inbounds [10 x i8], ptr %21, i64 0, i64 9
  store i8 %98, ptr %99, align 1, !tbaa !15
  %100 = load ptr, ptr %9, align 8, !tbaa !5
  %101 = getelementptr inbounds [10 x i8], ptr %21, i64 0, i64 0
  call void @png_write_chunk_data(ptr noundef %100, ptr noundef %101, i64 noundef 10)
  %102 = load ptr, ptr %9, align 8, !tbaa !5
  %103 = load ptr, ptr %15, align 8, !tbaa !5
  %104 = load i64, ptr %18, align 8, !tbaa !9
  call void @png_write_chunk_data(ptr noundef %102, ptr noundef %103, i64 noundef %104)
  %105 = load ptr, ptr %9, align 8, !tbaa !5
  %106 = load ptr, ptr %22, align 8, !tbaa !5
  call void @png_free(ptr noundef %105, ptr noundef %106)
  store i32 0, ptr %23, align 4, !tbaa !11
  br label %107

107:                                              ; preds = %123, %83
  %108 = load i32, ptr %23, align 4, !tbaa !11
  %109 = load i32, ptr %14, align 4, !tbaa !11
  %110 = icmp slt i32 %108, %109
  br i1 %110, label %111, label %126

111:                                              ; preds = %107
  %112 = load ptr, ptr %9, align 8, !tbaa !5
  %113 = load ptr, ptr %16, align 8, !tbaa !5
  %114 = load i32, ptr %23, align 4, !tbaa !11
  %115 = sext i32 %114 to i64
  %116 = getelementptr inbounds ptr, ptr %113, i64 %115
  %117 = load ptr, ptr %116, align 8, !tbaa !5
  %118 = load ptr, ptr %20, align 8, !tbaa !5
  %119 = load i32, ptr %23, align 4, !tbaa !11
  %120 = sext i32 %119 to i64
  %121 = getelementptr inbounds i64, ptr %118, i64 %120
  %122 = load i64, ptr %121, align 8, !tbaa !9
  call void @png_write_chunk_data(ptr noundef %112, ptr noundef %117, i64 noundef %122)
  br label %123

123:                                              ; preds = %111
  %124 = load i32, ptr %23, align 4, !tbaa !11
  %125 = add nsw i32 %124, 1
  store i32 %125, ptr %23, align 4, !tbaa !11
  br label %107, !llvm.loop !16

126:                                              ; preds = %107
  %127 = load ptr, ptr %9, align 8, !tbaa !5
  %128 = load ptr, ptr %20, align 8, !tbaa !5
  call void @png_free(ptr noundef %127, ptr noundef %128)
  %129 = load ptr, ptr %9, align 8, !tbaa !5
  call void @png_write_chunk_end(ptr noundef %129)
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #4
  call void @llvm.lifetime.end.p0(i64 10, ptr %21) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #4
  ret void
}

declare ptr @png_malloc(ptr noundef, i64 noundef) #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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { nounwind willreturn memory(read) "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 = { 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 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"long", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = !{!7, !7, i64 0}
!16 = distinct !{!16, !14}


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

@.str.39 = external hidden unnamed_addr constant [42 x i8], align 1
@png_pCAL = external global [5 x i8], align 1

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

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

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

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

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

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

declare void @png_warning(ptr noundef, ptr noundef) local_unnamed_addr #2

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

declare void @png_free(ptr noundef, ptr noundef) local_unnamed_addr #2

; Function Attrs: mustprogress nofree nounwind willreturn memory(argmem: read)
declare i64 @strlen(ptr nocapture noundef) local_unnamed_addr #3

; Function Attrs: nounwind uwtable
define dso_local void @png_write_pCAL(ptr noundef %0, ptr noundef %1, i64 noundef %2, i64 noundef %3, i32 noundef %4, i32 noundef %5, ptr noundef %6, ptr nocapture noundef readonly %7) local_unnamed_addr #0 {
  %9 = alloca [10 x i8], align 1
  %10 = alloca ptr, align 8
  call void @llvm.lifetime.start.p0(i64 10, ptr nonnull %9) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #4
  %11 = icmp sgt i32 %4, 3
  br i1 %11, label %12, label %13

12:                                               ; preds = %8
  tail call void @png_warning(ptr noundef %0, ptr noundef nonnull @.str.39) #4
  br label %13

13:                                               ; preds = %12, %8
  %14 = call i64 @png_check_keyword(ptr noundef %0, ptr noundef %1, ptr noundef nonnull %10)
  %15 = add i64 %14, 1
  %16 = call i64 @strlen(ptr noundef nonnull dereferenceable(1) %6) #5
  %17 = icmp ne i32 %5, 0
  %18 = zext i1 %17 to i64
  %19 = add i64 %16, %18
  %20 = add i64 %14, 11
  %21 = add i64 %20, %19
  %22 = sext i32 %5 to i64
  %23 = shl nsw i64 %22, 3
  %24 = call ptr @png_malloc(ptr noundef %0, i64 noundef %23) #4
  %25 = icmp sgt i32 %5, 0
  br i1 %25, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %13
  %26 = add nsw i32 %5, -1
  %27 = zext nneg i32 %26 to i64
  %wide.trip.count = zext nneg i32 %5 to i64
  br label %28

28:                                               ; preds = %.lr.ph, %28
  %indvars.iv = phi i64 [ 0, %.lr.ph ], [ %indvars.iv.next, %28 ]
  %.04548 = phi i64 [ %21, %.lr.ph ], [ %36, %28 ]
  %29 = getelementptr inbounds ptr, ptr %7, i64 %indvars.iv
  %30 = load ptr, ptr %29, align 8, !tbaa !5
  %31 = call i64 @strlen(ptr noundef nonnull dereferenceable(1) %30) #5
  %32 = icmp ne i64 %indvars.iv, %27
  %33 = zext i1 %32 to i64
  %34 = add i64 %31, %33
  %35 = getelementptr inbounds i64, ptr %24, i64 %indvars.iv
  store i64 %34, ptr %35, align 8, !tbaa !9
  %36 = add i64 %34, %.04548
  %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 %._crit_edge, label %28, !llvm.loop !11

._crit_edge:                                      ; preds = %28, %13
  %.045.lcssa = phi i64 [ %21, %13 ], [ %36, %28 ]
  call void @png_write_chunk_start(ptr noundef %0, ptr noundef nonnull @png_pCAL, i64 noundef %.045.lcssa)
  %37 = load ptr, ptr %10, align 8, !tbaa !5
  call void @png_write_chunk_data(ptr noundef %0, ptr noundef %37, i64 noundef %15)
  call void @png_save_int_32(ptr noundef nonnull %9, i64 noundef %2)
  %38 = getelementptr inbounds i8, ptr %9, i64 4
  call void @png_save_int_32(ptr noundef nonnull %38, i64 noundef %3)
  %39 = trunc i32 %4 to i8
  %40 = getelementptr inbounds i8, ptr %9, i64 8
  store i8 %39, ptr %40, align 1, !tbaa !13
  %41 = trunc i32 %5 to i8
  %42 = getelementptr inbounds i8, ptr %9, i64 9
  store i8 %41, ptr %42, align 1, !tbaa !13
  call void @png_write_chunk_data(ptr noundef %0, ptr noundef nonnull %9, i64 noundef 10)
  call void @png_write_chunk_data(ptr noundef %0, ptr noundef %6, i64 noundef %19)
  %43 = load ptr, ptr %10, align 8, !tbaa !5
  call void @png_free(ptr noundef %0, ptr noundef %43) #4
  br i1 %25, label %.lr.ph52.preheader, label %._crit_edge53

.lr.ph52.preheader:                               ; preds = %._crit_edge
  %wide.trip.count58 = zext nneg i32 %5 to i64
  br label %.lr.ph52

.lr.ph52:                                         ; preds = %.lr.ph52.preheader, %.lr.ph52
  %indvars.iv55 = phi i64 [ 0, %.lr.ph52.preheader ], [ %indvars.iv.next56, %.lr.ph52 ]
  %44 = getelementptr inbounds ptr, ptr %7, i64 %indvars.iv55
  %45 = load ptr, ptr %44, align 8, !tbaa !5
  %46 = getelementptr inbounds i64, ptr %24, i64 %indvars.iv55
  %47 = load i64, ptr %46, align 8, !tbaa !9
  call void @png_write_chunk_data(ptr noundef %0, ptr noundef %45, i64 noundef %47)
  %indvars.iv.next56 = add nuw nsw i64 %indvars.iv55, 1
  %exitcond59.not = icmp eq i64 %indvars.iv.next56, %wide.trip.count58
  br i1 %exitcond59.not, label %._crit_edge53, label %.lr.ph52, !llvm.loop !14

._crit_edge53:                                    ; preds = %.lr.ph52, %._crit_edge
  call void @png_free(ptr noundef %0, ptr noundef %24) #4
  call void @png_write_chunk_end(ptr noundef %0)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #4
  call void @llvm.lifetime.end.p0(i64 10, ptr nonnull %9) #4
  ret void
}

declare ptr @png_malloc(ptr noundef, i64 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 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { mustprogress nofree nounwind willreturn memory(argmem: read) "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 = { 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 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"long", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = !{!7, !7, i64 0}
!14 = distinct !{!14, !12}


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