You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
AmongVar.impose() initializes xGrounded to the number of X variables already grounded, but then calls super.impose(store), which itself calls AmongVar.queueVariable(), which again increments xGrounded for each singleton variable, resulting in each grounded variable being incorrectly counted twice.
Suggested bug fix: in AmongVar.impose(), initialize xGrounded to 0 (like is already done with yGrounded) instead of to the number of grounded variables.
The text was updated successfully, but these errors were encountered:
thomasleaute
changed the title
AmongVar.impose() incorrectly handles already grounded variables
AmongVar.impose() handles already grounded variables incorrectly
Dec 13, 2020
AmongVar.impose()
initializesxGrounded
to the number ofX
variables already grounded, but then callssuper.impose(store)
, which itself callsAmongVar.queueVariable()
, which again incrementsxGrounded
for each singleton variable, resulting in each grounded variable being incorrectly counted twice.Suggested bug fix: in
AmongVar.impose()
, initializexGrounded
to0
(like is already done withyGrounded
) instead of to the number of grounded variables.The text was updated successfully, but these errors were encountered: