virtual-labs-archive / data-structures-iiith

This repository contains sources to Data Structures Lab IIITH.
https://cse01-iiith.vlabs.ac.in/
Other
1 stars 73 forks source link

Repeated selection of order of evaluation #120

Open sumba101 opened 5 years ago

sumba101 commented 5 years ago

issue

Expression tree allows for repeated selection of the order of simulation button. this leads to filling up of the stack which a)if action is repeated till stack is filled, causes stopping of simulation b)if action doesnt lead to filling of stack, the extra cells of the stack filled by the extra selections stays in the stack till the refreshing of the page

Reproduction

here is an example where after repeated selection of preorder option the stack is full and the simulation stops screenshot from 2019-03-05 23-10-45 screenshot from 2019-03-05 23-10-56 screenshot from 2019-03-05 23-11-07

Expected fix

the selection of the order of evaluation must be suspended when a selected simulation is being executed also the simulated stack must be cleared after the completion of each selected order evaluation

sumba101 commented 5 years ago

working on solution for this, please do not attempt