# Picture-Lock phase 07: vectors for the click arithmetic, by version 3 of the contract.
# Written by make-click-vectors.pl from picture-reference.pl. Change the script, not this file.
#
# One vector a line, eight fields with one tab between them:
#
#   kind      enrol, locate, refuse-enrol or refuse-locate
#   name      unique
#   width     of the image, in pixels
#   height    of the image, in pixels
#   r         the radius of the tolerance. The side of a cell is s = 2r + 1
#   clicks    x,y pairs with one space between them, in order. No clicks at all is a
#             lone hyphen: -
#   offsets   dx,dy pairs with one space between them. For enrol, what it must give. For
#             locate and refuse-locate, the stored offsets it is given, one pair for each
#             click, and a lone hyphen when there are no clicks. - for refuse-enrol
#   expected  the encoding in hex, or for a refusal its rule: E0, E1, E2, E3, L0, L1 or L2
#
# Every number is written as its digits, with a minus before them when it is below 0. A
# width, a height, an r, a click coordinate and a stored offset can each be too large for
# 32 bits. None is past 9007199254740992 either way. No field is empty.
#
# The rules and the errors the contract gives them:
#
#   E0 and L0  PICLOCK_E_ARGUMENT       the width, the height or r is out of range
#   E1 and L1  PICLOCK_E_CLICK_COUNT    not from 4 to 16 clicks
#   E2         PICLOCK_E_CLICK_OUTSIDE  a click outside the image
#   E3         PICLOCK_E_CLICK_PLACES   no three clicks are three different places
#   L2         PICLOCK_E_ARGUMENT       a stored offset that is not less than s
#
# A line that starts with # is a comment. The comment above a vector says what it is for.
# Clicks are counted from 1 in the comments and bytes from 0.
#
# 177 vectors: 40 enrol, 41 locate, 58 refuse-enrol, 38 refuse-locate.

# THE WORKED EXAMPLE. Five clicks in the middle of a 1920 by 1080 image with r = 19,
# so s = 2 * 19 + 1 = 39. For each click and each axis the corner is c = x - r and the
# offset is d = mod(x - r, 39), which is what is left of c after the 39s are taken out.
#
#   click      x   c = x - r             d       y   c = y - r             d
#   1        960    941 = 24 * 39 +  5   5     540    521 = 13 * 39 + 14  14
#   2        700    681 = 17 * 39 + 18  18     400    381 =  9 * 39 + 30  30
#   3       1200   1181 = 30 * 39 + 11  11     300    281 =  7 * 39 +  8   8
#   4        500    481 = 12 * 39 + 13  13     800    781 = 20 * 39 +  1   1
#   5       1400   1381 = 35 * 39 + 16  16     650    631 = 16 * 39 +  7   7
#
# The offsets, stored in the clear: 5,14 18,30 11,8 13,1 16,7
#
# The encoding, which is secret, is 20 + 8 * 5 = 60 bytes. Every number is 4 bytes with
# the lowest byte first:
#
#   01 00 00 00   the version of the encoding, 1
#   13 00 00 00   r = 19
#   80 07 00 00   width = 1920
#   38 04 00 00   height = 1080
#   05 00 00 00   n = 5
#   ad 03 00 00   click 1, corner of x =  941
#   09 02 00 00   click 1, corner of y =  521
#   a9 02 00 00   click 2, corner of x =  681
#   7d 01 00 00   click 2, corner of y =  381
#   9d 04 00 00   click 3, corner of x = 1181
#   19 01 00 00   click 3, corner of y =  281
#   e1 01 00 00   click 4, corner of x =  481
#   0d 03 00 00   click 4, corner of y =  781
#   65 05 00 00   click 5, corner of x = 1381
#   77 02 00 00   click 5, corner of y =  631
enrol	enrol-worked-example	1920	1080	19	960,540 700,400 1200,300 500,800 1400,650	5,14 18,30 11,8 13,1 16,7	0100000013000000800700003804000005000000ad03000009020000a90200007d0100009d04000019010000e10100000d0300006505000077020000

# The four corners of a 640 by 480 image and then the middle of its four edges, with
# r = 12 and s = 25. A click on an edge has a negative corner: at x = 0 the corner is -12,
# which is f4 ff ff ff, and its offset is mod(-12, 25) = 13 and not -12.
enrol	enrol-corners-and-edges	640	480	12	0,0 639,0 0,479 639,479 320,0 639,240 320,479 0,240	13,13 2,13 13,17 2,17 8,13 2,3 8,17 13,3	010000000c00000080020000e001000008000000f4fffffff4ffffff73020000f4fffffff4ffffffd301000073020000d301000034010000f4ffffff73020000e400000034010000d3010000f4ffffffe4000000

# r = 0, so s = 1: every offset is 0 and every corner is the click itself.
enrol	enrol-r-0	100	100	0	0,0 99,99 50,50 0,99 99,0	0,0 0,0 0,0 0,0 0,0	010000000000000064000000640000000500000000000000000000006300000063000000320000003200000000000000630000006300000000000000

# The largest image, 16777216 by 16777216, and the largest r, 65535, so s = 131071.
# Clicks at 0 and at 16777215 on both axes, and one in the middle. The corner of 0 is
# -65535, which is 01 00 ff ff. The corner of 16777215 is 16711680, which is 00 00 ff 00.
enrol	enrol-largest-image-largest-r	16777216	16777216	65535	0,0 16777215,0 0,16777215 16777215,16777215 8388608,8388608	65536,65536 65663,65536 65536,65663 65663,65663 65600,65600	01000000ffff00000000000100000001050000000100ffff0100ffff0000ff000100ffff0100ffff0000ff000000ff000000ff0001007f0001007f00

# Four clicks, the fewest.
enrol	enrol-four-clicks	800	600	8	100,100 700,100 100,500 700,500	7,7 12,7 7,16 12,16	01000000080000002003000058020000040000005c0000005c000000b40200005c0000005c000000ec010000b4020000ec010000

# Sixteen clicks, the most.
enrol	enrol-sixteen-clicks	1024	768	10	100,90 350,90 600,90 850,90 100,280 350,280 600,280 850,280 100,470 350,470 600,470 850,470 100,660 350,660 600,660 850,660	6,17 4,17 2,17 0,17 6,18 4,18 2,18 0,18 6,19 4,19 2,19 0,19 6,20 4,20 2,20 0,20	010000000a0000000004000000030000100000005a0000005000000054010000500000004e0200005000000048030000500000005a0000000e010000540100000e0100004e0200000e010000480300000e0100005a000000cc01000054010000cc0100004e020000cc01000048030000cc0100005a0000008a020000540100008a0200004e0200008a020000480300008a020000

# Five clicks in three places. The third click is the first one again, pixel for pixel,
# and the fifth is 10 pixels from the second on each axis with r = 15. It passes.
enrol	enrol-same-place-twice-among-five	800	600	15	200,150 600,150 200,150 400,450 610,160	30,11 27,11 30,11 13,1 6,21	010000000f000000200300005802000005000000b9000000870000004902000087000000b90000008700000081010000b30100005302000091000000

# Exactly three places, the fewest that pass. The fourth click is 15 pixels from the first
# on BOTH axes with r = 15: at most r is within r, so it is the same place.
enrol	enrol-exactly-three-places	800	600	15	200,150 600,150 400,450 215,165	30,11 27,11 13,1 14,26	010000000f000000200300005802000004000000b900000087000000490200008700000081010000b3010000c800000096000000

# Three clicks in a row, each r + 1 = 16 pixels from the last on x, then the first one
# again. r + 1 apart is another place, so that is three places and it passes.
enrol	enrol-r-plus-one-apart-is-another-place	800	600	15	200,150 216,150 232,150 200,150	30,11 15,11 0,11 30,11	010000000f000000200300005802000004000000b900000087000000c900000087000000d900000087000000b900000087000000

# The second click is r + 1 = 16 pixels from the first on x and level with it on y. One
# axis is enough to make two clicks different places. With the third click, far from
# both, that is three places. The fourth is the first again.
enrol	enrol-r-plus-one-apart-on-x-alone	800	600	15	200,150 216,150 600,450 200,150	30,11 15,11 27,1 30,11	010000000f000000200300005802000004000000b900000087000000c90000008700000049020000b3010000b900000087000000

# The same on the other axis: the second click is r + 1 = 16 pixels below the first and
# has its x. Three places.
enrol	enrol-r-plus-one-apart-on-y-alone	800	600	15	200,150 200,166 600,450 200,150	30,11 30,27 27,1 30,11	010000000f000000200300005802000004000000b900000087000000b90000009700000049020000b3010000b900000087000000

# A chain. With r = 10, b = 108,100 is the same place as a = 100,100 and as c = 116,100,
# being 8 pixels from each. a and c are 16 apart, so they are different places. a, c and
# the far click are different places pair by pair: three, and it passes.
enrol	enrol-chain-with-a-far-click-three-places	400	300	10	100,100 108,100 116,100 300,200	6,6 14,6 1,6 17,1	010000000a000000900100002c010000040000005a0000005a000000620000005a0000006a0000005a00000022010000be000000

# The four clicks of enrol-chain-with-a-far-click-three-places with the middle of the
# chain first. The rule that E3 replaced went through the clicks in order. It kept b,
# passed over a and c as within r of b, and refused this with two places. a, c and the
# far click are three different places in any order, so it passes.
enrol	enrol-chain-middle-click-first	400	300	10	108,100 100,100 116,100 300,200	14,6 6,6 1,6 17,1	010000000a000000900100002c01000004000000620000005a0000005a0000005a0000006a0000005a00000022010000be000000

# The same four clicks, the far click first and then the middle of the chain. The
# replaced rule refused this order too. It passes.
enrol	enrol-chain-far-click-first	400	300	10	300,200 108,100 100,100 116,100	17,1 14,6 6,6 1,6	010000000a000000900100002c0100000400000022010000be000000620000005a0000005a0000005a0000006a0000005a000000

# The same four clicks, the two ends of the chain last. The replaced rule refused this
# order as well. The three different places are the last three clicks.
enrol	enrol-chain-ends-last	400	300	10	108,100 300,200 116,100 100,100	14,6 17,1 1,6 6,6	010000000a000000900100002c01000004000000620000005a00000022010000be0000006a0000005a0000005a0000005a000000

# The same four clicks in an order the replaced rule passed, with three places. The
# three different places are the first, second and fourth clicks.
enrol	enrol-chain-far-click-second	400	300	10	100,100 300,200 108,100 116,100	6,6 17,1 14,6 1,6	010000000a000000900100002c010000040000005a0000005a00000022010000be000000620000005a0000006a0000005a000000

# The same four clicks, the middle of the chain last. The replaced rule passed this one
# too. Six orders of these clicks are here and all six pass.
enrol	enrol-chain-middle-click-last	400	300	10	116,100 100,100 300,200 108,100	1,6 6,6 17,1 14,6	010000000a000000900100002c010000040000006a0000005a0000005a0000005a00000022010000be000000620000005a000000

# Not a chain in a row this time. With r = 10 the first click, 100,110, is the same place
# as the second, 110,100, and as the third, 110,120: it is 10 from each on both axes. The
# second and third are 20 apart on y, so they are different places, and the fourth is far
# from all. The last three clicks are three different places. The replaced rule kept the
# first click, passed over the next two, and refused with two places. It would refuse
# them just the same were the clicks sorted by x first, since the first click has the
# smallest x: putting the clicks in some fixed order does not make the old count right.
enrol	enrol-leftmost-click-is-near-two-that-are-apart	400	300	10	100,110 110,100 110,120 130,110	6,16 16,6 16,5 15,16	010000000a000000900100002c010000040000005a00000064000000640000005a000000640000006e0000007800000064000000

# The same from the other side. The first click, 130,110, has the largest x and is the
# same place as the second, 120,100, and as the third, 120,120. The last three clicks are
# three different places.
enrol	enrol-rightmost-click-is-near-two-that-are-apart	400	300	10	130,110 120,100 120,120 100,110	15,16 5,6 5,5 6,16	010000000a000000900100002c0100000400000078000000640000006e0000005a0000006e0000006e0000005a00000064000000

# The same turned on its side. The first click, 110,100, has the smallest y and is the
# same place as the second, 100,110, and as the third, 120,110, which are 20 apart on x.
# The last three clicks are three different places.
enrol	enrol-topmost-click-is-near-two-that-are-apart	400	300	10	110,100 100,110 120,110 110,130	16,6 6,16 5,16 16,15	010000000a000000900100002c01000004000000640000005a0000005a000000640000006e000000640000006400000078000000

# And from below. The first click, 110,130, has the largest y and is the same place as
# the second, 100,120, and as the third, 120,120. The last three clicks are three
# different places.
enrol	enrol-bottommost-click-is-near-two-that-are-apart	400	300	10	110,130 100,120 120,120 110,100	16,15 6,5 5,5 16,6	010000000a000000900100002c0100000400000064000000780000005a0000006e0000006e0000006e000000640000005a000000

# Five clicks. The chain of enrol-chain-with-a-far-click-three-places with its middle,
# b = 108,100, clicked first and last. The rule that E3 replaced went through the clicks
# in order and kept b and the far click and no other. Going through them backwards it
# kept the same two. Two places both ways, and it refused. a = 100,100, the far click and
# c = 116,100 are three different places, so this passes.
enrol	enrol-five-clicks-old-count-two-forwards-and-backwards	400	300	10	108,100 100,100 300,200 116,100 108,100	14,6 6,6 17,1 1,6 14,6	010000000a000000900100002c01000005000000620000005a0000005a0000005a00000022010000be0000006a0000005a000000620000005a000000

# The smallest image on which that happens: 3 by 3 with r = 1, where two pixels are
# different places only when they are 2 apart on an axis. 0,0 and 2,0 and 1,2 are three
# different places. The replaced rule kept 0,0 and 2,1 going forwards, and 1,2 and 1,0
# going backwards.
enrol	enrol-five-clicks-three-by-three-old-count-two-forwards-and-backwards	3	3	1	0,0 2,1 2,0 1,0 1,2	2,2 1,0 1,2 0,2 0,1	0100000001000000030000000300000005000000ffffffffffffffff010000000000000001000000ffffffff00000000ffffffff0000000001000000

# Six clicks with r = 10. 0,0 and 20,0 and 10,20 are three different places. Each of the
# other three is a different place from one of those and the same place as every other
# click: 15,10 is a different place from 0,0 only, 5,10 from 20,0 only and 10,0 from
# 10,20 only. Here each of the three different places is followed by the click that is
# a different place from it alone. The replaced rule counted two places from whichever
# click it started, going on round the list as far as the click before that one. It
# counted two going backwards from the last click as well.
enrol	enrol-six-clicks-old-count-two-from-every-start	400	300	10	0,0 15,10 20,0 5,10 10,20 10,0	11,11 5,0 10,11 16,0 0,10 0,11	010000000a000000900100002c01000006000000f6fffffff6ffffff05000000000000000a000000f6fffffffbffffff00000000000000000a00000000000000f6ffffff

# The same six clicks in another order, the three different places last. The replaced
# rule counted two places with whichever click was put first and the other five left
# in this order.
enrol	enrol-six-clicks-old-count-two-with-each-click-first	400	300	10	15,10 5,10 10,0 0,0 20,0 10,20	5,0 16,0 0,11 11,11 10,11 0,10	010000000a000000900100002c010000060000000500000000000000fbffffff0000000000000000f6fffffff6fffffff6ffffff0a000000f6ffffff000000000a000000

# Six clicks on the 3 by 3 image with r = 1. 0,0 and 2,0 and 1,2 are three different
# places. The replaced rule counted two places from whichever click it started, going
# on round the list.
enrol	enrol-six-clicks-three-by-three-old-count-two-from-every-start	3	3	1	0,0 2,1 2,0 0,1 1,2 1,0	2,2 1,0 1,2 2,0 0,1 0,2	0100000001000000030000000300000006000000ffffffffffffffff010000000000000001000000ffffffffffffffff00000000000000000100000000000000ffffffff

# Six clicks on the 3 by 3 image with r = 1. 0,0 and 2,0 and 1,2 are three different
# places. The replaced rule counted two places with whichever click was put first and
# the other five left in this order.
enrol	enrol-six-clicks-three-by-three-old-count-two-with-each-click-first	3	3	1	1,0 0,1 0,0 2,1 2,0 1,2	0,2 2,0 2,2 1,0 1,2 0,1	010000000100000003000000030000000600000000000000ffffffffffffffff00000000ffffffffffffffff010000000000000001000000ffffffff0000000001000000

# Eight clicks with r = 10. 1,1 and 1,12 and 12,6 are three different places. Sorting
# the clicks first does not mend the replaced rule, whichever way they are sorted. By x
# upwards it kept 0,6 and 12,6. By x downwards it kept 13,6 and 2,6. By y upwards it kept
# 6,0 and 1,12. By y downwards it kept 6,13 and 1,1. Two places each time. The clicks are
# given here sorted by x upwards, so that is also what it counted forwards.
enrol	enrol-eight-clicks-old-count-two-after-any-sort	400	300	10	0,6 1,1 1,12 2,6 6,0 6,13 12,6 13,6	11,17 12,12 12,2 13,17 17,11 17,3 2,17 3,17	010000000a000000900100002c01000008000000f6fffffffcfffffff7fffffff7fffffff7ffffff02000000f8fffffffcfffffffcfffffff6fffffffcffffff0300000002000000fcffffff03000000fcffffff

# The same eight clicks in another order. Sorted, they are what they were. In this
# order the replaced rule also counted two places from whichever click it started,
# going on round the list, and two going backwards from the last click.
enrol	enrol-eight-clicks-old-count-two-after-any-sort-and-from-every-start	400	300	10	0,6 1,1 6,13 1,12 2,6 6,0 12,6 13,6	11,17 12,12 17,3 12,2 13,17 17,11 2,17 3,17	010000000a000000900100002c01000008000000f6fffffffcfffffff7fffffff7fffffffcffffff03000000f7ffffff02000000f8fffffffcfffffffcfffffff6ffffff02000000fcffffff03000000fcffffff

# The same eight clicks in a third order. In this one the replaced rule counted two
# places with whichever click was put first and the other seven left in this order,
# and two going backwards from the last click.
enrol	enrol-eight-clicks-old-count-two-after-any-sort-and-with-each-click-first	400	300	10	0,6 6,0 1,1 6,13 1,12 2,6 12,6 13,6	11,17 17,11 12,12 17,3 12,2 13,17 2,17 3,17	010000000a000000900100002c01000008000000f6fffffffcfffffffcfffffff6fffffff7fffffff7fffffffcffffff03000000f7ffffff02000000f8fffffffcffffff02000000fcffffff03000000fcffffff

# Fifteen clicks on the eight pixels of enrol-eight-clicks-old-count-two-after-any-sort,
# some of them clicked two, three or four times. 1,1 and 1,12 and 12,6 are still three
# different places. On this one list the replaced rule counted two places in every way
# that is tried above: forwards, backwards, from every starting click going round the
# list in either direction, with each click put first and the others left in this
# order or in this order backwards, and after each of the four sorts.
enrol	enrol-fifteen-clicks-old-count-two-every-way	400	300	10	6,0 0,6 6,13 1,1 6,13 6,0 1,12 6,0 0,6 12,6 0,6 13,6 2,6 6,13 6,0	17,11 11,17 17,3 12,12 17,3 17,11 12,2 17,11 11,17 2,17 11,17 3,17 13,17 17,3 17,11	010000000a000000900100002c0100000f000000fcfffffff6fffffff6fffffffcfffffffcffffff03000000f7fffffff7fffffffcffffff03000000fcfffffff6fffffff7ffffff02000000fcfffffff6fffffff6fffffffcffffff02000000fcfffffff6fffffffcffffff03000000fcfffffff8fffffffcfffffffcffffff03000000fcfffffff6ffffff

