joodicator / ic-while-synth

Synthesis of Simple While Programs using Answer Set Programming (BEng final project)
1 stars 0 forks source link

Remove end_while from program language. #5

Open ghost opened 9 years ago

ghost commented 9 years ago

Description:

For simplicity of implementation of the program simulator run.lp, it was initially chosen to require while statements to have a matching end_while statement after their body, so the simulator has a discrete instruction on which to return to the loop header. This was especially important when there are multiple nested loops all ending at the same point.

However, the efficiency of the program synthesiser learn.lp suffers from this, because it has to consider the contents of an extra line for each loop added to the program. The efficiency of learn.lp could be improved [citation needed] (while keeping its implementation simple) by removing end_while and accepting a more complex implementation of run.lp

Possible solutions: