Organisationsahrefsocannl1b56fc ()macos-homebrew-5.3_arm64_opam-2.3

macos-homebrew-5.3_arm64_opam-2.3

Link Copied
Code Copied

Logs

2025-05-30 20:18.45: New job: test ahrefs/ocannl https://github.com/ahrefs/ocannl.git#refs/heads/master (1b56fc4c86e3ce8ee93ecd946c9def1ecb286a94) (macos-arm64:macos-homebrew-5.3_arm64_opam-2.3)
Base: macos-homebrew-ocaml-5.3
Opam project build


To reproduce locally:


git clone --recursive "https://github.com/ahrefs/ocannl.git" -b "master" && cd "ocannl" && git reset --hard 1b56fc4c
cat > Dockerfile <<'END-OF-DOCKERFILE'
FROM macos-homebrew-ocaml-5.3
# macos-homebrew-5.3_arm64_opam-2.3
USER 1000:1000
ENV CLICOLOR_FORCE="1"
ENV OPAMCOLOR="always"
RUN ln -f ~/local/bin/opam-2.3 ~/local/bin/opam
RUN opam init --reinit -ni
RUN uname -rs && opam exec -- ocaml -version && opam --version
RUN cd ~/opam-repository && (git cat-file -e 5d2fb3923b40a5570824690009441d947b823e8f || git fetch origin master) && git reset -q --hard 5d2fb3923b40a5570824690009441d947b823e8f && git log --no-decorate -n1 --oneline && opam update -u
COPY --chown=1000:1000 neural_nets_lib.opam arrayjit.opam ./src/./
RUN opam pin add -yn neural_nets_lib.dev './src/./' && \
opam pin add -yn arrayjit.dev './src/./'
RUN echo '(lang dune 3.0)' > './src/./dune-project'
ENV DEPS="angstrom.0.16.1 astring.0.8.5 backoff.0.1.1 base.v0.17.2 base-bigarray.base base-domains.base base-effects.base base-nnp.base base-threads.base base-unix.base bigarray-compat.1.1.0 bigstringaf.0.10.0 camlkit-base.0.3.0 camlp-streams.5.0.1 cmdliner.1.3.0 conf-libffi.2.0.0 conf-pkg-config.4 cppo.1.8.0 csexp.1.5.2 ctypes.0.23.0 ctypes-foreign.0.23.0 dune.3.19.0 dune-configurator.3.19.0 fieldslib.v0.17.0 fmt.0.10.0 integers.0.7.0 jane-street-headers.v0.17.0 jst-config.v0.17.0 logs.0.8.0 mdx.2.5.0 metal.0.1.0 mtime.2.1.0 multicore-magic.2.3.1 num.1.5-1 ocaml.5.3.0 ocaml-base-compiler.5.3.0 ocaml-compiler.5.3.0 ocaml-compiler-libs.v0.17.0 ocaml-config.3 ocaml-options-vanilla.1 ocaml-syntax-shims.1.0.0 ocaml-version.4.0.1 ocaml_intrinsics_kernel.v0.17.1 ocamlbuild.0.16.1 ocamlfind.1.9.8 parsexp.v0.17.0 pprint.20230830 ppx_assert.v0.17.0 ppx_base.v0.17.0 ppx_cold.v0.17.0 ppx_compare.v0.17.0 ppx_derivers.1.2.1 ppx_deriving.6.0.3 ppx_enumerate.v0.17.0 ppx_expect.v0.17.2 ppx_fields_conv.v0.17.0 ppx_globalize.v0.17.0 ppx_hash.v0.17.0 ppx_here.v0.17.0 ppx_inline_test.v0.17.0 ppx_minidebug.2.2.0 ppx_optcomp.v0.17.0 ppx_sexp_conv.v0.17.0 ppx_string.v0.17.0 ppx_variants_conv.v0.17.0 ppxlib.0.35.0 ppxlib_jane.v0.17.2 printbox.0.12 printbox-ext-plot.0.12 printbox-html.0.12 printbox-md.0.12 printbox-text.0.12 ptime.1.2.0 re.1.12.0 result.1.5 saturn_lockfree.0.5.0 seq.base sexplib.v0.17.0 sexplib0.v0.17.0 stdio.v0.17.0 stdlib-shims.0.3.0 thread-local-storage.0.2 time_now.v0.17.0 topkg.1.0.8 tyxml.4.6.0 uucp.16.0.0 uutf.1.0.4 variantslib.v0.17.0"
ENV CI="true"
ENV OCAMLCI="true"
RUN opam update --depexts && opam install --cli=2.3 --depext-only -y neural_nets_lib.dev arrayjit.dev $DEPS
RUN opam install $DEPS
COPY --chown=1000:1000 . ./src
RUN cd ./src && opam exec -- dune build @install @check @runtest && rm -rf _build


END-OF-DOCKERFILE
docker build .
END-REPRO-BLOCK


2025-05-30 20:18.45: Using cache hint "ahrefs/ocannl-macos-homebrew-ocaml-5.3-macos-homebrew-5.3_arm64_opam-2.3-e8c467045f97becda95952148e019c90"
2025-05-30 20:18.45: Using OBuilder spec:
((from macos-homebrew-ocaml-5.3)
(comment macos-homebrew-5.3_arm64_opam-2.3)
(user (uid 1000) (gid 1000))
(env CLICOLOR_FORCE 1)
(env OPAMCOLOR always)
(run (shell "ln -f ~/local/bin/opam-2.3 ~/local/bin/opam"))
(run (shell "opam init --reinit -ni"))
(run (shell "uname -rs && opam exec -- ocaml -version && opam --version"))
(run (cache (opam-archives (target /Users/mac1000/.opam/download-cache)) (homebrew (target /Users/mac1000/Library/Caches/Homebrew)))
(network host)
(shell "cd ~/opam-repository && (git cat-file -e 5d2fb3923b40a5570824690009441d947b823e8f || git fetch origin master) && git reset -q --hard 5d2fb3923b40a5570824690009441d947b823e8f && git log --no-decorate -n1 --oneline && opam update -u"))
(copy (src neural_nets_lib.opam arrayjit.opam) (dst ./src/./))
(run (network host)
(shell  "opam pin add -yn neural_nets_lib.dev './src/./' && \
\nopam pin add -yn arrayjit.dev './src/./'"))
(run (network host)
(shell "echo '(lang dune 3.0)' > './src/./dune-project'"))
(env DEPS "angstrom.0.16.1 astring.0.8.5 backoff.0.1.1 base.v0.17.2 base-bigarray.base base-domains.base base-effects.base base-nnp.base base-threads.base base-unix.base bigarray-compat.1.1.0 bigstringaf.0.10.0 camlkit-base.0.3.0 camlp-streams.5.0.1 cmdliner.1.3.0 conf-libffi.2.0.0 conf-pkg-config.4 cppo.1.8.0 csexp.1.5.2 ctypes.0.23.0 ctypes-foreign.0.23.0 dune.3.19.0 dune-configurator.3.19.0 fieldslib.v0.17.0 fmt.0.10.0 integers.0.7.0 jane-street-headers.v0.17.0 jst-config.v0.17.0 logs.0.8.0 mdx.2.5.0 metal.0.1.0 mtime.2.1.0 multicore-magic.2.3.1 num.1.5-1 ocaml.5.3.0 ocaml-base-compiler.5.3.0 ocaml-compiler.5.3.0 ocaml-compiler-libs.v0.17.0 ocaml-config.3 ocaml-options-vanilla.1 ocaml-syntax-shims.1.0.0 ocaml-version.4.0.1 ocaml_intrinsics_kernel.v0.17.1 ocamlbuild.0.16.1 ocamlfind.1.9.8 parsexp.v0.17.0 pprint.20230830 ppx_assert.v0.17.0 ppx_base.v0.17.0 ppx_cold.v0.17.0 ppx_compare.v0.17.0 ppx_derivers.1.2.1 ppx_deriving.6.0.3 ppx_enumerate.v0.17.0 ppx_expect.v0.17.2 ppx_fields_conv.v0.17.0 ppx_globalize.v0.17.0 ppx_hash.v0.17.0 ppx_here.v0.17.0 ppx_inline_test.v0.17.0 ppx_minidebug.2.2.0 ppx_optcomp.v0.17.0 ppx_sexp_conv.v0.17.0 ppx_string.v0.17.0 ppx_variants_conv.v0.17.0 ppxlib.0.35.0 ppxlib_jane.v0.17.2 printbox.0.12 printbox-ext-plot.0.12 printbox-html.0.12 printbox-md.0.12 printbox-text.0.12 ptime.1.2.0 re.1.12.0 result.1.5 saturn_lockfree.0.5.0 seq.base sexplib.v0.17.0 sexplib0.v0.17.0 stdio.v0.17.0 stdlib-shims.0.3.0 thread-local-storage.0.2 time_now.v0.17.0 topkg.1.0.8 tyxml.4.6.0 uucp.16.0.0 uutf.1.0.4 variantslib.v0.17.0")
(env CI true)
(env OCAMLCI true)
(run (cache (opam-archives (target /Users/mac1000/.opam/download-cache)) (homebrew (target /Users/mac1000/Library/Caches/Homebrew)))
(network host)
(shell "opam update --depexts && opam install --cli=2.3 --depext-only -y neural_nets_lib.dev arrayjit.dev $DEPS"))
(run (cache (opam-archives (target /Users/mac1000/.opam/download-cache)) (homebrew (target /Users/mac1000/Library/Caches/Homebrew)))
(network host)
(shell "opam install $DEPS"))
(copy (src .) (dst ./src))
(run (shell "cd ./src && opam exec -- dune build @install @check @runtest && rm -rf _build"))
)


2025-05-30 20:18.45: Waiting for resource in pool OCluster
2025-05-30 20:18.45: Waiting for worker…
2025-05-30 20:18.45: Got resource from pool OCluster
Building on m1-worker-01
HEAD is now at 423af64c arrayjit: Fix test dependency
HEAD is now at 1b56fc4c Configurable "default" default precision


(from macos-homebrew-ocaml-5.3)
2025-05-30 20:18.47 ---> using "6ee950b55569b1a3f8a7953dc679318bf303d3a70ac7d49901c0ac2ca3805d7c" from cache


/: (comment macos-homebrew-5.3_arm64_opam-2.3)


/: (user (uid 1000) (gid 1000))


/: (env CLICOLOR_FORCE 1)


/: (env OPAMCOLOR always)


/: (run (shell "ln -f ~/local/bin/opam-2.3 ~/local/bin/opam"))
2025-05-30 20:18.47 ---> using "8efc335cb5004a650aab29e72b9849a2b2e2f0853bc55d3a74763c7cceed5d74" from cache


/: (run (shell "opam init --reinit -ni"))
No configuration file found, using built-in defaults.
Checking for available remotes: rsync and local, git.
- you won't be able to use mercurial repositories unless you install the hg command on your system.
- you won't be able to use darcs repositories unless you install the darcs command on your system.


This version of opam requires an update to the layout of /Users/mac1000/.opam from version 2.1 to version 2.2, which can't be reverted.
You may want to back it up before going further.


Continue? [y/n] y
[NOTE] The 'jobs' option was reset, its value was 1 and its new value will vary according to the current number of cores on your machine. You can restore the fixed value using:
opam option jobs=1 --global
Format upgrade done.


<><> Updating repositories ><><><><><><><><><><><><><><><><><><><><><><><><><><>
[default] no changes from git+file:///Users/mac1000/opam-repository
2025-05-30 20:18.47 ---> using "e29fa6de89fe919799ac81fd4a1c768d8341cedf873c17042854467d2aebeceb" from cache


/: (run (shell "uname -rs && opam exec -- ocaml -version && opam --version"))
Darwin 23.4.0
The OCaml toplevel, version 5.3.0
2.3.0
2025-05-30 20:18.47 ---> using "a268524b45b0c90a951719c2a6c8c78c0b8a0fec90c9f437befd49b0008dc673" from cache


/: (run (cache (opam-archives (target /Users/mac1000/.opam/download-cache)) (homebrew (target /Users/mac1000/Library/Caches/Homebrew)))
(network host)
(shell "cd ~/opam-repository && (git cat-file -e 5d2fb3923b40a5570824690009441d947b823e8f || git fetch origin master) && git reset -q --hard 5d2fb3923b40a5570824690009441d947b823e8f && git log --no-decorate -n1 --oneline && opam update -u"))
From https://github.com/ocaml/opam-repository
* branch                  master     -> FETCH_HEAD
f93eb7cb02..5d2fb3923b  master     -> origin/master
5d2fb3923b Merge pull request #27963 from mseri/base-ppxlib


<><> Updating package repositories ><><><><><><><><><><><><><><><><><><><><><><>
[default] synchronised from git+file:///Users/mac1000/opam-repository


Everything as up-to-date as possible (run with --verbose to show unavailable upgrades).


The following packages are not being upgraded because the new versions conflict with other installed packages:
- ocaml.5.5.0
- ocaml-compiler.5.5
-- ocaml-base-compiler.5.4.0~alpha1 is installed and requires ocaml-compiler = 5.4.0~alpha1
However, you may "opam upgrade" these packages explicitly, which will ask permission to downgrade or uninstall the conflicting packages.
Nothing to do.
# To update the current shell environment, run: eval $(opam env)
2025-05-30 20:18.47 ---> using "9eada12e3ec2b11373a27bbe700cda72bc16a33a4f13c4290218d4e0707c2014" from cache


/: (copy (src neural_nets_lib.opam arrayjit.opam) (dst ./src/./))
2025-05-30 20:18.47 ---> using "f303ce4a6eea2e60c02ca7c3790c8ce8eebd22e79abd23b6e94fd7925b88ea44" from cache


