feat: Update cyclic functions to be aware of being in a cycle.

Finish the creation of cyclic functions
The last part is to update vars that call into a function in the cycle
This commit is contained in:
microproofs
2023-09-21 17:40:36 -04:00
committed by Kasey
parent 794fc93084
commit ae3053522e
5 changed files with 134 additions and 32 deletions

View File

@@ -3,3 +3,5 @@
requirements = []
packages = []
[etags]

View File

@@ -18,8 +18,8 @@ fn sum_list(list: List<Schema>) -> Int {
}
test foo() {
False
// False
// Can't enable the "real" test because it puts the UPLC evaluator in an infinite loop.
// -
// sum(List([List([Integer(1), Integer(2)]), Integer(3), Integer(4)])) == 10
sum(List([List([Integer(1), Integer(2)]), Integer(3), Integer(4)])) == 10
}