JakobTopholt / P4-Unitino

SW4 project at AAU creating our own compiler
4 stars 0 forks source link

Bug in multiply and division case #71

Closed AleksanderRDL closed 1 year ago

AleksanderRDL commented 1 year ago

When doing the logic which handles a multiply and division the part which should handle the fractal equation is simply wrong sometimes so either math or proggramming logic here fails. I have already tested all the surrounding code for errors but all other logic works fine so it has to be here. On the picture below is marked the exact part im talking about image

This then can result in some followup bugs(90% sure its because of the issue above) as in the other checks with utilise the result from this eg. in a declareAssign An example "Time xyz = 15ms * 3s". Here it does not always evaluate to an exception.