Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat/cdd deferred compute #103

Open
wants to merge 16 commits into
base: main
Choose a base branch
from

Conversation

Brandhoej
Copy link
Contributor

@Brandhoej Brandhoej commented Mar 30, 2023

Second iteration on CDD with deferred computation which was previoslu done with "dirty" flags. In this new iteration a class encapsulating this dirty flag behaviour is created and used by CDD. The aim is to remove complex logic from CDD related to keeping the correct state.

Description

  • The DeferredProperty class which supports the other DeferredProperty as observers to be set as dirty as soon as the parent is.
  • isTrue and isFalse now checks the terminal nodes and not the equality and the true and false equalities checks the corresponding terminal nodes.

@Brandhoej Brandhoej mentioned this pull request Mar 30, 2023
@Brandhoej Brandhoej requested a review from magoorden April 7, 2023 07:07
@Brandhoej Brandhoej marked this pull request as ready for review April 7, 2023 07:07
src/logic/Pruning.java Outdated Show resolved Hide resolved
src/util/DeferredProperty.java Outdated Show resolved Hide resolved
src/util/DeferredProperty.java Outdated Show resolved Hide resolved
src/util/DeferredProperty.java Outdated Show resolved Hide resolved
src/util/DeferredProperty.java Outdated Show resolved Hide resolved
src/models/CDD.java Outdated Show resolved Hide resolved
src/models/CDD.java Outdated Show resolved Hide resolved
src/models/CDD.java Outdated Show resolved Hide resolved
src/models/CDD.java Outdated Show resolved Hide resolved
@@ -548,9 +594,10 @@ public CDD applyReset(int[] clockResets, int[] clockValues, int[] boolResets, in
throw new IllegalArgumentException("The amount of boolean resets and values must be the same");
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
throw new IllegalArgumentException("The amount of boolean resets and values must be the same");
throw new IllegalArgumentException("The number of boolean resets and values must be the same");

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants