Skip to content

Conversation

@EricccTaiwan
Copy link
Collaborator

Apply Boolen distributive law:

	  !a || (a && b)
	= (!a || a) && (!a || b)
	= TRUE && (!a || b)
	= !a || b

to improve readability by removing redundant logic.

Apply Boolen distributive law:
	  !a || (a && b)
	= (!a || a) && (!a || b)
	= TRUE && (!a || b)
	= !a || b
to improve readability by removing redundant logic.

Co-authored-by: Po-Ying Chiu <charlie910417@gmail.com>
Signed-off-by: Cheng-Yang Chou <yphbchou0911@gmail.com>
Copy link
Contributor

@arighi arighi left a comment

Choose a reason for hiding this comment

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

LGTM, thanks for the cleanup.

@arighi arighi added this pull request to the merge queue May 28, 2025
Merged via the queue into sched-ext:main with commit 12db8c0 May 28, 2025
16 checks passed
@EricccTaiwan EricccTaiwan deleted the simplify-if-condition branch May 28, 2025 04:54
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