1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
|
/*
All the functions below return 0 in case of success and a positive number
in case of error. See (TODO: documentation) for details.
*/
int nissy_compose(
const char cube[static 22],
const char permutation[static 22],
char result[static 22]
);
int nissy_inverse(
const char cube[static 22],
char result[static 22]
);
int nissy_applyoves(
const char cube[static 22],
const char *moves,
char result[static 22]
);
int nissy_applytrans(
const char cube[static 22],
const char *transformation,
char result[static 22]
);
int nissy_frommoves(
const char *moves,
char result[static 22]
);
int nissy_readcube(
const char *format,
const char *cube_string,
char result[static 22]
);
int nissy_writecube(
const char *format,
const char cube[static 22],
char *result
);
int nissy_gendata(
const char *solver,
const char *options,
void *generated_data,
int64_t *generated_bytes
);
int nissy_solve(
const char cube[static 22],
const char *solver,
const char *options,
const char *nisstype,
int8_t minmoves,
int8_t maxmoves,
int64_t maxsolutions,
int8_t optimal,
const void *data,
char *solutions,
int *n_solutions
);
|