Skip to content

Conversation

@Rylan12
Copy link
Contributor

@Rylan12 Rylan12 commented Apr 9, 2025

Add bool_negate_var to the BDD library.

This function negates all instances of a variable in a BDD. For example, say you have a BDD for (A & ~B & C) | (~A & ~C). Running bool_negate_var for the A variable will yield (~A & ~B & C) | (A & ~C).

I've found this useful for working with the BDD representation of the state space, and I'm happy to provide an example if it would be helpful.

Also, if there's a better name, I'm definitely open to alternatives.

@rmanohar rmanohar merged commit 594e4ba into asyncvlsi:master Apr 9, 2025
1 check passed
@Rylan12 Rylan12 deleted the bool-negate-var branch April 9, 2025 18:43
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