SimpleProgramAnalyser / spa

A CMake Windows program for a SIMPLE language
GNU General Public License v3.0
3 stars 0 forks source link

Affects Tuple/Singular bug #108

Closed Dandford closed 4 years ago

Dandford commented 4 years ago

image

Seems to be a problem with the evaluator, Select v shud produce same result as <n,v>

Specifically these 2 queries

Query : while s; variable v; prog_line s2; if i; procedure p1, p2, p3; prog_line n, n1, n2; Select <n, v> such that Affects*(84, n) such that Uses(n, v)

Result: 87 b, 87 constantAssignment, 89 constantAssignment, 90 constantAssignment, 92 b, 92 constantAssignment, 97 d

Query: while s; variable v; prog_line s2; if i; procedure p1, p2, p3; prog_line n, n1, n2; Select v such that Affects*(84, n) such that Uses(n, v)

Expected Result: b, d, constantAssignment Actual Result: all variables