2019-07-24 11:27:29 +00:00
|
|
|
.class public Lkotlin/ranges/IntProgression;
|
|
|
|
.super Ljava/lang/Object;
|
|
|
|
.source "Progressions.kt"
|
|
|
|
|
|
|
|
# interfaces
|
|
|
|
.implements Ljava/lang/Iterable;
|
|
|
|
.implements Lkotlin/jvm/internal/a/a;
|
|
|
|
|
|
|
|
|
|
|
|
# annotations
|
|
|
|
.annotation system Ldalvik/annotation/MemberClasses;
|
|
|
|
value = {
|
|
|
|
Lkotlin/ranges/IntProgression$a;
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
|
|
|
"Ljava/lang/Object;",
|
|
|
|
"Ljava/lang/Iterable<",
|
|
|
|
"Ljava/lang/Integer;",
|
|
|
|
">;",
|
|
|
|
"Lkotlin/jvm/internal/a/a;"
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
|
|
|
|
# static fields
|
2019-11-20 22:09:14 +00:00
|
|
|
.field public static final bib:Lkotlin/ranges/IntProgression$a;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
|
|
|
|
# instance fields
|
2019-11-20 22:09:14 +00:00
|
|
|
.field private final bhY:I
|
2019-08-30 20:04:20 +00:00
|
|
|
|
2019-11-20 22:09:14 +00:00
|
|
|
.field private final bhZ:I
|
2019-10-25 01:57:51 +00:00
|
|
|
|
2019-11-20 22:09:14 +00:00
|
|
|
.field private final bia:I
|
2019-10-31 00:47:18 +00:00
|
|
|
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
# direct methods
|
|
|
|
.method static constructor <clinit>()V
|
|
|
|
.locals 2
|
|
|
|
|
|
|
|
new-instance v0, Lkotlin/ranges/IntProgression$a;
|
|
|
|
|
|
|
|
const/4 v1, 0x0
|
|
|
|
|
2019-10-09 23:16:36 +00:00
|
|
|
invoke-direct {v0, v1}, Lkotlin/ranges/IntProgression$a;-><init>(Lkotlin/jvm/internal/DefaultConstructorMarker;)V
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-11-20 22:09:14 +00:00
|
|
|
sput-object v0, Lkotlin/ranges/IntProgression;->bib:Lkotlin/ranges/IntProgression$a;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public constructor <init>(III)V
|
|
|
|
.locals 1
|
|
|
|
|
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
|
2019-10-09 23:16:36 +00:00
|
|
|
if-eqz p3, :cond_1
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
const/high16 v0, -0x80000000
|
|
|
|
|
2019-10-09 23:16:36 +00:00
|
|
|
if-eq p3, v0, :cond_0
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-11-20 22:09:14 +00:00
|
|
|
iput p1, p0, Lkotlin/ranges/IntProgression;->bhY:I
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-10-09 23:16:36 +00:00
|
|
|
invoke-static {p1, p2, p3}, Lkotlin/c/c;->getProgressionLastElement(III)I
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
move-result p1
|
|
|
|
|
2019-11-20 22:09:14 +00:00
|
|
|
iput p1, p0, Lkotlin/ranges/IntProgression;->bhZ:I
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-11-20 22:09:14 +00:00
|
|
|
iput p3, p0, Lkotlin/ranges/IntProgression;->bia:I
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
return-void
|
|
|
|
|
2019-10-09 23:16:36 +00:00
|
|
|
:cond_0
|
2019-07-24 11:27:29 +00:00
|
|
|
new-instance p1, Ljava/lang/IllegalArgumentException;
|
|
|
|
|
|
|
|
const-string p2, "Step must be greater than Int.MIN_VALUE to avoid overflow on negation."
|
|
|
|
|
|
|
|
invoke-direct {p1, p2}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
|
|
|
|
|
|
|
|
check-cast p1, Ljava/lang/Throwable;
|
|
|
|
|
|
|
|
throw p1
|
|
|
|
|
2019-10-09 23:16:36 +00:00
|
|
|
:cond_1
|
2019-07-24 11:27:29 +00:00
|
|
|
new-instance p1, Ljava/lang/IllegalArgumentException;
|
|
|
|
|
|
|
|
const-string p2, "Step must be non-zero."
|
|
|
|
|
|
|
|
invoke-direct {p1, p2}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
|
|
|
|
|
|
|
|
check-cast p1, Ljava/lang/Throwable;
|
|
|
|
|
|
|
|
throw p1
|
|
|
|
.end method
|
|
|
|
|
|
|
|
|
|
|
|
# virtual methods
|
|
|
|
.method public equals(Ljava/lang/Object;)Z
|
|
|
|
.locals 2
|
|
|
|
|
|
|
|
instance-of v0, p1, Lkotlin/ranges/IntProgression;
|
|
|
|
|
|
|
|
if-eqz v0, :cond_2
|
|
|
|
|
|
|
|
invoke-virtual {p0}, Lkotlin/ranges/IntProgression;->isEmpty()Z
|
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
|
|
|
|
move-object v0, p1
|
|
|
|
|
|
|
|
check-cast v0, Lkotlin/ranges/IntProgression;
|
|
|
|
|
|
|
|
invoke-virtual {v0}, Lkotlin/ranges/IntProgression;->isEmpty()Z
|
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
if-nez v0, :cond_1
|
|
|
|
|
|
|
|
:cond_0
|
2019-11-20 22:09:14 +00:00
|
|
|
iget v0, p0, Lkotlin/ranges/IntProgression;->bhY:I
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
check-cast p1, Lkotlin/ranges/IntProgression;
|
|
|
|
|
2019-11-20 22:09:14 +00:00
|
|
|
iget v1, p1, Lkotlin/ranges/IntProgression;->bhY:I
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
if-ne v0, v1, :cond_2
|
|
|
|
|
2019-11-20 22:09:14 +00:00
|
|
|
iget v0, p0, Lkotlin/ranges/IntProgression;->bhZ:I
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-11-20 22:09:14 +00:00
|
|
|
iget v1, p1, Lkotlin/ranges/IntProgression;->bhZ:I
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
if-ne v0, v1, :cond_2
|
|
|
|
|
2019-11-20 22:09:14 +00:00
|
|
|
iget v0, p0, Lkotlin/ranges/IntProgression;->bia:I
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-11-20 22:09:14 +00:00
|
|
|
iget p1, p1, Lkotlin/ranges/IntProgression;->bia:I
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
if-ne v0, p1, :cond_2
|
|
|
|
|
|
|
|
:cond_1
|
|
|
|
const/4 p1, 0x1
|
|
|
|
|
|
|
|
return p1
|
|
|
|
|
|
|
|
:cond_2
|
|
|
|
const/4 p1, 0x0
|
|
|
|
|
|
|
|
return p1
|
|
|
|
.end method
|
|
|
|
|
2019-10-09 23:16:36 +00:00
|
|
|
.method public final getFirst()I
|
|
|
|
.locals 1
|
|
|
|
|
2019-11-20 22:09:14 +00:00
|
|
|
iget v0, p0, Lkotlin/ranges/IntProgression;->bhY:I
|
2019-10-09 23:16:36 +00:00
|
|
|
|
|
|
|
return v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public final getLast()I
|
|
|
|
.locals 1
|
|
|
|
|
2019-11-20 22:09:14 +00:00
|
|
|
iget v0, p0, Lkotlin/ranges/IntProgression;->bhZ:I
|
2019-10-09 23:16:36 +00:00
|
|
|
|
|
|
|
return v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public final getStep()I
|
|
|
|
.locals 1
|
|
|
|
|
2019-11-20 22:09:14 +00:00
|
|
|
iget v0, p0, Lkotlin/ranges/IntProgression;->bia:I
|
2019-10-09 23:16:36 +00:00
|
|
|
|
|
|
|
return v0
|
|
|
|
.end method
|
|
|
|
|
2019-07-24 11:27:29 +00:00
|
|
|
.method public hashCode()I
|
|
|
|
.locals 2
|
|
|
|
|
|
|
|
invoke-virtual {p0}, Lkotlin/ranges/IntProgression;->isEmpty()Z
|
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
|
|
|
|
const/4 v0, -0x1
|
|
|
|
|
|
|
|
return v0
|
|
|
|
|
|
|
|
:cond_0
|
2019-11-20 22:09:14 +00:00
|
|
|
iget v0, p0, Lkotlin/ranges/IntProgression;->bhY:I
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
mul-int/lit8 v0, v0, 0x1f
|
|
|
|
|
2019-11-20 22:09:14 +00:00
|
|
|
iget v1, p0, Lkotlin/ranges/IntProgression;->bhZ:I
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
add-int/2addr v0, v1
|
|
|
|
|
|
|
|
mul-int/lit8 v0, v0, 0x1f
|
|
|
|
|
2019-11-20 22:09:14 +00:00
|
|
|
iget v1, p0, Lkotlin/ranges/IntProgression;->bia:I
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
add-int/2addr v0, v1
|
|
|
|
|
|
|
|
return v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public isEmpty()Z
|
|
|
|
.locals 4
|
|
|
|
|
2019-11-20 22:09:14 +00:00
|
|
|
iget v0, p0, Lkotlin/ranges/IntProgression;->bia:I
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
const/4 v1, 0x1
|
|
|
|
|
|
|
|
const/4 v2, 0x0
|
|
|
|
|
|
|
|
if-lez v0, :cond_1
|
|
|
|
|
2019-11-20 22:09:14 +00:00
|
|
|
iget v0, p0, Lkotlin/ranges/IntProgression;->bhY:I
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-11-20 22:09:14 +00:00
|
|
|
iget v3, p0, Lkotlin/ranges/IntProgression;->bhZ:I
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
if-le v0, v3, :cond_0
|
|
|
|
|
|
|
|
return v1
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
return v2
|
|
|
|
|
|
|
|
:cond_1
|
2019-11-20 22:09:14 +00:00
|
|
|
iget v0, p0, Lkotlin/ranges/IntProgression;->bhY:I
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-11-20 22:09:14 +00:00
|
|
|
iget v3, p0, Lkotlin/ranges/IntProgression;->bhZ:I
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
if-ge v0, v3, :cond_2
|
|
|
|
|
|
|
|
return v1
|
|
|
|
|
|
|
|
:cond_2
|
|
|
|
return v2
|
|
|
|
.end method
|
|
|
|
|
2019-10-09 23:16:36 +00:00
|
|
|
.method public bridge synthetic iterator()Ljava/util/Iterator;
|
|
|
|
.locals 1
|
|
|
|
|
|
|
|
invoke-virtual {p0}, Lkotlin/ranges/IntProgression;->iterator()Lkotlin/a/ab;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
check-cast v0, Ljava/util/Iterator;
|
|
|
|
|
|
|
|
return-object v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public iterator()Lkotlin/a/ab;
|
2019-07-24 11:27:29 +00:00
|
|
|
.locals 4
|
|
|
|
|
2019-07-31 00:08:31 +00:00
|
|
|
new-instance v0, Lkotlin/ranges/b;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-11-20 22:09:14 +00:00
|
|
|
iget v1, p0, Lkotlin/ranges/IntProgression;->bhY:I
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-11-20 22:09:14 +00:00
|
|
|
iget v2, p0, Lkotlin/ranges/IntProgression;->bhZ:I
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-11-20 22:09:14 +00:00
|
|
|
iget v3, p0, Lkotlin/ranges/IntProgression;->bia:I
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-07-31 00:08:31 +00:00
|
|
|
invoke-direct {v0, v1, v2, v3}, Lkotlin/ranges/b;-><init>(III)V
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-07-31 00:08:31 +00:00
|
|
|
check-cast v0, Lkotlin/a/ab;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
return-object v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public toString()Ljava/lang/String;
|
|
|
|
.locals 3
|
|
|
|
|
2019-11-20 22:09:14 +00:00
|
|
|
iget v0, p0, Lkotlin/ranges/IntProgression;->bia:I
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
const-string v1, " step "
|
|
|
|
|
|
|
|
if-lez v0, :cond_0
|
|
|
|
|
|
|
|
new-instance v0, Ljava/lang/StringBuilder;
|
|
|
|
|
|
|
|
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
|
|
|
|
|
2019-11-20 22:09:14 +00:00
|
|
|
iget v2, p0, Lkotlin/ranges/IntProgression;->bhY:I
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
invoke-virtual {v0, v2}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
|
|
|
|
|
|
|
|
const-string v2, ".."
|
|
|
|
|
|
|
|
invoke-virtual {v0, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
|
2019-11-20 22:09:14 +00:00
|
|
|
iget v2, p0, Lkotlin/ranges/IntProgression;->bhZ:I
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
invoke-virtual {v0, v2}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
|
|
|
|
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
|
2019-11-20 22:09:14 +00:00
|
|
|
iget v1, p0, Lkotlin/ranges/IntProgression;->bia:I
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
:goto_0
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
|
|
|
|
|
|
|
|
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
return-object v0
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
new-instance v0, Ljava/lang/StringBuilder;
|
|
|
|
|
|
|
|
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
|
|
|
|
|
2019-11-20 22:09:14 +00:00
|
|
|
iget v2, p0, Lkotlin/ranges/IntProgression;->bhY:I
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
invoke-virtual {v0, v2}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
|
|
|
|
|
|
|
|
const-string v2, " downTo "
|
|
|
|
|
|
|
|
invoke-virtual {v0, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
|
2019-11-20 22:09:14 +00:00
|
|
|
iget v2, p0, Lkotlin/ranges/IntProgression;->bhZ:I
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
invoke-virtual {v0, v2}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
|
|
|
|
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
|
2019-11-20 22:09:14 +00:00
|
|
|
iget v1, p0, Lkotlin/ranges/IntProgression;->bia:I
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
neg-int v1, v1
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
.end method
|