Closed NhatMinh0208 closed 9 months ago
Changes Missing Coverage | Covered Lines | Changed/Added Lines | % | ||
---|---|---|---|---|---|
src/transpiler/transpiler.ts | 52 | 54 | 96.3% | ||
<!-- | Total: | 59 | 61 | 96.72% | --> |
Files with Coverage Reduction | New Missed Lines | % | ||
---|---|---|---|---|
src/ec-evaluator/utils.ts | 1 | 86.5% | ||
<!-- | Total: | 1 | --> |
Totals | |
---|---|
Change from base Build 7593229382: | 0.1% |
Covered Lines: | 10908 |
Relevant Lines: | 12711 |
Description:
In the stepper and transpiler, the function
checkForUndefinedVariables
ensures that all variables used in the program are declared before the program is run. The CSE machine does not include this check, meaning that some programs containing undeclared variables run normally if such variables are never accessed. This PR implements a version ofcheckForUndefinedVariables
for the CSE machine, which the stepper can also utilize.Changes:
checkProgramForUndefinedVariables
for the stepper and CSE machine