1
1
mirror of https://github.com/anoma/juvix.git synced 2024-12-03 09:41:10 +03:00
juvix/tests
Paul Cadman aac22addc1
Add builtin nat and bool types as start nodes in reachability analysis (#1775)
The integer to Nat translation in the Internal to Core translation
depends on both Nat and Bool builtin types being in the InfoTable.
544bddba43/src/Juvix/Compiler/Core/Translation/FromInternal.hs (L67)

If the root module does not contain an explicit reference to the builtin
Bool (for example) then builtin Bool type is filtered out by the
reachability analysis and therefore is not available at transltaion
time.

In this commit we add both builtin Nat and builtin Bool as start nodes
in the reachability analysis to guarantee that they will not be filtered
out.

- Fixes https://github.com/anoma/juvix/issues/1774
2023-01-27 15:21:38 +00:00
..
Asm Change syntax for ind. data types and forbid the empty data type (#1684) 2023-01-03 13:49:04 +01:00
benchmark Automatized benchmarks (#1673) 2023-01-05 17:48:26 +01:00
Compilation/positive Lazy boolean operators (#1743) 2023-01-25 18:57:47 +01:00
Core Add debugging builtin functions trace and fail (#1771) 2023-01-27 12:45:38 +01:00
examplesExpected Add Towers of Hanoi and Pascal triangle examples (#1446) 2022-08-10 12:02:14 +01:00
Internal Add builtin nat and bool types as start nodes in reachability analysis (#1775) 2023-01-27 15:21:38 +00:00
negative Fix inference loop (#1726) 2023-01-17 13:28:38 +01:00
positive Keep regular comments in html output (#1766) 2023-01-27 13:24:28 +01:00
runtime/positive Translation from JuvixAsm to C (#1619) 2022-12-06 11:33:20 +01:00
smoke/Commands Add debugging builtin functions trace and fail (#1771) 2023-01-27 12:45:38 +01:00
.gitattributes Juvix C runtime (#1580) 2022-11-03 09:38:09 +01:00