ok    1  a = [3, 5], c = 47: a . x = c, x = [4, 7], lattice rows kill a
ok    2  a = [3, 5], c = 1: a . x = c, x = [2, -1], lattice rows kill a
ok    3  a = [6, 9], c = 21: a . x = c, x = [2, 1], lattice rows kill a
ok    4  a = [6, 9], c = 20: NOSOLUTION (gcd 3)
ok    5  a = [4, 6, 10], c = 8: a . x = c, lattice rows kill a (returned x = [1, -1, 1])
ok    6  a = [4, 6, 10], c = 7: NOSOLUTION (gcd 2)
ok    7  a = [12, 18, 30], c = 6: a . x = c, lattice rows kill a (returned x = [-1, 1, 0])
ok    8  a = [7], c = 21: a . x = c, x = [3], lattice rows kill a
ok    9  a = [7], c = 22: NOSOLUTION (gcd 7)
ok    10  a = [2, -3], c = 1: a . x = c, x = [2, 1], lattice rows kill a
ok    11  a = [-4, 6], c = 10: a . x = c, x = [2, 3], lattice rows kill a
ok    12  a = [0, 5], c = 10: a . x = c, x = [0, 2], lattice rows kill a
ok    13  a = [0, 0], c = 0: a . x = c (every x solves it), a 2-row lattice (returned x = [0, 0])
ok    14  a = [1000000000000000000, 3], c = 1: a . x = c, x = [1, -333333333333333333], lattice rows kill a
ok    15  a = [123456789, 987654321], c = 9: a . x = c, x = [109739361, -13717420], lattice rows kill a
ok    16  a = [25, 35, 45, 55], c = 5: a . x = c, lattice rows kill a (returned x = [1, 1, 0, -1])
ok    17  a = [-369, -270], c = 3381: NOSOLUTION (gcd 9)
ok    18  a = [-441, -351, -252, -243, 369, -306], c = 2574: a . x = c, lattice rows kill a (returned x = [-1, -1, -1, -2, 2, -1])
ok    19  a = [192, -468, 540, 144, -216, 288], c = -5244: a . x = c, lattice rows kill a (returned x = [-2, 3, -4, -2, 2, -2])
ok    20  a = [-40, 40], c = 72: NOSOLUTION (gcd 40)
ok    21  a = [448, 224, 352, 480, -464, 96], c = 3504: a . x = c, lattice rows kill a (returned x = [2, 0, 2, 3, -1, 0])
ok    22  a = [-539, -473, -22, 451], c = -5170: a . x = c, lattice rows kill a (returned x = [7, 2, 0, -1])
ok    23  system [[1, 2], [3, 4]] = [5, 6]: NOSOLUTION
ok    24  system [[2, 4], [1, 2]] = [6, 3]: am x = b, lattice 1 row(s)
ok    25  system [[2, 4], [1, 2]] = [6, 4]: NOSOLUTION
ok    26  system [[2, 0], [0, 2]] = [4, 3]: NOSOLUTION
ok    27  system [[1, 1, 1], [1, -1, 0]] = [6, 2]: am x = b, lattice 1 row(s)
ok    28  system [[3, 6, 9]] = [12]: am x = b, lattice 2 row(s)
ok    29  system [[3, 6, 9]] = [10]: NOSOLUTION
ok    30  system [[1, 2, 3], [4, 5, 6], [7, 8, 9]] = [6, 15, 24]: am x = b, lattice 1 row(s)
ok    31  system [[2, 3], [4, 6], [6, 9]] = [5, 10, 15]: am x = b, lattice 1 row(s)
ok    32  system [[1000000000000000, 1], [1, 1000000000000000]] = [1000000000000001, 1000000000000001]: am x = b, lattice 0 row(s)
ok    33  system [[-2, -8, 4, 2, -9], [-2, 2, 9, 4, 5], [-1, -5, 1, -1, -1]] = [-236, 62, -96]: am x = b, lattice 2 row(s)
ok    34  system [[-8, -7], [-1, -4]] = [-50, -25]: am x = b, lattice 0 row(s)
ok    35  system [[-4]] = [56]: am x = b, lattice 0 row(s)
ok    36  system [[4, 3, -2, 4, -7, -8], [1, -2, 2, -8, -7, 4], [-2, -7, -1, -1, -2, -1], [-5, 4, 0, 3, -7, -8]] = [-4, -15, -46, 37]: am x = b, lattice 2 row(s)
ok    37  a coefficient of 5.5: NUM_OUTOFRANGE naming a(2)
ok    38  x0 + 3 * lattice row: (-11, 16) also solves 3x + 5y = 47
ok    39  42-digit coefficients (gcd 2): the exact textbook solution of a . x = 6
ok    40  a 6 x 7 three-digit system: diophantine() solves it (a x = c exactly)
ok    41  and the answer is at the true scale (every |x| under 1000, not a far lattice point)
ok    42  lattice(): one LLL-reduced row, a k = 0, short (the 1-D kernel of a 6 x 7 system is ~1e14 by nature; the raw reduction gave 50 digits)
ok    43  an 8 x 12 three-digit system: solved, at the true scale
passed =  43   failed =  0 