# Sixteen clicks and exactly three places, with r = 15. Six clicks lie from 200 to 215 on
# x and 150 to 165 on y, five from 600 to 615 and 150 to 165, and five from 400 to 415 and
# 450 to 465, some of them on one pixel. Two clicks in one such square are at most r apart
# on both axes, so each square is one place. No four of the sixteen are different places
# pair by pair, and three is enough.
enrol	enrol-sixteen-clicks-in-three-places	800	600	15	200,150 600,150 400,450 215,165 615,165 415,465 200,165 600,150 400,450 215,150 608,158 407,457 207,157 615,150 400,465 200,150	30,11 27,11 13,1 14,26 11,26 28,16 30,26 27,11 13,1 14,11 4,19 20,8 6,18 11,11 13,16 30,11	010000000f000000200300005802000010000000b900000087000000490200008700000081010000b3010000c800000096000000580200009600000090010000c2010000b900000096000000490200008700000081010000b3010000c800000087000000510200008f00000088010000ba010000c00000008e000000580200008700000081010000c2010000b900000087000000

# Sixteen clicks. The first fourteen are one place, all from 200 to 215 on x and 150 to
# 165 on y. The fifteenth is a second place and the sixteenth a third. Three different
# places are found only by going as far as the last two clicks.
enrol	enrol-sixteen-clicks-third-place-is-the-last-click	800	600	15	200,150 200,150 215,165 200,150 215,150 200,165 207,157 200,150 215,165 200,150 200,150 208,158 200,150 215,150 600,150 400,450	30,11 30,11 14,26 30,11 14,11 30,26 6,18 30,11 14,26 30,11 30,11 7,19 30,11 14,11 27,11 13,1	010000000f000000200300005802000010000000b900000087000000b900000087000000c800000096000000b900000087000000c800000087000000b900000096000000c00000008e000000b900000087000000c800000096000000b900000087000000b900000087000000c10000008f000000b900000087000000c800000087000000490200008700000081010000b3010000

# With r = 15 and s = 31, cut the image into cells 31 wide starting at 0. All four clicks
# are in the first cell, which runs from 0 to 30 on both axes. A place is not a cell:
# every two of these clicks are 30 apart on one axis or on both, more than r, so they are
# four different places.
enrol	enrol-four-places-in-one-cell	800	600	15	0,0 30,0 0,30 30,30	16,16 15,16 16,15 15,15	010000000f000000200300005802000004000000f1fffffff1ffffff0f000000f1fffffff1ffffff0f0000000f0000000f000000

# The largest r, 65535, on the largest image. The first three clicks are r + 1 = 65536
# apart, the first two on x, the first and third on y, the second and third on both. They
# are three different places. The fourth is within 65535 of each of them on both axes, so
# it is the same place as each and no fourth place.
enrol	enrol-largest-r-three-places-r-plus-one-apart	16777216	16777216	65535	0,0 65536,0 0,65536 65535,65535	65536,65536 1,65536 65536,1 0,0	01000000ffff00000000000100000001040000000100ffff0100ffff010000000100ffff0100ffff010000000000000000000000

# Every click has the same x. Two clicks are one place only when they are within r on BOTH
# axes, so three clicks far apart on y are three places.
enrol	enrol-three-places-in-one-column	400	300	10	200,20 200,150 200,280 200,20	1,10 1,14 1,18 1,10	010000000a000000900100002c01000004000000be0000000a000000be0000008c000000be0000000e010000be0000000a000000

# A click at x = 2 with r = 9 and s = 19. Its corner is -7 and its offset is
# mod(-7, 19) = 12. Division that rounds toward zero gives -7 for the offset.
enrol	enrol-x-2-r-9	100	100	9	2,2 50,2 2,50 97,97	12,12 3,12 12,3 12,12	0100000009000000640000006400000004000000f9fffffff9ffffff29000000f9fffffff9ffffff290000005800000058000000

# An image 1 pixel wide. Every x is 0, every corner of x is -3 and every offset of x is 4.
enrol	enrol-one-pixel-wide-image	1	100	3	0,0 0,50 0,99 0,25	4,4 4,5 4,5 4,1	0100000003000000010000006400000004000000fdfffffffdfffffffdffffff2f000000fdffffff60000000fdffffff16000000

# An image 1 pixel high. Every y is 0, every corner of y is -3 and every offset of y is 4.
enrol	enrol-one-pixel-high-image	100	1	3	0,0 50,0 99,0 25,0	4,4 5,4 5,4 1,4	0100000003000000640000000100000004000000fdfffffffdffffff2f000000fdffffff60000000fdffffff16000000fdffffff

# The smallest image that can be enrolled: three pixels, r = 0, each pixel a place.
enrol	enrol-three-pixel-image	3	1	0	0,0 1,0 2,0 0,0	0,0 0,0 0,0 0,0	01000000000000000300000001000000040000000000000000000000010000000000000002000000000000000000000000000000

# The clicks of the worked example given again.
# The same encoding as enrol-worked-example.
locate	locate-same-clicks	1920	1080	19	960,540 700,400 1200,300 500,800 1400,650	5,14 18,30 11,8 13,1 16,7	0100000013000000800700003804000005000000ad03000009020000a90200007d0100009d04000019010000e10100000d0300006505000077020000

# Every click 19 pixels to the right of where it was enrolled.
# The same encoding as enrol-worked-example.
locate	locate-every-click-plus-r-on-x	1920	1080	19	979,540 719,400 1219,300 519,800 1419,650	5,14 18,30 11,8 13,1 16,7	0100000013000000800700003804000005000000ad03000009020000a90200007d0100009d04000019010000e10100000d0300006505000077020000

# Every click 19 pixels to the left.
# The same encoding as enrol-worked-example.
locate	locate-every-click-minus-r-on-x	1920	1080	19	941,540 681,400 1181,300 481,800 1381,650	5,14 18,30 11,8 13,1 16,7	0100000013000000800700003804000005000000ad03000009020000a90200007d0100009d04000019010000e10100000d0300006505000077020000

# Every click 19 pixels down.
# The same encoding as enrol-worked-example.
locate	locate-every-click-plus-r-on-y	1920	1080	19	960,559 700,419 1200,319 500,819 1400,669	5,14 18,30 11,8 13,1 16,7	0100000013000000800700003804000005000000ad03000009020000a90200007d0100009d04000019010000e10100000d0300006505000077020000

# Every click 19 pixels up.
# The same encoding as enrol-worked-example.
locate	locate-every-click-minus-r-on-y	1920	1080	19	960,521 700,381 1200,281 500,781 1400,631	5,14 18,30 11,8 13,1 16,7	0100000013000000800700003804000005000000ad03000009020000a90200007d0100009d04000019010000e10100000d0300006505000077020000

# Every click 19 pixels right and 19 pixels up, the far corner of its square.
# The same encoding as enrol-worked-example.
locate	locate-every-click-r-off-on-both-axes	1920	1080	19	979,521 719,381 1219,281 519,781 1419,631	5,14 18,30 11,8 13,1 16,7	0100000013000000800700003804000005000000ad03000009020000a90200007d0100009d04000019010000e10100000d0300006505000077020000

# The third click 20 pixels to the right, one more than r: the next cell.
# Against enrol-worked-example, and a different encoding.
# Bytes 36 to 39 (click 3, corner of x): c4 04 00 00 = 1220, enrolled as 9d 04 00 00 = 1181.
# No other byte differs.
locate	locate-one-click-r-plus-one-on-x	1920	1080	19	960,540 700,400 1220,300 500,800 1400,650	5,14 18,30 11,8 13,1 16,7	0100000013000000800700003804000005000000ad03000009020000a90200007d010000c404000019010000e10100000d0300006505000077020000

# The fourth click 20 pixels up, one more than r: the cell above.
# Against enrol-worked-example, and a different encoding.
# Bytes 48 to 51 (click 4, corner of y): e6 02 00 00 = 742, enrolled as 0d 03 00 00 = 781.
# No other byte differs.
locate	locate-one-click-minus-r-minus-one-on-y	1920	1080	19	960,540 700,400 1200,300 500,780 1400,650	5,14 18,30 11,8 13,1 16,7	0100000013000000800700003804000005000000ad03000009020000a90200007d0100009d04000019010000e1010000e60200006505000077020000

# The first two clicks in each other's place. The order is part of the encoding.
# Against enrol-worked-example, and a different encoding.
# Bytes 20 to 23 (click 1, corner of x): 9c 02 00 00 = 668, enrolled as ad 03 00 00 = 941.
# Bytes 24 to 27 (click 1, corner of y): 6d 01 00 00 = 365, enrolled as 09 02 00 00 = 521.
# Bytes 28 to 31 (click 2, corner of x): ba 03 00 00 = 954, enrolled as a9 02 00 00 = 681.
# Bytes 32 to 35 (click 2, corner of y): 19 02 00 00 = 537, enrolled as 7d 01 00 00 = 381.
# No other byte differs.
locate	locate-two-clicks-swapped	1920	1080	19	700,400 960,540 1200,300 500,800 1400,650	5,14 18,30 11,8 13,1 16,7	01000000130000008007000038040000050000009c0200006d010000ba030000190200009d04000019010000e10100000d0300006505000077020000

# The first click at x = -1. It is not refused: both its corners are 00 00 00 80,
# the y one too, though y is inside.
# Against enrol-worked-example, and a different encoding.
# Bytes 20 to 23 (click 1, corner of x): 00 00 00 80 = -2147483648, enrolled as ad 03 00 00 = 941.
# Bytes 24 to 27 (click 1, corner of y): 00 00 00 80 = -2147483648, enrolled as 09 02 00 00 = 521.
# No other byte differs.
locate	locate-click-outside-on-the-left	1920	1080	19	-1,540 700,400 1200,300 500,800 1400,650	5,14 18,30 11,8 13,1 16,7	01000000130000008007000038040000050000000000008000000080a90200007d0100009d04000019010000e10100000d0300006505000077020000

# The second click at x = 1920, the width.
# Against enrol-worked-example, and a different encoding.
# Bytes 28 to 31 (click 2, corner of x): 00 00 00 80 = -2147483648, enrolled as a9 02 00 00 = 681.
# Bytes 32 to 35 (click 2, corner of y): 00 00 00 80 = -2147483648, enrolled as 7d 01 00 00 = 381.
# No other byte differs.
locate	locate-click-outside-on-the-right	1920	1080	19	960,540 1920,400 1200,300 500,800 1400,650	5,14 18,30 11,8 13,1 16,7	0100000013000000800700003804000005000000ad0300000902000000000080000000809d04000019010000e10100000d0300006505000077020000

# The third click at y = -1.
# Against enrol-worked-example, and a different encoding.
# Bytes 36 to 39 (click 3, corner of x): 00 00 00 80 = -2147483648, enrolled as 9d 04 00 00 = 1181.
# Bytes 40 to 43 (click 3, corner of y): 00 00 00 80 = -2147483648, enrolled as 19 01 00 00 = 281.
# No other byte differs.
locate	locate-click-outside-above	1920	1080	19	960,540 700,400 1200,-1 500,800 1400,650	5,14 18,30 11,8 13,1 16,7	0100000013000000800700003804000005000000ad03000009020000a90200007d0100000000008000000080e10100000d0300006505000077020000

# The fifth and last click at y = 1080, the height.
# Against enrol-worked-example, and a different encoding.
# Bytes 52 to 55 (click 5, corner of x): 00 00 00 80 = -2147483648, enrolled as 65 05 00 00 = 1381.
# Bytes 56 to 59 (click 5, corner of y): 00 00 00 80 = -2147483648, enrolled as 77 02 00 00 = 631.
# No other byte differs.
locate	locate-click-outside-below	1920	1080	19	960,540 700,400 1200,300 500,800 1400,1080	5,14 18,30 11,8 13,1 16,7	0100000013000000800700003804000005000000ad03000009020000a90200007d0100009d04000019010000e10100000d0300000000008000000080

# All five clicks outside, one on each side and one past a corner.
# Against enrol-worked-example, and a different encoding.
# Bytes 20 to 23 (click 1, corner of x): 00 00 00 80 = -2147483648, enrolled as ad 03 00 00 = 941.
# Bytes 24 to 27 (click 1, corner of y): 00 00 00 80 = -2147483648, enrolled as 09 02 00 00 = 521.
# Bytes 28 to 31 (click 2, corner of x): 00 00 00 80 = -2147483648, enrolled as a9 02 00 00 = 681.
# Bytes 32 to 35 (click 2, corner of y): 00 00 00 80 = -2147483648, enrolled as 7d 01 00 00 = 381.
# Bytes 36 to 39 (click 3, corner of x): 00 00 00 80 = -2147483648, enrolled as 9d 04 00 00 = 1181.
# Bytes 40 to 43 (click 3, corner of y): 00 00 00 80 = -2147483648, enrolled as 19 01 00 00 = 281.
# Bytes 44 to 47 (click 4, corner of x): 00 00 00 80 = -2147483648, enrolled as e1 01 00 00 = 481.
# Bytes 48 to 51 (click 4, corner of y): 00 00 00 80 = -2147483648, enrolled as 0d 03 00 00 = 781.
# Bytes 52 to 55 (click 5, corner of x): 00 00 00 80 = -2147483648, enrolled as 65 05 00 00 = 1381.
# Bytes 56 to 59 (click 5, corner of y): 00 00 00 80 = -2147483648, enrolled as 77 02 00 00 = 631.
# No other byte differs.
locate	locate-every-click-outside	1920	1080	19	-1,540 1920,400 1200,-1 500,1080 1920,1080	5,14 18,30 11,8 13,1 16,7	010000001300000080070000380400000500000000000080000000800000008000000080000000800000008000000080000000800000008000000080

# Two clicks as far outside as a signed 32 bit number goes. Nothing may be worked out
# from them, since x - d would not fit 32 bits.
# Against enrol-worked-example, and a different encoding.
# Bytes 20 to 23 (click 1, corner of x): 00 00 00 80 = -2147483648, enrolled as ad 03 00 00 = 941.
# Bytes 24 to 27 (click 1, corner of y): 00 00 00 80 = -2147483648, enrolled as 09 02 00 00 = 521.
# Bytes 28 to 31 (click 2, corner of x): 00 00 00 80 = -2147483648, enrolled as a9 02 00 00 = 681.
# Bytes 32 to 35 (click 2, corner of y): 00 00 00 80 = -2147483648, enrolled as 7d 01 00 00 = 381.
# No other byte differs.
locate	locate-clicks-far-outside	1920	1080	19	2147483647,2147483647 -2147483648,-2147483648 1200,300 500,800 1400,650	5,14 18,30 11,8 13,1 16,7	0100000013000000800700003804000005000000000000800000008000000080000000809d04000019010000e10100000d0300006505000077020000

# The first click at 9007199254740992 on both axes and the second at -9007199254740992,
# as far out as a click coordinate goes. They are outside the image like any other.
# Against enrol-worked-example, and a different encoding.
# Bytes 20 to 23 (click 1, corner of x): 00 00 00 80 = -2147483648, enrolled as ad 03 00 00 = 941.
# Bytes 24 to 27 (click 1, corner of y): 00 00 00 80 = -2147483648, enrolled as 09 02 00 00 = 521.
# Bytes 28 to 31 (click 2, corner of x): 00 00 00 80 = -2147483648, enrolled as a9 02 00 00 = 681.
# Bytes 32 to 35 (click 2, corner of y): 00 00 00 80 = -2147483648, enrolled as 7d 01 00 00 = 381.
# No other byte differs.
locate	locate-clicks-at-the-largest-coordinates	1920	1080	19	9007199254740992,9007199254740992 -9007199254740992,-9007199254740992 1200,300 500,800 1400,650	5,14 18,30 11,8 13,1 16,7	0100000013000000800700003804000005000000000000800000008000000080000000809d04000019010000e10100000d0300006505000077020000

# The first click is the enrolled 960,540 with 4294967296 added on each axis, and the
# second is the enrolled 700,400 with 4294967296 taken away. Kept in 32 bits they would
# be the enrolled clicks and would match. They are outside the image, whatever their
# size, so nothing is worked out from them.
# Against enrol-worked-example, and a different encoding.
# Bytes 20 to 23 (click 1, corner of x): 00 00 00 80 = -2147483648, enrolled as ad 03 00 00 = 941.
# Bytes 24 to 27 (click 1, corner of y): 00 00 00 80 = -2147483648, enrolled as 09 02 00 00 = 521.
# Bytes 28 to 31 (click 2, corner of x): 00 00 00 80 = -2147483648, enrolled as a9 02 00 00 = 681.
# Bytes 32 to 35 (click 2, corner of y): 00 00 00 80 = -2147483648, enrolled as 7d 01 00 00 = 381.
# No other byte differs.
locate	locate-clicks-on-the-enrolled-ones-if-cut-to-32-bits	1920	1080	19	4294968256,4294967836 -4294966596,-4294966896 1200,300 500,800 1400,650	5,14 18,30 11,8 13,1 16,7	0100000013000000800700003804000005000000000000800000008000000080000000809d04000019010000e10100000d0300006505000077020000

# The first click at 4,13, far from where it was enrolled, and its stored offsets are
# 5,14. On each axis x - d is -1, the first number that division rounding toward zero
# gets wrong: fdiv(-1, 39) = -1, so the corners are -39 + 5 = -34 and -39 + 14 = -25.
# Against enrol-worked-example, and a different encoding.
# Bytes 20 to 23 (click 1, corner of x): de ff ff ff = -34, enrolled as ad 03 00 00 = 941.
# Bytes 24 to 27 (click 1, corner of y): e7 ff ff ff = -25, enrolled as 09 02 00 00 = 521.
# No other byte differs.
locate	locate-click-one-pixel-before-its-stored-offset	1920	1080	19	4,13 700,400 1200,300 500,800 1400,650	5,14 18,30 11,8 13,1 16,7	0100000013000000800700003804000005000000deffffffe7ffffffa90200007d0100009d04000019010000e10100000d0300006505000077020000

# The first click at 5,14, the same as its stored offsets, so x - d is 0 on each axis
# and the corners are 5 and 14.
# Against enrol-worked-example, and a different encoding.
# Bytes 20 to 23 (click 1, corner of x): 05 00 00 00 = 5, enrolled as ad 03 00 00 = 941.
# Bytes 24 to 27 (click 1, corner of y): 0e 00 00 00 = 14, enrolled as 09 02 00 00 = 521.
# No other byte differs.
locate	locate-click-at-its-stored-offset	1920	1080	19	5,14 700,400 1200,300 500,800 1400,650	5,14 18,30 11,8 13,1 16,7	0100000013000000800700003804000005000000050000000e000000a90200007d0100009d04000019010000e10100000d0300006505000077020000

