introduce bitloops

This commit is contained in:
mike
2026-01-17 14:21:50 +01:00
parent 9102dcb922
commit bd25f65194
43 changed files with 150342 additions and 0 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@@ -0,0 +1,19 @@
package puzzle;
public final class DictData {
private DictData() {}
public static final SwedishGenerator.Dict DICT = build();
private static SwedishGenerator.Dict build() {
SwedishGenerator.DictEntry[] idx = new SwedishGenerator.DictEntry[SwedishGenerator.MAX_WORD_LENGTH_PLUS_ONE];
idx[2] = DictDataL2.entry();
idx[3] = DictDataL3.entry();
idx[4] = DictDataL4.entry();
idx[5] = DictDataL5.entry();
idx[6] = DictDataL6.entry();
idx[7] = DictDataL7.entry();
idx[8] = DictDataL8.entry();
return new SwedishGenerator.Dict(idx, 40670);
}
}

View File

@@ -0,0 +1,47 @@
package puzzle;
public final class DictDataL2 {
private DictDataL2() {}
static final int LEN = 2;
static final int ROWS = 52;
static final int COLS = 4;
static final int WORDS_LEN = 211;
static final int POS_LEN = 208;
private static long[] words() {
long[] out = new long[WORDS_LEN];
int k = 0;
k = copy(out, k, DictDataL2W0.DATA);
return out;
}
private static long[] posFlat() {
long[] out = new long[POS_LEN];
int k = 0;
k = copy(out, k, DictDataL2P0.DATA);
return out;
}
public static SwedishGenerator.DictEntry entry() {
long[] wds = words();
long[] flat = posFlat();
long[][] pos = reshape(flat, ROWS, COLS);
return new SwedishGenerator.DictEntry(wds, pos, wds.length, (wds.length + 63) >>> 6);
}
private static int copy(long[] dst, int at, long[] src) {
System.arraycopy(src, 0, dst, at, src.length);
return at + src.length;
}
private static long[][] reshape(long[] flat, int rows, int cols) {
long[][] out = new long[rows][cols];
int k = 0;
for (int r = 0; r < rows; r++) {
System.arraycopy(flat, k, out[r], 0, cols);
k += cols;
}
return out;
}
}

View File

@@ -0,0 +1,215 @@
package puzzle;
public final class DictDataL2P0 {
private DictDataL2P0() {}
public static final long[] DATA = new long[] {
0x2210a009040800L,
0x308000004108008L,
0x0L,
0x0L,
0x0L,
0x108000010100L,
0x1240060000000L,
0x1080L,
0x0L,
0x55000200200L,
0x48000080000000L,
0x10000L,
0x2040000200000008L,
0x400L,
0x3002001000400000L,
0x0L,
0x4084630080000003L,
0xe00080000000L,
0x4100000000000081L,
0x0L,
0x0L,
0x20800L,
0x80000000000L,
0x20000L,
0x100000000010000L,
0x1000L,
0x100100000000L,
0x2000L,
0x8000000000004000L,
0x2000002010L,
0x10000000020002L,
0x4L,
0x208000000081410L,
0x1040000002000000L,
0x280000000000104L,
0x8L,
0x400100L,
0x20008000000L,
0x40000L,
0x8000L,
0x400000000000000L,
0x10000000000020L,
0x0L,
0x0L,
0x800000402000000L,
0x1L,
0x6002000000L,
0x0L,
0x804002000L,
0x2000000810000042L,
0x200080000L,
0x0L,
0x800000008200L,
0x0L,
0x8c00000000004208L,
0x1L,
0x1000000060120080L,
0x421000000400000L,
0x420L,
0x0L,
0x10000000L,
0x2000100004080L,
0x408400800000L,
0x100L,
0x0L,
0x0L,
0x20000004000000L,
0x0L,
0x44000000000L,
0x0L,
0x0L,
0x0L,
0x11080000000000L,
0x220000000L,
0x800008800L,
0x20L,
0x1000000004L,
0x0L,
0x9110000L,
0x0L,
0x100800000L,
0x4080000040840000L,
0x3050L,
0x0L,
0x0L,
0x4000401000004L,
0x10000200000L,
0x40650L,
0x20L,
0x80000080000L,
0x820000000000L,
0x0L,
0x0L,
0x0L,
0x10000000L,
0x0L,
0x0L,
0x0L,
0x0L,
0x0L,
0x200040L,
0x8800000000000000L,
0x4000000000000L,
0x4802L,
0x8401040016410200L,
0x800000000008a04L,
0x100000000000024L,
0x0L,
0x4000000000000000L,
0x8L,
0x8200200008000040L,
0x2000L,
0x0L,
0x1100080000000000L,
0x9403800001000L,
0x20000L,
0x202200000000000L,
0x20004000000000L,
0x2000000020008000L,
0x14L,
0x10008400008616cL,
0x6000000400000L,
0x2000L,
0x0L,
0x140000L,
0x0L,
0x4000000000L,
0x10020L,
0x0L,
0x400000000000L,
0x0L,
0x5000L,
0x80000148000000L,
0x8000000000L,
0x8001000000L,
0x200L,
0x850000080000000L,
0x8010000040120192L,
0x14000400L,
0x0L,
0x0L,
0x2000000L,
0x2000000000000L,
0x40000L,
0x20000010L,
0x4000200000000000L,
0x800020400100000L,
0x40L,
0x400000000800L,
0x0L,
0x40010200L,
0x8800L,
0x24000000020000L,
0x12a00040000L,
0x80100400000L,
0x80L,
0x2000000401L,
0x10000000L,
0x0L,
0x2L,
0x2000800000200000L,
0x8297061L,
0x101L,
0x0L,
0x80L,
0x40800000800000L,
0x10202000000L,
0x100L,
0x0L,
0x0L,
0x4040000000000000L,
0x8L,
0x8a00000002L,
0x20100000000L,
0x220808L,
0x0L,
0x1000010401001000L,
0x400000000L,
0x1000000080880000L,
0x0L,
0x8120000000000L,
0x81001020000000L,
0x420000000000000L,
0x0L,
0x8000L,
0x2000000005000400L,
0x40082L,
0x0L,
0x1000000000L,
0x408040000000000L,
0x80040000004010L,
0x400L,
0x800000L,
0x0L,
0x4900000000000L,
0x1L,
0x0L,
0x80000000L,
0x0L,
0x0L,
0x0L,
0x100000000000L,
0x10000000000000L,
0x0L,
0x0L,
0x200000000000000L,
0x0L,
0x0L
};
}

View File

@@ -0,0 +1,218 @@
package puzzle;
public final class DictDataL2W0 {
private DictDataL2W0() {}
public static final long[] DATA = new long[] {
0x300000001c5L,
0x40000000245L,
0x500000000b4L,
0x600000000a4L,
0xa0000000169L,
0xb00000000b7L,
0xe00000000baL,
0x12000000020fL,
0x1600000000aaL,
0xbb000000002eL,
0xbc00000001c9L,
0xc00000000181L,
0xc20000000269L,
0xc300000000adL,
0xc500000000a8L,
0xc700000002aeL,
0xcc0000000027L,
0xde00000001afL,
0xdf00000000c1L,
0xef00000000a9L,
0x10600000000cfL,
0x10a00000001faL,
0x112000000002aL,
0x11d00000002f5L,
0xa7e0000000261L,
0xa84000000002cL,
0xa8d000000002dL,
0xa960000000101L,
0xaa00000000030L,
0xab3000000016fL,
0xae7000000010fL,
0xafb0000000125L,
0xb7e0000000115L,
0xc690000000244L,
0xd28000000026cL,
0xd35000000024dL,
0xf1600000002d4L,
0x3f8d00000001c1L,
0x3f9000000000b2L,
0x3f910000000241L,
0x3f920000000265L,
0x3f930000000285L,
0x3f940000000032L,
0x3f9600000000b3L,
0x3f970000000281L,
0x3f980000000085L,
0x3f990000000185L,
0x3f9d00000001eeL,
0x3f9e0000000033L,
0x3f9f0000000081L,
0x3fa400000001a5L,
0x3fa70000000289L,
0x3fad0000000133L,
0x3fb200000001a1L,
0x3fb50000000124L,
0x3fb70000000105L,
0x3fb900000000a7L,
0x3fba0000000089L,
0x3fbb000000002bL,
0x3fbd000000012cL,
0x3fc1000000026fL,
0x3fd100000001e4L,
0x3fd20000000045L,
0x3fd60000000028L,
0x3fdb00000001ecL,
0x3fdc000000012dL,
0x3ff20000000036L,
0x3ff50000000041L,
0x40070000000128L,
0x400e00000001ebL,
0x401b00000001edL,
0x40220000000130L,
0x40390000000122L,
0x403a0000000023L,
0x403f00000002a4L,
0x40450000000026L,
0x404900000001e7L,
0x404c00000001e8L,
0x406a00000001f0L,
0x408e0000000021L,
0x409f00000001e2L,
0x40b30000000126L,
0x410b00000001b5L,
0x410f00000001f7L,
0x41160000000121L,
0x412600000001e3L,
0x416700000000afL,
0x419e0000000215L,
0x41a300000002b6L,
0x42ab0000000149L,
0x434d00000002a1L,
0x439f00000001eaL,
0x43bd00000001cdL,
0x44020000000293L,
0x453e0000000135L,
0x45bc0000000305L,
0x46590000000250L,
0x467e00000001b3L,
0x48750000000276L,
0x49bb00000001adL,
0x4afa0000000283L,
0x4b6f00000001a8L,
0x4d620000000083L,
0x4fff0000000102L,
0x501800000001a3L,
0x50ce000000024aL,
0x534400000002c3L,
0x593f0000000077L,
0x60c30000000322L,
0x96e80000000165L,
0x96ea00000000e5L,
0x96eb0000000205L,
0x96ef000000028fL,
0x96f000000000b0L,
0x96f200000000b6L,
0x96f400000002c1L,
0x96f6000000012bL,
0x96fa000000008fL,
0x97040000000209L,
0x970f0000000295L,
0x97120000000061L,
0x97150000000341L,
0x971e00000002cfL,
0x9724000000003aL,
0x972f0000000069L,
0x973500000002adL,
0x973b0000000175L,
0x973d000000013aL,
0x974600000001e5L,
0x974900000002a8L,
0x974a0000000029L,
0x9750000000024eL,
0x975700000002d5L,
0x9778000000002fL,
0x977e0000000055L,
0x978900000002a5L,
0x979200000001e9L,
0x979d000000018eL,
0x979e000000012fL,
0x97a50000000253L,
0x97ab0000000075L,
0x97ac00000000b5L,
0x97e900000002ceL,
0x97f20000000093L,
0x97f50000000194L,
0x980a0000000248L,
0x980b00000002aaL,
0x9812000000026dL,
0x98180000000174L,
0x981b0000000256L,
0x982e00000001a4L,
0x98490000000270L,
0x984e0000000114L,
0x9877000000020cL,
0x98860000000131L,
0x988b0000000054L,
0x98920000000138L,
0x989a0000000082L,
0x989f0000000182L,
0x98a20000000263L,
0x98ad00000001a7L,
0x98bc000000020dL,
0x98c40000000170L,
0x98ca0000000073L,
0x98de0000000064L,
0x98fa000000006cL,
0x98fb00000000ccL,
0x99060000000110L,
0x99190000000216L,
0x991a0000000177L,
0x992800000002c2L,
0x993600000001a6L,
0x994500000002e7L,
0x99730000000042L,
0x999b0000000070L,
0x99b200000002f7L,
0x99bc0000000062L,
0x99cc0000000144L,
0x9a2100000002faL,
0x9a300000000063L,
0x9a9a0000000328L,
0x9b6f0000000291L,
0x9cb20000000223L,
0x9eb800000002c9L,
0x9ebc0000000025L,
0x9ebd0000000049L,
0x9f85000000028eL,
0xa121000000016eL,
0xa1f10000000264L,
0xa3ad0000000084L,
0xa3d80000000225L,
0xa49b000000004eL,
0xa4b100000002eeL,
0xa89a00000001daL,
0xa9c20000000088L,
0xaa0a0000000229L,
0xabfe0000000096L,
0xafb500000000d3L,
0xb0710000000176L,
0xb16200000001a2L,
0xb41b0000000210L,
0xb53c0000000116L,
0xb55800000002d6L,
0xb58c000000019aL,
0xb66100000000e2L,
0xb71e0000000047L,
0xc08300000000faL,
0xc301000000018aL,
0xc75900000000c3L,
0xc7d90000000066L,
0xd12c0000000156L
};
}

View File

@@ -0,0 +1,47 @@
package puzzle;
public final class DictDataL3 {
private DictDataL3() {}
static final int LEN = 3;
static final int ROWS = 78;
static final int COLS = 17;
static final int WORDS_LEN = 1048;
static final int POS_LEN = 1326;
private static long[] words() {
long[] out = new long[WORDS_LEN];
int k = 0;
k = copy(out, k, DictDataL3W0.DATA);
return out;
}
private static long[] posFlat() {
long[] out = new long[POS_LEN];
int k = 0;
k = copy(out, k, DictDataL3P0.DATA);
return out;
}
public static SwedishGenerator.DictEntry entry() {
long[] wds = words();
long[] flat = posFlat();
long[][] pos = reshape(flat, ROWS, COLS);
return new SwedishGenerator.DictEntry(wds, pos, wds.length, (wds.length + 63) >>> 6);
}
private static int copy(long[] dst, int at, long[] src) {
System.arraycopy(src, 0, dst, at, src.length);
return at + src.length;
}
private static long[][] reshape(long[] flat, int rows, int cols) {
long[][] out = new long[rows][cols];
int k = 0;
for (int r = 0; r < rows; r++) {
System.arraycopy(flat, k, out[r], 0, cols);
k += cols;
}
return out;
}
}

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,47 @@
package puzzle;
public final class DictDataL4 {
private DictDataL4() {}
static final int LEN = 4;
static final int ROWS = 104;
static final int COLS = 41;
static final int WORDS_LEN = 2605;
static final int POS_LEN = 4264;
private static long[] words() {
long[] out = new long[WORDS_LEN];
int k = 0;
k = copy(out, k, DictDataL4W0.DATA);
return out;
}
private static long[] posFlat() {
long[] out = new long[POS_LEN];
int k = 0;
k = copy(out, k, DictDataL4P0.DATA);
return out;
}
public static SwedishGenerator.DictEntry entry() {
long[] wds = words();
long[] flat = posFlat();
long[][] pos = reshape(flat, ROWS, COLS);
return new SwedishGenerator.DictEntry(wds, pos, wds.length, (wds.length + 63) >>> 6);
}
private static int copy(long[] dst, int at, long[] src) {
System.arraycopy(src, 0, dst, at, src.length);
return at + src.length;
}
private static long[][] reshape(long[] flat, int rows, int cols) {
long[][] out = new long[rows][cols];
int k = 0;
for (int r = 0; r < rows; r++) {
System.arraycopy(flat, k, out[r], 0, cols);
k += cols;
}
return out;
}
}

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,48 @@
package puzzle;
public final class DictDataL5 {
private DictDataL5() {}
static final int LEN = 5;
static final int ROWS = 130;
static final int COLS = 70;
static final int WORDS_LEN = 4434;
static final int POS_LEN = 9100;
private static long[] words() {
long[] out = new long[WORDS_LEN];
int k = 0;
k = copy(out, k, DictDataL5W0.DATA);
return out;
}
private static long[] posFlat() {
long[] out = new long[POS_LEN];
int k = 0;
k = copy(out, k, DictDataL5P0.DATA);
k = copy(out, k, DictDataL5P1.DATA);
return out;
}
public static SwedishGenerator.DictEntry entry() {
long[] wds = words();
long[] flat = posFlat();
long[][] pos = reshape(flat, ROWS, COLS);
return new SwedishGenerator.DictEntry(wds, pos, wds.length, (wds.length + 63) >>> 6);
}
private static int copy(long[] dst, int at, long[] src) {
System.arraycopy(src, 0, dst, at, src.length);
return at + src.length;
}
private static long[][] reshape(long[] flat, int rows, int cols) {
long[][] out = new long[rows][cols];
int k = 0;
for (int r = 0; r < rows; r++) {
System.arraycopy(flat, k, out[r], 0, cols);
k += cols;
}
return out;
}
}

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,915 @@
package puzzle;
public final class DictDataL5P1 {
private DictDataL5P1() {}
public static final long[] DATA = new long[] {
0x2c8480052e3080L,
0x8405941a12001100L,
0x145d84220a201L,
0x80884aL,
0x1000L,
0x0L,
0x1000000000L,
0xc63a51225291da20L,
0x8138e484a5b00e80L,
0x804051c4a2c03c19L,
0x43c44c090f012d0L,
0x51866079004001L,
0x3081141068094808L,
0x310442401530ac14L,
0x600908080L,
0xa06810e8a180100L,
0x204000501000128L,
0x4000c4000e808000L,
0x402002000L,
0x100000400000000L,
0x8800102000080008L,
0x4020600080000L,
0x80400001L,
0x4100000100000040L,
0x8280000000800200L,
0x2804004010L,
0x20000202000L,
0x80000300000000L,
0x200000000000L,
0x225000000L,
0x100000000000L,
0x48000000000000L,
0x2000000000002000L,
0x8000L,
0x0L,
0xa13f889e80000000L,
0xa0004221d005278L,
0xc08280aa1043059L,
0x40530000392c8000L,
0x20000244c2002829L,
0x110600100c008d08L,
0x128005c90210000L,
0xd0100000414L,
0x1000011100000640L,
0x8000000c80020001L,
0x200000220800L,
0x24000080001006L,
0x2000020004000000L,
0x2000000122000000L,
0x40200180000000L,
0x4000100002002000L,
0x2004040040000L,
0x1000000001000L,
0x410000020000180L,
0x40000000000800L,
0x2000020000L,
0x4000004000000L,
0x8002L,
0x0L,
0x0L,
0x0L,
0x20L,
0x4200000L,
0x2100L,
0x100000000000000L,
0x80002000000000L,
0x24000000000010L,
0x4L,
0x40000000L,
0x0L,
0x10000000000L,
0x400L,
0x100000000L,
0x0L,
0x8000001000000010L,
0x0L,
0x0L,
0x0L,
0x0L,
0x8002000000000L,
0x800002000000004L,
0x10L,
0x10000000000L,
0x0L,
0x8080000000L,
0x0L,
0x1000000000800000L,
0x8000000000000240L,
0x41400000000008L,
0x40000000004L,
0x8a0000000000L,
0x420004000000000L,
0x2010001000800000L,
0x20000000000802L,
0x640000001L,
0x8000000012040L,
0x4a8000000L,
0xa000000000200001L,
0x4200000000L,
0x200000a000000L,
0x0L,
0x1021000000000000L,
0x8000000000000L,
0x40000000000000L,
0x0L,
0x0L,
0x0L,
0x0L,
0x8200000040L,
0x800000000L,
0x0L,
0x0L,
0x80000000010000L,
0x0L,
0x2000L,
0x0L,
0x10004001000000L,
0x4000000000008000L,
0x2000000020002L,
0x400000000000000L,
0x2000080000000000L,
0x200000000L,
0xa0041200000L,
0x800000000000L,
0x200201L,
0x20012040001L,
0x11010L,
0x0L,
0x19000200200L,
0x2000000800000L,
0x440000L,
0x0L,
0x810000000L,
0x0L,
0x0L,
0x1000000000L,
0x40000000000000L,
0x0L,
0x0L,
0x0L,
0x0L,
0x2000000000020000L,
0x90000000L,
0x4000001000000L,
0x0L,
0x0L,
0x820000000000000L,
0x0L,
0x0L,
0x800000000000000L,
0x0L,
0x0L,
0x100L,
0x0L,
0x1000000000000L,
0x0L,
0x20004L,
0x0L,
0x0L,
0x40L,
0x400000L,
0x40L,
0x0L,
0x1012000L,
0x100L,
0x100000000000L,
0x1000040000000001L,
0x8000L,
0x200000L,
0x2000000000010000L,
0x200000000000000L,
0x6000000000L,
0x1000000080000080L,
0x2090004400000001L,
0x2100000040008000L,
0x0L,
0x0L,
0x0L,
0x0L,
0x0L,
0x0L,
0x0L,
0x0L,
0x0L,
0x0L,
0x0L,
0x0L,
0x8000000000000000L,
0x100000000000L,
0x40800000L,
0x1000000000040008L,
0x2008000000000000L,
0x0L,
0x4000800000L,
0x800000000L,
0x200004400000000L,
0x2000008000L,
0x0L,
0x20000L,
0x40000L,
0x10L,
0x4080000000000000L,
0xa0000000000000L,
0x6001000040800000L,
0x8080L,
0x80000040L,
0x100000400L,
0xa000L,
0x0L,
0x0L,
0x0L,
0x0L,
0x0L,
0x0L,
0x0L,
0x0L,
0x0L,
0x0L,
0x0L,
0x0L,
0x0L,
0x0L,
0x0L,
0x0L,
0x0L,
0x0L,
0x0L,
0x0L,
0x0L,
0x0L,
0x0L,
0x0L,
0x0L,
0x0L,
0x0L,
0x0L,
0x0L,
0x0L,
0x0L,
0x0L,
0x0L,
0x0L,
0x0L,
0x0L,
0x0L,
0x0L,
0x0L,
0x0L,
0x0L,
0x0L,
0x0L,
0x0L,
0x0L,
0x0L,
0x0L,
0x0L,
0x0L,
0x0L,
0x0L,
0x0L,
0x0L,
0x0L,
0x0L,
0x0L,
0x0L,
0x0L,
0x0L,
0x0L,
0x0L,
0x0L,
0x0L,
0x0L,
0x0L,
0x0L,
0x0L,
0x0L,
0x0L,
0x0L,
0x1280000000b80080L,
0x20110a1000400200L,
0x10b0010931L,
0x50880200c0008010L,
0x108c000200010120L,
0x2100081000000000L,
0x8800200c000800L,
0x0L,
0x0L,
0x18000a5460000L,
0x16c01008000c4012L,
0x44000400180a4100L,
0xa080201100044101L,
0x4808000200000000L,
0x800020000000004L,
0x8490000002800081L,
0x228b01000000140L,
0x4480108020404000L,
0x4000400020002400L,
0x281030100021000L,
0x800100260800200L,
0x8004000042000200L,
0x1010000044000200L,
0x100000108000200L,
0x5300000000080020L,
0x0L,
0x2000100000000L,
0x8000000000820000L,
0x1020020L,
0x120000020000400L,
0x40000000000000L,
0x800010000000000L,
0x4000000L,
0x800000L,
0x4000000000000L,
0x800000000L,
0x30000000L,
0x210000000000L,
0x40981800420c0004L,
0x1000002010800000L,
0x81800000005000a0L,
0x600000001000200L,
0x10400084L,
0x1700001400080L,
0x800400200020000L,
0x408000a00000000L,
0x40002004840080L,
0x2200008000080a0L,
0x400000000008L,
0x40082L,
0x800L,
0x1008082000L,
0x820000004L,
0x40000000100000L,
0x20000L,
0x800040000000000L,
0x1000000000000020L,
0x1000000000000000L,
0x0L,
0x4200000L,
0x0L,
0x80000L,
0x0L,
0x100000000000L,
0x40000000000L,
0x0L,
0x0L,
0x0L,
0x8000000400000L,
0x0L,
0x10300001010L,
0x21000000L,
0x1002002000000000L,
0x400005000020L,
0x3a0000000004L,
0x200000018004080L,
0x100800400012000L,
0x800034041000L,
0x2800020022000L,
0x1000040000000000L,
0x80000000000L,
0x12010000000080a0L,
0x2100a26022000L,
0x90400100204L,
0x400000400000012L,
0x1000200000040L,
0x1000004003020000L,
0x2010a01000L,
0x120080000050000L,
0x3104000000000189L,
0x10002000000405L,
0x40008001222000L,
0x6000100a10080L,
0x808801000000002L,
0x40052000000408L,
0x10800a80000020L,
0x4000450082212440L,
0x1081004000001700L,
0x800000044080014L,
0x840111000030022L,
0x800000008102000L,
0x158c800000812L,
0x2d000309104400L,
0x41920811024022c0L,
0x89a0040041a25149L,
0x1010020a0274044L,
0x400004002000404L,
0x1400000000020002L,
0x1040010000020800L,
0x8200440042000082L,
0x841802013201L,
0x1048001210840402L,
0x6020140000060000L,
0x704604000a980008L,
0x210802448d103L,
0x4041200000804080L,
0x400024006a004400L,
0x844006413084040L,
0x6108110408244000L,
0x400000020114104L,
0x4004002240200114L,
0x4289434006020440L,
0x140010004818000L,
0x62080210040e401L,
0x510800034010201L,
0x130100401220L,
0x800084c0084084L,
0x8880000a90012L,
0x1000480008380040L,
0x200604400401245L,
0x4002040000c01008L,
0x84455a2400400300L,
0x4112882950201406L,
0x941241042d00e01L,
0x720700200180022cL,
0x8c19d2a000288L,
0x442d48284c040226L,
0x384bf1400092c224L,
0x2000000158008L,
0x4000L,
0x27024022002L,
0xa140000360000L,
0x180104602400246L,
0x820212400802082L,
0x40000000080e0400L,
0x4081048986440100L,
0x142520c963184100L,
0x112c668082132143L,
0x759c57ed5fa44da5L,
0x84000000000001eL,
0x801004000018004L,
0x2014020005010040L,
0x8000020L,
0x101800010088L,
0x242006210100000L,
0x4022048c00081020L,
0x4200010L,
0x2100004100aa1cL,
0x90160a00080000L,
0x28080000700002L,
0x26000008500802L,
0x420b134200910400L,
0xa00000a0020005L,
0x1000100050810089L,
0x8c00080101004016L,
0x280548044200201L,
0x29408a402c404004L,
0x2100d0200100020L,
0x418000200100200L,
0x500a2a0000000840L,
0xa280932080440000L,
0x800c00001010228cL,
0x199028d040008049L,
0x8200158a311a4435L,
0x2620b1e418624L,
0x982aa01102c00188L,
0x2e020480a83008L,
0x4000000000088014L,
0x8000220000400100L,
0x6103100004010700L,
0xa042840c0004112L,
0x41000c8104211000L,
0x81040c003115041L,
0x8800008020000800L,
0x6154a01808000220L,
0x8100802050000108L,
0x1800001200400202L,
0x65800a0020011004L,
0x8000a089101102a0L,
0x3410014004a0021L,
0x8923c01009c080L,
0x80109c200040500cL,
0x2420101101861L,
0x88000080a1220804L,
0xca00011400400142L,
0x2000009004240041L,
0x4a01e04105008000L,
0x44248808001040L,
0x2240a54232004000L,
0xfdc40d8048040000L,
0xa0a828380028b4L,
0x1108a009c9034c51L,
0x808473d22309cb48L,
0x3206ca0fbd0a319cL,
0x8d18c2c4225e65d1L,
0x91d62a62845ecc52L,
0x98d0145030f35451L,
0x214060f552d0803L,
0x22000212a22a1044L,
0xe38L,
0x0L,
0x0L,
0x0L,
0x0L,
0x0L,
0x0L,
0x0L,
0x0L,
0x0L,
0x0L,
0x0L,
0x0L,
0x0L,
0x0L,
0x40L,
0x0L,
0x0L,
0x0L,
0x0L,
0x0L,
0x0L,
0x0L,
0x0L,
0x0L,
0x0L,
0x800000L,
0x0L,
0x0L,
0x40000L,
0x0L,
0x0L,
0x0L,
0x0L,
0x0L,
0x800000000000L,
0x0L,
0x0L,
0x0L,
0x0L,
0x0L,
0x0L,
0x0L,
0x0L,
0x2000000000L,
0x0L,
0x0L,
0x0L,
0x0L,
0x20000000L,
0x0L,
0x0L,
0x0L,
0x0L,
0x0L,
0x0L,
0x40000000000000L,
0x0L,
0x0L,
0x0L,
0x0L,
0x800000000000000L,
0x0L,
0x0L,
0x0L,
0x10000000000L,
0x0L,
0x0L,
0x0L,
0x0L,
0x0L,
0x0L,
0x0L,
0x0L,
0x0L,
0x0L,
0x0L,
0x0L,
0x0L,
0x0L,
0x0L,
0x0L,
0x0L,
0x0L,
0x0L,
0x0L,
0x0L,
0x0L,
0x0L,
0x0L,
0x0L,
0x0L,
0x0L,
0x0L,
0x0L,
0x0L,
0x0L,
0x0L,
0x0L,
0x0L,
0x0L,
0x0L,
0x0L,
0x0L,
0x0L,
0x0L,
0x0L,
0x0L,
0x0L,
0x0L,
0x0L,
0x0L,
0x0L,
0x0L,
0x0L,
0x0L,
0x0L,
0x0L,
0x0L,
0x0L,
0x0L,
0x0L,
0x0L,
0x0L,
0x0L,
0x0L,
0x0L,
0x0L,
0x0L,
0x0L,
0x0L,
0x0L,
0x0L,
0x0L,
0x0L,
0x0L,
0x0L,
0x0L,
0x0L,
0x0L,
0x0L,
0x800000000L,
0x0L,
0x0L,
0x0L,
0x20000000800000L,
0x0L,
0x400000000000L,
0x1000200000000L,
0x0L,
0x0L,
0x0L,
0x0L,
0x0L,
0x0L,
0x0L,
0x0L,
0x0L,
0x0L,
0x0L,
0x0L,
0x0L,
0x0L,
0x0L,
0x0L,
0x1000000000000L,
0x0L,
0x0L,
0x0L,
0x8000000000000000L,
0x1000000000000L,
0x400000080008L,
0x0L,
0x0L,
0x0L,
0x0L,
0x0L,
0x100000L,
0x200L,
0x0L,
0x0L,
0x0L,
0x0L,
0x0L,
0x0L,
0x0L,
0x0L,
0x0L,
0x0L,
0x0L,
0x0L,
0x0L,
0x0L,
0x0L,
0x1000000000000002L,
0x0L,
0x5000000000000000L,
0x2L,
0x400000L,
0x100000000000000L,
0x1000000L,
0x0L,
0x4000000L,
0x0L,
0x0L,
0x0L,
0x0L,
0x800L,
0x80L,
0x0L,
0x0L,
0x0L,
0x0L,
0x0L,
0x0L,
0x0L,
0x0L,
0x0L,
0x0L,
0x0L,
0x0L,
0x0L,
0x0L,
0x0L,
0x0L,
0x0L,
0x0L,
0x0L,
0x0L,
0x0L,
0x0L,
0x0L,
0x0L,
0x0L,
0x0L,
0x0L,
0x0L,
0x0L,
0x8L,
0x0L,
0x0L,
0x0L,
0x1000020000000000L,
0x40000000010L,
0x0L,
0x400000000000000L,
0x0L,
0x20L,
0x0L,
0x0L,
0x0L,
0x0L,
0x0L,
0x0L,
0x0L,
0x0L,
0x0L,
0x0L,
0x0L,
0x0L,
0x0L,
0x0L,
0x0L,
0x0L,
0x0L,
0x0L,
0x0L,
0x0L,
0x0L,
0x0L,
0x0L,
0x0L,
0x0L,
0x1800000000000000L,
0x40000L,
0x2L,
0x400100000000004L,
0x2000000080000L,
0x1000L,
0x408000004000L,
0x0L,
0x8000000000L,
0x0L,
0x0L,
0x0L,
0x0L,
0x0L,
0x0L,
0x0L,
0x200101000L,
0x101L,
0x0L,
0x0L,
0x0L,
0x0L,
0x0L,
0x0L,
0x0L,
0x0L,
0x0L,
0x0L,
0x0L,
0x0L,
0x0L,
0x0L,
0x0L,
0x400000000000000L,
0x0L,
0x0L,
0x0L,
0x8000000004L,
0x0L,
0x10000000000000L,
0x10000000L,
0x0L,
0x400000000L,
0x404180240000010L,
0x8000710001000a02L,
0x7bf07889L,
0x0L,
0x0L,
0x0L,
0x0L,
0x0L,
0x0L,
0x0L,
0x0L,
0x0L,
0x0L,
0x0L,
0x0L,
0x0L,
0x0L,
0x0L,
0x0L,
0x2000000000000L,
0x0L,
0x0L,
0x0L,
0x0L,
0x0L,
0x0L,
0x0L,
0x0L,
0x0L,
0x200000010000L,
0x0L,
0x2000000000000000L,
0x0L,
0x1a16848800000L,
0x0L,
0x0L,
0x0L,
0x0L,
0x0L,
0x0L,
0x0L,
0x0L,
0x0L,
0x0L,
0x0L,
0x0L,
0x0L,
0x0L,
0x0L,
0x0L,
0x0L,
0x0L,
0x0L,
0x0L,
0x0L,
0x0L,
0x0L,
0x0L,
0x2000000000L,
0x0L,
0x0L,
0x0L,
0x0L,
0x0L,
0x0L,
0x0L,
0x0L,
0x0L,
0x0L,
0x0L,
0x0L,
0x10L,
0x0L,
0x0L,
0x0L,
0x0L,
0x0L,
0x0L,
0x0L,
0x0L,
0x0L,
0x0L,
0x0L,
0x0L,
0x0L,
0x0L,
0x0L,
0x0L,
0x0L,
0x0L,
0x0L,
0x0L,
0x0L,
0x0L,
0x0L,
0x0L,
0x0L,
0x0L,
0x0L,
0x100000000L,
0x0L,
0x0L,
0x0L,
0x0L,
0x0L
};
}

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,49 @@
package puzzle;
public final class DictDataL6 {
private DictDataL6() {}
static final int LEN = 6;
static final int ROWS = 156;
static final int COLS = 125;
static final int WORDS_LEN = 8000;
static final int POS_LEN = 19500;
private static long[] words() {
long[] out = new long[WORDS_LEN];
int k = 0;
k = copy(out, k, DictDataL6W0.DATA);
return out;
}
private static long[] posFlat() {
long[] out = new long[POS_LEN];
int k = 0;
k = copy(out, k, DictDataL6P0.DATA);
k = copy(out, k, DictDataL6P1.DATA);
k = copy(out, k, DictDataL6P2.DATA);
return out;
}
public static SwedishGenerator.DictEntry entry() {
long[] wds = words();
long[] flat = posFlat();
long[][] pos = reshape(flat, ROWS, COLS);
return new SwedishGenerator.DictEntry(wds, pos, wds.length, (wds.length + 63) >>> 6);
}
private static int copy(long[] dst, int at, long[] src) {
System.arraycopy(src, 0, dst, at, src.length);
return at + src.length;
}
private static long[][] reshape(long[] flat, int rows, int cols) {
long[][] out = new long[rows][cols];
int k = 0;
for (int r = 0; r < rows; r++) {
System.arraycopy(flat, k, out[r], 0, cols);
k += cols;
}
return out;
}
}

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,51 @@
package puzzle;
public final class DictDataL7 {
private DictDataL7() {}
static final int LEN = 7;
static final int ROWS = 182;
static final int COLS = 174;
static final int WORDS_LEN = 11134;
static final int POS_LEN = 31668;
private static long[] words() {
long[] out = new long[WORDS_LEN];
int k = 0;
k = copy(out, k, DictDataL7W0.DATA);
k = copy(out, k, DictDataL7W1.DATA);
return out;
}
private static long[] posFlat() {
long[] out = new long[POS_LEN];
int k = 0;
k = copy(out, k, DictDataL7P0.DATA);
k = copy(out, k, DictDataL7P1.DATA);
k = copy(out, k, DictDataL7P2.DATA);
k = copy(out, k, DictDataL7P3.DATA);
return out;
}
public static SwedishGenerator.DictEntry entry() {
long[] wds = words();
long[] flat = posFlat();
long[][] pos = reshape(flat, ROWS, COLS);
return new SwedishGenerator.DictEntry(wds, pos, wds.length, (wds.length + 63) >>> 6);
}
private static int copy(long[] dst, int at, long[] src) {
System.arraycopy(src, 0, dst, at, src.length);
return at + src.length;
}
private static long[][] reshape(long[] flat, int rows, int cols) {
long[][] out = new long[rows][cols];
int k = 0;
for (int r = 0; r < rows; r++) {
System.arraycopy(flat, k, out[r], 0, cols);
k += cols;
}
return out;
}
}

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,53 @@
package puzzle;
public final class DictDataL8 {
private DictDataL8() {}
static final int LEN = 8;
static final int ROWS = 208;
static final int COLS = 207;
static final int WORDS_LEN = 13238;
static final int POS_LEN = 43056;
private static long[] words() {
long[] out = new long[WORDS_LEN];
int k = 0;
k = copy(out, k, DictDataL8W0.DATA);
k = copy(out, k, DictDataL8W1.DATA);
return out;
}
private static long[] posFlat() {
long[] out = new long[POS_LEN];
int k = 0;
k = copy(out, k, DictDataL8P0.DATA);
k = copy(out, k, DictDataL8P1.DATA);
k = copy(out, k, DictDataL8P2.DATA);
k = copy(out, k, DictDataL8P3.DATA);
k = copy(out, k, DictDataL8P4.DATA);
k = copy(out, k, DictDataL8P5.DATA);
return out;
}
public static SwedishGenerator.DictEntry entry() {
long[] wds = words();
long[] flat = posFlat();
long[][] pos = reshape(flat, ROWS, COLS);
return new SwedishGenerator.DictEntry(wds, pos, wds.length, (wds.length + 63) >>> 6);
}
private static int copy(long[] dst, int at, long[] src) {
System.arraycopy(src, 0, dst, at, src.length);
return at + src.length;
}
private static long[][] reshape(long[] flat, int rows, int cols) {
long[][] out = new long[rows][cols];
int k = 0;
for (int r = 0; r < rows; r++) {
System.arraycopy(flat, k, out[r], 0, cols);
k += cols;
}
return out;
}
}

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff