Mutual Exclusion OR

This smell occurs when an OR operator is used between two mutually exclusive conditions (thus always evaluating to true).


A. Vetro, L. Ardito, G. Procaccianti, M. Morisio, “Definition, Implementation and Validation of Energy Code Smells: An Exploratory Study on an Embedded System”. ENERGY 2013, pp. 34-39.

Energy Smells


All rights reserved (c) Tushar Sharma 2017-21.