# All five clicks on the pixel of the first. That is one place, and locating has no
# rule about places: it is encoded, not refused.
# Against enrol-worked-example, and a different encoding.
# Bytes 28 to 31 (click 2, corner of x): ba 03 00 00 = 954, enrolled as a9 02 00 00 = 681.
# Bytes 32 to 35 (click 2, corner of y): 19 02 00 00 = 537, enrolled as 7d 01 00 00 = 381.
# Bytes 36 to 39 (click 3, corner of x): b3 03 00 00 = 947, enrolled as 9d 04 00 00 = 1181.
# Bytes 40 to 43 (click 3, corner of y): 03 02 00 00 = 515, enrolled as 19 01 00 00 = 281.
# Bytes 44 to 47 (click 4, corner of x): b5 03 00 00 = 949, enrolled as e1 01 00 00 = 481.
# Bytes 48 to 51 (click 4, corner of y): fc 01 00 00 = 508, enrolled as 0d 03 00 00 = 781.
# Bytes 52 to 55 (click 5, corner of x): b8 03 00 00 = 952, enrolled as 65 05 00 00 = 1381.
# Bytes 56 to 59 (click 5, corner of y): 02 02 00 00 = 514, enrolled as 77 02 00 00 = 631.
# No other byte differs.
locate	locate-every-click-on-one-pixel	1920	1080	19	960,540 960,540 960,540 960,540 960,540	5,14 18,30 11,8 13,1 16,7	0100000013000000800700003804000005000000ad03000009020000ba03000019020000b303000003020000b5030000fc010000b803000002020000

# The eight clicks of the corners and edges given again.
# The same encoding as enrol-corners-and-edges.
locate	locate-corners-and-edges-same-clicks	640	480	12	0,0 639,0 0,479 639,479 320,0 639,240 320,479 0,240	13,13 2,13 13,17 2,17 8,13 2,3 8,17 13,3	010000000c00000080020000e001000008000000f4fffffff4ffffff73020000f4fffffff4ffffffd301000073020000d301000034010000f4ffffff73020000e400000034010000d3010000f4ffffffe4000000

# The click enrolled at 0,0, whose corners are -12,-12, given at 12,12. That is r inward
# on both axes and still its cell: fdiv(12 - 13, 25) = -1, and -25 + 13 = -12.
# The same encoding as enrol-corners-and-edges.
locate	locate-edge-click-moved-inward-by-r	640	480	12	12,12 639,0 0,479 639,479 320,0 639,240 320,479 0,240	13,13 2,13 13,17 2,17 8,13 2,3 8,17 13,3	010000000c00000080020000e001000008000000f4fffffff4ffffff73020000f4fffffff4ffffffd301000073020000d301000034010000f4ffffff73020000e400000034010000d3010000f4ffffffe4000000

# All eight clicks 12 pixels inward from the edges they sit on.
# The same encoding as enrol-corners-and-edges.
locate	locate-every-edge-click-moved-inward-by-r	640	480	12	12,12 627,12 12,467 627,467 320,12 627,240 320,467 12,240	13,13 2,13 13,17 2,17 8,13 2,3 8,17 13,3	010000000c00000080020000e001000008000000f4fffffff4ffffff73020000f4fffffff4ffffffd301000073020000d301000034010000f4ffffff73020000e400000034010000d3010000f4ffffffe4000000

# The click enrolled at 0,0 given at 13,0, one more than r inward on x.
# Against enrol-corners-and-edges, and a different encoding.
# Bytes 20 to 23 (click 1, corner of x): 0d 00 00 00 = 13, enrolled as f4 ff ff ff = -12.
# No other byte differs.
locate	locate-edge-click-moved-inward-by-r-plus-one	640	480	12	13,0 639,0 0,479 639,479 320,0 639,240 320,479 0,240	13,13 2,13 13,17 2,17 8,13 2,3 8,17 13,3	010000000c00000080020000e0010000080000000d000000f4ffffff73020000f4fffffff4ffffffd301000073020000d301000034010000f4ffffff73020000e400000034010000d3010000f4ffffffe4000000

# r = 0: only the very pixel matches.
# The same encoding as enrol-r-0.
locate	locate-r-0-same-clicks	100	100	0	0,0 99,99 50,50 0,99 99,0	0,0 0,0 0,0 0,0 0,0	010000000000000064000000640000000500000000000000000000006300000063000000320000003200000000000000630000006300000000000000

# r = 0 and the third click one pixel to the right.
# Against enrol-r-0, and a different encoding.
# Bytes 36 to 39 (click 3, corner of x): 33 00 00 00 = 51, enrolled as 32 00 00 00 = 50.
# No other byte differs.
locate	locate-r-0-one-pixel-off	100	100	0	0,0 99,99 51,50 0,99 99,0	0,0 0,0 0,0 0,0 0,0	010000000000000064000000640000000500000000000000000000006300000063000000330000003200000000000000630000006300000000000000

# The largest image and the largest r, the same clicks.
# The same encoding as enrol-largest-image-largest-r.
locate	locate-largest-image-same-clicks	16777216	16777216	65535	0,0 16777215,0 0,16777215 16777215,16777215 8388608,8388608	65536,65536 65663,65536 65536,65663 65663,65663 65600,65600	01000000ffff00000000000100000001050000000100ffff0100ffff0000ff000100ffff0100ffff0000ff000000ff000000ff0001007f0001007f00

# The largest image, every click 65535 pixels from where it was enrolled, inward for
# the four in the corners.
# The same encoding as enrol-largest-image-largest-r.
locate	locate-largest-image-clicks-moved-by-r	16777216	16777216	65535	65535,65535 16711680,65535 65535,16711680 16711680,16711680 8454143,8323073	65536,65536 65663,65536 65536,65663 65663,65663 65600,65600	01000000ffff00000000000100000001050000000100ffff0100ffff0000ff000100ffff0100ffff0000ff000000ff000000ff0001007f0001007f00

# The largest image, the first click at 65536,0: one more than r from 0 on x.
# Against enrol-largest-image-largest-r, and a different encoding.
# Bytes 20 to 23 (click 1, corner of x): 00 00 01 00 = 65536, enrolled as 01 00 ff ff = -65535.
# No other byte differs.
locate	locate-largest-image-one-click-r-plus-one-off	16777216	16777216	65535	65536,0 16777215,0 0,16777215 16777215,16777215 8388608,8388608	65536,65536 65663,65536 65536,65663 65663,65663 65600,65600	01000000ffff0000000000010000000105000000000001000100ffff0000ff000100ffff0100ffff0000ff000000ff000000ff0001007f0001007f00

# Four clicks, the fewest.
# The same encoding as enrol-four-clicks.
locate	locate-four-clicks-same-clicks	800	600	8	100,100 700,100 100,500 700,500	7,7 12,7 7,16 12,16	01000000080000002003000058020000040000005c0000005c000000b40200005c0000005c000000ec010000b4020000ec010000

# Sixteen clicks, the most.
# The same encoding as enrol-sixteen-clicks.
locate	locate-sixteen-clicks-same-clicks	1024	768	10	100,90 350,90 600,90 850,90 100,280 350,280 600,280 850,280 100,470 350,470 600,470 850,470 100,660 350,660 600,660 850,660	6,17 4,17 2,17 0,17 6,18 4,18 2,18 0,18 6,19 4,19 2,19 0,19 6,20 4,20 2,20 0,20	010000000a0000000004000000030000100000005a0000005000000054010000500000004e0200005000000048030000500000005a0000000e010000540100000e0100004e0200000e010000480300000e0100005a000000cc01000054010000cc0100004e020000cc01000048030000cc0100005a0000008a020000540100008a0200004e0200008a020000480300008a020000

# Sixteen clicks and only the last one wrong, by r + 1 = 11 on x.
# Against enrol-sixteen-clicks, and a different encoding.
# Bytes 140 to 143 (click 16, corner of x): 5d 03 00 00 = 861, enrolled as 48 03 00 00 = 840.
# No other byte differs.
locate	locate-sixteen-clicks-last-one-off	1024	768	10	100,90 350,90 600,90 850,90 100,280 350,280 600,280 850,280 100,470 350,470 600,470 850,470 100,660 350,660 600,660 861,660	6,17 4,17 2,17 0,17 6,18 4,18 2,18 0,18 6,19 4,19 2,19 0,19 6,20 4,20 2,20 0,20	010000000a0000000004000000030000100000005a0000005000000054010000500000004e0200005000000048030000500000005a0000000e010000540100000e0100004e0200000e010000480300000e0100005a000000cc01000054010000cc0100004e020000cc01000048030000cc0100005a0000008a020000540100008a0200004e0200008a0200005d0300008a020000

# The click at x = 2 with r = 9 given again: fdiv(2 - 12, 19) must be -1, and division
# that rounds toward zero gives 0 and the corner 12 for -7.
# The same encoding as enrol-x-2-r-9.
locate	locate-x-2-r-9-same-clicks	100	100	9	2,2 50,2 2,50 97,97	12,12 3,12 12,3 12,12	0100000009000000640000006400000004000000f9fffffff9ffffff29000000f9fffffff9ffffff290000005800000058000000

# The click enrolled at 2,2 given at 0,0, which is within r = 9.
# The same encoding as enrol-x-2-r-9.
locate	locate-x-2-r-9-moved-to-the-corner	100	100	9	0,0 50,2 2,50 97,97	12,12 3,12 12,3 12,12	0100000009000000640000006400000004000000f9fffffff9ffffff29000000f9fffffff9ffffff290000005800000058000000

# The image 1 pixel wide.
# The same encoding as enrol-one-pixel-wide-image.
locate	locate-one-pixel-wide-image-same-clicks	1	100	3	0,0 0,50 0,99 0,25	4,4 4,5 4,5 4,1	0100000003000000010000006400000004000000fdfffffffdfffffffdffffff2f000000fdffffff60000000fdffffff16000000

