Andrew Kelley 1396479656 zig reduce: redesign
Now it works like this:
1. Walk the AST of the source file looking for independent
   reductions and collecting them all into an array list.
2. Randomize the list of transformations. A future enhancement will add
   priority weights to the sorting but for now they are completely
   shuffled.
3. Apply a subset consisting of 1/2 of the transformations and check for
   interestingness.
4. If not interesting, half the subset size again and check again.
5. Repeat until the subset size is 1, then march the transformation
   index forward by 1 with each non-interesting attempt.

At any point if a subset of transformations succeeds in producing an interesting
result, restart the whole process, reparsing the AST and re-generating the list
of all possible transformations and shuffling it again.

As for std.zig.render, the fixups operate based on AST Node Index rather
than Nth index of the function occurence. This allows precise control
over how to mutate the input.
2023-11-03 20:05:32 -07:00
..
2023-10-31 21:37:35 -04:00
2023-10-21 21:24:55 +00:00
2023-10-27 23:31:20 -04:00
2023-10-26 21:45:58 -04:00
2023-10-21 21:24:55 +00:00
2023-11-03 20:05:32 -07:00
2023-04-22 13:09:15 +03:00
2023-10-02 15:31:49 -06:00
2023-10-23 22:42:18 -04:00
2023-10-31 21:37:35 -04:00
2023-10-02 15:31:49 -06:00
2023-10-21 21:24:55 +00:00
2023-10-29 07:20:36 -04:00
2023-10-31 21:37:35 -04:00
2023-10-25 04:28:30 -04:00
2023-10-27 03:33:49 -04:00
2023-10-26 22:35:38 -04:00
2023-10-21 21:24:55 +00:00
2023-10-21 21:24:55 +00:00