Project

General

Profile

« Previous | Next » 

Revision c35de73b

IDc35de73b71b6578752eb4f2328c1f91c907fe6e1
Parent 05ca2715
Child bc3139b0

Added by Pierre-Loïc Garoche 11 months ago

Pretty serious update:
- a bug in regressio ntest Simulink/integrator_ext_IC_matrix_test revealed the following (serious issue):
when building the list of instruction (in the machine code) the access to variable were hardcoded to LocalVar or StateVAr depending whether the variables was part of the identified memories.
Un fortunately the set of memories is only known after iterating through all definitions. A read access to a memory which was scheduled before its update was generating a non compilable C code:
the access to the memory x which should be written as mem->x was written as a local access "x". But x was not declared as a local variable: hence gcc compile error.

The current commit is pretty involved. It goes through all the code:
- LocalVar and StateVar have been merged in Var in machine instructions (rhs ie expressions)
- any possible print or access to these shall be given access to the machine (ie its memories)
so a lot of functions have been enriched with a machine first argument.
Regression tests performed well showing no additional bug introduced.  The only Unstable->Broken changes are the DIFF which could not be run at all before.

Files

  • added
  • modified
  • copied
  • renamed
  • deleted

View differences