Skip to content
Snippets Groups Projects
Verified Commit f66e6a7f authored by Sébastien Villemot's avatar Sébastien Villemot
Browse files

Fix check for unused endos in the presence of PAC model-consistent expectations

Since commit 64f55e4a, in the presence of PAC
model-consistent expectations, some endogenous variables are added to the
symbol table at the beginning of ModFile::transformPass(), while their defining
equations are added at a later point.

But commit 7c3f981e has introduced a check that
verifies that all endogenous are used in equations. That check happens after
the above mentioned endogenous are created, but after their defining equations
are added. Hence it fails.

The fix consists in creating those endogenous after the check. Incidently, they
are no longer part of the saved original model, but this is a good thing.
parent d3db73b7
No related branches found
No related tags found
Loading
Checking pipeline status
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment