From 9c23ca97c8b86ec5c1df5f62547ef067c3b4f033 Mon Sep 17 00:00:00 2001 From: Julia Belyakova Date: Mon, 22 May 2023 22:32:43 -0400 Subject: [PATCH] fix another empty-data bug --- src/types-analysis/pkg-process.jl | 24 ++- test/pkg-process.jl | 44 ++-- .../{2 => 3}/DataStructures.jl/.codecov.yml | 0 .../.github/workflows/CI.yml | 0 .../.github/workflows/TagBot.yml | 0 .../{2 => 3}/DataStructures.jl/.gitignore | 0 .../{2 => 3}/DataStructures.jl/Changelog.md | 0 .../{2 => 3}/DataStructures.jl/License.md | 0 .../{2 => 3}/DataStructures.jl/Project.toml | 0 .../{2 => 3}/DataStructures.jl/README.md | 0 .../DataStructures.jl/benchmark/Project.toml | 0 .../DataStructures.jl/benchmark/README.md | 0 .../DataStructures.jl/benchmark/bench_heap.jl | 0 .../benchmark/bench_sparse_int_set.jl | 0 .../DataStructures.jl/benchmark/benchmarks.jl | 0 .../benchmark/incrementalrunjudge.jl | 0 .../benchmark/pprinthelper.jl | 0 .../benchmark/pprintjudge.jl | 0 .../benchmark/runbenchmarks.jl | 0 .../DataStructures.jl/benchmark/runjudge.jl | 0 .../{2 => 3}/DataStructures.jl/docs/Makefile | 0 .../DataStructures.jl/docs/Project.toml | 0 .../{2 => 3}/DataStructures.jl/docs/make.jl | 0 .../docs/src/accumulators.md | 0 .../DataStructures.jl/docs/src/avl_tree.md | 0 .../DataStructures.jl/docs/src/circ_buffer.md | 0 .../DataStructures.jl/docs/src/circ_deque.md | 0 .../docs/src/default_dict.md | 0 .../DataStructures.jl/docs/src/deque.md | 0 .../docs/src/dibit_vector.md | 0 .../docs/src/disjoint_sets.md | 0 .../DataStructures.jl/docs/src/fenwick.md | 0 .../DataStructures.jl/docs/src/heaps.md | 0 .../DataStructures.jl/docs/src/index.md | 0 .../DataStructures.jl/docs/src/intset.md | 0 .../DataStructures.jl/docs/src/linked_list.md | 0 .../docs/src/mutable_linked_list.md | 0 .../docs/src/ordered_containers.md | 0 .../docs/src/priority-queue.md | 0 .../docs/src/red_black_tree.md | 0 .../DataStructures.jl/docs/src/robin_dict.md | 0 .../docs/src/sorted_containers.md | 0 .../docs/src/sparse_int_set.md | 0 .../DataStructures.jl/docs/src/splay_tree.md | 0 .../docs/src/stack_and_queue.md | 0 .../DataStructures.jl/docs/src/swiss_dict.md | 0 .../DataStructures.jl/docs/src/trie.md | 0 .../DataStructures.jl/src/DataStructures.jl | 0 .../DataStructures.jl/src/accumulator.jl | 0 .../DataStructures.jl/src/avl_tree.jl | 0 .../DataStructures.jl/src/balanced_tree.jl | 0 .../DataStructures.jl/src/circ_deque.jl | 0 .../DataStructures.jl/src/circular_buffer.jl | 0 .../DataStructures.jl/src/container_loops.jl | 0 .../DataStructures.jl/src/default_dict.jl | 0 .../DataStructures.jl/src/delegate.jl | 0 .../DataStructures.jl/src/deprecations.jl | 0 .../{2 => 3}/DataStructures.jl/src/deque.jl | 0 .../DataStructures.jl/src/dibit_vector.jl | 0 .../DataStructures.jl/src/dict_support.jl | 0 .../DataStructures.jl/src/disjoint_set.jl | 0 .../{2 => 3}/DataStructures.jl/src/fenwick.jl | 0 .../{2 => 3}/DataStructures.jl/src/heaps.jl | 0 .../src/heaps/arrays_as_heaps.jl | 0 .../src/heaps/binary_heap.jl | 0 .../src/heaps/minmax_heap.jl | 0 .../src/heaps/mutable_binary_heap.jl | 0 .../{2 => 3}/DataStructures.jl/src/int_set.jl | 0 .../{2 => 3}/DataStructures.jl/src/list.jl | 0 .../DataStructures.jl/src/multi_dict.jl | 0 .../DataStructures.jl/src/mutable_list.jl | 0 .../src/ordered_robin_dict.jl | 0 .../DataStructures.jl/src/priorityqueue.jl | 0 .../{2 => 3}/DataStructures.jl/src/queue.jl | 0 .../DataStructures.jl/src/red_black_tree.jl | 0 .../DataStructures.jl/src/robin_dict.jl | 0 .../DataStructures.jl/src/sorted_dict.jl | 0 .../src/sorted_multi_dict.jl | 0 .../DataStructures.jl/src/sorted_set.jl | 0 .../DataStructures.jl/src/sparse_int_set.jl | 0 .../DataStructures.jl/src/splay_tree.jl | 0 .../{2 => 3}/DataStructures.jl/src/stack.jl | 0 .../DataStructures.jl/src/swiss_dict.jl | 0 .../{2 => 3}/DataStructures.jl/src/tokens.jl | 0 .../{2 => 3}/DataStructures.jl/src/tokens2.jl | 0 .../{2 => 3}/DataStructures.jl/src/trie.jl | 0 .../{2 => 3}/DataStructures.jl/test/README | 0 .../{2 => 3}/DataStructures.jl/test/REQUIRE | 0 .../DataStructures.jl/test/bench_deque.jl | 0 .../DataStructures.jl/test/bench_dict.jl | 0 .../test/bench_disjoint_set.jl | 0 .../DataStructures.jl/test/bench_heaps.jl | 0 .../DataStructures.jl/test/runtests.jl | 0 .../test/test_accumulator.jl | 0 .../DataStructures.jl/test/test_avl_tree.jl | 0 .../DataStructures.jl/test/test_binheap.jl | 0 .../DataStructures.jl/test/test_circ_deque.jl | 0 .../test/test_circular_buffer.jl | 0 .../test/test_default_dict.jl | 0 .../test/test_deprecations.jl | 0 .../DataStructures.jl/test/test_deque.jl | 0 .../test/test_dibit_vector.jl | 0 .../test/test_disjoint_set.jl | 0 .../DataStructures.jl/test/test_fenwick.jl | 0 .../DataStructures.jl/test/test_int_set.jl | 0 .../DataStructures.jl/test/test_list.jl | 0 .../test/test_minmax_heap.jl | 0 .../DataStructures.jl/test/test_multi_dict.jl | 0 .../test/test_mutable_binheap.jl | 0 .../test/test_mutable_list.jl | 0 .../test/test_ordered_robin_dict.jl | 0 .../test/test_priority_queue.jl | 0 .../DataStructures.jl/test/test_queue.jl | 0 .../test/test_red_black_tree.jl | 0 .../DataStructures.jl/test/test_robin_dict.jl | 0 .../test/test_sorted_containers.jl | 0 .../DataStructures.jl/test/test_sorting.jl | 0 .../test/test_sparse_int_set.jl | 0 .../DataStructures.jl/test/test_splay_tree.jl | 0 .../DataStructures.jl/test/test_stack.jl | 0 .../DataStructures.jl/test/test_swiss_dict.jl | 0 .../DataStructures.jl/test/test_trie.jl | 0 .../pkgs-ta/3/Empty.jl/src/Empty.jl | 5 + .../Gen.jl/.github/workflows/CompatHelper.yml | 0 .../pkgs-ta/{2 => 3}/Gen.jl/.gitignore | 0 .../pkgs-ta/{2 => 3}/Gen.jl/.travis.yml | 0 .../pkgs-ta/{2 => 3}/Gen.jl/CONTRIBUTING.md | 0 .../pkgs-ta/{2 => 3}/Gen.jl/LICENSE | 0 .../pkgs-ta/{2 => 3}/Gen.jl/Project.toml | 0 .../pkgs-ta/{2 => 3}/Gen.jl/README.md | 0 .../pkgs-ta/{2 => 3}/Gen.jl/WEBSITE.md | 0 .../pkgs-ta/{2 => 3}/Gen.jl/docker/Dockerfile | 0 .../pkgs-ta/{2 => 3}/Gen.jl/docker/ubuntu1604 | 0 .../pkgs-ta/{2 => 3}/Gen.jl/docs/.gitignore | 0 .../pkgs-ta/{2 => 3}/Gen.jl/docs/Project.toml | 0 .../Gen.jl/docs/build_docs_locally.sh | 0 .../pkgs-ta/{2 => 3}/Gen.jl/docs/make.jl | 0 .../Gen.jl/docs/src/getting_started.md | 0 .../pkgs-ta/{2 => 3}/Gen.jl/docs/src/index.md | 0 .../Gen.jl/docs/src/ref/choice_maps.md | 0 .../Gen.jl/docs/src/ref/combinators.md | 0 .../Gen.jl/docs/src/ref/distributions.md | 0 .../{2 => 3}/Gen.jl/docs/src/ref/extending.md | 0 .../{2 => 3}/Gen.jl/docs/src/ref/gfi.md | 0 .../Gen.jl/docs/src/ref/importance.md | 0 .../ref/internals/language_implementation.md | 0 .../ref/internals/parameter_optimization.md | 0 .../{2 => 3}/Gen.jl/docs/src/ref/learning.md | 0 .../{2 => 3}/Gen.jl/docs/src/ref/map.md | 0 .../{2 => 3}/Gen.jl/docs/src/ref/mcmc.md | 0 .../{2 => 3}/Gen.jl/docs/src/ref/modeling.md | 0 .../docs/src/ref/parameter_optimization.md | 0 .../{2 => 3}/Gen.jl/docs/src/ref/pf.md | 0 .../Gen.jl/docs/src/ref/selections.md | 0 .../Gen.jl/docs/src/ref/trace_translators.md | 0 .../{2 => 3}/Gen.jl/docs/src/ref/vi.md | 0 .../{2 => 3}/Gen.jl/docs/src/tutorials.md | 0 .../pkgs-ta/{2 => 3}/Gen.jl/docs/tex/mcmc.tex | 0 .../{2 => 3}/Gen.jl/docs/tex/references.bib | 0 .../pkgs-ta/{2 => 3}/Gen.jl/src/Gen.jl | 0 .../pkgs-ta/{2 => 3}/Gen.jl/src/address.jl | 0 .../pkgs-ta/{2 => 3}/Gen.jl/src/backprop.jl | 0 .../Gen.jl/src/builtin_optimization.jl | 0 .../pkgs-ta/{2 => 3}/Gen.jl/src/choice_map.jl | 0 .../pkgs-ta/{2 => 3}/Gen.jl/src/diff.jl | 0 .../pkgs-ta/{2 => 3}/Gen.jl/src/dsl/dsl.jl | 0 .../{2 => 3}/Gen.jl/src/dsl/dynamic.jl | 0 .../pkgs-ta/{2 => 3}/Gen.jl/src/dsl/static.jl | 0 .../{2 => 3}/Gen.jl/src/dynamic/assess.jl | 0 .../{2 => 3}/Gen.jl/src/dynamic/backprop.jl | 0 .../{2 => 3}/Gen.jl/src/dynamic/dynamic.jl | 0 .../{2 => 3}/Gen.jl/src/dynamic/generate.jl | 0 .../{2 => 3}/Gen.jl/src/dynamic/project.jl | 0 .../{2 => 3}/Gen.jl/src/dynamic/propose.jl | 0 .../{2 => 3}/Gen.jl/src/dynamic/regenerate.jl | 0 .../{2 => 3}/Gen.jl/src/dynamic/simulate.jl | 0 .../{2 => 3}/Gen.jl/src/dynamic/trace.jl | 0 .../{2 => 3}/Gen.jl/src/dynamic/update.jl | 0 .../{2 => 3}/Gen.jl/src/gen_fn_interface.jl | 0 .../Gen.jl/src/inference/elliptical_slice.jl | 0 .../{2 => 3}/Gen.jl/src/inference/hmc.jl | 0 .../Gen.jl/src/inference/importance.jl | 0 .../Gen.jl/src/inference/inference.jl | 0 .../Gen.jl/src/inference/kernel_dsl.jl | 0 .../{2 => 3}/Gen.jl/src/inference/mala.jl | 0 .../Gen.jl/src/inference/map_optimize.jl | 0 .../{2 => 3}/Gen.jl/src/inference/mh.jl | 0 .../Gen.jl/src/inference/particle_filter.jl | 0 .../Gen.jl/src/inference/trace_translators.jl | 0 .../{2 => 3}/Gen.jl/src/inference/train.jl | 0 .../Gen.jl/src/inference/variational.jl | 0 .../src/modeling_library/call_at/call_at.jl | 0 .../modeling_library/choice_at/choice_at.jl | 0 .../src/modeling_library/custom_determ.jl | 0 .../src/modeling_library/dist_dsl/dist_dsl.jl | 0 .../dist_dsl/relabeled_distribution.jl | 0 .../dist_dsl/transformed_distribution.jl | 0 .../distributions/bernoulli.jl | 0 .../modeling_library/distributions/beta.jl | 0 .../distributions/beta_uniform.jl | 0 .../modeling_library/distributions/binom.jl | 0 .../distributions/categorical.jl | 0 .../modeling_library/distributions/cauchy.jl | 0 .../distributions/distributions.jl | 0 .../distributions/exponential.jl | 0 .../modeling_library/distributions/gamma.jl | 0 .../distributions/geometric.jl | 0 .../distributions/inv_gamma.jl | 0 .../modeling_library/distributions/laplace.jl | 0 .../distributions/mvnormal.jl | 0 .../distributions/neg_binom.jl | 0 .../modeling_library/distributions/normal.jl | 0 .../distributions/piecewise_uniform.jl | 0 .../modeling_library/distributions/poisson.jl | 0 .../distributions/uniform_continuous.jl | 0 .../distributions/uniform_discrete.jl | 0 .../Gen.jl/src/modeling_library/map/assess.jl | 0 .../src/modeling_library/map/backprop.jl | 0 .../src/modeling_library/map/generate.jl | 0 .../modeling_library/map/generic_update.jl | 0 .../Gen.jl/src/modeling_library/map/map.jl | 0 .../src/modeling_library/map/propose.jl | 0 .../src/modeling_library/map/regenerate.jl | 0 .../src/modeling_library/map/simulate.jl | 0 .../Gen.jl/src/modeling_library/map/update.jl | 0 .../Gen.jl/src/modeling_library/mixture.jl | 0 .../src/modeling_library/modeling_library.jl | 0 .../src/modeling_library/recurse/recurse.jl | 0 .../src/modeling_library/switch/assess.jl | 0 .../src/modeling_library/switch/backprop.jl | 0 .../src/modeling_library/switch/generate.jl | 0 .../src/modeling_library/switch/propose.jl | 0 .../src/modeling_library/switch/regenerate.jl | 0 .../src/modeling_library/switch/simulate.jl | 0 .../src/modeling_library/switch/switch.jl | 0 .../src/modeling_library/switch/trace.jl | 0 .../src/modeling_library/switch/update.jl | 0 .../src/modeling_library/unfold/assess.jl | 0 .../src/modeling_library/unfold/backprop.jl | 0 .../src/modeling_library/unfold/generate.jl | 0 .../modeling_library/unfold/generic_update.jl | 0 .../src/modeling_library/unfold/propose.jl | 0 .../src/modeling_library/unfold/regenerate.jl | 0 .../src/modeling_library/unfold/simulate.jl | 0 .../src/modeling_library/unfold/unfold.jl | 0 .../src/modeling_library/unfold/update.jl | 0 .../Gen.jl/src/modeling_library/vector.jl | 0 .../{2 => 3}/Gen.jl/src/optimization.jl | 0 .../{2 => 3}/Gen.jl/src/static_ir/backprop.jl | 0 .../{2 => 3}/Gen.jl/src/static_ir/dag.jl | 0 .../{2 => 3}/Gen.jl/src/static_ir/generate.jl | 0 .../{2 => 3}/Gen.jl/src/static_ir/print_ir.jl | 0 .../{2 => 3}/Gen.jl/src/static_ir/project.jl | 0 .../Gen.jl/src/static_ir/render_ir.jl | 0 .../{2 => 3}/Gen.jl/src/static_ir/simulate.jl | 0 .../Gen.jl/src/static_ir/static_ir.jl | 0 .../{2 => 3}/Gen.jl/src/static_ir/trace.jl | 0 .../{2 => 3}/Gen.jl/src/static_ir/update.jl | 0 .../pkgs-ta/{2 => 3}/Gen.jl/src/trie.jl | 0 .../{2 => 3}/Gen.jl/test/assignment.jl | 0 .../pkgs-ta/{2 => 3}/Gen.jl/test/autodiff.jl | 0 .../pkgs-ta/{2 => 3}/Gen.jl/test/diff.jl | 0 .../pkgs-ta/{2 => 3}/Gen.jl/test/dsl/dsl.jl | 0 .../{2 => 3}/Gen.jl/test/dsl/dynamic_dsl.jl | 0 .../{2 => 3}/Gen.jl/test/dsl/macros.jl | 0 .../{2 => 3}/Gen.jl/test/dsl/static_dsl.jl | 0 .../{2 => 3}/Gen.jl/test/gen_fn_interface.jl | 0 .../Gen.jl/test/inference/elliptical_slice.jl | 0 .../{2 => 3}/Gen.jl/test/inference/hmc.jl | 0 .../test/inference/importance_sampling.jl | 0 .../Gen.jl/test/inference/inference.jl | 0 .../{2 => 3}/Gen.jl/test/inference/mala.jl | 0 .../Gen.jl/test/inference/map_optimize.jl | 0 .../{2 => 3}/Gen.jl/test/inference/mh.jl | 0 .../Gen.jl/test/inference/particle_filter.jl | 0 .../test/inference/trace_translators.jl | 0 .../{2 => 3}/Gen.jl/test/inference/train.jl | 0 .../Gen.jl/test/inference/variational.jl | 0 .../Gen.jl/test/modeling_library/call_at.jl | 0 .../Gen.jl/test/modeling_library/choice_at.jl | 0 .../test/modeling_library/custom_determ.jl | 0 .../Gen.jl/test/modeling_library/dist_dsl.jl | 0 .../test/modeling_library/distributions.jl | 0 .../Gen.jl/test/modeling_library/map.jl | 0 .../Gen.jl/test/modeling_library/mixture.jl | 0 .../test/modeling_library/modeling_library.jl | 0 .../Gen.jl/test/modeling_library/recurse.jl | 0 .../Gen.jl/test/modeling_library/switch.jl | 0 .../Gen.jl/test/modeling_library/unfold.jl | 0 .../{2 => 3}/Gen.jl/test/optional_args.jl | 0 .../pkgs-ta/{2 => 3}/Gen.jl/test/runtests.jl | 0 .../pkgs-ta/{2 => 3}/Gen.jl/test/selection.jl | 0 .../Gen.jl/test/static_ir/static_ir.jl | 0 .../{2 => 3}/Gen.jl/test/tilde_sugar.jl | 0 .../test-files/pkgs-ta/3/YaoSym.jl/.gitignore | 9 + test/test-files/pkgs-ta/3/YaoSym.jl/LICENSE | 203 ++++++++++++++++++ .../pkgs-ta/3/YaoSym.jl/Project.toml | 28 +++ test/test-files/pkgs-ta/3/YaoSym.jl/README.md | 3 + .../pkgs-ta/3/YaoSym.jl/docs/Project.toml | 7 + .../pkgs-ta/3/YaoSym.jl/docs/make.jl | 10 + .../pkgs-ta/3/YaoSym.jl/docs/src/index.md | 9 + .../pkgs-ta/3/YaoSym.jl/example/symad.jl | 37 ++++ .../pkgs-ta/3/YaoSym.jl/example/symad2.jl | 16 ++ .../pkgs-ta/3/YaoSym.jl/src/YaoSym.jl | 11 + .../pkgs-ta/3/YaoSym.jl/src/register.jl | 164 ++++++++++++++ .../3/YaoSym.jl/src/symengine/backend.jl | 8 + .../3/YaoSym.jl/src/symengine/blocks.jl | 166 ++++++++++++++ .../3/YaoSym.jl/src/symengine/instruct.jl | 54 +++++ .../3/YaoSym.jl/src/symengine/patch.jl | 54 +++++ .../3/YaoSym.jl/src/symengine/register.jl | 72 +++++++ .../pkgs-ta/3/YaoSym.jl/test/register.jl | 21 ++ .../pkgs-ta/3/YaoSym.jl/test/runtests.jl | 9 + .../3/YaoSym.jl/test/symengine/backend.jl | 13 ++ .../3/YaoSym.jl/test/symengine/blocks.jl | 126 +++++++++++ .../3/YaoSym.jl/test/symengine/instruct.jl | 43 ++++ .../3/YaoSym.jl/test/symengine/register.jl | 16 ++ 316 files changed, 1127 insertions(+), 25 deletions(-) rename test/test-files/pkgs-ta/{2 => 3}/DataStructures.jl/.codecov.yml (100%) rename test/test-files/pkgs-ta/{2 => 3}/DataStructures.jl/.github/workflows/CI.yml (100%) rename test/test-files/pkgs-ta/{2 => 3}/DataStructures.jl/.github/workflows/TagBot.yml (100%) rename test/test-files/pkgs-ta/{2 => 3}/DataStructures.jl/.gitignore (100%) rename test/test-files/pkgs-ta/{2 => 3}/DataStructures.jl/Changelog.md (100%) rename test/test-files/pkgs-ta/{2 => 3}/DataStructures.jl/License.md (100%) rename test/test-files/pkgs-ta/{2 => 3}/DataStructures.jl/Project.toml (100%) rename test/test-files/pkgs-ta/{2 => 3}/DataStructures.jl/README.md (100%) rename test/test-files/pkgs-ta/{2 => 3}/DataStructures.jl/benchmark/Project.toml (100%) rename test/test-files/pkgs-ta/{2 => 3}/DataStructures.jl/benchmark/README.md (100%) rename test/test-files/pkgs-ta/{2 => 3}/DataStructures.jl/benchmark/bench_heap.jl (100%) rename test/test-files/pkgs-ta/{2 => 3}/DataStructures.jl/benchmark/bench_sparse_int_set.jl (100%) rename test/test-files/pkgs-ta/{2 => 3}/DataStructures.jl/benchmark/benchmarks.jl (100%) rename test/test-files/pkgs-ta/{2 => 3}/DataStructures.jl/benchmark/incrementalrunjudge.jl (100%) rename test/test-files/pkgs-ta/{2 => 3}/DataStructures.jl/benchmark/pprinthelper.jl (100%) rename test/test-files/pkgs-ta/{2 => 3}/DataStructures.jl/benchmark/pprintjudge.jl (100%) rename test/test-files/pkgs-ta/{2 => 3}/DataStructures.jl/benchmark/runbenchmarks.jl (100%) rename test/test-files/pkgs-ta/{2 => 3}/DataStructures.jl/benchmark/runjudge.jl (100%) rename test/test-files/pkgs-ta/{2 => 3}/DataStructures.jl/docs/Makefile (100%) rename test/test-files/pkgs-ta/{2 => 3}/DataStructures.jl/docs/Project.toml (100%) rename test/test-files/pkgs-ta/{2 => 3}/DataStructures.jl/docs/make.jl (100%) rename test/test-files/pkgs-ta/{2 => 3}/DataStructures.jl/docs/src/accumulators.md (100%) rename test/test-files/pkgs-ta/{2 => 3}/DataStructures.jl/docs/src/avl_tree.md (100%) rename test/test-files/pkgs-ta/{2 => 3}/DataStructures.jl/docs/src/circ_buffer.md (100%) rename test/test-files/pkgs-ta/{2 => 3}/DataStructures.jl/docs/src/circ_deque.md (100%) rename test/test-files/pkgs-ta/{2 => 3}/DataStructures.jl/docs/src/default_dict.md (100%) rename test/test-files/pkgs-ta/{2 => 3}/DataStructures.jl/docs/src/deque.md (100%) rename test/test-files/pkgs-ta/{2 => 3}/DataStructures.jl/docs/src/dibit_vector.md (100%) rename test/test-files/pkgs-ta/{2 => 3}/DataStructures.jl/docs/src/disjoint_sets.md (100%) rename test/test-files/pkgs-ta/{2 => 3}/DataStructures.jl/docs/src/fenwick.md (100%) rename test/test-files/pkgs-ta/{2 => 3}/DataStructures.jl/docs/src/heaps.md (100%) rename test/test-files/pkgs-ta/{2 => 3}/DataStructures.jl/docs/src/index.md (100%) rename test/test-files/pkgs-ta/{2 => 3}/DataStructures.jl/docs/src/intset.md (100%) rename test/test-files/pkgs-ta/{2 => 3}/DataStructures.jl/docs/src/linked_list.md (100%) rename test/test-files/pkgs-ta/{2 => 3}/DataStructures.jl/docs/src/mutable_linked_list.md (100%) rename test/test-files/pkgs-ta/{2 => 3}/DataStructures.jl/docs/src/ordered_containers.md (100%) rename test/test-files/pkgs-ta/{2 => 3}/DataStructures.jl/docs/src/priority-queue.md (100%) rename test/test-files/pkgs-ta/{2 => 3}/DataStructures.jl/docs/src/red_black_tree.md (100%) rename test/test-files/pkgs-ta/{2 => 3}/DataStructures.jl/docs/src/robin_dict.md (100%) rename test/test-files/pkgs-ta/{2 => 3}/DataStructures.jl/docs/src/sorted_containers.md (100%) rename test/test-files/pkgs-ta/{2 => 3}/DataStructures.jl/docs/src/sparse_int_set.md (100%) rename test/test-files/pkgs-ta/{2 => 3}/DataStructures.jl/docs/src/splay_tree.md (100%) rename test/test-files/pkgs-ta/{2 => 3}/DataStructures.jl/docs/src/stack_and_queue.md (100%) rename test/test-files/pkgs-ta/{2 => 3}/DataStructures.jl/docs/src/swiss_dict.md (100%) rename test/test-files/pkgs-ta/{2 => 3}/DataStructures.jl/docs/src/trie.md (100%) rename test/test-files/pkgs-ta/{2 => 3}/DataStructures.jl/src/DataStructures.jl (100%) rename test/test-files/pkgs-ta/{2 => 3}/DataStructures.jl/src/accumulator.jl (100%) rename test/test-files/pkgs-ta/{2 => 3}/DataStructures.jl/src/avl_tree.jl (100%) rename test/test-files/pkgs-ta/{2 => 3}/DataStructures.jl/src/balanced_tree.jl (100%) rename test/test-files/pkgs-ta/{2 => 3}/DataStructures.jl/src/circ_deque.jl (100%) rename test/test-files/pkgs-ta/{2 => 3}/DataStructures.jl/src/circular_buffer.jl (100%) rename test/test-files/pkgs-ta/{2 => 3}/DataStructures.jl/src/container_loops.jl (100%) rename test/test-files/pkgs-ta/{2 => 3}/DataStructures.jl/src/default_dict.jl (100%) rename test/test-files/pkgs-ta/{2 => 3}/DataStructures.jl/src/delegate.jl (100%) rename test/test-files/pkgs-ta/{2 => 3}/DataStructures.jl/src/deprecations.jl (100%) rename test/test-files/pkgs-ta/{2 => 3}/DataStructures.jl/src/deque.jl (100%) rename test/test-files/pkgs-ta/{2 => 3}/DataStructures.jl/src/dibit_vector.jl (100%) rename test/test-files/pkgs-ta/{2 => 3}/DataStructures.jl/src/dict_support.jl (100%) rename test/test-files/pkgs-ta/{2 => 3}/DataStructures.jl/src/disjoint_set.jl (100%) rename test/test-files/pkgs-ta/{2 => 3}/DataStructures.jl/src/fenwick.jl (100%) rename test/test-files/pkgs-ta/{2 => 3}/DataStructures.jl/src/heaps.jl (100%) rename test/test-files/pkgs-ta/{2 => 3}/DataStructures.jl/src/heaps/arrays_as_heaps.jl (100%) rename test/test-files/pkgs-ta/{2 => 3}/DataStructures.jl/src/heaps/binary_heap.jl (100%) rename test/test-files/pkgs-ta/{2 => 3}/DataStructures.jl/src/heaps/minmax_heap.jl (100%) rename test/test-files/pkgs-ta/{2 => 3}/DataStructures.jl/src/heaps/mutable_binary_heap.jl (100%) rename test/test-files/pkgs-ta/{2 => 3}/DataStructures.jl/src/int_set.jl (100%) rename test/test-files/pkgs-ta/{2 => 3}/DataStructures.jl/src/list.jl (100%) rename test/test-files/pkgs-ta/{2 => 3}/DataStructures.jl/src/multi_dict.jl (100%) rename test/test-files/pkgs-ta/{2 => 3}/DataStructures.jl/src/mutable_list.jl (100%) rename test/test-files/pkgs-ta/{2 => 3}/DataStructures.jl/src/ordered_robin_dict.jl (100%) rename test/test-files/pkgs-ta/{2 => 3}/DataStructures.jl/src/priorityqueue.jl (100%) rename test/test-files/pkgs-ta/{2 => 3}/DataStructures.jl/src/queue.jl (100%) rename test/test-files/pkgs-ta/{2 => 3}/DataStructures.jl/src/red_black_tree.jl (100%) rename test/test-files/pkgs-ta/{2 => 3}/DataStructures.jl/src/robin_dict.jl (100%) rename test/test-files/pkgs-ta/{2 => 3}/DataStructures.jl/src/sorted_dict.jl (100%) rename test/test-files/pkgs-ta/{2 => 3}/DataStructures.jl/src/sorted_multi_dict.jl (100%) rename test/test-files/pkgs-ta/{2 => 3}/DataStructures.jl/src/sorted_set.jl (100%) rename test/test-files/pkgs-ta/{2 => 3}/DataStructures.jl/src/sparse_int_set.jl (100%) rename test/test-files/pkgs-ta/{2 => 3}/DataStructures.jl/src/splay_tree.jl (100%) rename test/test-files/pkgs-ta/{2 => 3}/DataStructures.jl/src/stack.jl (100%) rename test/test-files/pkgs-ta/{2 => 3}/DataStructures.jl/src/swiss_dict.jl (100%) rename test/test-files/pkgs-ta/{2 => 3}/DataStructures.jl/src/tokens.jl (100%) rename test/test-files/pkgs-ta/{2 => 3}/DataStructures.jl/src/tokens2.jl (100%) rename test/test-files/pkgs-ta/{2 => 3}/DataStructures.jl/src/trie.jl (100%) rename test/test-files/pkgs-ta/{2 => 3}/DataStructures.jl/test/README (100%) rename test/test-files/pkgs-ta/{2 => 3}/DataStructures.jl/test/REQUIRE (100%) rename test/test-files/pkgs-ta/{2 => 3}/DataStructures.jl/test/bench_deque.jl (100%) rename test/test-files/pkgs-ta/{2 => 3}/DataStructures.jl/test/bench_dict.jl (100%) rename test/test-files/pkgs-ta/{2 => 3}/DataStructures.jl/test/bench_disjoint_set.jl (100%) rename test/test-files/pkgs-ta/{2 => 3}/DataStructures.jl/test/bench_heaps.jl (100%) rename test/test-files/pkgs-ta/{2 => 3}/DataStructures.jl/test/runtests.jl (100%) rename test/test-files/pkgs-ta/{2 => 3}/DataStructures.jl/test/test_accumulator.jl (100%) rename test/test-files/pkgs-ta/{2 => 3}/DataStructures.jl/test/test_avl_tree.jl (100%) rename test/test-files/pkgs-ta/{2 => 3}/DataStructures.jl/test/test_binheap.jl (100%) rename test/test-files/pkgs-ta/{2 => 3}/DataStructures.jl/test/test_circ_deque.jl (100%) rename test/test-files/pkgs-ta/{2 => 3}/DataStructures.jl/test/test_circular_buffer.jl (100%) rename test/test-files/pkgs-ta/{2 => 3}/DataStructures.jl/test/test_default_dict.jl (100%) rename test/test-files/pkgs-ta/{2 => 3}/DataStructures.jl/test/test_deprecations.jl (100%) rename test/test-files/pkgs-ta/{2 => 3}/DataStructures.jl/test/test_deque.jl (100%) rename test/test-files/pkgs-ta/{2 => 3}/DataStructures.jl/test/test_dibit_vector.jl (100%) rename test/test-files/pkgs-ta/{2 => 3}/DataStructures.jl/test/test_disjoint_set.jl (100%) rename test/test-files/pkgs-ta/{2 => 3}/DataStructures.jl/test/test_fenwick.jl (100%) rename test/test-files/pkgs-ta/{2 => 3}/DataStructures.jl/test/test_int_set.jl (100%) rename test/test-files/pkgs-ta/{2 => 3}/DataStructures.jl/test/test_list.jl (100%) rename test/test-files/pkgs-ta/{2 => 3}/DataStructures.jl/test/test_minmax_heap.jl (100%) rename test/test-files/pkgs-ta/{2 => 3}/DataStructures.jl/test/test_multi_dict.jl (100%) rename test/test-files/pkgs-ta/{2 => 3}/DataStructures.jl/test/test_mutable_binheap.jl (100%) rename test/test-files/pkgs-ta/{2 => 3}/DataStructures.jl/test/test_mutable_list.jl (100%) rename test/test-files/pkgs-ta/{2 => 3}/DataStructures.jl/test/test_ordered_robin_dict.jl (100%) rename test/test-files/pkgs-ta/{2 => 3}/DataStructures.jl/test/test_priority_queue.jl (100%) rename test/test-files/pkgs-ta/{2 => 3}/DataStructures.jl/test/test_queue.jl (100%) rename test/test-files/pkgs-ta/{2 => 3}/DataStructures.jl/test/test_red_black_tree.jl (100%) rename test/test-files/pkgs-ta/{2 => 3}/DataStructures.jl/test/test_robin_dict.jl (100%) rename test/test-files/pkgs-ta/{2 => 3}/DataStructures.jl/test/test_sorted_containers.jl (100%) rename test/test-files/pkgs-ta/{2 => 3}/DataStructures.jl/test/test_sorting.jl (100%) rename test/test-files/pkgs-ta/{2 => 3}/DataStructures.jl/test/test_sparse_int_set.jl (100%) rename test/test-files/pkgs-ta/{2 => 3}/DataStructures.jl/test/test_splay_tree.jl (100%) rename test/test-files/pkgs-ta/{2 => 3}/DataStructures.jl/test/test_stack.jl (100%) rename test/test-files/pkgs-ta/{2 => 3}/DataStructures.jl/test/test_swiss_dict.jl (100%) rename test/test-files/pkgs-ta/{2 => 3}/DataStructures.jl/test/test_trie.jl (100%) create mode 100644 test/test-files/pkgs-ta/3/Empty.jl/src/Empty.jl rename test/test-files/pkgs-ta/{2 => 3}/Gen.jl/.github/workflows/CompatHelper.yml (100%) rename test/test-files/pkgs-ta/{2 => 3}/Gen.jl/.gitignore (100%) rename test/test-files/pkgs-ta/{2 => 3}/Gen.jl/.travis.yml (100%) rename test/test-files/pkgs-ta/{2 => 3}/Gen.jl/CONTRIBUTING.md (100%) rename test/test-files/pkgs-ta/{2 => 3}/Gen.jl/LICENSE (100%) rename test/test-files/pkgs-ta/{2 => 3}/Gen.jl/Project.toml (100%) rename test/test-files/pkgs-ta/{2 => 3}/Gen.jl/README.md (100%) rename test/test-files/pkgs-ta/{2 => 3}/Gen.jl/WEBSITE.md (100%) rename test/test-files/pkgs-ta/{2 => 3}/Gen.jl/docker/Dockerfile (100%) rename test/test-files/pkgs-ta/{2 => 3}/Gen.jl/docker/ubuntu1604 (100%) rename test/test-files/pkgs-ta/{2 => 3}/Gen.jl/docs/.gitignore (100%) rename test/test-files/pkgs-ta/{2 => 3}/Gen.jl/docs/Project.toml (100%) rename test/test-files/pkgs-ta/{2 => 3}/Gen.jl/docs/build_docs_locally.sh (100%) rename test/test-files/pkgs-ta/{2 => 3}/Gen.jl/docs/make.jl (100%) rename test/test-files/pkgs-ta/{2 => 3}/Gen.jl/docs/src/getting_started.md (100%) rename test/test-files/pkgs-ta/{2 => 3}/Gen.jl/docs/src/index.md (100%) rename test/test-files/pkgs-ta/{2 => 3}/Gen.jl/docs/src/ref/choice_maps.md (100%) rename test/test-files/pkgs-ta/{2 => 3}/Gen.jl/docs/src/ref/combinators.md (100%) rename test/test-files/pkgs-ta/{2 => 3}/Gen.jl/docs/src/ref/distributions.md (100%) rename test/test-files/pkgs-ta/{2 => 3}/Gen.jl/docs/src/ref/extending.md (100%) rename test/test-files/pkgs-ta/{2 => 3}/Gen.jl/docs/src/ref/gfi.md (100%) rename test/test-files/pkgs-ta/{2 => 3}/Gen.jl/docs/src/ref/importance.md (100%) rename test/test-files/pkgs-ta/{2 => 3}/Gen.jl/docs/src/ref/internals/language_implementation.md (100%) rename test/test-files/pkgs-ta/{2 => 3}/Gen.jl/docs/src/ref/internals/parameter_optimization.md (100%) rename test/test-files/pkgs-ta/{2 => 3}/Gen.jl/docs/src/ref/learning.md (100%) rename test/test-files/pkgs-ta/{2 => 3}/Gen.jl/docs/src/ref/map.md (100%) rename test/test-files/pkgs-ta/{2 => 3}/Gen.jl/docs/src/ref/mcmc.md (100%) rename test/test-files/pkgs-ta/{2 => 3}/Gen.jl/docs/src/ref/modeling.md (100%) rename test/test-files/pkgs-ta/{2 => 3}/Gen.jl/docs/src/ref/parameter_optimization.md (100%) rename test/test-files/pkgs-ta/{2 => 3}/Gen.jl/docs/src/ref/pf.md (100%) rename test/test-files/pkgs-ta/{2 => 3}/Gen.jl/docs/src/ref/selections.md (100%) rename test/test-files/pkgs-ta/{2 => 3}/Gen.jl/docs/src/ref/trace_translators.md (100%) rename test/test-files/pkgs-ta/{2 => 3}/Gen.jl/docs/src/ref/vi.md (100%) rename test/test-files/pkgs-ta/{2 => 3}/Gen.jl/docs/src/tutorials.md (100%) rename test/test-files/pkgs-ta/{2 => 3}/Gen.jl/docs/tex/mcmc.tex (100%) rename test/test-files/pkgs-ta/{2 => 3}/Gen.jl/docs/tex/references.bib (100%) rename test/test-files/pkgs-ta/{2 => 3}/Gen.jl/src/Gen.jl (100%) rename test/test-files/pkgs-ta/{2 => 3}/Gen.jl/src/address.jl (100%) rename test/test-files/pkgs-ta/{2 => 3}/Gen.jl/src/backprop.jl (100%) rename test/test-files/pkgs-ta/{2 => 3}/Gen.jl/src/builtin_optimization.jl (100%) rename test/test-files/pkgs-ta/{2 => 3}/Gen.jl/src/choice_map.jl (100%) rename test/test-files/pkgs-ta/{2 => 3}/Gen.jl/src/diff.jl (100%) rename test/test-files/pkgs-ta/{2 => 3}/Gen.jl/src/dsl/dsl.jl (100%) rename test/test-files/pkgs-ta/{2 => 3}/Gen.jl/src/dsl/dynamic.jl (100%) rename test/test-files/pkgs-ta/{2 => 3}/Gen.jl/src/dsl/static.jl (100%) rename test/test-files/pkgs-ta/{2 => 3}/Gen.jl/src/dynamic/assess.jl (100%) rename test/test-files/pkgs-ta/{2 => 3}/Gen.jl/src/dynamic/backprop.jl (100%) rename test/test-files/pkgs-ta/{2 => 3}/Gen.jl/src/dynamic/dynamic.jl (100%) rename test/test-files/pkgs-ta/{2 => 3}/Gen.jl/src/dynamic/generate.jl (100%) rename test/test-files/pkgs-ta/{2 => 3}/Gen.jl/src/dynamic/project.jl (100%) rename test/test-files/pkgs-ta/{2 => 3}/Gen.jl/src/dynamic/propose.jl (100%) rename test/test-files/pkgs-ta/{2 => 3}/Gen.jl/src/dynamic/regenerate.jl (100%) rename test/test-files/pkgs-ta/{2 => 3}/Gen.jl/src/dynamic/simulate.jl (100%) rename test/test-files/pkgs-ta/{2 => 3}/Gen.jl/src/dynamic/trace.jl (100%) rename test/test-files/pkgs-ta/{2 => 3}/Gen.jl/src/dynamic/update.jl (100%) rename test/test-files/pkgs-ta/{2 => 3}/Gen.jl/src/gen_fn_interface.jl (100%) rename test/test-files/pkgs-ta/{2 => 3}/Gen.jl/src/inference/elliptical_slice.jl (100%) rename test/test-files/pkgs-ta/{2 => 3}/Gen.jl/src/inference/hmc.jl (100%) rename test/test-files/pkgs-ta/{2 => 3}/Gen.jl/src/inference/importance.jl (100%) rename test/test-files/pkgs-ta/{2 => 3}/Gen.jl/src/inference/inference.jl (100%) rename test/test-files/pkgs-ta/{2 => 3}/Gen.jl/src/inference/kernel_dsl.jl (100%) rename test/test-files/pkgs-ta/{2 => 3}/Gen.jl/src/inference/mala.jl (100%) rename test/test-files/pkgs-ta/{2 => 3}/Gen.jl/src/inference/map_optimize.jl (100%) rename test/test-files/pkgs-ta/{2 => 3}/Gen.jl/src/inference/mh.jl (100%) rename test/test-files/pkgs-ta/{2 => 3}/Gen.jl/src/inference/particle_filter.jl (100%) rename test/test-files/pkgs-ta/{2 => 3}/Gen.jl/src/inference/trace_translators.jl (100%) rename test/test-files/pkgs-ta/{2 => 3}/Gen.jl/src/inference/train.jl (100%) rename test/test-files/pkgs-ta/{2 => 3}/Gen.jl/src/inference/variational.jl (100%) rename test/test-files/pkgs-ta/{2 => 3}/Gen.jl/src/modeling_library/call_at/call_at.jl (100%) rename test/test-files/pkgs-ta/{2 => 3}/Gen.jl/src/modeling_library/choice_at/choice_at.jl (100%) rename test/test-files/pkgs-ta/{2 => 3}/Gen.jl/src/modeling_library/custom_determ.jl (100%) rename test/test-files/pkgs-ta/{2 => 3}/Gen.jl/src/modeling_library/dist_dsl/dist_dsl.jl (100%) rename test/test-files/pkgs-ta/{2 => 3}/Gen.jl/src/modeling_library/dist_dsl/relabeled_distribution.jl (100%) rename test/test-files/pkgs-ta/{2 => 3}/Gen.jl/src/modeling_library/dist_dsl/transformed_distribution.jl (100%) rename test/test-files/pkgs-ta/{2 => 3}/Gen.jl/src/modeling_library/distributions/bernoulli.jl (100%) rename test/test-files/pkgs-ta/{2 => 3}/Gen.jl/src/modeling_library/distributions/beta.jl (100%) rename test/test-files/pkgs-ta/{2 => 3}/Gen.jl/src/modeling_library/distributions/beta_uniform.jl (100%) rename test/test-files/pkgs-ta/{2 => 3}/Gen.jl/src/modeling_library/distributions/binom.jl (100%) rename test/test-files/pkgs-ta/{2 => 3}/Gen.jl/src/modeling_library/distributions/categorical.jl (100%) rename test/test-files/pkgs-ta/{2 => 3}/Gen.jl/src/modeling_library/distributions/cauchy.jl (100%) rename test/test-files/pkgs-ta/{2 => 3}/Gen.jl/src/modeling_library/distributions/distributions.jl (100%) rename test/test-files/pkgs-ta/{2 => 3}/Gen.jl/src/modeling_library/distributions/exponential.jl (100%) rename test/test-files/pkgs-ta/{2 => 3}/Gen.jl/src/modeling_library/distributions/gamma.jl (100%) rename test/test-files/pkgs-ta/{2 => 3}/Gen.jl/src/modeling_library/distributions/geometric.jl (100%) rename test/test-files/pkgs-ta/{2 => 3}/Gen.jl/src/modeling_library/distributions/inv_gamma.jl (100%) rename test/test-files/pkgs-ta/{2 => 3}/Gen.jl/src/modeling_library/distributions/laplace.jl (100%) rename test/test-files/pkgs-ta/{2 => 3}/Gen.jl/src/modeling_library/distributions/mvnormal.jl (100%) rename test/test-files/pkgs-ta/{2 => 3}/Gen.jl/src/modeling_library/distributions/neg_binom.jl (100%) rename test/test-files/pkgs-ta/{2 => 3}/Gen.jl/src/modeling_library/distributions/normal.jl (100%) rename test/test-files/pkgs-ta/{2 => 3}/Gen.jl/src/modeling_library/distributions/piecewise_uniform.jl (100%) rename test/test-files/pkgs-ta/{2 => 3}/Gen.jl/src/modeling_library/distributions/poisson.jl (100%) rename test/test-files/pkgs-ta/{2 => 3}/Gen.jl/src/modeling_library/distributions/uniform_continuous.jl (100%) rename test/test-files/pkgs-ta/{2 => 3}/Gen.jl/src/modeling_library/distributions/uniform_discrete.jl (100%) rename test/test-files/pkgs-ta/{2 => 3}/Gen.jl/src/modeling_library/map/assess.jl (100%) rename test/test-files/pkgs-ta/{2 => 3}/Gen.jl/src/modeling_library/map/backprop.jl (100%) rename test/test-files/pkgs-ta/{2 => 3}/Gen.jl/src/modeling_library/map/generate.jl (100%) rename test/test-files/pkgs-ta/{2 => 3}/Gen.jl/src/modeling_library/map/generic_update.jl (100%) rename test/test-files/pkgs-ta/{2 => 3}/Gen.jl/src/modeling_library/map/map.jl (100%) rename test/test-files/pkgs-ta/{2 => 3}/Gen.jl/src/modeling_library/map/propose.jl (100%) rename test/test-files/pkgs-ta/{2 => 3}/Gen.jl/src/modeling_library/map/regenerate.jl (100%) rename test/test-files/pkgs-ta/{2 => 3}/Gen.jl/src/modeling_library/map/simulate.jl (100%) rename test/test-files/pkgs-ta/{2 => 3}/Gen.jl/src/modeling_library/map/update.jl (100%) rename test/test-files/pkgs-ta/{2 => 3}/Gen.jl/src/modeling_library/mixture.jl (100%) rename test/test-files/pkgs-ta/{2 => 3}/Gen.jl/src/modeling_library/modeling_library.jl (100%) rename test/test-files/pkgs-ta/{2 => 3}/Gen.jl/src/modeling_library/recurse/recurse.jl (100%) rename test/test-files/pkgs-ta/{2 => 3}/Gen.jl/src/modeling_library/switch/assess.jl (100%) rename test/test-files/pkgs-ta/{2 => 3}/Gen.jl/src/modeling_library/switch/backprop.jl (100%) rename test/test-files/pkgs-ta/{2 => 3}/Gen.jl/src/modeling_library/switch/generate.jl (100%) rename test/test-files/pkgs-ta/{2 => 3}/Gen.jl/src/modeling_library/switch/propose.jl (100%) rename test/test-files/pkgs-ta/{2 => 3}/Gen.jl/src/modeling_library/switch/regenerate.jl (100%) rename test/test-files/pkgs-ta/{2 => 3}/Gen.jl/src/modeling_library/switch/simulate.jl (100%) rename test/test-files/pkgs-ta/{2 => 3}/Gen.jl/src/modeling_library/switch/switch.jl (100%) rename test/test-files/pkgs-ta/{2 => 3}/Gen.jl/src/modeling_library/switch/trace.jl (100%) rename test/test-files/pkgs-ta/{2 => 3}/Gen.jl/src/modeling_library/switch/update.jl (100%) rename test/test-files/pkgs-ta/{2 => 3}/Gen.jl/src/modeling_library/unfold/assess.jl (100%) rename test/test-files/pkgs-ta/{2 => 3}/Gen.jl/src/modeling_library/unfold/backprop.jl (100%) rename test/test-files/pkgs-ta/{2 => 3}/Gen.jl/src/modeling_library/unfold/generate.jl (100%) rename test/test-files/pkgs-ta/{2 => 3}/Gen.jl/src/modeling_library/unfold/generic_update.jl (100%) rename test/test-files/pkgs-ta/{2 => 3}/Gen.jl/src/modeling_library/unfold/propose.jl (100%) rename test/test-files/pkgs-ta/{2 => 3}/Gen.jl/src/modeling_library/unfold/regenerate.jl (100%) rename test/test-files/pkgs-ta/{2 => 3}/Gen.jl/src/modeling_library/unfold/simulate.jl (100%) rename test/test-files/pkgs-ta/{2 => 3}/Gen.jl/src/modeling_library/unfold/unfold.jl (100%) rename test/test-files/pkgs-ta/{2 => 3}/Gen.jl/src/modeling_library/unfold/update.jl (100%) rename test/test-files/pkgs-ta/{2 => 3}/Gen.jl/src/modeling_library/vector.jl (100%) rename test/test-files/pkgs-ta/{2 => 3}/Gen.jl/src/optimization.jl (100%) rename test/test-files/pkgs-ta/{2 => 3}/Gen.jl/src/static_ir/backprop.jl (100%) rename test/test-files/pkgs-ta/{2 => 3}/Gen.jl/src/static_ir/dag.jl (100%) rename test/test-files/pkgs-ta/{2 => 3}/Gen.jl/src/static_ir/generate.jl (100%) rename test/test-files/pkgs-ta/{2 => 3}/Gen.jl/src/static_ir/print_ir.jl (100%) rename test/test-files/pkgs-ta/{2 => 3}/Gen.jl/src/static_ir/project.jl (100%) rename test/test-files/pkgs-ta/{2 => 3}/Gen.jl/src/static_ir/render_ir.jl (100%) rename test/test-files/pkgs-ta/{2 => 3}/Gen.jl/src/static_ir/simulate.jl (100%) rename test/test-files/pkgs-ta/{2 => 3}/Gen.jl/src/static_ir/static_ir.jl (100%) rename test/test-files/pkgs-ta/{2 => 3}/Gen.jl/src/static_ir/trace.jl (100%) rename test/test-files/pkgs-ta/{2 => 3}/Gen.jl/src/static_ir/update.jl (100%) rename test/test-files/pkgs-ta/{2 => 3}/Gen.jl/src/trie.jl (100%) rename test/test-files/pkgs-ta/{2 => 3}/Gen.jl/test/assignment.jl (100%) rename test/test-files/pkgs-ta/{2 => 3}/Gen.jl/test/autodiff.jl (100%) rename test/test-files/pkgs-ta/{2 => 3}/Gen.jl/test/diff.jl (100%) rename test/test-files/pkgs-ta/{2 => 3}/Gen.jl/test/dsl/dsl.jl (100%) rename test/test-files/pkgs-ta/{2 => 3}/Gen.jl/test/dsl/dynamic_dsl.jl (100%) rename test/test-files/pkgs-ta/{2 => 3}/Gen.jl/test/dsl/macros.jl (100%) rename test/test-files/pkgs-ta/{2 => 3}/Gen.jl/test/dsl/static_dsl.jl (100%) rename test/test-files/pkgs-ta/{2 => 3}/Gen.jl/test/gen_fn_interface.jl (100%) rename test/test-files/pkgs-ta/{2 => 3}/Gen.jl/test/inference/elliptical_slice.jl (100%) rename test/test-files/pkgs-ta/{2 => 3}/Gen.jl/test/inference/hmc.jl (100%) rename test/test-files/pkgs-ta/{2 => 3}/Gen.jl/test/inference/importance_sampling.jl (100%) rename test/test-files/pkgs-ta/{2 => 3}/Gen.jl/test/inference/inference.jl (100%) rename test/test-files/pkgs-ta/{2 => 3}/Gen.jl/test/inference/mala.jl (100%) rename test/test-files/pkgs-ta/{2 => 3}/Gen.jl/test/inference/map_optimize.jl (100%) rename test/test-files/pkgs-ta/{2 => 3}/Gen.jl/test/inference/mh.jl (100%) rename test/test-files/pkgs-ta/{2 => 3}/Gen.jl/test/inference/particle_filter.jl (100%) rename test/test-files/pkgs-ta/{2 => 3}/Gen.jl/test/inference/trace_translators.jl (100%) rename test/test-files/pkgs-ta/{2 => 3}/Gen.jl/test/inference/train.jl (100%) rename test/test-files/pkgs-ta/{2 => 3}/Gen.jl/test/inference/variational.jl (100%) rename test/test-files/pkgs-ta/{2 => 3}/Gen.jl/test/modeling_library/call_at.jl (100%) rename test/test-files/pkgs-ta/{2 => 3}/Gen.jl/test/modeling_library/choice_at.jl (100%) rename test/test-files/pkgs-ta/{2 => 3}/Gen.jl/test/modeling_library/custom_determ.jl (100%) rename test/test-files/pkgs-ta/{2 => 3}/Gen.jl/test/modeling_library/dist_dsl.jl (100%) rename test/test-files/pkgs-ta/{2 => 3}/Gen.jl/test/modeling_library/distributions.jl (100%) rename test/test-files/pkgs-ta/{2 => 3}/Gen.jl/test/modeling_library/map.jl (100%) rename test/test-files/pkgs-ta/{2 => 3}/Gen.jl/test/modeling_library/mixture.jl (100%) rename test/test-files/pkgs-ta/{2 => 3}/Gen.jl/test/modeling_library/modeling_library.jl (100%) rename test/test-files/pkgs-ta/{2 => 3}/Gen.jl/test/modeling_library/recurse.jl (100%) rename test/test-files/pkgs-ta/{2 => 3}/Gen.jl/test/modeling_library/switch.jl (100%) rename test/test-files/pkgs-ta/{2 => 3}/Gen.jl/test/modeling_library/unfold.jl (100%) rename test/test-files/pkgs-ta/{2 => 3}/Gen.jl/test/optional_args.jl (100%) rename test/test-files/pkgs-ta/{2 => 3}/Gen.jl/test/runtests.jl (100%) rename test/test-files/pkgs-ta/{2 => 3}/Gen.jl/test/selection.jl (100%) rename test/test-files/pkgs-ta/{2 => 3}/Gen.jl/test/static_ir/static_ir.jl (100%) rename test/test-files/pkgs-ta/{2 => 3}/Gen.jl/test/tilde_sugar.jl (100%) create mode 100644 test/test-files/pkgs-ta/3/YaoSym.jl/.gitignore create mode 100644 test/test-files/pkgs-ta/3/YaoSym.jl/LICENSE create mode 100644 test/test-files/pkgs-ta/3/YaoSym.jl/Project.toml create mode 100644 test/test-files/pkgs-ta/3/YaoSym.jl/README.md create mode 100644 test/test-files/pkgs-ta/3/YaoSym.jl/docs/Project.toml create mode 100644 test/test-files/pkgs-ta/3/YaoSym.jl/docs/make.jl create mode 100644 test/test-files/pkgs-ta/3/YaoSym.jl/docs/src/index.md create mode 100644 test/test-files/pkgs-ta/3/YaoSym.jl/example/symad.jl create mode 100644 test/test-files/pkgs-ta/3/YaoSym.jl/example/symad2.jl create mode 100644 test/test-files/pkgs-ta/3/YaoSym.jl/src/YaoSym.jl create mode 100644 test/test-files/pkgs-ta/3/YaoSym.jl/src/register.jl create mode 100644 test/test-files/pkgs-ta/3/YaoSym.jl/src/symengine/backend.jl create mode 100644 test/test-files/pkgs-ta/3/YaoSym.jl/src/symengine/blocks.jl create mode 100644 test/test-files/pkgs-ta/3/YaoSym.jl/src/symengine/instruct.jl create mode 100644 test/test-files/pkgs-ta/3/YaoSym.jl/src/symengine/patch.jl create mode 100644 test/test-files/pkgs-ta/3/YaoSym.jl/src/symengine/register.jl create mode 100644 test/test-files/pkgs-ta/3/YaoSym.jl/test/register.jl create mode 100644 test/test-files/pkgs-ta/3/YaoSym.jl/test/runtests.jl create mode 100644 test/test-files/pkgs-ta/3/YaoSym.jl/test/symengine/backend.jl create mode 100644 test/test-files/pkgs-ta/3/YaoSym.jl/test/symengine/blocks.jl create mode 100644 test/test-files/pkgs-ta/3/YaoSym.jl/test/symengine/instruct.jl create mode 100644 test/test-files/pkgs-ta/3/YaoSym.jl/test/symengine/register.jl diff --git a/src/types-analysis/pkg-process.jl b/src/types-analysis/pkg-process.jl index 6bedab2..14ea442 100644 --- a/src/types-analysis/pkg-process.jl +++ b/src/types-analysis/pkg-process.jl @@ -230,6 +230,12 @@ const ANALYSIS_COLS_ANNS = vcat( [:Error, :Warning], ANALYSIS_COLS_ANNS_NOERR ) +# const ANN_COLS = vcat( +# [:File, :Function, :Kind, :TypeAnnotation], +# ANALYSIS_COLS_ANNS, +# [:TypeVarsSummary] +# ) +# genEmptyAnnsDF() = DataFrame([col => [] for col in ANN_COLS]) analyzePkgTypeAnns(pkgPath :: AbstractString) :: Dict = begin failedResult = Dict( @@ -372,6 +378,12 @@ const ANALYSIS_COLS_DECLS = [ :VarCnt, :TyDeclUseSiteVariance, :SuperUseSiteVariance, :TyDeclImpUseSiteVariance, :SuperImpUseSiteVariance ] +# const DECL_COLS = vcat( +# [:File, :Name, :Kind, :TypeDeclaration, :Supertype], +# ANALYSIS_COLS_DECLS, +# [:ProcessedTypeDecl, :ProcessedSuper] +# ) +# genEmptyDeclsDF() = DataFrame([col => [] for col in DECL_COLS]) analyzePkgTypeDecls(pkgPath :: AbstractString) :: Dict = begin failedResult = Dict( @@ -420,7 +432,8 @@ analyzePkgTypeDecls(pkgPath :: AbstractString) :: Dict = begin :statsums => dfSumm.sum, :pkgwarn => errOrWarn ? [pkgPath] : [], :pkgusesite => (dataIsNotEmpty && - (dfSumm.sum[4] < totaltd || dfSumm.sum[5] < totaltd)) ? [pkgPath] : [], + (dfSumm.sum[4] < totaltd || dfSumm.sum[5] < totaltd)) ? + [pkgPath] : [], :tdsusvar => dftd, :tdsiusvar => dftdi, ) @@ -486,8 +499,13 @@ summarizeAnalysis(df :: DataFrame, analysisCols) = sum => :sum, cols = analysisCols ) : - DataFrame([col => [] for col in - [:variable, :mean, :min, :median, :max, :nmissing, :sum]]) + begin + dfSumm = DataFrame( + [col => fill(0, length(analysisCols)) for col in + [:mean, :min, :median, :max, :nmissing, :sum]]) + dfSumm.variable = analysisCols + dfSumm + end tryParseAndHandleSharp(str) = begin t = Meta.parse(str) diff --git a/test/pkg-process.jl b/test/pkg-process.jl index 654fc81..3f95c69 100644 --- a/test/pkg-process.jl +++ b/test/pkg-process.jl @@ -39,33 +39,33 @@ end mkdir(testFilePath("ta-info")) tainfo = collectAndSaveTypeInfo2CSV( - testFilePath("pkgs-ta/2"), testFilePath("ta-info/2") + testFilePath("pkgs-ta/3"), testFilePath("ta-info/3") ) @JuliaSub.status tainfo - @test isdir(testFilePath("ta-info/2")) - @test isdir(testFilePath("ta-info/2/DataStructures.jl")) - @test isfile(testFilePath("ta-info/2/DataStructures.jl/type-annotations.csv")) - @test isfile(testFilePath("ta-info/2/DataStructures.jl/type-declarations.csv")) - @test isdir(testFilePath("ta-info/2/Gen.jl")) - @test isfile(testFilePath("ta-info/2/Gen.jl/type-annotations.csv")) - @test isfile(testFilePath("ta-info/2/Gen.jl/type-declarations.csv")) + @test isdir(testFilePath("ta-info/3")) + @test isdir(testFilePath("ta-info/3/DataStructures.jl")) + @test isfile(testFilePath("ta-info/3/DataStructures.jl/type-annotations.csv")) + @test isfile(testFilePath("ta-info/3/DataStructures.jl/type-declarations.csv")) + @test isdir(testFilePath("ta-info/3/Gen.jl")) + @test isfile(testFilePath("ta-info/3/Gen.jl/type-annotations.csv")) + @test isfile(testFilePath("ta-info/3/Gen.jl/type-declarations.csv")) - tyanalysis = analyzePkgTypesAndSave2CSV(testFilePath("ta-info/2")) + tyanalysis = analyzePkgTypesAndSave2CSV(testFilePath("ta-info/3")) @JuliaSub.status tyanalysis - @test isfile(testFilePath("ta-info/2/DataStructures.jl/analyzed-type-annotations.csv")) - @test isfile(testFilePath("ta-info/2/DataStructures.jl/summary-type-annotations.csv")) - @test isfile(testFilePath("ta-info/2/Gen.jl/analyzed-type-annotations.csv")) - @test isfile(testFilePath("ta-info/2/Gen.jl/summary-type-annotations.csv")) - @test isfile(testFilePath("ta-info/2/DataStructures.jl/analyzed-type-declarations.csv")) - @test isfile(testFilePath("ta-info/2/DataStructures.jl/summary-type-declarations.csv")) - @test isfile(testFilePath("ta-info/2/Gen.jl/analyzed-type-declarations.csv")) - @test isfile(testFilePath("ta-info/2/Gen.jl/summary-type-declarations.csv")) + @test isfile(testFilePath("ta-info/3/DataStructures.jl/analyzed-type-annotations.csv")) + @test isfile(testFilePath("ta-info/3/DataStructures.jl/summary-type-annotations.csv")) + @test isfile(testFilePath("ta-info/3/Gen.jl/analyzed-type-annotations.csv")) + @test isfile(testFilePath("ta-info/3/Gen.jl/summary-type-annotations.csv")) + @test isfile(testFilePath("ta-info/3/DataStructures.jl/analyzed-type-declarations.csv")) + @test isfile(testFilePath("ta-info/3/DataStructures.jl/summary-type-declarations.csv")) + @test isfile(testFilePath("ta-info/3/Gen.jl/analyzed-type-declarations.csv")) + @test isfile(testFilePath("ta-info/3/Gen.jl/summary-type-declarations.csv")) - @test isfile(testFilePath("ta-info/2/interesting-type-annotations.csv")) - @test isfile(testFilePath("ta-info/2/non-use-site-type-annotations.csv")) - @test isfile(testFilePath("ta-info/2/non-imp-use-site-type-annotations.csv")) - @test isfile(testFilePath("ta-info/2/non-use-site-type-declarations.csv")) - @test isfile(testFilePath("ta-info/2/non-imp-use-site-type-declarations.csv")) + @test isfile(testFilePath("ta-info/3/interesting-type-annotations.csv")) + @test isfile(testFilePath("ta-info/3/non-use-site-type-annotations.csv")) + @test isfile(testFilePath("ta-info/3/non-imp-use-site-type-annotations.csv")) + @test isfile(testFilePath("ta-info/3/non-use-site-type-declarations.csv")) + @test isfile(testFilePath("ta-info/3/non-imp-use-site-type-declarations.csv")) tryrm(testFilePath("ta-info")) end diff --git a/test/test-files/pkgs-ta/2/DataStructures.jl/.codecov.yml b/test/test-files/pkgs-ta/3/DataStructures.jl/.codecov.yml similarity index 100% rename from test/test-files/pkgs-ta/2/DataStructures.jl/.codecov.yml rename to test/test-files/pkgs-ta/3/DataStructures.jl/.codecov.yml diff --git a/test/test-files/pkgs-ta/2/DataStructures.jl/.github/workflows/CI.yml b/test/test-files/pkgs-ta/3/DataStructures.jl/.github/workflows/CI.yml similarity index 100% rename from test/test-files/pkgs-ta/2/DataStructures.jl/.github/workflows/CI.yml rename to test/test-files/pkgs-ta/3/DataStructures.jl/.github/workflows/CI.yml diff --git a/test/test-files/pkgs-ta/2/DataStructures.jl/.github/workflows/TagBot.yml b/test/test-files/pkgs-ta/3/DataStructures.jl/.github/workflows/TagBot.yml similarity index 100% rename from test/test-files/pkgs-ta/2/DataStructures.jl/.github/workflows/TagBot.yml rename to test/test-files/pkgs-ta/3/DataStructures.jl/.github/workflows/TagBot.yml diff --git a/test/test-files/pkgs-ta/2/DataStructures.jl/.gitignore b/test/test-files/pkgs-ta/3/DataStructures.jl/.gitignore similarity index 100% rename from test/test-files/pkgs-ta/2/DataStructures.jl/.gitignore rename to test/test-files/pkgs-ta/3/DataStructures.jl/.gitignore diff --git a/test/test-files/pkgs-ta/2/DataStructures.jl/Changelog.md b/test/test-files/pkgs-ta/3/DataStructures.jl/Changelog.md similarity index 100% rename from test/test-files/pkgs-ta/2/DataStructures.jl/Changelog.md rename to test/test-files/pkgs-ta/3/DataStructures.jl/Changelog.md diff --git a/test/test-files/pkgs-ta/2/DataStructures.jl/License.md b/test/test-files/pkgs-ta/3/DataStructures.jl/License.md similarity index 100% rename from test/test-files/pkgs-ta/2/DataStructures.jl/License.md rename to test/test-files/pkgs-ta/3/DataStructures.jl/License.md diff --git a/test/test-files/pkgs-ta/2/DataStructures.jl/Project.toml b/test/test-files/pkgs-ta/3/DataStructures.jl/Project.toml similarity index 100% rename from test/test-files/pkgs-ta/2/DataStructures.jl/Project.toml rename to test/test-files/pkgs-ta/3/DataStructures.jl/Project.toml diff --git a/test/test-files/pkgs-ta/2/DataStructures.jl/README.md b/test/test-files/pkgs-ta/3/DataStructures.jl/README.md similarity index 100% rename from test/test-files/pkgs-ta/2/DataStructures.jl/README.md rename to test/test-files/pkgs-ta/3/DataStructures.jl/README.md diff --git a/test/test-files/pkgs-ta/2/DataStructures.jl/benchmark/Project.toml b/test/test-files/pkgs-ta/3/DataStructures.jl/benchmark/Project.toml similarity index 100% rename from test/test-files/pkgs-ta/2/DataStructures.jl/benchmark/Project.toml rename to test/test-files/pkgs-ta/3/DataStructures.jl/benchmark/Project.toml diff --git a/test/test-files/pkgs-ta/2/DataStructures.jl/benchmark/README.md b/test/test-files/pkgs-ta/3/DataStructures.jl/benchmark/README.md similarity index 100% rename from test/test-files/pkgs-ta/2/DataStructures.jl/benchmark/README.md rename to test/test-files/pkgs-ta/3/DataStructures.jl/benchmark/README.md diff --git a/test/test-files/pkgs-ta/2/DataStructures.jl/benchmark/bench_heap.jl b/test/test-files/pkgs-ta/3/DataStructures.jl/benchmark/bench_heap.jl similarity index 100% rename from test/test-files/pkgs-ta/2/DataStructures.jl/benchmark/bench_heap.jl rename to test/test-files/pkgs-ta/3/DataStructures.jl/benchmark/bench_heap.jl diff --git a/test/test-files/pkgs-ta/2/DataStructures.jl/benchmark/bench_sparse_int_set.jl b/test/test-files/pkgs-ta/3/DataStructures.jl/benchmark/bench_sparse_int_set.jl similarity index 100% rename from test/test-files/pkgs-ta/2/DataStructures.jl/benchmark/bench_sparse_int_set.jl rename to test/test-files/pkgs-ta/3/DataStructures.jl/benchmark/bench_sparse_int_set.jl diff --git a/test/test-files/pkgs-ta/2/DataStructures.jl/benchmark/benchmarks.jl b/test/test-files/pkgs-ta/3/DataStructures.jl/benchmark/benchmarks.jl similarity index 100% rename from test/test-files/pkgs-ta/2/DataStructures.jl/benchmark/benchmarks.jl rename to test/test-files/pkgs-ta/3/DataStructures.jl/benchmark/benchmarks.jl diff --git a/test/test-files/pkgs-ta/2/DataStructures.jl/benchmark/incrementalrunjudge.jl b/test/test-files/pkgs-ta/3/DataStructures.jl/benchmark/incrementalrunjudge.jl similarity index 100% rename from test/test-files/pkgs-ta/2/DataStructures.jl/benchmark/incrementalrunjudge.jl rename to test/test-files/pkgs-ta/3/DataStructures.jl/benchmark/incrementalrunjudge.jl diff --git a/test/test-files/pkgs-ta/2/DataStructures.jl/benchmark/pprinthelper.jl b/test/test-files/pkgs-ta/3/DataStructures.jl/benchmark/pprinthelper.jl similarity index 100% rename from test/test-files/pkgs-ta/2/DataStructures.jl/benchmark/pprinthelper.jl rename to test/test-files/pkgs-ta/3/DataStructures.jl/benchmark/pprinthelper.jl diff --git a/test/test-files/pkgs-ta/2/DataStructures.jl/benchmark/pprintjudge.jl b/test/test-files/pkgs-ta/3/DataStructures.jl/benchmark/pprintjudge.jl similarity index 100% rename from test/test-files/pkgs-ta/2/DataStructures.jl/benchmark/pprintjudge.jl rename to test/test-files/pkgs-ta/3/DataStructures.jl/benchmark/pprintjudge.jl diff --git a/test/test-files/pkgs-ta/2/DataStructures.jl/benchmark/runbenchmarks.jl b/test/test-files/pkgs-ta/3/DataStructures.jl/benchmark/runbenchmarks.jl similarity index 100% rename from test/test-files/pkgs-ta/2/DataStructures.jl/benchmark/runbenchmarks.jl rename to test/test-files/pkgs-ta/3/DataStructures.jl/benchmark/runbenchmarks.jl diff --git a/test/test-files/pkgs-ta/2/DataStructures.jl/benchmark/runjudge.jl b/test/test-files/pkgs-ta/3/DataStructures.jl/benchmark/runjudge.jl similarity index 100% rename from test/test-files/pkgs-ta/2/DataStructures.jl/benchmark/runjudge.jl rename to test/test-files/pkgs-ta/3/DataStructures.jl/benchmark/runjudge.jl diff --git a/test/test-files/pkgs-ta/2/DataStructures.jl/docs/Makefile b/test/test-files/pkgs-ta/3/DataStructures.jl/docs/Makefile similarity index 100% rename from test/test-files/pkgs-ta/2/DataStructures.jl/docs/Makefile rename to test/test-files/pkgs-ta/3/DataStructures.jl/docs/Makefile diff --git a/test/test-files/pkgs-ta/2/DataStructures.jl/docs/Project.toml b/test/test-files/pkgs-ta/3/DataStructures.jl/docs/Project.toml similarity index 100% rename from test/test-files/pkgs-ta/2/DataStructures.jl/docs/Project.toml rename to test/test-files/pkgs-ta/3/DataStructures.jl/docs/Project.toml diff --git a/test/test-files/pkgs-ta/2/DataStructures.jl/docs/make.jl b/test/test-files/pkgs-ta/3/DataStructures.jl/docs/make.jl similarity index 100% rename from test/test-files/pkgs-ta/2/DataStructures.jl/docs/make.jl rename to test/test-files/pkgs-ta/3/DataStructures.jl/docs/make.jl diff --git a/test/test-files/pkgs-ta/2/DataStructures.jl/docs/src/accumulators.md b/test/test-files/pkgs-ta/3/DataStructures.jl/docs/src/accumulators.md similarity index 100% rename from test/test-files/pkgs-ta/2/DataStructures.jl/docs/src/accumulators.md rename to test/test-files/pkgs-ta/3/DataStructures.jl/docs/src/accumulators.md diff --git a/test/test-files/pkgs-ta/2/DataStructures.jl/docs/src/avl_tree.md b/test/test-files/pkgs-ta/3/DataStructures.jl/docs/src/avl_tree.md similarity index 100% rename from test/test-files/pkgs-ta/2/DataStructures.jl/docs/src/avl_tree.md rename to test/test-files/pkgs-ta/3/DataStructures.jl/docs/src/avl_tree.md diff --git a/test/test-files/pkgs-ta/2/DataStructures.jl/docs/src/circ_buffer.md b/test/test-files/pkgs-ta/3/DataStructures.jl/docs/src/circ_buffer.md similarity index 100% rename from test/test-files/pkgs-ta/2/DataStructures.jl/docs/src/circ_buffer.md rename to test/test-files/pkgs-ta/3/DataStructures.jl/docs/src/circ_buffer.md diff --git a/test/test-files/pkgs-ta/2/DataStructures.jl/docs/src/circ_deque.md b/test/test-files/pkgs-ta/3/DataStructures.jl/docs/src/circ_deque.md similarity index 100% rename from test/test-files/pkgs-ta/2/DataStructures.jl/docs/src/circ_deque.md rename to test/test-files/pkgs-ta/3/DataStructures.jl/docs/src/circ_deque.md diff --git a/test/test-files/pkgs-ta/2/DataStructures.jl/docs/src/default_dict.md b/test/test-files/pkgs-ta/3/DataStructures.jl/docs/src/default_dict.md similarity index 100% rename from test/test-files/pkgs-ta/2/DataStructures.jl/docs/src/default_dict.md rename to test/test-files/pkgs-ta/3/DataStructures.jl/docs/src/default_dict.md diff --git a/test/test-files/pkgs-ta/2/DataStructures.jl/docs/src/deque.md b/test/test-files/pkgs-ta/3/DataStructures.jl/docs/src/deque.md similarity index 100% rename from test/test-files/pkgs-ta/2/DataStructures.jl/docs/src/deque.md rename to test/test-files/pkgs-ta/3/DataStructures.jl/docs/src/deque.md diff --git a/test/test-files/pkgs-ta/2/DataStructures.jl/docs/src/dibit_vector.md b/test/test-files/pkgs-ta/3/DataStructures.jl/docs/src/dibit_vector.md similarity index 100% rename from test/test-files/pkgs-ta/2/DataStructures.jl/docs/src/dibit_vector.md rename to test/test-files/pkgs-ta/3/DataStructures.jl/docs/src/dibit_vector.md diff --git a/test/test-files/pkgs-ta/2/DataStructures.jl/docs/src/disjoint_sets.md b/test/test-files/pkgs-ta/3/DataStructures.jl/docs/src/disjoint_sets.md similarity index 100% rename from test/test-files/pkgs-ta/2/DataStructures.jl/docs/src/disjoint_sets.md rename to test/test-files/pkgs-ta/3/DataStructures.jl/docs/src/disjoint_sets.md diff --git a/test/test-files/pkgs-ta/2/DataStructures.jl/docs/src/fenwick.md b/test/test-files/pkgs-ta/3/DataStructures.jl/docs/src/fenwick.md similarity index 100% rename from test/test-files/pkgs-ta/2/DataStructures.jl/docs/src/fenwick.md rename to test/test-files/pkgs-ta/3/DataStructures.jl/docs/src/fenwick.md diff --git a/test/test-files/pkgs-ta/2/DataStructures.jl/docs/src/heaps.md b/test/test-files/pkgs-ta/3/DataStructures.jl/docs/src/heaps.md similarity index 100% rename from test/test-files/pkgs-ta/2/DataStructures.jl/docs/src/heaps.md rename to test/test-files/pkgs-ta/3/DataStructures.jl/docs/src/heaps.md diff --git a/test/test-files/pkgs-ta/2/DataStructures.jl/docs/src/index.md b/test/test-files/pkgs-ta/3/DataStructures.jl/docs/src/index.md similarity index 100% rename from test/test-files/pkgs-ta/2/DataStructures.jl/docs/src/index.md rename to test/test-files/pkgs-ta/3/DataStructures.jl/docs/src/index.md diff --git a/test/test-files/pkgs-ta/2/DataStructures.jl/docs/src/intset.md b/test/test-files/pkgs-ta/3/DataStructures.jl/docs/src/intset.md similarity index 100% rename from test/test-files/pkgs-ta/2/DataStructures.jl/docs/src/intset.md rename to test/test-files/pkgs-ta/3/DataStructures.jl/docs/src/intset.md diff --git a/test/test-files/pkgs-ta/2/DataStructures.jl/docs/src/linked_list.md b/test/test-files/pkgs-ta/3/DataStructures.jl/docs/src/linked_list.md similarity index 100% rename from test/test-files/pkgs-ta/2/DataStructures.jl/docs/src/linked_list.md rename to test/test-files/pkgs-ta/3/DataStructures.jl/docs/src/linked_list.md diff --git a/test/test-files/pkgs-ta/2/DataStructures.jl/docs/src/mutable_linked_list.md b/test/test-files/pkgs-ta/3/DataStructures.jl/docs/src/mutable_linked_list.md similarity index 100% rename from test/test-files/pkgs-ta/2/DataStructures.jl/docs/src/mutable_linked_list.md rename to test/test-files/pkgs-ta/3/DataStructures.jl/docs/src/mutable_linked_list.md diff --git a/test/test-files/pkgs-ta/2/DataStructures.jl/docs/src/ordered_containers.md b/test/test-files/pkgs-ta/3/DataStructures.jl/docs/src/ordered_containers.md similarity index 100% rename from test/test-files/pkgs-ta/2/DataStructures.jl/docs/src/ordered_containers.md rename to test/test-files/pkgs-ta/3/DataStructures.jl/docs/src/ordered_containers.md diff --git a/test/test-files/pkgs-ta/2/DataStructures.jl/docs/src/priority-queue.md b/test/test-files/pkgs-ta/3/DataStructures.jl/docs/src/priority-queue.md similarity index 100% rename from test/test-files/pkgs-ta/2/DataStructures.jl/docs/src/priority-queue.md rename to test/test-files/pkgs-ta/3/DataStructures.jl/docs/src/priority-queue.md diff --git a/test/test-files/pkgs-ta/2/DataStructures.jl/docs/src/red_black_tree.md b/test/test-files/pkgs-ta/3/DataStructures.jl/docs/src/red_black_tree.md similarity index 100% rename from test/test-files/pkgs-ta/2/DataStructures.jl/docs/src/red_black_tree.md rename to test/test-files/pkgs-ta/3/DataStructures.jl/docs/src/red_black_tree.md diff --git a/test/test-files/pkgs-ta/2/DataStructures.jl/docs/src/robin_dict.md b/test/test-files/pkgs-ta/3/DataStructures.jl/docs/src/robin_dict.md similarity index 100% rename from test/test-files/pkgs-ta/2/DataStructures.jl/docs/src/robin_dict.md rename to test/test-files/pkgs-ta/3/DataStructures.jl/docs/src/robin_dict.md diff --git a/test/test-files/pkgs-ta/2/DataStructures.jl/docs/src/sorted_containers.md b/test/test-files/pkgs-ta/3/DataStructures.jl/docs/src/sorted_containers.md similarity index 100% rename from test/test-files/pkgs-ta/2/DataStructures.jl/docs/src/sorted_containers.md rename to test/test-files/pkgs-ta/3/DataStructures.jl/docs/src/sorted_containers.md diff --git a/test/test-files/pkgs-ta/2/DataStructures.jl/docs/src/sparse_int_set.md b/test/test-files/pkgs-ta/3/DataStructures.jl/docs/src/sparse_int_set.md similarity index 100% rename from test/test-files/pkgs-ta/2/DataStructures.jl/docs/src/sparse_int_set.md rename to test/test-files/pkgs-ta/3/DataStructures.jl/docs/src/sparse_int_set.md diff --git a/test/test-files/pkgs-ta/2/DataStructures.jl/docs/src/splay_tree.md b/test/test-files/pkgs-ta/3/DataStructures.jl/docs/src/splay_tree.md similarity index 100% rename from test/test-files/pkgs-ta/2/DataStructures.jl/docs/src/splay_tree.md rename to test/test-files/pkgs-ta/3/DataStructures.jl/docs/src/splay_tree.md diff --git a/test/test-files/pkgs-ta/2/DataStructures.jl/docs/src/stack_and_queue.md b/test/test-files/pkgs-ta/3/DataStructures.jl/docs/src/stack_and_queue.md similarity index 100% rename from test/test-files/pkgs-ta/2/DataStructures.jl/docs/src/stack_and_queue.md rename to test/test-files/pkgs-ta/3/DataStructures.jl/docs/src/stack_and_queue.md diff --git a/test/test-files/pkgs-ta/2/DataStructures.jl/docs/src/swiss_dict.md b/test/test-files/pkgs-ta/3/DataStructures.jl/docs/src/swiss_dict.md similarity index 100% rename from test/test-files/pkgs-ta/2/DataStructures.jl/docs/src/swiss_dict.md rename to test/test-files/pkgs-ta/3/DataStructures.jl/docs/src/swiss_dict.md diff --git a/test/test-files/pkgs-ta/2/DataStructures.jl/docs/src/trie.md b/test/test-files/pkgs-ta/3/DataStructures.jl/docs/src/trie.md similarity index 100% rename from test/test-files/pkgs-ta/2/DataStructures.jl/docs/src/trie.md rename to test/test-files/pkgs-ta/3/DataStructures.jl/docs/src/trie.md diff --git a/test/test-files/pkgs-ta/2/DataStructures.jl/src/DataStructures.jl b/test/test-files/pkgs-ta/3/DataStructures.jl/src/DataStructures.jl similarity index 100% rename from test/test-files/pkgs-ta/2/DataStructures.jl/src/DataStructures.jl rename to test/test-files/pkgs-ta/3/DataStructures.jl/src/DataStructures.jl diff --git a/test/test-files/pkgs-ta/2/DataStructures.jl/src/accumulator.jl b/test/test-files/pkgs-ta/3/DataStructures.jl/src/accumulator.jl similarity index 100% rename from test/test-files/pkgs-ta/2/DataStructures.jl/src/accumulator.jl rename to test/test-files/pkgs-ta/3/DataStructures.jl/src/accumulator.jl diff --git a/test/test-files/pkgs-ta/2/DataStructures.jl/src/avl_tree.jl b/test/test-files/pkgs-ta/3/DataStructures.jl/src/avl_tree.jl similarity index 100% rename from test/test-files/pkgs-ta/2/DataStructures.jl/src/avl_tree.jl rename to test/test-files/pkgs-ta/3/DataStructures.jl/src/avl_tree.jl diff --git a/test/test-files/pkgs-ta/2/DataStructures.jl/src/balanced_tree.jl b/test/test-files/pkgs-ta/3/DataStructures.jl/src/balanced_tree.jl similarity index 100% rename from test/test-files/pkgs-ta/2/DataStructures.jl/src/balanced_tree.jl rename to test/test-files/pkgs-ta/3/DataStructures.jl/src/balanced_tree.jl diff --git a/test/test-files/pkgs-ta/2/DataStructures.jl/src/circ_deque.jl b/test/test-files/pkgs-ta/3/DataStructures.jl/src/circ_deque.jl similarity index 100% rename from test/test-files/pkgs-ta/2/DataStructures.jl/src/circ_deque.jl rename to test/test-files/pkgs-ta/3/DataStructures.jl/src/circ_deque.jl diff --git a/test/test-files/pkgs-ta/2/DataStructures.jl/src/circular_buffer.jl b/test/test-files/pkgs-ta/3/DataStructures.jl/src/circular_buffer.jl similarity index 100% rename from test/test-files/pkgs-ta/2/DataStructures.jl/src/circular_buffer.jl rename to test/test-files/pkgs-ta/3/DataStructures.jl/src/circular_buffer.jl diff --git a/test/test-files/pkgs-ta/2/DataStructures.jl/src/container_loops.jl b/test/test-files/pkgs-ta/3/DataStructures.jl/src/container_loops.jl similarity index 100% rename from test/test-files/pkgs-ta/2/DataStructures.jl/src/container_loops.jl rename to test/test-files/pkgs-ta/3/DataStructures.jl/src/container_loops.jl diff --git a/test/test-files/pkgs-ta/2/DataStructures.jl/src/default_dict.jl b/test/test-files/pkgs-ta/3/DataStructures.jl/src/default_dict.jl similarity index 100% rename from test/test-files/pkgs-ta/2/DataStructures.jl/src/default_dict.jl rename to test/test-files/pkgs-ta/3/DataStructures.jl/src/default_dict.jl diff --git a/test/test-files/pkgs-ta/2/DataStructures.jl/src/delegate.jl b/test/test-files/pkgs-ta/3/DataStructures.jl/src/delegate.jl similarity index 100% rename from test/test-files/pkgs-ta/2/DataStructures.jl/src/delegate.jl rename to test/test-files/pkgs-ta/3/DataStructures.jl/src/delegate.jl diff --git a/test/test-files/pkgs-ta/2/DataStructures.jl/src/deprecations.jl b/test/test-files/pkgs-ta/3/DataStructures.jl/src/deprecations.jl similarity index 100% rename from test/test-files/pkgs-ta/2/DataStructures.jl/src/deprecations.jl rename to test/test-files/pkgs-ta/3/DataStructures.jl/src/deprecations.jl diff --git a/test/test-files/pkgs-ta/2/DataStructures.jl/src/deque.jl b/test/test-files/pkgs-ta/3/DataStructures.jl/src/deque.jl similarity index 100% rename from test/test-files/pkgs-ta/2/DataStructures.jl/src/deque.jl rename to test/test-files/pkgs-ta/3/DataStructures.jl/src/deque.jl diff --git a/test/test-files/pkgs-ta/2/DataStructures.jl/src/dibit_vector.jl b/test/test-files/pkgs-ta/3/DataStructures.jl/src/dibit_vector.jl similarity index 100% rename from test/test-files/pkgs-ta/2/DataStructures.jl/src/dibit_vector.jl rename to test/test-files/pkgs-ta/3/DataStructures.jl/src/dibit_vector.jl diff --git a/test/test-files/pkgs-ta/2/DataStructures.jl/src/dict_support.jl b/test/test-files/pkgs-ta/3/DataStructures.jl/src/dict_support.jl similarity index 100% rename from test/test-files/pkgs-ta/2/DataStructures.jl/src/dict_support.jl rename to test/test-files/pkgs-ta/3/DataStructures.jl/src/dict_support.jl diff --git a/test/test-files/pkgs-ta/2/DataStructures.jl/src/disjoint_set.jl b/test/test-files/pkgs-ta/3/DataStructures.jl/src/disjoint_set.jl similarity index 100% rename from test/test-files/pkgs-ta/2/DataStructures.jl/src/disjoint_set.jl rename to test/test-files/pkgs-ta/3/DataStructures.jl/src/disjoint_set.jl diff --git a/test/test-files/pkgs-ta/2/DataStructures.jl/src/fenwick.jl b/test/test-files/pkgs-ta/3/DataStructures.jl/src/fenwick.jl similarity index 100% rename from test/test-files/pkgs-ta/2/DataStructures.jl/src/fenwick.jl rename to test/test-files/pkgs-ta/3/DataStructures.jl/src/fenwick.jl diff --git a/test/test-files/pkgs-ta/2/DataStructures.jl/src/heaps.jl b/test/test-files/pkgs-ta/3/DataStructures.jl/src/heaps.jl similarity index 100% rename from test/test-files/pkgs-ta/2/DataStructures.jl/src/heaps.jl rename to test/test-files/pkgs-ta/3/DataStructures.jl/src/heaps.jl diff --git a/test/test-files/pkgs-ta/2/DataStructures.jl/src/heaps/arrays_as_heaps.jl b/test/test-files/pkgs-ta/3/DataStructures.jl/src/heaps/arrays_as_heaps.jl similarity index 100% rename from test/test-files/pkgs-ta/2/DataStructures.jl/src/heaps/arrays_as_heaps.jl rename to test/test-files/pkgs-ta/3/DataStructures.jl/src/heaps/arrays_as_heaps.jl diff --git a/test/test-files/pkgs-ta/2/DataStructures.jl/src/heaps/binary_heap.jl b/test/test-files/pkgs-ta/3/DataStructures.jl/src/heaps/binary_heap.jl similarity index 100% rename from test/test-files/pkgs-ta/2/DataStructures.jl/src/heaps/binary_heap.jl rename to test/test-files/pkgs-ta/3/DataStructures.jl/src/heaps/binary_heap.jl diff --git a/test/test-files/pkgs-ta/2/DataStructures.jl/src/heaps/minmax_heap.jl b/test/test-files/pkgs-ta/3/DataStructures.jl/src/heaps/minmax_heap.jl similarity index 100% rename from test/test-files/pkgs-ta/2/DataStructures.jl/src/heaps/minmax_heap.jl rename to test/test-files/pkgs-ta/3/DataStructures.jl/src/heaps/minmax_heap.jl diff --git a/test/test-files/pkgs-ta/2/DataStructures.jl/src/heaps/mutable_binary_heap.jl b/test/test-files/pkgs-ta/3/DataStructures.jl/src/heaps/mutable_binary_heap.jl similarity index 100% rename from test/test-files/pkgs-ta/2/DataStructures.jl/src/heaps/mutable_binary_heap.jl rename to test/test-files/pkgs-ta/3/DataStructures.jl/src/heaps/mutable_binary_heap.jl diff --git a/test/test-files/pkgs-ta/2/DataStructures.jl/src/int_set.jl b/test/test-files/pkgs-ta/3/DataStructures.jl/src/int_set.jl similarity index 100% rename from test/test-files/pkgs-ta/2/DataStructures.jl/src/int_set.jl rename to test/test-files/pkgs-ta/3/DataStructures.jl/src/int_set.jl diff --git a/test/test-files/pkgs-ta/2/DataStructures.jl/src/list.jl b/test/test-files/pkgs-ta/3/DataStructures.jl/src/list.jl similarity index 100% rename from test/test-files/pkgs-ta/2/DataStructures.jl/src/list.jl rename to test/test-files/pkgs-ta/3/DataStructures.jl/src/list.jl diff --git a/test/test-files/pkgs-ta/2/DataStructures.jl/src/multi_dict.jl b/test/test-files/pkgs-ta/3/DataStructures.jl/src/multi_dict.jl similarity index 100% rename from test/test-files/pkgs-ta/2/DataStructures.jl/src/multi_dict.jl rename to test/test-files/pkgs-ta/3/DataStructures.jl/src/multi_dict.jl diff --git a/test/test-files/pkgs-ta/2/DataStructures.jl/src/mutable_list.jl b/test/test-files/pkgs-ta/3/DataStructures.jl/src/mutable_list.jl similarity index 100% rename from test/test-files/pkgs-ta/2/DataStructures.jl/src/mutable_list.jl rename to test/test-files/pkgs-ta/3/DataStructures.jl/src/mutable_list.jl diff --git a/test/test-files/pkgs-ta/2/DataStructures.jl/src/ordered_robin_dict.jl b/test/test-files/pkgs-ta/3/DataStructures.jl/src/ordered_robin_dict.jl similarity index 100% rename from test/test-files/pkgs-ta/2/DataStructures.jl/src/ordered_robin_dict.jl rename to test/test-files/pkgs-ta/3/DataStructures.jl/src/ordered_robin_dict.jl diff --git a/test/test-files/pkgs-ta/2/DataStructures.jl/src/priorityqueue.jl b/test/test-files/pkgs-ta/3/DataStructures.jl/src/priorityqueue.jl similarity index 100% rename from test/test-files/pkgs-ta/2/DataStructures.jl/src/priorityqueue.jl rename to test/test-files/pkgs-ta/3/DataStructures.jl/src/priorityqueue.jl diff --git a/test/test-files/pkgs-ta/2/DataStructures.jl/src/queue.jl b/test/test-files/pkgs-ta/3/DataStructures.jl/src/queue.jl similarity index 100% rename from test/test-files/pkgs-ta/2/DataStructures.jl/src/queue.jl rename to test/test-files/pkgs-ta/3/DataStructures.jl/src/queue.jl diff --git a/test/test-files/pkgs-ta/2/DataStructures.jl/src/red_black_tree.jl b/test/test-files/pkgs-ta/3/DataStructures.jl/src/red_black_tree.jl similarity index 100% rename from test/test-files/pkgs-ta/2/DataStructures.jl/src/red_black_tree.jl rename to test/test-files/pkgs-ta/3/DataStructures.jl/src/red_black_tree.jl diff --git a/test/test-files/pkgs-ta/2/DataStructures.jl/src/robin_dict.jl b/test/test-files/pkgs-ta/3/DataStructures.jl/src/robin_dict.jl similarity index 100% rename from test/test-files/pkgs-ta/2/DataStructures.jl/src/robin_dict.jl rename to test/test-files/pkgs-ta/3/DataStructures.jl/src/robin_dict.jl diff --git a/test/test-files/pkgs-ta/2/DataStructures.jl/src/sorted_dict.jl b/test/test-files/pkgs-ta/3/DataStructures.jl/src/sorted_dict.jl similarity index 100% rename from test/test-files/pkgs-ta/2/DataStructures.jl/src/sorted_dict.jl rename to test/test-files/pkgs-ta/3/DataStructures.jl/src/sorted_dict.jl diff --git a/test/test-files/pkgs-ta/2/DataStructures.jl/src/sorted_multi_dict.jl b/test/test-files/pkgs-ta/3/DataStructures.jl/src/sorted_multi_dict.jl similarity index 100% rename from test/test-files/pkgs-ta/2/DataStructures.jl/src/sorted_multi_dict.jl rename to test/test-files/pkgs-ta/3/DataStructures.jl/src/sorted_multi_dict.jl diff --git a/test/test-files/pkgs-ta/2/DataStructures.jl/src/sorted_set.jl b/test/test-files/pkgs-ta/3/DataStructures.jl/src/sorted_set.jl similarity index 100% rename from test/test-files/pkgs-ta/2/DataStructures.jl/src/sorted_set.jl rename to test/test-files/pkgs-ta/3/DataStructures.jl/src/sorted_set.jl diff --git a/test/test-files/pkgs-ta/2/DataStructures.jl/src/sparse_int_set.jl b/test/test-files/pkgs-ta/3/DataStructures.jl/src/sparse_int_set.jl similarity index 100% rename from test/test-files/pkgs-ta/2/DataStructures.jl/src/sparse_int_set.jl rename to test/test-files/pkgs-ta/3/DataStructures.jl/src/sparse_int_set.jl diff --git a/test/test-files/pkgs-ta/2/DataStructures.jl/src/splay_tree.jl b/test/test-files/pkgs-ta/3/DataStructures.jl/src/splay_tree.jl similarity index 100% rename from test/test-files/pkgs-ta/2/DataStructures.jl/src/splay_tree.jl rename to test/test-files/pkgs-ta/3/DataStructures.jl/src/splay_tree.jl diff --git a/test/test-files/pkgs-ta/2/DataStructures.jl/src/stack.jl b/test/test-files/pkgs-ta/3/DataStructures.jl/src/stack.jl similarity index 100% rename from test/test-files/pkgs-ta/2/DataStructures.jl/src/stack.jl rename to test/test-files/pkgs-ta/3/DataStructures.jl/src/stack.jl diff --git a/test/test-files/pkgs-ta/2/DataStructures.jl/src/swiss_dict.jl b/test/test-files/pkgs-ta/3/DataStructures.jl/src/swiss_dict.jl similarity index 100% rename from test/test-files/pkgs-ta/2/DataStructures.jl/src/swiss_dict.jl rename to test/test-files/pkgs-ta/3/DataStructures.jl/src/swiss_dict.jl diff --git a/test/test-files/pkgs-ta/2/DataStructures.jl/src/tokens.jl b/test/test-files/pkgs-ta/3/DataStructures.jl/src/tokens.jl similarity index 100% rename from test/test-files/pkgs-ta/2/DataStructures.jl/src/tokens.jl rename to test/test-files/pkgs-ta/3/DataStructures.jl/src/tokens.jl diff --git a/test/test-files/pkgs-ta/2/DataStructures.jl/src/tokens2.jl b/test/test-files/pkgs-ta/3/DataStructures.jl/src/tokens2.jl similarity index 100% rename from test/test-files/pkgs-ta/2/DataStructures.jl/src/tokens2.jl rename to test/test-files/pkgs-ta/3/DataStructures.jl/src/tokens2.jl diff --git a/test/test-files/pkgs-ta/2/DataStructures.jl/src/trie.jl b/test/test-files/pkgs-ta/3/DataStructures.jl/src/trie.jl similarity index 100% rename from test/test-files/pkgs-ta/2/DataStructures.jl/src/trie.jl rename to test/test-files/pkgs-ta/3/DataStructures.jl/src/trie.jl diff --git a/test/test-files/pkgs-ta/2/DataStructures.jl/test/README b/test/test-files/pkgs-ta/3/DataStructures.jl/test/README similarity index 100% rename from test/test-files/pkgs-ta/2/DataStructures.jl/test/README rename to test/test-files/pkgs-ta/3/DataStructures.jl/test/README diff --git a/test/test-files/pkgs-ta/2/DataStructures.jl/test/REQUIRE b/test/test-files/pkgs-ta/3/DataStructures.jl/test/REQUIRE similarity index 100% rename from test/test-files/pkgs-ta/2/DataStructures.jl/test/REQUIRE rename to test/test-files/pkgs-ta/3/DataStructures.jl/test/REQUIRE diff --git a/test/test-files/pkgs-ta/2/DataStructures.jl/test/bench_deque.jl b/test/test-files/pkgs-ta/3/DataStructures.jl/test/bench_deque.jl similarity index 100% rename from test/test-files/pkgs-ta/2/DataStructures.jl/test/bench_deque.jl rename to test/test-files/pkgs-ta/3/DataStructures.jl/test/bench_deque.jl diff --git a/test/test-files/pkgs-ta/2/DataStructures.jl/test/bench_dict.jl b/test/test-files/pkgs-ta/3/DataStructures.jl/test/bench_dict.jl similarity index 100% rename from test/test-files/pkgs-ta/2/DataStructures.jl/test/bench_dict.jl rename to test/test-files/pkgs-ta/3/DataStructures.jl/test/bench_dict.jl diff --git a/test/test-files/pkgs-ta/2/DataStructures.jl/test/bench_disjoint_set.jl b/test/test-files/pkgs-ta/3/DataStructures.jl/test/bench_disjoint_set.jl similarity index 100% rename from test/test-files/pkgs-ta/2/DataStructures.jl/test/bench_disjoint_set.jl rename to test/test-files/pkgs-ta/3/DataStructures.jl/test/bench_disjoint_set.jl diff --git a/test/test-files/pkgs-ta/2/DataStructures.jl/test/bench_heaps.jl b/test/test-files/pkgs-ta/3/DataStructures.jl/test/bench_heaps.jl similarity index 100% rename from test/test-files/pkgs-ta/2/DataStructures.jl/test/bench_heaps.jl rename to test/test-files/pkgs-ta/3/DataStructures.jl/test/bench_heaps.jl diff --git a/test/test-files/pkgs-ta/2/DataStructures.jl/test/runtests.jl b/test/test-files/pkgs-ta/3/DataStructures.jl/test/runtests.jl similarity index 100% rename from test/test-files/pkgs-ta/2/DataStructures.jl/test/runtests.jl rename to test/test-files/pkgs-ta/3/DataStructures.jl/test/runtests.jl diff --git a/test/test-files/pkgs-ta/2/DataStructures.jl/test/test_accumulator.jl b/test/test-files/pkgs-ta/3/DataStructures.jl/test/test_accumulator.jl similarity index 100% rename from test/test-files/pkgs-ta/2/DataStructures.jl/test/test_accumulator.jl rename to test/test-files/pkgs-ta/3/DataStructures.jl/test/test_accumulator.jl diff --git a/test/test-files/pkgs-ta/2/DataStructures.jl/test/test_avl_tree.jl b/test/test-files/pkgs-ta/3/DataStructures.jl/test/test_avl_tree.jl similarity index 100% rename from test/test-files/pkgs-ta/2/DataStructures.jl/test/test_avl_tree.jl rename to test/test-files/pkgs-ta/3/DataStructures.jl/test/test_avl_tree.jl diff --git a/test/test-files/pkgs-ta/2/DataStructures.jl/test/test_binheap.jl b/test/test-files/pkgs-ta/3/DataStructures.jl/test/test_binheap.jl similarity index 100% rename from test/test-files/pkgs-ta/2/DataStructures.jl/test/test_binheap.jl rename to test/test-files/pkgs-ta/3/DataStructures.jl/test/test_binheap.jl diff --git a/test/test-files/pkgs-ta/2/DataStructures.jl/test/test_circ_deque.jl b/test/test-files/pkgs-ta/3/DataStructures.jl/test/test_circ_deque.jl similarity index 100% rename from test/test-files/pkgs-ta/2/DataStructures.jl/test/test_circ_deque.jl rename to test/test-files/pkgs-ta/3/DataStructures.jl/test/test_circ_deque.jl diff --git a/test/test-files/pkgs-ta/2/DataStructures.jl/test/test_circular_buffer.jl b/test/test-files/pkgs-ta/3/DataStructures.jl/test/test_circular_buffer.jl similarity index 100% rename from test/test-files/pkgs-ta/2/DataStructures.jl/test/test_circular_buffer.jl rename to test/test-files/pkgs-ta/3/DataStructures.jl/test/test_circular_buffer.jl diff --git a/test/test-files/pkgs-ta/2/DataStructures.jl/test/test_default_dict.jl b/test/test-files/pkgs-ta/3/DataStructures.jl/test/test_default_dict.jl similarity index 100% rename from test/test-files/pkgs-ta/2/DataStructures.jl/test/test_default_dict.jl rename to test/test-files/pkgs-ta/3/DataStructures.jl/test/test_default_dict.jl diff --git a/test/test-files/pkgs-ta/2/DataStructures.jl/test/test_deprecations.jl b/test/test-files/pkgs-ta/3/DataStructures.jl/test/test_deprecations.jl similarity index 100% rename from test/test-files/pkgs-ta/2/DataStructures.jl/test/test_deprecations.jl rename to test/test-files/pkgs-ta/3/DataStructures.jl/test/test_deprecations.jl diff --git a/test/test-files/pkgs-ta/2/DataStructures.jl/test/test_deque.jl b/test/test-files/pkgs-ta/3/DataStructures.jl/test/test_deque.jl similarity index 100% rename from test/test-files/pkgs-ta/2/DataStructures.jl/test/test_deque.jl rename to test/test-files/pkgs-ta/3/DataStructures.jl/test/test_deque.jl diff --git a/test/test-files/pkgs-ta/2/DataStructures.jl/test/test_dibit_vector.jl b/test/test-files/pkgs-ta/3/DataStructures.jl/test/test_dibit_vector.jl similarity index 100% rename from test/test-files/pkgs-ta/2/DataStructures.jl/test/test_dibit_vector.jl rename to test/test-files/pkgs-ta/3/DataStructures.jl/test/test_dibit_vector.jl diff --git a/test/test-files/pkgs-ta/2/DataStructures.jl/test/test_disjoint_set.jl b/test/test-files/pkgs-ta/3/DataStructures.jl/test/test_disjoint_set.jl similarity index 100% rename from test/test-files/pkgs-ta/2/DataStructures.jl/test/test_disjoint_set.jl rename to test/test-files/pkgs-ta/3/DataStructures.jl/test/test_disjoint_set.jl diff --git a/test/test-files/pkgs-ta/2/DataStructures.jl/test/test_fenwick.jl b/test/test-files/pkgs-ta/3/DataStructures.jl/test/test_fenwick.jl similarity index 100% rename from test/test-files/pkgs-ta/2/DataStructures.jl/test/test_fenwick.jl rename to test/test-files/pkgs-ta/3/DataStructures.jl/test/test_fenwick.jl diff --git a/test/test-files/pkgs-ta/2/DataStructures.jl/test/test_int_set.jl b/test/test-files/pkgs-ta/3/DataStructures.jl/test/test_int_set.jl similarity index 100% rename from test/test-files/pkgs-ta/2/DataStructures.jl/test/test_int_set.jl rename to test/test-files/pkgs-ta/3/DataStructures.jl/test/test_int_set.jl diff --git a/test/test-files/pkgs-ta/2/DataStructures.jl/test/test_list.jl b/test/test-files/pkgs-ta/3/DataStructures.jl/test/test_list.jl similarity index 100% rename from test/test-files/pkgs-ta/2/DataStructures.jl/test/test_list.jl rename to test/test-files/pkgs-ta/3/DataStructures.jl/test/test_list.jl diff --git a/test/test-files/pkgs-ta/2/DataStructures.jl/test/test_minmax_heap.jl b/test/test-files/pkgs-ta/3/DataStructures.jl/test/test_minmax_heap.jl similarity index 100% rename from test/test-files/pkgs-ta/2/DataStructures.jl/test/test_minmax_heap.jl rename to test/test-files/pkgs-ta/3/DataStructures.jl/test/test_minmax_heap.jl diff --git a/test/test-files/pkgs-ta/2/DataStructures.jl/test/test_multi_dict.jl b/test/test-files/pkgs-ta/3/DataStructures.jl/test/test_multi_dict.jl similarity index 100% rename from test/test-files/pkgs-ta/2/DataStructures.jl/test/test_multi_dict.jl rename to test/test-files/pkgs-ta/3/DataStructures.jl/test/test_multi_dict.jl diff --git a/test/test-files/pkgs-ta/2/DataStructures.jl/test/test_mutable_binheap.jl b/test/test-files/pkgs-ta/3/DataStructures.jl/test/test_mutable_binheap.jl similarity index 100% rename from test/test-files/pkgs-ta/2/DataStructures.jl/test/test_mutable_binheap.jl rename to test/test-files/pkgs-ta/3/DataStructures.jl/test/test_mutable_binheap.jl diff --git a/test/test-files/pkgs-ta/2/DataStructures.jl/test/test_mutable_list.jl b/test/test-files/pkgs-ta/3/DataStructures.jl/test/test_mutable_list.jl similarity index 100% rename from test/test-files/pkgs-ta/2/DataStructures.jl/test/test_mutable_list.jl rename to test/test-files/pkgs-ta/3/DataStructures.jl/test/test_mutable_list.jl diff --git a/test/test-files/pkgs-ta/2/DataStructures.jl/test/test_ordered_robin_dict.jl b/test/test-files/pkgs-ta/3/DataStructures.jl/test/test_ordered_robin_dict.jl similarity index 100% rename from test/test-files/pkgs-ta/2/DataStructures.jl/test/test_ordered_robin_dict.jl rename to test/test-files/pkgs-ta/3/DataStructures.jl/test/test_ordered_robin_dict.jl diff --git a/test/test-files/pkgs-ta/2/DataStructures.jl/test/test_priority_queue.jl b/test/test-files/pkgs-ta/3/DataStructures.jl/test/test_priority_queue.jl similarity index 100% rename from test/test-files/pkgs-ta/2/DataStructures.jl/test/test_priority_queue.jl rename to test/test-files/pkgs-ta/3/DataStructures.jl/test/test_priority_queue.jl diff --git a/test/test-files/pkgs-ta/2/DataStructures.jl/test/test_queue.jl b/test/test-files/pkgs-ta/3/DataStructures.jl/test/test_queue.jl similarity index 100% rename from test/test-files/pkgs-ta/2/DataStructures.jl/test/test_queue.jl rename to test/test-files/pkgs-ta/3/DataStructures.jl/test/test_queue.jl diff --git a/test/test-files/pkgs-ta/2/DataStructures.jl/test/test_red_black_tree.jl b/test/test-files/pkgs-ta/3/DataStructures.jl/test/test_red_black_tree.jl similarity index 100% rename from test/test-files/pkgs-ta/2/DataStructures.jl/test/test_red_black_tree.jl rename to test/test-files/pkgs-ta/3/DataStructures.jl/test/test_red_black_tree.jl diff --git a/test/test-files/pkgs-ta/2/DataStructures.jl/test/test_robin_dict.jl b/test/test-files/pkgs-ta/3/DataStructures.jl/test/test_robin_dict.jl similarity index 100% rename from test/test-files/pkgs-ta/2/DataStructures.jl/test/test_robin_dict.jl rename to test/test-files/pkgs-ta/3/DataStructures.jl/test/test_robin_dict.jl diff --git a/test/test-files/pkgs-ta/2/DataStructures.jl/test/test_sorted_containers.jl b/test/test-files/pkgs-ta/3/DataStructures.jl/test/test_sorted_containers.jl similarity index 100% rename from test/test-files/pkgs-ta/2/DataStructures.jl/test/test_sorted_containers.jl rename to test/test-files/pkgs-ta/3/DataStructures.jl/test/test_sorted_containers.jl diff --git a/test/test-files/pkgs-ta/2/DataStructures.jl/test/test_sorting.jl b/test/test-files/pkgs-ta/3/DataStructures.jl/test/test_sorting.jl similarity index 100% rename from test/test-files/pkgs-ta/2/DataStructures.jl/test/test_sorting.jl rename to test/test-files/pkgs-ta/3/DataStructures.jl/test/test_sorting.jl diff --git a/test/test-files/pkgs-ta/2/DataStructures.jl/test/test_sparse_int_set.jl b/test/test-files/pkgs-ta/3/DataStructures.jl/test/test_sparse_int_set.jl similarity index 100% rename from test/test-files/pkgs-ta/2/DataStructures.jl/test/test_sparse_int_set.jl rename to test/test-files/pkgs-ta/3/DataStructures.jl/test/test_sparse_int_set.jl diff --git a/test/test-files/pkgs-ta/2/DataStructures.jl/test/test_splay_tree.jl b/test/test-files/pkgs-ta/3/DataStructures.jl/test/test_splay_tree.jl similarity index 100% rename from test/test-files/pkgs-ta/2/DataStructures.jl/test/test_splay_tree.jl rename to test/test-files/pkgs-ta/3/DataStructures.jl/test/test_splay_tree.jl diff --git a/test/test-files/pkgs-ta/2/DataStructures.jl/test/test_stack.jl b/test/test-files/pkgs-ta/3/DataStructures.jl/test/test_stack.jl similarity index 100% rename from test/test-files/pkgs-ta/2/DataStructures.jl/test/test_stack.jl rename to test/test-files/pkgs-ta/3/DataStructures.jl/test/test_stack.jl diff --git a/test/test-files/pkgs-ta/2/DataStructures.jl/test/test_swiss_dict.jl b/test/test-files/pkgs-ta/3/DataStructures.jl/test/test_swiss_dict.jl similarity index 100% rename from test/test-files/pkgs-ta/2/DataStructures.jl/test/test_swiss_dict.jl rename to test/test-files/pkgs-ta/3/DataStructures.jl/test/test_swiss_dict.jl diff --git a/test/test-files/pkgs-ta/2/DataStructures.jl/test/test_trie.jl b/test/test-files/pkgs-ta/3/DataStructures.jl/test/test_trie.jl similarity index 100% rename from test/test-files/pkgs-ta/2/DataStructures.jl/test/test_trie.jl rename to test/test-files/pkgs-ta/3/DataStructures.jl/test/test_trie.jl diff --git a/test/test-files/pkgs-ta/3/Empty.jl/src/Empty.jl b/test/test-files/pkgs-ta/3/Empty.jl/src/Empty.jl new file mode 100644 index 0000000..fe18a26 --- /dev/null +++ b/test/test-files/pkgs-ta/3/Empty.jl/src/Empty.jl @@ -0,0 +1,5 @@ +module Empty + +println("Empty") + +end diff --git a/test/test-files/pkgs-ta/2/Gen.jl/.github/workflows/CompatHelper.yml b/test/test-files/pkgs-ta/3/Gen.jl/.github/workflows/CompatHelper.yml similarity index 100% rename from test/test-files/pkgs-ta/2/Gen.jl/.github/workflows/CompatHelper.yml rename to test/test-files/pkgs-ta/3/Gen.jl/.github/workflows/CompatHelper.yml diff --git a/test/test-files/pkgs-ta/2/Gen.jl/.gitignore b/test/test-files/pkgs-ta/3/Gen.jl/.gitignore similarity index 100% rename from test/test-files/pkgs-ta/2/Gen.jl/.gitignore rename to test/test-files/pkgs-ta/3/Gen.jl/.gitignore diff --git a/test/test-files/pkgs-ta/2/Gen.jl/.travis.yml b/test/test-files/pkgs-ta/3/Gen.jl/.travis.yml similarity index 100% rename from test/test-files/pkgs-ta/2/Gen.jl/.travis.yml rename to test/test-files/pkgs-ta/3/Gen.jl/.travis.yml diff --git a/test/test-files/pkgs-ta/2/Gen.jl/CONTRIBUTING.md b/test/test-files/pkgs-ta/3/Gen.jl/CONTRIBUTING.md similarity index 100% rename from test/test-files/pkgs-ta/2/Gen.jl/CONTRIBUTING.md rename to test/test-files/pkgs-ta/3/Gen.jl/CONTRIBUTING.md diff --git a/test/test-files/pkgs-ta/2/Gen.jl/LICENSE b/test/test-files/pkgs-ta/3/Gen.jl/LICENSE similarity index 100% rename from test/test-files/pkgs-ta/2/Gen.jl/LICENSE rename to test/test-files/pkgs-ta/3/Gen.jl/LICENSE diff --git a/test/test-files/pkgs-ta/2/Gen.jl/Project.toml b/test/test-files/pkgs-ta/3/Gen.jl/Project.toml similarity index 100% rename from test/test-files/pkgs-ta/2/Gen.jl/Project.toml rename to test/test-files/pkgs-ta/3/Gen.jl/Project.toml diff --git a/test/test-files/pkgs-ta/2/Gen.jl/README.md b/test/test-files/pkgs-ta/3/Gen.jl/README.md similarity index 100% rename from test/test-files/pkgs-ta/2/Gen.jl/README.md rename to test/test-files/pkgs-ta/3/Gen.jl/README.md diff --git a/test/test-files/pkgs-ta/2/Gen.jl/WEBSITE.md b/test/test-files/pkgs-ta/3/Gen.jl/WEBSITE.md similarity index 100% rename from test/test-files/pkgs-ta/2/Gen.jl/WEBSITE.md rename to test/test-files/pkgs-ta/3/Gen.jl/WEBSITE.md diff --git a/test/test-files/pkgs-ta/2/Gen.jl/docker/Dockerfile b/test/test-files/pkgs-ta/3/Gen.jl/docker/Dockerfile similarity index 100% rename from test/test-files/pkgs-ta/2/Gen.jl/docker/Dockerfile rename to test/test-files/pkgs-ta/3/Gen.jl/docker/Dockerfile diff --git a/test/test-files/pkgs-ta/2/Gen.jl/docker/ubuntu1604 b/test/test-files/pkgs-ta/3/Gen.jl/docker/ubuntu1604 similarity index 100% rename from test/test-files/pkgs-ta/2/Gen.jl/docker/ubuntu1604 rename to test/test-files/pkgs-ta/3/Gen.jl/docker/ubuntu1604 diff --git a/test/test-files/pkgs-ta/2/Gen.jl/docs/.gitignore b/test/test-files/pkgs-ta/3/Gen.jl/docs/.gitignore similarity index 100% rename from test/test-files/pkgs-ta/2/Gen.jl/docs/.gitignore rename to test/test-files/pkgs-ta/3/Gen.jl/docs/.gitignore diff --git a/test/test-files/pkgs-ta/2/Gen.jl/docs/Project.toml b/test/test-files/pkgs-ta/3/Gen.jl/docs/Project.toml similarity index 100% rename from test/test-files/pkgs-ta/2/Gen.jl/docs/Project.toml rename to test/test-files/pkgs-ta/3/Gen.jl/docs/Project.toml diff --git a/test/test-files/pkgs-ta/2/Gen.jl/docs/build_docs_locally.sh b/test/test-files/pkgs-ta/3/Gen.jl/docs/build_docs_locally.sh similarity index 100% rename from test/test-files/pkgs-ta/2/Gen.jl/docs/build_docs_locally.sh rename to test/test-files/pkgs-ta/3/Gen.jl/docs/build_docs_locally.sh diff --git a/test/test-files/pkgs-ta/2/Gen.jl/docs/make.jl b/test/test-files/pkgs-ta/3/Gen.jl/docs/make.jl similarity index 100% rename from test/test-files/pkgs-ta/2/Gen.jl/docs/make.jl rename to test/test-files/pkgs-ta/3/Gen.jl/docs/make.jl diff --git a/test/test-files/pkgs-ta/2/Gen.jl/docs/src/getting_started.md b/test/test-files/pkgs-ta/3/Gen.jl/docs/src/getting_started.md similarity index 100% rename from test/test-files/pkgs-ta/2/Gen.jl/docs/src/getting_started.md rename to test/test-files/pkgs-ta/3/Gen.jl/docs/src/getting_started.md diff --git a/test/test-files/pkgs-ta/2/Gen.jl/docs/src/index.md b/test/test-files/pkgs-ta/3/Gen.jl/docs/src/index.md similarity index 100% rename from test/test-files/pkgs-ta/2/Gen.jl/docs/src/index.md rename to test/test-files/pkgs-ta/3/Gen.jl/docs/src/index.md diff --git a/test/test-files/pkgs-ta/2/Gen.jl/docs/src/ref/choice_maps.md b/test/test-files/pkgs-ta/3/Gen.jl/docs/src/ref/choice_maps.md similarity index 100% rename from test/test-files/pkgs-ta/2/Gen.jl/docs/src/ref/choice_maps.md rename to test/test-files/pkgs-ta/3/Gen.jl/docs/src/ref/choice_maps.md diff --git a/test/test-files/pkgs-ta/2/Gen.jl/docs/src/ref/combinators.md b/test/test-files/pkgs-ta/3/Gen.jl/docs/src/ref/combinators.md similarity index 100% rename from test/test-files/pkgs-ta/2/Gen.jl/docs/src/ref/combinators.md rename to test/test-files/pkgs-ta/3/Gen.jl/docs/src/ref/combinators.md diff --git a/test/test-files/pkgs-ta/2/Gen.jl/docs/src/ref/distributions.md b/test/test-files/pkgs-ta/3/Gen.jl/docs/src/ref/distributions.md similarity index 100% rename from test/test-files/pkgs-ta/2/Gen.jl/docs/src/ref/distributions.md rename to test/test-files/pkgs-ta/3/Gen.jl/docs/src/ref/distributions.md diff --git a/test/test-files/pkgs-ta/2/Gen.jl/docs/src/ref/extending.md b/test/test-files/pkgs-ta/3/Gen.jl/docs/src/ref/extending.md similarity index 100% rename from test/test-files/pkgs-ta/2/Gen.jl/docs/src/ref/extending.md rename to test/test-files/pkgs-ta/3/Gen.jl/docs/src/ref/extending.md diff --git a/test/test-files/pkgs-ta/2/Gen.jl/docs/src/ref/gfi.md b/test/test-files/pkgs-ta/3/Gen.jl/docs/src/ref/gfi.md similarity index 100% rename from test/test-files/pkgs-ta/2/Gen.jl/docs/src/ref/gfi.md rename to test/test-files/pkgs-ta/3/Gen.jl/docs/src/ref/gfi.md diff --git a/test/test-files/pkgs-ta/2/Gen.jl/docs/src/ref/importance.md b/test/test-files/pkgs-ta/3/Gen.jl/docs/src/ref/importance.md similarity index 100% rename from test/test-files/pkgs-ta/2/Gen.jl/docs/src/ref/importance.md rename to test/test-files/pkgs-ta/3/Gen.jl/docs/src/ref/importance.md diff --git a/test/test-files/pkgs-ta/2/Gen.jl/docs/src/ref/internals/language_implementation.md b/test/test-files/pkgs-ta/3/Gen.jl/docs/src/ref/internals/language_implementation.md similarity index 100% rename from test/test-files/pkgs-ta/2/Gen.jl/docs/src/ref/internals/language_implementation.md rename to test/test-files/pkgs-ta/3/Gen.jl/docs/src/ref/internals/language_implementation.md diff --git a/test/test-files/pkgs-ta/2/Gen.jl/docs/src/ref/internals/parameter_optimization.md b/test/test-files/pkgs-ta/3/Gen.jl/docs/src/ref/internals/parameter_optimization.md similarity index 100% rename from test/test-files/pkgs-ta/2/Gen.jl/docs/src/ref/internals/parameter_optimization.md rename to test/test-files/pkgs-ta/3/Gen.jl/docs/src/ref/internals/parameter_optimization.md diff --git a/test/test-files/pkgs-ta/2/Gen.jl/docs/src/ref/learning.md b/test/test-files/pkgs-ta/3/Gen.jl/docs/src/ref/learning.md similarity index 100% rename from test/test-files/pkgs-ta/2/Gen.jl/docs/src/ref/learning.md rename to test/test-files/pkgs-ta/3/Gen.jl/docs/src/ref/learning.md diff --git a/test/test-files/pkgs-ta/2/Gen.jl/docs/src/ref/map.md b/test/test-files/pkgs-ta/3/Gen.jl/docs/src/ref/map.md similarity index 100% rename from test/test-files/pkgs-ta/2/Gen.jl/docs/src/ref/map.md rename to test/test-files/pkgs-ta/3/Gen.jl/docs/src/ref/map.md diff --git a/test/test-files/pkgs-ta/2/Gen.jl/docs/src/ref/mcmc.md b/test/test-files/pkgs-ta/3/Gen.jl/docs/src/ref/mcmc.md similarity index 100% rename from test/test-files/pkgs-ta/2/Gen.jl/docs/src/ref/mcmc.md rename to test/test-files/pkgs-ta/3/Gen.jl/docs/src/ref/mcmc.md diff --git a/test/test-files/pkgs-ta/2/Gen.jl/docs/src/ref/modeling.md b/test/test-files/pkgs-ta/3/Gen.jl/docs/src/ref/modeling.md similarity index 100% rename from test/test-files/pkgs-ta/2/Gen.jl/docs/src/ref/modeling.md rename to test/test-files/pkgs-ta/3/Gen.jl/docs/src/ref/modeling.md diff --git a/test/test-files/pkgs-ta/2/Gen.jl/docs/src/ref/parameter_optimization.md b/test/test-files/pkgs-ta/3/Gen.jl/docs/src/ref/parameter_optimization.md similarity index 100% rename from test/test-files/pkgs-ta/2/Gen.jl/docs/src/ref/parameter_optimization.md rename to test/test-files/pkgs-ta/3/Gen.jl/docs/src/ref/parameter_optimization.md diff --git a/test/test-files/pkgs-ta/2/Gen.jl/docs/src/ref/pf.md b/test/test-files/pkgs-ta/3/Gen.jl/docs/src/ref/pf.md similarity index 100% rename from test/test-files/pkgs-ta/2/Gen.jl/docs/src/ref/pf.md rename to test/test-files/pkgs-ta/3/Gen.jl/docs/src/ref/pf.md diff --git a/test/test-files/pkgs-ta/2/Gen.jl/docs/src/ref/selections.md b/test/test-files/pkgs-ta/3/Gen.jl/docs/src/ref/selections.md similarity index 100% rename from test/test-files/pkgs-ta/2/Gen.jl/docs/src/ref/selections.md rename to test/test-files/pkgs-ta/3/Gen.jl/docs/src/ref/selections.md diff --git a/test/test-files/pkgs-ta/2/Gen.jl/docs/src/ref/trace_translators.md b/test/test-files/pkgs-ta/3/Gen.jl/docs/src/ref/trace_translators.md similarity index 100% rename from test/test-files/pkgs-ta/2/Gen.jl/docs/src/ref/trace_translators.md rename to test/test-files/pkgs-ta/3/Gen.jl/docs/src/ref/trace_translators.md diff --git a/test/test-files/pkgs-ta/2/Gen.jl/docs/src/ref/vi.md b/test/test-files/pkgs-ta/3/Gen.jl/docs/src/ref/vi.md similarity index 100% rename from test/test-files/pkgs-ta/2/Gen.jl/docs/src/ref/vi.md rename to test/test-files/pkgs-ta/3/Gen.jl/docs/src/ref/vi.md diff --git a/test/test-files/pkgs-ta/2/Gen.jl/docs/src/tutorials.md b/test/test-files/pkgs-ta/3/Gen.jl/docs/src/tutorials.md similarity index 100% rename from test/test-files/pkgs-ta/2/Gen.jl/docs/src/tutorials.md rename to test/test-files/pkgs-ta/3/Gen.jl/docs/src/tutorials.md diff --git a/test/test-files/pkgs-ta/2/Gen.jl/docs/tex/mcmc.tex b/test/test-files/pkgs-ta/3/Gen.jl/docs/tex/mcmc.tex similarity index 100% rename from test/test-files/pkgs-ta/2/Gen.jl/docs/tex/mcmc.tex rename to test/test-files/pkgs-ta/3/Gen.jl/docs/tex/mcmc.tex diff --git a/test/test-files/pkgs-ta/2/Gen.jl/docs/tex/references.bib b/test/test-files/pkgs-ta/3/Gen.jl/docs/tex/references.bib similarity index 100% rename from test/test-files/pkgs-ta/2/Gen.jl/docs/tex/references.bib rename to test/test-files/pkgs-ta/3/Gen.jl/docs/tex/references.bib diff --git a/test/test-files/pkgs-ta/2/Gen.jl/src/Gen.jl b/test/test-files/pkgs-ta/3/Gen.jl/src/Gen.jl similarity index 100% rename from test/test-files/pkgs-ta/2/Gen.jl/src/Gen.jl rename to test/test-files/pkgs-ta/3/Gen.jl/src/Gen.jl diff --git a/test/test-files/pkgs-ta/2/Gen.jl/src/address.jl b/test/test-files/pkgs-ta/3/Gen.jl/src/address.jl similarity index 100% rename from test/test-files/pkgs-ta/2/Gen.jl/src/address.jl rename to test/test-files/pkgs-ta/3/Gen.jl/src/address.jl diff --git a/test/test-files/pkgs-ta/2/Gen.jl/src/backprop.jl b/test/test-files/pkgs-ta/3/Gen.jl/src/backprop.jl similarity index 100% rename from test/test-files/pkgs-ta/2/Gen.jl/src/backprop.jl rename to test/test-files/pkgs-ta/3/Gen.jl/src/backprop.jl diff --git a/test/test-files/pkgs-ta/2/Gen.jl/src/builtin_optimization.jl b/test/test-files/pkgs-ta/3/Gen.jl/src/builtin_optimization.jl similarity index 100% rename from test/test-files/pkgs-ta/2/Gen.jl/src/builtin_optimization.jl rename to test/test-files/pkgs-ta/3/Gen.jl/src/builtin_optimization.jl diff --git a/test/test-files/pkgs-ta/2/Gen.jl/src/choice_map.jl b/test/test-files/pkgs-ta/3/Gen.jl/src/choice_map.jl similarity index 100% rename from test/test-files/pkgs-ta/2/Gen.jl/src/choice_map.jl rename to test/test-files/pkgs-ta/3/Gen.jl/src/choice_map.jl diff --git a/test/test-files/pkgs-ta/2/Gen.jl/src/diff.jl b/test/test-files/pkgs-ta/3/Gen.jl/src/diff.jl similarity index 100% rename from test/test-files/pkgs-ta/2/Gen.jl/src/diff.jl rename to test/test-files/pkgs-ta/3/Gen.jl/src/diff.jl diff --git a/test/test-files/pkgs-ta/2/Gen.jl/src/dsl/dsl.jl b/test/test-files/pkgs-ta/3/Gen.jl/src/dsl/dsl.jl similarity index 100% rename from test/test-files/pkgs-ta/2/Gen.jl/src/dsl/dsl.jl rename to test/test-files/pkgs-ta/3/Gen.jl/src/dsl/dsl.jl diff --git a/test/test-files/pkgs-ta/2/Gen.jl/src/dsl/dynamic.jl b/test/test-files/pkgs-ta/3/Gen.jl/src/dsl/dynamic.jl similarity index 100% rename from test/test-files/pkgs-ta/2/Gen.jl/src/dsl/dynamic.jl rename to test/test-files/pkgs-ta/3/Gen.jl/src/dsl/dynamic.jl diff --git a/test/test-files/pkgs-ta/2/Gen.jl/src/dsl/static.jl b/test/test-files/pkgs-ta/3/Gen.jl/src/dsl/static.jl similarity index 100% rename from test/test-files/pkgs-ta/2/Gen.jl/src/dsl/static.jl rename to test/test-files/pkgs-ta/3/Gen.jl/src/dsl/static.jl diff --git a/test/test-files/pkgs-ta/2/Gen.jl/src/dynamic/assess.jl b/test/test-files/pkgs-ta/3/Gen.jl/src/dynamic/assess.jl similarity index 100% rename from test/test-files/pkgs-ta/2/Gen.jl/src/dynamic/assess.jl rename to test/test-files/pkgs-ta/3/Gen.jl/src/dynamic/assess.jl diff --git a/test/test-files/pkgs-ta/2/Gen.jl/src/dynamic/backprop.jl b/test/test-files/pkgs-ta/3/Gen.jl/src/dynamic/backprop.jl similarity index 100% rename from test/test-files/pkgs-ta/2/Gen.jl/src/dynamic/backprop.jl rename to test/test-files/pkgs-ta/3/Gen.jl/src/dynamic/backprop.jl diff --git a/test/test-files/pkgs-ta/2/Gen.jl/src/dynamic/dynamic.jl b/test/test-files/pkgs-ta/3/Gen.jl/src/dynamic/dynamic.jl similarity index 100% rename from test/test-files/pkgs-ta/2/Gen.jl/src/dynamic/dynamic.jl rename to test/test-files/pkgs-ta/3/Gen.jl/src/dynamic/dynamic.jl diff --git a/test/test-files/pkgs-ta/2/Gen.jl/src/dynamic/generate.jl b/test/test-files/pkgs-ta/3/Gen.jl/src/dynamic/generate.jl similarity index 100% rename from test/test-files/pkgs-ta/2/Gen.jl/src/dynamic/generate.jl rename to test/test-files/pkgs-ta/3/Gen.jl/src/dynamic/generate.jl diff --git a/test/test-files/pkgs-ta/2/Gen.jl/src/dynamic/project.jl b/test/test-files/pkgs-ta/3/Gen.jl/src/dynamic/project.jl similarity index 100% rename from test/test-files/pkgs-ta/2/Gen.jl/src/dynamic/project.jl rename to test/test-files/pkgs-ta/3/Gen.jl/src/dynamic/project.jl diff --git a/test/test-files/pkgs-ta/2/Gen.jl/src/dynamic/propose.jl b/test/test-files/pkgs-ta/3/Gen.jl/src/dynamic/propose.jl similarity index 100% rename from test/test-files/pkgs-ta/2/Gen.jl/src/dynamic/propose.jl rename to test/test-files/pkgs-ta/3/Gen.jl/src/dynamic/propose.jl diff --git a/test/test-files/pkgs-ta/2/Gen.jl/src/dynamic/regenerate.jl b/test/test-files/pkgs-ta/3/Gen.jl/src/dynamic/regenerate.jl similarity index 100% rename from test/test-files/pkgs-ta/2/Gen.jl/src/dynamic/regenerate.jl rename to test/test-files/pkgs-ta/3/Gen.jl/src/dynamic/regenerate.jl diff --git a/test/test-files/pkgs-ta/2/Gen.jl/src/dynamic/simulate.jl b/test/test-files/pkgs-ta/3/Gen.jl/src/dynamic/simulate.jl similarity index 100% rename from test/test-files/pkgs-ta/2/Gen.jl/src/dynamic/simulate.jl rename to test/test-files/pkgs-ta/3/Gen.jl/src/dynamic/simulate.jl diff --git a/test/test-files/pkgs-ta/2/Gen.jl/src/dynamic/trace.jl b/test/test-files/pkgs-ta/3/Gen.jl/src/dynamic/trace.jl similarity index 100% rename from test/test-files/pkgs-ta/2/Gen.jl/src/dynamic/trace.jl rename to test/test-files/pkgs-ta/3/Gen.jl/src/dynamic/trace.jl diff --git a/test/test-files/pkgs-ta/2/Gen.jl/src/dynamic/update.jl b/test/test-files/pkgs-ta/3/Gen.jl/src/dynamic/update.jl similarity index 100% rename from test/test-files/pkgs-ta/2/Gen.jl/src/dynamic/update.jl rename to test/test-files/pkgs-ta/3/Gen.jl/src/dynamic/update.jl diff --git a/test/test-files/pkgs-ta/2/Gen.jl/src/gen_fn_interface.jl b/test/test-files/pkgs-ta/3/Gen.jl/src/gen_fn_interface.jl similarity index 100% rename from test/test-files/pkgs-ta/2/Gen.jl/src/gen_fn_interface.jl rename to test/test-files/pkgs-ta/3/Gen.jl/src/gen_fn_interface.jl diff --git a/test/test-files/pkgs-ta/2/Gen.jl/src/inference/elliptical_slice.jl b/test/test-files/pkgs-ta/3/Gen.jl/src/inference/elliptical_slice.jl similarity index 100% rename from test/test-files/pkgs-ta/2/Gen.jl/src/inference/elliptical_slice.jl rename to test/test-files/pkgs-ta/3/Gen.jl/src/inference/elliptical_slice.jl diff --git a/test/test-files/pkgs-ta/2/Gen.jl/src/inference/hmc.jl b/test/test-files/pkgs-ta/3/Gen.jl/src/inference/hmc.jl similarity index 100% rename from test/test-files/pkgs-ta/2/Gen.jl/src/inference/hmc.jl rename to test/test-files/pkgs-ta/3/Gen.jl/src/inference/hmc.jl diff --git a/test/test-files/pkgs-ta/2/Gen.jl/src/inference/importance.jl b/test/test-files/pkgs-ta/3/Gen.jl/src/inference/importance.jl similarity index 100% rename from test/test-files/pkgs-ta/2/Gen.jl/src/inference/importance.jl rename to test/test-files/pkgs-ta/3/Gen.jl/src/inference/importance.jl diff --git a/test/test-files/pkgs-ta/2/Gen.jl/src/inference/inference.jl b/test/test-files/pkgs-ta/3/Gen.jl/src/inference/inference.jl similarity index 100% rename from test/test-files/pkgs-ta/2/Gen.jl/src/inference/inference.jl rename to test/test-files/pkgs-ta/3/Gen.jl/src/inference/inference.jl diff --git a/test/test-files/pkgs-ta/2/Gen.jl/src/inference/kernel_dsl.jl b/test/test-files/pkgs-ta/3/Gen.jl/src/inference/kernel_dsl.jl similarity index 100% rename from test/test-files/pkgs-ta/2/Gen.jl/src/inference/kernel_dsl.jl rename to test/test-files/pkgs-ta/3/Gen.jl/src/inference/kernel_dsl.jl diff --git a/test/test-files/pkgs-ta/2/Gen.jl/src/inference/mala.jl b/test/test-files/pkgs-ta/3/Gen.jl/src/inference/mala.jl similarity index 100% rename from test/test-files/pkgs-ta/2/Gen.jl/src/inference/mala.jl rename to test/test-files/pkgs-ta/3/Gen.jl/src/inference/mala.jl diff --git a/test/test-files/pkgs-ta/2/Gen.jl/src/inference/map_optimize.jl b/test/test-files/pkgs-ta/3/Gen.jl/src/inference/map_optimize.jl similarity index 100% rename from test/test-files/pkgs-ta/2/Gen.jl/src/inference/map_optimize.jl rename to test/test-files/pkgs-ta/3/Gen.jl/src/inference/map_optimize.jl diff --git a/test/test-files/pkgs-ta/2/Gen.jl/src/inference/mh.jl b/test/test-files/pkgs-ta/3/Gen.jl/src/inference/mh.jl similarity index 100% rename from test/test-files/pkgs-ta/2/Gen.jl/src/inference/mh.jl rename to test/test-files/pkgs-ta/3/Gen.jl/src/inference/mh.jl diff --git a/test/test-files/pkgs-ta/2/Gen.jl/src/inference/particle_filter.jl b/test/test-files/pkgs-ta/3/Gen.jl/src/inference/particle_filter.jl similarity index 100% rename from test/test-files/pkgs-ta/2/Gen.jl/src/inference/particle_filter.jl rename to test/test-files/pkgs-ta/3/Gen.jl/src/inference/particle_filter.jl diff --git a/test/test-files/pkgs-ta/2/Gen.jl/src/inference/trace_translators.jl b/test/test-files/pkgs-ta/3/Gen.jl/src/inference/trace_translators.jl similarity index 100% rename from test/test-files/pkgs-ta/2/Gen.jl/src/inference/trace_translators.jl rename to test/test-files/pkgs-ta/3/Gen.jl/src/inference/trace_translators.jl diff --git a/test/test-files/pkgs-ta/2/Gen.jl/src/inference/train.jl b/test/test-files/pkgs-ta/3/Gen.jl/src/inference/train.jl similarity index 100% rename from test/test-files/pkgs-ta/2/Gen.jl/src/inference/train.jl rename to test/test-files/pkgs-ta/3/Gen.jl/src/inference/train.jl diff --git a/test/test-files/pkgs-ta/2/Gen.jl/src/inference/variational.jl b/test/test-files/pkgs-ta/3/Gen.jl/src/inference/variational.jl similarity index 100% rename from test/test-files/pkgs-ta/2/Gen.jl/src/inference/variational.jl rename to test/test-files/pkgs-ta/3/Gen.jl/src/inference/variational.jl diff --git a/test/test-files/pkgs-ta/2/Gen.jl/src/modeling_library/call_at/call_at.jl b/test/test-files/pkgs-ta/3/Gen.jl/src/modeling_library/call_at/call_at.jl similarity index 100% rename from test/test-files/pkgs-ta/2/Gen.jl/src/modeling_library/call_at/call_at.jl rename to test/test-files/pkgs-ta/3/Gen.jl/src/modeling_library/call_at/call_at.jl diff --git a/test/test-files/pkgs-ta/2/Gen.jl/src/modeling_library/choice_at/choice_at.jl b/test/test-files/pkgs-ta/3/Gen.jl/src/modeling_library/choice_at/choice_at.jl similarity index 100% rename from test/test-files/pkgs-ta/2/Gen.jl/src/modeling_library/choice_at/choice_at.jl rename to test/test-files/pkgs-ta/3/Gen.jl/src/modeling_library/choice_at/choice_at.jl diff --git a/test/test-files/pkgs-ta/2/Gen.jl/src/modeling_library/custom_determ.jl b/test/test-files/pkgs-ta/3/Gen.jl/src/modeling_library/custom_determ.jl similarity index 100% rename from test/test-files/pkgs-ta/2/Gen.jl/src/modeling_library/custom_determ.jl rename to test/test-files/pkgs-ta/3/Gen.jl/src/modeling_library/custom_determ.jl diff --git a/test/test-files/pkgs-ta/2/Gen.jl/src/modeling_library/dist_dsl/dist_dsl.jl b/test/test-files/pkgs-ta/3/Gen.jl/src/modeling_library/dist_dsl/dist_dsl.jl similarity index 100% rename from test/test-files/pkgs-ta/2/Gen.jl/src/modeling_library/dist_dsl/dist_dsl.jl rename to test/test-files/pkgs-ta/3/Gen.jl/src/modeling_library/dist_dsl/dist_dsl.jl diff --git a/test/test-files/pkgs-ta/2/Gen.jl/src/modeling_library/dist_dsl/relabeled_distribution.jl b/test/test-files/pkgs-ta/3/Gen.jl/src/modeling_library/dist_dsl/relabeled_distribution.jl similarity index 100% rename from test/test-files/pkgs-ta/2/Gen.jl/src/modeling_library/dist_dsl/relabeled_distribution.jl rename to test/test-files/pkgs-ta/3/Gen.jl/src/modeling_library/dist_dsl/relabeled_distribution.jl diff --git a/test/test-files/pkgs-ta/2/Gen.jl/src/modeling_library/dist_dsl/transformed_distribution.jl b/test/test-files/pkgs-ta/3/Gen.jl/src/modeling_library/dist_dsl/transformed_distribution.jl similarity index 100% rename from test/test-files/pkgs-ta/2/Gen.jl/src/modeling_library/dist_dsl/transformed_distribution.jl rename to test/test-files/pkgs-ta/3/Gen.jl/src/modeling_library/dist_dsl/transformed_distribution.jl diff --git a/test/test-files/pkgs-ta/2/Gen.jl/src/modeling_library/distributions/bernoulli.jl b/test/test-files/pkgs-ta/3/Gen.jl/src/modeling_library/distributions/bernoulli.jl similarity index 100% rename from test/test-files/pkgs-ta/2/Gen.jl/src/modeling_library/distributions/bernoulli.jl rename to test/test-files/pkgs-ta/3/Gen.jl/src/modeling_library/distributions/bernoulli.jl diff --git a/test/test-files/pkgs-ta/2/Gen.jl/src/modeling_library/distributions/beta.jl b/test/test-files/pkgs-ta/3/Gen.jl/src/modeling_library/distributions/beta.jl similarity index 100% rename from test/test-files/pkgs-ta/2/Gen.jl/src/modeling_library/distributions/beta.jl rename to test/test-files/pkgs-ta/3/Gen.jl/src/modeling_library/distributions/beta.jl diff --git a/test/test-files/pkgs-ta/2/Gen.jl/src/modeling_library/distributions/beta_uniform.jl b/test/test-files/pkgs-ta/3/Gen.jl/src/modeling_library/distributions/beta_uniform.jl similarity index 100% rename from test/test-files/pkgs-ta/2/Gen.jl/src/modeling_library/distributions/beta_uniform.jl rename to test/test-files/pkgs-ta/3/Gen.jl/src/modeling_library/distributions/beta_uniform.jl diff --git a/test/test-files/pkgs-ta/2/Gen.jl/src/modeling_library/distributions/binom.jl b/test/test-files/pkgs-ta/3/Gen.jl/src/modeling_library/distributions/binom.jl similarity index 100% rename from test/test-files/pkgs-ta/2/Gen.jl/src/modeling_library/distributions/binom.jl rename to test/test-files/pkgs-ta/3/Gen.jl/src/modeling_library/distributions/binom.jl diff --git a/test/test-files/pkgs-ta/2/Gen.jl/src/modeling_library/distributions/categorical.jl b/test/test-files/pkgs-ta/3/Gen.jl/src/modeling_library/distributions/categorical.jl similarity index 100% rename from test/test-files/pkgs-ta/2/Gen.jl/src/modeling_library/distributions/categorical.jl rename to test/test-files/pkgs-ta/3/Gen.jl/src/modeling_library/distributions/categorical.jl diff --git a/test/test-files/pkgs-ta/2/Gen.jl/src/modeling_library/distributions/cauchy.jl b/test/test-files/pkgs-ta/3/Gen.jl/src/modeling_library/distributions/cauchy.jl similarity index 100% rename from test/test-files/pkgs-ta/2/Gen.jl/src/modeling_library/distributions/cauchy.jl rename to test/test-files/pkgs-ta/3/Gen.jl/src/modeling_library/distributions/cauchy.jl diff --git a/test/test-files/pkgs-ta/2/Gen.jl/src/modeling_library/distributions/distributions.jl b/test/test-files/pkgs-ta/3/Gen.jl/src/modeling_library/distributions/distributions.jl similarity index 100% rename from test/test-files/pkgs-ta/2/Gen.jl/src/modeling_library/distributions/distributions.jl rename to test/test-files/pkgs-ta/3/Gen.jl/src/modeling_library/distributions/distributions.jl diff --git a/test/test-files/pkgs-ta/2/Gen.jl/src/modeling_library/distributions/exponential.jl b/test/test-files/pkgs-ta/3/Gen.jl/src/modeling_library/distributions/exponential.jl similarity index 100% rename from test/test-files/pkgs-ta/2/Gen.jl/src/modeling_library/distributions/exponential.jl rename to test/test-files/pkgs-ta/3/Gen.jl/src/modeling_library/distributions/exponential.jl diff --git a/test/test-files/pkgs-ta/2/Gen.jl/src/modeling_library/distributions/gamma.jl b/test/test-files/pkgs-ta/3/Gen.jl/src/modeling_library/distributions/gamma.jl similarity index 100% rename from test/test-files/pkgs-ta/2/Gen.jl/src/modeling_library/distributions/gamma.jl rename to test/test-files/pkgs-ta/3/Gen.jl/src/modeling_library/distributions/gamma.jl diff --git a/test/test-files/pkgs-ta/2/Gen.jl/src/modeling_library/distributions/geometric.jl b/test/test-files/pkgs-ta/3/Gen.jl/src/modeling_library/distributions/geometric.jl similarity index 100% rename from test/test-files/pkgs-ta/2/Gen.jl/src/modeling_library/distributions/geometric.jl rename to test/test-files/pkgs-ta/3/Gen.jl/src/modeling_library/distributions/geometric.jl diff --git a/test/test-files/pkgs-ta/2/Gen.jl/src/modeling_library/distributions/inv_gamma.jl b/test/test-files/pkgs-ta/3/Gen.jl/src/modeling_library/distributions/inv_gamma.jl similarity index 100% rename from test/test-files/pkgs-ta/2/Gen.jl/src/modeling_library/distributions/inv_gamma.jl rename to test/test-files/pkgs-ta/3/Gen.jl/src/modeling_library/distributions/inv_gamma.jl diff --git a/test/test-files/pkgs-ta/2/Gen.jl/src/modeling_library/distributions/laplace.jl b/test/test-files/pkgs-ta/3/Gen.jl/src/modeling_library/distributions/laplace.jl similarity index 100% rename from test/test-files/pkgs-ta/2/Gen.jl/src/modeling_library/distributions/laplace.jl rename to test/test-files/pkgs-ta/3/Gen.jl/src/modeling_library/distributions/laplace.jl diff --git a/test/test-files/pkgs-ta/2/Gen.jl/src/modeling_library/distributions/mvnormal.jl b/test/test-files/pkgs-ta/3/Gen.jl/src/modeling_library/distributions/mvnormal.jl similarity index 100% rename from test/test-files/pkgs-ta/2/Gen.jl/src/modeling_library/distributions/mvnormal.jl rename to test/test-files/pkgs-ta/3/Gen.jl/src/modeling_library/distributions/mvnormal.jl diff --git a/test/test-files/pkgs-ta/2/Gen.jl/src/modeling_library/distributions/neg_binom.jl b/test/test-files/pkgs-ta/3/Gen.jl/src/modeling_library/distributions/neg_binom.jl similarity index 100% rename from test/test-files/pkgs-ta/2/Gen.jl/src/modeling_library/distributions/neg_binom.jl rename to test/test-files/pkgs-ta/3/Gen.jl/src/modeling_library/distributions/neg_binom.jl diff --git a/test/test-files/pkgs-ta/2/Gen.jl/src/modeling_library/distributions/normal.jl b/test/test-files/pkgs-ta/3/Gen.jl/src/modeling_library/distributions/normal.jl similarity index 100% rename from test/test-files/pkgs-ta/2/Gen.jl/src/modeling_library/distributions/normal.jl rename to test/test-files/pkgs-ta/3/Gen.jl/src/modeling_library/distributions/normal.jl diff --git a/test/test-files/pkgs-ta/2/Gen.jl/src/modeling_library/distributions/piecewise_uniform.jl b/test/test-files/pkgs-ta/3/Gen.jl/src/modeling_library/distributions/piecewise_uniform.jl similarity index 100% rename from test/test-files/pkgs-ta/2/Gen.jl/src/modeling_library/distributions/piecewise_uniform.jl rename to test/test-files/pkgs-ta/3/Gen.jl/src/modeling_library/distributions/piecewise_uniform.jl diff --git a/test/test-files/pkgs-ta/2/Gen.jl/src/modeling_library/distributions/poisson.jl b/test/test-files/pkgs-ta/3/Gen.jl/src/modeling_library/distributions/poisson.jl similarity index 100% rename from test/test-files/pkgs-ta/2/Gen.jl/src/modeling_library/distributions/poisson.jl rename to test/test-files/pkgs-ta/3/Gen.jl/src/modeling_library/distributions/poisson.jl diff --git a/test/test-files/pkgs-ta/2/Gen.jl/src/modeling_library/distributions/uniform_continuous.jl b/test/test-files/pkgs-ta/3/Gen.jl/src/modeling_library/distributions/uniform_continuous.jl similarity index 100% rename from test/test-files/pkgs-ta/2/Gen.jl/src/modeling_library/distributions/uniform_continuous.jl rename to test/test-files/pkgs-ta/3/Gen.jl/src/modeling_library/distributions/uniform_continuous.jl diff --git a/test/test-files/pkgs-ta/2/Gen.jl/src/modeling_library/distributions/uniform_discrete.jl b/test/test-files/pkgs-ta/3/Gen.jl/src/modeling_library/distributions/uniform_discrete.jl similarity index 100% rename from test/test-files/pkgs-ta/2/Gen.jl/src/modeling_library/distributions/uniform_discrete.jl rename to test/test-files/pkgs-ta/3/Gen.jl/src/modeling_library/distributions/uniform_discrete.jl diff --git a/test/test-files/pkgs-ta/2/Gen.jl/src/modeling_library/map/assess.jl b/test/test-files/pkgs-ta/3/Gen.jl/src/modeling_library/map/assess.jl similarity index 100% rename from test/test-files/pkgs-ta/2/Gen.jl/src/modeling_library/map/assess.jl rename to test/test-files/pkgs-ta/3/Gen.jl/src/modeling_library/map/assess.jl diff --git a/test/test-files/pkgs-ta/2/Gen.jl/src/modeling_library/map/backprop.jl b/test/test-files/pkgs-ta/3/Gen.jl/src/modeling_library/map/backprop.jl similarity index 100% rename from test/test-files/pkgs-ta/2/Gen.jl/src/modeling_library/map/backprop.jl rename to test/test-files/pkgs-ta/3/Gen.jl/src/modeling_library/map/backprop.jl diff --git a/test/test-files/pkgs-ta/2/Gen.jl/src/modeling_library/map/generate.jl b/test/test-files/pkgs-ta/3/Gen.jl/src/modeling_library/map/generate.jl similarity index 100% rename from test/test-files/pkgs-ta/2/Gen.jl/src/modeling_library/map/generate.jl rename to test/test-files/pkgs-ta/3/Gen.jl/src/modeling_library/map/generate.jl diff --git a/test/test-files/pkgs-ta/2/Gen.jl/src/modeling_library/map/generic_update.jl b/test/test-files/pkgs-ta/3/Gen.jl/src/modeling_library/map/generic_update.jl similarity index 100% rename from test/test-files/pkgs-ta/2/Gen.jl/src/modeling_library/map/generic_update.jl rename to test/test-files/pkgs-ta/3/Gen.jl/src/modeling_library/map/generic_update.jl diff --git a/test/test-files/pkgs-ta/2/Gen.jl/src/modeling_library/map/map.jl b/test/test-files/pkgs-ta/3/Gen.jl/src/modeling_library/map/map.jl similarity index 100% rename from test/test-files/pkgs-ta/2/Gen.jl/src/modeling_library/map/map.jl rename to test/test-files/pkgs-ta/3/Gen.jl/src/modeling_library/map/map.jl diff --git a/test/test-files/pkgs-ta/2/Gen.jl/src/modeling_library/map/propose.jl b/test/test-files/pkgs-ta/3/Gen.jl/src/modeling_library/map/propose.jl similarity index 100% rename from test/test-files/pkgs-ta/2/Gen.jl/src/modeling_library/map/propose.jl rename to test/test-files/pkgs-ta/3/Gen.jl/src/modeling_library/map/propose.jl diff --git a/test/test-files/pkgs-ta/2/Gen.jl/src/modeling_library/map/regenerate.jl b/test/test-files/pkgs-ta/3/Gen.jl/src/modeling_library/map/regenerate.jl similarity index 100% rename from test/test-files/pkgs-ta/2/Gen.jl/src/modeling_library/map/regenerate.jl rename to test/test-files/pkgs-ta/3/Gen.jl/src/modeling_library/map/regenerate.jl diff --git a/test/test-files/pkgs-ta/2/Gen.jl/src/modeling_library/map/simulate.jl b/test/test-files/pkgs-ta/3/Gen.jl/src/modeling_library/map/simulate.jl similarity index 100% rename from test/test-files/pkgs-ta/2/Gen.jl/src/modeling_library/map/simulate.jl rename to test/test-files/pkgs-ta/3/Gen.jl/src/modeling_library/map/simulate.jl diff --git a/test/test-files/pkgs-ta/2/Gen.jl/src/modeling_library/map/update.jl b/test/test-files/pkgs-ta/3/Gen.jl/src/modeling_library/map/update.jl similarity index 100% rename from test/test-files/pkgs-ta/2/Gen.jl/src/modeling_library/map/update.jl rename to test/test-files/pkgs-ta/3/Gen.jl/src/modeling_library/map/update.jl diff --git a/test/test-files/pkgs-ta/2/Gen.jl/src/modeling_library/mixture.jl b/test/test-files/pkgs-ta/3/Gen.jl/src/modeling_library/mixture.jl similarity index 100% rename from test/test-files/pkgs-ta/2/Gen.jl/src/modeling_library/mixture.jl rename to test/test-files/pkgs-ta/3/Gen.jl/src/modeling_library/mixture.jl diff --git a/test/test-files/pkgs-ta/2/Gen.jl/src/modeling_library/modeling_library.jl b/test/test-files/pkgs-ta/3/Gen.jl/src/modeling_library/modeling_library.jl similarity index 100% rename from test/test-files/pkgs-ta/2/Gen.jl/src/modeling_library/modeling_library.jl rename to test/test-files/pkgs-ta/3/Gen.jl/src/modeling_library/modeling_library.jl diff --git a/test/test-files/pkgs-ta/2/Gen.jl/src/modeling_library/recurse/recurse.jl b/test/test-files/pkgs-ta/3/Gen.jl/src/modeling_library/recurse/recurse.jl similarity index 100% rename from test/test-files/pkgs-ta/2/Gen.jl/src/modeling_library/recurse/recurse.jl rename to test/test-files/pkgs-ta/3/Gen.jl/src/modeling_library/recurse/recurse.jl diff --git a/test/test-files/pkgs-ta/2/Gen.jl/src/modeling_library/switch/assess.jl b/test/test-files/pkgs-ta/3/Gen.jl/src/modeling_library/switch/assess.jl similarity index 100% rename from test/test-files/pkgs-ta/2/Gen.jl/src/modeling_library/switch/assess.jl rename to test/test-files/pkgs-ta/3/Gen.jl/src/modeling_library/switch/assess.jl diff --git a/test/test-files/pkgs-ta/2/Gen.jl/src/modeling_library/switch/backprop.jl b/test/test-files/pkgs-ta/3/Gen.jl/src/modeling_library/switch/backprop.jl similarity index 100% rename from test/test-files/pkgs-ta/2/Gen.jl/src/modeling_library/switch/backprop.jl rename to test/test-files/pkgs-ta/3/Gen.jl/src/modeling_library/switch/backprop.jl diff --git a/test/test-files/pkgs-ta/2/Gen.jl/src/modeling_library/switch/generate.jl b/test/test-files/pkgs-ta/3/Gen.jl/src/modeling_library/switch/generate.jl similarity index 100% rename from test/test-files/pkgs-ta/2/Gen.jl/src/modeling_library/switch/generate.jl rename to test/test-files/pkgs-ta/3/Gen.jl/src/modeling_library/switch/generate.jl diff --git a/test/test-files/pkgs-ta/2/Gen.jl/src/modeling_library/switch/propose.jl b/test/test-files/pkgs-ta/3/Gen.jl/src/modeling_library/switch/propose.jl similarity index 100% rename from test/test-files/pkgs-ta/2/Gen.jl/src/modeling_library/switch/propose.jl rename to test/test-files/pkgs-ta/3/Gen.jl/src/modeling_library/switch/propose.jl diff --git a/test/test-files/pkgs-ta/2/Gen.jl/src/modeling_library/switch/regenerate.jl b/test/test-files/pkgs-ta/3/Gen.jl/src/modeling_library/switch/regenerate.jl similarity index 100% rename from test/test-files/pkgs-ta/2/Gen.jl/src/modeling_library/switch/regenerate.jl rename to test/test-files/pkgs-ta/3/Gen.jl/src/modeling_library/switch/regenerate.jl diff --git a/test/test-files/pkgs-ta/2/Gen.jl/src/modeling_library/switch/simulate.jl b/test/test-files/pkgs-ta/3/Gen.jl/src/modeling_library/switch/simulate.jl similarity index 100% rename from test/test-files/pkgs-ta/2/Gen.jl/src/modeling_library/switch/simulate.jl rename to test/test-files/pkgs-ta/3/Gen.jl/src/modeling_library/switch/simulate.jl diff --git a/test/test-files/pkgs-ta/2/Gen.jl/src/modeling_library/switch/switch.jl b/test/test-files/pkgs-ta/3/Gen.jl/src/modeling_library/switch/switch.jl similarity index 100% rename from test/test-files/pkgs-ta/2/Gen.jl/src/modeling_library/switch/switch.jl rename to test/test-files/pkgs-ta/3/Gen.jl/src/modeling_library/switch/switch.jl diff --git a/test/test-files/pkgs-ta/2/Gen.jl/src/modeling_library/switch/trace.jl b/test/test-files/pkgs-ta/3/Gen.jl/src/modeling_library/switch/trace.jl similarity index 100% rename from test/test-files/pkgs-ta/2/Gen.jl/src/modeling_library/switch/trace.jl rename to test/test-files/pkgs-ta/3/Gen.jl/src/modeling_library/switch/trace.jl diff --git a/test/test-files/pkgs-ta/2/Gen.jl/src/modeling_library/switch/update.jl b/test/test-files/pkgs-ta/3/Gen.jl/src/modeling_library/switch/update.jl similarity index 100% rename from test/test-files/pkgs-ta/2/Gen.jl/src/modeling_library/switch/update.jl rename to test/test-files/pkgs-ta/3/Gen.jl/src/modeling_library/switch/update.jl diff --git a/test/test-files/pkgs-ta/2/Gen.jl/src/modeling_library/unfold/assess.jl b/test/test-files/pkgs-ta/3/Gen.jl/src/modeling_library/unfold/assess.jl similarity index 100% rename from test/test-files/pkgs-ta/2/Gen.jl/src/modeling_library/unfold/assess.jl rename to test/test-files/pkgs-ta/3/Gen.jl/src/modeling_library/unfold/assess.jl diff --git a/test/test-files/pkgs-ta/2/Gen.jl/src/modeling_library/unfold/backprop.jl b/test/test-files/pkgs-ta/3/Gen.jl/src/modeling_library/unfold/backprop.jl similarity index 100% rename from test/test-files/pkgs-ta/2/Gen.jl/src/modeling_library/unfold/backprop.jl rename to test/test-files/pkgs-ta/3/Gen.jl/src/modeling_library/unfold/backprop.jl diff --git a/test/test-files/pkgs-ta/2/Gen.jl/src/modeling_library/unfold/generate.jl b/test/test-files/pkgs-ta/3/Gen.jl/src/modeling_library/unfold/generate.jl similarity index 100% rename from test/test-files/pkgs-ta/2/Gen.jl/src/modeling_library/unfold/generate.jl rename to test/test-files/pkgs-ta/3/Gen.jl/src/modeling_library/unfold/generate.jl diff --git a/test/test-files/pkgs-ta/2/Gen.jl/src/modeling_library/unfold/generic_update.jl b/test/test-files/pkgs-ta/3/Gen.jl/src/modeling_library/unfold/generic_update.jl similarity index 100% rename from test/test-files/pkgs-ta/2/Gen.jl/src/modeling_library/unfold/generic_update.jl rename to test/test-files/pkgs-ta/3/Gen.jl/src/modeling_library/unfold/generic_update.jl diff --git a/test/test-files/pkgs-ta/2/Gen.jl/src/modeling_library/unfold/propose.jl b/test/test-files/pkgs-ta/3/Gen.jl/src/modeling_library/unfold/propose.jl similarity index 100% rename from test/test-files/pkgs-ta/2/Gen.jl/src/modeling_library/unfold/propose.jl rename to test/test-files/pkgs-ta/3/Gen.jl/src/modeling_library/unfold/propose.jl diff --git a/test/test-files/pkgs-ta/2/Gen.jl/src/modeling_library/unfold/regenerate.jl b/test/test-files/pkgs-ta/3/Gen.jl/src/modeling_library/unfold/regenerate.jl similarity index 100% rename from test/test-files/pkgs-ta/2/Gen.jl/src/modeling_library/unfold/regenerate.jl rename to test/test-files/pkgs-ta/3/Gen.jl/src/modeling_library/unfold/regenerate.jl diff --git a/test/test-files/pkgs-ta/2/Gen.jl/src/modeling_library/unfold/simulate.jl b/test/test-files/pkgs-ta/3/Gen.jl/src/modeling_library/unfold/simulate.jl similarity index 100% rename from test/test-files/pkgs-ta/2/Gen.jl/src/modeling_library/unfold/simulate.jl rename to test/test-files/pkgs-ta/3/Gen.jl/src/modeling_library/unfold/simulate.jl diff --git a/test/test-files/pkgs-ta/2/Gen.jl/src/modeling_library/unfold/unfold.jl b/test/test-files/pkgs-ta/3/Gen.jl/src/modeling_library/unfold/unfold.jl similarity index 100% rename from test/test-files/pkgs-ta/2/Gen.jl/src/modeling_library/unfold/unfold.jl rename to test/test-files/pkgs-ta/3/Gen.jl/src/modeling_library/unfold/unfold.jl diff --git a/test/test-files/pkgs-ta/2/Gen.jl/src/modeling_library/unfold/update.jl b/test/test-files/pkgs-ta/3/Gen.jl/src/modeling_library/unfold/update.jl similarity index 100% rename from test/test-files/pkgs-ta/2/Gen.jl/src/modeling_library/unfold/update.jl rename to test/test-files/pkgs-ta/3/Gen.jl/src/modeling_library/unfold/update.jl diff --git a/test/test-files/pkgs-ta/2/Gen.jl/src/modeling_library/vector.jl b/test/test-files/pkgs-ta/3/Gen.jl/src/modeling_library/vector.jl similarity index 100% rename from test/test-files/pkgs-ta/2/Gen.jl/src/modeling_library/vector.jl rename to test/test-files/pkgs-ta/3/Gen.jl/src/modeling_library/vector.jl diff --git a/test/test-files/pkgs-ta/2/Gen.jl/src/optimization.jl b/test/test-files/pkgs-ta/3/Gen.jl/src/optimization.jl similarity index 100% rename from test/test-files/pkgs-ta/2/Gen.jl/src/optimization.jl rename to test/test-files/pkgs-ta/3/Gen.jl/src/optimization.jl diff --git a/test/test-files/pkgs-ta/2/Gen.jl/src/static_ir/backprop.jl b/test/test-files/pkgs-ta/3/Gen.jl/src/static_ir/backprop.jl similarity index 100% rename from test/test-files/pkgs-ta/2/Gen.jl/src/static_ir/backprop.jl rename to test/test-files/pkgs-ta/3/Gen.jl/src/static_ir/backprop.jl diff --git a/test/test-files/pkgs-ta/2/Gen.jl/src/static_ir/dag.jl b/test/test-files/pkgs-ta/3/Gen.jl/src/static_ir/dag.jl similarity index 100% rename from test/test-files/pkgs-ta/2/Gen.jl/src/static_ir/dag.jl rename to test/test-files/pkgs-ta/3/Gen.jl/src/static_ir/dag.jl diff --git a/test/test-files/pkgs-ta/2/Gen.jl/src/static_ir/generate.jl b/test/test-files/pkgs-ta/3/Gen.jl/src/static_ir/generate.jl similarity index 100% rename from test/test-files/pkgs-ta/2/Gen.jl/src/static_ir/generate.jl rename to test/test-files/pkgs-ta/3/Gen.jl/src/static_ir/generate.jl diff --git a/test/test-files/pkgs-ta/2/Gen.jl/src/static_ir/print_ir.jl b/test/test-files/pkgs-ta/3/Gen.jl/src/static_ir/print_ir.jl similarity index 100% rename from test/test-files/pkgs-ta/2/Gen.jl/src/static_ir/print_ir.jl rename to test/test-files/pkgs-ta/3/Gen.jl/src/static_ir/print_ir.jl diff --git a/test/test-files/pkgs-ta/2/Gen.jl/src/static_ir/project.jl b/test/test-files/pkgs-ta/3/Gen.jl/src/static_ir/project.jl similarity index 100% rename from test/test-files/pkgs-ta/2/Gen.jl/src/static_ir/project.jl rename to test/test-files/pkgs-ta/3/Gen.jl/src/static_ir/project.jl diff --git a/test/test-files/pkgs-ta/2/Gen.jl/src/static_ir/render_ir.jl b/test/test-files/pkgs-ta/3/Gen.jl/src/static_ir/render_ir.jl similarity index 100% rename from test/test-files/pkgs-ta/2/Gen.jl/src/static_ir/render_ir.jl rename to test/test-files/pkgs-ta/3/Gen.jl/src/static_ir/render_ir.jl diff --git a/test/test-files/pkgs-ta/2/Gen.jl/src/static_ir/simulate.jl b/test/test-files/pkgs-ta/3/Gen.jl/src/static_ir/simulate.jl similarity index 100% rename from test/test-files/pkgs-ta/2/Gen.jl/src/static_ir/simulate.jl rename to test/test-files/pkgs-ta/3/Gen.jl/src/static_ir/simulate.jl diff --git a/test/test-files/pkgs-ta/2/Gen.jl/src/static_ir/static_ir.jl b/test/test-files/pkgs-ta/3/Gen.jl/src/static_ir/static_ir.jl similarity index 100% rename from test/test-files/pkgs-ta/2/Gen.jl/src/static_ir/static_ir.jl rename to test/test-files/pkgs-ta/3/Gen.jl/src/static_ir/static_ir.jl diff --git a/test/test-files/pkgs-ta/2/Gen.jl/src/static_ir/trace.jl b/test/test-files/pkgs-ta/3/Gen.jl/src/static_ir/trace.jl similarity index 100% rename from test/test-files/pkgs-ta/2/Gen.jl/src/static_ir/trace.jl rename to test/test-files/pkgs-ta/3/Gen.jl/src/static_ir/trace.jl diff --git a/test/test-files/pkgs-ta/2/Gen.jl/src/static_ir/update.jl b/test/test-files/pkgs-ta/3/Gen.jl/src/static_ir/update.jl similarity index 100% rename from test/test-files/pkgs-ta/2/Gen.jl/src/static_ir/update.jl rename to test/test-files/pkgs-ta/3/Gen.jl/src/static_ir/update.jl diff --git a/test/test-files/pkgs-ta/2/Gen.jl/src/trie.jl b/test/test-files/pkgs-ta/3/Gen.jl/src/trie.jl similarity index 100% rename from test/test-files/pkgs-ta/2/Gen.jl/src/trie.jl rename to test/test-files/pkgs-ta/3/Gen.jl/src/trie.jl diff --git a/test/test-files/pkgs-ta/2/Gen.jl/test/assignment.jl b/test/test-files/pkgs-ta/3/Gen.jl/test/assignment.jl similarity index 100% rename from test/test-files/pkgs-ta/2/Gen.jl/test/assignment.jl rename to test/test-files/pkgs-ta/3/Gen.jl/test/assignment.jl diff --git a/test/test-files/pkgs-ta/2/Gen.jl/test/autodiff.jl b/test/test-files/pkgs-ta/3/Gen.jl/test/autodiff.jl similarity index 100% rename from test/test-files/pkgs-ta/2/Gen.jl/test/autodiff.jl rename to test/test-files/pkgs-ta/3/Gen.jl/test/autodiff.jl diff --git a/test/test-files/pkgs-ta/2/Gen.jl/test/diff.jl b/test/test-files/pkgs-ta/3/Gen.jl/test/diff.jl similarity index 100% rename from test/test-files/pkgs-ta/2/Gen.jl/test/diff.jl rename to test/test-files/pkgs-ta/3/Gen.jl/test/diff.jl diff --git a/test/test-files/pkgs-ta/2/Gen.jl/test/dsl/dsl.jl b/test/test-files/pkgs-ta/3/Gen.jl/test/dsl/dsl.jl similarity index 100% rename from test/test-files/pkgs-ta/2/Gen.jl/test/dsl/dsl.jl rename to test/test-files/pkgs-ta/3/Gen.jl/test/dsl/dsl.jl diff --git a/test/test-files/pkgs-ta/2/Gen.jl/test/dsl/dynamic_dsl.jl b/test/test-files/pkgs-ta/3/Gen.jl/test/dsl/dynamic_dsl.jl similarity index 100% rename from test/test-files/pkgs-ta/2/Gen.jl/test/dsl/dynamic_dsl.jl rename to test/test-files/pkgs-ta/3/Gen.jl/test/dsl/dynamic_dsl.jl diff --git a/test/test-files/pkgs-ta/2/Gen.jl/test/dsl/macros.jl b/test/test-files/pkgs-ta/3/Gen.jl/test/dsl/macros.jl similarity index 100% rename from test/test-files/pkgs-ta/2/Gen.jl/test/dsl/macros.jl rename to test/test-files/pkgs-ta/3/Gen.jl/test/dsl/macros.jl diff --git a/test/test-files/pkgs-ta/2/Gen.jl/test/dsl/static_dsl.jl b/test/test-files/pkgs-ta/3/Gen.jl/test/dsl/static_dsl.jl similarity index 100% rename from test/test-files/pkgs-ta/2/Gen.jl/test/dsl/static_dsl.jl rename to test/test-files/pkgs-ta/3/Gen.jl/test/dsl/static_dsl.jl diff --git a/test/test-files/pkgs-ta/2/Gen.jl/test/gen_fn_interface.jl b/test/test-files/pkgs-ta/3/Gen.jl/test/gen_fn_interface.jl similarity index 100% rename from test/test-files/pkgs-ta/2/Gen.jl/test/gen_fn_interface.jl rename to test/test-files/pkgs-ta/3/Gen.jl/test/gen_fn_interface.jl diff --git a/test/test-files/pkgs-ta/2/Gen.jl/test/inference/elliptical_slice.jl b/test/test-files/pkgs-ta/3/Gen.jl/test/inference/elliptical_slice.jl similarity index 100% rename from test/test-files/pkgs-ta/2/Gen.jl/test/inference/elliptical_slice.jl rename to test/test-files/pkgs-ta/3/Gen.jl/test/inference/elliptical_slice.jl diff --git a/test/test-files/pkgs-ta/2/Gen.jl/test/inference/hmc.jl b/test/test-files/pkgs-ta/3/Gen.jl/test/inference/hmc.jl similarity index 100% rename from test/test-files/pkgs-ta/2/Gen.jl/test/inference/hmc.jl rename to test/test-files/pkgs-ta/3/Gen.jl/test/inference/hmc.jl diff --git a/test/test-files/pkgs-ta/2/Gen.jl/test/inference/importance_sampling.jl b/test/test-files/pkgs-ta/3/Gen.jl/test/inference/importance_sampling.jl similarity index 100% rename from test/test-files/pkgs-ta/2/Gen.jl/test/inference/importance_sampling.jl rename to test/test-files/pkgs-ta/3/Gen.jl/test/inference/importance_sampling.jl diff --git a/test/test-files/pkgs-ta/2/Gen.jl/test/inference/inference.jl b/test/test-files/pkgs-ta/3/Gen.jl/test/inference/inference.jl similarity index 100% rename from test/test-files/pkgs-ta/2/Gen.jl/test/inference/inference.jl rename to test/test-files/pkgs-ta/3/Gen.jl/test/inference/inference.jl diff --git a/test/test-files/pkgs-ta/2/Gen.jl/test/inference/mala.jl b/test/test-files/pkgs-ta/3/Gen.jl/test/inference/mala.jl similarity index 100% rename from test/test-files/pkgs-ta/2/Gen.jl/test/inference/mala.jl rename to test/test-files/pkgs-ta/3/Gen.jl/test/inference/mala.jl diff --git a/test/test-files/pkgs-ta/2/Gen.jl/test/inference/map_optimize.jl b/test/test-files/pkgs-ta/3/Gen.jl/test/inference/map_optimize.jl similarity index 100% rename from test/test-files/pkgs-ta/2/Gen.jl/test/inference/map_optimize.jl rename to test/test-files/pkgs-ta/3/Gen.jl/test/inference/map_optimize.jl diff --git a/test/test-files/pkgs-ta/2/Gen.jl/test/inference/mh.jl b/test/test-files/pkgs-ta/3/Gen.jl/test/inference/mh.jl similarity index 100% rename from test/test-files/pkgs-ta/2/Gen.jl/test/inference/mh.jl rename to test/test-files/pkgs-ta/3/Gen.jl/test/inference/mh.jl diff --git a/test/test-files/pkgs-ta/2/Gen.jl/test/inference/particle_filter.jl b/test/test-files/pkgs-ta/3/Gen.jl/test/inference/particle_filter.jl similarity index 100% rename from test/test-files/pkgs-ta/2/Gen.jl/test/inference/particle_filter.jl rename to test/test-files/pkgs-ta/3/Gen.jl/test/inference/particle_filter.jl diff --git a/test/test-files/pkgs-ta/2/Gen.jl/test/inference/trace_translators.jl b/test/test-files/pkgs-ta/3/Gen.jl/test/inference/trace_translators.jl similarity index 100% rename from test/test-files/pkgs-ta/2/Gen.jl/test/inference/trace_translators.jl rename to test/test-files/pkgs-ta/3/Gen.jl/test/inference/trace_translators.jl diff --git a/test/test-files/pkgs-ta/2/Gen.jl/test/inference/train.jl b/test/test-files/pkgs-ta/3/Gen.jl/test/inference/train.jl similarity index 100% rename from test/test-files/pkgs-ta/2/Gen.jl/test/inference/train.jl rename to test/test-files/pkgs-ta/3/Gen.jl/test/inference/train.jl diff --git a/test/test-files/pkgs-ta/2/Gen.jl/test/inference/variational.jl b/test/test-files/pkgs-ta/3/Gen.jl/test/inference/variational.jl similarity index 100% rename from test/test-files/pkgs-ta/2/Gen.jl/test/inference/variational.jl rename to test/test-files/pkgs-ta/3/Gen.jl/test/inference/variational.jl diff --git a/test/test-files/pkgs-ta/2/Gen.jl/test/modeling_library/call_at.jl b/test/test-files/pkgs-ta/3/Gen.jl/test/modeling_library/call_at.jl similarity index 100% rename from test/test-files/pkgs-ta/2/Gen.jl/test/modeling_library/call_at.jl rename to test/test-files/pkgs-ta/3/Gen.jl/test/modeling_library/call_at.jl diff --git a/test/test-files/pkgs-ta/2/Gen.jl/test/modeling_library/choice_at.jl b/test/test-files/pkgs-ta/3/Gen.jl/test/modeling_library/choice_at.jl similarity index 100% rename from test/test-files/pkgs-ta/2/Gen.jl/test/modeling_library/choice_at.jl rename to test/test-files/pkgs-ta/3/Gen.jl/test/modeling_library/choice_at.jl diff --git a/test/test-files/pkgs-ta/2/Gen.jl/test/modeling_library/custom_determ.jl b/test/test-files/pkgs-ta/3/Gen.jl/test/modeling_library/custom_determ.jl similarity index 100% rename from test/test-files/pkgs-ta/2/Gen.jl/test/modeling_library/custom_determ.jl rename to test/test-files/pkgs-ta/3/Gen.jl/test/modeling_library/custom_determ.jl diff --git a/test/test-files/pkgs-ta/2/Gen.jl/test/modeling_library/dist_dsl.jl b/test/test-files/pkgs-ta/3/Gen.jl/test/modeling_library/dist_dsl.jl similarity index 100% rename from test/test-files/pkgs-ta/2/Gen.jl/test/modeling_library/dist_dsl.jl rename to test/test-files/pkgs-ta/3/Gen.jl/test/modeling_library/dist_dsl.jl diff --git a/test/test-files/pkgs-ta/2/Gen.jl/test/modeling_library/distributions.jl b/test/test-files/pkgs-ta/3/Gen.jl/test/modeling_library/distributions.jl similarity index 100% rename from test/test-files/pkgs-ta/2/Gen.jl/test/modeling_library/distributions.jl rename to test/test-files/pkgs-ta/3/Gen.jl/test/modeling_library/distributions.jl diff --git a/test/test-files/pkgs-ta/2/Gen.jl/test/modeling_library/map.jl b/test/test-files/pkgs-ta/3/Gen.jl/test/modeling_library/map.jl similarity index 100% rename from test/test-files/pkgs-ta/2/Gen.jl/test/modeling_library/map.jl rename to test/test-files/pkgs-ta/3/Gen.jl/test/modeling_library/map.jl diff --git a/test/test-files/pkgs-ta/2/Gen.jl/test/modeling_library/mixture.jl b/test/test-files/pkgs-ta/3/Gen.jl/test/modeling_library/mixture.jl similarity index 100% rename from test/test-files/pkgs-ta/2/Gen.jl/test/modeling_library/mixture.jl rename to test/test-files/pkgs-ta/3/Gen.jl/test/modeling_library/mixture.jl diff --git a/test/test-files/pkgs-ta/2/Gen.jl/test/modeling_library/modeling_library.jl b/test/test-files/pkgs-ta/3/Gen.jl/test/modeling_library/modeling_library.jl similarity index 100% rename from test/test-files/pkgs-ta/2/Gen.jl/test/modeling_library/modeling_library.jl rename to test/test-files/pkgs-ta/3/Gen.jl/test/modeling_library/modeling_library.jl diff --git a/test/test-files/pkgs-ta/2/Gen.jl/test/modeling_library/recurse.jl b/test/test-files/pkgs-ta/3/Gen.jl/test/modeling_library/recurse.jl similarity index 100% rename from test/test-files/pkgs-ta/2/Gen.jl/test/modeling_library/recurse.jl rename to test/test-files/pkgs-ta/3/Gen.jl/test/modeling_library/recurse.jl diff --git a/test/test-files/pkgs-ta/2/Gen.jl/test/modeling_library/switch.jl b/test/test-files/pkgs-ta/3/Gen.jl/test/modeling_library/switch.jl similarity index 100% rename from test/test-files/pkgs-ta/2/Gen.jl/test/modeling_library/switch.jl rename to test/test-files/pkgs-ta/3/Gen.jl/test/modeling_library/switch.jl diff --git a/test/test-files/pkgs-ta/2/Gen.jl/test/modeling_library/unfold.jl b/test/test-files/pkgs-ta/3/Gen.jl/test/modeling_library/unfold.jl similarity index 100% rename from test/test-files/pkgs-ta/2/Gen.jl/test/modeling_library/unfold.jl rename to test/test-files/pkgs-ta/3/Gen.jl/test/modeling_library/unfold.jl diff --git a/test/test-files/pkgs-ta/2/Gen.jl/test/optional_args.jl b/test/test-files/pkgs-ta/3/Gen.jl/test/optional_args.jl similarity index 100% rename from test/test-files/pkgs-ta/2/Gen.jl/test/optional_args.jl rename to test/test-files/pkgs-ta/3/Gen.jl/test/optional_args.jl diff --git a/test/test-files/pkgs-ta/2/Gen.jl/test/runtests.jl b/test/test-files/pkgs-ta/3/Gen.jl/test/runtests.jl similarity index 100% rename from test/test-files/pkgs-ta/2/Gen.jl/test/runtests.jl rename to test/test-files/pkgs-ta/3/Gen.jl/test/runtests.jl diff --git a/test/test-files/pkgs-ta/2/Gen.jl/test/selection.jl b/test/test-files/pkgs-ta/3/Gen.jl/test/selection.jl similarity index 100% rename from test/test-files/pkgs-ta/2/Gen.jl/test/selection.jl rename to test/test-files/pkgs-ta/3/Gen.jl/test/selection.jl diff --git a/test/test-files/pkgs-ta/2/Gen.jl/test/static_ir/static_ir.jl b/test/test-files/pkgs-ta/3/Gen.jl/test/static_ir/static_ir.jl similarity index 100% rename from test/test-files/pkgs-ta/2/Gen.jl/test/static_ir/static_ir.jl rename to test/test-files/pkgs-ta/3/Gen.jl/test/static_ir/static_ir.jl diff --git a/test/test-files/pkgs-ta/2/Gen.jl/test/tilde_sugar.jl b/test/test-files/pkgs-ta/3/Gen.jl/test/tilde_sugar.jl similarity index 100% rename from test/test-files/pkgs-ta/2/Gen.jl/test/tilde_sugar.jl rename to test/test-files/pkgs-ta/3/Gen.jl/test/tilde_sugar.jl diff --git a/test/test-files/pkgs-ta/3/YaoSym.jl/.gitignore b/test/test-files/pkgs-ta/3/YaoSym.jl/.gitignore new file mode 100644 index 0000000..94a69b6 --- /dev/null +++ b/test/test-files/pkgs-ta/3/YaoSym.jl/.gitignore @@ -0,0 +1,9 @@ +.vscode +*.jl.*.cov +*.jl.cov +*.jl.mem +.DS_Store +/dev/ +.vscode + +Manifest.toml \ No newline at end of file diff --git a/test/test-files/pkgs-ta/3/YaoSym.jl/LICENSE b/test/test-files/pkgs-ta/3/YaoSym.jl/LICENSE new file mode 100644 index 0000000..eb3b084 --- /dev/null +++ b/test/test-files/pkgs-ta/3/YaoSym.jl/LICENSE @@ -0,0 +1,203 @@ +Copyright (c) 2019 QuantumBFS + + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "{}" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright 2019 Xiuzhe Luo, Jin-guo Liu + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. diff --git a/test/test-files/pkgs-ta/3/YaoSym.jl/Project.toml b/test/test-files/pkgs-ta/3/YaoSym.jl/Project.toml new file mode 100644 index 0000000..e2db171 --- /dev/null +++ b/test/test-files/pkgs-ta/3/YaoSym.jl/Project.toml @@ -0,0 +1,28 @@ +name = "YaoSym" +uuid = "3b27209a-d3d6-11e9-3c0f-41eb92b2cb9d" +version = "0.6.5" + +[deps] +BitBasis = "50ba71b6-fa0f-514d-ae9a-0916efc90dcf" +LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e" +LuxurySparse = "d05aeea4-b7d4-55ac-b691-9e7fabb07ba2" +Requires = "ae029012-a4dd-5104-9daa-d747884805df" +SparseArrays = "2f01184e-e22b-5df5-ae63-d93ebab69eaf" +YaoArrayRegister = "e600142f-9330-5003-8abb-0ebd767abc51" +YaoBlocks = "418bc28f-b43b-5e0b-a6e7-61bbc1a2c1df" + +[compat] +BitBasis = "0.8" +LuxurySparse = "0.7" +Requires = "1" +SymEngine = "0.8" +YaoArrayRegister = "0.9" +YaoBlocks = "0.13" +julia = "1" + +[extras] +SymEngine = "123dc426-2d89-5057-bbad-38513e3affd8" +Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40" + +[targets] +test = ["Test", "SymEngine"] diff --git a/test/test-files/pkgs-ta/3/YaoSym.jl/README.md b/test/test-files/pkgs-ta/3/YaoSym.jl/README.md new file mode 100644 index 0000000..59d3f97 --- /dev/null +++ b/test/test-files/pkgs-ta/3/YaoSym.jl/README.md @@ -0,0 +1,3 @@ +# YaoSym + +Symbolic computation backend for [Yao.jl](https://github.com/QuantumBFS/Yao.jl). diff --git a/test/test-files/pkgs-ta/3/YaoSym.jl/docs/Project.toml b/test/test-files/pkgs-ta/3/YaoSym.jl/docs/Project.toml new file mode 100644 index 0000000..275f6f8 --- /dev/null +++ b/test/test-files/pkgs-ta/3/YaoSym.jl/docs/Project.toml @@ -0,0 +1,7 @@ +[deps] +BitBasis = "50ba71b6-fa0f-514d-ae9a-0916efc90dcf" +Documenter = "e30172f5-a6a5-5a46-863b-614d45cd2de4" +Yao = "5872b779-8223-5990-8dd0-5abbb0748c8c" +YaoArrayRegister = "e600142f-9330-5003-8abb-0ebd767abc51" +YaoBlocks = "418bc28f-b43b-5e0b-a6e7-61bbc1a2c1df" +YaoSym = "3b27209a-d3d6-11e9-3c0f-41eb92b2cb9d" diff --git a/test/test-files/pkgs-ta/3/YaoSym.jl/docs/make.jl b/test/test-files/pkgs-ta/3/YaoSym.jl/docs/make.jl new file mode 100644 index 0000000..96dc315 --- /dev/null +++ b/test/test-files/pkgs-ta/3/YaoSym.jl/docs/make.jl @@ -0,0 +1,10 @@ +using Documenter +using YaoArrayRegister, YaoBlocks, YaoSym + +makedocs( + modules = [YaoSym], + doctest = true, + clean = false, + sitename = "YaoSym.jl", + pages = ["index.md"], +) diff --git a/test/test-files/pkgs-ta/3/YaoSym.jl/docs/src/index.md b/test/test-files/pkgs-ta/3/YaoSym.jl/docs/src/index.md new file mode 100644 index 0000000..1fdb3d1 --- /dev/null +++ b/test/test-files/pkgs-ta/3/YaoSym.jl/docs/src/index.md @@ -0,0 +1,9 @@ +```@meta +DocTestSetup = quote + using Yao, YaoBlocks, YaoArrayRegister, YaoSym +end +``` + +```@autodocs +Modules = [YaoSym] +``` diff --git a/test/test-files/pkgs-ta/3/YaoSym.jl/example/symad.jl b/test/test-files/pkgs-ta/3/YaoSym.jl/example/symad.jl new file mode 100644 index 0000000..4d38982 --- /dev/null +++ b/test/test-files/pkgs-ta/3/YaoSym.jl/example/symad.jl @@ -0,0 +1,37 @@ +using Yao.EasyBuild, Yao, SymEngine + +function sym_variational_circuit(nbit, nlayer; entangler = cnot) + circuit = chain(nbit) + k = 0 + genθ() = (k += 1; Basic(Symbol(:θ, k))) + + ent = chain(nbit, entangler(nbit, i, mod1(i+1, nbit)) for i in 1:nbit) + has_param = nparameters(ent) != 0 + for i in 1:(nlayer+1) + i != 1 && push!(circuit, has_param ? deepcopy(ent) : ent) + r = chain(nbit) + for j in 1:nbit + ci = + i == 1 ? (i == nlayer + 1 ? Rx(genθ()) : chain(Rx(genθ()), Rz(genθ()))) : + ( + i == nlayer + 1 ? chain(Rz(genθ()), Rx(genθ())) : + chain(Rz(genθ()), Rx(genθ()), Rz(genθ())) + ) + push!(r, put(nbit, j => ci)) + end + push!(circuit, r) + end + circuit +end + +circ = sym_variational_circuit(2, 1) + +reg = arrayreg(Basic, bit"00") => circ +op = put(2, 2 => Z) +ex = expect'(op, reg)[2] +params = randn(nparameters(circ)) +assign = Dict(zip(parameters(circ), params)) +ex2 = map(x -> ComplexF64(subs(x, assign...)), ex) +circ2 = variational_circuit(2, 1) +dispatch!(circ2, params) +real(ex2) ≈ real(expect'(op, ArrayReg(bit"00") => circ2)[2]) diff --git a/test/test-files/pkgs-ta/3/YaoSym.jl/example/symad2.jl b/test/test-files/pkgs-ta/3/YaoSym.jl/example/symad2.jl new file mode 100644 index 0000000..fff3510 --- /dev/null +++ b/test/test-files/pkgs-ta/3/YaoSym.jl/example/symad2.jl @@ -0,0 +1,16 @@ +using Yao, Yao.EasyBuild, Test + +@vars α β γ +c = chain(put(3, 2 => Rx(α)), control(3, 2, 1 => Ry(β)), put(3, (1, 2) => rot(kron(X, X), γ))) +h = heisenberg(3); +es = expect(h, zero_state(Basic, 3) => c) +gs = expect'(h, zero_state(Basic, 3) => c).second +assign = Dict(α => 0.5, β => 0.7, γ => 0.8) + +cn = subs(Float64, c, assign...) +en = expect(h, zero_state(3) => cn) +gn = expect'(h, zero_state(3) => cn).second +es_ = subs(es, assign...) +gs_ = map(x -> subs(x, assign...), gs) +@test ComplexF64.(gs_) ≈ gn +@test ComplexF64(es_) ≈ en diff --git a/test/test-files/pkgs-ta/3/YaoSym.jl/src/YaoSym.jl b/test/test-files/pkgs-ta/3/YaoSym.jl/src/YaoSym.jl new file mode 100644 index 0000000..6d3af97 --- /dev/null +++ b/test/test-files/pkgs-ta/3/YaoSym.jl/src/YaoSym.jl @@ -0,0 +1,11 @@ +module YaoSym + +using Requires + +include("register.jl") + +function __init__() + @require SymEngine = "123dc426-2d89-5057-bbad-38513e3affd8" include("symengine/backend.jl") +end + +end # module diff --git a/test/test-files/pkgs-ta/3/YaoSym.jl/src/register.jl b/test/test-files/pkgs-ta/3/YaoSym.jl/src/register.jl new file mode 100644 index 0000000..1e80db8 --- /dev/null +++ b/test/test-files/pkgs-ta/3/YaoSym.jl/src/register.jl @@ -0,0 +1,164 @@ +using SparseArrays, BitBasis, YaoArrayRegister +export @ket_str, @bra_str + +function parse_str(s::String) + v = 0 + k = 1 + for each in reverse(filter(x -> x != '_', s)) + if each == '1' + v += 1 << (k - 1) + k += 1 + elseif each == '0' + k += 1 + elseif each == '_' + continue + else + error("expect 0 or 1, got $each at $k-th bit") + end + end + return v, k - 1 +end + +function ket_m(s) + error( + "Please install SymEngine and type using SymEngine explicitly to use symbolic functionality of Yao", + ) +end + +function bra_m(s) + adjoint(ket_m(s)) +end + +""" + @ket_str + +Create a ket register. See also [`@bra_str`](@ref). + +### Examples + +a symbolic quantum state can be created simply by + +```jldoctest; setup=:(using Yao, SymEngine) +julia> ket"110" + 2ket"111" +|110⟩ + 2.0|111⟩ +``` + +qubits can be partially actived by [`focus!`](@ref) + +```jldoctest; setup=:(using Yao, SymEngine) +julia> ket"100" + ket"111" |> focus!(1:2) +|100⟩ + |111⟩ +``` + +""" +macro ket_str(s) + ket_m(s) +end + +""" + @bra_str + +Create a bra register. See also [`@ket_str`](@ref). + +### Examples + +Similar to `@ket_str` literal, a symbolic quantum state can be created +by + +```jldoctest; setup=:(using Yao, SymEngine) +julia> bra"111" + 2bra"101" +2.0⟨101| + ⟨111| + +julia> bra"111" * (ket"101" + ket"111") +1 +``` +""" +macro bra_str(s) + bra_m(s) +end + +function print_braket(f, io::IO, r) + print(io, "|") + f() + print(io, "⟩") +end + +function print_braket(f, io::IO, r::AdjointArrayReg) + print(io, "⟨") + f() + print(io, "|") +end + +function print_basis(io, active::Int, remain::Int, r) + print_braket(io, r) do + printstyled(io, string(remain, base = 2, pad = nremain(r)), color = :light_black) + print(io, string(active, base = 2, pad = nactive(r))) + end +end + +function print_amp(io::IO, x) + if !isone(x) + if isempty(free_symbols(x)) + print(io, round(N(x); digits = 2)) + else + print(io, x) + end + end +end + +function print_sym_state(io::IO, r::ArrayReg) + st = state(r) + m, n = size(st) + isfirst_nonzero = true + amp = st[1, 1] + if !iszero(amp) + print_amp(io, amp) + print_basis(io, 0, 0, r) + isfirst_nonzero = false + end + + for j in 1:n, i in 1:m + i == 1 && j == 1 && continue + amp = st[i, j] + if iszero(amp) + continue + end + + isfirst_nonzero || print(io, " + ") + print_amp(io, amp) + print_basis(io, i - 1, j - 1, r) + isfirst_nonzero = false + end +end + +function print_sym_state(io::IO, r::AdjointRegister{D,<:ArrayReg{D}}) where D + st = state(r) + m, n = size(st) + isfirst_nonzero = true + amp = st[1, 1] + if !iszero(amp) + print_amp(io, amp) + print_basis(io, 0, 0, r) + isfirst_nonzero = false + end + + for j in 1:n, i in 1:m + i == 1 && j == 1 && continue + amp = st[i, j] + if iszero(amp) + continue + end + + isfirst_nonzero || print(io, " + ") + print_amp(io, amp) + print_basis(io, j - 1, i - 1, r) + isfirst_nonzero = false + end +end + +# TODO: need a more extensible implementation +# Base.:(*)(x::SymReg{B, MT}, y::SymReg{B, MT}) where {B, MT} = SymReg{B, MT}(kron(state(x), state(y))) +# Base.:(^)(x::SymReg{B, MT}, n::Int) where {B, MT} = SymReg{B, MT}(kron(state(x) for _ in 1:n)) + +# Base.:(*)(x::AdjointSymReg{B, MT}, y::AdjointSymReg{B, MT}) where {B, MT} = adjoint(parent(x) * parent(y)) +# Base.:(^)(x::AdjointSymReg{B, MT}, n::Int) where {B, MT} = adjoint(parent(x)^n) diff --git a/test/test-files/pkgs-ta/3/YaoSym.jl/src/symengine/backend.jl b/test/test-files/pkgs-ta/3/YaoSym.jl/src/symengine/backend.jl new file mode 100644 index 0000000..14c46ae --- /dev/null +++ b/test/test-files/pkgs-ta/3/YaoSym.jl/src/symengine/backend.jl @@ -0,0 +1,8 @@ +using ..SymEngine +using ..SymEngine: @vars, Basic +export @vars, Basic, subs + +include("register.jl") +include("instruct.jl") +include("blocks.jl") +include("patch.jl") diff --git a/test/test-files/pkgs-ta/3/YaoSym.jl/src/symengine/blocks.jl b/test/test-files/pkgs-ta/3/YaoSym.jl/src/symengine/blocks.jl new file mode 100644 index 0000000..e2052f9 --- /dev/null +++ b/test/test-files/pkgs-ta/3/YaoSym.jl/src/symengine/blocks.jl @@ -0,0 +1,166 @@ +using YaoBlocks +using LuxurySparse +using LinearAlgebra +using ..SymEngine +using ..SymEngine: BasicType, BasicOp, BasicTrigFunction + +op_types = [:Mul, :Add, :Pow] +const BiVarOp = Union{[SymEngine.BasicType{Val{i}} for i in op_types]...} + +export @vars + +simag = SymFunction("Im") +sreal = SymFunction("Re") +sabs = SymFunction("abs") + +Base.promote_rule(::Type{Bool}, ::Type{Basic}) = Basic +# NOTE: need to annotate the output because otherwise it is type unstable! +Base.conj(x::Basic)::Basic = Basic(conj(SymEngine.BasicType(x))) +Base.conj(x::BasicType) = real(x) - im * imag(x) +Base.conj(x::BiVarOp) = juliafunc(x)(conj.(get_args(x.x))...) +Base.conj(x::BasicTrigFunction) = juliafunc(x)(conj.(get_args(x.x)...)...) +# WARNING: symbols and constants are assumed real! +Base.imag(x::BasicType{Val{:Constant}}) = Basic(0) +Base.imag(x::BasicType{Val{:Symbol}}) = Basic(0) +Base.abs(x::Basic) = Basic(abs(SymEngine.BasicType(x))) +Base.abs(x::BasicType{Val{:Constant}}) = x +Base.abs(x::BasicType{Val{:Symbol}}) = x +function Base.imag(x::BasicType{Val{:Add}}) + args = get_args(x.x) + mapreduce(imag, +, args) +end + +function Base.real(x::BasicType{Val{:Add}}) + args = get_args(x.x) + mapreduce(real, +, args) +end + +function Base.abs(x::BasicType{Val{:Add}}) + args = get_args(x.x) + mapreduce(abs, +, args) +end + +function Base.imag(x::BasicType{Val{:Mul}}) + args = (get_args(x.x)...,) + get_mul_imag(args) +end + +function Base.real(x::BasicType{Val{:Pow}}) + a, b = get_args(x.x) + if imag(a) == 0 && imag(b) == 0 + return x.x + else + if imag(a) == 0 + return a^real(b) * cos(log(a) * imag(b)) + else + return sreal(x.x) + end + end +end + +function Base.imag(x::BasicType{Val{:Pow}}) + a, b = get_args(x.x) + if imag(a) == 0 && imag(b) == 0 + return Basic(0) + else + if imag(a) == 0 + return a^real(b) * sin(log(a) * imag(b)) + else + return simag(x.x) + end + end +end + +function Base.abs(x::BasicType{Val{:Pow}}) + a, b = get_args(x.x) + abs(a)^real(b) +end + +function Base.real(x::BasicType{Val{:Mul}}) + args = (get_args(x.x)...,) + get_mul_real(args) +end + +function get_mul_imag(args::NTuple{N,Any}) where {N} + imag(args[1]) * get_mul_real(args[2:end]) + real(args[1]) * get_mul_imag(args[2:end]) +end +get_mul_imag(args::Tuple{Basic}) = imag(args[1]) + +function get_mul_real(args::NTuple{N,Any}) where {N} + real(args[1]) * get_mul_real(args[2:end]) - imag(args[1]) * get_mul_imag(args[2:end]) +end +get_mul_real(args::Tuple{Basic}) = real(args[1]) + +function Base.real(x::BasicTrigFunction) + a, = get_args(x.x) + if imag(a) == 0 + return x.x + else + return sreal(x.x) + end +end + +function Base.abs(x::BasicTrigFunction) + a, = get_args(x.x) + if imag(a) == 0 + return x.x + else + return sabs(x.x) + end +end + +function Base.imag(x::BasicTrigFunction) + a, = get_args(x.x) + if imag(a) == 0 + return Basic(0) + else + return simag(x.x) + end +end + +@generated function juliafunc(x::BasicType{Val{T}}) where {T} + SymEngine.map_fn(T, SymEngine.fn_map) +end + +const SymReal = Union{Basic,SymEngine.BasicRealNumber} +YaoBlocks.RotationGate(block::GT, theta::T) where {D,T<:SymReal,GT<:AbstractBlock{D}} = + RotationGate{D,T,GT}(block, theta) + +YaoBlocks.phase(θ::SymReal) = PhaseGate(θ) +YaoBlocks.shift(θ::SymReal) = ShiftGate(θ) + +YaoBlocks.mat(::Type{Basic}, gate::GT) where GT<:ConstantGate = _pretty_basic.(mat(gate)) +YaoBlocks.mat(::Type{Basic}, gate::ConstGate.TGate) = Diagonal(Basic[1, exp(Basic(im)*Basic(π)/4)]) +YaoBlocks.mat(::Type{Basic}, gate::ConstGate.TdagGate) = Diagonal(Basic[1, exp(-Basic(im)*Basic(π)/4)]) +YaoBlocks.mat(::Type{Basic}, ::HGate) = 1 / sqrt(Basic(2)) * Basic[1 1; 1 -1] +YaoBlocks.mat(::Type{Basic}, gate::ShiftGate) = Diagonal([1, exp(im * gate.theta)]) +YaoBlocks.mat(::Type{Basic}, gate::PhaseGate) = exp(im * gate.theta) * IMatrix(2) +function YaoBlocks.mat(::Type{Basic}, R::RotationGate{D}) where {D} + I = IMatrix(D^nqudits(R)) + return I * cos(R.theta / 2) - im * sin(R.theta / 2) * mat(Basic, R.block) +end +for GT in [:XGate, :YGate, :ZGate] + @eval YaoBlocks.mat(::Type{Basic}, R::RotationGate{D,T,<:$GT}) where {D,T} = + invoke(mat, Tuple{Type{Basic},RotationGate}, Basic, R) +end + +for T in [:(RotationGate{D,<:SymReal} where D), :(PhaseGate{<:SymReal}), :(ShiftGate{<:SymReal})] + @eval YaoBlocks.mat(gate::$T) = mat(Basic, gate) +end + +YaoBlocks.PSwap(n::Int, locs::Tuple{Int,Int}, θ::SymReal) = + YaoBlocks.PutBlock(n, rot(ConstGate.SWAPGate(), θ), locs) + +YaoBlocks.pswap(n::Int, i::Int, j::Int, α::SymReal) = PSwap(n, (i, j), α) +YaoBlocks.pswap(i::Int, j::Int, α::SymReal) = n -> pswap(n, i, j, α) + +export subs +SymEngine.subs(c::AbstractBlock, args...; kwargs...) = subs(Basic, c, args...; kwargs...) +function SymEngine.subs(::Type{T}, c::AbstractBlock, args...; kwargs...) where {T} + c = setiparams(c, map(x -> T(subs(x, args...; kwargs...)), getiparams(c))...) + chsubblocks(c, [subs(T, blk, args..., kwargs...) for blk in subblocks(c)]) +end + +# dumpload +YaoBlocks.tokenize_param(param::Basic) = QuoteNode(Symbol(param)) +YaoBlocks.parse_param(x::QuoteNode) = :(Basic($x)) diff --git a/test/test-files/pkgs-ta/3/YaoSym.jl/src/symengine/instruct.jl b/test/test-files/pkgs-ta/3/YaoSym.jl/src/symengine/instruct.jl new file mode 100644 index 0000000..bae33ba --- /dev/null +++ b/test/test-files/pkgs-ta/3/YaoSym.jl/src/symengine/instruct.jl @@ -0,0 +1,54 @@ +using ..SymEngine +import YaoArrayRegister: parametric_mat + +parametric_mat(::Type{T}, ::Val{:Rx}, theta::Basic) where {T} = + Basic[cos(theta / 2) -im*sin(theta / 2); -im*sin(theta / 2) cos(theta / 2)] +parametric_mat(::Type{T}, ::Val{:Ry}, theta::Basic) where {T} = + Basic[cos(theta / 2) -sin(theta / 2); sin(theta / 2) cos(theta / 2)] +parametric_mat(::Type{T}, ::Val{:Rz}, theta::Basic) where {T} = + Diagonal(Basic[exp(-im * theta / 2), exp(im * theta / 2)]) +parametric_mat(::Type{T}, ::Val{:CPHASE}, theta::Basic) where {T} = Diagonal(Basic[1, 1, 1, exp(im * theta)]) +parametric_mat(::Type{T}, ::Val{:PSWAP}, theta::Basic) where {T} = parametric_mat(Basic, Const.SWAP, theta) + +for G in [:Rx, :Ry, :Rz, :CPHASE] + # forward single gates + @eval function YaoArrayRegister.instruct!(::Val{2}, + state::AbstractVecOrMat{T}, + g::Val{$(QuoteNode(G))}, + locs::NTuple{N3,Int}, + control_locs::NTuple{N1,Int}, + control_bits::NTuple{N2,Int}, + theta::Basic, + ) where {T,N1,N2,N3} + m = parametric_mat(T, g, theta) + instruct!(Val(2), state, m, locs, control_locs, control_bits) + end + + # forward single gates + @eval function YaoArrayRegister.instruct!(::Val{2}, + state::AbstractVecOrMat{T}, + g::Val{$(QuoteNode(G))}, + locs::NTuple{N1,Int}, + theta::Basic, + ) where {T,N1} + instruct!(Val(2), state, g, locs, (), (), theta) + end + + @eval function YaoArrayRegister.instruct!(::Val{2}, + state::AbstractVecOrMat{T}, + g::Val{$(QuoteNode(G))}, + locs::Tuple{Int}, + theta::Basic, + ) where {T,N1} + instruct!(Val(2), state, g, locs, (), (), theta) + end +end + +@eval function YaoArrayRegister.instruct!(::Val{2}, + state::AbstractVecOrMat{T}, + g::Val{:PSWAP}, + locs::Tuple{Int,Int}, + theta::Basic, +) where {T,N1} + instruct!(Val(2), state, g, locs, (), (), theta) +end diff --git a/test/test-files/pkgs-ta/3/YaoSym.jl/src/symengine/patch.jl b/test/test-files/pkgs-ta/3/YaoSym.jl/src/symengine/patch.jl new file mode 100644 index 0000000..b22fa5a --- /dev/null +++ b/test/test-files/pkgs-ta/3/YaoSym.jl/src/symengine/patch.jl @@ -0,0 +1,54 @@ +using ..SymEngine: Basic +export simplify_expi + +function Base.iszero(x::Basic) + isempty(free_symbols(x)) && iszero(N(x)) +end + +SymEngine.free_symbols(syms::Union{Real,Complex}) = Basic[] +SymEngine.free_symbols(syms::AbstractArray{T}) where {T<:Union{Real,Complex}} = Basic[] +SymEngine.free_symbols(syms::AbstractArray{T}) where {T<:Union{Basic,SymEngine.BasicType}} = + SymEngine.free_symbols(Matrix(syms)) +function rand_assign(syms...) + fs = union(free_symbols.(syms)...) + Dict(zip(fs, randn(length(fs)))) +end + +function _basic_approx(x, y; atol = 1e-8) + diff = x - y + assign = rand_assign(x, y) + length(assign) > 0 && (diff = subs.(diff, Ref.((assign...,))...)) + nres = ComplexF64.(diff) + all(isapprox.(nres, 0; atol = atol)) +end + +Base.:≈(x::AbstractArray{<:Basic}, y::AbstractArray; atol = 1e-8) = _basic_approx(x, y, atol = atol) +Base.:≈(x::AbstractArray, y::AbstractArray{<:Basic}; atol = 1e-8) = _basic_approx(x, y, atol = atol) +Base.:≈(x::AbstractArray{<:Basic}, y::AbstractArray{<:Basic}; atol = 1e-8) = + _basic_approx(x, y, atol = atol) +function Base.Complex{T}(a::Basic) where {T} + a = SymEngine.evalf(a) + T(real(a)) + im * T(imag(a)) +end + +# simplification rules +function simplify_expi(expr::Basic) + subs( + expr, + exp(im * Basic(π) / 2) => Basic(im), + exp(im * Basic(π)) => -1, + exp(im * Basic(π) * 3 / 2) => -Basic(im), + ) +end + +Broadcast.broadcasted( + ::Broadcast.AbstractArrayStyle{2}, + ::typeof(_pretty_basic), + a::PermMatrix, +) = PermMatrix(a.perm, _pretty_basic.(a.vals)) + +Broadcast.broadcasted( + ::LinearAlgebra.StructuredMatrixStyle{Diagonal}, + ::typeof(_pretty_basic), + a::IMatrix, +) = IMatrix{Basic}(size(a, 1)) diff --git a/test/test-files/pkgs-ta/3/YaoSym.jl/src/symengine/register.jl b/test/test-files/pkgs-ta/3/YaoSym.jl/src/symengine/register.jl new file mode 100644 index 0000000..4599a9f --- /dev/null +++ b/test/test-files/pkgs-ta/3/YaoSym.jl/src/symengine/register.jl @@ -0,0 +1,72 @@ +using SparseArrays, BitBasis, YaoArrayRegister +using ..SymEngine +export @ket_str, @bra_str +export SymReg, AdjointSymReg, SymRegOrAdjointSymReg, expand +export szero_state + +YaoArrayRegister._warn_type(raw::AbstractMatrix{Basic}) = nothing + +const SymReg{D,MT} = AbstractArrayReg{D,Basic,MT} where {MT<:AbstractMatrix{Basic}} +const AdjointSymReg{D,MT} = AdjointArrayReg{D,Basic,MT} +const SymRegOrAdjointSymReg{D,MT} = Union{SymReg{D,MT},AdjointSymReg{D,MT}} + +function SymReg{D,MT}(r::ArrayReg{D,<:Number}) where {D,MT<:AbstractMatrix{Basic}} + return ArrayReg{D}(MT(Basic.(r.state))) +end +function SymReg{D,MT}(r::BatchedArrayReg{D,<:Number}) where {D,MT<:AbstractMatrix{Basic}} + return BatchedArrayReg{D}(MT(Basic.(r.state)), r.nbatch) +end + +function SymReg(r::AbstractArrayReg{D,<:Number}) where {D} + smat = SparseMatrixCSC(Basic.(_pretty_basic.(r.state))) + return arrayreg(SparseMatrixCSC(smat); nbatch=nbatch(r), nlevel=D) +end + +_pretty_basic(x) = Basic(x) +_pretty_basic(x::Real) = isinteger(x) ? Basic(Int(x)) : Basic(x) +function _pretty_basic(x::Complex) + if isreal(x) + return _pretty_basic(real(x)) + elseif iszero(real(x)) + return Basic(im)*_pretty_basic(imag(x)) + else + return _pretty_basic(real(x)) + Basic(im) * _pretty_basic(imag(x)) + end +end + +function ket_m(s) + v, N = parse_str(s) + st = spzeros(Basic, 1 << N, 1) + st[v+1] = 1 + return ArrayReg(st) +end + + +const MAX_SYM_QUBITS = 10 + +for REG in [:(ArrayReg{D, Basic} where D), :(BatchedArrayReg{D, Basic} where D), :(AdjointArrayReg{D,Basic} where D)] + @eval function Base.show(io::IO, r::$REG) + if nqudits(r) < MAX_SYM_QUBITS + print_sym_state(io, r) + else + summary(io, r) + print(io, "\n active qudits: ", nactive(r), "/", nqudits(r)) + end + end +end + +Base.:(*)(x::SymReg{D,MT}, y::SymReg{D,MT}) where {D,MT} = arrayreg(kron(state(x), state(y)); nlevel=D, nbatch=nbatch(x)) +Base.:(*)(x::AdjointSymReg{D,MT}, y::AdjointSymReg{D,MT}) where {D,MT} = + adjoint(parent(x) * parent(y)) + +Base.:(^)(x::SymReg{D,MT}, n::Int) where {D,MT} = arrayreg(kron(state(x) for _ in 1:n); nlevel=D, nbatch=nbatch(x)) +Base.:(^)(x::AdjointSymReg{D,MT}, n::Int) where {D,MT} = adjoint(parent(x)^n) + +SymEngine.expand(x::SymReg{D}) where {D} = arrayreg(expand.(state(x)); nlevel=D, nbatch=nbatch(x)) + +""" + szero_state(n; nbatch=1) + +Create a symbolic zero state, same as `ket"000"`, but allows you use an integer. +""" +szero_state(args...; kwargs...) = zero_state(Basic, args...; kwargs...) \ No newline at end of file diff --git a/test/test-files/pkgs-ta/3/YaoSym.jl/test/register.jl b/test/test-files/pkgs-ta/3/YaoSym.jl/test/register.jl new file mode 100644 index 0000000..07bc497 --- /dev/null +++ b/test/test-files/pkgs-ta/3/YaoSym.jl/test/register.jl @@ -0,0 +1,21 @@ +using Test +using YaoSym, YaoArrayRegister, YaoBlocks, SymEngine + +@test ket"111" + 2 * ket"111" == 3 * ket"111" +@test bra"111" * ket"111" == 1 +@test (bra"111" + bra"101") * ket"111" == 1 + +@test ket"111"^2 == ket"111111" + +# TODO: remove this! +@test ket"101" * ket"111" == ket"101111" + +@test bra"110"^2 == bra"110110" + +# TODO: remove this! +@test bra"110" * bra"111" == bra"110111" == bra"110_111" + +# printing does not error +@test print(ket"001") === nothing +@test print(bra"001") === nothing +@test print(bra"111" + bra"101") === nothing diff --git a/test/test-files/pkgs-ta/3/YaoSym.jl/test/runtests.jl b/test/test-files/pkgs-ta/3/YaoSym.jl/test/runtests.jl new file mode 100644 index 0000000..73b1c30 --- /dev/null +++ b/test/test-files/pkgs-ta/3/YaoSym.jl/test/runtests.jl @@ -0,0 +1,9 @@ +using Test + +@testset "register" begin + include("register.jl") +end + +@testset "symengine" begin + include("symengine/backend.jl") +end diff --git a/test/test-files/pkgs-ta/3/YaoSym.jl/test/symengine/backend.jl b/test/test-files/pkgs-ta/3/YaoSym.jl/test/symengine/backend.jl new file mode 100644 index 0000000..22ab3d2 --- /dev/null +++ b/test/test-files/pkgs-ta/3/YaoSym.jl/test/symengine/backend.jl @@ -0,0 +1,13 @@ +using Test + +@testset "blocks" begin + include("blocks.jl") +end + +@testset "register" begin + include("register.jl") +end + +@testset "instruct" begin + include("instruct.jl") +end diff --git a/test/test-files/pkgs-ta/3/YaoSym.jl/test/symengine/blocks.jl b/test/test-files/pkgs-ta/3/YaoSym.jl/test/symengine/blocks.jl new file mode 100644 index 0000000..78bc4e0 --- /dev/null +++ b/test/test-files/pkgs-ta/3/YaoSym.jl/test/symengine/blocks.jl @@ -0,0 +1,126 @@ +using YaoSym, YaoBlocks, YaoArrayRegister, SymEngine +using YaoSym: simplify_expi +using SymEngine +using Test + +@testset "imag and conj" begin + @vars a b c x + @test imag(Basic(2 + im * a)) == a + @test imag(Basic((2 + im) * (im * a + 1))) == 2 * a + 1 + @test real(sin(a)) == sin(a) + @test imag(sin(a)) == 0 + @test imag(x^2) == 0 + @test real(x^2) == x^2 + @test real(exp(im * a)) == cos(a) + @test imag(exp(im * a)) == sin(a) + @test abs(exp(im * a)) == 1 + @test abs(sin(a)) == sin(a) + @test abs(sin(a) + 2) == sin(a) + 2 +end + +@testset "mat" begin + @vars θ γ η + for G in [X, Y, Z, ConstGate.T, H, ConstGate.S, ConstGate.Sdag, ConstGate.Tdag, ConstGate.T, I2, (0.5+0.5im)*X] + B = mat(Basic, G) + @test eltype(B) === Basic + @test Matrix(B) ≈ Matrix(mat(G)) + @test Matrix(mat(Basic, control(4, 3, 2 => G))) ≈ Matrix(control(4, 3, 2 => G)) + end + + for GC in [Rx, shift, phase] + G = GC(θ) + m = mat(Basic, G) + m = subs.(m, θ, 0.5) + @test Matrix(mat(GC(0.5))) ≈ Matrix(m) + @test subs.(Matrix(mat(Basic, put(4, 2 => G))), θ, 0.5) ≈ Matrix(put(4, 2 => GC(0.5))) + end + + G = Rz(θ) * Rx(γ) * Rz(θ) + m = mat(Basic, G) + @test mat(G) == m + @test_throws ArgumentError mat(Float64, G) + m = subs.(m, Ref((θ, Basic(π) / 2)), Ref((γ, Basic(π) / 6))) + @test Matrix(mat(Rz(π / 2) * Rx(π / 6) * Rz(π / 2))) ≈ Matrix(m) + + A = randn(ComplexF64, 4, 4) + mb = matblock(Basic.(A)) + @test Matrix(mb) ≈ A + + @test pswap(4, 2, 1, θ) == pswap(2, 1, θ)(4) + @test pswap(4, 2, 1, θ) isa PSwap{Basic} +end + +@testset "sub" begin + @vars θ ϕ + @test subs(Float64, Rx(θ), θ => 0.5) == Rx(0.5) + @test subs(Float64, shift(θ), θ => 0.5) == shift(0.5) + @test subs(Float64, phase(θ), θ => 0.5) == phase(0.5) + @test subs( + Float64, + chain(control(2, 1, 2 => shift(θ)), put(2, 1 => chain(Rx(θ), kron(Rx(θ))))), + θ => 0.5, + ) == chain(control(2, 1, 2 => shift(0.5)), put(2, 1 => chain(Rx(0.5), kron(Rx(0.5))))) + @test subs(Float64, time_evolve(X, θ), θ => 0.5) == time_evolve(X, 0.5) + @test subs(Rx(θ), θ => ϕ) == Rx(ϕ) +end + +@testset "Sym Engine Conj" begin + @vars a b + @test cos(exp(a + im * b))' == cos(exp(a - im * b)) + @test cos(exp(a + im * b))' == cos(exp(a - im * b)) + @test mat(Rx(a)) == [ + cos(a / 2) -im*sin(a / 2) + -im*sin(a / 2) cos(a / 2) + ] + @test mat(Rx(a)') == [ + cos(a / 2) im*sin(a / 2) + im*sin(a / 2) cos(a / 2) + ] +end + +@testset "expect" begin + @vars a b + reg = ket"111" |> control(3, 1, 2 => Rx(a)) + op = put(3, 2 => Z) + reg2 = arrayreg(bit"111") |> control(3, 1, 2 => Rx(0.5)) + ex = expect(op, reg) + ex = subs(ex, a => 0.5) + @test ComplexF64(ex) ≈ expect(op, reg2) +end + +@testset "grad" begin + @vars a b + reg = arrayreg(Basic, bit"111") => control(3, 1, 2 => Rx(a)) + op = put(3, 2 => Z) + reg2 = arrayreg(bit"111") => control(3, 1, 2 => Rx(0.5)) + ex = expect'(op, reg)[2] + ex = subs(ex[], a => 0.5) + @test ComplexF64(ex) ≈ expect'(op, reg2)[2][] +end + +@testset "grad" begin + @vars a b + reg = arrayreg(Basic, bit"000") => put(3, 2 => Rx(a)) + op = put(3, 2 => Z) + reg2 = arrayreg(bit"000") => put(3, 2 => Rx(0.9)) + ex = expect(op, reg) + ex = subs(ex[], a => 0.9) + @test ComplexF64(ex) ≈ expect(op, reg2) + ex = expect'(op, reg)[2] + ex = subs(ex[], a => 0.9) + @test ComplexF64(ex) ≈ expect'(op, reg2)[2][] +end + +function test_check_dumpload(gate::AbstractBlock{N}) where {N} + gate2 = eval(YaoBlocks.parse_ex(YaoBlocks.dump_gate(gate), N)) + gate2 == gate || mat(gate2) ≈ mat(gate) +end + +@testset "dumpload" begin + # basic types + @vars θ + @test test_check_dumpload(phase(θ)) + @test test_check_dumpload(shift(θ)) + @test test_check_dumpload(time_evolve(X, θ)) + @test test_check_dumpload(rot(X, θ)) +end diff --git a/test/test-files/pkgs-ta/3/YaoSym.jl/test/symengine/instruct.jl b/test/test-files/pkgs-ta/3/YaoSym.jl/test/symengine/instruct.jl new file mode 100644 index 0000000..2dc7cca --- /dev/null +++ b/test/test-files/pkgs-ta/3/YaoSym.jl/test/symengine/instruct.jl @@ -0,0 +1,43 @@ +using Test, YaoSym +using SymEngine +using YaoBlocks, LuxurySparse + +@testset "apply" begin + @vars θ γ η + reg2 = rand_state(4) + reg1 = ArrayReg(Basic.(state(reg2))) + for G in [X, ConstGate.T, H] + g = control(4, 3, 2 => G) + @test copy(reg1) |> g ≈ copy(reg2) |> g + # print reg2 errors + end + + reg2 = arrayreg(bit"0011") + reg1 = ArrayReg(Basic.(state(reg2))) + for GC in [Rx, Ry, Rz, shift, phase, θ -> rot(SWAP, θ)] + G = GC(θ) + locs = nqubits(G) == 1 ? 2 : (3, 1) + g1 = put(4, locs => GC(θ)) + g2 = put(4, locs => GC(π / 2)) + regs = state(copy(reg1) |> g1) + res = subs.(regs, θ, Basic(π) / 2) + @test res ≈ state(copy(reg2) |> g2) + end + + CRk(::Type{T}, i::Int, j::Int, k::Int) where {T} = control([i], j => shift(2 * T(π) / (1 << k))) + CRot(::Type{T}, n::Int, i::Int) where {T} = + chain(n, i == j ? put(i => H) : CRk(T, j, i, j - i + 1) for j in i:n) + qft(::Type{T}, n::Int) where {T} = chain(n, CRot(T, n, i) for i in 1:n) + res = ket"11" |> qft(Basic, 2) + l1 = length(string(res.state.nzval[2])) + res.state.nzval .= simplify_expi.(res.state.nzval) + @test length(string(res.state.nzval[2])) < l1 + @test res ≈ arrayreg(bit"11") |> qft(Float64, 2) +end + +@testset "apply rot SWAP" begin + @vars θ + res = ket"01" + # res |> rot(SWAP, θ) + @test_broken [ComplexF64(subs(si, θ => 0.5)) for si in res.state] ≈ (product_state(bit"01") |> rot(SWAP, 0.5)).state +end diff --git a/test/test-files/pkgs-ta/3/YaoSym.jl/test/symengine/register.jl b/test/test-files/pkgs-ta/3/YaoSym.jl/test/symengine/register.jl new file mode 100644 index 0000000..d241aae --- /dev/null +++ b/test/test-files/pkgs-ta/3/YaoSym.jl/test/symengine/register.jl @@ -0,0 +1,16 @@ +using Test, YaoSym, YaoArrayRegister +using SymEngine + +@testset "constructors" begin + @test ket"011" isa SymReg + @test (ket"011")' isa AdjointSymReg +end + +@testset "conversion" begin + r = zero_state(3) + sr = SymReg(r) + + for i in eachindex(r.state) + @test r.state[i] ≈ N(sr.state[i]) + end +end