/*
 * Copyright (c) 2024 Huawei Device Co., Ltd.
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
import a from 'assert';
let b = 1;
for (let j = 0; j < 10; j += 1)
    for (b; b < j; b++) {
        let k = b;
        while (0 < k) {
            k--;
        }
        a(k === 0);
    }
a(b === 9);
let c = ["01", "11", "21", "02", "12", "22", "03", "13", "23"];
let d = 0;
for (const h of [1, 2, 3]) {
    for (const i in [1, h, 3]) {
        a(i + h === c[d++]);
    }
}
c = ["xa", "i3a", "xb", "i3b"];
d = 0;
let e = { a: 1, b: 2 };
for (var f in e) {
    for (var g in { x: f, i3: 0 }) {
        g;
        a(g + f === c[d++]);
    }
}
do {
    b++;
    do {
        b++;
    } while (10 > b);
} while (b < 10);
a(b === 11);
while (b > 0) {
    b--;
    while (0 < b) {
        b--;
    }
}
a(b === 0);
