aboutsummaryrefslogtreecommitdiff
path: root/test (unfollow)
Commit message (Collapse)AuthorFilesLines
2025-12-22Added tests for copy_co, renamed some testsSebastiano Tronto43-0/+47
2025-11-24Fix duplicate solutions, overflow in maxsols and improve symmetry reduction ↵Sebastiano Tronto14-9/+45
for H48. This commit fixes two bugs: - A bug that caused duplicates solutions for symmetric scrambles. - An overflow in the maxsols parameter for the H48 solver, which caused it to find much fewer solutions than existed. Moreover, the H48 solvers has been improved by reducing by symmetry not only from the starting position, but also up to the first 4 moves.
2025-08-13Improvements to build.bat (unit tests on Windows)Sebastiano Tronto1-1/+0
2025-08-11Fix function signatureSebastiano Tronto1-1/+1
2025-08-11Wrapped pthread use in custom APISebastiano Tronto1-0/+1
2025-08-07Added API function for solution variationsSebastiano Tronto11-0/+61
2025-08-06Added HTR solverSebastiano Tronto3-0/+33
2025-08-01Added CPEPE coordinate in preparation of full DRFIN solverSebastiano Tronto3-0/+33
2025-07-31Added move sequence comparison functionSebastiano Tronto3-6/+6
2025-07-30added drslice coordinateSebastiano Tronto3-0/+61
2025-07-29All coordinates unsignedSebastiano Tronto20-64/+63
2025-07-28Turns checks into assertions in utils/math.hSebastiano Tronto26-139/+0
2025-07-28Make failed assert exit immediatelySebastiano Tronto3-40/+0
2025-07-24Use bit trick for portable and arm popcountSebastiano Tronto3-0/+44
2025-07-18Fix testSebastiano Tronto1-3/+2
2025-07-17Added unit tests for coord cp and epudSebastiano Tronto6-0/+66
2025-07-17Renamed tests to make space for more coordinate testsSebastiano Tronto92-0/+0
2025-05-18Refactor solver dispatch and checkdataSebastiano Tronto1-2/+3
2025-05-16Remove configure + make build system.Sebastiano Tronto1-33/+0
This commit also updates the README, cleans up some stuff and fixes some oopsies.
2025-05-09FixesSebastiano Tronto5-7/+7
2025-05-09Add wasmtest target to build script; minor fixes in tools and testsSebastiano Tronto1-2/+2
2025-04-25NISSSebastiano Tronto185-28/+114
2025-04-23Added tests for inverse moveSebastiano Tronto25-0/+44
2025-04-23Adjusted solvers, fixed bugSebastiano Tronto8-0/+12
2025-04-23Almost added support for wide moves, only solve missingSebastiano Tronto86-2/+134
2025-04-22Update tests for oriented_cube_tSebastiano Tronto31-72/+97
2025-04-22Updated tests and added fixed =A to B32 outputSebastiano Tronto701-820/+695
2025-04-21Always use unsigned char * for data buffersSebastiano Tronto12-34/+34
Before this commit I was inconsistently using one of void *, char * and uint8_t *.
2025-04-20Improve order of moves in NISS solutionsSebastiano Tronto1-2/+3
Now the side that has more moves is written first. For example: write (U L F) B instead of B (U L F) This also fixes the test on appendsolutions, which used an older version of the function's signature.
2025-04-15Better logging functionSebastiano Tronto1-2/+2
Now it is possible to provide some data together with the logging function. This is useful for example in C++, where I can now provide an arbitrary callable object as data, and a simple wrapper function that call the callable object as logging function.
2025-04-08Some minor changes to the interface.Sebastiano Tronto1-6/+2
- Simplified logger to accept only a string, not a variadic list of args like printf(). This can still use some improvement, but now it is easier to use from other languages. - Fixed some misuses of the logger (wrong types etc) - Renamed some constants - Fixed some typos in comments.
2025-04-02Added dreo coordinate solverSebastiano Tronto4-1/+59
2025-04-01simplified allowedmoves logicSebastiano Tronto17-15/+16
2025-03-29Optimize genptable for coordinate solve (20x speedup)Sebastiano Tronto7-0/+38
2025-03-28DR coordinate solverSebastiano Tronto4-1/+61
2025-03-28Make invcoord_co test more comprehensiveSebastiano Tronto29-41/+22
2025-03-26Added inverse coordinate for COSebastiano Tronto27-0/+54
this is necessary for DR coordinate
2025-03-25More safety with pointers using VLA function parametersSebastiano Tronto3-10/+10
2025-03-25Tiny bugfix in solution writingSebastiano Tronto2-0/+9
2025-03-24Big cleanup for appendsolution()Sebastiano Tronto26-26/+145
With this PR the appendsolution routine is extracted from the h48 solver and the new coordinate solver and made generic. This has many advantages: - less repetition (even if the two versions are different enough that *for now* it was not a big deal) - smaller h48/solve.h file, which is already a big beast - easier to test the appendsolution() routine separately
2025-03-22Some safety with move arrays, small refactor appendcharSebastiano Tronto8-16/+17
2025-03-09Working (?) version of coordinate solverSebastiano Tronto2-3/+3
2025-03-04Begin work for coordinate solverSebastiano Tronto4-0/+50
2024-12-07Merge the "solver-experiments" branch that I have been working on forSebastiano Tronto336-83/+561
a few weeks. This include mainly three things: 1. Various tweaks for a total performance gain of around 30%. 2. Take into account symmetries and avoid repeated work. This required a re-work of the splitting into tasks before the solve. 3. Add a second fallback table (eoesep). This gives huge performance gains for particular scrambles (e.g. superflip). After merging this commit, remove and re-generate all pruning tables. Squashed commit of the following: commit 60f0705d2d69050e6a30581a2810f686d6f69b80 Author: Sebastiano Tronto <sebastiano@tronto.net> Date: Sat Dec 7 16:06:48 2024 +0100 Fix indentation commit cc5d489a251812b6188c0ba264ac6cb2236f1afe Author: Sebastiano Tronto <sebastiano@tronto.net> Date: Sat Dec 7 15:56:19 2024 +0100 Updated documentation commit a3f605dd628546e52564f82b139feb473b0725f3 Author: Sebastiano Tronto <sebastiano@tronto.net> Date: Sat Dec 7 14:01:11 2024 +0100 use eoesep table as second fallback commit c75e43c9116c64f97e92b0fe038be8a032925a72 Author: Sebastiano Tronto <sebastiano@tronto.net> Date: Fri Dec 6 16:13:23 2024 +0100 First commit for gendata_eoesep commit fea7688ab8bdc5ae0c3480622e2510a3bcd39248 Author: Sebastiano Tronto <sebastiano@tronto.net> Date: Tue Dec 3 17:31:00 2024 +0100 Add scramble to tool commit 66866cb71dea4ca8278ecb9e90ff4295771feb42 Author: Sebastiano Tronto <sebastiano@tronto.net> Date: Tue Dec 3 17:22:59 2024 +0100 Added tool to check multiple solutions commit ef65611c772c3996bddca8d181da3538e0af1674 Author: Sebastiano Tronto <sebastiano@tronto.net> Date: Tue Dec 3 17:16:20 2024 +0100 Write all solutions for symmetric positions commit e3ded26db7d7d4ae7c0e2488151ed14f581f7b8e Author: Sebastiano Tronto <sebastiano@tronto.net> Date: Tue Nov 26 09:14:54 2024 +0100 Added symmetry filter (TODO: print excluded solutions) commit 864c437a9751c58d58562650ca9eba4a9e6ad3eb Author: Sebastiano Tronto <sebastiano@tronto.net> Date: Mon Nov 25 14:51:13 2024 +0100 Improved task split commit b88926d36d7ab0c64c5fe3bb954fd15d41267fba Author: Sebastiano Tronto <sebastiano@tronto.net> Date: Fri Nov 22 19:06:41 2024 +0100 Reworked tasks for multi-threading in view of symmetry filter commit 26fa653f97df8cd601aecb80eaf89f0a00e9ba9f Author: Sebastiano Tronto <sebastiano@tronto.net> Date: Thu Oct 31 15:37:43 2024 +0100 Added transform move commit 19f655ef94d658eaa2fefb5cea3c167a3ec58db6 Author: Sebastiano Tronto <sebastiano@tronto.net> Date: Thu Oct 31 09:29:15 2024 +0100 Clarified doc commit 3b0fe1e5ef8b628854e30f0f0067300e2763c954 Author: Sebastiano Tronto <sebastiano@tronto.net> Date: Thu Oct 31 08:36:58 2024 +0100 Handle solved cube correctly commit 57705cbc4982e3abe97a36ed64871738d4f721c0 Author: Sebastiano Tronto <sebastiano@tronto.net> Date: Thu Oct 31 08:24:30 2024 +0100 Close file commit fc7d462b58bcf3d3a3fbf26c1f3bd04c640a4898 Author: Sebastiano Tronto <sebastiano@tronto.net> Date: Tue Oct 29 15:05:48 2024 +0100 Removed stats tool commit 359bf7cb49ef405ee76ed662207d47cb2abcc5a9 Author: Sebastiano Tronto <sebastiano@tronto.net> Date: Tue Oct 29 15:01:51 2024 +0100 Updated theory doc commit 39c315af562bc4ce896f41004388a4c34d475d37 Author: Sebastiano Tronto <sebastiano@tronto.net> Date: Tue Oct 29 14:51:40 2024 +0100 Remove unused constants commit 57a5d24538aa59a4df9221dad2f99e9f0286bd9d Author: Sebastiano Tronto <sebastiano@tronto.net> Date: Tue Oct 29 10:20:38 2024 +0100 Add tool to solve scrambles from file commit 07e2918c216636891b1fa6adecc9756086a901e9 Author: Sebastiano Tronto <sebastiano@tronto.net> Date: Mon Oct 28 17:00:00 2024 +0100 Add make table to tool commit f5e5266c654eb027a5a35c57cc618555246f5e5e Author: Sebastiano Tronto <sebastiano@tronto.net> Date: Mon Oct 28 09:35:49 2024 +0100 Remove old solver, other small things commit a1ec78025b7959dbb845213f7f4e6851ecebc204 Author: Sebastiano Tronto <sebastiano@tronto.net> Date: Sun Oct 27 02:00:29 2024 +0200 Improvements commit 8eea23dbe888d923e662e24ae969130e2c67b999 Author: Sebastiano Tronto <sebastiano@tronto.net> Date: Sat Oct 26 12:24:19 2024 +0200 Makefile fix commit 3fc3927beacc78971cefeb42da8d71fe6c015fc1 Author: Sebastiano Tronto <sebastiano@tronto.net> Date: Fri Oct 25 18:25:09 2024 +0200 More performance gains commit 7b4efa1f9af9722de1ab9ccfc27899825a0d12c4 Author: Sebastiano Tronto <sebastiano@tronto.net> Date: Fri Oct 25 15:53:20 2024 +0200 Alternative solver implementation, small performance gain
2024-10-12Make writemoves (and solver) safer by checking buffer sizeSebastiano Tronto2-3/+3
2024-10-12Make gendata and co safer by checking buffer sizeSebastiano Tronto4-9/+11
2024-10-12Make writecube saferSebastiano Tronto15-16/+16
2024-10-12Added shelltestSebastiano Tronto1-1/+1
Will add more tests when I feel like it
2024-10-04Avoid repeating typedefs in testsSebastiano Tronto10-106/+9
2024-10-04Removed slow testSebastiano Tronto3-108/+0
This test generated a pruning table and it was too slow (around a minute). Now the whole test suite runs in 49s on my laptop, which is more reasonable. Pruning table generation should be tested with tools. They run in release mode and are much faster, but can be still run in debug mode optionally.

Generated with cgit - Back to sebastiano.tronto.net