101 lines
2.3 KiB
Java
101 lines
2.3 KiB
Java
package androidx.constraintlayout.solver;
|
|
|
|
import java.util.Arrays;
|
|
|
|
/* loaded from: classes.dex */
|
|
public class SolverVariable {
|
|
private static int k = 1;
|
|
private String a;
|
|
public float e;
|
|
Type g;
|
|
public int b = -1;
|
|
int c = -1;
|
|
public int d = 0;
|
|
float[] f = new float[7];
|
|
ArrayRow[] h = new ArrayRow[8];
|
|
int i = 0;
|
|
public int j = 0;
|
|
|
|
public enum Type {
|
|
UNRESTRICTED,
|
|
CONSTANT,
|
|
SLACK,
|
|
ERROR,
|
|
UNKNOWN
|
|
}
|
|
|
|
public SolverVariable(Type type, String str) {
|
|
this.g = type;
|
|
}
|
|
|
|
static void b() {
|
|
k++;
|
|
}
|
|
|
|
public final void a(ArrayRow arrayRow) {
|
|
int i = 0;
|
|
while (true) {
|
|
int i2 = this.i;
|
|
if (i >= i2) {
|
|
ArrayRow[] arrayRowArr = this.h;
|
|
if (i2 >= arrayRowArr.length) {
|
|
this.h = (ArrayRow[]) Arrays.copyOf(arrayRowArr, arrayRowArr.length * 2);
|
|
}
|
|
ArrayRow[] arrayRowArr2 = this.h;
|
|
int i3 = this.i;
|
|
arrayRowArr2[i3] = arrayRow;
|
|
this.i = i3 + 1;
|
|
return;
|
|
}
|
|
if (this.h[i] == arrayRow) {
|
|
return;
|
|
} else {
|
|
i++;
|
|
}
|
|
}
|
|
}
|
|
|
|
public final void c(ArrayRow arrayRow) {
|
|
int i = this.i;
|
|
for (int i2 = 0; i2 < i; i2++) {
|
|
ArrayRow[] arrayRowArr = this.h;
|
|
arrayRowArr[i2].d.a(arrayRowArr[i2], arrayRow, false);
|
|
}
|
|
this.i = 0;
|
|
}
|
|
|
|
public String toString() {
|
|
return "" + this.a;
|
|
}
|
|
|
|
public final void b(ArrayRow arrayRow) {
|
|
int i = this.i;
|
|
for (int i2 = 0; i2 < i; i2++) {
|
|
if (this.h[i2] == arrayRow) {
|
|
for (int i3 = 0; i3 < (i - i2) - 1; i3++) {
|
|
ArrayRow[] arrayRowArr = this.h;
|
|
int i4 = i2 + i3;
|
|
arrayRowArr[i4] = arrayRowArr[i4 + 1];
|
|
}
|
|
this.i--;
|
|
return;
|
|
}
|
|
}
|
|
}
|
|
|
|
public void a() {
|
|
this.a = null;
|
|
this.g = Type.UNKNOWN;
|
|
this.d = 0;
|
|
this.b = -1;
|
|
this.c = -1;
|
|
this.e = 0.0f;
|
|
this.i = 0;
|
|
this.j = 0;
|
|
}
|
|
|
|
public void a(Type type, String str) {
|
|
this.g = type;
|
|
}
|
|
}
|