git @ Cat's Eye Technologies SixtyPical / fbfab44
Update the errorful rudiments. Chris Pressey 2 years ago
3 changed file(s) with 17 addition(s) and 3 deletion(s). Raw diff Collapse all Expand all
0 // should fail analysis with an UnmeaningfulReadError
1 // because adding 4 to the accumulator reads the carry
2 // but the carry has neither been provided as input
3 // nor set to anything in particular by this routine.
4
05 define add_four routine
16 inputs a
27 outputs a
0 // should fail analysis with a RangeExceededError
1 // because the index is detected to fall outside the
2 // allowable range of the table it is indexing.
3
04 byte table[8] message : "WHAT?"
15
26 define main routine
0 vector vec
0 // should fail analysis with a ConstantConstraintError
1 // because it cannot copy the address of `foo` into `vec`
2 // because it has incompatible constraints.
3
4 vector routine
15 inputs y
26 outputs y
37 trashes z, n
8 vec
49
5 routine foo
10 define foo routine
611 inputs x
712 outputs x
813 trashes z, n
1015 inc x
1116 }
1217
13 routine main
18 define main routine
1419 inputs foo
1520 outputs vec
1621 trashes a, z, n