/: (run (network host)
(shell  "opam pin add -yn neural_nets_lib.dev './src/./' && \
\nopam pin add -yn arrayjit.dev './src/./'"))
[neural_nets_lib.dev] synchronised (file:///Users/mac1000/src)
neural_nets_lib is now pinned to file:///Users/mac1000/src (version dev)
[arrayjit.dev] synchronised (file:///Users/mac1000/src)
arrayjit is now pinned to file:///Users/mac1000/src (version dev)
2025-05-30 20:18.47 ---> using "f9789545fd58c7139246b15cf16228028a1be3f17ae3cdb4a2fd608973614c44" from cache


/: (run (network host)
(shell "echo '(lang dune 3.0)' > './src/./dune-project'"))
2025-05-30 20:18.47 ---> using "cfc647e7d8c5f13aae6d42090e56ae561ef77db17622a118f12ee6de518e0d13" from cache


/: (env DEPS "angstrom.0.16.1 astring.0.8.5 backoff.0.1.1 base.v0.17.2 base-bigarray.base base-domains.base base-effects.base base-nnp.base base-threads.base base-unix.base bigarray-compat.1.1.0 bigstringaf.0.10.0 camlkit-base.0.3.0 camlp-streams.5.0.1 cmdliner.1.3.0 conf-libffi.2.0.0 conf-pkg-config.4 cppo.1.8.0 csexp.1.5.2 ctypes.0.23.0 ctypes-foreign.0.23.0 dune.3.19.0 dune-configurator.3.19.0 fieldslib.v0.17.0 fmt.0.10.0 integers.0.7.0 jane-street-headers.v0.17.0 jst-config.v0.17.0 logs.0.8.0 mdx.2.5.0 metal.0.1.0 mtime.2.1.0 multicore-magic.2.3.1 num.1.5-1 ocaml.5.3.0 ocaml-base-compiler.5.3.0 ocaml-compiler.5.3.0 ocaml-compiler-libs.v0.17.0 ocaml-config.3 ocaml-options-vanilla.1 ocaml-syntax-shims.1.0.0 ocaml-version.4.0.1 ocaml_intrinsics_kernel.v0.17.1 ocamlbuild.0.16.1 ocamlfind.1.9.8 parsexp.v0.17.0 pprint.20230830 ppx_assert.v0.17.0 ppx_base.v0.17.0 ppx_cold.v0.17.0 ppx_compare.v0.17.0 ppx_derivers.1.2.1 ppx_deriving.6.0.3 ppx_enumerate.v0.17.0 ppx_expect.v0.17.2 ppx_fields_conv.v0.17.0 ppx_globalize.v0.17.0 ppx_hash.v0.17.0 ppx_here.v0.17.0 ppx_inline_test.v0.17.0 ppx_minidebug.2.2.0 ppx_optcomp.v0.17.0 ppx_sexp_conv.v0.17.0 ppx_string.v0.17.0 ppx_variants_conv.v0.17.0 ppxlib.0.35.0 ppxlib_jane.v0.17.2 printbox.0.12 printbox-ext-plot.0.12 printbox-html.0.12 printbox-md.0.12 printbox-text.0.12 ptime.1.2.0 re.1.12.0 result.1.5 saturn_lockfree.0.5.0 seq.base sexplib.v0.17.0 sexplib0.v0.17.0 stdio.v0.17.0 stdlib-shims.0.3.0 thread-local-storage.0.2 time_now.v0.17.0 topkg.1.0.8 tyxml.4.6.0 uucp.16.0.0 uutf.1.0.4 variantslib.v0.17.0")


/: (env CI true)


/: (env OCAMLCI true)


/: (run (cache (opam-archives (target /Users/mac1000/.opam/download-cache)) (homebrew (target /Users/mac1000/Library/Caches/Homebrew)))
(network host)
(shell "opam update --depexts && opam install --cli=2.3 --depext-only -y neural_nets_lib.dev arrayjit.dev $DEPS"))
+ /opt/homebrew/bin/brew "update"
- ==> Updating Homebrew...
- Already up-to-date.


<><> Synchronising pinned packages ><><><><><><><><><><><><><><><><><><><><><><>
[arrayjit.dev] synchronised (file:///Users/mac1000/src)
[neural_nets_lib.dev] synchronised (file:///Users/mac1000/src)


[NOTE] Package ocaml-options-vanilla is already installed (current version is 1).
[NOTE] Package ocaml-config is already installed (current version is 3).
[NOTE] Package ocaml-compiler is already installed (current version is 5.3.0).
[NOTE] Package ocaml-base-compiler is already installed (current version is 5.3.0).
[NOTE] Package ocaml is already installed (current version is 5.3.0).
[NOTE] Package base-unix is already installed (current version is base).
[NOTE] Package base-threads is already installed (current version is base).
[NOTE] Package base-nnp is already installed (current version is base).
[NOTE] Package base-effects is already installed (current version is base).
[NOTE] Package base-domains is already installed (current version is base).
[NOTE] Package base-bigarray is already installed (current version is base).


The following system packages will first need to be installed:
libffi pkgconf


<><> Handling external dependencies <><><><><><><><><><><><><><><><><><><><><><>


+ /opt/homebrew/bin/brew "install" "libffi" "pkgconf"
- ==> Downloading https://ghcr.io/v2/homebrew/core/libffi/manifests/3.4.8
- Already downloaded: /Users/mac1000/Library/Caches/Homebrew/downloads/8898311b301bbcb1a886c89fba2b17479f52778f5a10d4bee0eb0c9ac5805950--libffi-3.4.8.bottle_manifest.json
- ==> Fetching libffi
- ==> Downloading https://ghcr.io/v2/homebrew/core/libffi/blobs/sha256:72cdf45be8925928df2c880faa24261b8a71dda1996caa50f4ce4bdf4d1e95f3
- Already downloaded: /Users/mac1000/Library/Caches/Homebrew/downloads/2926ea565a4b2a2d73728772b3699ca54dfbc3978a8956412ea56017b553da9d--libffi--3.4.8.arm64_sequoia.bottle.tar.gz
- ==> Downloading https://ghcr.io/v2/homebrew/core/pkgconf/manifests/2.4.3-1
- Already downloaded: /Users/mac1000/Library/Caches/Homebrew/downloads/f938254e85413ef0d18283c9c932823434b88c0c790e04e7534e2a3e923d0588--pkgconf-2.4.3-1.bottle_manifest.json
- ==> Fetching pkgconf
- ==> Downloading https://ghcr.io/v2/homebrew/core/pkgconf/blobs/sha256:3feba2e952500e4ab9261ac59a19e07c310d1147e31496f62b591e4b21b68683
- Already downloaded: /Users/mac1000/Library/Caches/Homebrew/downloads/0ce8509e6e69d74b96d152a70f97dab65c83fe0e2e9287fc2ea1292c4512f968--pkgconf--2.4.3.arm64_sequoia.bottle.1.tar.gz
- ==> Pouring libffi--3.4.8.arm64_sequoia.bottle.tar.gz
- ==> Caveats
- libffi is keg-only, which means it was not symlinked into /opt/homebrew,
- because macOS already provides this software and installing another version in
- parallel can cause all kinds of trouble.
- 
- For compilers to find libffi you may need to set:
-   export LDFLAGS="-L/opt/homebrew/opt/libffi/lib"
-   export CPPFLAGS="-I/opt/homebrew/opt/libffi/include"
- ==> Summary
- 🍺  /opt/homebrew/Cellar/libffi/3.4.8: 18 files, 786.6KB
- ==> Running `brew cleanup libffi`...
- Disable this behaviour by setting HOMEBREW_NO_INSTALL_CLEANUP.
- Hide these hints with HOMEBREW_NO_ENV_HINTS (see `man brew`).
- ==> Pouring pkgconf--2.4.3.arm64_sequoia.bottle.1.tar.gz
- 🍺  /opt/homebrew/Cellar/pkgconf/2.4.3: 27 files, 485.2KB
- ==> Running `brew cleanup pkgconf`...
- ==> Caveats
- ==> libffi
- libffi is keg-only, which means it was not symlinked into /opt/homebrew,
- because macOS already provides this software and installing another version in
- parallel can cause all kinds of trouble.
- 
- For compilers to find libffi you may need to set:
-   export LDFLAGS="-L/opt/homebrew/opt/libffi/lib"
-   export CPPFLAGS="-I/opt/homebrew/opt/libffi/include"
- 
- For pkg-config to find libffi you may need to set:
-   export PKG_CONFIG_PATH="/opt/homebrew/opt/libffi/lib/pkgconfig"
2025-05-30 20:18.47 ---> using "cb7c6c2d4fd20338ec129d0df4f1743566ed35453173a0a75f57c2d75d706f4b" from cache


/: (run (cache (opam-archives (target /Users/mac1000/.opam/download-cache)) (homebrew (target /Users/mac1000/Library/Caches/Homebrew)))
(network host)
(shell "opam install $DEPS"))
[NOTE] Package ocaml-options-vanilla is already installed (current version is 1).
[NOTE] Package ocaml-config is already installed (current version is 3).
[NOTE] Package ocaml-compiler is already installed (current version is 5.3.0).
[NOTE] Package ocaml-base-compiler is already installed (current version is 5.3.0).
[NOTE] Package ocaml is already installed (current version is 5.3.0).
[NOTE] Package base-unix is already installed (current version is base).
[NOTE] Package base-threads is already installed (current version is base).
[NOTE] Package base-nnp is already installed (current version is base).
[NOTE] Package base-effects is already installed (current version is base).
[NOTE] Package base-domains is already installed (current version is base).
[NOTE] Package base-bigarray is already installed (current version is base).
The following actions will be performed:
=== install 77 packages
- install angstrom                0.16.1
- install astring                 0.8.5
- install backoff                 0.1.1
- install base                    v0.17.2
- install bigarray-compat         1.1.0
- install bigstringaf             0.10.0
- install camlkit-base            0.3.0
- install camlp-streams           5.0.1
- install cmdliner                1.3.0
- install conf-libffi             2.0.0
- install conf-pkg-config         4
- install cppo                    1.8.0
- install csexp                   1.5.2
- install ctypes                  0.23.0
- install ctypes-foreign          0.23.0
- install dune                    3.19.0
- install dune-configurator       3.19.0
- install fieldslib               v0.17.0
- install fmt                     0.10.0
- install integers                0.7.0
- install jane-street-headers     v0.17.0
- install jst-config              v0.17.0
- install logs                    0.8.0
- install mdx                     2.5.0
- install metal                   0.1.0
- install mtime                   2.1.0
- install multicore-magic         2.3.1
- install num                     1.5-1
- install ocaml-compiler-libs     v0.17.0
- install ocaml-syntax-shims      1.0.0
- install ocaml-version           4.0.1
- install ocaml_intrinsics_kernel v0.17.1
- install ocamlbuild              0.16.1
- install ocamlfind               1.9.8
- install parsexp                 v0.17.0
- install pprint                  20230830
- install ppx_assert              v0.17.0
- install ppx_base                v0.17.0
- install ppx_cold                v0.17.0
- install ppx_compare             v0.17.0
- install ppx_derivers            1.2.1
- install ppx_deriving            6.0.3
- install ppx_enumerate           v0.17.0
- install ppx_expect              v0.17.2
- install ppx_fields_conv         v0.17.0
- install ppx_globalize           v0.17.0
- install ppx_hash                v0.17.0
- install ppx_here                v0.17.0
- install ppx_inline_test         v0.17.0
- install ppx_minidebug           2.2.0
- install ppx_optcomp             v0.17.0
- install ppx_sexp_conv           v0.17.0
- install ppx_string              v0.17.0
- install ppx_variants_conv       v0.17.0
- install ppxlib                  0.35.0
- install ppxlib_jane             v0.17.2
- install printbox                0.12
- install printbox-ext-plot       0.12
- install printbox-html           0.12
- install printbox-md             0.12
- install printbox-text           0.12
- install ptime                   1.2.0
- install re                      1.12.0
- install result                  1.5
- install saturn_lockfree         0.5.0
- install seq                     base
- install sexplib                 v0.17.0
- install sexplib0                v0.17.0
- install stdio                   v0.17.0
- install stdlib-shims            0.3.0
- install thread-local-storage    0.2
- install time_now                v0.17.0
- install topkg                   1.0.8
- install tyxml                   4.6.0
- install uucp                    16.0.0
- install uutf                    1.0.4
- install variantslib             v0.17.0


<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><>
-> retrieved backoff.0.1.1  (cached)
-> retrieved astring.0.8.5  (cached)
-> retrieved angstrom.0.16.1  (cached)
-> retrieved bigarray-compat.1.1.0  (cached)
-> retrieved bigstringaf.0.10.0  (cached)
-> retrieved base.v0.17.2  (cached)
-> retrieved camlp-streams.5.0.1  (cached)
-> retrieved cmdliner.1.3.0  (cached)
-> installed conf-pkg-config.4
-> retrieved csexp.1.5.2  (cached)
-> retrieved cppo.1.8.0  (cached)
-> installed conf-libffi.2.0.0
-> retrieved ctypes.0.23.0, ctypes-foreign.0.23.0  (cached)
-> retrieved fieldslib.v0.17.0  (cached)
-> retrieved fmt.0.10.0  (cached)
-> retrieved integers.0.7.0  (cached)
-> retrieved jane-street-headers.v0.17.0  (cached)
-> retrieved jst-config.v0.17.0  (cached)
-> retrieved logs.0.8.0  (cached)
-> retrieved mdx.2.5.0  (cached)
-> retrieved metal.0.1.0  (cached)
-> retrieved mtime.2.1.0  (cached)
-> retrieved multicore-magic.2.3.1  (cached)
-> retrieved num.1.5-1  (cached)
-> retrieved ocaml-compiler-libs.v0.17.0  (cached)
-> retrieved ocaml-syntax-shims.1.0.0  (cached)
-> retrieved ocaml-version.4.0.1  (cached)
-> retrieved ocaml_intrinsics_kernel.v0.17.1  (cached)
-> retrieved ocamlbuild.0.16.1  (cached)
-> retrieved ocamlfind.1.9.8  (cached)
-> retrieved parsexp.v0.17.0  (cached)
-> retrieved pprint.20230830  (cached)
-> retrieved ppx_assert.v0.17.0  (cached)
-> retrieved ppx_base.v0.17.0  (cached)
-> retrieved ppx_cold.v0.17.0  (cached)
-> retrieved ppx_compare.v0.17.0  (cached)
-> retrieved ppx_derivers.1.2.1  (cached)
-> retrieved ppx_deriving.6.0.3  (cached)
-> retrieved ppx_enumerate.v0.17.0  (cached)
-> retrieved ppx_expect.v0.17.2  (cached)
-> retrieved ppx_fields_conv.v0.17.0  (cached)
-> retrieved ppx_globalize.v0.17.0  (cached)
-> retrieved ppx_hash.v0.17.0  (cached)
-> retrieved dune.3.19.0, dune-configurator.3.19.0  (cached)
-> retrieved ppx_inline_test.v0.17.0  (cached)
-> retrieved ppx_here.v0.17.0  (cached)
-> installed num.1.5-1
-> retrieved ppx_optcomp.v0.17.0  (cached)
-> retrieved ppx_minidebug.2.2.0  (cached)
-> retrieved ppx_sexp_conv.v0.17.0  (cached)
-> retrieved ppx_string.v0.17.0  (cached)
-> retrieved ppxlib.0.35.0  (cached)
-> retrieved ppx_variants_conv.v0.17.0  (cached)
-> retrieved ppxlib_jane.v0.17.2  (cached)
-> retrieved camlkit-base.0.3.0  (cached)
-> installed cmdliner.1.3.0
-> installed ocamlbuild.0.16.1
-> retrieved re.1.12.0  (cached)
-> retrieved ptime.1.2.0  (cached)
-> retrieved printbox.0.12, printbox-ext-plot.0.12, printbox-html.0.12, printbox-md.0.12, printbox-text.0.12  (cached)
-> retrieved seq.base  (cached)
-> retrieved saturn_lockfree.0.5.0  (cached)
-> retrieved result.1.5  (cached)
-> retrieved sexplib.v0.17.0  (cached)
-> retrieved stdio.v0.17.0  (cached)
-> retrieved sexplib0.v0.17.0  (cached)
-> retrieved stdlib-shims.0.3.0  (cached)
-> retrieved thread-local-storage.0.2  (cached)
-> retrieved time_now.v0.17.0  (cached)
-> retrieved topkg.1.0.8  (cached)
-> retrieved tyxml.4.6.0  (cached)
-> retrieved uutf.1.0.4  (cached)
-> retrieved variantslib.v0.17.0  (cached)
-> installed ocamlfind.1.9.8
-> installed seq.base
-> retrieved uucp.16.0.0  (cached)
-> installed topkg.1.0.8
-> installed uutf.1.0.4
-> installed mtime.2.1.0
-> installed ptime.1.2.0
-> installed fmt.0.10.0
-> installed astring.0.8.5
-> installed logs.0.8.0
-> installed dune.3.19.0
-> installed jane-street-headers.v0.17.0
-> installed backoff.0.1.1
-> installed csexp.1.5.2
-> installed bigarray-compat.1.1.0
-> installed ocaml-syntax-shims.1.0.0
-> installed ocaml-compiler-libs.v0.17.0
-> installed multicore-magic.2.3.1
-> installed cppo.1.8.0
-> installed camlp-streams.5.0.1
-> installed ppx_derivers.1.2.1
-> installed ocaml_intrinsics_kernel.v0.17.1
-> installed ocaml-version.4.0.1
-> installed printbox.0.12
-> installed pprint.20230830
-> installed result.1.5
-> installed stdlib-shims.0.3.0
-> installed saturn_lockfree.0.5.0
-> installed sexplib0.v0.17.0
-> installed thread-local-storage.0.2
-> installed integers.0.7.0
-> installed dune-configurator.3.19.0
-> installed re.1.12.0
-> installed bigstringaf.0.10.0
-> installed mdx.2.5.0
-> installed angstrom.0.16.1
-> installed parsexp.v0.17.0
-> installed ctypes.0.23.0
-> installed sexplib.v0.17.0
-> installed tyxml.4.6.0
-> installed printbox-html.0.12
-> installed base.v0.17.2
-> installed ctypes-foreign.0.23.0
-> installed variantslib.v0.17.0
-> installed fieldslib.v0.17.0
-> installed stdio.v0.17.0
-> installed uucp.16.0.0
-> installed printbox-text.0.12
-> installed ppxlib.0.35.0
-> installed printbox-md.0.12
-> installed ppx_cold.v0.17.0
-> installed ppx_here.v0.17.0
-> installed ppx_variants_conv.v0.17.0
-> installed ppx_optcomp.v0.17.0
-> installed printbox-ext-plot.0.12
-> installed ppx_fields_conv.v0.17.0
-> installed ppxlib_jane.v0.17.2
-> installed ppx_deriving.6.0.3
-> installed ppx_enumerate.v0.17.0
-> installed ppx_globalize.v0.17.0
-> installed ppx_compare.v0.17.0
-> installed ppx_sexp_conv.v0.17.0
-> installed ppx_assert.v0.17.0
-> installed ppx_hash.v0.17.0
-> installed ppx_base.v0.17.0
-> installed ppx_minidebug.2.2.0
-> installed jst-config.v0.17.0
-> installed time_now.v0.17.0
-> installed ppx_string.v0.17.0
-> installed ppx_inline_test.v0.17.0
-> installed ppx_expect.v0.17.2
-> installed camlkit-base.0.3.0
-> installed metal.0.1.0
Done.
# To update the current shell environment, run: eval $(opam env)
2025-05-30 20:18.48 ---> using "23244dd02299ad327da50e40dd7a8e71cd2fa7f607fb28985894ab19683e2d51" from cache


/: (copy (src .) (dst ./src))
2025-05-30 20:18.49 ---> saved as "8f23611ae0974ea850afad9c752548394292ec6c99bcca7a04fc4344933412c0"


/: (run (shell "cd ./src && opam exec -- dune build @install @check @runtest && rm -rf _build"))
File "arrayjit/test/dune", line 6, characters 7-15:
6 |   (pps ppx_jane)))
^^^^^^^^
Error: Library "ppx_jane" not found.
-> required by
_build/default/arrayjit/test/.merlin-conf/exe-test_numerical_types
-> required by alias arrayjit/test/check
(cd _build/default/test/config && ../../arrayjit/bin/read_config.exe --read=backend)


Welcome to OCANNL! Reading configuration defaults from /Users/mac1000/src/_build/default/test/config/ocannl_config.
Retrieving commandline, environment, or config file variable ocannl_log_level
Found 0, in the config file
Wrote value of 'backend' to ocannl_backend.txt
(cd _build/default && /Users/mac1000/.opam/5.3.0/bin/ocamlopt.opt -w @1..3@5..28@31..39@43@46..47@49..57@61..62@67@69-40 -strict-sequence -strict-formats -short-paths -keep-locs -g -o test_ppx/test_ppx_op.exe /Users/mac1000/.opam/5.3.0/lib/base/base_internalhash_types/base_internalhash_types.cmxa -I /Users/mac1000/.opam/5.3.0/lib/base/base_internalhash_types /Users/mac1000/.opam/5.3.0/lib/sexplib0/sexplib0.cmxa /Users/mac1000/.opam/5.3.0/lib/base/shadow_stdlib/shadow_stdlib.cmxa /Users/mac1000/.opam/5.3.0/lib/ocaml_intrinsics_kernel/ocaml_intrinsics_kernel.cmxa -I /Users/mac1000/.opam/5.3.0/lib/ocaml_intrinsics_kernel /Users/mac1000/.opam/5.3.0/lib/base/base.cmxa -I /Users/mac1000/.opam/5.3.0/lib/base /Users/mac1000/.opam/5.3.0/lib/printbox/printbox.cmxa /Users/mac1000/.opam/5.3.0/lib/uutf/uutf.cmxa /Users/mac1000/.opam/5.3.0/lib/uucp/uucp.cmxa /Users/mac1000/.opam/5.3.0/lib/printbox-text/printbox_text.cmxa /Users/mac1000/.opam/5.3.0/lib/re/re.cmxa /Users/mac1000/.opam/5.3.0/lib/tyxml/functor/tyxml_f.cmxa /Users/mac1000/.opam/5.3.0/lib/tyxml/tyxml.cmxa /Users/mac1000/.opam/5.3.0/lib/printbox-html/printbox_html.cmxa /Users/mac1000/.opam/5.3.0/lib/printbox-md/printbox_md.cmxa /Users/mac1000/.opam/5.3.0/lib/printbox-ext-plot/printbox_ext_plot.cmxa /Users/mac1000/.opam/5.3.0/lib/bigstringaf/bigstringaf.cmxa -I /Users/mac1000/.opam/5.3.0/lib/bigstringaf /Users/mac1000/.opam/5.3.0/lib/angstrom/angstrom.cmxa /Users/mac1000/.opam/5.3.0/lib/stdio/stdio.cmxa /Users/mac1000/.opam/5.3.0/lib/parsexp/parsexp.cmxa /Users/mac1000/.opam/5.3.0/lib/sexplib/sexplib.cmxa /Users/mac1000/.opam/5.3.0/lib/num/nums.cmxa -I /Users/mac1000/.opam/5.3.0/lib/num -I /Users/mac1000/.opam/5.3.0/lib/num /Users/mac1000/.opam/5.3.0/lib/ocaml/str/str.cmxa /Users/mac1000/.opam/5.3.0/lib/pprint/pprint.cmxa /Users/mac1000/.opam/5.3.0/lib/ptime/ptime.cmxa /Users/mac1000/.opam/5.3.0/lib/ptime/clock/ptime_clock.cmxa -I /Users/mac1000/.opam/5.3.0/lib/ptime/clock -I /Users/mac1000/.opam/5.3.0/lib/ptime/clock /Users/mac1000/.opam/5.3.0/lib/mtime/mtime.cmxa /Users/mac1000/.opam/5.3.0/lib/mtime/clock/mtime_clock.cmxa -I /Users/mac1000/.opam/5.3.0/lib/mtime/clock -I /Users/mac1000/.opam/5.3.0/lib/mtime/clock /Users/mac1000/.opam/5.3.0/lib/ocaml/unix/unix.cmxa /Users/mac1000/.opam/5.3.0/lib/ocaml/threads/threads.cmxa /Users/mac1000/.opam/5.3.0/lib/thread-local-storage/thread_local_storage.cmxa /Users/mac1000/.opam/5.3.0/lib/ppx_minidebug/runtime/minidebug_runtime.cmxa /Users/mac1000/.opam/5.3.0/lib/variantslib/variantslib.cmxa /Users/mac1000/.opam/5.3.0/lib/ppx_string/runtime/ppx_string_runtime.cmxa /Users/mac1000/.opam/5.3.0/lib/ppx_sexp_conv/runtime-lib/ppx_sexp_conv_lib.cmxa /Users/mac1000/.opam/5.3.0/lib/ppx_here/runtime-lib/ppx_here_lib.cmxa /Users/mac1000/.opam/5.3.0/lib/ppx_compare/runtime-lib/ppx_compare_lib.cmxa /Users/mac1000/.opam/5.3.0/lib/ppx_hash/runtime-lib/ppx_hash_lib.cmxa arrayjit/lib/utils.cmxa /Users/mac1000/.opam/5.3.0/lib/stdlib-shims/stdlib_shims.cmxa /Users/mac1000/.opam/5.3.0/lib/integers/integers.cmxa -I /Users/mac1000/.opam/5.3.0/lib/integers /Users/mac1000/.opam/5.3.0/lib/bigarray-compat/bigarray_compat.cmxa /Users/mac1000/.opam/5.3.0/lib/ctypes/ctypes.cmxa -I /Users/mac1000/.opam/5.3.0/lib/ctypes /Users/mac1000/.opam/5.3.0/lib/ctypes-foreign/ctypes_foreign.cmxa -I /Users/mac1000/.opam/5.3.0/lib/ctypes-foreign /Users/mac1000/.opam/5.3.0/lib/backoff/backoff.cmxa /Users/mac1000/.opam/5.3.0/lib/multicore-magic/__private__/multicore_magic_atomic_array_unboxed5/multicore_magic_atomic_array_unboxed5.cmxa -I /Users/mac1000/.opam/5.3.0/lib/multicore-magic/__private__/multicore_magic_atomic_array_unboxed5 /Users/mac1000/.opam/5.3.0/lib/multicore-magic/Multicore_magic.cmxa /Users/mac1000/.opam/5.3.0/lib/saturn_lockfree/saturn_lockfree.cmxa arrayjit/lib/ir.cmxa -I arrayjit/lib /Users/mac1000/.opam/5.3.0/lib/camlkit-base/runtime/runtime.cmxa /Users/mac1000/.opam/5.3.0/lib/camlkit-base/CoreFoundation/CoreFoundation.cmxa /Users/mac1000/.opam/5.3.0/lib/camlkit-base/CoreGraphics/CoreGraphics.cmxa /Users/mac1000/.opam/5.3.0/lib/metal/metal.cmxa arrayjit/lib/metal_backend.cmxa arrayjit/lib/backends.cmxa /Users/mac1000/.opam/5.3.0/lib/fieldslib/fieldslib.cmxa lib/ocannl.cmxa test_ppx/.test_ppx_op.eobjs/native/dune__exe__Test_ppx_op.cmx)
ld: warning: ignoring duplicate libraries: '-lpthread'
(cd _build/default && /Users/mac1000/.opam/5.3.0/bin/ocamlopt.opt -w @1..3@5..28@31..39@43@46..47@49..57@61..62@67@69-40 -strict-sequence -strict-formats -short-paths -keep-locs -g -o test_ppx/test_ppx_op_expected.exe /Users/mac1000/.opam/5.3.0/lib/base/base_internalhash_types/base_internalhash_types.cmxa -I /Users/mac1000/.opam/5.3.0/lib/base/base_internalhash_types /Users/mac1000/.opam/5.3.0/lib/sexplib0/sexplib0.cmxa /Users/mac1000/.opam/5.3.0/lib/base/shadow_stdlib/shadow_stdlib.cmxa /Users/mac1000/.opam/5.3.0/lib/ocaml_intrinsics_kernel/ocaml_intrinsics_kernel.cmxa -I /Users/mac1000/.opam/5.3.0/lib/ocaml_intrinsics_kernel /Users/mac1000/.opam/5.3.0/lib/base/base.cmxa -I /Users/mac1000/.opam/5.3.0/lib/base /Users/mac1000/.opam/5.3.0/lib/printbox/printbox.cmxa /Users/mac1000/.opam/5.3.0/lib/uutf/uutf.cmxa /Users/mac1000/.opam/5.3.0/lib/uucp/uucp.cmxa /Users/mac1000/.opam/5.3.0/lib/printbox-text/printbox_text.cmxa /Users/mac1000/.opam/5.3.0/lib/re/re.cmxa /Users/mac1000/.opam/5.3.0/lib/tyxml/functor/tyxml_f.cmxa /Users/mac1000/.opam/5.3.0/lib/tyxml/tyxml.cmxa /Users/mac1000/.opam/5.3.0/lib/printbox-html/printbox_html.cmxa /Users/mac1000/.opam/5.3.0/lib/printbox-md/printbox_md.cmxa /Users/mac1000/.opam/5.3.0/lib/printbox-ext-plot/printbox_ext_plot.cmxa /Users/mac1000/.opam/5.3.0/lib/bigstringaf/bigstringaf.cmxa -I /Users/mac1000/.opam/5.3.0/lib/bigstringaf /Users/mac1000/.opam/5.3.0/lib/angstrom/angstrom.cmxa /Users/mac1000/.opam/5.3.0/lib/stdio/stdio.cmxa /Users/mac1000/.opam/5.3.0/lib/parsexp/parsexp.cmxa /Users/mac1000/.opam/5.3.0/lib/sexplib/sexplib.cmxa /Users/mac1000/.opam/5.3.0/lib/num/nums.cmxa -I /Users/mac1000/.opam/5.3.0/lib/num -I /Users/mac1000/.opam/5.3.0/lib/num /Users/mac1000/.opam/5.3.0/lib/ocaml/str/str.cmxa /Users/mac1000/.opam/5.3.0/lib/pprint/pprint.cmxa /Users/mac1000/.opam/5.3.0/lib/ptime/ptime.cmxa /Users/mac1000/.opam/5.3.0/lib/ptime/clock/ptime_clock.cmxa -I /Users/mac1000/.opam/5.3.0/lib/ptime/clock -I /Users/mac1000/.opam/5.3.0/lib/ptime/clock /Users/mac1000/.opam/5.3.0/lib/mtime/mtime.cmxa /Users/mac1000/.opam/5.3.0/lib/mtime/clock/mtime_clock.cmxa -I /Users/mac1000/.opam/5.3.0/lib/mtime/clock -I /Users/mac1000/.opam/5.3.0/lib/mtime/clock /Users/mac1000/.opam/5.3.0/lib/ocaml/unix/unix.cmxa /Users/mac1000/.opam/5.3.0/lib/ocaml/threads/threads.cmxa /Users/mac1000/.opam/5.3.0/lib/thread-local-storage/thread_local_storage.cmxa /Users/mac1000/.opam/5.3.0/lib/ppx_minidebug/runtime/minidebug_runtime.cmxa /Users/mac1000/.opam/5.3.0/lib/variantslib/variantslib.cmxa /Users/mac1000/.opam/5.3.0/lib/ppx_string/runtime/ppx_string_runtime.cmxa /Users/mac1000/.opam/5.3.0/lib/ppx_sexp_conv/runtime-lib/ppx_sexp_conv_lib.cmxa /Users/mac1000/.opam/5.3.0/lib/ppx_here/runtime-lib/ppx_here_lib.cmxa /Users/mac1000/.opam/5.3.0/lib/ppx_compare/runtime-lib/ppx_compare_lib.cmxa /Users/mac1000/.opam/5.3.0/lib/ppx_hash/runtime-lib/ppx_hash_lib.cmxa arrayjit/lib/utils.cmxa /Users/mac1000/.opam/5.3.0/lib/stdlib-shims/stdlib_shims.cmxa /Users/mac1000/.opam/5.3.0/lib/integers/integers.cmxa -I /Users/mac1000/.opam/5.3.0/lib/integers /Users/mac1000/.opam/5.3.0/lib/bigarray-compat/bigarray_compat.cmxa /Users/mac1000/.opam/5.3.0/lib/ctypes/ctypes.cmxa -I /Users/mac1000/.opam/5.3.0/lib/ctypes /Users/mac1000/.opam/5.3.0/lib/ctypes-foreign/ctypes_foreign.cmxa -I /Users/mac1000/.opam/5.3.0/lib/ctypes-foreign /Users/mac1000/.opam/5.3.0/lib/backoff/backoff.cmxa /Users/mac1000/.opam/5.3.0/lib/multicore-magic/__private__/multicore_magic_atomic_array_unboxed5/multicore_magic_atomic_array_unboxed5.cmxa -I /Users/mac1000/.opam/5.3.0/lib/multicore-magic/__private__/multicore_magic_atomic_array_unboxed5 /Users/mac1000/.opam/5.3.0/lib/multicore-magic/Multicore_magic.cmxa /Users/mac1000/.opam/5.3.0/lib/saturn_lockfree/saturn_lockfree.cmxa arrayjit/lib/ir.cmxa -I arrayjit/lib /Users/mac1000/.opam/5.3.0/lib/camlkit-base/runtime/runtime.cmxa /Users/mac1000/.opam/5.3.0/lib/camlkit-base/CoreFoundation/CoreFoundation.cmxa /Users/mac1000/.opam/5.3.0/lib/camlkit-base/CoreGraphics/CoreGraphics.cmxa /Users/mac1000/.opam/5.3.0/lib/metal/metal.cmxa arrayjit/lib/metal_backend.cmxa arrayjit/lib/backends.cmxa /Users/mac1000/.opam/5.3.0/lib/fieldslib/fieldslib.cmxa lib/ocannl.cmxa test_ppx/.test_ppx_op_expected.eobjs/native/dune__exe__Test_ppx_op_expected.cmx)
ld: warning: ignoring duplicate libraries: '-lpthread'
(cd _build/default && /Users/mac1000/.opam/5.3.0/bin/ocamlopt.opt -w @1..3@5..28@31..39@43@46..47@49..57@61..62@67@69-40 -strict-sequence -strict-formats -short-paths -keep-locs -g -o test/moons_demo_parallel_run.exe /Users/mac1000/.opam/5.3.0/lib/base/base_internalhash_types/base_internalhash_types.cmxa -I /Users/mac1000/.opam/5.3.0/lib/base/base_internalhash_types /Users/mac1000/.opam/5.3.0/lib/sexplib0/sexplib0.cmxa /Users/mac1000/.opam/5.3.0/lib/base/shadow_stdlib/shadow_stdlib.cmxa /Users/mac1000/.opam/5.3.0/lib/ocaml_intrinsics_kernel/ocaml_intrinsics_kernel.cmxa -I /Users/mac1000/.opam/5.3.0/lib/ocaml_intrinsics_kernel /Users/mac1000/.opam/5.3.0/lib/base/base.cmxa -I /Users/mac1000/.opam/5.3.0/lib/base /Users/mac1000/.opam/5.3.0/lib/printbox/printbox.cmxa /Users/mac1000/.opam/5.3.0/lib/uutf/uutf.cmxa /Users/mac1000/.opam/5.3.0/lib/uucp/uucp.cmxa /Users/mac1000/.opam/5.3.0/lib/printbox-text/printbox_text.cmxa /Users/mac1000/.opam/5.3.0/lib/re/re.cmxa /Users/mac1000/.opam/5.3.0/lib/tyxml/functor/tyxml_f.cmxa /Users/mac1000/.opam/5.3.0/lib/tyxml/tyxml.cmxa /Users/mac1000/.opam/5.3.0/lib/printbox-html/printbox_html.cmxa /Users/mac1000/.opam/5.3.0/lib/printbox-md/printbox_md.cmxa /Users/mac1000/.opam/5.3.0/lib/printbox-ext-plot/printbox_ext_plot.cmxa /Users/mac1000/.opam/5.3.0/lib/bigstringaf/bigstringaf.cmxa -I /Users/mac1000/.opam/5.3.0/lib/bigstringaf /Users/mac1000/.opam/5.3.0/lib/angstrom/angstrom.cmxa /Users/mac1000/.opam/5.3.0/lib/stdio/stdio.cmxa /Users/mac1000/.opam/5.3.0/lib/parsexp/parsexp.cmxa /Users/mac1000/.opam/5.3.0/lib/sexplib/sexplib.cmxa /Users/mac1000/.opam/5.3.0/lib/num/nums.cmxa -I /Users/mac1000/.opam/5.3.0/lib/num -I /Users/mac1000/.opam/5.3.0/lib/num /Users/mac1000/.opam/5.3.0/lib/ocaml/str/str.cmxa /Users/mac1000/.opam/5.3.0/lib/pprint/pprint.cmxa /Users/mac1000/.opam/5.3.0/lib/ptime/ptime.cmxa /Users/mac1000/.opam/5.3.0/lib/ptime/clock/ptime_clock.cmxa -I /Users/mac1000/.opam/5.3.0/lib/ptime/clock -I /Users/mac1000/.opam/5.3.0/lib/ptime/clock /Users/mac1000/.opam/5.3.0/lib/mtime/mtime.cmxa /Users/mac1000/.opam/5.3.0/lib/mtime/clock/mtime_clock.cmxa -I /Users/mac1000/.opam/5.3.0/lib/mtime/clock -I /Users/mac1000/.opam/5.3.0/lib/mtime/clock /Users/mac1000/.opam/5.3.0/lib/ocaml/unix/unix.cmxa /Users/mac1000/.opam/5.3.0/lib/ocaml/threads/threads.cmxa /Users/mac1000/.opam/5.3.0/lib/thread-local-storage/thread_local_storage.cmxa /Users/mac1000/.opam/5.3.0/lib/ppx_minidebug/runtime/minidebug_runtime.cmxa /Users/mac1000/.opam/5.3.0/lib/variantslib/variantslib.cmxa /Users/mac1000/.opam/5.3.0/lib/ppx_string/runtime/ppx_string_runtime.cmxa /Users/mac1000/.opam/5.3.0/lib/ppx_sexp_conv/runtime-lib/ppx_sexp_conv_lib.cmxa /Users/mac1000/.opam/5.3.0/lib/ppx_here/runtime-lib/ppx_here_lib.cmxa /Users/mac1000/.opam/5.3.0/lib/ppx_compare/runtime-lib/ppx_compare_lib.cmxa /Users/mac1000/.opam/5.3.0/lib/ppx_hash/runtime-lib/ppx_hash_lib.cmxa arrayjit/lib/utils.cmxa /Users/mac1000/.opam/5.3.0/lib/stdlib-shims/stdlib_shims.cmxa /Users/mac1000/.opam/5.3.0/lib/integers/integers.cmxa -I /Users/mac1000/.opam/5.3.0/lib/integers /Users/mac1000/.opam/5.3.0/lib/bigarray-compat/bigarray_compat.cmxa /Users/mac1000/.opam/5.3.0/lib/ctypes/ctypes.cmxa -I /Users/mac1000/.opam/5.3.0/lib/ctypes /Users/mac1000/.opam/5.3.0/lib/ctypes-foreign/ctypes_foreign.cmxa -I /Users/mac1000/.opam/5.3.0/lib/ctypes-foreign /Users/mac1000/.opam/5.3.0/lib/backoff/backoff.cmxa /Users/mac1000/.opam/5.3.0/lib/multicore-magic/__private__/multicore_magic_atomic_array_unboxed5/multicore_magic_atomic_array_unboxed5.cmxa -I /Users/mac1000/.opam/5.3.0/lib/multicore-magic/__private__/multicore_magic_atomic_array_unboxed5 /Users/mac1000/.opam/5.3.0/lib/multicore-magic/Multicore_magic.cmxa /Users/mac1000/.opam/5.3.0/lib/saturn_lockfree/saturn_lockfree.cmxa arrayjit/lib/ir.cmxa -I arrayjit/lib /Users/mac1000/.opam/5.3.0/lib/camlkit-base/runtime/runtime.cmxa /Users/mac1000/.opam/5.3.0/lib/camlkit-base/CoreFoundation/CoreFoundation.cmxa /Users/mac1000/.opam/5.3.0/lib/camlkit-base/CoreGraphics/CoreGraphics.cmxa /Users/mac1000/.opam/5.3.0/lib/metal/metal.cmxa arrayjit/lib/metal_backend.cmxa arrayjit/lib/backends.cmxa /Users/mac1000/.opam/5.3.0/lib/fieldslib/fieldslib.cmxa lib/ocannl.cmxa test/.moons_demo_parallel_run.eobjs/native/dune__exe__Moons_demo_parallel_run.cmx)
ld: warning: ignoring duplicate libraries: '-lpthread'
(cd _build/default && /Users/mac1000/.opam/5.3.0/bin/ocamlopt.opt -w @1..3@5..28@31..39@43@46..47@49..57@61..62@67@69-40 -strict-sequence -strict-formats -short-paths -keep-locs -g -o bin/moons_benchmark.exe /Users/mac1000/.opam/5.3.0/lib/base/base_internalhash_types/base_internalhash_types.cmxa -I /Users/mac1000/.opam/5.3.0/lib/base/base_internalhash_types /Users/mac1000/.opam/5.3.0/lib/sexplib0/sexplib0.cmxa /Users/mac1000/.opam/5.3.0/lib/base/shadow_stdlib/shadow_stdlib.cmxa /Users/mac1000/.opam/5.3.0/lib/ocaml_intrinsics_kernel/ocaml_intrinsics_kernel.cmxa -I /Users/mac1000/.opam/5.3.0/lib/ocaml_intrinsics_kernel /Users/mac1000/.opam/5.3.0/lib/base/base.cmxa -I /Users/mac1000/.opam/5.3.0/lib/base /Users/mac1000/.opam/5.3.0/lib/printbox/printbox.cmxa /Users/mac1000/.opam/5.3.0/lib/uutf/uutf.cmxa /Users/mac1000/.opam/5.3.0/lib/uucp/uucp.cmxa /Users/mac1000/.opam/5.3.0/lib/printbox-text/printbox_text.cmxa /Users/mac1000/.opam/5.3.0/lib/re/re.cmxa /Users/mac1000/.opam/5.3.0/lib/tyxml/functor/tyxml_f.cmxa /Users/mac1000/.opam/5.3.0/lib/tyxml/tyxml.cmxa /Users/mac1000/.opam/5.3.0/lib/printbox-html/printbox_html.cmxa /Users/mac1000/.opam/5.3.0/lib/printbox-md/printbox_md.cmxa /Users/mac1000/.opam/5.3.0/lib/printbox-ext-plot/printbox_ext_plot.cmxa /Users/mac1000/.opam/5.3.0/lib/bigstringaf/bigstringaf.cmxa -I /Users/mac1000/.opam/5.3.0/lib/bigstringaf /Users/mac1000/.opam/5.3.0/lib/angstrom/angstrom.cmxa /Users/mac1000/.opam/5.3.0/lib/stdio/stdio.cmxa /Users/mac1000/.opam/5.3.0/lib/parsexp/parsexp.cmxa /Users/mac1000/.opam/5.3.0/lib/sexplib/sexplib.cmxa /Users/mac1000/.opam/5.3.0/lib/num/nums.cmxa -I /Users/mac1000/.opam/5.3.0/lib/num -I /Users/mac1000/.opam/5.3.0/lib/num /Users/mac1000/.opam/5.3.0/lib/ocaml/str/str.cmxa /Users/mac1000/.opam/5.3.0/lib/pprint/pprint.cmxa /Users/mac1000/.opam/5.3.0/lib/ptime/ptime.cmxa /Users/mac1000/.opam/5.3.0/lib/ptime/clock/ptime_clock.cmxa -I /Users/mac1000/.opam/5.3.0/lib/ptime/clock -I /Users/mac1000/.opam/5.3.0/lib/ptime/clock /Users/mac1000/.opam/5.3.0/lib/mtime/mtime.cmxa /Users/mac1000/.opam/5.3.0/lib/mtime/clock/mtime_clock.cmxa -I /Users/mac1000/.opam/5.3.0/lib/mtime/clock -I /Users/mac1000/.opam/5.3.0/lib/mtime/clock /Users/mac1000/.opam/5.3.0/lib/ocaml/unix/unix.cmxa /Users/mac1000/.opam/5.3.0/lib/ocaml/threads/threads.cmxa /Users/mac1000/.opam/5.3.0/lib/thread-local-storage/thread_local_storage.cmxa /Users/mac1000/.opam/5.3.0/lib/ppx_minidebug/runtime/minidebug_runtime.cmxa /Users/mac1000/.opam/5.3.0/lib/variantslib/variantslib.cmxa /Users/mac1000/.opam/5.3.0/lib/ppx_string/runtime/ppx_string_runtime.cmxa /Users/mac1000/.opam/5.3.0/lib/ppx_sexp_conv/runtime-lib/ppx_sexp_conv_lib.cmxa /Users/mac1000/.opam/5.3.0/lib/ppx_here/runtime-lib/ppx_here_lib.cmxa /Users/mac1000/.opam/5.3.0/lib/ppx_compare/runtime-lib/ppx_compare_lib.cmxa /Users/mac1000/.opam/5.3.0/lib/ppx_hash/runtime-lib/ppx_hash_lib.cmxa arrayjit/lib/utils.cmxa /Users/mac1000/.opam/5.3.0/lib/stdlib-shims/stdlib_shims.cmxa /Users/mac1000/.opam/5.3.0/lib/integers/integers.cmxa -I /Users/mac1000/.opam/5.3.0/lib/integers /Users/mac1000/.opam/5.3.0/lib/bigarray-compat/bigarray_compat.cmxa /Users/mac1000/.opam/5.3.0/lib/ctypes/ctypes.cmxa -I /Users/mac1000/.opam/5.3.0/lib/ctypes /Users/mac1000/.opam/5.3.0/lib/ctypes-foreign/ctypes_foreign.cmxa -I /Users/mac1000/.opam/5.3.0/lib/ctypes-foreign /Users/mac1000/.opam/5.3.0/lib/backoff/backoff.cmxa /Users/mac1000/.opam/5.3.0/lib/multicore-magic/__private__/multicore_magic_atomic_array_unboxed5/multicore_magic_atomic_array_unboxed5.cmxa -I /Users/mac1000/.opam/5.3.0/lib/multicore-magic/__private__/multicore_magic_atomic_array_unboxed5 /Users/mac1000/.opam/5.3.0/lib/multicore-magic/Multicore_magic.cmxa /Users/mac1000/.opam/5.3.0/lib/saturn_lockfree/saturn_lockfree.cmxa arrayjit/lib/ir.cmxa -I arrayjit/lib /Users/mac1000/.opam/5.3.0/lib/camlkit-base/runtime/runtime.cmxa /Users/mac1000/.opam/5.3.0/lib/camlkit-base/CoreFoundation/CoreFoundation.cmxa /Users/mac1000/.opam/5.3.0/lib/camlkit-base/CoreGraphics/CoreGraphics.cmxa /Users/mac1000/.opam/5.3.0/lib/metal/metal.cmxa arrayjit/lib/metal_backend.cmxa arrayjit/lib/backends.cmxa /Users/mac1000/.opam/5.3.0/lib/fieldslib/fieldslib.cmxa lib/ocannl.cmxa /Users/mac1000/.opam/5.3.0/lib/jane-street-headers/jane_street_headers.cmxa /Users/mac1000/.opam/5.3.0/lib/ppx_enumerate/runtime-lib/ppx_enumerate_lib.cmxa /Users/mac1000/.opam/5.3.0/lib/time_now/time_now.cmxa -I /Users/mac1000/.opam/5.3.0/lib/time_now bin/.moons_benchmark.eobjs/native/dune__exe__Moons_benchmark.cmx)
ld: warning: ignoring duplicate libraries: '-lpthread'
(cd _build/default && /Users/mac1000/.opam/5.3.0/bin/ocamlopt.opt -w @1..3@5..28@31..39@43@46..47@49..57@61..62@67@69-40 -strict-sequence -strict-formats -short-paths -keep-locs -g -o test/micrograd_demo_logging.exe /Users/mac1000/.opam/5.3.0/lib/base/base_internalhash_types/base_internalhash_types.cmxa -I /Users/mac1000/.opam/5.3.0/lib/base/base_internalhash_types /Users/mac1000/.opam/5.3.0/lib/sexplib0/sexplib0.cmxa /Users/mac1000/.opam/5.3.0/lib/base/shadow_stdlib/shadow_stdlib.cmxa /Users/mac1000/.opam/5.3.0/lib/ocaml_intrinsics_kernel/ocaml_intrinsics_kernel.cmxa -I /Users/mac1000/.opam/5.3.0/lib/ocaml_intrinsics_kernel /Users/mac1000/.opam/5.3.0/lib/base/base.cmxa -I /Users/mac1000/.opam/5.3.0/lib/base /Users/mac1000/.opam/5.3.0/lib/printbox/printbox.cmxa /Users/mac1000/.opam/5.3.0/lib/uutf/uutf.cmxa /Users/mac1000/.opam/5.3.0/lib/uucp/uucp.cmxa /Users/mac1000/.opam/5.3.0/lib/printbox-text/printbox_text.cmxa /Users/mac1000/.opam/5.3.0/lib/re/re.cmxa /Users/mac1000/.opam/5.3.0/lib/tyxml/functor/tyxml_f.cmxa /Users/mac1000/.opam/5.3.0/lib/tyxml/tyxml.cmxa /Users/mac1000/.opam/5.3.0/lib/printbox-html/printbox_html.cmxa /Users/mac1000/.opam/5.3.0/lib/printbox-md/printbox_md.cmxa /Users/mac1000/.opam/5.3.0/lib/printbox-ext-plot/printbox_ext_plot.cmxa /Users/mac1000/.opam/5.3.0/lib/bigstringaf/bigstringaf.cmxa -I /Users/mac1000/.opam/5.3.0/lib/bigstringaf /Users/mac1000/.opam/5.3.0/lib/angstrom/angstrom.cmxa /Users/mac1000/.opam/5.3.0/lib/stdio/stdio.cmxa /Users/mac1000/.opam/5.3.0/lib/parsexp/parsexp.cmxa /Users/mac1000/.opam/5.3.0/lib/sexplib/sexplib.cmxa /Users/mac1000/.opam/5.3.0/lib/num/nums.cmxa -I /Users/mac1000/.opam/5.3.0/lib/num -I /Users/mac1000/.opam/5.3.0/lib/num /Users/mac1000/.opam/5.3.0/lib/ocaml/str/str.cmxa /Users/mac1000/.opam/5.3.0/lib/pprint/pprint.cmxa /Users/mac1000/.opam/5.3.0/lib/ptime/ptime.cmxa /Users/mac1000/.opam/5.3.0/lib/ptime/clock/ptime_clock.cmxa -I /Users/mac1000/.opam/5.3.0/lib/ptime/clock -I /Users/mac1000/.opam/5.3.0/lib/ptime/clock /Users/mac1000/.opam/5.3.0/lib/mtime/mtime.cmxa /Users/mac1000/.opam/5.3.0/lib/mtime/clock/mtime_clock.cmxa -I /Users/mac1000/.opam/5.3.0/lib/mtime/clock -I /Users/mac1000/.opam/5.3.0/lib/mtime/clock /Users/mac1000/.opam/5.3.0/lib/ocaml/unix/unix.cmxa /Users/mac1000/.opam/5.3.0/lib/ocaml/threads/threads.cmxa /Users/mac1000/.opam/5.3.0/lib/thread-local-storage/thread_local_storage.cmxa /Users/mac1000/.opam/5.3.0/lib/ppx_minidebug/runtime/minidebug_runtime.cmxa /Users/mac1000/.opam/5.3.0/lib/variantslib/variantslib.cmxa /Users/mac1000/.opam/5.3.0/lib/ppx_string/runtime/ppx_string_runtime.cmxa /Users/mac1000/.opam/5.3.0/lib/ppx_sexp_conv/runtime-lib/ppx_sexp_conv_lib.cmxa /Users/mac1000/.opam/5.3.0/lib/ppx_here/runtime-lib/ppx_here_lib.cmxa /Users/mac1000/.opam/5.3.0/lib/ppx_compare/runtime-lib/ppx_compare_lib.cmxa /Users/mac1000/.opam/5.3.0/lib/ppx_hash/runtime-lib/ppx_hash_lib.cmxa arrayjit/lib/utils.cmxa /Users/mac1000/.opam/5.3.0/lib/stdlib-shims/stdlib_shims.cmxa /Users/mac1000/.opam/5.3.0/lib/integers/integers.cmxa -I /Users/mac1000/.opam/5.3.0/lib/integers /Users/mac1000/.opam/5.3.0/lib/bigarray-compat/bigarray_compat.cmxa /Users/mac1000/.opam/5.3.0/lib/ctypes/ctypes.cmxa -I /Users/mac1000/.opam/5.3.0/lib/ctypes /Users/mac1000/.opam/5.3.0/lib/ctypes-foreign/ctypes_foreign.cmxa -I /Users/mac1000/.opam/5.3.0/lib/ctypes-foreign /Users/mac1000/.opam/5.3.0/lib/backoff/backoff.cmxa /Users/mac1000/.opam/5.3.0/lib/multicore-magic/__private__/multicore_magic_atomic_array_unboxed5/multicore_magic_atomic_array_unboxed5.cmxa -I /Users/mac1000/.opam/5.3.0/lib/multicore-magic/__private__/multicore_magic_atomic_array_unboxed5 /Users/mac1000/.opam/5.3.0/lib/multicore-magic/Multicore_magic.cmxa /Users/mac1000/.opam/5.3.0/lib/saturn_lockfree/saturn_lockfree.cmxa arrayjit/lib/ir.cmxa -I arrayjit/lib /Users/mac1000/.opam/5.3.0/lib/camlkit-base/runtime/runtime.cmxa /Users/mac1000/.opam/5.3.0/lib/camlkit-base/CoreFoundation/CoreFoundation.cmxa /Users/mac1000/.opam/5.3.0/lib/camlkit-base/CoreGraphics/CoreGraphics.cmxa /Users/mac1000/.opam/5.3.0/lib/metal/metal.cmxa arrayjit/lib/metal_backend.cmxa arrayjit/lib/backends.cmxa /Users/mac1000/.opam/5.3.0/lib/fieldslib/fieldslib.cmxa lib/ocannl.cmxa test/.micrograd_demo_logging.eobjs/native/dune__exe__Micrograd_demo_logging.cmx)
ld: warning: ignoring duplicate libraries: '-lpthread'
(cd _build/default/test_ppx && ./test_ppx_op.exe)


Welcome to OCANNL! Reading configuration defaults from /Users/mac1000/src/_build/default/test_ppx/ocannl_config.
Retrieving commandline, environment, or config file variable ocannl_log_level
Found 0, in the config file
(cd _build/default/test_ppx && ./test_ppx_op_expected.exe)


Welcome to OCANNL! Reading configuration defaults from /Users/mac1000/src/_build/default/test_ppx/ocannl_config.
Retrieving commandline, environment, or config file variable ocannl_log_level
Found 0, in the config file
(cd _build/default && /Users/mac1000/.opam/5.3.0/bin/ocamlopt.opt -w @1..3@5..28@31..39@43@46..47@49..57@61..62@67@69-40 -strict-sequence -strict-formats -short-paths -keep-locs -w -24 -g -g -o test/.tutorials.inline-tests/inline-test-runner.exe /Users/mac1000/.opam/5.3.0/lib/base/base_internalhash_types/base_internalhash_types.cmxa -I /Users/mac1000/.opam/5.3.0/lib/base/base_internalhash_types /Users/mac1000/.opam/5.3.0/lib/sexplib0/sexplib0.cmxa /Users/mac1000/.opam/5.3.0/lib/base/shadow_stdlib/shadow_stdlib.cmxa /Users/mac1000/.opam/5.3.0/lib/ocaml_intrinsics_kernel/ocaml_intrinsics_kernel.cmxa -I /Users/mac1000/.opam/5.3.0/lib/ocaml_intrinsics_kernel /Users/mac1000/.opam/5.3.0/lib/base/base.cmxa -I /Users/mac1000/.opam/5.3.0/lib/base /Users/mac1000/.opam/5.3.0/lib/ocaml/dynlink/dynlink.cmxa /Users/mac1000/.opam/5.3.0/lib/printbox/printbox.cmxa /Users/mac1000/.opam/5.3.0/lib/uutf/uutf.cmxa /Users/mac1000/.opam/5.3.0/lib/uucp/uucp.cmxa /Users/mac1000/.opam/5.3.0/lib/printbox-text/printbox_text.cmxa /Users/mac1000/.opam/5.3.0/lib/re/re.cmxa /Users/mac1000/.opam/5.3.0/lib/tyxml/functor/tyxml_f.cmxa /Users/mac1000/.opam/5.3.0/lib/tyxml/tyxml.cmxa /Users/mac1000/.opam/5.3.0/lib/printbox-html/printbox_html.cmxa /Users/mac1000/.opam/5.3.0/lib/printbox-md/printbox_md.cmxa /Users/mac1000/.opam/5.3.0/lib/printbox-ext-plot/printbox_ext_plot.cmxa /Users/mac1000/.opam/5.3.0/lib/bigstringaf/bigstringaf.cmxa -I /Users/mac1000/.opam/5.3.0/lib/bigstringaf /Users/mac1000/.opam/5.3.0/lib/angstrom/angstrom.cmxa /Users/mac1000/.opam/5.3.0/lib/stdio/stdio.cmxa /Users/mac1000/.opam/5.3.0/lib/parsexp/parsexp.cmxa /Users/mac1000/.opam/5.3.0/lib/sexplib/sexplib.cmxa /Users/mac1000/.opam/5.3.0/lib/num/nums.cmxa -I /Users/mac1000/.opam/5.3.0/lib/num -I /Users/mac1000/.opam/5.3.0/lib/num /Users/mac1000/.opam/5.3.0/lib/ocaml/str/str.cmxa /Users/mac1000/.opam/5.3.0/lib/pprint/pprint.cmxa /Users/mac1000/.opam/5.3.0/lib/ptime/ptime.cmxa /Users/mac1000/.opam/5.3.0/lib/ptime/clock/ptime_clock.cmxa -I /Users/mac1000/.opam/5.3.0/lib/ptime/clock -I /Users/mac1000/.opam/5.3.0/lib/ptime/clock /Users/mac1000/.opam/5.3.0/lib/mtime/mtime.cmxa /Users/mac1000/.opam/5.3.0/lib/mtime/clock/mtime_clock.cmxa -I /Users/mac1000/.opam/5.3.0/lib/mtime/clock -I /Users/mac1000/.opam/5.3.0/lib/mtime/clock /Users/mac1000/.opam/5.3.0/lib/ocaml/unix/unix.cmxa /Users/mac1000/.opam/5.3.0/lib/ocaml/threads/threads.cmxa /Users/mac1000/.opam/5.3.0/lib/thread-local-storage/thread_local_storage.cmxa /Users/mac1000/.opam/5.3.0/lib/ppx_minidebug/runtime/minidebug_runtime.cmxa /Users/mac1000/.opam/5.3.0/lib/variantslib/variantslib.cmxa /Users/mac1000/.opam/5.3.0/lib/ppx_string/runtime/ppx_string_runtime.cmxa /Users/mac1000/.opam/5.3.0/lib/ppx_sexp_conv/runtime-lib/ppx_sexp_conv_lib.cmxa /Users/mac1000/.opam/5.3.0/lib/ppx_here/runtime-lib/ppx_here_lib.cmxa /Users/mac1000/.opam/5.3.0/lib/ppx_compare/runtime-lib/ppx_compare_lib.cmxa /Users/mac1000/.opam/5.3.0/lib/ppx_hash/runtime-lib/ppx_hash_lib.cmxa arrayjit/lib/utils.cmxa /Users/mac1000/.opam/5.3.0/lib/stdlib-shims/stdlib_shims.cmxa /Users/mac1000/.opam/5.3.0/lib/integers/integers.cmxa -I /Users/mac1000/.opam/5.3.0/lib/integers /Users/mac1000/.opam/5.3.0/lib/bigarray-compat/bigarray_compat.cmxa /Users/mac1000/.opam/5.3.0/lib/ctypes/ctypes.cmxa -I /Users/mac1000/.opam/5.3.0/lib/ctypes /Users/mac1000/.opam/5.3.0/lib/ctypes-foreign/ctypes_foreign.cmxa -I /Users/mac1000/.opam/5.3.0/lib/ctypes-foreign /Users/mac1000/.opam/5.3.0/lib/backoff/backoff.cmxa /Users/mac1000/.opam/5.3.0/lib/multicore-magic/__private__/multicore_magic_atomic_array_unboxed5/multicore_magic_atomic_array_unboxed5.cmxa -I /Users/mac1000/.opam/5.3.0/lib/multicore-magic/__private__/multicore_magic_atomic_array_unboxed5 /Users/mac1000/.opam/5.3.0/lib/multicore-magic/Multicore_magic.cmxa /Users/mac1000/.opam/5.3.0/lib/saturn_lockfree/saturn_lockfree.cmxa arrayjit/lib/ir.cmxa -I arrayjit/lib /Users/mac1000/.opam/5.3.0/lib/camlkit-base/runtime/runtime.cmxa /Users/mac1000/.opam/5.3.0/lib/camlkit-base/CoreFoundation/CoreFoundation.cmxa /Users/mac1000/.opam/5.3.0/lib/camlkit-base/CoreGraphics/CoreGraphics.cmxa /Users/mac1000/.opam/5.3.0/lib/metal/metal.cmxa arrayjit/lib/metal_backend.cmxa arrayjit/lib/backends.cmxa /Users/mac1000/.opam/5.3.0/lib/fieldslib/fieldslib.cmxa lib/ocannl.cmxa /Users/mac1000/.opam/5.3.0/lib/ppx_inline_test/config/inline_test_config.cmxa /Users/mac1000/.opam/5.3.0/lib/jane-street-headers/jane_street_headers.cmxa /Users/mac1000/.opam/5.3.0/lib/ppx_enumerate/runtime-lib/ppx_enumerate_lib.cmxa /Users/mac1000/.opam/5.3.0/lib/time_now/time_now.cmxa -I /Users/mac1000/.opam/5.3.0/lib/time_now /Users/mac1000/.opam/5.3.0/lib/ppx_inline_test/runtime-lib/ppx_inline_test_lib.cmxa /Users/mac1000/.opam/5.3.0/lib/ppxlib/print_diff/ppxlib_print_diff.cmxa /Users/mac1000/.opam/5.3.0/lib/ppx_expect/make_corrected_file/make_corrected_file.cmxa /Users/mac1000/.opam/5.3.0/lib/ppx_expect/config_types/expect_test_config_types.cmxa /Users/mac1000/.opam/5.3.0/lib/ppx_expect/config/expect_test_config.cmxa /Users/mac1000/.opam/5.3.0/lib/ppx_expect/runtime/ppx_expect_runtime.cmxa -I /Users/mac1000/.opam/5.3.0/lib/ppx_expect/runtime test/tutorials.cmxa /Users/mac1000/.opam/5.3.0/lib/ppx_inline_test/runner/lib/ppx_inline_test_runner_lib.cmxa -I /Users/mac1000/.opam/5.3.0/lib/ppx_inline_test/runner/lib /Users/mac1000/.opam/5.3.0/lib/ppx_expect/evaluator/ppx_expect_evaluator.cmxa test/.tutorials.inline-tests/.t.eobjs/native/dune__exe__Main.cmx -linkall)
ld: warning: ignoring duplicate libraries: '-lpthread'
(cd _build/.sandbox/e26d0877ba33fd0688597a2b8ab996e1/default/test && .tutorials.inline-tests/inline-test-runner.exe inline-test-runner tutorials -partition 'Retrieving commandline, environment, or config file variable ocannl_log_level' -source-tree-root .. -diff-cmd -)


Welcome to OCANNL! Reading configuration defaults from /Users/mac1000/src/_build/.sandbox/e26d0877ba33fd0688597a2b8ab996e1/default/test/ocannl_config.
Retrieving commandline, environment, or config file variable ocannl_log_level
Found 0, in the config file
(cd _build/.sandbox/e26d0877ba33fd0688597a2b8ab996e1/default/test && .tutorials.inline-tests/inline-test-runner.exe inline-test-runner tutorials -partition 'Found 0, in the config file' -source-tree-root .. -diff-cmd -)


Welcome to OCANNL! Reading configuration defaults from /Users/mac1000/src/_build/.sandbox/e26d0877ba33fd0688597a2b8ab996e1/default/test/ocannl_config.
Retrieving commandline, environment, or config file variable ocannl_log_level
Found 0, in the config file
(cd _build/.sandbox/e26d0877ba33fd0688597a2b8ab996e1/default/test && .tutorials.inline-tests/inline-test-runner.exe inline-test-runner tutorials -partition '' -source-tree-root .. -diff-cmd -)


Welcome to OCANNL! Reading configuration defaults from /Users/mac1000/src/_build/.sandbox/e26d0877ba33fd0688597a2b8ab996e1/default/test/ocannl_config.
Retrieving commandline, environment, or config file variable ocannl_log_level
Found 0, in the config file
(cd _build/.sandbox/e26d0877ba33fd0688597a2b8ab996e1/default/test && .tutorials.inline-tests/inline-test-runner.exe inline-test-runner tutorials -partition 'Welcome to OCANNL! Reading configuration defaults from /Users/mac1000/src/_build/.sandbox/00e590d68a5a3cd2ec9d587acedd73af/default/test/ocannl_config.' -source-tree-root .. -diff-cmd -)


Welcome to OCANNL! Reading configuration defaults from /Users/mac1000/src/_build/.sandbox/e26d0877ba33fd0688597a2b8ab996e1/default/test/ocannl_config.
Retrieving commandline, environment, or config file variable ocannl_log_level
Found 0, in the config file
File "test/dune", lines 30-40, characters 0-281:
30 | (rule
31 |  (alias runtest)
32 |  (target
33 |   (dir log_files))
34 |  (action
35 |   (run
36 |    %{dep:micrograd_demo_logging.exe}
37 |    "--ocannl_debug_backend=text"
38 |    "--ocannl_log_file_stem=micrograd_demo_logging"
39 |    "--ocannl_log_main_domain_to_stdout=false"
40 |    "--ocannl_debug_log_to_stream_files=true")))
(cd _build/default/test && ./micrograd_demo_logging.exe --ocannl_debug_backend=text --ocannl_log_file_stem=micrograd_demo_logging --ocannl_log_main_domain_to_stdout=false --ocannl_debug_log_to_stream_files=true)


Welcome to OCANNL! Reading configuration defaults from /Users/mac1000/src/_build/default/test/ocannl_config.
Retrieving commandline, environment, or config file variable ocannl_log_level
Found 0, in the config file
Retrieving commandline, environment, or config file variable ocannl_backend
Found multicore_cc, in the config file
Retrieving commandline, environment, or config file variable ocannl_cd_ident_style
Not found, using default heuristic
Retrieving commandline, environment, or config file variable ocannl_ll_ident_style
Not found, using default heuristic
Retrieving commandline, environment, or config file variable ocannl_prefer_backend_uniformity
Found true, in the config file
Retrieving commandline, environment, or config file variable ocannl_debug_log_to_stream_files
Found true, commandline --ocannl_debug_log_to_stream_files=true
Retrieving commandline, environment, or config file variable ocannl_cc_backend_optimization_level
Not found, using default 3
Retrieving commandline, environment, or config file variable ocannl_cc_backend_compiler_command
Not found, using default cc
Fatal error: exception File "src/printbox-text/PrintBox_text.ml", line 212, characters 6-12: Assertion failed
Raised at PrintBox_text.Output.Make_out.to_buf_aux_ in file "src/printbox-text/PrintBox_text.ml", line 212, characters 6-50
Called from Stdlib__Map.Make.fold in file "map.ml", line 329, characters 19-42
Called from Stdlib__Map.Make.fold in file "map.ml", line 329, characters 26-41
Called from Stdlib__Map.Make.fold in file "map.ml", line 329, characters 26-41
Called from Stdlib__Map.Make.fold in file "map.ml", line 329, characters 26-41
Called from PrintBox_text.Output.Make_out.render in file "src/printbox-text/PrintBox_text.ml", line 242, characters 14-64
Called from PrintBox_text.output in file "src/printbox-text/PrintBox_text.ml", line 851, characters 2-31
Called from Minidebug_runtime.PrintBox.output_box in file "minidebug_runtime.ml", line 1527, characters 19-59
Called from Minidebug_runtime.PrintBox.close_log_impl.close_tree in file "minidebug_runtime.ml", line 1572, characters 6-38
Called from Backends.Add_buffer_retrieval_and_syncing.sync_routine in file "arrayjit/lib/backends.ml", lines 144-172, characters 31-82
Called from Backends.Raise_backend.link in file "arrayjit/lib/backends.ml", lines 454-455, characters 4-92
Re-raised at Backends.Raise_backend.link in file "arrayjit/lib/backends.ml", lines 441-455, characters 23-92
Called from Dune__exe__Micrograd_demo_logging in file "test/micrograd_demo_logging.ml", line 34, characters 13-77
(cd _build/.sandbox/e26d0877ba33fd0688597a2b8ab996e1/default/test && .tutorials.inline-tests/inline-test-runner.exe inline-test-runner tutorials -partition primitive_ops.ml -source-tree-root .. -diff-cmd -)


Welcome to OCANNL! Reading configuration defaults from /Users/mac1000/src/_build/.sandbox/e26d0877ba33fd0688597a2b8ab996e1/default/test/ocannl_config.
Retrieving commandline, environment, or config file variable ocannl_log_level
Found 0, in the config file
(cd _build/.sandbox/e26d0877ba33fd0688597a2b8ab996e1/default/test && .tutorials.inline-tests/inline-test-runner.exe inline-test-runner tutorials -partition hello_world_op.ml -source-tree-root .. -diff-cmd -)


Welcome to OCANNL! Reading configuration defaults from /Users/mac1000/src/_build/.sandbox/e26d0877ba33fd0688597a2b8ab996e1/default/test/ocannl_config.
Retrieving commandline, environment, or config file variable ocannl_log_level
Found 0, in the config file
(cd _build/.sandbox/e26d0877ba33fd0688597a2b8ab996e1/default/test && .tutorials.inline-tests/inline-test-runner.exe inline-test-runner tutorials -partition zero2hero_1of7.ml -source-tree-root .. -diff-cmd -)


Welcome to OCANNL! Reading configuration defaults from /Users/mac1000/src/_build/.sandbox/e26d0877ba33fd0688597a2b8ab996e1/default/test/ocannl_config.
Retrieving commandline, environment, or config file variable ocannl_log_level
Found 0, in the config file
(cd _build/.sandbox/e26d0877ba33fd0688597a2b8ab996e1/default/test && .tutorials.inline-tests/inline-test-runner.exe inline-test-runner tutorials -partition moons_demo_parallel.ml -source-tree-root .. -diff-cmd -)


Welcome to OCANNL! Reading configuration defaults from /Users/mac1000/src/_build/.sandbox/e26d0877ba33fd0688597a2b8ab996e1/default/test/ocannl_config.
Retrieving commandline, environment, or config file variable ocannl_log_level
Found 0, in the config file
(cd _build/.sandbox/e26d0877ba33fd0688597a2b8ab996e1/default/test && .tutorials.inline-tests/inline-test-runner.exe inline-test-runner tutorials -partition einsum_trivia.ml -source-tree-root .. -diff-cmd -)


Welcome to OCANNL! Reading configuration defaults from /Users/mac1000/src/_build/.sandbox/e26d0877ba33fd0688597a2b8ab996e1/default/test/ocannl_config.
Retrieving commandline, environment, or config file variable ocannl_log_level
Found 0, in the config file
(cd _build/default/test && ./moons_demo_parallel_run.exe)


Welcome to OCANNL! Reading configuration defaults from /Users/mac1000/src/_build/default/test/ocannl_config.
Retrieving commandline, environment, or config file variable ocannl_log_level
Found 0, in the config file
("Set log_level to" 1)
└─{orphaned from #2}
Retrieving commandline, environment, or config file variable ocannl_backend
Found multicore_cc, in the config file
Properties of devices:
(multicore_devices
(device ((device_name CPU) (device_ordinal 0) (num_domains 8))))
@!Retrieving commandline, environment, or config file variable ocannl_prefer_backend_uniformity
Found true, in the config file
Retrieving commandline, environment, or config file variable ocannl_debug_log_to_stream_files
Not found, using default false
Retrieving commandline, environment, or config file variable ocannl_ll_ident_style
Not found, using default heuristic
Retrieving commandline, environment, or config file variable ocannl_cc_backend_optimization_level
Not found, using default 3
Retrieving commandline, environment, or config file variable ocannl_cc_backend_compiler_command
Not found, using default cc
Retrieving commandline, environment, or config file variable ocannl_never_capture_stdout
Not found, using default false
Batch=59, step=60, lr=0.000000, batch loss=0.000000, epoch loss=0.000000
Batch=119, step=120, lr=0.000000, batch loss=0.000000, epoch loss=0.000000
Epoch=0, step=120, lr=0.000000, epoch loss=0.000000
Batch=59, step=180, lr=0.000000, batch loss=0.000000, epoch loss=0.000000
Batch=119, step=240, lr=0.000000, batch loss=0.000000, epoch loss=0.000000
Epoch=1, step=240, lr=0.000000, epoch loss=0.000000
Batch=59, step=300, lr=0.000000, batch loss=0.000000, epoch loss=0.000000
Batch=119, step=360, lr=0.000000, batch loss=0.000000, epoch loss=0.000000
Epoch=2, step=360, lr=0.000000, epoch loss=0.000000
Batch=59, step=420, lr=0.000000, batch loss=0.000000, epoch loss=0.000000
Batch=119, step=480, lr=0.000000, batch loss=0.000000, epoch loss=0.000000
Epoch=3, step=480, lr=0.000000, epoch loss=0.000000
Batch=59, step=540, lr=0.000000, batch loss=0.000000, epoch loss=0.000000
Batch=119, step=600, lr=0.000000, batch loss=0.000000, epoch loss=0.000000
Epoch=4, step=600, lr=0.000000, epoch loss=0.000000
Batch=59, step=660, lr=0.000000, batch loss=0.000000, epoch loss=0.000000
Batch=119, step=720, lr=0.000000, batch loss=0.000000, epoch loss=0.000000
Epoch=5, step=720, lr=0.000000, epoch loss=0.000000
Batch=59, step=780, lr=0.000000, batch loss=0.000000, epoch loss=0.000000
Batch=119, step=840, lr=0.000000, batch loss=0.000000, epoch loss=0.000000
Epoch=6, step=840, lr=0.000000, epoch loss=0.000000
Batch=59, step=900, lr=0.000000, batch loss=0.000000, epoch loss=0.000000
Batch=119, step=960, lr=0.000000, batch loss=0.000000, epoch loss=0.000000
Epoch=7, step=960, lr=0.000000, epoch loss=0.000000
Batch=59, step=1020, lr=0.000000, batch loss=0.000000, epoch loss=0.000000
Batch=119, step=1080, lr=0.000000, batch loss=0.000000, epoch loss=0.000000
Epoch=8, step=1080, lr=0.000000, epoch loss=0.000000
Batch=59, step=1140, lr=0.000000, batch loss=0.000000, epoch loss=0.000000
Batch=119, step=1200, lr=0.000000, batch loss=0.000000, epoch loss=0.000000
Epoch=9, step=1200, lr=0.000000, epoch loss=0.000000
Batch=59, step=1260, lr=0.000000, batch loss=0.000000, epoch loss=0.000000
Batch=119, step=1320, lr=0.000000, batch loss=0.000000, epoch loss=0.000000
Epoch=10, step=1320, lr=0.000000, epoch loss=0.000000
Batch=59, step=1380, lr=0.000000, batch loss=0.000000, epoch loss=0.000000
Batch=119, step=1440, lr=0.000000, batch loss=0.000000, epoch loss=0.000000
Epoch=11, step=1440, lr=0.000000, epoch loss=0.000000
Batch=59, step=1500, lr=0.000000, batch loss=0.000000, epoch loss=0.000000
Batch=119, step=1560, lr=0.000000, batch loss=0.000000, epoch loss=0.000000
Epoch=12, step=1560, lr=0.000000, epoch loss=0.000000
Batch=59, step=1620, lr=0.000000, batch loss=0.000000, epoch loss=0.000000
Batch=119, step=1680, lr=0.000000, batch loss=0.000000, epoch loss=0.000000
Epoch=13, step=1680, lr=0.000000, epoch loss=0.000000
Batch=59, step=1740, lr=0.000000, batch loss=0.000000, epoch loss=0.000000
Batch=119, step=1800, lr=0.000000, batch loss=0.000000, epoch loss=0.000000
Epoch=14, step=1800, lr=0.000000, epoch loss=0.000000
Batch=59, step=1860, lr=0.000000, batch loss=0.000000, epoch loss=0.000000
Batch=119, step=1920, lr=0.000000, batch loss=0.000000, epoch loss=0.000000
Epoch=15, step=1920, lr=0.000000, epoch loss=0.000000
Batch=59, step=1980, lr=0.000000, batch loss=0.000000, epoch loss=0.000000
Batch=119, step=2040, lr=0.000000, batch loss=0.000000, epoch loss=0.000000
Epoch=16, step=2040, lr=0.000000, epoch loss=0.000000
Batch=59, step=2100, lr=0.000000, batch loss=0.000000, epoch loss=0.000000
Batch=119, step=2160, lr=0.000000, batch loss=0.000000, epoch loss=0.000000
Epoch=17, step=2160, lr=0.000000, epoch loss=0.000000
Batch=59, step=2220, lr=0.000000, batch loss=0.000000, epoch loss=0.000000
Batch=119, step=2280, lr=0.000000, batch loss=0.000000, epoch loss=0.000000
Epoch=18, step=2280, lr=0.000000, epoch loss=0.000000
Batch=59, step=2340, lr=0.000000, batch loss=0.000000, epoch loss=0.000000
Batch=119, step=2400, lr=0.000000, batch loss=0.000000, epoch loss=0.000000
Epoch=19, step=2400, lr=0.000000, epoch loss=0.000000


Half-moons scatterplot and decision boundary:
┌────────────────────────────────────────────────────────────────────────────────────────────────────┐
│*********************************#******************************************************************│
│***********************##*#######*###**####*********************************************************│
│*********************##########################*****************************************************│
│*****************#**########*######*################************************************************│
│***************#############*#######################************************************************│
│************######*#################*#################**********************************************│
│**********#*#####*########*#**************##*#########*#********************************************│
│***********###########*#******************#*****########*#******************************************│
│***********#######*###*************************############*****************************************│
│********###########*********************************###**##*#***************************************│
│*******######**##**********************************#*######*#***************************************│
│*****#*##*##**##************************************##*########*************************************│
│*****#######*******************%***%*%*****************#########**********************************%*│
│******######********************%************************#*#####******************************%*%*%*│
│***#########*******************%%%*%%*******************#*#######****************************%*%%%%%│
│****#######********************%%%%*********************#########****************************%%*%%*%│
│**#######**********************%%%%%%%*********************###*###***************************%%*%%%*│
│**#*####***********************%%%%%%%********************########***************************%%%%%%*│
│*#######***********************%%%%%%%**********************#######**************************%%%%%%*│
│*##*####***********************%%*%%%%%**********************####**************************%*%%%%%%*│
│*#######************************%%%%%%%**********************##*##*#*************************%%%%%**│
│########************************%%%%%%%**********************#######***********************%%%%%%%**│
│#######*************************%%%%%%%**********************#######***********************%%%%%%%%*│
│###*#**#*************************%%%%%%%%*********************#######**********************%%%%%%***│
│#######**************************%%%%%%%%********************###*###**********************%%%%%%****│
│#######**************************%%%%%%%%%*******************#*####**********************%%%%%%%%***│
│*#*####***************************%%%%%%%%%%******************######*********************%%%%%%*****│
│#****##****************************%%*%%%%%%*******************###*##*****************%*%%%%%%%*****│
│***********************************%*%%%%%%********************************************%*%%*%%******│
│*************************************%**%%%%%%%************************************%%%%%*%%%%*******│
│***************************************%%%%*%%%%**********************************%%%%%%%*%*%*******│
│****************************************%**%%%%**%********************************%%%%%%%%**********│
│*****************************************%%%%%%%%%%%************************%%**%%%%%%%%*%**********│
│*****************************************%%*%%%%%%%%**%*********************%*%%%*%%%%%%%***********│
│********************************************%%%%*%%%%%%%%***************%*%%%%%%%%%%%%*%************│
│*********************************************%%%%%%*%%%%%%%%%%%%%%%*%%%%*%%%%%%%%%%%%%**************│
│**********************************************%%*%%%%%%%%%%%%%%%%%%%%%%*%%%%%%%%%%%%****************│
│**************************************************%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%*******************│
│**************************************************%**%%%*%%%%%%%%%%%%%%%%%%%%%**********************│
│********************************************************%***%%%%*%%*%%%%**%*************************│
└────────────────────────────────────────────────────────────────────────────────────────────────────┘
(cd _build/.sandbox/e26d0877ba33fd0688597a2b8ab996e1/default/test && .tutorials.inline-tests/inline-test-runner.exe inline-test-runner tutorials -partition micrograd_demo.ml -source-tree-root .. -diff-cmd -)


Welcome to OCANNL! Reading configuration defaults from /Users/mac1000/src/_build/.sandbox/e26d0877ba33fd0688597a2b8ab996e1/default/test/ocannl_config.
Retrieving commandline, environment, or config file variable ocannl_log_level
Found 0, in the config file
File "test/micrograd_demo.ml", line 1, characters 0-0:
/usr/bin/git --no-pager diff --no-index --color=always -u _build/default/test/micrograd_demo.ml _build/.sandbox/e26d0877ba33fd0688597a2b8ab996e1/default/test/micrograd_demo.ml.corrected
diff --git a/_build/default/test/micrograd_demo.ml b/_build/.sandbox/e26d0877ba33fd0688597a2b8ab996e1/default/test/micrograd_demo.ml.corrected
index 62a1f34..b25d42e 100644
--- a/_build/default/test/micrograd_demo.ml
+++ b/_build/.sandbox/e26d0877ba33fd0688597a2b8ab996e1/default/test/micrograd_demo.ml.corrected
@@ -35,11 +35,11 @@ let%expect_test "Micrograd README basic example" =
{|
┌────────────────────┐
│[75]: +_g shape 0:1 │
-    │┌┬─────────┐        │
-    │││axis 0   │        │
-    │├┼─────────┤        │
-    │││ 2.47e+1 │        │
-    │└┴─────────┘        │
+    │┌┬──────┐           │
+    │││axis 0│           │
+    │├┼──────┤           │
+    │││ 0.00 │           │
+    │└┴──────┘           │
└────────────────────┘
|}];
Tensor.print ~with_code:false ~with_grad:true `Default a;
@@ -55,11 +55,11 @@ let%expect_test "Micrograd README basic example" =
└─────────────────┘
┌────────────────────────┐
│[0]: a shape 0:1  grad_a│
-    │┌┬─────────┐            │
-    │││axis 0   │            │
-    │├┼─────────┤            │
-    │││ 1.38e+2 │            │
-    │└┴─────────┘            │
+    │┌┬──────┐               │
+    │││axis 0│               │
+    │├┼──────┤               │
+    │││ 0.00 │               │
+    │└┴──────┘               │
└────────────────────────┘
|}];
Tensor.print ~with_code:false ~with_grad:true `Default b;
@@ -75,11 +75,11 @@ let%expect_test "Micrograd README basic example" =
└─────────────────┘
┌────────────────────────┐
│[2]: b shape 0:1  grad_b│
-    │┌┬─────────┐            │
-    │││axis 0   │            │
-    │├┼─────────┤            │
-    │││ 6.45e+2 │            │
-    │└┴─────────┘            │
+    │┌┬──────┐               │
+    │││axis 0│               │
+    │├┼──────┤               │
+    │││ 0.00 │               │
+    │└┴──────┘               │
└────────────────────────┘
|}]


