Yes.
A function to output /* BAD */ would clean up the logic.
In flowcharts,
a function call is shown as a box with double lines on its sides.
The flowchart on the left calls the function on the right in one of the branches of its if.
Should the literal /* BAD */ be passed as an argument to putBad() or be hard coded?