# The image 1 pixel high. A height of 1 is in range, and L0 does not refuse it.
# The same encoding as enrol-one-pixel-high-image.
locate	locate-one-pixel-high-image-same-clicks	100	1	3	0,0 50,0 99,0 25,0	4,4 5,4 5,4 1,4	0100000003000000640000000100000004000000fdfffffffdffffff2f000000fdffffff60000000fdffffff16000000fdffffff

# An image 800 by 1 with r = 0, so s = 1, and stored offsets that are all 0. Each
# corner is the click itself.
locate	locate-one-pixel-high-image-r-0	800	1	0	0,0 1,0 2,0 3,0	0,0 0,0 0,0 0,0	01000000000000002003000001000000040000000000000000000000010000000000000002000000000000000300000000000000

# The enrolment that clicked one place twice.
# The same encoding as enrol-same-place-twice-among-five.
locate	locate-same-place-twice-same-clicks	800	600	15	200,150 600,150 200,150 400,450 610,160	30,11 27,11 30,11 13,1 6,21	010000000f000000200300005802000005000000b9000000870000004902000087000000b90000008700000081010000b30100005302000091000000

# Stored offsets that no enrolment here gave, all of them 0. The corner is then the
# click rounded down to a whole number of cells.
locate	locate-stored-offsets-all-zero	1920	1080	19	960,540 700,400 1200,300 500,800 1400,650	0,0 0,0 0,0 0,0 0,0	0100000013000000800700003804000005000000a8030000fb01000097020000860100009204000011010000d40100000c0300005505000070020000

# Stored offsets of s - 1 = 38, the largest that L2 lets through, and a first click at
# 0,0. Its corners are -1,-1, which is ff ff ff ff twice.
locate	locate-stored-offsets-all-s-minus-one	1920	1080	19	0,0 700,400 1200,300 500,800 1400,650	38,38 38,38 38,38 38,38 38,38	0100000013000000800700003804000005000000ffffffffffffffff96020000850100009104000010010000d30100000b030000540500006f020000

# The largest r and stored offsets of s - 1 = 131070. A click at 0,0 has corners -1,-1
# and one at 16777215 has the corner 16777087.
locate	locate-largest-r-stored-offsets-all-s-minus-one	16777216	16777216	65535	0,0 16777215,16777215 0,16777215 16777215,0	131070,131070 131070,131070 131070,131070 131070,131070	01000000ffff0000000000010000000104000000ffffffffffffffff7fffff007fffff00ffffffff7fffff007fffff00ffffffff

# Three clicks, one too few.
refuse-enrol	refuse-enrol-three-clicks	800	600	8	100,100 700,100 100,500	-	E1

# Seventeen clicks, one too many.
refuse-enrol	refuse-enrol-seventeen-clicks	1024	768	10	100,90 350,90 600,90 850,90 100,280 350,280 600,280 850,280 100,470 350,470 600,470 850,470 100,660 350,660 600,660 850,660 500,400	-	E1

# No clicks at all. 0 is not from 4 to 16, and E1 refuses it like any other count.
# With no clicks there is none outside the image and there are no three places, but
# E1 comes before E2 and E3. The clicks field is a lone hyphen.
refuse-enrol	refuse-enrol-no-clicks	800	600	8	-	-	E1

# The first click at x = 800, the width. The last column is 799.
refuse-enrol	refuse-enrol-x-equal-to-width	800	600	8	800,100 700,100 100,500 700,500	-	E2

# The last click at y = 600, the height.
refuse-enrol	refuse-enrol-y-equal-to-height	800	600	8	100,100 700,100 100,500 700,600	-	E2

# The third click at x = -1.
refuse-enrol	refuse-enrol-x-minus-one	800	600	8	100,100 700,100 -1,500 700,500	-	E2

# The second click at y = -1.
refuse-enrol	refuse-enrol-y-minus-one	800	600	8	100,100 700,-1 100,500 700,500	-	E2

# A click as far outside as a signed 32 bit number goes, on each axis.
refuse-enrol	refuse-enrol-click-far-outside	800	600	8	100,100 2147483647,100 100,-2147483648 700,500	-	E2

# The second click has x = 9007199254740992, the largest a click coordinate can be. It
# is outside the image like any other, and E2 refuses it.
refuse-enrol	refuse-enrol-click-at-the-largest-coordinate	800	600	8	100,100 9007199254740992,100 100,500 700,500	-	E2

# The third click has y = -9007199254740992, the smallest a click coordinate can be.
refuse-enrol	refuse-enrol-click-at-the-smallest-coordinate	800	600	8	100,100 700,100 100,-9007199254740992 700,500	-	E2

# The last click has x = 4294967996, which is 4294967296 + 700. Kept in 32 bits it would
# be 700, and the four clicks would be those of enrol-four-clicks, which pass. It is
# outside the image, whatever its size, and E2 refuses it.
refuse-enrol	refuse-enrol-x-on-the-image-if-cut-to-32-bits	800	600	8	100,100 700,100 100,500 4294967996,500	-	E2

# The first click has y = -4294967196, which is 100 - 4294967296. Kept in 32 bits it
# would be 100, and the clicks would again be those of enrol-four-clicks.
refuse-enrol	refuse-enrol-y-on-the-image-if-cut-to-32-bits	800	600	8	100,-4294967196 700,100 100,500 700,500	-	E2

# Five clicks in two places: two pixels clicked twice each, and a fifth click 10 pixels
# from the first on each axis with r = 15.
refuse-enrol	refuse-enrol-five-clicks-two-places	800	600	15	200,150 600,450 200,150 600,450 210,160	-	E3

# The chain with nothing else, and its middle clicked twice. With r = 10, b = 108,100
# is the same place as a = 100,100 and as c = 116,100. a and c are different places, 16
# apart. Whichever three of the four clicks are taken, one of them is b, and b is the
# same place as each of the others. So no three are different places pair by pair.
refuse-enrol	refuse-enrol-chain-two-places	400	300	10	100,100 108,100 116,100 108,100	-	E3

# The same four clicks with both clicks on b first. There are still only two different
# places, a and c, and it is refused in this order as in any other. The replaced rule
# counted one place here and two in the order above.
refuse-enrol	refuse-enrol-chain-two-places-middle-clicks-first	400	300	10	108,100 108,100 100,100 116,100	-	E3

# The same four clicks with a and c first. Two different places clicked first do not
# make a third.
refuse-enrol	refuse-enrol-chain-two-places-ends-first	400	300	10	100,100 116,100 108,100 108,100	-	E3

# The same four clicks once more, as c, b, a, b. Four orders are here and all four are
# refused.
refuse-enrol	refuse-enrol-chain-two-places-ends-apart	400	300	10	116,100 108,100 100,100 108,100	-	E3

# Six clicks on six different pixels, and two places. The first five are the corners
# and the middle of a square that runs from 100 to 110 on each axis, with r = 10: every
# two of them are within r on both axes. Only the sixth click is anywhere else. Every
# one of the six clicks has a click that is a different place from it, and that is not
# three different places.
refuse-enrol	refuse-enrol-five-clicks-in-one-place-and-one-far	400	300	10	100,100 110,100 100,110 110,110 105,105 300,200	-	E3

# The same six clicks with the far one first.
refuse-enrol	refuse-enrol-one-far-click-and-five-in-one-place	400	300	10	300,200 100,100 110,100 100,110 110,110 105,105	-	E3

# The six clicks of enrol-six-clicks-old-count-two-from-every-start with the click at
# 10,20 moved to 10,10, where it is the same place as each of the other five. 0,0 and
# 20,0 are still different places. No click is a different place from both of them, so
# no three clicks are different places pair by pair.
refuse-enrol	refuse-enrol-six-clicks-two-places	400	300	10	0,0 15,10 20,0 5,10 10,10 10,0	-	E3

# The eight clicks of enrol-eight-clicks-old-count-two-after-any-sort with the click at
# 1,1 moved to 1,6. 1,12 and 12,6 are still different places, and nine pairs of these
# clicks are. No three clicks are different places pair by pair.
refuse-enrol	refuse-enrol-eight-clicks-two-places	400	300	10	0,6 1,6 1,12 2,6 6,0 6,13 12,6 13,6	-	E3

# Sixteen clicks in two places. The first fifteen are one place, all from 200 to 215 on
# x and 150 to 165 on y with r = 15, and only the last click is another.
refuse-enrol	refuse-enrol-sixteen-clicks-two-places	800	600	15	200,150 200,150 215,165 200,150 215,150 200,165 207,157 200,150 215,165 200,150 200,150 208,158 200,150 215,150 207,157 600,450	-	E3

# Two pairs. The second click is r = 15 from the first on both axes and the fourth is
# r from the third on x alone. At most r is within r, so that is two places.
refuse-enrol	refuse-enrol-exactly-r-apart-is-one-place	800	600	15	200,150 215,165 600,150 615,150	-	E3

# Two pairs again. In each the second click is r = 15 pixels from the first on x, to the
# right in one pair and to the left in the other, and level with it on y. r apart is the
# same place. r + 1 apart is not: see enrol-r-plus-one-apart-on-x-alone.
refuse-enrol	refuse-enrol-r-apart-on-x-alone-is-one-place	800	600	15	200,150 215,150 600,450 585,450	-	E3

# The same on the other axis: r = 15 pixels apart on y, down in one pair and up in the
# other, and the same x.
refuse-enrol	refuse-enrol-r-apart-on-y-alone-is-one-place	800	600	15	200,150 200,165 600,450 600,435	-	E3

# Four pixels that touch, with r = 15 and s = 31. Cut the image into cells 31 wide
# starting at 0 and they are in four cells, since one cell ends at 30 and the next starts
# at 31. A place is not a cell: every two of these clicks are 1 pixel apart at most, so
# they are one place.
refuse-enrol	refuse-enrol-four-pixels-that-touch-in-four-cells	800	600	15	30,30 31,30 30,31 31,31	-	E3

# The largest r, 65535, on the largest image. The first four clicks are the corners of a
# square that runs from 0 to 65535 on each axis: every two of them are at most r apart on
# both axes, so they are one place. With the far corner of the image that is two places.
refuse-enrol	refuse-enrol-largest-r-two-places	16777216	16777216	65535	0,0 65535,65535 65535,0 0,65535 16777215,16777215	-	E3

# A 1 by 1 image cannot be enrolled. Its only pixel is 0,0, so every click inside it is
# one place and E3 refuses, here with r = 0. A click anywhere else is outside, and E2
# refuses that first.
refuse-enrol	refuse-enrol-one-by-one-image	1	1	0	0,0 0,0 0,0 0,0	-	E3

# The 1 by 1 image again with r = 3, and five clicks. A larger r makes no new place.
refuse-enrol	refuse-enrol-one-by-one-image-r-3	1	1	3	0,0 0,0 0,0 0,0 0,0	-	E3

# Two pixels are two places at most, even with r = 0.
refuse-enrol	refuse-enrol-two-pixel-image	2	1	0	0,0 1,0 0,0 1,0	-	E3

# The order of the rules: three clicks and one of them outside is E1, not E2.
refuse-enrol	refuse-enrol-three-clicks-one-outside	800	600	8	100,100 800,100 100,500	-	E1

# The order of the rules: seventeen clicks on one pixel is E1, not E3.
refuse-enrol	refuse-enrol-seventeen-clicks-one-place	800	600	8	400,300 400,300 400,300 400,300 400,300 400,300 400,300 400,300 400,300 400,300 400,300 400,300 400,300 400,300 400,300 400,300 400,300	-	E1

# The order of the rules: two places and a click outside is E2, not E3.
refuse-enrol	refuse-enrol-two-places-and-one-outside	800	600	15	200,150 600,450 200,150 600,450 200,600	-	E2

# A width of 0. The clicks, the height and r are those of enrol-four-clicks. With no
# width every click is outside the image as well, and E0 comes before E2.
refuse-enrol	refuse-enrol-width-0	0	600	8	100,100 700,100 100,500 700,500	-	E0

# A width of 16777217, one more than the largest. Nothing else is wrong: every click is
# on the image and there are four places.
refuse-enrol	refuse-enrol-width-16777217	16777217	600	8	100,100 700,100 100,500 700,500	-	E0

# A height of 0.
refuse-enrol	refuse-enrol-height-0	800	0	8	100,100 700,100 100,500 700,500	-	E0

# A height of 16777217, one more than the largest.
refuse-enrol	refuse-enrol-height-16777217	800	16777217	8	100,100 700,100 100,500 700,500	-	E0

# r = 65536, one more than the largest. s would be 131073.
refuse-enrol	refuse-enrol-r-65536	800	600	65536	100,100 700,100 100,500 700,500	-	E0

# The clicks of enrol-largest-image-largest-r with r = 65536. They are five different
# places even so, and nothing but E0 stands between them and an encoding.
refuse-enrol	refuse-enrol-largest-image-r-65536	16777216	16777216	65536	0,0 16777215,0 0,16777215 16777215,16777215 8388608,8388608	-	E0

# A width of 4294967295, the largest number 32 bits hold. Read as a signed number it
# would be -1.
refuse-enrol	refuse-enrol-width-4294967295	4294967295	600	8	100,100 700,100 100,500 700,500	-	E0

# A height of 4294967295.
refuse-enrol	refuse-enrol-height-4294967295	800	4294967295	8	100,100 700,100 100,500 700,500	-	E0

# r = 4294967295. 2r + 1 does not fit 32 bits.
refuse-enrol	refuse-enrol-r-4294967295	800	600	4294967295	100,100 700,100 100,500 700,500	-	E0

# A width of -1. Where a width is kept as a signed number, -1 is below the range.
# Where it is kept as an unsigned one, -1 arrives as the largest number there is, and
# that is above the range. Either way it is E0.
refuse-enrol	refuse-enrol-width-minus-one	-1	600	8	100,100 700,100 100,500 700,500	-	E0

# A height of -1.
refuse-enrol	refuse-enrol-height-minus-one	800	-1	8	100,100 700,100 100,500 700,500	-	E0

# r = -1. Nothing else is below the range of r, since r = 0 is in it.
refuse-enrol	refuse-enrol-r-minus-one	800	600	-1	100,100 700,100 100,500 700,500	-	E0

# All three at once: a width of 16777217, a height of 0 and r = 65536.
refuse-enrol	refuse-enrol-width-height-and-r-out-of-range	16777217	0	65536	100,100 700,100 100,500 700,500	-	E0

# The order of the rules: three clicks and a width of 0 is E0, not E1.
refuse-enrol	refuse-enrol-three-clicks-and-width-0	0	600	8	100,100 700,100 100,500	-	E0

# The order of the rules: seventeen clicks and r = 65536 is E0, not E1.
refuse-enrol	refuse-enrol-seventeen-clicks-and-r-65536	1024	768	65536	100,90 350,90 600,90 850,90 100,280 350,280 600,280 850,280 100,470 350,470 600,470 850,470 100,660 350,660 600,660 850,660 500,400	-	E0

# The order of the rules: a click at x = -1 and a height of 16777217 is E0, not E2.
refuse-enrol	refuse-enrol-click-outside-and-height-16777217	800	16777217	8	100,100 700,100 -1,500 700,500	-	E0

# The order of the rules: four clicks on one pixel and r = 65536 is E0, not E3.
refuse-enrol	refuse-enrol-one-place-and-r-65536	800	600	65536	400,300 400,300 400,300 400,300	-	E0

# The order of the rules: three clicks and r = -1 is E0, not E1. E0 and E1 have
# different errors, PICLOCK_E_ARGUMENT and PICLOCK_E_CLICK_COUNT, so a reading that
# has no lower bound for r is seen here by its error.
refuse-enrol	refuse-enrol-three-clicks-and-r-minus-one	800	600	-1	100,100 700,100 100,500	-	E0

# The order of the rules: no clicks and a height of 0 is E0, not E1.
refuse-enrol	refuse-enrol-no-clicks-and-height-0	800	0	8	-	-	E0

# A width of 4294968096, which is 4294967296 + 800. Kept in 32 bits it would be 800
# and this would be enrol-four-clicks, which passes. A width above 4294967295 is out of
# range like any other, and E0 refuses it.
refuse-enrol	refuse-enrol-width-in-range-if-cut-to-32-bits	4294968096	600	8	100,100 700,100 100,500 700,500	-	E0

# A height of 4294967896, which is 4294967296 + 600.
refuse-enrol	refuse-enrol-height-in-range-if-cut-to-32-bits	800	4294967896	8	100,100 700,100 100,500 700,500	-	E0

# r = 4294967304, which is 4294967296 + 8.
refuse-enrol	refuse-enrol-r-in-range-if-cut-to-32-bits	800	600	4294967304	100,100 700,100 100,500 700,500	-	E0

# A width of -4294966496, which is 800 - 4294967296. It is below 0 and E0 refuses it.
# Kept in 32 bits it would be 800.
refuse-enrol	refuse-enrol-width-below-zero-in-range-if-cut-to-32-bits	-4294966496	600	8	100,100 700,100 100,500 700,500	-	E0

# r = -4294967288, which is 8 - 4294967296.
refuse-enrol	refuse-enrol-r-below-zero-in-range-if-cut-to-32-bits	800	600	-4294967288	100,100 700,100 100,500 700,500	-	E0

# A width of 9007194959774496, which is 9007199254740992 - 4294967296 + 800. It is
# nearly as large as a click coordinate can be, and 800 again when kept in 32 bits.
refuse-enrol	refuse-enrol-width-9007194959774496	9007194959774496	600	8	100,100 700,100 100,500 700,500	-	E0

# Three clicks, with the first three stored offsets of the worked example.
refuse-locate	refuse-locate-three-clicks	1920	1080	19	960,540 700,400 1200,300	5,14 18,30 11,8	L1

# Seventeen clicks and seventeen stored offsets, every one of them less than s.
refuse-locate	refuse-locate-seventeen-clicks	1024	768	10	100,90 350,90 600,90 850,90 100,280 350,280 600,280 850,280 100,470 350,470 600,470 850,470 100,660 350,660 600,660 850,660 500,400	6,17 4,17 2,17 0,17 6,18 4,18 2,18 0,18 6,19 4,19 2,19 0,19 6,20 4,20 2,20 0,20 7,12	L1

# No clicks at all, and so no stored offsets. 0 is not from 4 to 16, and L1 refuses it.
# Without L1 the answer would be an encoding of 20 bytes with n = 0. The clicks field
# and the offsets field are each a lone hyphen.
refuse-locate	refuse-locate-no-clicks	1920	1080	19	-	-	L1

# The worked example with the stored x offset of the third click at 39, which is s.
# 38 is the largest an offset can be.
refuse-locate	refuse-locate-offset-equal-to-s-on-x	1920	1080	19	960,540 700,400 1200,300 500,800 1400,650	5,14 18,30 39,8 13,1 16,7	L2

# The worked example with the stored y offset of the last click at 39.
refuse-locate	refuse-locate-offset-equal-to-s-on-y	1920	1080	19	960,540 700,400 1200,300 500,800 1400,650	5,14 18,30 11,8 13,1 16,39	L2

# A stored offset of 2147483647.
refuse-locate	refuse-locate-offset-far-above-s	1920	1080	19	960,540 700,400 1200,300 500,800 1400,650	2147483647,14 18,30 11,8 13,1 16,7	L2

# A stored offset of 2147483648. Read as a signed 32 bit number it would be the most
# negative one there is, and less than s.
refuse-locate	refuse-locate-offset-2147483648	1920	1080	19	960,540 700,400 1200,300 500,800 1400,650	5,14 18,2147483648 11,8 13,1 16,7	L2

# A stored offset of 4294967295, the largest number 32 bits hold and so the largest
# that can be stored. Read as a signed number it would be -1, and less than s.
refuse-locate	refuse-locate-offset-4294967295	1920	1080	19	960,540 700,400 1200,300 500,800 1400,650	5,14 18,30 11,8 4294967295,1 16,7	L2

# The stored x offset of the first click is 4294967301, which is 4294967296 + 5. Kept
# in 32 bits it would be 5, the offset that was enrolled, and this would be
# locate-same-clicks. It is not less than s, and L2 refuses it however large it is.
refuse-locate	refuse-locate-offset-right-if-cut-to-32-bits	1920	1080	19	960,540 700,400 1200,300 500,800 1400,650	4294967301,14 18,30 11,8 13,1 16,7	L2

# The stored y offset of the first click is 9007194959773710, which is
# 9007199254740992 - 4294967296 + 14. Kept in 32 bits it would be 14, the offset that
# was enrolled.
refuse-locate	refuse-locate-offset-9007194959773710	1920	1080	19	960,540 700,400 1200,300 500,800 1400,650	5,9007194959773710 18,30 11,8 13,1 16,7	L2

# r = 0, so s = 1 and the only offset there is is 0.
refuse-locate	refuse-locate-r-0-offset-1	100	100	0	0,0 99,99 50,50 0,99 99,0	0,0 0,1 0,0 0,0 0,0	L2

# The largest r: a stored offset of 131071, which is s.
refuse-locate	refuse-locate-largest-r-offset-equal-to-s	16777216	16777216	65535	0,0 16777215,0 0,16777215 16777215,16777215 8388608,8388608	65536,65536 65663,65536 65536,65663 65663,65663 131071,65600	L2

# The order of the rules: three clicks and a stored offset equal to s is L1, not L2.
refuse-locate	refuse-locate-three-clicks-and-a-bad-offset	1920	1080	19	960,540 700,400 1200,300	39,14 18,30 11,8	L1

# The first click is outside the image and its stored offset is s. L2 is about the
# stored offsets, whichever click they belong to, so this is refused and not encoded.
refuse-locate	refuse-locate-bad-offset-of-a-click-outside	1920	1080	19	-1,540 700,400 1200,300 500,800 1400,650	39,14 18,30 11,8 13,1 16,7	L2

# Every click is outside the image, so no corner would be worked out from any stored
# offset. L2 is tested all the same, for every pair and before any corner: the last
# stored y offset is 39, which is s.
refuse-locate	refuse-locate-every-click-outside-and-one-bad-offset	1920	1080	19	-1,540 1920,400 1200,-1 500,1080 1920,1080	5,14 18,30 11,8 13,1 16,39	L2

# Sixteen clicks and sixteen stored pairs, and only the last number of the last pair is
# wrong: 21, which is s for r = 10.
refuse-locate	refuse-locate-sixteen-clicks-last-offset-bad	1024	768	10	100,90 350,90 600,90 850,90 100,280 350,280 600,280 850,280 100,470 350,470 600,470 850,470 100,660 350,660 600,660 850,660	6,17 4,17 2,17 0,17 6,18 4,18 2,18 0,18 6,19 4,19 2,19 0,19 6,20 4,20 2,20 0,21	L2

# A width of 0, with the clicks and the stored offsets of the worked example. Without
# L0 every click would be outside the image, and the answer would be an encoding with
# 00 00 00 80 for every corner.
refuse-locate	refuse-locate-width-0	0	1080	19	960,540 700,400 1200,300 500,800 1400,650	5,14 18,30 11,8 13,1 16,7	L0

# A width of 16777217, one more than the largest. Nothing else is wrong.
refuse-locate	refuse-locate-width-16777217	16777217	1080	19	960,540 700,400 1200,300 500,800 1400,650	5,14 18,30 11,8 13,1 16,7	L0

# A height of 0.
refuse-locate	refuse-locate-height-0	1920	0	19	960,540 700,400 1200,300 500,800 1400,650	5,14 18,30 11,8 13,1 16,7	L0

# A height of 16777217, one more than the largest.
refuse-locate	refuse-locate-height-16777217	1920	16777217	19	960,540 700,400 1200,300 500,800 1400,650	5,14 18,30 11,8 13,1 16,7	L0

# r = 65536, one more than the largest, so s would be 131073. Every stored offset here
# is less than that, and it is L0 that refuses.
refuse-locate	refuse-locate-r-65536	1920	1080	65536	960,540 700,400 1200,300 500,800 1400,650	5,14 18,30 11,8 13,1 16,7	L0

# A width of 4294967295, the largest number 32 bits hold. Read as a signed number it
# would be -1.
refuse-locate	refuse-locate-width-4294967295	4294967295	1080	19	960,540 700,400 1200,300 500,800 1400,650	5,14 18,30 11,8 13,1 16,7	L0

# A height of 4294967295.
refuse-locate	refuse-locate-height-4294967295	1920	4294967295	19	960,540 700,400 1200,300 500,800 1400,650	5,14 18,30 11,8 13,1 16,7	L0

# r = 4294967295. 2r + 1 does not fit 32 bits.
refuse-locate	refuse-locate-r-4294967295	1920	1080	4294967295	960,540 700,400 1200,300 500,800 1400,650	5,14 18,30 11,8 13,1 16,7	L0

# A width of -1, which is below the range as a signed number and above it as an
# unsigned one.
refuse-locate	refuse-locate-width-minus-one	-1	1080	19	960,540 700,400 1200,300 500,800 1400,650	5,14 18,30 11,8 13,1 16,7	L0

# A height of -1.
refuse-locate	refuse-locate-height-minus-one	1920	-1	19	960,540 700,400 1200,300 500,800 1400,650	5,14 18,30 11,8 13,1 16,7	L0

# r = -1. With it s would be -1, and no stored offset is less than that.
refuse-locate	refuse-locate-r-minus-one	1920	1080	-1	960,540 700,400 1200,300 500,800 1400,650	5,14 18,30 11,8 13,1 16,7	L0

# The order of the rules: three clicks and a width of 0 is L0, not L1.
refuse-locate	refuse-locate-three-clicks-and-width-0	0	1080	19	960,540 700,400 1200,300	5,14 18,30 11,8	L0

# The order of the rules: seventeen clicks and r = 65536 is L0, not L1.
refuse-locate	refuse-locate-seventeen-clicks-and-r-65536	1024	768	65536	100,90 350,90 600,90 850,90 100,280 350,280 600,280 850,280 100,470 350,470 600,470 850,470 100,660 350,660 600,660 850,660 500,400	6,17 4,17 2,17 0,17 6,18 4,18 2,18 0,18 6,19 4,19 2,19 0,19 6,20 4,20 2,20 0,20 7,12	L0

# The order of the rules: a stored offset equal to s and a height of 0 is L0, not L2.
# Both are PICLOCK_E_ARGUMENT, so it is the rule and not the error that this holds.
refuse-locate	refuse-locate-bad-offset-and-height-0	1920	0	19	960,540 700,400 1200,300 500,800 1400,650	5,14 18,30 39,8 13,1 16,7	L0

# The order of the rules: three clicks and r = -1 is L0, not L1. Four clicks or more
# with r = -1 cannot show the lower bound of r by the error: without the bound s is -1,
# L2 refuses every stored offset, and L0 and L2 are both PICLOCK_E_ARGUMENT. With three
# clicks a reading that has no lower bound for r answers L1, and its error is
# PICLOCK_E_CLICK_COUNT.
refuse-locate	refuse-locate-three-clicks-and-r-minus-one	1920	1080	-1	960,540 700,400 1200,300	5,14 18,30 11,8	L0

# The order of the rules: no clicks and a height of 0 is L0, not L1.
refuse-locate	refuse-locate-no-clicks-and-height-0	1920	0	19	-	-	L0

# A width of 4294969216, which is 4294967296 + 1920. Kept in 32 bits it would be 1920
# and this would be locate-same-clicks, which gives an encoding. A width above
# 4294967295 is out of range like any other, and L0 refuses it.
refuse-locate	refuse-locate-width-in-range-if-cut-to-32-bits	4294969216	1080	19	960,540 700,400 1200,300 500,800 1400,650	5,14 18,30 11,8 13,1 16,7	L0

# A height of 4294968376, which is 4294967296 + 1080.
refuse-locate	refuse-locate-height-in-range-if-cut-to-32-bits	1920	4294968376	19	960,540 700,400 1200,300 500,800 1400,650	5,14 18,30 11,8 13,1 16,7	L0

# r = 4294967315, which is 4294967296 + 19.
refuse-locate	refuse-locate-r-in-range-if-cut-to-32-bits	1920	1080	4294967315	960,540 700,400 1200,300 500,800 1400,650	5,14 18,30 11,8 13,1 16,7	L0

# A width of -4294965376, which is 1920 - 4294967296. It is below 0 and L0 refuses it.
# Kept in 32 bits it would be 1920.
refuse-locate	refuse-locate-width-below-zero-in-range-if-cut-to-32-bits	-4294965376	1080	19	960,540 700,400 1200,300 500,800 1400,650	5,14 18,30 11,8 13,1 16,7	L0

# r = -4294967277, which is 19 - 4294967296.
refuse-locate	refuse-locate-r-below-zero-in-range-if-cut-to-32-bits	1920	1080	-4294967277	960,540 700,400 1200,300 500,800 1400,650	5,14 18,30 11,8 13,1 16,7	L0

# A height of 9007194959774776, which is 9007199254740992 - 4294967296 + 1080. It is
# nearly as large as a click coordinate can be, and 1080 again when kept in 32 bits.
refuse-locate	refuse-locate-height-9007194959774776	1920	9007194959774776	19	960,540 700,400 1200,300 500,800 1400,650	5,14 18,30 11,8 13,1 16,7	L0
