The US tax system is the legislative equivalent of spaghetti code / big ball of mud.
Some tax regulations were considered illegal by higher authorities, but that won't stop a tax auditor in a local level charging them and potentially closing down your business.