This site is version 0.0.1. Most of the code on this site is drafted by an agent and needs review. I apologize for the AI-speak, we are working on rewriting it!
viv-lang.org

Notebooks · lib/algo/props

The postconditions of lib/algo/algo.spec as Viv: the checks the generated programs (lib/algo/tests, lib/algo/legacy/tests) run in all three engines. tools/algo/check.py checks the same properties again in Python, against the printed results, and compares the two verdicts. Several of these are tier-1 algorithms of their own (is_sorted, is_permutation, is_heap in the STL); they keep the algo_ prefix until lib/algo's names are settled.

The order is NumPy's, the one argsort and take V sorted use: ascending, -0.0 equal to 0.0, NaN after every number and NaNs equal to each other.

Look inside this program

  • Atlas

    The program’s map: every function and which calls which.

  • There’s no recorded run of this program yet.

Shift+Enter in a cell runs it and moves to the next. Running a cell runs every cell above it too, as one program.

[1]lines 13–391