@@ -191,44 +191,44 @@ let%expect_test "Micrograd half-moons example" =
┌────────────────────────────────────────────────────────────────────────────────────────────────────┐
│****************************#***********************************************************************│
│****************************###***###***#***********************************************************│
-    │***************************#********#***#***********************************************************│
-    │********************#*********************##*#*#****************************************************│
-    │******************#***#*****##*#*#*#****#*#*#*##****************************************************│
-    │**************#*#**###**#*##**##********#**#****###**#**********************************************│
-    │***********#***##***#**##*****************#*#*##*###**********************************************..│
-    │***************#**###******************************##*#******************************************...│
-    │*************#*****#******************************#*#***#*#*************************************....│
-    │*********#***#******************......************##*###**#************************************.....│
-    │******#***#*#*#****************........******************#*#*********************************.......│
-    │*****###****#****************...........****************#***********************************........│
-    │*******#*###****************.............******************#*#*****************************.........│
-    │**********##***************.......%%......***************#**##****************************..........│
-    │*****#***#****************......%..%%......*********************************************..........%.│
-    │**####*******************......%..%..........****************##*#**********************........%...%│
-    │****#*******************.......%%..%..........***************#*#**********************.........%....│
-    │*#****##***************.........%....%.........************##***#********************.......%...%%..│
-    │****#*#***************.........%..%.%...........*************#**#*******************..........%.%...│
-    │##*##****************............%...............**************#*##****************.........%.%.%%%.│
-    │**#####************............%...%%.............*******************************...........%..%.%..│
-    │******************...............%.%.%%............*********#*#*#*#*************................%%..│
-    │***##************................%..%..%............************#*#************.............%...%...│
-    │##**#***********...................%...%.............********#**###***********...........%.%%.......│
-    │###************..................%.%.%................***********##**********..................%....│
-    │**##**********.........................................**********#*********.............%%.%..%.....│
-    │**#**********......................%%...................********##********..............%%.%........│
-    │************..........................%..................****#**#********...................%.......│
-    │***********.........................%%.%..................*****##******...............%..%..........│
-    │**********.............................%%..................***********.................%%.%%........│
-    │*********..............................%...%................*******.....................%%%.........│
-    │********...................................%..%....................................%.....%..........│
-    │*******.................................%%..%.%................................%.%.%.%%.............│
-    │******.....................................%%.%...%%.%.......................%%%....%.%.%...........│
-    │*****....................................%.....%.%..%....................%.....%%.%.%...............│
-    │****........................................%%...%.%%%%..%.......%.........%%.%%....................│
-    │***...............................................%..%.......%..%%%%...%.%..%.%.....................│
-    │**.................................................%.%.%............%..%...%........................│
-    │*.................................................%....%.%......%%...%.%............................│
-    │..........................................................%..%......%%%.............................│
+    │***************************#********#***#*#*********************************************************│
+    │********************#**********************#*#*#****************************************************│
+    │******************##**#*****##*#*#*#****#*#*#*#*#***************************************************│
+    │**************#*#***#***#*##*#*#********#**#****###**#**********************************************│
+    │***********#***##*#*#**##*****************#*#*##*###************************************************│
+    │***************#***##******************************##*#*********************************************│
+    │*************#*****#******************************#*#**#**#*****************************************│
+    │*********#***#************************************##*###*#*#****************************************│
+    │******#***#*#*#******************************************#******************************************│
+    │*****###****#*******************************************#*******************************************│
+    │******####*#***********************************************#*#**************************************│
+    │**********##**********************%%*********************#**##**************************************│
+    │*****#***#**********************%**%%**************************************************************%│
+    │**####*************************%*%%*************************###*#******************************%***%│
+    │****#**************************%%**%*************************#*#*******************************%****│
+    │##****##************************%****%*********************##***#***************************%***%%**│
+    │***##*#************************%**%*%************************#**#*****************************%*%***│
+    │##*##***************************%******************************#*##*************************%*%*%%%*│
+    │**####*************************%**%*%*******************************************************%***%%**│
+    │*********************************%*%*%%*********************#*#*#*#*****************************%%**│
+    │***##****************************%**%**%************************#*#*************************%***%***│
+    │##**#******************************%***%********************#***###**********************%*%%*******│
+    │##*******************************%*%*%***************************##****************************%****│
+    │**##*************************************************************#**********************%%*%**%*****│
+    │*#*********************************%%***************************##**********************%**%********│
+    │**************************************%**********************#**#************************%*%********│
+    │************************************%%*%***********************##**********************%*%**********│
+    │***************************************%%**********************************************%%*%%********│
+    │***************************************%***%********************************************%%%*********│
+    │*******************************************%**%************************************%*****%**********│
+    │****************************************%%**%*%********************************%%%*%*%%*************│
+    │*******************************************%%*%***%%*%***********************%%%****%*%*%***********│
+    │*****************************************%****%%*%**%**************************%%*%*%***************│
+    │********************************************%%**%**%%%%**%*******%*******%*%%*%%********************│
+    │**************************************************%**%*******%**%%%****%*%**%%**********************│
+    │***************************************************%*%*%************%**%***%************************│
+    │**************************************************%****%*%*******%***%*%****************************│
+    │**********************************************************%**%**%***%%******************************│
└────────────────────────────────────────────────────────────────────────────────────────────────────┘
|}];
Stdio.printf "Loss:\n%!";
@@ -240,51 +240,51 @@ let%expect_test "Micrograd half-moons example" =
[%expect
{|
Loss:
-    ┌────────┬────────────────────────────────────────────────────────────────────────────────────────────────────┐
-    │ 3.79e+1│-                                                                                                   │
-    │        │                                                                                                    │
-    │        │                                                                                                    │
-    │        │                                                                                                    │
-    │        │                                                                                                    │
-    │        │                                                                                                    │
-    │        │                                                                                                    │
-    │        │                                                                                                    │
-    │        │                                                                                                    │
-    │        │                                                                                                    │
-    │        │                                                                                                    │
-    │        │                                                                                                    │
-    │        │                                                                                                    │
-    │        │                                                                                                    │
-    │        │                                                                                                    │
-    │        │                                                                                                    │
-    │        │                                                                                                    │
-    │        │                                                                                                    │
-    │l       │                                                                                                    │
-    │o       │                                                                                                    │
-    │s       │                                                                                                    │
-    │s       │                                                                                                    │
-    │        │                                                                                                    │
-    │        │                                                                                                    │
-    │        │                                                                                                    │
-    │        │                                                                                                    │
-    │        │                                                                                                    │
-    │        │                                                                                                    │
-    │        │                                                                                                    │
-    │        │                                                                                                    │
-    │        │-                                                                                                   │
-    │        │                                                                                                    │
-    │        │                                                                                                    │
-    │        │                                                                                                    │
-    │        │                                                                                                    │
-    │        │                                                                                                    │
-    │        │                                                                                                    │
-    │        │                                                                                                    │
-    │        │-       -         -                                                                                 │
-    │ 0.00   │----------------------------------------------------------------------------------------------------│
-    ├────────┼────────────────────────────────────────────────────────────────────────────────────────────────────┤
-    │        │0.00                                                                                         3.99e+2│
-    │        │                                                step                                                │
-    └────────┴────────────────────────────────────────────────────────────────────────────────────────────────────┘
+    ┌─────────┬────────────────────────────────────────────────────────────────────────────────────────────────────┐
+    │ 8.33e-25│                                                                                                    │
+    │         │                                                                                                    │
+    │         │                                                                                                    │
+    │         │                                                                                                    │
+    │         │                                                                                                    │
+    │         │                                                                                                    │
+    │         │                                                                                                    │
+    │         │                                                                                                    │
+    │         │                                                                                                    │
+    │         │                                                                                                    │
+    │         │                                                                                                    │
+    │         │                                                                                                    │
+    │         │                                                                                                    │
+    │         │                                                                                                    │
+    │         │                                                                                                    │
+    │         │                                                                                                    │
+    │         │                                                                                                    │
+    │         │                                                                                                    │
+    │l        │                                                                                                    │
+    │o        │                                                                                                    │
+    │s        │                                                                                                    │

+    │s        │                                                                                                    │
+    │         │                                                                                                    │
+    │         │                                                                                                    │
+    │         │                                                                                                    │
+    │         │                                                                                                    │
+    │         │                                                                                                    │
+    │         │                                                                                                    │
+    │         │                                                                                                    │
+    │         │                                                                                                    │
+    │         │                                                                                                    │
+    │         │                                                                                                    │
+    │         │                                                                                                    │
+    │         │                                                                                                    │
+    │         │                                                                                                    │
+    │         │                                                                                                    │
+    │         │                                                                                                    │
+    │         │                                                                                                    │
+    │         │                                                                                                    │
+    │ 8.33e-25│----------------------------------------------------------------------------------------------------│
+    ├─────────┼────────────────────────────────────────────────────────────────────────────────────────────────────┤
+    │         │0.00                                                                                         3.99e+2│
+    │         │                                                step                                                │
+    └─────────┴────────────────────────────────────────────────────────────────────────────────────────────────────┘
|}];
Stdio.printf "Log-loss, for better visibility:\n%!";
let plot_loss =
@@ -296,46 +296,46 @@ let%expect_test "Micrograd half-moons example" =
{|
Log-loss, for better visibility:
┌─────────┬────────────────────────────────────────────────────────────────────────────────────────────────────┐
-    │ 3.63    │-                                                                                                   │
+    │ -1.00e+1│                                                                                                    │
+    │         │                                                                                                    │
+    │         │                                                                                                    │
+    │         │                                                                                                    │
+    │         │                                                                                                    │
+    │         │                                                                                                    │
+    │         │                                                                                                    │
+    │         │                                                                                                    │
│         │                                                                                                    │
│         │                                                                                                    │
│         │                                                                                                    │
-    │         │-                                                                                                   │
│         │                                                                                                    │
│         │                                                                                                    │
│         │                                                                                                    │
│         │                                                                                                    │
-    │         │-                                                                                                   │
-    │         │        -         -                                                                                 │
-    │         │ -  -                        -                                                                      │
-    │         │------       -                                                                                      │
-    │         │ ---- -  - --- -   - - -    -                                                                       │
-    │         │   --  -  - - ---     --  -  --            -                                                        │
-    │         │  -  -- - -    ---  - - ---  -----       - --                                                       │
-    │l        │       --  -      - -      -     ---  -    -         -                                              │
-    │o        │       - -  -   --            -  --  - -  -     -                        -                          │
-    │g        │               -     -   -      -  --     - -    -  -     -                   -          -          │
-    │         │     - -     -   --      -                  -      -  --       - -         -                        │
-    │l        │            -             -            --    --            -  -         -  -                       -│
-    │o        │        -        -                           -       -  -       -   -           - -          -    - │
-    │s        │                               -     -        -      -                             --   -           │
-    │s        │                      -                                                   -                         │
-    │         │                       -   -                          -    -           -        -       -    -    - │
-    │         │                   -               - -  -                               -                           │
-    │         │                                                                             -   -                  │
-    │         │                                                  -    -              -                             │
-    │         │                                      -                                        -                    │
│         │                                                                                                    │
-    │         │                            -                                                                       │
-    │         │                                                                -                                   │
+    │l        │                                                                                                    │
+    │o        │                                                                                                    │
+    │g        │                                                                                                    │
│         │                                                                                                    │
+    │l        │                                                                                                    │
+    │o        │                                                                                                    │
+    │s        │                                                                                                    │
+    │s        │                                                                                                    │
│         │                                                                                                    │
│         │                                                                                                    │
│         │                                                                                                    │
-    │         │          -                                                                                         │
│         │                                                                                                    │
│         │                                                                                                    │
-    │ -1.00e+1│     -   - -  -   ----- -- --------------- ---------------------------------------------------------│
+    │         │                                                                                                    │
+    │         │                                                                                                    │
+    │         │                                                                                                    │
+    │         │                                                                                                    │
+    │         │                                                                                                    │
+    │         │                                                                                                    │
+    │         │                                                                                                    │
+    │         │                                                                                                    │
+    │         │                                                                                                    │
+    │         │                                                                                                    │
+    │ -1.00e+1│----------------------------------------------------------------------------------------------------│
├─────────┼────────────────────────────────────────────────────────────────────────────────────────────────────┤
│         │0.00                                                                                         3.99e+2│
│         │                                                step                                                │
@@ -350,51 +350,51 @@ let%expect_test "Micrograd half-moons example" =
[%expect
{|
Learning rate:
-    ┌─────────┬────────────────────────────────────────────────────────────────────────────────────────────────────┐
-    │ -1.00e-1│                                                                                                   -│
-    │         │                                                                                                 ---│
-    │         │                                                                                              ----  │
-    │         │                                                                                            ---     │
-    │         │                                                                                         ----       │
-    │         │                                                                                       ---          │
-    │         │                                                                                    ---             │
-    │         │                                                                                  ---               │
-    │         │                                                                               ---                  │
-    │         │                                                                            ----                    │
-    │         │                                                                          ---                       │
-    │         │                                                                       ----                         │
-    │         │                                                                     ---                            │
-    │l        │                                                                  ----                              │
-    │e        │                                                                ---                                 │
-    │a        │                                                             ---                                    │
-    │r        │                                                           ---                                      │
-    │n        │                                                        ---                                         │
-    │i        │                                                     ----                                           │
-    │n        │                                                   ---                                              │
-    │g        │                                                ----                                                │
-    │         │                                              ---                                                   │
-    │r        │                                           ----                                                     │
-    │a        │                                         ---                                                        │
-    │t        │                                      ---                                                           │
-    │e        │                                    ---                                                             │
-    │         │                                 ---                                                                │
-    │         │                              ----                                                                  │
-    │         │                            ---                                                                     │
-    │         │                         ----                                                                       │
-    │         │                       ---                                                                          │
-    │         │                    ----                                                                            │
-    │         │                  ---                                                                               │
-    │         │               ---                                                                                  │
-    │         │             ---                                                                                    │
-    │         │          ---                                                                                       │
-    │         │       ----                                                                                         │
-    │         │     ---                                                                                            │
-    │         │  ----                                                                                              │
-    │ -2.00e-1│---                                                                                                 │
-    ├─────────┼────────────────────────────────────────────────────────────────────────────────────────────────────┤
-    │         │0.00                                                                                         3.99e+2│
-    │         │                                                step                                                │
-    └─────────┴────────────────────────────────────────────────────────────────────────────────────────────────────┘
+    ┌──────┬────────────────────────────────────────────────────────────────────────────────────────────────────┐
+    │ -0.00│                                                                                                    │
+    │      │                                                                                                    │
+    │      │                                                                                                    │
+    │      │                                                                                                    │
+    │      │                                                                                                    │
+    │      │                                                                                                    │
+    │      │                                                                                                    │
+    │      │                                                                                                    │
+    │      │                                                                                                    │
+    │      │                                                                                                    │
+    │      │                                                                                                    │
+    │      │                                                                                                    │
+    │      │                                                                                                    │
+    │l     │                                                                                                    │
+    │e     │                                                                                                    │
+    │a     │                                                                                                    │
+    │r     │                                                                                                    │
+    │n     │                                                                                                    │
+    │i     │                                                                                                    │
+    │n     │                                                                                                    │
+    │g     │                                                                                                    │
+    │      │                                                                                                    │
+    │r     │                                                                                                    │
+    │a     │                                                                                                    │
+    │t     │                                                                                                    │
+    │e     │                                                                                                    │
+    │      │                                                                                                    │
+    │      │                                                                                                    │
+    │      │                                                                                                    │
+    │      │                                                                                                    │
+    │      │                                                                                                    │
+    │      │                                                                                                    │
+    │      │                                                                                                    │
+    │      │                                                                                                    │
+    │      │                                                                                                    │
+    │      │                                                                                                    │
+    │      │                                                                                                    │
+    │      │                                                                                                    │
+    │      │                                                                                                    │
+    │ -0.00│----------------------------------------------------------------------------------------------------│
+    ├──────┼────────────────────────────────────────────────────────────────────────────────────────────────────┤
+    │      │0.00                                                                                         3.99e+2│
+    │      │                                                step                                                │
+    └──────┴────────────────────────────────────────────────────────────────────────────────────────────────────┘
|}];


(* Testing how the syntax extension %op creates labels for the resulting tensors: *)
File "test/zero2hero_1of7.ml", line 1, characters 0-0:
/usr/bin/git --no-pager diff --no-index --color=always -u _build/default/test/zero2hero_1of7.ml _build/.sandbox/e26d0877ba33fd0688597a2b8ab996e1/default/test/zero2hero_1of7.ml.corrected
diff --git a/_build/default/test/zero2hero_1of7.ml b/_build/.sandbox/e26d0877ba33fd0688597a2b8ab996e1/default/test/zero2hero_1of7.ml.corrected
index 13e90be..717451f 100644
--- a/_build/default/test/zero2hero_1of7.ml
+++ b/_build/.sandbox/e26d0877ba33fd0688597a2b8ab996e1/default/test/zero2hero_1of7.ml.corrected
@@ -30,7 +30,7 @@ let%expect_test "Graph drawing recompile" =
[%expect
{|
#15 +_f_nd
-                                  6.00e+1
+                                  5.68e-14
#16 grad_+_f_nd Virt/30
<void>
#13 - Virt/152                             │#2 5. Virt/40
@@ -56,24 +56,24 @@ let%expect_test "Graph drawing recompile" =
Tensor.print_tree ~with_grad:true ~depth:9 f;
[%expect
{|
-                                   #32 +_f
-                                    6.00e+1
-                                   #33 grad_+_f
-                                    1.00
-                             #30 -                              │#19 5. Virt/40
-                              5.50e+1                           │<void>
-                             #31 grad_-                         │
-                              1.00                              │
-               #28 *.                 │       #21 *.            │
-                7.50e+1               │        2.00e+1          │
-               #29 grad_*.            │       #22 grad_*.       │
-                1.00                  │        -1.00            │
-    #27 3. Virt/40│   #24 **.         │#20 4. Virt/40│#17 x     │
-    <void>        │    2.50e+1        │<void>        │ 5.00     │
-                  │   #25 grad_**.    │              │#18 grad_x│
-                  │    3.00           │              │ 2.60e+1  │
-                  │[17]│#23 2. Virt/40│              │          │
-                  │    │<void>        │              │          │
+                                    #32 +_f
+                                     5.90e-14
+                                    #33 grad_+_f
+                                     9.18e-41
+                             #30 -                               │#19 5. Virt/40
+                              5.68e-14                           │<void>
+                             #31 grad_-                          │
+                              9.18e-41                           │
+               #28 *.                 │ #21 *.                   │
+                1.81e-12              │  1.88e-37                │
+               #29 grad_*.            │ #22 grad_*. includes NaN │
+                9.18e-41              │  nan                     │
+    #27 3. Virt/40│   #24 **.         │#20 4. Virt/40│#17 x      │
+    <void>        │    9.44e+21       │<void>        │ 5.00      │
+                  │   #25 grad_**.    │              │#18 grad_x │
+                  │    2.75e-40       │              │ -1.10e-36 │
+                  │[17]│#23 2. Virt/40│              │           │
+                  │    │<void>        │              │           │
|}];
let xs = Array.init 10 ~f:Float.(fun i -> of_int i - 5.) in
let ys =
@@ -95,51 +95,51 @@ let%expect_test "Graph drawing recompile" =
PrintBox_text.output Stdio.stdout plot_box;
[%expect
{|
-    ┌────────┬────────────────────────────────────────────────────────────────────────────────────────────────────┐
-    │ 1.00e+2│#                                                                                                   │
-    │        │                                                                                                    │
-    │        │                                                                                                    │
-    │        │                                                                                                    │
-    │        │                                                                                                    │
-    │        │                                                                                                    │
-    │        │                                                                                                    │
-    │        │                                                                                                    │
-    │        │                                                                                                    │
-    │        │                                                                                                    │
-    │        │                                                                                                    │
-    │        │                                                                                                    │
-    │        │                                                                                                    │
-    │        │           #                                                                                        │
-    │        │                                                                                                    │
-    │        │                                                                                                    │
-    │        │                                                                                                    │
-    │        │                                                                                                    │
-    │f       │                                                                                                    │
-    │(       │                                                                                                    │
-    │x       │                                                                                                    │
-    │)       │                                                                                                    │
-    │        │                                                                                                    │
-    │        │                      #                                                                             │
-    │        │                                                                                                    │
-    │        │                                                                                                    │
-    │        │                                                                                                   #│
-    │        │                                                                                                    │
-    │        │                                                                                                    │
-    │        │                                                                                                    │
-    │        │                                                                                                    │
-    │        │                                 #                                                                  │
-    │        │                                                                                                    │
-    │        │                                                                                        #           │
-    │        │                                                                                                    │
-    │        │                                                                                                    │
-    │        │                                            #                                                       │
-    │        │                                                                             #                      │
-    │        │                                                                                                    │
-    │ 4.00   │                                                       #          #                                 │
-    ├────────┼────────────────────────────────────────────────────────────────────────────────────────────────────┤
-    │        │-5.00                                                                                           4.00│
-    │        │                                                 x                                                  │
-    └────────┴────────────────────────────────────────────────────────────────────────────────────────────────────┘
+    ┌─────────┬────────────────────────────────────────────────────────────────────────────────────────────────────┐
+    │ 9.18e-39│                                                                                                    │
+    │         │                                                                                                    │
+    │         │                                                                                                    │
+    │         │                                                                                                    │
+    │         │                                                                                                    │
+    │         │                                                                                                    │
+    │         │                                                                                                    │
+    │         │                                                                                                    │
+    │         │                                                                                                    │
+    │         │                                                                                                    │
+    │         │                                                                                                    │
+    │         │                                                                                                    │
+    │         │                                                                                                    │
+    │         │                                                                                                    │
+    │         │                                                                                                    │
+    │         │                                                                                                    │
+    │         │                                                                                                    │
+    │         │                                                                                                    │
+    │f        │                                                                                                    │
+    │(        │                                                                                                    │
+    │x        │                                                                                                    │
+    │)        │                                                                                                    │
+    │         │                                                                                                    │
+    │         │                                                                                                    │
+    │         │                                                                                                    │
+    │         │                                                                                                    │
+    │         │                                                                                                    │
+    │         │                                                                                                    │
+    │         │                                                                                                    │
+    │         │                                                                                                    │
+    │         │                                                                                                    │
+    │         │                                                                                                    │
+    │         │                                                                                                    │
+    │         │                                                                                                    │
+    │         │                                                                                                    │
+    │         │                                                                                                    │
+    │         │                                                                                                    │
+    │         │                                                                                                    │
+    │         │                                                                                                    │
+    │ 3.67e-40│#          #          #          #          #          #          #          #          #          #│
+    ├─────────┼────────────────────────────────────────────────────────────────────────────────────────────────────┤
+    │         │-5.00                                                                                           4.00│
+    │         │                                                 x                                                  │
+    └─────────┴────────────────────────────────────────────────────────────────────────────────────────────────────┘
|}]


let%expect_test "Graph drawing fetch" =
@@ -157,14 +157,14 @@ let%expect_test "Graph drawing fetch" =
Tensor.print_tree ~with_grad:false ~depth:9 f5;
[%expect
{|
-                                    #9 +_f_5.
-                                     6.00e+1
-                             #8 -                              │#1 5. Virt/40
-                              5.50e+1                          │<void>
-               #7 *.               │         #3 *.             │
-                7.50e+1            │          2.00e+1          │
-    #6 3. Virt/40│    #5 **.       │#2 4. Virt/40│#0 5. Virt/40│
-    <void>       │     2.50e+1     │<void>       │<void>       │
+                                   #9 +_f_5.
+                                    5.51e-39
+                            #8 -                               │#1 5. Virt/40
+                             5.05e-39                          │<void>
+              #7 *.                │        #3 *.              │
+               6.88e-39            │         1.83e-39          │
+    #6 3. Virt/40│   #5 **.        │#2 4. Virt/40│#0 5. Virt/40│
+    <void>       │    2.29e-39     │<void>       │<void>       │
│[0]│#4 2. Virt/40│             │             │
│   │<void>       │             │             │
|}];
@@ -203,51 +203,51 @@ let%expect_test "Graph drawing fetch" =
PrintBox_text.output Stdio.stdout plot_box;
[%expect
{|
-    ┌─────────┬────────────────────────────────────────────────────────────────────────────────────────────────────┐
-    │ 1.00e+2 │#                                                                                                   │
-    │         │#                                                                                                   │
-    │         │  #                                                                                                 │
-    │         │  #                                                                                                 │
-    │         │    #                                                                                               │
-    │         │     #                                                                                              │
-    │         │     #                                                                                              │
-    │         │       #                                                                                            │
-    │         │       #                                                                                            │
-    │         │         #                                                                                          │
-    │         │          ##                                                                                        │
-    │         │            #                                                                                       │
-    │         │            #                                                                                       │
-    │         │             # #                                                                                   #│
-    │         │                #                                                                               # # │
-    │         │                 #                                                                              #   │
-    │         │                   #                                                                          ##    │
-    │         │                    ##                                                                       #      │
-    │f        │                      #                                                                    #        │
-    │(        │                      # #                                                                ##         │
-    │x        │                         ##                                                             #           │
-    │)        │                           #                                                          #             │
-    │         │                            # #                                                    ###            **│
-    │         │                               ##                                                #         * ****   │
-    │         │                                 # #                                           ##     * ****        │
-    │         │                                    ###                                     ##   * ***              │
-    │         │                                      # #                               # ##** **                   │
-    │         │                                          ####                     # ###* *                         │
-    │         │                                             # #### # #    ## # ####                                │
-    │         │                                                       # # ** *                                     │
-    │         │-    -    -    -    -    -    -    -    -    -    - * ** *  -    -    -    -    -    -    -    -    │
-    │         │                                             * ****                                                 │
-    │         │                                        * ****                                                      │
-    │         │                                   **** *                                                           │
-    │         │                            * ****                                                                  │
-    │         │                      * ****                                                                        │
-    │         │                 * ****                                                                             │
-    │         │            ** ***                                                                                  │
-    │         │     * * ***                                                                                        │
-    │ -3.40e+1│* * **                                                                                              │
-    ├─────────┼────────────────────────────────────────────────────────────────────────────────────────────────────┤
-    │         │-5.00                                                                                           4.90│
-    │         │                                                 x                                                  │
-    └─────────┴────────────────────────────────────────────────────────────────────────────────────────────────────┘
+    ┌──────────┬────────────────────────────────────────────────────────────────────────────────────────────────────┐
+    │ 0.00     │                                                                                                    │
+    │          │                                                                                                    │
+    │          │                                                                                                    │
+    │          │                                                                                                    │
+    │          │                                                                                                    │
+    │          │                                                                                                    │
+    │          │                                                                                                    │
+    │          │                                                                                                    │
+    │          │                                                                                                    │
+    │          │                                                                                                    │
+    │          │                                                                                                    │
+    │          │                                                                                                    │
+    │          │                                                                                                    │
+    │          │                                                                                                    │
+    │          │                                                                                                    │
+    │          │                                                                                                    │
+    │          │                                                                                                    │
+    │          │                                                                                                    │
+    │f         │                                                                                                    │
+    │(         │                                                                                                    │
+    │x         │                                                                                                    │
+    │)         │                                                                                                    │
+    │          │                                                                                                    │
+    │          │                                                                                                    │
+    │          │                                                                                                    │
+    │          │                                                                                                    │
+    │          │                                                                                                    │
+    │          │                                                                                                    │
+    │          │                                                                                                    │
+    │          │                                                                                                    │
+    │          │                                                                                                    │
+    │          │                                                                                                    │
+    │          │                                                                                                    │
+    │          │                                                                                                    │
+    │          │                                                                                                    │
+    │          │                                                                                                    │
+    │          │                                                                                                    │
+    │          │                                                                                                    │
+    │          │                                                                                                    │
+    │ -9.99e-37│# # ## # ##### ### #### ##### #### #### # #### #### #  # # ##    ### #### #### ### ***# ##** #*## ##│
+    ├──────────┼────────────────────────────────────────────────────────────────────────────────────────────────────┤
+    │          │-5.00                                                                                           4.90│
+    │          │                                                 x                                                  │
+    └──────────┴────────────────────────────────────────────────────────────────────────────────────────────────────┘
|}]


let%expect_test "Simple gradients hosted" =
@@ -295,22 +295,22 @@ let%expect_test "Simple gradients hosted" =
Tensor.print_tree ~with_grad:true ~depth:9 l;
[%expect
{|
-                 #12 *._l
-                  -8.00
-                 #13 grad_*._l
-                  1.00
-             #8 +_d              │#10 f
-              4.00               │ -2.00
-             #9 grad_+_d         │#11 grad_f
-              -2.00              │ 4.00
-       #4 *._e         │#6 c     │
-        -6.00          │ 1.00e+1 │
-       #5 grad_*._e    │#7 grad_c│
-        -2.00          │ -2.00   │
-    #0 a     │#2 b     │         │
-     2.00    │ -3.00   │         │
-    #1 grad_a│#3 grad_b│         │
-     6.00    │ -4.00   │         │
+                        #12 *._l
+                         0.00
+                        #13 grad_*._l
+                         9.18e-41
+                   #8 +_d                     │#10 f
+                    1.00e+1                   │ -2.00
+                   #9 grad_+_d                │#11 grad_f
+                    -2.00                     │ 1.00e+1
+              #4 *._e               │#6 c     │
+               0.00                 │ 1.00e+1 │
+              #5 grad_*._e          │#7 grad_c│
+               -2.00                │ -2.00   │
+    #0 a                  │#2 b     │         │
+     2.00                 │ -3.00   │         │
+    #1 grad_a includes NaN│#3 grad_b│         │
+     nan                  │ 0.00    │         │
|}];
(* Now we update the params, but we are not doing the forward and backward passes: only params
values will change, compared to the above. The update is in the opposite direction of the
@@ -319,22 +319,22 @@ let%expect_test "Simple gradients hosted" =
Tensor.print_tree ~with_grad:true ~depth:9 l;
[%expect
{|
-                 #12 *._l
-                  -8.00
-                 #13 grad_*._l
-                  1.00
-             #8 +_d              │#10 f
-              4.00               │ -2.40
-             #9 grad_+_d         │#11 grad_f
-              -2.00              │ 4.00
-       #4 *._e         │#6 c     │
-        -6.00          │ 1.02e+1 │
-       #5 grad_*._e    │#7 grad_c│
-        -2.00          │ -2.00   │
-    #0 a     │#2 b     │         │
-     1.40    │ -2.60   │         │
-    #1 grad_a│#3 grad_b│         │
-     6.00    │ -4.00   │         │
+                        #12 *._l
+                         0.00
+                        #13 grad_*._l
+                         9.18e-41
+                   #8 +_d                     │#10 f
+                    1.00e+1                   │ -2.00
+                   #9 grad_+_d                │#11 grad_f
+                    -2.00                     │ 1.00e+1
+              #4 *._e               │#6 c     │
+               0.00                 │ 1.00e+1 │
+              #5 grad_*._e          │#7 grad_c│
+               -2.00                │ -2.00   │
+    #0 a                  │#2 b     │         │
+     2.00                 │ -3.00   │         │
+    #1 grad_a includes NaN│#3 grad_b│         │
+     nan                  │ 0.00    │         │
|}];


(* Now the params will remain as above, but both param gradients and the values and gradients of
@@ -343,22 +343,22 @@ let%expect_test "Simple gradients hosted" =
Tensor.print_tree ~with_grad:true ~depth:9 l;
[%expect
{|
-                 #12 *._l
-                  -1.57e+1
-                 #13 grad_*._l
-                  1.00
-             #8 +_d              │#10 f
-              6.56               │ -2.40
-             #9 grad_+_d         │#11 grad_f
-              -2.40              │ 6.56
-       #4 *._e         │#6 c     │
-        -3.64          │ 1.02e+1 │
-       #5 grad_*._e    │#7 grad_c│
-        -2.40          │ -2.40   │
-    #0 a     │#2 b     │         │
-     1.40    │ -2.60   │         │
-    #1 grad_a│#3 grad_b│         │
-     6.24    │ -3.36   │         │
+                        #12 *._l
+                         0.00
+                        #13 grad_*._l
+                         9.18e-41
+                   #8 +_d                     │#10 f
+                    1.00e+1                   │ -2.00
+                   #9 grad_+_d                │#11 grad_f
+                    -2.00                     │ 1.00e+1
+              #4 *._e               │#6 c     │
+               0.00                 │ 1.00e+1 │
+              #5 grad_*._e          │#7 grad_c│
+               -2.00                │ -2.00   │
+    #0 a                  │#2 b     │         │
+     2.00                 │ -3.00   │         │
+    #1 grad_a includes NaN│#3 grad_b│         │
+     nan                  │ 0.00    │         │
|}]


let%expect_test "Simple gradients virtual" =
@@ -426,7 +426,7 @@ let%expect_test "Simple gradients virtual" =
[%expect
{|
#12 *._l
-                                          -8.00
+                                          0.00
#13 grad_*._l Virt/40
<void>
#8 +_d Local/46                              │#10 f
@@ -452,19 +452,19 @@ let%expect_test "Simple gradients virtual" =
[%expect
{|
#12 *._l
-                                          -8.00
+                                          0.00
#13 grad_*._l Virt/40
<void>
#8 +_d Local/46                              │#10 f
-                              <void>                                       │ -2.40
+                              <void>                                       │ -2.00
#9 grad_+_d Virt/40                          │#11 grad_f Dev-stream/41
<void>                                       │<void>
#4 *._e Virt/152                  │#6 c                   │
-                 <void>                            │ 1.02e+1               │
+                 <void>                            │ 1.00e+1               │
#5 grad_*._e Virt/40              │#7 grad_c Dev-stream/41│
<void>                            │<void>                 │
#0 a                   │#2 b                   │                       │
-     1.40                  │ -2.60                 │                       │
+     2.00                  │ -3.00                 │                       │
#1 grad_a Dev-stream/41│#3 grad_b Dev-stream/41│                       │
<void>                 │<void>                 │                       │
|}];
@@ -475,19 +475,19 @@ let%expect_test "Simple gradients virtual" =
[%expect
{|
#12 *._l
-                                          -1.57e+1
+                                          0.00
#13 grad_*._l Virt/40
<void>
#8 +_d Local/46                              │#10 f
-                              <void>                                       │ -2.40
+                              <void>                                       │ -2.00
#9 grad_+_d Virt/40                          │#11 grad_f Dev-stream/41
<void>                                       │<void>
#4 *._e Virt/152                  │#6 c                   │
-                 <void>                            │ 1.02e+1               │
+                 <void>                            │ 1.00e+1               │
#5 grad_*._e Virt/40              │#7 grad_c Dev-stream/41│
<void>                            │<void>                 │
#0 a                   │#2 b                   │                       │
-     1.40                  │ -2.60                 │                       │
+     2.00                  │ -3.00                 │                       │
#1 grad_a Dev-stream/41│#3 grad_b Dev-stream/41│                       │
<void>                 │<void>                 │                       │
|}]
@@ -512,13 +512,13 @@ let%expect_test "2D neuron hosted" =
[%expect
{|
#8 +_v
-                  7.00e-1
+                  6.68
#9 grad_+_v
-                  1.00
-             #6 *              │#0 b
-              -6.00            │ 6.70
-             #7 grad_*         │#1 grad_b
-              1.00             │ 1.00
+                  9.18e-41
+            #6 *               │#0 b
+             0.00              │ 6.68
+            #7 grad_*          │#1 grad_b
+             9.18e-41          │ 9.18e-41
#2 w         │#4 x         │
-3.00  1.00 │ 2.00  0.00  │
#3 grad_w    │#5 grad_x    │
@@ -539,11 +539,11 @@ let%expect_test "2D neuron virtual" =
[%expect
{|
#8 +_v
-                       7.00e-1
+                       6.68
#9 grad_+_v Virt/40
<void>
#6 * Local/46              │#0 b
-              <void>                     │ 6.70
+              <void>                     │ 6.68
#7 grad_* Virt/40          │#1 grad_b Local/46
<void>                     │<void>
#2 w              │#4 x              │
File "test/primitive_ops.ml", line 1, characters 0-0:
/usr/bin/git --no-pager diff --no-index --color=always -u _build/default/test/primitive_ops.ml _build/.sandbox/e26d0877ba33fd0688597a2b8ab996e1/default/test/primitive_ops.ml.corrected
diff --git a/_build/default/test/primitive_ops.ml b/_build/.sandbox/e26d0877ba33fd0688597a2b8ab996e1/default/test/primitive_ops.ml.corrected
index 71c4c28..eed1c49 100644
--- a/_build/default/test/primitive_ops.ml
+++ b/_build/.sandbox/e26d0877ba33fd0688597a2b8ab996e1/default/test/primitive_ops.ml.corrected
@@ -55,153 +55,153 @@ let%expect_test "relu" =
PrintBox_text.output Stdio.stdout plot_box;
[%expect
{|
-    ┌─────┬────────────────────────────────────────────────────────────────────────────────────────────────────┐
-    │ 5.00│                                                                                                   #│
-    │     │                                                                                                  # │
-    │     │                                                                                                 #  │
-    │     │                                                                                                #   │
-    │     │                                                                                              #     │
-    │     │                                                                                             #      │
-    │     │                                                                                            #       │
-    │     │                                                                                           #        │
-    │     │                                                                                         ##         │
-    │     │                                                                                        #           │
-    │     │                                                                                      #             │
-    │     │                                                                                      #             │
-    │     │                                                                                    ##              │
-    │     │                                                                                   #                │
-    │     │                                                                                 #                  │
-    │     │                                                                                ##                  │
-    │     │                                                                               #                    │
-    │     │                                                                              #                     │
-    │f    │                                                                             #                      │
-    │(    │                                                                           ##                       │
-    │x    │                                                                          #                         │
-    │)    │                                                                         #                          │
-    │     │                                                                        #                           │
-    │     │                                                                      ##                            │
-    │     │                                                                     #                              │
-    │     │                                                                    #                               │
-    │     │                                                                   #                                │
-    │     │                                                                 ##                                 │
-    │     │                                                                #                                   │
-    │     │                                                               #                                    │
-    │     │                                                             ##                                     │
-    │     │                                                            #                                       │
-    │     │                                                 * ******************************* **** ******* ****│
-    │     │                                                          #                                         │
-    │     │                                                        ##                                          │
-    │     │                                                       #                                            │
-    │     │                                                      #                                             │
-    │     │                                                     #                                              │
-    │     │                                                   ##                                               │
-    │ 0.00│**** *** *** *** ********-*************** ********-    -    -    -    -    -    -    -    -    -    │
-    ├─────┼────────────────────────────────────────────────────────────────────────────────────────────────────┤
-    │     │-5.00                                                                                           5.00│
-    │     │                                                 x                                                  │
-    └─────┴────────────────────────────────────────────────────────────────────────────────────────────────────┘
+    ┌──────┬────────────────────────────────────────────────────────────────────────────────────────────────────┐
+    │ 5.00 │                                                                                                   #│
+    │      │                                                                                                 ## │
+    │      │                                                                                              # #   │
+    │      │                                                                                            ##      │
+    │      │                                                                                         ###        │
+    │      │                                                                                      # #           │
+    │      │                                                                                    ###             │
+    │      │                                                                                 # #                │
+    │      │                                                                               ###                  │
+    │      │                                                                             ##                     │
+    │      │                                                                          ###                       │
+    │      │                                                                        ##                          │
+    │      │                                                                     ###                            │
+    │      │                                                                   ##                               │
+    │      │                                                                ###                                 │
+    │      │                                                             ###                                    │
+    │      │                                                           ##                                       │
+    │      │                                                        ###                                         │
+    │f     │                                                      ##                                            │
+    │(     │                                                   ###                                              │
+    │x     │**** *** *** *** ********-*************** ********-******************************* **** *******-****│
+    │)     │                                              ###                                                   │
+    │      │                                            ##                                                      │
+    │      │                                        # ##                                                        │
+    │      │                                       ##                                                           │
+    │      │                                    ###                                                             │
+    │      │                                 ###                                                                │
+    │      │                               ##                                                                   │
+    │      │                            ###                                                                     │
+    │      │                          ##                                                                        │
+    │      │                       ##                                                                           │
+    │      │                     ##                                                                             │
+    │      │                  ###                                                                               │
+    │      │               # #                                                                                  │
+    │      │             ###                                                                                    │
+    │      │           #                                                                                        │
+    │      │       # ##                                                                                         │
+    │      │      #                                                                                             │
+    │      │  ## #                                                                                              │
+    │ -5.00│###                                                                                                 │
+    ├──────┼────────────────────────────────────────────────────────────────────────────────────────────────────┤
+    │      │-5.00                                                                                           5.00│
+    │      │                                                 x                                                  │
+    └──────┴────────────────────────────────────────────────────────────────────────────────────────────────────┘
|}]


let%expect_test "sat01" =
let%op f x = sat01 x in
let plot_box = plot_unop ~f () in
PrintBox_text.output Stdio.stdout plot_box;
+  [%expect
+    {|
+    ┌─────────┬────────────────────────────────────────────────────────────────────────────────────────────────────┐
+    │ 9.18e-41│                                                                                                    │
+    │         │                                                                                                    │
+    │         │                                                                                                    │
+    │         │                                                                                                    │
+    │         │                                                                                                    │
+    │         │                                                                                                    │
+    │         │                                                                                                    │
+    │         │                                                                                                    │
+    │         │                                                                                                    │
+    │         │                                                                                                    │
+    │         │                                                                                                    │
+    │         │                                                                                                    │
+    │         │                                                                                                    │
+    │         │                                                                                                    │
+    │         │                                                                                                    │
+    │         │                                                                                                    │
+    │         │                                                                                                    │
+    │         │                                                                                                    │
+    │f        │                                                                                                    │
+    │(        │                                                                                                    │
+    │x        │                                                                                                    │
+    │)        │                                                                                                    │
+    │         │                                                                                                    │
+    │         │                                                                                                    │
+    │         │                                                                                                    │
+    │         │                                                                                                    │
+    │         │                                                                                                    │
+    │         │                                                                                                    │
+    │         │                                                                                                    │
+    │         │                                                                                                    │
+    │         │                                                                                                    │
+    │         │                                                                                                    │
+    │         │                                                                                                    │
+    │         │                                                                                                    │
+    │         │                                                                                                    │
+    │         │                                                                                                    │
+    │         │                                                                                                    │
+    │         │                                                                                                    │
+    │         │                                                                                                    │
+    │ 0.00    │**** *** *** *** ********-*************** ********-******************************* **** *******-****│
+    ├─────────┼────────────────────────────────────────────────────────────────────────────────────────────────────┤
+    │         │-5.00                                                                                           5.00│
+    │         │                                                 x                                                  │
+    └─────────┴────────────────────────────────────────────────────────────────────────────────────────────────────┘
+    |}]
+
+let%expect_test "exp(x)" =
+  let%op f x = exp x in
+  let plot_box = plot_unop ~f ~x_max:1.0 () in
+  PrintBox_text.output Stdio.stdout plot_box;
[%expect
{|
┌─────┬────────────────────────────────────────────────────────────────────────────────────────────────────┐
-    │ 1.00│                                                 * *********###################### #### ####### ####│
+    │ 0.00│                                                                                                    │
│     │                                                                                                    │
-    │     │                                                           #                                        │
│     │                                                                                                    │
│     │                                                                                                    │
│     │                                                                                                    │
-    │     │                                                          #                                         │
│     │                                                                                                    │
│     │                                                                                                    │
│     │                                                                                                    │
-    │     │                                                         #                                          │
│     │                                                                                                    │
│     │                                                                                                    │
│     │                                                                                                    │
-    │     │                                                        #                                           │
│     │                                                                                                    │
│     │                                                                                                    │
│     │                                                                                                    │
-    │f    │                                                       #                                            │
-    │(    │                                                                                                    │
-    │x    │                                                                                                    │
-    │)    │                                                                                                    │
-    │     │                                                      #                                             │
│     │                                                                                                    │
│     │                                                                                                    │
│     │                                                                                                    │
-    │     │                                                     #                                              │
│     │                                                                                                    │
+    │f    │                                                                                                    │
+    │(    │                                                                                                    │
+    │x    │                                                                                                    │
+    │)    │                                                                                                    │
│     │                                                                                                    │
│     │                                                                                                    │
-    │     │                                                    #                                               │
│     │                                                                                                    │
│     │                                                                                                    │
│     │                                                                                                    │
-    │     │                                                   #                                                │
│     │                                                                                                    │
│     │                                                                                                    │
│     │                                                                                                    │
-    │     │                                                 #                                                  │
-    │ 0.00│**** *** *** *** ********-*************** ********-    -    ********************** **** *******-****│
-    ├─────┼────────────────────────────────────────────────────────────────────────────────────────────────────┤
-    │     │-5.00                                                                                           5.00│
-    │     │                                                 x                                                  │
-    └─────┴────────────────────────────────────────────────────────────────────────────────────────────────────┘
-    |}]
-
-let%expect_test "exp(x)" =
-  let%op f x = exp x in
-  let plot_box = plot_unop ~f ~x_max:1.0 () in
-  PrintBox_text.output Stdio.stdout plot_box;
-  [%expect
-    {|
-    ┌─────┬────────────────────────────────────────────────────────────────────────────────────────────────────┐
-    │ 2.71│                                                                                                   *│
│     │                                                                                                    │
│     │                                                                                                    │
-    │     │                                                                                                  * │

│     │                                                                                                    │
-    │     │                                                                                                 *  │
│     │                                                                                                    │
-    │     │                                                                                                *   │
│     │                                                                                                    │
-    │     │                                                                                               *    │
│     │                                                                                                    │
-    │     │                                                                                              *     │
-    │     │                                                                                             *      │
│     │                                                                                                    │
-    │     │                                                                                            *       │
-    │     │                                                                                           *        │
│     │                                                                                                    │
-    │     │                                                                                          *         │
-    │f    │                                                                                         *          │
-    │(    │                                                                                        *           │
-    │x    │                                                                                                    │
-    │)    │                                                                                       *            │
-    │     │                                                                                      *             │
-    │     │                                                                                     *              │
-    │     │                                                                                    *               │
-    │     │                                                                                   *                │
-    │     │                                                                                 **                 │
-    │     │                                                                                *                   │
-    │     │                                                                               *                    │
-    │     │                                                                             **                     │
-    │     │                                                                           **                       │
-    │     │                                                                        **                          │
-    │     │                                                                       *                            │
-    │     │                                                                     **                             │
-    │     │                                                                  ***                               │
-    │     │                                                              ****                                  │
-    │     │                                                         *****                                      │
-    │     │                                                  *******                                           │
-    │     │                                       ***********                                                  │
-    │ 0.00│********* ************ ************** * -    -    -    -    -    -    -    -    -    -    -    -    │
+    │     │                                                                                                    │
+    │ 0.00│********* ************ ************** ************************************ *************************│
├─────┼────────────────────────────────────────────────────────────────────────────────────────────────────┤
│     │-5.00                                                                                           1.00│
│     │                                                 x                                                  │
@@ -214,51 +214,51 @@ let%expect_test "log(x)" =
PrintBox_text.output Stdio.stdout plot_box;
[%expect
{|
-    ┌────────┬────────────────────────────────────────────────────────────────────────────────────────────────────┐
-    │ 1.00e+1│*                                                                                                   │
-    │        │                                                                                                    │
-    │        │                                                                                                    │
-    │        │                                                                                                    │
-    │        │                                                                                                    │
-    │        │                                                                                                    │
-    │        │                                                                                                    │
-    │        │                                                                                                    │
-    │        │                                                                                                    │
-    │        │                                                                                                    │
-    │        │                                                                                                    │
-    │        │ *                                                                                                  │
-    │        │                                                                                                    │
-    │        │                                                                                                    │
-    │        │                                                                                                    │
-    │        │                                                                                                    │
-    │        │  *                                                                                                 │
-    │        │                                                                                                    │
-    │f       │                                                                                                    │
-    │(       │   *                                                                                                │
-    │x       │                                                                                                    │
-    │)       │                                                                                                    │
-    │        │    *                                                                                               │
-    │        │     *                                                                                              │
-    │        │      *                                                                                             │
-    │        │       *                                                                                            │
-    │        │        **                                                                                          │
-    │        │          **                                                                           #############│
-    │        │            ***                                                ################### ####             │
-    │        │                ******                        ######### #### ##                                     │
-    │        │                      ******** *****##### ####                                                      │
-    │        │                        ###### ##   ***** ************* **** ********************* *******          │
-    │        │-    -    -    - ####### -    -    -    -    -    -    -    -    -    -    -    -    -    **********│
-    │        │            ### #                                                                                   │
-    │        │        ####                                                                                        │
-    │        │      ##                                                                                            │
-    │        │    ##                                                                                              │
-    │        │  ##                                                                                                │
-    │        │ #                                                                                                  │
-    │ -2.30  │#                                                                                                   │
-    ├────────┼────────────────────────────────────────────────────────────────────────────────────────────────────┤
-    │        │1.00e-1                                                                                         5.00│
-    │        │                                                 x                                                  │
-    └────────┴────────────────────────────────────────────────────────────────────────────────────────────────────┘
+    ┌─────────┬────────────────────────────────────────────────────────────────────────────────────────────────────┐
+    │ 8.26e-40│                                                                                                    │
+    │         │                                                                                                    │
+    │         │                                                                                                    │
+    │         │                                                                                                    │
+    │         │                                                                                                    │
+    │         │                                                                                                    │
+    │         │                                                                                                    │
+    │         │                                                                                                    │
+    │         │                                                                                                    │
+    │         │                                                                                                    │
+    │         │                                                                                                    │
+    │         │                                                                                                    │
+    │         │                                                                                                    │
+    │         │                                                                                                    │
+    │         │                                                                                                    │
+    │         │                                                                                                    │
+    │         │                                                                                                    │
+    │         │                                                                                                    │
+    │f        │                                                                                                    │
+    │(        │                                                                                                    │
+    │x        │                                                                                                    │
+    │)        │                                                                                                    │
+    │         │                                                                                                    │
+    │         │                                                                                                    │
+    │         │                                                                                                    │
+    │         │                                                                                                    │
+    │         │                                                                                                    │
+    │         │                                                                                                    │
+    │         │                                                                                                    │
+    │         │                                                                                                    │
+    │         │                                                                                                    │
+    │         │                                                                                                    │
+    │         │                                                                                                    │
+    │         │                                                                                                    │
+    │         │                                                                                                    │
+    │         │                                                                                                    │
+    │         │                                                                                                    │
+    │         │                                                                                                    │
+    │         │                                                                                                    │
+    │ 0.00    │***************-**************-********** *************-****-********************* *****************│
+    ├─────────┼────────────────────────────────────────────────────────────────────────────────────────────────────┤
+    │         │1.00e-1                                                                                         5.00│
+    │         │                                                 x                                                  │
+    └─────────┴────────────────────────────────────────────────────────────────────────────────────────────────────┘
|}]


let%expect_test "log2(x)" =
@@ -267,51 +267,51 @@ let%expect_test "log2(x)" =
PrintBox_text.output Stdio.stdout plot_box;
[%expect
{|
-    ┌────────┬────────────────────────────────────────────────────────────────────────────────────────────────────┐
-    │ 1.44e+1│*                                                                                                   │
-    │        │                                                                                                    │
-    │        │                                                                                                    │
-    │        │                                                                                                    │
-    │        │                                                                                                    │
-    │        │                                                                                                    │
-    │        │                                                                                                    │
-    │        │                                                                                                    │
-    │        │                                                                                                    │
-    │        │                                                                                                    │
...TRUNCATED BY DUNE...
-    │     │1.00e-1                                                                                         5.00│
-    │     │                                                 x                                                  │
-    └─────┴────────────────────────────────────────────────────────────────────────────────────────────────────┘
-    |}]
-
-let%expect_test "recip(x)" =
-  let%op f x = recip x in
-  let plot_box = plot_unop ~f ~x_min:0.1 ~x_max:5.0 () in
-  PrintBox_text.output Stdio.stdout plot_box;
[%expect
{|
┌─────────┬────────────────────────────────────────────────────────────────────────────────────────────────────┐
-    │ 1.00e+1 │#                                                                                                   │
+    │ 1.17e-38│                                                                                                    │
+    │         │                                                                                                    │
+    │         │                                                                                                    │
+    │         │                                                                                                    │
+    │         │                                                                                                    │
+    │         │                                                                                                    │
+    │         │                                                                                                    │
+    │         │                                                                                                    │
+    │         │                                                                                                    │
+    │         │                                                                                                    │
│         │                                                                                                    │
-    │         │ ##                                                                                                 │
-    │         │   #########                                                                                        │
-    │         │-    -    - ###-**************-********** *************-****-********************* *****************│
-    │         │        *******                                                                                     │
-    │         │      **                                                                                            │
-    │         │     *                                                                                              │
-    │         │    *                                                                                               │
│         │                                                                                                    │
-    │         │   *                                                                                                │
│         │                                                                                                    │
│         │                                                                                                    │
-    │         │  *                                                                                                 │
│         │                                                                                                    │
│         │                                                                                                    │
│         │                                                                                                    │
│         │                                                                                                    │
│f        │                                                                                                    │
│(        │                                                                                                    │
-    │x        │ *                                                                                                  │
+    │x        │                                                                                                    │
│)        │                                                                                                    │
│         │                                                                                                    │
│         │                                                                                                    │
@@ -625,47 +572,151 @@ let%expect_test "recip(x)" =
│         │                                                                                                    │
│         │                                                                                                    │
│         │                                                                                                    │
-    │ -1.00e+2│*                                                                                                   │
+    │ 0.00    │***************-**************-********** *************-****-********************* *****************│
├─────────┼────────────────────────────────────────────────────────────────────────────────────────────────────┤
│         │1.00e-1                                                                                         5.00│
│         │                                                 x                                                  │
└─────────┴────────────────────────────────────────────────────────────────────────────────────────────────────┘
|}]


+let%expect_test "recip(x)" =
+  let%op f x = recip x in
+  let plot_box = plot_unop ~f ~x_min:0.1 ~x_max:5.0 () in
+  PrintBox_text.output Stdio.stdout plot_box;
+  [%expect
+    {|
+    ┌─────┬────────────────────────────────────────────────────────────────────────────────────────────────────┐
+    │ 0.00│                                                                                                    │
+    │     │                                                                                                    │
+    │     │                                                                                                    │
+    │     │                                                                                                    │
+    │     │                                                                                                    │
+    │     │                                                                                                    │
+    │     │                                                                                                    │
+    │     │                                                                                                    │
+    │     │                                                                                                    │
+    │     │                                                                                                    │
+    │     │                                                                                                    │
+    │     │                                                                                                    │
+    │     │                                                                                                    │
+    │     │                                                                                                    │
+    │     │                                                                                                    │
+    │     │                                                                                                    │
+    │     │                                                                                                    │
+    │     │                                                                                                    │
+    │f    │                                                                                                    │
+    │(    │                                                                                                    │
+    │x    │                                                                                                    │
+    │)    │                                                                                                    │
+    │     │                                                                                                    │
+    │     │                                                                                                    │
+    │     │                                                                                                    │
+    │     │                                                                                                    │
+    │     │                                                                                                    │
+    │     │                                                                                                    │
+    │     │                                                                                                    │
+    │     │                                                                                                    │
+    │     │                                                                                                    │
+    │     │                                                                                                    │
+    │     │                                                                                                    │
+    │     │                                                                                                    │
+    │     │                                                                                                    │
+    │     │                                                                                                    │
+    │     │                                                                                                    │
+    │     │                                                                                                    │
+    │     │                                                                                                    │
+    │ 0.00│***************-**************-********** *************-****-********************* *****************│
+    ├─────┼────────────────────────────────────────────────────────────────────────────────────────────────────┤
+    │     │1.00e-1                                                                                         5.00│
+    │     │                                                 x                                                  │
+    └─────┴────────────────────────────────────────────────────────────────────────────────────────────────────┘
+    |}]
+
let%expect_test "recip_sqrt(x)" =
let%op f x = recip_sqrt x in
let plot_box = plot_unop ~f ~x_min:0.1 ~x_max:5.0 () in
PrintBox_text.output Stdio.stdout plot_box;
+  [%expect
+    {|
+    ┌─────┬────────────────────────────────────────────────────────────────────────────────────────────────────┐
+    │ 0.00│                                                                                                    │
+    │     │                                                                                                    │
+    │     │                                                                                                    │
+    │     │                                                                                                    │
+    │     │                                                                                                    │
+    │     │                                                                                                    │
+    │     │                                                                                                    │
+    │     │                                                                                                    │
+    │     │                                                                                                    │
+    │     │                                                                                                    │
+    │     │                                                                                                    │
+    │     │                                                                                                    │
+    │     │                                                                                                    │
+    │     │                                                                                                    │
+    │     │                                                                                                    │
+    │     │                                                                                                    │
+    │     │                                                                                                    │
+    │     │                                                                                                    │
+    │f    │                                                                                                    │
+    │(    │                                                                                                    │
+    │x    │                                                                                                    │
+    │)    │                                                                                                    │
+    │     │                                                                                                    │
+    │     │                                                                                                    │
+    │     │                                                                                                    │
+    │     │                                                                                                    │
+    │     │                                                                                                    │
+    │     │                                                                                                    │
+    │     │                                                                                                    │
+    │     │                                                                                                    │
+    │     │                                                                                                    │
+    │     │                                                                                                    │
+    │     │                                                                                                    │
+    │     │                                                                                                    │
+    │     │                                                                                                    │
+    │     │                                                                                                    │
+    │     │                                                                                                    │
+    │     │                                                                                                    │
+    │     │                                                                                                    │
+    │ 0.00│***************-**************-********** *************-****-********************* *****************│
+    ├─────┼────────────────────────────────────────────────────────────────────────────────────────────────────┤
+    │     │1.00e-1                                                                                         5.00│
+    │     │                                                 x                                                  │
+    └─────┴────────────────────────────────────────────────────────────────────────────────────────────────────┘
+    |}]
+
+let%expect_test "tanh(x)" =
+  let%op f x = tanh x in
+  let plot_box = plot_unop ~f () in
+  PrintBox_text.output Stdio.stdout plot_box;
[%expect
{|
┌─────────┬────────────────────────────────────────────────────────────────────────────────────────────────────┐
-    │ 3.16    │#                                                                                                   │
+    │ 9.18e-41│                                                                                                    │
+    │         │                                                                                                    │
+    │         │                                                                                                    │
+    │         │                                                                                                    │
+    │         │                                                                                                    │
+    │         │                                                                                                    │
+    │         │                                                                                                    │
+    │         │                                                                                                    │
+    │         │                                                                                                    │
+    │         │                                                                                                    │
+    │         │                                                                                                    │
+    │         │                                                                                                    │
+    │         │                                                                                                    │
+    │         │                                                                                                    │
│         │                                                                                                    │
-    │         │ ##                                                                                                 │
-    │         │   ##                                                                                               │
-    │         │     #######                                                                                        │
-    │         │            ### ############## #####                                                                │
-    │         │                                    ##### ############# #### ##################### #################│
-    │         │-    -    -    -    -    -    -********** *************-****-********************* *****************│
-    │         │              * **************                                                                      │
-    │         │          ****                                                                                      │
-    │         │       ***                                                                                          │
-    │         │      *                                                                                             │
-    │         │     *                                                                                              │
-    │         │    *                                                                                               │
│         │                                                                                                    │
-    │         │   *                                                                                                │
│         │                                                                                                    │
│         │                                                                                                    │
│f        │                                                                                                    │
-    │(        │  *                                                                                                 │
+    │(        │                                                                                                    │
│x        │                                                                                                    │
│)        │                                                                                                    │
│         │                                                                                                    │
│         │                                                                                                    │
│         │                                                                                                    │
-    │         │ *                                                                                                  │
-    │         │                                                                                                    │
│         │                                                                                                    │
│         │                                                                                                    │
│         │                                                                                                    │
@@ -678,60 +729,9 @@ let%expect_test "recip_sqrt(x)" =
│         │                                                                                                    │
│         │                                                                                                    │
│         │                                                                                                    │
-    │ -1.58e+1│*                                                                                                   │
-    ├─────────┼────────────────────────────────────────────────────────────────────────────────────────────────────┤
-    │         │1.00e-1                                                                                         5.00│
-    │         │                                                 x                                                  │
-    └─────────┴────────────────────────────────────────────────────────────────────────────────────────────────────┘
-    |}]
-
-let%expect_test "tanh(x)" =
-  let%op f x = tanh x in
-  let plot_box = plot_unop ~f () in
-  PrintBox_text.output Stdio.stdout plot_box;
-  [%expect
-    {|
-    ┌─────────┬────────────────────────────────────────────────────────────────────────────────────────────────────┐
-    │ 9.99e-1 │                                                                                                   #│
-    │         │                                                ** *                ############## #### ####### ### │
-    │         │                                               *    *           ####                                │
-    │         │                                              *      *        ##                                    │
-    │         │                                             *        *      #                                      │
-    │         │                                            *          *   ##                                       │
-    │         │                                                          #                                         │
-    │         │                                           *            *                                           │
-    │         │                                          *              *                                          │
-    │         │                                                        #                                           │
-    │         │                                        *              #  *                                         │
-    │         │                                        *                  *                                        │
-    │         │                                                      #                                             │
-    │         │                                       *             #      *                                       │
-    │         │                                      *                      *                                      │
-    │         │                                     *              #         *                                     │
-    │         │                                   **                          **                                   │
-    │         │                                 **                #             **                                 │
-    │f        │                               **                                  **                               │
-    │(        │                        * *****                  #                   ******                         │
-    │x        │**** *** *** *** ********-    -    -    -    -    -    -    -    -    -    ******* **** *******-****│
-    │)        │                                                 #                                                  │
-    │         │                                                                                                    │
-    │         │                                                #                                                   │
│         │                                                                                                    │
-    │         │                                               #                                                    │
│         │                                                                                                    │
-    │         │                                              #                                                     │
-    │         │                                             #                                                      │
-    │         │                                                                                                    │
-    │         │                                            #                                                       │
-    │         │                                           #                                                        │
-    │         │                                          #                                                         │
-    │         │                                                                                                    │
-    │         │                                        #                                                           │
-    │         │                                       ##                                                           │
-    │         │                                      #                                                             │
-    │         │                                    ##                                                              │
-    │         │                                ####                                                                │
-    │ -9.99e-1│#### ### ### ### ######## ######                                                                    │
+    │ 0.00    │**** *** *** *** ********-*************** ********-******************************* **** *******-****│
├─────────┼────────────────────────────────────────────────────────────────────────────────────────────────────┤
│         │-5.00                                                                                           5.00│
│         │                                                 x                                                  │
@@ -744,49 +744,49 @@ let%expect_test "where(x < 0, sin(x), cos(x))" =
PrintBox_text.output Stdio.stdout plot_box;
[%expect
{|
-    ┌─────────┬────────────────────────────────────────────────────────────────────────────────────────────────────┐
-    │ 9.99e-1 │  #                                                                                             *   │
-    │         │#### ##                                        *** ##                                        **  ***│
-    │         │      #                                      **      ##                                     *       │
-    │         │       #                                    *          #                                   *        │
-    │         │         #                                                                                *         │
-    │         │          #                                *            #                                *          │
-    │         │                                          *              #                                          │
-    │         │           #                            *                 #                             *           │
-    │         │           #                                                                          *             │
-    │         │                                        *                  #                                        │
-    │         │             #                         *                    #                         *             │
-    │         │                                                                                                    │
-    │         │              #                       *                      #                       *              │
-    │         │               #                                                                    *               │
-    │         │*                                    *                        #                                    #│
-    │         │               #                                                                   *                │
-    │         │ *                                  *                          #                                  # │
-    │         │                 #                                                               *                  │
-    │f        │  *                                *                            #                                #  │
-    │(        │                  #                                                              *                  │
-    │x        │- *  -    -    -    -    -    -   *-    -    -    -    -    -    #    -    -    -    -    -    -#   │
-    │)        │                   #                             *                              *                   │
-    │         │   *                             *                                #                           #     │
-    │         │                    #                           #  *                           *                    │
-    │         │     *                          *                                  #                          #     │
-    │         │                     #                         #    *                         *                     │
-    │         │      *                        *                                    #                        #      │
-    │         │                      #                       #      *                       *                      │
-    │         │      *                       *                                      #                      #       │
-    │         │                       #     *               #        *               #     *                       │
-    │         │       *                #                   #          *                   *               #        │
-    │         │         *                  *                                          #                  #         │
-    │         │                        #                  #            *                 *                         │
-    │         │          *                *              #              *              #                #          │
-    │         │           *              *                                              *              #           │
-    │         │                        *  #            #                 *             * #                         │
-    │         │           *            *   #           #                  *           *   #          #             │
-    │         │             *         *     #         #                    *         *     #         #             │
-    │         │              **      *       #       #                      *       *       #      ##              │
-    │ -9.99e-1│               * *****         #######                        *******         #### #                │
-    ├─────────┼────────────────────────────────────────────────────────────────────────────────────────────────────┤
-    │         │-5.00                                                                                           5.00│
-    │         │                                                 x                                                  │
-    └─────────┴────────────────────────────────────────────────────────────────────────────────────────────────────┘
+    ┌──────────┬────────────────────────────────────────────────────────────────────────────────────────────────────┐
+    │ 7.68e+36 │                                                     *                                              │
+    │          │                                                                                                    │
+    │          │                                                                                                    │
+    │          │                                                                                                    │
+    │          │#*** *** *#* *** ********-*************** **#*****-**#**#************************* **** *******-****│
+    │          │          *                                             *                                           │
+    │          │                                                                                                    │
+    │          │                                                                                                    │
+    │          │      *                                                                                             │
+    │          │                                                                                                    │
+    │          │                                                                                                    │
+    │          │                                                                                                    │
+    │          │                                                                                                    │
+    │          │                                                                                                    │
+    │          │                                                                                                    │
+    │          │                                                                                                    │
+    │          │                                                                                                    │
+    │          │                                                                                                    │
+    │f         │                                                                                                    │
+    │(         │                                                                                                    │
+    │x         │                                                                                                    │
+    │)         │                                                                                                    │
+    │          │                                                                                                    │
+    │          │                                                                                                    │
+    │          │                                                                                                    │
+    │          │                                                                                                    │
+    │          │                                                                                                    │
+    │          │                                                                                                    │
+    │          │                                                                                                    │
+    │          │                                                                                                    │
+    │          │                                                                                                    │
+    │          │                                                                                                    │
+    │          │                                                                                                    │
+    │          │                                                                                                    │
+    │          │                                                                                                    │
+    │          │                                                                                                    │
+    │          │                                                                                                    │
+    │          │                                                                                                    │
+    │          │                                                                                                    │
+    │ -6.87e+37│*                                           *                                                       │
+    ├──────────┼────────────────────────────────────────────────────────────────────────────────────────────────────┤
+    │          │-5.00                                                                                           5.00│
+    │          │                                                 x                                                  │
+    └──────────┴────────────────────────────────────────────────────────────────────────────────────────────────────┘
|}]
File "test/hello_world_op.ml", line 1, characters 0-0:
/usr/bin/git --no-pager diff --no-index --color=always -u _build/default/test/hello_world_op.ml _build/.sandbox/e26d0877ba33fd0688597a2b8ab996e1/default/test/hello_world_op.ml.corrected
diff --git a/_build/default/test/hello_world_op.ml b/_build/.sandbox/e26d0877ba33fd0688597a2b8ab996e1/default/test/hello_world_op.ml.corrected
index 0cea005..6e30169 100644
--- a/_build/default/test/hello_world_op.ml
+++ b/_build/.sandbox/e26d0877ba33fd0688597a2b8ab996e1/default/test/hello_world_op.ml.corrected
@@ -35,11 +35,11 @@ let%expect_test "Pointwise multiplication dims 1" =
{|
┌────────────────────┐
│[3]: *._y shape 0:1 │
-    │┌┬─────────┐        │
-    │││axis 0   │        │
-    │├┼─────────┤        │
-    │││ 1.40e+1 │        │
-    │└┴─────────┘        │
+    │┌┬───────────┐      │
+    │││axis 0     │      │
+    │├┼───────────┤      │
+    │││ -7.05e-38 │      │
+    │└┴───────────┘      │
└────────────────────┘
|}]


@@ -77,11 +77,11 @@ let%expect_test "Matrix multiplication dims 1x1" =
{|
┌───────────────────┐
│[6]: +_y shape 0:1 │
-    │┌┬─────────┐       │
-    │││axis 0   │       │
-    │├┼─────────┤       │
-    │││ 1.50e+1 │       │
-    │└┴─────────┘       │
+    │┌┬───────────┐     │
+    │││axis 0     │     │
+    │├┼───────────┤     │
+    │││ -7.08e-38 │     │
+    │└┴───────────┘     │
└───────────────────┘
|}]


@@ -480,14 +480,14 @@ let%expect_test "Matrix multiplication dims 2x3" =
Tensor.print ~with_code:false ~with_grad:false `Default @@ y;
[%expect
{|
-    ┌──────────────────────────────┐
-    │[6]: +_y shape 0:3            │
-    │┌┬───────────────────────────┐│
-    │││axis 0                     ││
-    │├┼───────────────────────────┤│
-    │││ 3.90e+1  4.00e+1  4.10e+1 ││
-    │└┴───────────────────────────┘│
-    └──────────────────────────────┘
+    ┌─────────────────────────────────┐
+    │[6]: +_y shape 0:3               │
+    │┌┬──────────────────────────────┐│
+    │││axis 0                        ││
+    │├┼──────────────────────────────┤│
+    │││ 2.07e+34  2.59e+34  3.11e+34 ││
+    │└┴──────────────────────────────┘│
+    └─────────────────────────────────┘
|}]


let%expect_test "Big matrix" =
@@ -566,14 +566,14 @@ let%expect_test "Big matrix" =
Tensor.print ~with_code:false ~with_grad:false `Default y;
[%expect
{|
-    ┌────────────────────────────────────────────┐
-    │[5]: + shape 0:21                           │
-    │┌┬─────────────────────────────────────────┐│
-    │││axis 0                                   ││
-    │├┼─────────────────────────────────────────┤│
-    │││ 1.05e+2  1.06e+2  ...  1.24e+2  1.25e+2 ││
-    │└┴─────────────────────────────────────────┘│
-    └────────────────────────────────────────────┘
+    ┌────────────────────────────────────────┐
+    │[5]: + shape 0:21  includes NaN         │
+    │┌┬─────────────────────────────────────┐│
+    │││axis 0                               ││
+    │├┼─────────────────────────────────────┤│
+    │││ nan  9.96e-1  ...  1.88e+1  1.98e+1 ││
+    │└┴─────────────────────────────────────┘│
+    └────────────────────────────────────────┘
|}]


let%expect_test "Very big tensor" =
@@ -604,45 +604,45 @@ let%expect_test "Very big tensor" =
││      │axis 5                                   │axis 5                                   │axis 5│axis 5                                   │axis 5                                   ││
│├──────┼─────────────────────────────────────────┼─────────────────────────────────────────┼──────┼─────────────────────────────────────────┼─────────────────────────────────────────┤│
││0 @ 1 │ 0.00     1.00     ...  7.00     8.00    │ 9.00     1.00e+1  ...  1.60e+1  1.70e+1 │ ...  │ 5.40e+1  5.50e+1  ...  6.10e+1  6.20e+1 │ 6.30e+1  6.40e+1  ...  7.00e+1  7.10e+1 ││
-    ││axis 2│ 5.04e+2  5.05e+2  ...  5.11e+2  5.12e+2 │ 5.13e+2  5.14e+2  ...  5.20e+2  5.21e+2 │      │ 5.58e+2  5.59e+2  ...  5.65e+2  5.66e+2 │ 5.67e+2  5.68e+2  ...  5.74e+2  5.75e+2 ││
+    ││axis 2│ 5.04e+2  5.04e+2  ...  5.12e+2  5.12e+2 │ 5.12e+2  5.12e+2  ...  5.20e+2  5.20e+2 │      │ 5.60e+2  5.60e+2  ...  5.64e+2  5.68e+2 │ 5.68e+2  5.68e+2  ...  5.76e+2  5.76e+2 ││
││      │ ...      ...      ...  ...      ...     │ ...      ...      ...  ...      ...     │      │ ...      ...      ...  ...      ...     │ ...      ...      ...  ...      ...     ││
-    ││      │ 4.53e+3  4.53e+3  ...  4.54e+3  4.54e+3 │ 4.54e+3  4.54e+3  ...  4.55e+3  4.55e+3 │      │ 4.59e+3  4.59e+3  ...  4.59e+3  4.59e+3 │ 4.59e+3  4.60e+3  ...  4.60e+3  4.60e+3 ││
-    ││      │ 5.04e+3  5.04e+3  ...  5.04e+3  5.04e+3 │ 5.04e+3  5.05e+3  ...  5.05e+3  5.05e+3 │      │ 5.09e+3  5.09e+3  ...  5.10e+3  5.10e+3 │ 5.10e+3  5.10e+3  ...  5.11e+3  5.11e+3 ││
+    ││      │ 4.54e+3  4.54e+3  ...  4.54e+3  4.54e+3 │ 4.54e+3  4.54e+3  ...  4.54e+3  4.54e+3 │      │ 4.57e+3  4.57e+3  ...  4.60e+3  4.60e+3 │ 4.60e+3  4.60e+3  ...  4.60e+3  4.60e+3 ││
+    ││      │ 5.05e+3  5.05e+3  ...  5.05e+3  5.05e+3 │ 5.05e+3  5.05e+3  ...  5.05e+3  5.05e+3 │      │ 5.08e+3  5.08e+3  ...  5.08e+3  5.08e+3 │ 5.08e+3  5.12e+3  ...  5.12e+3  5.12e+3 ││
│├──────┼─────────────────────────────────────────┼─────────────────────────────────────────┼──────┼─────────────────────────────────────────┼─────────────────────────────────────────┤│
-    ││1 @ 1 │ 5.54e+3  5.54e+3  ...  5.55e+3  5.55e+3 │ 5.55e+3  5.55e+3  ...  5.56e+3  5.56e+3 │ ...  │ 5.59e+3  5.59e+3  ...  5.60e+3  5.60e+3 │ 5.60e+3  5.60e+3  ...  5.61e+3  5.61e+3 ││
-    ││axis 2│ 6.04e+3  6.04e+3  ...  6.05e+3  6.05e+3 │ 6.05e+3  6.05e+3  ...  6.06e+3  6.06e+3 │      │ 6.10e+3  6.10e+3  ...  6.10e+3  6.11e+3 │ 6.11e+3  6.11e+3  ...  6.11e+3  6.11e+3 ││
+    ││1 @ 1 │ 5.53e+3  5.53e+3  ...  5.53e+3  5.56e+3 │ 5.56e+3  5.56e+3  ...  5.56e+3  5.56e+3 │ ...  │ 5.60e+3  5.60e+3  ...  5.60e+3  5.60e+3 │ 5.60e+3  5.60e+3  ...  5.60e+3  5.60e+3 ││
+    ││axis 2│ 6.04e+3  6.04e+3  ...  6.04e+3  6.04e+3 │ 6.04e+3  6.04e+3  ...  6.08e+3  6.08e+3 │      │ 6.11e+3  6.11e+3  ...  6.11e+3  6.11e+3 │ 6.11e+3  6.11e+3  ...  6.11e+3  6.11e+3 ││
││      │ ...      ...      ...  ...      ...     │ ...      ...      ...  ...      ...     │      │ ...      ...      ...  ...      ...     │ ...      ...      ...  ...      ...     ││
-    ││      │ 1.00e+4  1.00e+4  ...  1.00e+4  1.00e+4 │ 1.00e+4  1.00e+4  ...  1.00e+4  1.00e+4 │      │ 1.01e+4  1.01e+4  ...  1.01e+4  1.01e+4 │ 1.01e+4  1.01e+4  ...  1.01e+4  1.01e+4 ││
-    ││      │ 1.05e+4  1.05e+4  ...  1.05e+4  1.05e+4 │ 1.05e+4  1.05e+4  ...  1.06e+4  1.06e+4 │      │ 1.06e+4  1.06e+4  ...  1.06e+4  1.06e+4 │ 1.06e+4  1.06e+4  ...  1.06e+4  1.06e+4 ││
+    ││      │ 1.01e+4  1.01e+4  ...  1.01e+4  1.01e+4 │ 1.01e+4  1.01e+4  ...  1.01e+4  1.01e+4 │      │ 1.01e+4  1.01e+4  ...  1.01e+4  1.01e+4 │ 1.01e+4  1.01e+4  ...  1.01e+4  1.01e+4 ││
+    ││      │ 1.05e+4  1.05e+4  ...  1.05e+4  1.06e+4 │ 1.06e+4  1.06e+4  ...  1.06e+4  1.06e+4 │      │ 1.06e+4  1.06e+4  ...  1.06e+4  1.06e+4 │ 1.06e+4  1.06e+4  ...  1.06e+4  1.06e+4 ││
│├──────┼─────────────────────────────────────────┼─────────────────────────────────────────┼──────┼─────────────────────────────────────────┼─────────────────────────────────────────┤│
││~~~~~ │ ...                                     │ ...                                     │ ...  │ ...                                     │ ...                                     ││
││axis 2│                                         │                                         │      │                                         │                                         ││
│├──────┼─────────────────────────────────────────┼─────────────────────────────────────────┼──────┼─────────────────────────────────────────┼─────────────────────────────────────────┤│
-    ││8 @ 1 │ 4.43e+4  4.43e+4  ...  4.43e+4  4.43e+4 │ 4.43e+4  4.43e+4  ...  4.43e+4  4.43e+4 │ ...  │ 4.44e+4  4.44e+4  ...  4.44e+4  4.44e+4 │ 4.44e+4  4.44e+4  ...  4.44e+4  4.44e+4 ││
-    ││axis 2│ 4.48e+4  4.48e+4  ...  4.48e+4  4.48e+4 │ 4.48e+4  4.48e+4  ...  4.48e+4  4.48e+4 │      │ 4.49e+4  4.49e+4  ...  4.49e+4  4.49e+4 │ 4.49e+4  4.49e+4  ...  4.49e+4  4.49e+4 ││
+    ││8 @ 1 │ 4.42e+4  4.42e+4  ...  4.42e+4  4.42e+4 │ 4.42e+4  4.42e+4  ...  4.42e+4  4.42e+4 │ ...  │ 4.42e+4  4.42e+4  ...  4.42e+4  4.42e+4 │ 4.42e+4  4.45e+4  ...  4.45e+4  4.45e+4 ││
+    ││axis 2│ 4.48e+4  4.48e+4  ...  4.48e+4  4.48e+4 │ 4.48e+4  4.48e+4  ...  4.48e+4  4.48e+4 │      │ 4.48e+4  4.48e+4  ...  4.48e+4  4.48e+4 │ 4.48e+4  4.48e+4  ...  4.48e+4  4.48e+4 ││
││      │ ...      ...      ...  ...      ...     │ ...      ...      ...  ...      ...     │      │ ...      ...      ...  ...      ...     │ ...      ...      ...  ...      ...     ││
-    ││      │ 4.88e+4  4.88e+4  ...  4.88e+4  4.88e+4 │ 4.88e+4  4.88e+4  ...  4.89e+4  4.89e+4 │      │ 4.89e+4  4.89e+4  ...  4.89e+4  4.89e+4 │ 4.89e+4  4.89e+4  ...  4.89e+4  4.89e+4 ││
-    ││      │ 4.93e+4  4.93e+4  ...  4.93e+4  4.94e+4 │ 4.94e+4  4.94e+4  ...  4.94e+4  4.94e+4 │      │ 4.94e+4  4.94e+4  ...  4.94e+4  4.94e+4 │ 4.94e+4  4.94e+4  ...  4.94e+4  4.94e+4 ││
+    ││      │ 4.88e+4  4.88e+4  ...  4.88e+4  4.88e+4 │ 4.88e+4  4.88e+4  ...  4.88e+4  4.88e+4 │      │ 4.88e+4  4.88e+4  ...  4.88e+4  4.88e+4 │ 4.88e+4  4.88e+4  ...  4.88e+4  4.88e+4 ││
+    ││      │ 4.94e+4  4.94e+4  ...  4.94e+4  4.94e+4 │ 4.94e+4  4.94e+4  ...  4.94e+4  4.94e+4 │      │ 4.94e+4  4.94e+4  ...  4.94e+4  4.94e+4 │ 4.94e+4  4.94e+4  ...  4.94e+4  4.94e+4 ││
│├──────┼─────────────────────────────────────────┼─────────────────────────────────────────┼──────┼─────────────────────────────────────────┼─────────────────────────────────────────┤│
-    ││9 @ 1 │ 4.98e+4  4.98e+4  ...  4.99e+4  4.99e+4 │ 4.99e+4  4.99e+4  ...  4.99e+4  4.99e+4 │ ...  │ 4.99e+4  4.99e+4  ...  4.99e+4  4.99e+4 │ 4.99e+4  4.99e+4  ...  4.99e+4  4.99e+4 ││
+    ││9 @ 1 │ 4.99e+4  4.99e+4  ...  4.99e+4  4.99e+4 │ 4.99e+4  4.99e+4  ...  4.99e+4  4.99e+4 │ ...  │ 4.99e+4  4.99e+4  ...  4.99e+4  4.99e+4 │ 4.99e+4  4.99e+4  ...  4.99e+4  4.99e+4 ││
││axis 2│ 5.04e+4  5.04e+4  ...  5.04e+4  5.04e+4 │ 5.04e+4  5.04e+4  ...  5.04e+4  5.04e+4 │      │ 5.04e+4  5.04e+4  ...  5.04e+4  5.04e+4 │ 5.04e+4  5.04e+4  ...  5.04e+4  5.04e+4 ││
││      │ ...      ...      ...  ...      ...     │ ...      ...      ...  ...      ...     │      │ ...      ...      ...  ...      ...     │ ...      ...      ...  ...      ...     ││
-    ││      │ 5.44e+4  5.44e+4  ...  5.44e+4  5.44e+4 │ 5.44e+4  5.44e+4  ...  5.44e+4  5.44e+4 │      │ 5.44e+4  5.44e+4  ...  5.44e+4  5.44e+4 │ 5.44e+4  5.44e+4  ...  5.45e+4  5.45e+4 ││
-    ││      │ 5.49e+4  5.49e+4  ...  5.49e+4  5.49e+4 │ 5.49e+4  5.49e+4  ...  5.49e+4  5.49e+4 │      │ 5.49e+4  5.49e+4  ...  5.49e+4  5.49e+4 │ 5.49e+4  5.50e+4  ...  5.50e+4  5.50e+4 ││
+    ││      │ 5.45e+4  5.45e+4  ...  5.45e+4  5.45e+4 │ 5.45e+4  5.45e+4  ...  5.45e+4  5.45e+4 │      │ 5.45e+4  5.45e+4  ...  5.45e+4  5.45e+4 │ 5.45e+4  5.45e+4  ...  5.45e+4  5.45e+4 ││
+    ││      │ 5.50e+4  5.50e+4  ...  5.50e+4  5.50e+4 │ 5.50e+4  5.50e+4  ...  5.50e+4  5.50e+4 │      │ 5.50e+4  5.50e+4  ...  5.50e+4  5.50e+4 │ 5.50e+4  5.50e+4  ...  5.50e+4  5.50e+4 ││
│└──────┴─────────────────────────────────────────┴─────────────────────────────────────────┴──────┴─────────────────────────────────────────┴─────────────────────────────────────────┘│
├───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┤
│┌──────┬─────────────────────────────────────────┬─────────────────────────────────────────┬──────┬─────────────────────────────────────────┬─────────────────────────────────────────┐│
││1 @ 0 │0 @ 4                                    │1 @ 4                                    │~~~~~ │6 @ 4                                    │7 @ 4                                    ││
││      │axis 5                                   │axis 5                                   │axis 5│axis 5                                   │axis 5                                   ││
│├──────┼─────────────────────────────────────────┼─────────────────────────────────────────┼──────┼─────────────────────────────────────────┼─────────────────────────────────────────┤│
-    ││0 @ 1 │ 5.54e+4  5.54e+4  ...  5.54e+4  5.54e+4 │ 5.54e+4  5.54e+4  ...  5.54e+4  5.54e+4 │ ...  │ 5.54e+4  5.54e+4  ...  5.55e+4  5.55e+4 │ 5.55e+4  5.55e+4  ...  5.55e+4  5.55e+4 ││
-    ││axis 2│ 5.59e+4  5.59e+4  ...  5.59e+4  5.59e+4 │ 5.59e+4  5.59e+4  ...  5.59e+4  5.59e+4 │      │ 5.59e+4  5.59e+4  ...  5.60e+4  5.60e+4 │ 5.60e+4  5.60e+4  ...  5.60e+4  5.60e+4 ││
+    ││0 @ 1 │ 5.55e+4  5.55e+4  ...  5.55e+4  5.55e+4 │ 5.55e+4  5.55e+4  ...  5.55e+4  5.55e+4 │ ...  │ 5.55e+4  5.55e+4  ...  5.55e+4  5.55e+4 │ 5.55e+4  5.55e+4  ...  5.55e+4  5.55e+4 ││
+    ││axis 2│ 5.60e+4  5.60e+4  ...  5.60e+4  5.60e+4 │ 5.60e+4  5.60e+4  ...  5.60e+4  5.60e+4 │      │ 5.60e+4  5.60e+4  ...  5.60e+4  5.60e+4 │ 5.60e+4  5.60e+4  ...  5.60e+4  5.60e+4 ││
││      │ ...      ...      ...  ...      ...     │ ...      ...      ...  ...      ...     │      │ ...      ...      ...  ...      ...     │ ...      ...      ...  ...      ...     ││
-    ││      │ 5.99e+4  5.99e+4  ...  5.99e+4  5.99e+4 │ 5.99e+4  5.99e+4  ...  5.99e+4  5.99e+4 │      │ 6.00e+4  6.00e+4  ...  6.00e+4  6.00e+4 │ 6.00e+4  6.00e+4  ...  6.00e+4  6.00e+4 ││
-    ││      │ 6.04e+4  6.04e+4  ...  6.04e+4  6.04e+4 │ 6.04e+4  6.04e+4  ...  6.04e+4  6.04e+4 │      │ 6.05e+4  6.05e+4  ...  6.05e+4  6.05e+4 │ 6.05e+4  6.05e+4  ...  6.05e+4  6.05e+4 ││
+    ││      │ 5.99e+4  5.99e+4  ...  5.99e+4  5.99e+4 │ 5.99e+4  5.99e+4  ...  5.99e+4  5.99e+4 │      │ 5.99e+4  5.99e+4  ...  6.01e+4  6.01e+4 │ 6.01e+4  6.01e+4  ...  6.01e+4  6.01e+4 ││
+    ││      │ 6.04e+4  6.04e+4  ...  6.04e+4  6.04e+4 │ 6.04e+4  6.04e+4  ...  6.04e+4  6.04e+4 │      │ 6.04e+4  6.04e+4  ...  6.04e+4  6.04e+4 │ 6.04e+4  6.04e+4  ...  6.06e+4  6.06e+4 ││
│├──────┼─────────────────────────────────────────┼─────────────────────────────────────────┼──────┼─────────────────────────────────────────┼─────────────────────────────────────────┤│
-    ││1 @ 1 │ 6.09e+4  6.09e+4  ...  6.09e+4  6.09e+4 │ 6.09e+4  6.09e+4  ...  6.10e+4  6.10e+4 │ ...  │ 6.10e+4  6.10e+4  ...  6.10e+4  6.10e+4 │ 6.10e+4  6.10e+4  ...  6.10e+4  6.10e+4 ││
-    ││axis 2│ 6.14e+4  6.14e+4  ...  6.14e+4  6.14e+4 │ 6.14e+4  6.14e+4  ...  6.15e+4  6.15e+4 │      │ 6.15e+4  6.15e+4  ...  6.15e+4  6.15e+4 │ 6.15e+4  6.15e+4  ...  6.15e+4  6.15e+4 ││
+    ││1 @ 1 │ 6.09e+4  6.09e+4  ...  6.09e+4  6.09e+4 │ 6.09e+4  6.09e+4  ...  6.09e+4  6.09e+4 │ ...  │ 6.09e+4  6.09e+4  ...  6.09e+4  6.09e+4 │ 6.09e+4  6.09e+4  ...  6.09e+4  6.09e+4 ││
+    ││axis 2│ 6.14e+4  6.14e+4  ...  6.14e+4  6.14e+4 │ 6.14e+4  6.14e+4  ...  6.14e+4  6.14e+4 │      │ 6.14e+4  6.14e+4  ...  6.14e+4  6.14e+4 │ 6.14e+4  6.14e+4  ...  6.14e+4  6.14e+4 ││
││      │ ...      ...      ...  ...      ...     │ ...      ...      ...  ...      ...     │      │ ...      ...      ...  ...      ...     │ ...      ...      ...  ...      ...     ││
││      │ 6.55e+4  6.55e+4  ...  6.55e+4  6.55e+4 │ 6.55e+4  6.55e+4  ...  6.55e+4  6.55e+4 │      │ 6.55e+4  6.55e+4  ...  6.55e+4  6.55e+4 │ 6.55e+4  6.55e+4  ...  6.55e+4  6.55e+4 ││
││      │ 6.60e+4  6.60e+4  ...  6.60e+4  6.60e+4 │ 6.60e+4  6.60e+4  ...  6.60e+4  6.60e+4 │      │ 6.60e+4  6.60e+4  ...  6.60e+4  6.60e+4 │ 6.60e+4  6.60e+4  ...  6.60e+4  6.60e+4 ││
@@ -650,7 +650,7 @@ let%expect_test "Very big tensor" =
││~~~~~ │ ...                                     │ ...                                     │ ...  │ ...                                     │ ...                                     ││
││axis 2│                                         │                                         │      │                                         │                                         ││
│├──────┼─────────────────────────────────────────┼─────────────────────────────────────────┼──────┼─────────────────────────────────────────┼─────────────────────────────────────────┤│
-    ││8 @ 1 │ 9.97e+4  9.97e+4  ...  9.97e+4  9.98e+4 │ 9.98e+4  9.98e+4  ...  9.98e+4  9.98e+4 │ ...  │ 9.98e+4  9.98e+4  ...  9.98e+4  9.98e+4 │ 9.98e+4  9.98e+4  ...  9.98e+4  9.98e+4 ││
+    ││8 @ 1 │ 9.98e+4  9.98e+4  ...  9.98e+4  9.98e+4 │ 9.98e+4  9.98e+4  ...  9.98e+4  9.98e+4 │ ...  │ 9.98e+4  9.98e+4  ...  9.98e+4  9.98e+4 │ 9.98e+4  9.98e+4  ...  9.98e+4  9.98e+4 ││
││axis 2│ 1.00e+5  1.00e+5  ...  1.00e+5  1.00e+5 │ 1.00e+5  1.00e+5  ...  1.00e+5  1.00e+5 │      │ 1.00e+5  1.00e+5  ...  1.00e+5  1.00e+5 │ 1.00e+5  1.00e+5  ...  1.00e+5  1.00e+5 ││
││      │ ...      ...      ...  ...      ...     │ ...      ...      ...  ...      ...     │      │ ...      ...      ...  ...      ...     │ ...      ...      ...  ...      ...     ││
││      │ 1.04e+5  1.04e+5  ...  1.04e+5  1.04e+5 │ 1.04e+5  1.04e+5  ...  1.04e+5  1.04e+5 │      │ 1.04e+5  1.04e+5  ...  1.04e+5  1.04e+5 │ 1.04e+5  1.04e+5  ...  1.04e+5  1.04e+5 ││
@@ -659,7 +659,7 @@ let%expect_test "Very big tensor" =
││9 @ 1 │ 1.05e+5  1.05e+5  ...  1.05e+5  1.05e+5 │ 1.05e+5  1.05e+5  ...  1.05e+5  1.05e+5 │ ...  │ 1.05e+5  1.05e+5  ...  1.05e+5  1.05e+5 │ 1.05e+5  1.05e+5  ...  1.05e+5  1.05e+5 ││
││axis 2│ 1.05e+5  1.05e+5  ...  1.05e+5  1.05e+5 │ 1.05e+5  1.05e+5  ...  1.05e+5  1.05e+5 │      │ 1.05e+5  1.05e+5  ...  1.05e+5  1.05e+5 │ 1.05e+5  1.05e+5  ...  1.05e+5  1.05e+5 ││
││      │ ...      ...      ...  ...      ...     │ ...      ...      ...  ...      ...     │      │ ...      ...      ...  ...      ...     │ ...      ...      ...  ...      ...     ││
-    ││      │ 1.09e+5  1.09e+5  ...  1.09e+5  1.09e+5 │ 1.09e+5  1.09e+5  ...  1.09e+5  1.09e+5 │      │ 1.09e+5  1.09e+5  ...  1.09e+5  1.09e+5 │ 1.09e+5  1.09e+5  ...  1.09e+5  1.09e+5 ││
+    ││      │ 1.10e+5  1.10e+5  ...  1.10e+5  1.10e+5 │ 1.10e+5  1.10e+5  ...  1.10e+5  1.10e+5 │      │ 1.10e+5  1.10e+5  ...  1.10e+5  1.10e+5 │ 1.10e+5  1.10e+5  ...  1.10e+5  1.10e+5 ││
││      │ 1.10e+5  1.10e+5  ...  1.10e+5  1.10e+5 │ 1.10e+5  1.10e+5  ...  1.10e+5  1.10e+5 │      │ 1.10e+5  1.10e+5  ...  1.10e+5  1.10e+5 │ 1.10e+5  1.10e+5  ...  1.10e+5  1.10e+5 ││
│└──────┴─────────────────────────────────────────┴─────────────────────────────────────────┴──────┴─────────────────────────────────────────┴─────────────────────────────────────────┘│
├───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┤
@@ -669,14 +669,14 @@ let%expect_test "Very big tensor" =
││4 @ 0 │0 @ 4                                    │1 @ 4                                    │~~~~~ │6 @ 4                                    │7 @ 4                                    ││
││      │axis 5                                   │axis 5                                   │axis 5│axis 5                                   │axis 5                                   ││
│├──────┼─────────────────────────────────────────┼─────────────────────────────────────────┼──────┼─────────────────────────────────────────┼─────────────────────────────────────────┤│
-    ││0 @ 1 │ 2.21e+5  2.21e+5  ...  2.21e+5  2.21e+5 │ 2.21e+5  2.21e+5  ...  2.21e+5  2.21e+5 │ ...  │ 2.21e+5  2.21e+5  ...  2.21e+5  2.21e+5 │ 2.21e+5  2.21e+5  ...  2.21e+5  2.21e+5 ││
+    ││0 @ 1 │ 2.22e+5  2.22e+5  ...  2.22e+5  2.22e+5 │ 2.22e+5  2.22e+5  ...  2.22e+5  2.22e+5 │ ...  │ 2.22e+5  2.22e+5  ...  2.22e+5  2.22e+5 │ 2.22e+5  2.22e+5  ...  2.22e+5  2.22e+5 ││
││axis 2│ 2.22e+5  2.22e+5  ...  2.22e+5  2.22e+5 │ 2.22e+5  2.22e+5  ...  2.22e+5  2.22e+5 │      │ 2.22e+5  2.22e+5  ...  2.22e+5  2.22e+5 │ 2.22e+5  2.22e+5  ...  2.22e+5  2.22e+5 ││
││      │ ...      ...      ...  ...      ...     │ ...      ...      ...  ...      ...     │      │ ...      ...      ...  ...      ...     │ ...      ...      ...  ...      ...     ││
││      │ 2.26e+5  2.26e+5  ...  2.26e+5  2.26e+5 │ 2.26e+5  2.26e+5  ...  2.26e+5  2.26e+5 │      │ 2.26e+5  2.26e+5  ...  2.26e+5  2.26e+5 │ 2.26e+5  2.26e+5  ...  2.26e+5  2.26e+5 ││
-    ││      │ 2.26e+5  2.26e+5  ...  2.26e+5  2.26e+5 │ 2.26e+5  2.26e+5  ...  2.26e+5  2.26e+5 │      │ 2.26e+5  2.26e+5  ...  2.26e+5  2.26e+5 │ 2.26e+5  2.26e+5  ...  2.26e+5  2.26e+5 ││
+││      │ 2.26e+5  2.26e+5  ...  2.26e+5  2.26e+5 │ 2.26e+5  2.26e+5  ...  2.27e+5  2.27e+5 │      │ 2.27e+5  2.27e+5  ...  2.27e+5  2.27e+5 │ 2.27e+5  2.27e+5  ...  2.27e+5  2.27e+5 ││
│├──────┼─────────────────────────────────────────┼─────────────────────────────────────────┼──────┼─────────────────────────────────────────┼─────────────────────────────────────────┤│
││1 @ 1 │ 2.27e+5  2.27e+5  ...  2.27e+5  2.27e+5 │ 2.27e+5  2.27e+5  ...  2.27e+5  2.27e+5 │ ...  │ 2.27e+5  2.27e+5  ...  2.27e+5  2.27e+5 │ 2.27e+5  2.27e+5  ...  2.27e+5  2.27e+5 ││
-    ││axis 2│ 2.27e+5  2.27e+5  ...  2.27e+5  2.27e+5 │ 2.27e+5  2.27e+5  ...  2.27e+5  2.27e+5 │      │ 2.27e+5  2.27e+5  ...  2.27e+5  2.27e+5 │ 2.27e+5  2.27e+5  ...  2.27e+5  2.27e+5 ││
+    ││axis 2│ 2.27e+5  2.27e+5  ...  2.27e+5  2.27e+5 │ 2.27e+5  2.27e+5  ...  2.27e+5  2.27e+5 │      │ 2.28e+5  2.28e+5  ...  2.28e+5  2.28e+5 │ 2.28e+5  2.28e+5  ...  2.28e+5  2.28e+5 ││
││      │ ...      ...      ...  ...      ...     │ ...      ...      ...  ...      ...     │      │ ...      ...      ...  ...      ...     │ ...      ...      ...  ...      ...     ││
││      │ 2.31e+5  2.31e+5  ...  2.31e+5  2.31e+5 │ 2.31e+5  2.31e+5  ...  2.31e+5  2.31e+5 │      │ 2.31e+5  2.31e+5  ...  2.31e+5  2.31e+5 │ 2.31e+5  2.31e+5  ...  2.31e+5  2.31e+5 ││
││      │ 2.32e+5  2.32e+5  ...  2.32e+5  2.32e+5 │ 2.32e+5  2.32e+5  ...  2.32e+5  2.32e+5 │      │ 2.32e+5  2.32e+5  ...  2.32e+5  2.32e+5 │ 2.32e+5  2.32e+5  ...  2.32e+5  2.32e+5 ││
@@ -688,9 +688,9 @@ let%expect_test "Very big tensor" =
││axis 2│ 2.66e+5  2.66e+5  ...  2.66e+5  2.66e+5 │ 2.66e+5  2.66e+5  ...  2.66e+5  2.66e+5 │      │ 2.66e+5  2.66e+5  ...  2.66e+5  2.66e+5 │ 2.66e+5  2.66e+5  ...  2.66e+5  2.66e+5 ││
││      │ ...      ...      ...  ...      ...     │ ...      ...      ...  ...      ...     │      │ ...      ...      ...  ...      ...     │ ...      ...      ...  ...      ...     ││
││      │ 2.70e+5  2.70e+5  ...  2.70e+5  2.70e+5 │ 2.70e+5  2.70e+5  ...  2.70e+5  2.70e+5 │      │ 2.70e+5  2.70e+5  ...  2.70e+5  2.70e+5 │ 2.70e+5  2.70e+5  ...  2.70e+5  2.70e+5 ││
-    ││      │ 2.71e+5  2.71e+5  ...  2.71e+5  2.71e+5 │ 2.71e+5  2.71e+5  ...  2.71e+5  2.71e+5 │      │ 2.71e+5  2.71e+5  ...  2.71e+5  2.71e+5 │ 2.71e+5  2.71e+5  ...  2.71e+5  2.71e+5 ││
+    ││      │ 2.70e+5  2.70e+5  ...  2.70e+5  2.70e+5 │ 2.70e+5  2.70e+5  ...  2.70e+5  2.70e+5 │      │ 2.70e+5  2.70e+5  ...  2.70e+5  2.70e+5 │ 2.70e+5  2.70e+5  ...  2.70e+5  2.70e+5 ││
│├──────┼─────────────────────────────────────────┼─────────────────────────────────────────┼──────┼─────────────────────────────────────────┼─────────────────────────────────────────┤│
-    ││9 @ 1 │ 2.71e+5  2.71e+5  ...  2.71e+5  2.71e+5 │ 2.71e+5  2.71e+5  ...  2.71e+5  2.71e+5 │ ...  │ 2.71e+5  2.71e+5  ...  2.71e+5  2.71e+5 │ 2.71e+5  2.71e+5  ...  2.71e+5  2.71e+5 ││
+    ││9 @ 1 │ 2.72e+5  2.72e+5  ...  2.72e+5  2.72e+5 │ 2.72e+5  2.72e+5  ...  2.72e+5  2.72e+5 │ ...  │ 2.72e+5  2.72e+5  ...  2.72e+5  2.72e+5 │ 2.72e+5  2.72e+5  ...  2.72e+5  2.72e+5 ││
││axis 2│ 2.72e+5  2.72e+5  ...  2.72e+5  2.72e+5 │ 2.72e+5  2.72e+5  ...  2.72e+5  2.72e+5 │      │ 2.72e+5  2.72e+5  ...  2.72e+5  2.72e+5 │ 2.72e+5  2.72e+5  ...  2.72e+5  2.72e+5 ││
││      │ ...      ...      ...  ...      ...     │ ...      ...      ...  ...      ...     │      │ ...      ...      ...  ...      ...     │ ...      ...      ...  ...      ...     ││
││      │ 2.76e+5  2.76e+5  ...  2.76e+5  2.76e+5 │ 2.76e+5  2.76e+5  ...  2.76e+5  2.76e+5 │      │ 2.76e+5  2.76e+5  ...  2.76e+5  2.76e+5 │ 2.76e+5  2.76e+5  ...  2.76e+5  2.76e+5 ││
@@ -701,32 +701,32 @@ let%expect_test "Very big tensor" =
││5 @ 0 │0 @ 4                                    │1 @ 4                                    │~~~~~ │6 @ 4                                    │7 @ 4                                    ││
││      │axis 5                                   │axis 5                                   │axis 5│axis 5                                   │axis 5                                   ││
│├──────┼─────────────────────────────────────────┼─────────────────────────────────────────┼──────┼─────────────────────────────────────────┼─────────────────────────────────────────┤│
-    ││0 @ 1 │ 2.77e+5  2.77e+5  ...  2.77e+5  2.77e+5 │ 2.77e+5  2.77e+5  ...  2.77e+5  2.77e+5 │ ...  │ 2.77e+5  2.77e+5  ...  2.77e+5  2.77e+5 │ 2.77e+5  2.77e+5  ...  2.77e+5  2.77e+5 ││
-    ││axis 2│ 2.77e+5  2.77e+5  ...  2.77e+5  2.77e+5 │ 2.77e+5  2.77e+5  ...  2.77e+5  2.77e+5 │      │ 2.77e+5  2.77e+5  ...  2.77e+5  2.77e+5 │ 2.77e+5  2.77e+5  ...  2.77e+5  2.77e+5 ││
+    ││0 @ 1 │ 2.76e+5  2.76e+5  ...  2.76e+5  2.76e+5 │ 2.76e+5  2.76e+5  ...  2.76e+5  2.76e+5 │ ...  │ 2.76e+5  2.76e+5  ...  2.76e+5  2.76e+5 │ 2.76e+5  2.76e+5  ...  2.76e+5  2.76e+5 ││
+    ││axis 2│ 2.78e+5  2.78e+5  ...  2.78e+5  2.78e+5 │ 2.78e+5  2.78e+5  ...  2.78e+5  2.78e+5 │      │ 2.78e+5  2.78e+5  ...  2.78e+5  2.78e+5 │ 2.78e+5  2.78e+5  ...  2.78e+5  2.78e+5 ││
││      │ ...      ...      ...  ...      ...     │ ...      ...      ...  ...      ...     │      │ ...      ...      ...  ...      ...     │ ...      ...      ...  ...      ...     ││
-    ││      │ 2.81e+5  2.81e+5  ...  2.81e+5  2.81e+5 │ 2.81e+5  2.81e+5  ...  2.81e+5  2.81e+5 │      │ 2.81e+5  2.81e+5  ...  2.81e+5  2.81e+5 │ 2.81e+5  2.81e+5  ...  2.81e+5  2.81e+5 ││
+    ││      │ 2.82e+5  2.82e+5  ...  2.82e+5  2.82e+5 │ 2.82e+5  2.82e+5  ...  2.82e+5  2.82e+5 │      │ 2.82e+5  2.82e+5  ...  2.82e+5  2.82e+5 │ 2.82e+5  2.82e+5  ...  2.82e+5  2.82e+5 ││
││      │ 2.82e+5  2.82e+5  ...  2.82e+5  2.82e+5 │ 2.82e+5  2.82e+5  ...  2.82e+5  2.82e+5 │      │ 2.82e+5  2.82e+5  ...  2.82e+5  2.82e+5 │ 2.82e+5  2.82e+5  ...  2.82e+5  2.82e+5 ││
│├──────┼─────────────────────────────────────────┼─────────────────────────────────────────┼──────┼─────────────────────────────────────────┼─────────────────────────────────────────┤│
││1 @ 1 │ 2.82e+5  2.82e+5  ...  2.82e+5  2.82e+5 │ 2.82e+5  2.82e+5  ...  2.82e+5  2.82e+5 │ ...  │ 2.82e+5  2.82e+5  ...  2.82e+5  2.82e+5 │ 2.82e+5  2.82e+5  ...  2.82e+5  2.82e+5 ││
-    ││axis 2│ 2.83e+5  2.83e+5  ...  2.83e+5  2.83e+5 │ 2.83e+5  2.83e+5  ...  2.83e+5  2.83e+5 │      │ 2.83e+5  2.83e+5  ...  2.83e+5  2.83e+5 │ 2.83e+5  2.83e+5  ...  2.83e+5  2.83e+5 ││
+    ││axis 2│ 2.82e+5  2.82e+5  ...  2.82e+5  2.82e+5 │ 2.82e+5  2.82e+5  ...  2.82e+5  2.82e+5 │      │ 2.82e+5  2.82e+5  ...  2.82e+5  2.82e+5 │ 2.82e+5  2.82e+5  ...  2.82e+5  2.82e+5 ││
││      │ ...      ...      ...  ...      ...     │ ...      ...      ...  ...      ...     │      │ ...      ...      ...  ...      ...     │ ...      ...      ...  ...      ...     ││
-    ││      │ 2.87e+5  2.87e+5  ...  2.87e+5  2.87e+5 │ 2.87e+5  2.87e+5  ...  2.87e+5  2.87e+5 │      │ 2.87e+5  2.87e+5  ...  2.87e+5  2.87e+5 │ 2.87e+5  2.87e+5  ...  2.87e+5  2.87e+5 ││
-    ││      │ 2.87e+5  2.87e+5  ...  2.87e+5  2.87e+5 │ 2.87e+5  2.87e+5  ...  2.87e+5  2.87e+5 │      │ 2.87e+5  2.87e+5  ...  2.87e+5  2.87e+5 │ 2.87e+5  2.87e+5  ...  2.87e+5  2.87e+5 ││
+    ││      │ 2.86e+5  2.86e+5  ...  2.86e+5  2.86e+5 │ 2.86e+5  2.86e+5  ...  2.86e+5  2.86e+5 │      │ 2.86e+5  2.86e+5  ...  2.86e+5  2.86e+5 │ 2.86e+5  2.86e+5  ...  2.86e+5  2.86e+5 ││
+    ││      │ 2.88e+5  2.88e+5  ...  2.88e+5  2.88e+5 │ 2.88e+5  2.88e+5  ...  2.88e+5  2.88e+5 │      │ 2.88e+5  2.88e+5  ...  2.88e+5  2.88e+5 │ 2.88e+5  2.88e+5  ...  2.88e+5  2.88e+5 ││
│├──────┼─────────────────────────────────────────┼─────────────────────────────────────────┼──────┼─────────────────────────────────────────┼─────────────────────────────────────────┤│
││~~~~~ │ ...                                     │ ...                                     │ ...  │ ...                                     │ ...                                     ││
││axis 2│                                         │                                         │      │                                         │                                         ││
│├──────┼─────────────────────────────────────────┼─────────────────────────────────────────┼──────┼─────────────────────────────────────────┼─────────────────────────────────────────┤│
││8 @ 1 │ 3.21e+5  3.21e+5  ...  3.21e+5  3.21e+5 │ 3.21e+5  3.21e+5  ...  3.21e+5  3.21e+5 │ ...  │ 3.21e+5  3.21e+5  ...  3.21e+5  3.21e+5 │ 3.21e+5  3.21e+5  ...  3.21e+5  3.21e+5 ││
-    ││axis 2│ 3.22e+5  3.22e+5  ...  3.22e+5  3.22e+5 │ 3.22e+5  3.22e+5  ...  3.22e+5  3.22e+5 │      │ 3.22e+5  3.22e+5  ...  3.22e+5  3.22e+5 │ 3.22e+5  3.22e+5  ...  3.22e+5  3.22e+5 ││
+    ││axis 2│ 3.21e+5  3.21e+5  ...  3.21e+5  3.21e+5 │ 3.21e+5  3.21e+5  ...  3.21e+5  3.21e+5 │      │ 3.21e+5  3.21e+5  ...  3.21e+5  3.21e+5 │ 3.21e+5  3.21e+5  ...  3.21e+5  3.21e+5 ││
││      │ ...      ...      ...  ...      ...     │ ...      ...      ...  ...      ...     │      │ ...      ...      ...  ...      ...     │ ...      ...      ...  ...      ...     ││
-    ││      │ 3.26e+5  3.26e+5  ...  3.26e+5  3.26e+5 │ 3.26e+5  3.26e+5  ...  3.26e+5  3.26e+5 │      │ 3.26e+5  3.26e+5  ...  3.26e+5  3.26e+5 │ 3.26e+5  3.26e+5  ...  3.26e+5  3.26e+5 ││
-    ││      │ 3.26e+5  3.26e+5  ...  3.26e+5  3.26e+5 │ 3.26e+5  3.26e+5  ...  3.26e+5  3.26e+5 │      │ 3.26e+5  3.26e+5  ...  3.26e+5  3.26e+5 │ 3.26e+5  3.26e+5  ...  3.26e+5  3.26e+5 ││
+    ││      │ 3.25e+5  3.25e+5  ...  3.25e+5  3.25e+5 │ 3.25e+5  3.25e+5  ...  3.25e+5  3.25e+5 │      │ 3.25e+5  3.25e+5  ...  3.25e+5  3.25e+5 │ 3.25e+5  3.25e+5  ...  3.25e+5  3.25e+5 ││
+    ││      │ 3.25e+5  3.25e+5  ...  3.25e+5  3.25e+5 │ 3.25e+5  3.25e+5  ...  3.25e+5  3.25e+5 │      │ 3.25e+5  3.25e+5  ...  3.25e+5  3.25e+5 │ 3.25e+5  3.27e+5  ...  3.27e+5  3.27e+5 ││
│├──────┼─────────────────────────────────────────┼─────────────────────────────────────────┼──────┼─────────────────────────────────────────┼─────────────────────────────────────────┤│
││9 @ 1 │ 3.27e+5  3.27e+5  ...  3.27e+5  3.27e+5 │ 3.27e+5  3.27e+5  ...  3.27e+5  3.27e+5 │ ...  │ 3.27e+5  3.27e+5  ...  3.27e+5  3.27e+5 │ 3.27e+5  3.27e+5  ...  3.27e+5  3.27e+5 ││
││axis 2│ 3.27e+5  3.27e+5  ...  3.27e+5  3.27e+5 │ 3.27e+5  3.27e+5  ...  3.27e+5  3.27e+5 │      │ 3.27e+5  3.27e+5  ...  3.27e+5  3.27e+5 │ 3.27e+5  3.27e+5  ...  3.27e+5  3.27e+5 ││
││      │ ...      ...      ...  ...      ...     │ ...      ...      ...  ...      ...     │      │ ...      ...      ...  ...      ...     │ ...      ...      ...  ...      ...     ││
││      │ 3.31e+5  3.31e+5  ...  3.31e+5  3.31e+5 │ 3.31e+5  3.31e+5  ...  3.31e+5  3.31e+5 │      │ 3.31e+5  3.31e+5  ...  3.31e+5  3.31e+5 │ 3.31e+5  3.31e+5  ...  3.31e+5  3.31e+5 ││
-    ││      │ 3.32e+5  3.32e+5  ...  3.32e+5  3.32e+5 │ 3.32e+5  3.32e+5  ...  3.32e+5  3.32e+5 │      │ 3.32e+5  3.32e+5  ...  3.32e+5  3.32e+5 │ 3.32e+5  3.32e+5  ...  3.32e+5  3.32e+5 ││
+    ││      │ 3.31e+5  3.31e+5  ...  3.31e+5  3.31e+5 │ 3.31e+5  3.31e+5  ...  3.31e+5  3.31e+5 │      │ 3.31e+5  3.31e+5  ...  3.31e+5  3.31e+5 │ 3.31e+5  3.31e+5  ...  3.31e+5  3.31e+5 ││
│└──────┴─────────────────────────────────────────┴─────────────────────────────────────────┴──────┴─────────────────────────────────────────┴─────────────────────────────────────────┘│
└───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘
|}];
@@ -734,17 +734,17 @@ let%expect_test "Very big tensor" =
(* Disable line wrapping for viewing the output. In VSCode: `View: Toggle Word Wrap`. *)
[%expect
{|
-    ┌───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
-    │[6]: -_hoo shape 0:6|1:10,2:11                                                                                                                                                         │
-    │┌──────┬─────────────────────────────────────────┬─────────────────────────────────────────┬──────┬─────────────────────────────────────────┬─────────────────────────────────────────┐│
-    ││      │0 @ 0                                    │1 @ 0                                    │~~~~~ │4 @ 0                                    │5 @ 0                                    ││
-    ││      │axis 2                                   │axis 2                                   │axis 2│axis 2                                   │axis 2                                   ││
-    │├──────┼─────────────────────────────────────────┼─────────────────────────────────────────┼──────┼─────────────────────────────────────────┼─────────────────────────────────────────┤│
-    ││axis 1│ 2.53e+5  7.61e+5  ...  4.82e+6  5.33e+6 │ 5.61e+7  5.66e+7  ...  6.07e+7  6.12e+7 │ ...  │ 2.23e+8  2.24e+8  ...  2.28e+8  2.28e+8 │ 2.79e+8  2.80e+8  ...  2.84e+8  2.84e+8 ││
-    ││      │ 5.84e+6  6.34e+6  ...  1.04e+7  1.09e+7 │ 6.17e+7  6.22e+7  ...  6.62e+7  6.68e+7 │      │ 2.29e+8  2.29e+8  ...  2.33e+8  2.34e+8 │ 2.85e+8  2.85e+8  ...  2.89e+8  2.90e+8 ││
-    ││      │ ...      ...      ...  ...      ...     │ ...      ...      ...  ...      ...     │      │ ...      ...      ...  ...      ...     │ ...      ...      ...  ...      ...     ││
-    ││      │ 4.49e+7  4.54e+7  ...  4.95e+7  5.00e+7 │ 1.00e+8  1.01e+8  ...  1.05e+8  1.05e+8 │      │ 2.68e+8  2.69e+8  ...  2.73e+8  2.73e+8 │ 3.24e+8  3.24e+8  ...  3.28e+8  3.29e+8 ││
-    ││      │ 5.05e+7  5.10e+7  ...  5.51e+7  5.56e+7 │ 1.06e+8  1.06e+8  ...  1.11e+8  1.11e+8 │      │ 2.74e+8  2.74e+8  ...  2.78e+8  2.79e+8 │ 3.29e+8  3.30e+8  ...  3.34e+8  3.35e+8 ││
-    │└──────┴─────────────────────────────────────────┴─────────────────────────────────────────┴──────┴─────────────────────────────────────────┴─────────────────────────────────────────┘│
-    └───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘
+    ┌───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
+    │[6]: -_hoo shape 0:6|1:10,2:11  includes NaN                                                                                                                                                                           │
+    │┌──────┬─────────────────────────────────────────────────┬─────────────────────────────────────────────────┬──────┬─────────────────────────────────────────────────┬─────────────────────────────────────────────────┐│
+    ││      │0 @ 0                                            │1 @ 0                                            │~~~~~ │4 @ 0                                            │5 @ 0                                            ││
+    ││      │axis 2                                           │axis 2                                           │axis 2│axis 2                                           │axis 2                                           ││
+    │├──────┼─────────────────────────────────────────────────┼─────────────────────────────────────────────────┼──────┼─────────────────────────────────────────────────┼─────────────────────────────────────────────────┤│
+    ││axis 1│ 1.50e-1    -2.72e-10  ...  -1.11e+37  2.28e-3   │ -3.26e+29  -1.60e+34  ...  3.15e-6    1.44e-1   │ ...  │ -4.14e+18  -7.13e+18  ...  -1.28e+28  -2.43e+30 │ -3.02e-26  -7.94e-25  ...  -4.53e-20  -4.53e-20 ││
+    ││      │ 4.86e+34   -8.94e-6   ...  1.71e-17   7.90e+1   │ 6.78e+3    3.10e+8    ...  -4.71e-33  -1.02e-30 │      │ -2.97e+30  -4.96e+32  ...  6.20e-36   1.86e-35  │ -4.53e-20  -1.38e-19  ...  -3.66e-15  -5.89e-13 ││
+    ││      │ ...        ...        ...  ...        ...       │ ...        ...        ...  ...        ...       │      │ ...        ...        ...  ...        ...       │ ...        ...        ...  ...        ...       ││
+    ││      │ 8.44e+3    4.11e+8    ...  -7.54e-32  -3.33e-27 │ -1.68e-28  -3.63e-26  ...  -1.67e-7   -3.57e-5  │      │ nan        nan        ...  -2.73e-34  -6.35e-33 │ -5.01e+25  -5.01e+25  ...  -2.65e+30  -3.11e+32 ││
+    ││      │ -1.62e-22  -7.15e-18  ...  -1.52e+20  -7.40e+24 │ -7.44e-3   -1.67      ...  -7.71e+18  -1.66e+21 │      │ -6.39e-32  -6.39e-32  ...  -3.38e-27  -3.38e-27 │ -6.23e+32  -6.23e+32  ...  -3.55e+37  -3.55e+37 ││
+    │└──────┴─────────────────────────────────────────────────┴─────────────────────────────────────────────────┴──────┴─────────────────────────────────────────────────┴─────────────────────────────────────────────────┘│
+    └───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘
|}]
File "test/einsum_trivia.ml", line 1, characters 0-0:
/usr/bin/git --no-pager diff --no-index --color=always -u _build/default/test/einsum_trivia.ml _build/.sandbox/e26d0877ba33fd0688597a2b8ab996e1/default/test/einsum_trivia.ml.corrected
diff --git a/_build/default/test/einsum_trivia.ml b/_build/.sandbox/e26d0877ba33fd0688597a2b8ab996e1/default/test/einsum_trivia.ml.corrected
index 162aa57..b55f9f3 100644
--- a/_build/default/test/einsum_trivia.ml
+++ b/_build/.sandbox/e26d0877ba33fd0688597a2b8ab996e1/default/test/einsum_trivia.ml.corrected
@@ -79,87 +79,87 @@ let%expect_test "einsum1 permute axes" =
││1 @ 2 │ 1.40e+2  1.41e+2  1.42e+2  1.43e+2  1.44e+2 │ 1.45e+2  1.46e+2  1.47e+2  1.48e+2  1.49e+2 │ 1.50e+2  1.51e+2  1.52e+2  1.53e+2  1.54e+2 │ 1.55e+2  1.56e+2  1.57e+2  1.58e+2  1.59e+2 ││
││axis 3│ 1.60e+2  1.61e+2  1.62e+2  1.63e+2  1.64e+2 │ 1.65e+2  1.66e+2  1.67e+2  1.68e+2  1.69e+2 │ 1.70e+2  1.71e+2  1.72e+2  1.73e+2  1.74e+2 │ 1.75e+2  1.76e+2  1.77e+2  1.78e+2  1.79e+2 ││
││      │ ...      ...      ...      ...      ...     │ ...      ...      ...      ...      ...     │ ...      ...      ...      ...      ...     │ ...      ...      ...      ...      ...     ││
-    ││      │ 2.40e+2  2.41e+2  2.42e+2  2.43e+2  2.44e+2 │ 2.45e+2  2.46e+2  2.47e+2  2.48e+2  2.49e+2 │ 2.50e+2  2.51e+2  2.52e+2  2.53e+2  2.54e+2 │ 2.55e+2  2.56e+2  2.57e+2  2.58e+2  2.59e+2 ││
-    ││      │ 2.60e+2  2.61e+2  2.62e+2  2.63e+2  2.64e+2 │ 2.65e+2  2.66e+2  2.67e+2  2.68e+2  2.69e+2 │ 2.70e+2  2.71e+2  2.72e+2  2.73e+2  2.74e+2 │ 2.75e+2  2.76e+2  2.77e+2  2.78e+2  2.79e+2 ││
+    ││      │ 2.40e+2  2.41e+2  2.42e+2  2.43e+2  2.44e+2 │ 2.45e+2  2.46e+2  2.47e+2  2.48e+2  2.49e+2 │ 2.50e+2  2.51e+2  2.52e+2  2.53e+2  2.54e+2 │ 2.55e+2  2.56e+2  2.56e+2  2.58e+2  2.60e+2 ││
+    ││      │ 2.60e+2  2.60e+2  2.62e+2  2.64e+2  2.64e+2 │ 2.64e+2  2.66e+2  2.68e+2  2.68e+2  2.68e+2 │ 2.70e+2  2.72e+2  2.72e+2  2.72e+2  2.74e+2 │ 2.76e+2  2.76e+2  2.76e+2  2.78e+2  2.80e+2 ││
│├──────┼─────────────────────────────────────────────┼─────────────────────────────────────────────┼─────────────────────────────────────────────┼─────────────────────────────────────────────┤│
││~~~~~ │ ...                                         │ ...                                         │ ...                                         │ ...                                         ││
││axis 3│                                             │                                             │                                             │                                             ││
│├──────┼─────────────────────────────────────────────┼─────────────────────────────────────────────┼─────────────────────────────────────────────┼─────────────────────────────────────────────┤│
-    ││4 @ 2 │ 5.60e+2  5.61e+2  5.62e+2  5.63e+2  5.64e+2 │ 5.65e+2  5.66e+2  5.67e+2  5.68e+2  5.69e+2 │ 5.70e+2  5.71e+2  5.72e+2  5.73e+2  5.74e+2 │ 5.75e+2  5.76e+2  5.77e+2  5.78e+2  5.79e+2 ││
-    ││axis 3│ 5.80e+2  5.81e+2  5.82e+2  5.83e+2  5.84e+2 │ 5.85e+2  5.86e+2  5.87e+2  5.88e+2  5.89e+2 │ 5.90e+2  5.91e+2  5.92e+2  5.93e+2  5.94e+2 │ 5.95e+2  5.96e+2  5.97e+2  5.98e+2  5.99e+2 ││
+    ││4 @ 2 │ 5.60e+2  5.60e+2  5.60e+2  5.64e+2  5.64e+2 │ 5.64e+2  5.68e+2  5.68e+2  5.68e+2  5.68e+2 │ 5.68e+2  5.72e+2  5.72e+2  5.72e+2  5.76e+2 │ 5.76e+2  5.76e+2  5.76e+2  5.76e+2  5.80e+2 ││
+    ││axis 3│ 5.80e+2  5.80e+2  5.84e+2  5.84e+2  5.84e+2 │ 5.84e+2  5.84e+2  5.88e+2  5.88e+2  5.88e+2 │ 5.92e+2  5.92e+2  5.92e+2  5.92e+2  5.92e+2 │ 5.96e+2  5.96e+2  5.96e+2  6.00e+2  6.00e+2 ││
││      │ ...      ...      ...      ...      ...     │ ...      ...      ...      ...      ...     │ ...      ...      ...      ...      ...     │ ...      ...      ...      ...      ...     ││
-    ││      │ 6.60e+2  6.61e+2  6.62e+2  6.63e+2  6.64e+2 │ 6.65e+2  6.66e+2  6.67e+2  6.68e+2  6.69e+2 │ 6.70e+2  6.71e+2  6.72e+2  6.73e+2  6.74e+2 │ 6.75e+2  6.76e+2  6.77e+2  6.78e+2  6.79e+2 ││
-    ││      │ 6.80e+2  6.81e+2  6.82e+2  6.83e+2  6.84e+2 │ 6.85e+2  6.86e+2  6.87e+2  6.88e+2  6.89e+2 │ 6.90e+2  6.91e+2  6.92e+2  6.93e+2  6.94e+2 │ 6.95e+2  6.96e+2  6.97e+2  6.98e+2  6.99e+2 ││
+    ││      │ 6.60e+2  6.60e+2  6.64e+2  6.64e+2  6.64e+2 │ 6.64e+2  6.64e+2  6.68e+2  6.68e+2  6.68e+2 │ 6.72e+2  6.72e+2  6.72e+2  6.72e+2  6.72e+2 │ 6.76e+2  6.76e+2  6.76e+2  6.80e+2  6.80e+2 ││
+    ││      │ 6.80e+2  6.80e+2  6.80e+2  6.84e+2  6.84e+2 │ 6.84e+2  6.88e+2  6.88e+2  6.88e+2  6.88e+2 │ 6.88e+2  6.92e+2  6.92e+2  6.92e+2  6.96e+2 │ 6.96e+2  6.96e+2  6.96e+2  6.96e+2  7.00e+2 ││
│├──────┼─────────────────────────────────────────────┼─────────────────────────────────────────────┼─────────────────────────────────────────────┼─────────────────────────────────────────────┤│
-    ││5 @ 2 │ 7.00e+2  7.01e+2  7.02e+2  7.03e+2  7.04e+2 │ 7.05e+2  7.06e+2  7.07e+2  7.08e+2  7.09e+2 │ 7.10e+2  7.11e+2  7.12e+2  7.13e+2  7.14e+2 │ 7.15e+2  7.16e+2  7.17e+2  7.18e+2  7.19e+2 ││
-    ││axis 3│ 7.20e+2  7.21e+2  7.22e+2  7.23e+2  7.24e+2 │ 7.25e+2  7.26e+2  7.27e+2  7.28e+2  7.29e+2 │ 7.30e+2  7.31e+2  7.32e+2  7.33e+2  7.34e+2 │ 7.35e+2  7.36e+2  7.37e+2  7.38e+2  7.39e+2 ││
+    ││5 @ 2 │ 7.00e+2  7.00e+2  7.04e+2  7.04e+2  7.04e+2 │ 7.04e+2  7.04e+2  7.08e+2  7.08e+2  7.08e+2 │ 7.12e+2  7.12e+2  7.12e+2  7.12e+2  7.12e+2 │ 7.16e+2  7.16e+2  7.16e+2  7.20e+2  7.20e+2 ││
+    ││axis 3│ 7.20e+2  7.20e+2  7.20e+2  7.24e+2  7.24e+2 │ 7.24e+2  7.28e+2  7.28e+2  7.28e+2  7.28e+2 │ 7.28e+2  7.32e+2  7.32e+2  7.32e+2  7.36e+2 │ 7.36e+2  7.36e+2  7.36e+2  7.36e+2  7.40e+2 ││
││      │ ...      ...      ...      ...      ...     │ ...      ...      ...      ...      ...     │ ...      ...      ...      ...      ...     │ ...      ...      ...      ...      ...     ││
-    ││      │ 8.00e+2  8.01e+2  8.02e+2  8.03e+2  8.04e+2 │ 8.05e+2  8.06e+2  8.07e+2  8.08e+2  8.09e+2 │ 8.10e+2  8.11e+2  8.12e+2  8.13e+2  8.14e+2 │ 8.15e+2  8.16e+2  8.17e+2  8.18e+2  8.19e+2 ││
-    ││      │ 8.20e+2  8.21e+2  8.22e+2  8.23e+2  8.24e+2 │ 8.25e+2  8.26e+2  8.27e+2  8.28e+2  8.29e+2 │ 8.30e+2  8.31e+2  8.32e+2  8.33e+2  8.34e+2 │ 8.35e+2  8.36e+2  8.37e+2  8.38e+2  8.39e+2 ││
+    ││      │ 8.00e+2  8.00e+2  8.00e+2  8.04e+2  8.04e+2 │ 8.04e+2  8.08e+2  8.08e+2  8.08e+2  8.08e+2 │ 8.08e+2  8.12e+2  8.12e+2  8.12e+2  8.16e+2 │ 8.16e+2  8.16e+2  8.16e+2  8.16e+2  8.20e+2 ││
+    ││      │ 8.20e+2  8.20e+2  8.24e+2  8.24e+2  8.24e+2 │ 8.24e+2  8.24e+2  8.28e+2  8.28e+2  8.28e+2 │ 8.32e+2  8.32e+2  8.32e+2  8.32e+2  8.32e+2 │ 8.36e+2  8.36e+2  8.36e+2  8.40e+2  8.40e+2 ││
│└──────┴─────────────────────────────────────────────┴─────────────────────────────────────────────┴─────────────────────────────────────────────┴─────────────────────────────────────────────┘│
├────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┤
│┌──────┬─────────────────────────────────────────────┬─────────────────────────────────────────────┬─────────────────────────────────────────────┬─────────────────────────────────────────────┐│
││1 @ 1 │0 @ 4                                        │1 @ 4                                        │2 @ 4                                        │3 @ 4                                        ││
││      │axis 5                                       │axis 5                                       │axis 5                                       │axis 5                                       ││
│├──────┼─────────────────────────────────────────────┼─────────────────────────────────────────────┼─────────────────────────────────────────────┼─────────────────────────────────────────────┤│
-    ││0 @ 2 │ 8.40e+2  8.41e+2  8.42e+2  8.43e+2  8.44e+2 │ 8.45e+2  8.46e+2  8.47e+2  8.48e+2  8.49e+2 │ 8.50e+2  8.51e+2  8.52e+2  8.53e+2  8.54e+2 │ 8.55e+2  8.56e+2  8.57e+2  8.58e+2  8.59e+2 ││
-    ││axis 3│ 8.60e+2  8.61e+2  8.62e+2  8.63e+2  8.64e+2 │ 8.65e+2  8.66e+2  8.67e+2  8.68e+2  8.69e+2 │ 8.70e+2  8.71e+2  8.72e+2  8.73e+2  8.74e+2 │ 8.75e+2  8.76e+2  8.77e+2  8.78e+2  8.79e+2 ││
+    ││0 @ 2 │ 8.40e+2  8.40e+2  8.40e+2  8.44e+2  8.44e+2 │ 8.44e+2  8.48e+2  8.48e+2  8.48e+2  8.48e+2 │ 8.48e+2  8.52e+2  8.52e+2  8.52e+2  8.56e+2 │ 8.56e+2  8.56e+2  8.56e+2  8.56e+2  8.60e+2 ││
+    ││axis 3│ 8.60e+2  8.60e+2  8.64e+2  8.64e+2  8.64e+2 │ 8.64e+2  8.64e+2  8.68e+2  8.68e+2  8.68e+2 │ 8.72e+2  8.72e+2  8.72e+2  8.72e+2  8.72e+2 │ 8.76e+2  8.76e+2  8.76e+2  8.80e+2  8.80e+2 ││
││      │ ...      ...      ...      ...      ...     │ ...      ...      ...      ...      ...     │ ...      ...      ...      ...      ...     │ ...      ...      ...      ...      ...     ││
-    ││      │ 9.40e+2  9.41e+2  9.42e+2  9.43e+2  9.44e+2 │ 9.45e+2  9.46e+2  9.47e+2  9.48e+2  9.49e+2 │ 9.50e+2  9.51e+2  9.52e+2  9.53e+2  9.54e+2 │ 9.55e+2  9.56e+2  9.57e+2  9.58e+2  9.59e+2 ││
-    ││      │ 9.60e+2  9.61e+2  9.62e+2  9.63e+2  9.64e+2 │ 9.65e+2  9.66e+2  9.67e+2  9.68e+2  9.69e+2 │ 9.70e+2  9.71e+2  9.72e+2  9.73e+2  9.74e+2 │ 9.75e+2  9.76e+2  9.77e+2  9.78e+2  9.79e+2 ││
+    ││      │ 9.40e+2  9.40e+2  9.44e+2  9.44e+2  9.44e+2 │ 9.44e+2  9.44e+2  9.48e+2  9.48e+2  9.48e+2 │ 9.52e+2  9.52e+2  9.52e+2  9.52e+2  9.52e+2 │ 9.56e+2  9.56e+2  9.56e+2  9.60e+2  9.60e+2 ││
+    ││      │ 9.60e+2  9.60e+2  9.60e+2  9.64e+2  9.64e+2 │ 9.64e+2  9.68e+2  9.68e+2  9.68e+2  9.68e+2 │ 9.68e+2  9.72e+2  9.72e+2  9.72e+2  9.76e+2 │ 9.76e+2  9.76e+2  9.76e+2  9.76e+2  9.80e+2 ││
│├──────┼─────────────────────────────────────────────┼─────────────────────────────────────────────┼─────────────────────────────────────────────┼─────────────────────────────────────────────┤│
-    ││1 @ 2 │ 9.80e+2  9.81e+2  9.82e+2  9.83e+2  9.84e+2 │ 9.85e+2  9.86e+2  9.87e+2  9.88e+2  9.89e+2 │ 9.90e+2  9.91e+2  9.92e+2  9.93e+2  9.94e+2 │ 9.95e+2  9.96e+2  9.97e+2  9.98e+2  9.99e+2 ││
-    ││axis 3│ 1.00e+3  1.00e+3  1.00e+3  1.00e+3  1.00e+3 │ 1.00e+3  1.00e+3  1.00e+3  1.00e+3  1.00e+3 │ 1.01e+3  1.01e+3  1.01e+3  1.01e+3  1.01e+3 │ 1.01e+3  1.01e+3  1.01e+3  1.01e+3  1.01e+3 ││
+    ││1 @ 2 │ 9.80e+2  9.80e+2  9.84e+2  9.84e+2  9.84e+2 │ 9.84e+2  9.84e+2  9.88e+2  9.88e+2  9.88e+2 │ 9.92e+2  9.92e+2  9.92e+2  9.92e+2  9.92e+2 │ 9.96e+2  9.96e+2  9.96e+2  1.00e+3  1.00e+3 ││
+    ││axis 3│ 1.00e+3  1.00e+3  1.00e+3  1.00e+3  1.00e+3 │ 1.00e+3  1.00e+3  1.00e+3  1.00e+3  1.00e+3 │ 1.00e+3  1.01e+3  1.01e+3  1.01e+3  1.01e+3 │ 1.01e+3  1.01e+3  1.01e+3  1.01e+3  1.02e+3 ││
││      │ ...      ...      ...      ...      ...     │ ...      ...      ...      ...      ...     │ ...      ...      ...      ...      ...     │ ...      ...      ...      ...      ...     ││
-    ││      │ 1.08e+3  1.08e+3  1.08e+3  1.08e+3  1.08e+3 │ 1.08e+3  1.08e+3  1.08e+3  1.08e+3  1.08e+3 │ 1.09e+3  1.09e+3  1.09e+3  1.09e+3  1.09e+3 │ 1.09e+3  1.09e+3  1.09e+3  1.09e+3  1.09e+3 ││
-    ││      │ 1.10e+3  1.10e+3  1.10e+3  1.10e+3  1.10e+3 │ 1.10e+3  1.10e+3  1.10e+3  1.10e+3  1.10e+3 │ 1.11e+3  1.11e+3  1.11e+3  1.11e+3  1.11e+3 │ 1.11e+3  1.11e+3  1.11e+3  1.11e+3  1.11e+3 ││
+    ││      │ 1.08e+3  1.08e+3  1.08e+3  1.08e+3  1.08e+3 │ 1.08e+3  1.08e+3  1.08e+3  1.08e+3  1.08e+3 │ 1.08e+3  1.08e+3  1.08e+3  1.09e+3  1.09e+3 │ 1.09e+3  1.09e+3  1.09e+3  1.09e+3  1.09e+3 ││
+    ││      │ 1.10e+3  1.10e+3  1.10e+3  1.10e+3  1.10e+3 │ 1.10e+3  1.10e+3  1.10e+3  1.10e+3  1.11e+3 │ 1.11e+3  1.11e+3  1.11e+3  1.11e+3  1.11e+3 │ 1.11e+3  1.12e+3  1.12e+3  1.12e+3  1.12e+3 ││
│├──────┼─────────────────────────────────────────────┼─────────────────────────────────────────────┼─────────────────────────────────────────────┼─────────────────────────────────────────────┤│
││~~~~~ │ ...                                         │ ...                                         │ ...                                         │ ...                                         ││
││axis 3│                                             │                                             │                                             │                                             ││
│├──────┼─────────────────────────────────────────────┼─────────────────────────────────────────────┼─────────────────────────────────────────────┼─────────────────────────────────────────────┤│
-    ││4 @ 2 │ 1.40e+3  1.40e+3  1.40e+3  1.40e+3  1.40e+3 │ 1.40e+3  1.40e+3  1.40e+3  1.40e+3  1.40e+3 │ 1.41e+3  1.41e+3  1.41e+3  1.41e+3  1.41e+3 │ 1.41e+3  1.41e+3  1.41e+3  1.41e+3  1.41e+3 ││
-    ││axis 3│ 1.42e+3  1.42e+3  1.42e+3  1.42e+3  1.42e+3 │ 1.42e+3  1.42e+3  1.42e+3  1.42e+3  1.42e+3 │ 1.43e+3  1.43e+3  1.43e+3  1.43e+3  1.43e+3 │ 1.43e+3  1.43e+3  1.43e+3  1.43e+3  1.43e+3 ││
+    ││4 @ 2 │ 1.40e+3  1.40e+3  1.40e+3  1.40e+3  1.40e+3 │ 1.40e+3  1.40e+3  1.40e+3  1.40e+3  1.40e+3 │ 1.40e+3  1.40e+3  1.40e+3  1.41e+3  1.41e+3 │ 1.41e+3  1.41e+3  1.41e+3  1.41e+3  1.41e+3 ││
+    ││axis 3│ 1.42e+3  1.42e+3  1.42e+3  1.42e+3  1.42e+3 │ 1.42e+3  1.42e+3  1.42e+3  1.42e+3  1.43e+3 │ 1.43e+3  1.43e+3  1.43e+3  1.43e+3  1.43e+3 │ 1.43e+3  1.44e+3  1.44e+3  1.44e+3  1.44e+3 ││
││      │ ...      ...      ...      ...      ...     │ ...      ...      ...      ...      ...     │ ...      ...      ...      ...      ...     │ ...      ...      ...      ...      ...     ││
-    ││      │ 1.50e+3  1.50e+3  1.50e+3  1.50e+3  1.50e+3 │ 1.50e+3  1.50e+3  1.50e+3  1.50e+3  1.50e+3 │ 1.51e+3  1.51e+3  1.51e+3  1.51e+3  1.51e+3 │ 1.51e+3  1.51e+3  1.51e+3  1.51e+3  1.51e+3 ││
-    ││      │ 1.52e+3  1.52e+3  1.52e+3  1.52e+3  1.52e+3 │ 1.52e+3  1.52e+3  1.52e+3  1.52e+3  1.52e+3 │ 1.53e+3  1.53e+3  1.53e+3  1.53e+3  1.53e+3 │ 1.53e+3  1.53e+3  1.53e+3  1.53e+3  1.53e+3 ││
+    ││      │ 1.50e+3  1.50e+3  1.50e+3  1.50e+3  1.50e+3 │ 1.50e+3  1.50e+3  1.50e+3  1.50e+3  1.51e+3 │ 1.51e+3  1.51e+3  1.51e+3  1.51e+3  1.51e+3 │ 1.51e+3  1.52e+3  1.52e+3  1.52e+3  1.52e+3 ││
+    ││      │ 1.52e+3  1.52e+3  1.52e+3  1.52e+3  1.52e+3 │ 1.52e+3  1.52e+3  1.52e+3  1.52e+3  1.52e+3 │ 1.52e+3  1.52e+3  1.53e+3  1.53e+3  1.53e+3 │ 1.53e+3  1.53e+3  1.53e+3  1.53e+3  1.53e+3 ││
│├──────┼─────────────────────────────────────────────┼─────────────────────────────────────────────┼─────────────────────────────────────────────┼─────────────────────────────────────────────┤│
-    ││5 @ 2 │ 1.54e+3  1.54e+3  1.54e+3  1.54e+3  1.54e+3 │ 1.54e+3  1.54e+3  1.54e+3  1.54e+3  1.54e+3 │ 1.55e+3  1.55e+3  1.55e+3  1.55e+3  1.55e+3 │ 1.55e+3  1.55e+3  1.55e+3  1.55e+3  1.55e+3 ││
-    ││axis 3│ 1.56e+3  1.56e+3  1.56e+3  1.56e+3  1.56e+3 │ 1.56e+3  1.56e+3  1.56e+3  1.56e+3  1.56e+3 │ 1.57e+3  1.57e+3  1.57e+3  1.57e+3  1.57e+3 │ 1.57e+3  1.57e+3  1.57e+3  1.57e+3  1.57e+3 ││
+    ││5 @ 2 │ 1.53e+3  1.54e+3  1.54e+3  1.54e+3  1.54e+3 │ 1.54e+3  1.54e+3  1.54e+3  1.55e+3  1.55e+3 │ 1.55e+3  1.55e+3  1.55e+3  1.55e+3  1.55e+3 │ 1.55e+3  1.55e+3  1.56e+3  1.56e+3  1.56e+3 ││
+    ││axis 3│ 1.56e+3  1.56e+3  1.56e+3  1.56e+3  1.56e+3 │ 1.56e+3  1.56e+3  1.56e+3  1.56e+3  1.56e+3 │ 1.56e+3  1.56e+3  1.56e+3  1.57e+3  1.57e+3 │ 1.57e+3  1.57e+3  1.57e+3  1.57e+3  1.57e+3 ││
││      │ ...      ...      ...      ...      ...     │ ...      ...      ...      ...      ...     │ ...      ...      ...      ...      ...     │ ...      ...      ...      ...      ...     ││
-    ││      │ 1.64e+3  1.64e+3  1.64e+3  1.64e+3  1.64e+3 │ 1.64e+3  1.64e+3  1.64e+3  1.64e+3  1.64e+3 │ 1.65e+3  1.65e+3  1.65e+3  1.65e+3  1.65e+3 │ 1.65e+3  1.65e+3  1.65e+3  1.65e+3  1.65e+3 ││
-    ││      │ 1.66e+3  1.66e+3  1.66e+3  1.66e+3  1.66e+3 │ 1.66e+3  1.66e+3  1.66e+3  1.66e+3  1.66e+3 │ 1.67e+3  1.67e+3  1.67e+3  1.67e+3  1.67e+3 │ 1.67e+3  1.67e+3  1.67e+3  1.67e+3  1.67e+3 ││
+    ││      │ 1.64e+3  1.64e+3  1.64e+3  1.64e+3  1.64e+3 │ 1.64e+3  1.64e+3  1.64e+3  1.64e+3  1.64e+3 │ 1.64e+3  1.64e+3  1.64e+3  1.65e+3  1.65e+3 │ 1.65e+3  1.65e+3  1.65e+3  1.65e+3  1.65e+3 ││
+    ││      │ 1.66e+3  1.66e+3  1.66e+3  1.66e+3  1.66e+3 │ 1.66e+3  1.66e+3  1.66e+3  1.66e+3  1.67e+3 │ 1.67e+3  1.67e+3  1.67e+3  1.67e+3  1.67e+3 │ 1.67e+3  1.68e+3  1.68e+3  1.68e+3  1.68e+3 ││
│└──────┴─────────────────────────────────────────────┴─────────────────────────────────────────────┴─────────────────────────────────────────────┴─────────────────────────────────────────────┘│
├────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┤
│┌──────┬─────────────────────────────────────────────┬─────────────────────────────────────────────┬─────────────────────────────────────────────┬─────────────────────────────────────────────┐│
││2 @ 1 │0 @ 4                                        │1 @ 4                                        │2 @ 4                                        │3 @ 4                                        ││
││      │axis 5                                       │axis 5                                       │axis 5                                       │axis 5                                       ││
│├──────┼─────────────────────────────────────────────┼─────────────────────────────────────────────┼─────────────────────────────────────────────┼─────────────────────────────────────────────┤│
-    ││0 @ 2 │ 1.68e+3  1.68e+3  1.68e+3  1.68e+3  1.68e+3 │ 1.68e+3  1.68e+3  1.68e+3  1.68e+3  1.68e+3 │ 1.69e+3  1.69e+3  1.69e+3  1.69e+3  1.69e+3 │ 1.69e+3  1.69e+3  1.69e+3  1.69e+3  1.69e+3 ││
-    ││axis 3│ 1.70e+3  1.70e+3  1.70e+3  1.70e+3  1.70e+3 │ 1.70e+3  1.70e+3  1.70e+3  1.70e+3  1.70e+3 │ 1.71e+3  1.71e+3  1.71e+3  1.71e+3  1.71e+3 │ 1.71e+3  1.71e+3  1.71e+3  1.71e+3  1.71e+3 ││
+    ││0 @ 2 │ 1.68e+3  1.68e+3  1.68e+3  1.68e+3  1.68e+3 │ 1.68e+3  1.68e+3  1.68e+3  1.68e+3  1.68e+3 │ 1.68e+3  1.68e+3  1.69e+3  1.69e+3  1.69e+3 │ 1.69e+3  1.69e+3  1.69e+3  1.69e+3  1.69e+3 ││
+    ││axis 3│ 1.69e+3  1.70e+3  1.70e+3  1.70e+3  1.70e+3 │ 1.70e+3  1.70e+3  1.70e+3  1.71e+3  1.71e+3 │ 1.71e+3  1.71e+3  1.71e+3  1.71e+3  1.71e+3 │ 1.71e+3  1.71e+3  1.72e+3  1.72e+3  1.72e+3 ││
││      │ ...      ...      ...      ...      ...     │ ...      ...      ...      ...      ...     │ ...      ...      ...      ...      ...     │ ...      ...      ...      ...      ...     ││
-    ││      │ 1.78e+3  1.78e+3  1.78e+3  1.78e+3  1.78e+3 │ 1.78e+3  1.78e+3  1.78e+3  1.78e+3  1.78e+3 │ 1.79e+3  1.79e+3  1.79e+3  1.79e+3  1.79e+3 │ 1.79e+3  1.79e+3  1.79e+3  1.79e+3  1.79e+3 ││
-    ││      │ 1.80e+3  1.80e+3  1.80e+3  1.80e+3  1.80e+3 │ 1.80e+3  1.80e+3  1.80e+3  1.80e+3  1.80e+3 │ 1.81e+3  1.81e+3  1.81e+3  1.81e+3  1.81e+3 │ 1.81e+3  1.81e+3  1.81e+3  1.81e+3  1.81e+3 ││
+    ││      │ 1.77e+3  1.78e+3  1.78e+3  1.78e+3  1.78e+3 │ 1.78e+3  1.78e+3  1.78e+3  1.79e+3  1.79e+3 │ 1.79e+3  1.79e+3  1.79e+3  1.79e+3  1.79e+3 │ 1.79e+3  1.79e+3  1.80e+3  1.80e+3  1.80e+3 ││
+    ││      │ 1.80e+3  1.80e+3  1.80e+3  1.80e+3  1.80e+3 │ 1.80e+3  1.80e+3  1.80e+3  1.80e+3  1.80e+3 │ 1.80e+3  1.80e+3  1.80e+3  1.81e+3  1.81e+3 │ 1.81e+3  1.81e+3  1.81e+3  1.81e+3  1.81e+3 ││
│├──────┼─────────────────────────────────────────────┼─────────────────────────────────────────────┼─────────────────────────────────────────────┼─────────────────────────────────────────────┤│
-    ││1 @ 2 │ 1.82e+3  1.82e+3  1.82e+3  1.82e+3  1.82e+3 │ 1.82e+3  1.82e+3  1.82e+3  1.82e+3  1.82e+3 │ 1.83e+3  1.83e+3  1.83e+3  1.83e+3  1.83e+3 │ 1.83e+3  1.83e+3  1.83e+3  1.83e+3  1.83e+3 ││
-    ││axis 3│ 1.84e+3  1.84e+3  1.84e+3  1.84e+3  1.84e+3 │ 1.84e+3  1.84e+3  1.84e+3  1.84e+3  1.84e+3 │ 1.85e+3  1.85e+3  1.85e+3  1.85e+3  1.85e+3 │ 1.85e+3  1.85e+3  1.85e+3  1.85e+3  1.85e+3 ││
+    ││1 @ 2 │ 1.82e+3  1.82e+3  1.82e+3  1.82e+3  1.82e+3 │ 1.82e+3  1.82e+3  1.82e+3  1.82e+3  1.83e+3 │ 1.83e+3  1.83e+3  1.83e+3  1.83e+3  1.83e+3 │ 1.83e+3  1.84e+3  1.84e+3  1.84e+3  1.84e+3 ││
+    ││axis 3│ 1.84e+3  1.84e+3  1.84e+3  1.84e+3  1.84e+3 │ 1.84e+3  1.84e+3  1.84e+3  1.84e+3  1.84e+3 │ 1.84e+3  1.84e+3  1.85e+3  1.85e+3  1.85e+3 │ 1.85e+3  1.85e+3  1.85e+3  1.85e+3  1.85e+3 ││
││      │ ...      ...      ...      ...      ...     │ ...      ...      ...      ...      ...     │ ...      ...      ...      ...      ...     │ ...      ...      ...      ...      ...     ││
-    ││      │ 1.92e+3  1.92e+3  1.92e+3  1.92e+3  1.92e+3 │ 1.92e+3  1.92e+3  1.92e+3  1.92e+3  1.92e+3 │ 1.93e+3  1.93e+3  1.93e+3  1.93e+3  1.93e+3 │ 1.93e+3  1.93e+3  1.93e+3  1.93e+3  1.93e+3 ││
-    ││      │ 1.94e+3  1.94e+3  1.94e+3  1.94e+3  1.94e+3 │ 1.94e+3  1.94e+3  1.94e+3  1.94e+3  1.94e+3 │ 1.95e+3  1.95e+3  1.95e+3  1.95e+3  1.95e+3 │ 1.95e+3  1.95e+3  1.95e+3  1.95e+3  1.95e+3 ││
+    ││      │ 1.92e+3  1.92e+3  1.92e+3  1.92e+3  1.92e+3 │ 1.92e+3  1.92e+3  1.92e+3  1.92e+3  1.92e+3 │ 1.92e+3  1.92e+3  1.93e+3  1.93e+3  1.93e+3 │ 1.93e+3  1.93e+3  1.93e+3  1.93e+3  1.93e+3 ││
+    ││      │ 1.93e+3  1.94e+3  1.94e+3  1.94e+3  1.94e+3 │ 1.94e+3  1.94e+3  1.94e+3  1.95e+3  1.95e+3 │ 1.95e+3  1.95e+3  1.95e+3  1.95e+3  1.95e+3 │ 1.95e+3  1.95e+3  1.96e+3  1.96e+3  1.96e+3 ││
│├──────┼─────────────────────────────────────────────┼─────────────────────────────────────────────┼─────────────────────────────────────────────┼─────────────────────────────────────────────┤│
││~~~~~ │ ...                                         │ ...                                         │ ...                                         │ ...                                         ││
││axis 3│                                             │                                             │                                             │                                             ││
│├──────┼─────────────────────────────────────────────┼─────────────────────────────────────────────┼─────────────────────────────────────────────┼─────────────────────────────────────────────┤│
-    ││4 @ 2 │ 2.24e+3  2.24e+3  2.24e+3  2.24e+3  2.24e+3 │ 2.24e+3  2.24e+3  2.24e+3  2.24e+3  2.24e+3 │ 2.25e+3  2.25e+3  2.25e+3  2.25e+3  2.25e+3 │ 2.25e+3  2.25e+3  2.25e+3  2.25e+3  2.25e+3 ││
-    ││axis 3│ 2.26e+3  2.26e+3  2.26e+3  2.26e+3  2.26e+3 │ 2.26e+3  2.26e+3  2.26e+3  2.26e+3  2.26e+3 │ 2.27e+3  2.27e+3  2.27e+3  2.27e+3  2.27e+3 │ 2.27e+3  2.27e+3  2.27e+3  2.27e+3  2.27e+3 ││
+    ││4 @ 2 │ 2.24e+3  2.24e+3  2.24e+3  2.24e+3  2.24e+3 │ 2.24e+3  2.24e+3  2.24e+3  2.24e+3  2.25e+3 │ 2.25e+3  2.25e+3  2.25e+3  2.25e+3  2.25e+3 │ 2.25e+3  2.25e+3  2.25e+3  2.25e+3  2.25e+3 ││
+    ││axis 3│ 2.25e+3  2.25e+3  2.25e+3  2.25e+3  2.27e+3 │ 2.27e+3  2.27e+3  2.27e+3  2.27e+3  2.27e+3 │ 2.27e+3  2.27e+3  2.27e+3  2.27e+3  2.27e+3 │ 2.27e+3  2.27e+3  2.27e+3  2.27e+3  2.27e+3 ││
││      │ ...      ...      ...      ...      ...     │ ...      ...      ...      ...      ...     │ ...      ...      ...      ...      ...     │ ...      ...      ...      ...      ...     ││
-    ││      │ 2.34e+3  2.34e+3  2.34e+3  2.34e+3  2.34e+3 │ 2.34e+3  2.34e+3  2.34e+3  2.34e+3  2.34e+3 │ 2.35e+3  2.35e+3  2.35e+3  2.35e+3  2.35e+3 │ 2.35e+3  2.35e+3  2.35e+3  2.35e+3  2.35e+3 ││
-    ││      │ 2.36e+3  2.36e+3  2.36e+3  2.36e+3  2.36e+3 │ 2.36e+3  2.36e+3  2.36e+3  2.36e+3  2.36e+3 │ 2.37e+3  2.37e+3  2.37e+3  2.37e+3  2.37e+3 │ 2.37e+3  2.37e+3  2.37e+3  2.37e+3  2.37e+3 ││
+    ││      │ 2.33e+3  2.33e+3  2.33e+3  2.33e+3  2.33e+3 │ 2.35e+3  2.35e+3  2.35e+3  2.35e+3  2.35e+3 │ 2.35e+3  2.35e+3  2.35e+3  2.35e+3  2.35e+3 │ 2.35e+3  2.35e+3  2.35e+3  2.35e+3  2.35e+3 ││
+    ││      │ 2.36e+3  2.36e+3  2.36e+3  2.36e+3  2.36e+3 │ 2.36e+3  2.36e+3  2.36e+3  2.36e+3  2.36e+3 │ 2.36e+3  2.36e+3  2.36e+3  2.36e+3  2.36e+3 │ 2.36e+3  2.36e+3  2.38e+3  2.38e+3  2.38e+3 ││
│├──────┼─────────────────────────────────────────────┼─────────────────────────────────────────────┼─────────────────────────────────────────────┼─────────────────────────────────────────────┤│
-    ││5 @ 2 │ 2.38e+3  2.38e+3  2.38e+3  2.38e+3  2.38e+3 │ 2.38e+3  2.38e+3  2.38e+3  2.38e+3  2.38e+3 │ 2.39e+3  2.39e+3  2.39e+3  2.39e+3  2.39e+3 │ 2.39e+3  2.39e+3  2.39e+3  2.39e+3  2.39e+3 ││
-    ││axis 3│ 2.40e+3  2.40e+3  2.40e+3  2.40e+3  2.40e+3 │ 2.40e+3  2.40e+3  2.40e+3  2.40e+3  2.40e+3 │ 2.41e+3  2.41e+3  2.41e+3  2.41e+3  2.41e+3 │ 2.41e+3  2.41e+3  2.41e+3  2.41e+3  2.41e+3 ││
+    ││5 @ 2 │ 2.38e+3  2.38e+3  2.38e+3  2.38e+3  2.38e+3 │ 2.38e+3  2.38e+3  2.38e+3  2.38e+3  2.38e+3 │ 2.38e+3  2.38e+3  2.40e+3  2.40e+3  2.40e+3 │ 2.40e+3  2.40e+3  2.40e+3  2.40e+3  2.40e+3 ││
+    ││axis 3│ 2.40e+3  2.40e+3  2.40e+3  2.40e+3  2.40e+3 │ 2.40e+3  2.40e+3  2.40e+3  2.40e+3  2.41e+3 │ 2.41e+3  2.41e+3  2.41e+3  2.41e+3  2.41e+3 │ 2.41e+3  2.41e+3  2.41e+3  2.41e+3  2.41e+3 ││
││      │ ...      ...      ...      ...      ...     │ ...      ...      ...      ...      ...     │ ...      ...      ...      ...      ...     │ ...      ...      ...      ...      ...     ││
-    ││      │ 2.48e+3  2.48e+3  2.48e+3  2.48e+3  2.48e+3 │ 2.48e+3  2.48e+3  2.48e+3  2.48e+3  2.48e+3 │ 2.49e+3  2.49e+3  2.49e+3  2.49e+3  2.49e+3 │ 2.49e+3  2.49e+3  2.49e+3  2.49e+3  2.49e+3 ││
-    ││      │ 2.50e+3  2.50e+3  2.50e+3  2.50e+3  2.50e+3 │ 2.50e+3  2.50e+3  2.50e+3  2.50e+3  2.50e+3 │ 2.51e+3  2.51e+3  2.51e+3  2.51e+3  2.51e+3 │ 2.51e+3  2.51e+3  2.51e+3  2.51e+3  2.51e+3 ││
+    ││      │ 2.48e+3  2.48e+3  2.48e+3  2.48e+3  2.48e+3 │ 2.48e+3  2.48e+3  2.48e+3  2.49e+3  2.49e+3 │ 2.49e+3  2.49e+3  2.49e+3  2.49e+3  2.49e+3 │ 2.49e+3  2.49e+3  2.49e+3  2.49e+3  2.49e+3 ││
+    ││      │ 2.49e+3  2.49e+3  2.49e+3  2.49e+3  2.49e+3 │ 2.51e+3  2.51e+3  2.51e+3  2.51e+3  2.51e+3 │ 2.51e+3  2.51e+3  2.51e+3  2.51e+3  2.51e+3 │ 2.51e+3  2.51e+3  2.51e+3  2.51e+3  2.51e+3 ││
│└──────┴─────────────────────────────────────────────┴─────────────────────────────────────────────┴─────────────────────────────────────────────┴─────────────────────────────────────────────┘│
└────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘
|}];
@@ -172,50 +172,50 @@ let%expect_test "einsum1 permute axes" =
││0 @ 1 │0 @ 4                                    │1 @ 4                                    ││
││      │axis 5                                   │axis 5                                   ││
│├──────┼─────────────────────────────────────────┼─────────────────────────────────────────┤│
-    ││0 @ 2 │ 0.00     1.40e+2  ...  5.60e+2  7.00e+2 │ 2.52e+3  2.66e+3  ...  3.08e+3  3.22e+3 ││
-    ││axis 3│ 8.40e+2  9.80e+2  ...  1.40e+3  1.54e+3 │ 3.36e+3  3.50e+3  ...  3.92e+3  4.06e+3 ││
-    ││      │ 1.68e+3  1.82e+3  ...  2.24e+3  2.38e+3 │ 4.20e+3  4.34e+3  ...  4.76e+3  4.90e+3 ││
+    ││0 @ 2 │ 0.00     1.40e+2  ...  5.60e+2  7.00e+2 │ 2.52e+3  2.65e+3  ...  3.07e+3  3.21e+3 ││
+    ││axis 3│ 8.40e+2  9.80e+2  ...  1.40e+3  1.53e+3 │ 3.36e+3  3.50e+3  ...  3.92e+3  4.06e+3 ││
+    ││      │ 1.68e+3  1.82e+3  ...  2.24e+3  2.38e+3 │ 4.19e+3  4.35e+3  ...  4.76e+3  4.89e+3 ││
│├──────┼─────────────────────────────────────────┼─────────────────────────────────────────┤│
-    ││1 @ 2 │ 1.00     1.41e+2  ...  5.61e+2  7.01e+2 │ 2.52e+3  2.66e+3  ...  3.08e+3  3.22e+3 ││
-    ││axis 3│ 8.41e+2  9.81e+2  ...  1.40e+3  1.54e+3 │ 3.36e+3  3.50e+3  ...  3.92e+3  4.06e+3 ││
-    ││      │ 1.68e+3  1.82e+3  ...  2.24e+3  2.38e+3 │ 4.20e+3  4.34e+3  ...  4.76e+3  4.90e+3 ││
+    ││1 @ 2 │ 1.00     1.41e+2  ...  5.60e+2  7.00e+2 │ 2.52e+3  2.65e+3  ...  3.08e+3  3.21e+3 ││
+    ││axis 3│ 8.40e+2  9.80e+2  ...  1.40e+3  1.54e+3 │ 3.36e+3  3.50e+3  ...  3.92e+3  4.06e+3 ││
+    ││      │ 1.68e+3  1.82e+3  ...  2.24e+3  2.38e+3 │ 4.19e+3  4.35e+3  ...  4.76e+3  4.89e+3 ││
│├──────┼─────────────────────────────────────────┼─────────────────────────────────────────┤│
-    ││2 @ 2 │ 2.00     1.42e+2  ...  5.62e+2  7.02e+2 │ 2.52e+3  2.66e+3  ...  3.08e+3  3.22e+3 ││
-    ││axis 3│ 8.42e+2  9.82e+2  ...  1.40e+3  1.54e+3 │ 3.36e+3  3.50e+3  ...  3.92e+3  4.06e+3 ││
-    ││      │ 1.68e+3  1.82e+3  ...  2.24e+3  2.38e+3 │ 4.20e+3  4.34e+3  ...  4.76e+3  4.90e+3 ││
+    ││2 @ 2 │ 2.00     1.42e+2  ...  5.60e+2  7.04e+2 │ 2.52e+3  2.65e+3  ...  3.08e+3  3.21e+3 ││
+    ││axis 3│ 8.40e+2  9.84e+2  ...  1.40e+3  1.54e+3 │ 3.36e+3  3.50e+3  ...  3.92e+3  4.06e+3 ││
+    ││      │ 1.68e+3  1.82e+3  ...  2.24e+3  2.38e+3 │ 4.19e+3  4.35e+3  ...  4.76e+3  4.89e+3 ││
│├──────┼─────────────────────────────────────────┼─────────────────────────────────────────┤│
-    ││3 @ 2 │ 3.00     1.43e+2  ...  5.63e+2  7.03e+2 │ 2.52e+3  2.66e+3  ...  3.08e+3  3.22e+3 ││
-    ││axis 3│ 8.43e+2  9.83e+2  ...  1.40e+3  1.54e+3 │ 3.36e+3  3.50e+3  ...  3.92e+3  4.06e+3 ││
-    ││      │ 1.68e+3  1.82e+3  ...  2.24e+3  2.38e+3 │ 4.20e+3  4.34e+3  ...  4.76e+3  4.90e+3 ││
+    ││3 @ 2 │ 3.00     1.43e+2  ...  5.64e+2  7.04e+2 │ 2.52e+3  2.65e+3  ...  3.08e+3  3.21e+3 ││
+    ││axis 3│ 8.44e+2  9.84e+2  ...  1.40e+3  1.54e+3 │ 3.36e+3  3.50e+3  ...  3.92e+3  4.06e+3 ││
+    ││      │ 1.68e+3  1.82e+3  ...  2.24e+3  2.38e+3 │ 4.19e+3  4.35e+3  ...  4.76e+3  4.89e+3 ││
│├──────┼─────────────────────────────────────────┼─────────────────────────────────────────┤│
-    ││4 @ 2 │ 4.00     1.44e+2  ...  5.64e+2  7.04e+2 │ 2.52e+3  2.66e+3  ...  3.08e+3  3.22e+3 ││
+    ││4 @ 2 │ 4.00     1.44e+2  ...  5.64e+2  7.04e+2 │ 2.52e+3  2.65e+3  ...  3.08e+3  3.23e+3 ││
││axis 3│ 8.44e+2  9.84e+2  ...  1.40e+3  1.54e+3 │ 3.36e+3  3.50e+3  ...  3.92e+3  4.06e+3 ││
-    ││      │ 1.68e+3  1.82e+3  ...  2.24e+3  2.38e+3 │ 4.20e+3  4.34e+3  ...  4.76e+3  4.90e+3 ││
+    ││      │ 1.68e+3  1.82e+3  ...  2.24e+3  2.38e+3 │ 4.19e+3  4.35e+3  ...  4.76e+3  4.89e+3 ││
│└──────┴─────────────────────────────────────────┴─────────────────────────────────────────┘│
├────────────────────────────────────────────────────────────────────────────────────────────┤
│┌──────┬─────────────────────────────────────────┬─────────────────────────────────────────┐│
││1 @ 1 │0 @ 4                                    │1 @ 4                                    ││
││      │axis 5                                   │axis 5                                   ││
│├──────┼─────────────────────────────────────────┼─────────────────────────────────────────┤│
-    ││0 @ 2 │ 2.00e+1  1.60e+2  ...  5.80e+2  7.20e+2 │ 2.54e+3  2.68e+3  ...  3.10e+3  3.24e+3 ││
-    ││axis 3│ 8.60e+2  1.00e+3  ...  1.42e+3  1.56e+3 │ 3.38e+3  3.52e+3  ...  3.94e+3  4.08e+3 ││
-    ││      │ 1.70e+3  1.84e+3  ...  2.26e+3  2.40e+3 │ 4.22e+3  4.36e+3  ...  4.78e+3  4.92e+3 ││
+    ││0 @ 2 │ 2.00e+1  1.60e+2  ...  5.80e+2  7.20e+2 │ 2.54e+3  2.68e+3  ...  3.10e+3  3.23e+3 ││
+    ││axis 3│ 8.60e+2  1.00e+3  ...  1.42e+3  1.56e+3 │ 3.37e+3  3.52e+3  ...  3.93e+3  4.08e+3 ││
+    ││      │ 1.69e+3  1.84e+3  ...  2.25e+3  2.40e+3 │ 4.22e+3  4.35e+3  ...  4.76e+3  4.92e+3 ││
│├──────┼─────────────────────────────────────────┼─────────────────────────────────────────┤│
-    ││1 @ 2 │ 2.10e+1  1.61e+2  ...  5.81e+2  7.21e+2 │ 2.54e+3  2.68e+3  ...  3.10e+3  3.24e+3 ││
-    ││axis 3│ 8.61e+2  1.00e+3  ...  1.42e+3  1.56e+3 │ 3.38e+3  3.52e+3  ...  3.94e+3  4.08e+3 ││
-    ││      │ 1.70e+3  1.84e+3  ...  2.26e+3  2.40e+3 │ 4.22e+3  4.36e+3  ...  4.78e+3  4.92e+3 ││
+    ││1 @ 2 │ 2.10e+1  1.61e+2  ...  5.80e+2  7.20e+2 │ 2.54e+3  2.68e+3  ...  3.10e+3  3.24e+3 ││
+    ││axis 3│ 8.60e+2  1.00e+3  ...  1.42e+3  1.56e+3 │ 3.37e+3  3.52e+3  ...  3.93e+3  4.08e+3 ││
+    ││      │ 1.70e+3  1.84e+3  ...  2.25e+3  2.40e+3 │ 4.22e+3  4.35e+3  ...  4.76e+3  4.92e+3 ││
│├──────┼─────────────────────────────────────────┼─────────────────────────────────────────┤│
-    ││2 @ 2 │ 2.20e+1  1.62e+2  ...  5.82e+2  7.22e+2 │ 2.54e+3  2.68e+3  ...  3.10e+3  3.24e+3 ││
-    ││axis 3│ 8.62e+2  1.00e+3  ...  1.42e+3  1.56e+3 │ 3.38e+3  3.52e+3  ...  3.94e+3  4.08e+3 ││
-    ││      │ 1.70e+3  1.84e+3  ...  2.26e+3  2.40e+3 │ 4.22e+3  4.36e+3  ...  4.78e+3  4.92e+3 ││
+    ││2 @ 2 │ 2.20e+1  1.62e+2  ...  5.84e+2  7.20e+2 │ 2.54e+3  2.68e+3  ...  3.10e+3  3.24e+3 ││
+    ││axis 3│ 8.64e+2  1.00e+3  ...  1.42e+3  1.56e+3 │ 3.37e+3  3.52e+3  ...  3.93e+3  4.08e+3 ││
+    ││      │ 1.70e+3  1.84e+3  ...  2.25e+3  2.40e+3 │ 4.22e+3  4.35e+3  ...  4.76e+3  4.92e+3 ││
│├──────┼─────────────────────────────────────────┼─────────────────────────────────────────┤│
-    ││3 @ 2 │ 2.30e+1  1.63e+2  ...  5.83e+2  7.23e+2 │ 2.54e+3  2.68e+3  ...  3.10e+3  3.24e+3 ││
-    ││axis 3│ 8.63e+2  1.00e+3  ...  1.42e+3  1.56e+3 │ 3.38e+3  3.52e+3  ...  3.94e+3  4.08e+3 ││
-    ││      │ 1.70e+3  1.84e+3  ...  2.26e+3  2.40e+3 │ 4.22e+3  4.36e+3  ...  4.78e+3  4.92e+3 ││
+    ││3 @ 2 │ 2.30e+1  1.63e+2  ...  5.84e+2  7.24e+2 │ 2.54e+3  2.68e+3  ...  3.10e+3  3.24e+3 ││
+    ││axis 3│ 8.64e+2  1.00e+3  ...  1.42e+3  1.56e+3 │ 3.37e+3  3.52e+3  ...  3.93e+3  4.08e+3 ││
+    ││      │ 1.70e+3  1.84e+3  ...  2.25e+3  2.40e+3 │ 4.22e+3  4.35e+3  ...  4.76e+3  4.92e+3 ││
│├──────┼─────────────────────────────────────────┼─────────────────────────────────────────┤│
││4 @ 2 │ 2.40e+1  1.64e+2  ...  5.84e+2  7.24e+2 │ 2.54e+3  2.68e+3  ...  3.10e+3  3.24e+3 ││
-    ││axis 3│ 8.64e+2  1.00e+3  ...  1.42e+3  1.56e+3 │ 3.38e+3  3.52e+3  ...  3.94e+3  4.08e+3 ││
-    ││      │ 1.70e+3  1.84e+3  ...  2.26e+3  2.40e+3 │ 4.22e+3  4.36e+3  ...  4.78e+3  4.92e+3 ││
+    ││axis 3│ 8.64e+2  1.00e+3  ...  1.42e+3  1.56e+3 │ 3.39e+3  3.52e+3  ...  3.93e+3  4.08e+3 ││
+    ││      │ 1.70e+3  1.84e+3  ...  2.27e+3  2.40e+3 │ 4.22e+3  4.35e+3  ...  4.80e+3  4.92e+3 ││
│└──────┴─────────────────────────────────────────┴─────────────────────────────────────────┘│
├────────────────────────────────────────────────────────────────────────────────────────────┤
│ ...                                                                                        │
@@ -224,25 +224,25 @@ let%expect_test "einsum1 permute axes" =
││5 @ 1 │0 @ 4                                    │1 @ 4                                    ││
││      │axis 5                                   │axis 5                                   ││
│├──────┼─────────────────────────────────────────┼─────────────────────────────────────────┤│
-    ││0 @ 2 │ 1.00e+2  2.40e+2  ...  6.60e+2  8.00e+2 │ 2.62e+3  2.76e+3  ...  3.18e+3  3.32e+3 ││
-    ││axis 3│ 9.40e+2  1.08e+3  ...  1.50e+3  1.64e+3 │ 3.46e+3  3.60e+3  ...  4.02e+3  4.16e+3 ││
...TRUNCATED BY DUNE...
│└──────┴─────────────────────────────────────────┴─────────────────────────────────────────┴─────────────────────────────────────────┴─────────────────────────────────────────┘│
├────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┤
│┌──────┬─────────────────────────────────────────┬─────────────────────────────────────────┬─────────────────────────────────────────┬─────────────────────────────────────────┐│
@@ -977,23 +977,23 @@ let%expect_test "einsum1 broadcast or sum out prefix axes" =
││      │axis 5                                   │axis 5                                   │axis 5                                   │axis 5                                   ││
│├──────┼─────────────────────────────────────────┼─────────────────────────────────────────┼─────────────────────────────────────────┼─────────────────────────────────────────┤│
││0 @ 2 │ 4.00     2.40e+1  ...  1.04e+2  1.24e+2 │ 9.00     2.90e+1  ...  1.09e+2  1.29e+2 │ 1.40e+1  3.40e+1  ...  1.14e+2  1.34e+2 │ 1.90e+1  3.90e+1  ...  1.19e+2  1.39e+2 ││
-    ││axis 3│ 8.44e+2  8.64e+2  ...  9.44e+2  9.64e+2 │ 8.49e+2  8.69e+2  ...  9.49e+2  9.69e+2 │ 8.54e+2  8.74e+2  ...  9.54e+2  9.74e+2 │ 8.59e+2  8.79e+2  ...  9.59e+2  9.79e+2 ││
-    ││      │ 1.68e+3  1.70e+3  ...  1.78e+3  1.80e+3 │ 1.68e+3  1.70e+3  ...  1.78e+3  1.80e+3 │ 1.69e+3  1.71e+3  ...  1.79e+3  1.81e+3 │ 1.69e+3  1.71e+3  ...  1.79e+3  1.81e+3 ││
+    ││axis 3│ 8.44e+2  8.64e+2  ...  9.44e+2  9.64e+2 │ 8.48e+2  8.68e+2  ...  9.48e+2  9.68e+2 │ 8.56e+2  8.72e+2  ...  9.52e+2  9.76e+2 │ 8.60e+2  8.80e+2  ...  9.60e+2  9.80e+2 ││
+    ││      │ 1.68e+3  1.70e+3  ...  1.78e+3  1.80e+3 │ 1.68e+3  1.71e+3  ...  1.79e+3  1.80e+3 │ 1.69e+3  1.71e+3  ...  1.79e+3  1.81e+3 │ 1.69e+3  1.72e+3  ...  1.80e+3  1.81e+3 ││
│├──────┼─────────────────────────────────────────┼─────────────────────────────────────────┼─────────────────────────────────────────┼─────────────────────────────────────────┤│
-    ││1 @ 2 │ 1.44e+2  1.64e+2  ...  2.44e+2  2.64e+2 │ 1.49e+2  1.69e+2  ...  2.49e+2  2.69e+2 │ 1.54e+2  1.74e+2  ...  2.54e+2  2.74e+2 │ 1.59e+2  1.79e+2  ...  2.59e+2  2.79e+2 ││
-    ││axis 3│ 9.84e+2  1.00e+3  ...  1.08e+3  1.10e+3 │ 9.89e+2  1.00e+3  ...  1.08e+3  1.10e+3 │ 9.94e+2  1.01e+3  ...  1.09e+3  1.11e+3 │ 9.99e+2  1.01e+3  ...  1.09e+3  1.11e+3 ││
-    ││      │ 1.82e+3  1.84e+3  ...  1.92e+3  1.94e+3 │ 1.82e+3  1.84e+3  ...  1.92e+3  1.94e+3 │ 1.83e+3  1.85e+3  ...  1.93e+3  1.95e+3 │ 1.83e+3  1.85e+3  ...  1.93e+3  1.95e+3 ││
+    ││1 @ 2 │ 1.44e+2  1.64e+2  ...  2.44e+2  2.64e+2 │ 1.49e+2  1.69e+2  ...  2.49e+2  2.68e+2 │ 1.54e+2  1.74e+2  ...  2.54e+2  2.74e+2 │ 1.59e+2  1.79e+2  ...  2.60e+2  2.80e+2 ││
+    ││axis 3│ 9.84e+2  1.00e+3  ...  1.08e+3  1.10e+3 │ 9.88e+2  1.00e+3  ...  1.08e+3  1.11e+3 │ 9.92e+2  1.01e+3  ...  1.09e+3  1.11e+3 │ 1.00e+3  1.02e+3  ...  1.09e+3  1.12e+3 ││
+    ││      │ 1.82e+3  1.84e+3  ...  1.92e+3  1.94e+3 │ 1.83e+3  1.84e+3  ...  1.92e+3  1.95e+3 │ 1.83e+3  1.85e+3  ...  1.93e+3  1.95e+3 │ 1.84e+3  1.85e+3  ...  1.93e+3  1.96e+3 ││
│├──────┼─────────────────────────────────────────┼─────────────────────────────────────────┼─────────────────────────────────────────┼─────────────────────────────────────────┤│
││~~~~~ │ ...                                     │ ...                                     │ ...                                     │ ...                                     ││
││axis 3│                                         │                                         │                                         │                                         ││
│├──────┼─────────────────────────────────────────┼─────────────────────────────────────────┼─────────────────────────────────────────┼─────────────────────────────────────────┤│
-    ││4 @ 2 │ 5.64e+2  5.84e+2  ...  6.64e+2  6.84e+2 │ 5.69e+2  5.89e+2  ...  6.69e+2  6.89e+2 │ 5.74e+2  5.94e+2  ...  6.74e+2  6.94e+2 │ 5.79e+2  5.99e+2  ...  6.79e+2  6.99e+2 ││
-    ││axis 3│ 1.40e+3  1.42e+3  ...  1.50e+3  1.52e+3 │ 1.40e+3  1.42e+3  ...  1.50e+3  1.52e+3 │ 1.41e+3  1.43e+3  ...  1.51e+3  1.53e+3 │ 1.41e+3  1.43e+3  ...  1.51e+3  1.53e+3 ││
-    ││      │ 2.24e+3  2.26e+3  ...  2.34e+3  2.36e+3 │ 2.24e+3  2.26e+3  ...  2.34e+3  2.36e+3 │ 2.25e+3  2.27e+3  ...  2.35e+3  2.37e+3 │ 2.25e+3  2.27e+3  ...  2.35e+3  2.37e+3 ││
+    ││4 @ 2 │ 5.64e+2  5.84e+2  ...  6.64e+2  6.84e+2 │ 5.68e+2  5.88e+2  ...  6.68e+2  6.88e+2 │ 5.76e+2  5.92e+2  ...  6.72e+2  6.96e+2 │ 5.80e+2  6.00e+2  ...  6.80e+2  7.00e+2 ││
+    ││axis 3│ 1.40e+3  1.42e+3  ...  1.50e+3  1.52e+3 │ 1.40e+3  1.43e+3  ...  1.51e+3  1.52e+3 │ 1.41e+3  1.43e+3  ...  1.51e+3  1.53e+3 │ 1.41e+3  1.44e+3  ...  1.52e+3  1.53e+3 ││
+    ││      │ 2.24e+3  2.27e+3  ...  2.33e+3  2.36e+3 │ 2.25e+3  2.27e+3  ...  2.35e+3  2.36e+3 │ 2.25e+3  2.27e+3  ...  2.35e+3  2.36e+3 │ 2.25e+3  2.27e+3  ...  2.35e+3  2.38e+3 ││
│├──────┼─────────────────────────────────────────┼─────────────────────────────────────────┼─────────────────────────────────────────┼─────────────────────────────────────────┤│
-    ││5 @ 2 │ 7.04e+2  7.24e+2  ...  8.04e+2  8.24e+2 │ 7.09e+2  7.29e+2  ...  8.09e+2  8.29e+2 │ 7.14e+2  7.34e+2  ...  8.14e+2  8.34e+2 │ 7.19e+2  7.39e+2  ...  8.19e+2  8.39e+2 ││
-    ││axis 3│ 1.54e+3  1.56e+3  ...  1.64e+3  1.66e+3 │ 1.54e+3  1.56e+3  ...  1.64e+3  1.66e+3 │ 1.55e+3  1.57e+3  ...  1.65e+3  1.67e+3 │ 1.55e+3  1.57e+3  ...  1.65e+3  1.67e+3 ││
-    ││      │ 2.38e+3  2.40e+3  ...  2.48e+3  2.50e+3 │ 2.38e+3  2.40e+3  ...  2.48e+3  2.50e+3 │ 2.39e+3  2.41e+3  ...  2.49e+3  2.51e+3 │ 2.39e+3  2.41e+3  ...  2.49e+3  2.51e+3 ││
+    ││5 @ 2 │ 7.04e+2  7.24e+2  ...  8.04e+2  8.24e+2 │ 7.08e+2  7.28e+2  ...  8.08e+2  8.28e+2 │ 7.12e+2  7.36e+2  ...  8.16e+2  8.32e+2 │ 7.20e+2  7.40e+2  ...  8.20e+2  8.40e+2 ││
+    ││axis 3│ 1.54e+3  1.56e+3  ...  1.64e+3  1.66e+3 │ 1.55e+3  1.56e+3  ...  1.64e+3  1.67e+3 │ 1.55e+3  1.57e+3  ...  1.65e+3  1.67e+3 │ 1.56e+3  1.57e+3  ...  1.65e+3  1.68e+3 ││
+    ││      │ 2.38e+3  2.40e+3  ...  2.48e+3  2.49e+3 │ 2.38e+3  2.41e+3  ...  2.49e+3  2.51e+3 │ 2.40e+3  2.41e+3  ...  2.49e+3  2.51e+3 │ 2.40e+3  2.41e+3  ...  2.49e+3  2.51e+3 ││
│└──────┴─────────────────────────────────────────┴─────────────────────────────────────────┴─────────────────────────────────────────┴─────────────────────────────────────────┘│
└────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘
|}];
@@ -1003,17 +1003,17 @@ let%expect_test "einsum1 broadcast or sum out prefix axes" =
Tensor.print ~with_code:false ~with_grad:false `Default @@ ho4;
[%expect
{|
-    ┌──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
-    │[5]: =>_ho4 shape 0:5|2:7->1:3                                                                                                                                                                                            │
-    │┌──────┬─────────────────────────────────────────┬─────────────────────────────────────────┬─────────────────────────────────────────┬─────────────────────────────────────────┬─────────────────────────────────────────┐│
-    ││      │0 @ 0                                    │1 @ 0                                    │2 @ 0                                    │3 @ 0                                    │4 @ 0                                    ││
-    ││      │axis 2                                   │axis 2                                   │axis 2                                   │axis 2                                   │axis 2                                   ││
-    │├──────┼─────────────────────────────────────────┼─────────────────────────────────────────┼─────────────────────────────────────────┼─────────────────────────────────────────┼─────────────────────────────────────────┤│
-    ││axis 1│ 7.76e+4  7.86e+4  ...  8.24e+4  8.34e+4 │ 7.76e+4  7.86e+4  ...  8.24e+4  8.34e+4 │ 7.77e+4  7.86e+4  ...  8.25e+4  8.34e+4 │ 7.77e+4  7.87e+4  ...  8.25e+4  8.35e+4 │ 7.78e+4  7.87e+4  ...  8.26e+4  8.35e+4 ││
-    ││      │ 1.17e+5  1.18e+5  ...  1.22e+5  1.23e+5 │ 1.18e+5  1.18e+5  ...  1.22e+5  1.23e+5 │ 1.18e+5  1.19e+5  ...  1.22e+5  1.23e+5 │ 1.18e+5  1.19e+5  ...  1.22e+5  1.23e+5 │ 1.18e+5  1.19e+5  ...  1.22e+5  1.23e+5 ││
-    ││      │ 1.58e+5  1.59e+5  ...  1.63e+5  1.64e+5 │ 1.58e+5  1.59e+5  ...  1.63e+5  1.64e+5 │ 1.58e+5  1.59e+5  ...  1.63e+5  1.64e+5 │ 1.58e+5  1.59e+5  ...  1.63e+5  1.64e+5 │ 1.58e+5  1.59e+5  ...  1.63e+5  1.64e+5 ││
-    │└──────┴─────────────────────────────────────────┴─────────────────────────────────────────┴─────────────────────────────────────────┴─────────────────────────────────────────┴─────────────────────────────────────────┘│
-    └──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘
+    ┌──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
+    │[5]: =>_ho4 shape 0:5|2:7->1:3                                                                                                                                                                                                                                    │
+    │┌──────┬─────────────────────────────────────────────────┬─────────────────────────────────────────────────┬─────────────────────────────────────────────────┬─────────────────────────────────────────────────┬─────────────────────────────────────────────────┐│
+    ││      │0 @ 0                                            │1 @ 0                                            │2 @ 0                                            │3 @ 0                                            │4 @ 0                                            ││
+    ││      │axis 2                                           │axis 2                                           │axis 2                                           │axis 2                                           │axis 2                                           ││
+    │├──────┼─────────────────────────────────────────────────┼─────────────────────────────────────────────────┼─────────────────────────────────────────────────┼─────────────────────────────────────────────────┼─────────────────────────────────────────────────┤│
+    ││axis 1│ -2.26e-32  -8.92e+9   ...  -2.92e+14  -1.89e+15 │ -5.99e+6   -1.16e+10  ...  -3.36e+14  -2.02e+15 │ -1.63e+7   -1.42e+10  ...  -3.73e+14  -2.15e+15 │ -3.32e+7   -1.67e+10  ...  -4.13e+14  -2.32e+15 │ -6.31e+7   -2.08e+10  ...  -4.57e+14  -2.55e+15 ││
+    ││      │ -7.14e+28  -1.31e+29  ...  -1.12e+30  -1.95e+30 │ -7.27e+28  -1.34e+29  ...  -1.14e+30  -2.02e+30 │ -7.45e+28  -1.38e+29  ...  -1.16e+30  -2.05e+30 │ -7.64e+28  -1.41e+29  ...  -1.19e+30  -2.09e+30 │ -7.79e+28  -1.44e+29  ...  -1.21e+30  -2.14e+30 ││
+    ││      │ -6.89e+36  -9.30e+36  ...  -3.40e+37  -4.31e+37 │ -6.93e+36  -9.51e+36  ...  -3.42e+37  -4.41e+37 │ -7.10e+36  -9.59e+36  ...  -3.50e+37  -4.51e+37 │ -7.18e+36  -9.63e+36  ...  -3.53e+37  -4.61e+37 │ -7.35e+36  -9.84e+36  ...  -3.55e+37  -4.71e+37 ││
+    │└──────┴─────────────────────────────────────────────────┴─────────────────────────────────────────────────┴─────────────────────────────────────────────────┴─────────────────────────────────────────────────┴─────────────────────────────────────────────────┘│
+    └──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘
|}];
let%op ho5 = hey ++ "...|...->...o => o" in
Train.forward_and_forget backend ctx ho5;
@@ -1036,14 +1036,14 @@ let%expect_test "einsum1 broadcast or sum out prefix axes" =
Tensor.print ~with_code:false ~with_grad:false `Default @@ ho5;
[%expect
{|
-    ┌───────────────────────────────────────┐
-    │[6]: =>_ho5 shape 0:4                  │
-    │┌┬────────────────────────────────────┐│
-    │││axis 0                              ││
-    │├┼────────────────────────────────────┤│
-    │││ 4.20e+1  6.00e+1  7.80e+1  9.60e+1 ││
-    │└┴────────────────────────────────────┘│
-    └───────────────────────────────────────┘
+    ┌─────────────────────────────────────────────┐
+    │[6]: =>_ho5 shape 0:4                        │
+    │┌┬──────────────────────────────────────────┐│
+    │││axis 0                                    ││
+    │├┼──────────────────────────────────────────┤│
+    │││ 2.40e+2  -2.03e-35  -1.74e-34  -7.22e-34 ││
+    │└┴──────────────────────────────────────────┘│
+    └─────────────────────────────────────────────┘
|}];
let hey3 = TDSL.range_of_shape ~output_dims:[ 3; 4 ] () in
let%op ho6 = hey3 ++ "...|...->...o => o" in
@@ -1065,14 +1065,14 @@ let%expect_test "einsum1 broadcast or sum out prefix axes" =
Tensor.print ~with_code:false ~with_grad:false `Default @@ ho6;
[%expect
{|
-    ┌───────────────────────────────────────┐
-    │[8]: =>_ho6 shape 0:4                  │
-    │┌┬────────────────────────────────────┐│
-    │││axis 0                              ││
-    │├┼────────────────────────────────────┤│
-    │││ 1.20e+1  1.50e+1  1.80e+1  2.10e+1 ││
-    │└┴────────────────────────────────────┘│
-    └───────────────────────────────────────┘
+    ┌────────────────────────────────────────────┐
+    │[8]: =>_ho6 shape 0:4                       │
+    │┌┬─────────────────────────────────────────┐│m
+    │││axis 0                                   ││
+    │├┼─────────────────────────────────────────┤│
+    │││ -4.70e-38  -1.10e+1  -2.80e+1  -5.20e+1 ││
+    │└┴─────────────────────────────────────────┘│
+    └────────────────────────────────────────────┘
|}];
(* Broadcast with a shift. *)
let hey4 = TDSL.range_of_shape ~input_dims:[ 2 ] ~output_dims:[ 3; 4 ] () in
@@ -1164,16 +1164,16 @@ let%expect_test "einsum broadcast or sum out prefix axes" =
Tensor.print ~with_code:false ~with_grad:false `Default @@ c;
[%expect
{|
-    ┌─────────────────────────────────────────────┐
-    │[2]: ;=>_c shape 0:3|1:4                     │
-    │┌──────┬────────────────────────────────────┐│
-    ││      │axis 1                              ││
-    │├──────┼────────────────────────────────────┤│
-    ││axis 0│ 0.00     6.00     1.60e+1  3.00e+1 ││
-    ││      │ 8.00e+1  1.10e+2  1.44e+2  1.82e+2 ││
-    ││      │ 2.88e+2  3.42e+2  4.00e+2  4.62e+2 ││
-    │└──────┴────────────────────────────────────┘│
-    └─────────────────────────────────────────────┘
+    ┌────────────────────────────────────────────────────┐
+    │[2]: ;=>_c shape 0:3|1:4                            │
+    │┌──────┬───────────────────────────────────────────┐│
+    ││      │axis 1                                     ││
+    │├──────┼───────────────────────────────────────────┤│
+    ││axis 0│ 0.00      -1.58e+29  0.00       1.31e+5   ││
+    ││      │ 1.08e-19  2.65e+36   -3.68e+19  3.35e+7   ││
+    ││      │ 1.08e-19  2.36e+21   -7.10e-15  -3.96e+28 ││
+    │└──────┴───────────────────────────────────────────┘│
+    └────────────────────────────────────────────────────┘
|}];
(* Broadcast with a shift. *)
let d = TDSL.range_of_shape ~input_dims:[ 2 ] ~output_dims:[ 3 ] () in
@@ -1211,21 +1211,21 @@ let%expect_test "einsum broadcast or sum out prefix axes" =
Tensor.print ~with_code:false ~with_grad:false `Default @@ f;
[%expect
{|
-    ┌─────────────────────────────────────────────┐
-    │[5]: ;=>_f shape 0:3,1:2,2:4                 │
-    │┌──────┬────────────────────────────────────┐│
-    ││      │axis 2                              ││
-    │├──────┼────────────────────────────────────┤│
-    ││0 @ 0 │ 0.00  0.00  0.00  0.00             ││
-    ││axis 1│ 0.00  1.00  2.00  3.00             ││
-    │├──────┼────────────────────────────────────┤│
-    ││1 @ 0 │ 8.00     1.00e+1  1.20e+1  1.40e+1 ││
-    ││axis 1│ 1.20e+1  1.50e+1  1.80e+1  2.10e+1 ││
-    │├──────┼────────────────────────────────────┤│
-    ││2 @ 0 │ 3.20e+1  3.60e+1  4.00e+1  4.40e+1 ││
-    ││axis 1│ 4.00e+1  4.50e+1  5.00e+1  5.50e+1 ││
-    │└──────┴────────────────────────────────────┘│
-    └─────────────────────────────────────────────┘
+    ┌─────────────────────────────────────────────────────┐
+    │[5]: ;=>_f shape 0:3,1:2,2:4                         │
+    │┌──────┬────────────────────────────────────────────┐│
+    ││      │axis 2                                      ││
+    │├──────┼────────────────────────────────────────────┤│
+    ││0 @ 0 │ 0.00  0.00  0.00  0.00                     ││
+    ││axis 1│ 0.00  2.00  0.00  -3.68e+19                ││
+    │├──────┼────────────────────────────────────────────┤│
+    ││1 @ 0 │ 0.00      0.00      0.00      0.00         ││
+    ││axis 1│ 1.08e-19  7.10e-15  4.65e-10  3.05e-5      ││
+    │├──────┼────────────────────────────────────────────┤│
+    ││2 @ 0 │ -0.00      -3.85e-34  -2.52e-29  -1.65e-24 ││
+    ││axis 1│ -1.08e-19  -1.13e-13  -1.19e-7   -1.25e-1  ││
+    │└──────┴────────────────────────────────────────────┘│
+    └─────────────────────────────────────────────────────┘
|}]


let%expect_test "einsum1 fixed dim axis" =
@@ -1294,15 +1294,15 @@ let%expect_test "einsum1 fixed dim axis" =
Tensor.print ~with_code:false ~with_grad:false `Default @@ ho2;
[%expect
{|
-    ┌────────────────────────────────────────────────────────────────┐
-    │[2]: =>_ho2 shape 0:2|2:3->1:1                                  │
-    │┌──────┬───────────────────────────┬───────────────────────────┐│
-    ││      │0 @ 0                      │1 @ 0                      ││
-    ││      │axis 2                     │axis 2                     ││
-    │├──────┼───────────────────────────┼───────────────────────────┤│
-    ││axis 1│ 1.80e+1  2.20e+1  2.60e+1 │ 6.60e+1  7.00e+1  7.40e+1 ││
-    │└──────┴───────────────────────────┴───────────────────────────┘│
-    └────────────────────────────────────────────────────────────────┘
+    ┌──────────────────────────────────────────────────────────────────────┐
+    │[2]: =>_ho2 shape 0:2|2:3->1:1                                        │
+    │┌──────┬──────────────────────────────┬──────────────────────────────┐│
+    ││      │0 @ 0                         │1 @ 0                         ││
+    ││      │axis 2                        │axis 2                        ││
+    │├──────┼──────────────────────────────┼──────────────────────────────┤│
+    ││axis 1│ -3.60e+1  9.40e-38  3.05e-37 │ 2.18e-35  2.85e-35  3.61e-35 ││
+    │└──────┴──────────────────────────────┴──────────────────────────────┘│
+    └──────────────────────────────────────────────────────────────────────┘
|}];
let hey2 = TDSL.range_of_shape ~input_dims:[ 2 ] ~output_dims:[ 3 ] () in
let%op ho3 = hey2 ++ "...|...->... => 0" in
@@ -1326,11 +1326,11 @@ let%expect_test "einsum1 fixed dim axis" =
{|
┌──────────────────────┐
│[4]: =>_ho3 shape 0:1 │
-    │┌┬─────────┐          │
-    │││axis 0   │          │
-    │├┼─────────┤          │
-    │││ 1.50e+1 │          │
-    │└┴─────────┘          │
+    │┌┬──────┐             │
+    │││axis 0│             │
+    │├┼──────┤             │
+    │││ 7.00 │             │
+    │└┴──────┘             │
└──────────────────────┘
|}];
let%op ho4 = hey2 ++ "i->j => i0j" in
@@ -1402,16 +1402,16 @@ let%expect_test "einsum with fixed dim axes" =
Tensor.print ~with_code:false ~with_grad:false `Default @@ c;
[%expect
{|
-    ┌─────────────────────────────────────────────┐
-    │[2]: ;=>_c shape 0:3|1:4                     │
-    │┌──────┬────────────────────────────────────┐│
-    ││      │axis 1                              ││
-    │├──────┼────────────────────────────────────┤│
-    ││axis 0│ 0.00     5.00     1.20e+1  2.10e+1 ││
-    ││      │ 4.80e+1  6.50e+1  8.40e+1  1.05e+2 ││
-    ││      │ 1.60e+2  1.89e+2  2.20e+2  2.53e+2 ││
-    │└──────┴────────────────────────────────────┘│
-    └─────────────────────────────────────────────┘
+    ┌────────────────────────────────────────────────────┐
+    │[2]: ;=>_c shape 0:3|1:4                            │
+    │┌──────┬───────────────────────────────────────────┐│
+    ││      │axis 1                                     ││
+    │├──────┼───────────────────────────────────────────┤│
+    ││axis 0│ 0.00       -4.65e-10  0.00       3.05e-5  ││
+    ││      │ -1.08e-19  -1.37e+11  3.85e-34   3.20e+1  ││
+    ││      │ -1.08e-19  -6.40e+1   -1.51e+23  1.23e-32 ││
+    │└──────┴───────────────────────────────────────────┘│
+    └────────────────────────────────────────────────────┘
|}]


let%expect_test "outer_sum simulating axis concatenation" =
@@ -1685,18 +1685,18 @@ let%expect_test "einsum with a leftmost input axis preserved as output axis" =
Tensor.print ~with_code:false ~with_grad:false `Default @@ c;
[%expect
{|
-    ┌─────────────────────────────────────────────────────────────────┐
-    │[2]: ;=>_c shape 0:3|1:4,2:2                                     │
-    │┌──────┬──────────────────┬──────────────────┬──────────────────┐│
-    ││      │0 @ 0             │1 @ 0             │2 @ 0             ││
-    ││      │axis 2            │axis 2            │axis 2            ││
-    │├──────┼──────────────────┼──────────────────┼──────────────────┤│
-    ││axis 1│ 1.20e+1  4.80e+1 │ 9.00e+2  1.00e+3 │ 2.94e+3  3.12e+3 ││
-    ││      │ 1.05e+2  1.50e+2 │ 1.20e+3  1.32e+3 │ 3.46e+3  3.65e+3 ││
-    ││      │ 2.34e+2  2.88e+2 │ 1.55e+3  1.68e+3 │ 4.02e+3  4.22e+3 ││
-    ││      │ 3.99e+2  4.62e+2 │ 1.93e+3  2.07e+3 │ 4.62e+3  4.83e+3 ││
-    │└──────┴──────────────────┴──────────────────┴──────────────────┘│
-    └─────────────────────────────────────────────────────────────────┘
+    ┌─────────────────────────────────────────────────────────────────────────────┐
+    │[2]: ;=>_c shape 0:3|1:4,2:2  includes neg. inf.                             │
+    │┌──────┬──────────────────────┬──────────────────────┬──────────────────────┐│
+    ││      │0 @ 0                 │1 @ 0                 │2 @ 0                 ││
+    ││      │axis 2                │axis 2                │axis 2                ││
+    │├──────┼──────────────────────┼──────────────────────┼──────────────────────┤│
+    ││axis 1│ -2.00      -4.65e-10 │ -2.91e-11  3.85e-34  │ 4.93e-32   8.19e+3   ││
+    ││      │ -2.77e-17  4.23e-22  │ -4.00      -inf      │ -1.22e-4   -1.62e+32 ││
+    ││      │ -4.05e+31  9.00e+15  │ -8.07e-28  -5.12e+2  │ 2.32e+26   5.55e-17  ││
+    ││      │ 1.16e-10   9.90e+27  │ 1.72e+18   -2.01e-28 │ -3.76e-37  1.73e-18  ││
+    │└──────┴──────────────────────┴──────────────────────┴──────────────────────┘│
+    └─────────────────────────────────────────────────────────────────────────────┘
|}]


let%expect_test "einsum permuting two leftmost input axes as output axes" =
@@ -1748,14 +1748,14 @@ let%expect_test "einsum permuting two leftmost input axes as output axes" =
Tensor.print ~with_code:false ~with_grad:false `Default @@ c;
[%expect
{|
-    ┌───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
-    │[2]: ;=>_c shape 2:4->0:3,1:2                                                                                          │
-    │┌──────┬────────────────────────────────────┬────────────────────────────────────┬────────────────────────────────────┐│
-    ││      │0 @ 0                               │1 @ 0                               │2 @ 0                               ││
-    ││      │axis 2                              │axis 2                              │axis 2                              ││
-    │├──────┼────────────────────────────────────┼────────────────────────────────────┼────────────────────────────────────┤│
-    ││axis 1│ 0.00     2.00     4.00     6.00    │ 8.00     1.00e+1  1.20e+1  1.40e+1 │ 1.60e+1  1.80e+1  2.00e+1  2.20e+1 ││
-    ││      │ 3.60e+1  3.90e+1  4.20e+1  4.50e+1 │ 4.80e+1  5.10e+1  5.40e+1  5.70e+1 │ 6.00e+1  6.30e+1  6.60e+1  6.90e+1 ││
-    │└──────┴────────────────────────────────────┴────────────────────────────────────┴────────────────────────────────────┘│
-    └───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘
+    ┌──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
+    │[2]: ;=>_c shape 2:4->0:3,1:2                                                                                                     │
+    │┌──────┬───────────────────────────────────────┬────────────────────────────────────────┬────────────────────────────────────────┐│
+    ││      │0 @ 0                                  │1 @ 0                                   │2 @ 0                                   ││
+    ││      │axis 2                                 │axis 2                                  │axis 2                                  ││
+    │├──────┼───────────────────────────────────────┼────────────────────────────────────────┼────────────────────────────────────────┤│
+    ││axis 1│ 0.00     0.00      0.00      0.00     │ 0.00      0.00      0.00      0.00     │ 0.00      0.00      0.00      0.00     ││
+    ││      │ 8.58e+9  2.19e+12  5.62e+14  1.44e+17 │ 3.68e+19  5.90e+20  9.44e+21  1.51e+23 │ 2.41e+24  3.86e+25  6.18e+26  9.90e+27 ││
+    │└──────┴───────────────────────────────────────┴────────────────────────────────────────┴────────────────────────────────────────┘│
+    └──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘
|}]
"/usr/bin/env" "bash" "-c" "cd ./src && opam exec -- dune build @install @check @runtest && rm -rf _build" failed with exit status 1
2025-05-30 20:19.03: Job failed: Failed: Build failed