I appreciate the use of the term "fiendish" as artfully coined in this discussion.
It paints the companies trying to avoid taxes as nearly-diabolical agents skulking around in the dark, not to mention adding a delightful soupcon of sinfulness.
Of course, what this seems to conveniently ignore is that national taxation policies are likewise "fiendishly" complicated, sometimes driven by complicated corporate structures, but just as often driven by a quasi-socialist, populist, and (as long as we're painting in Medieval imagery) a quasi-Dulcinian desire to appropriate at least a piece of anything valuable "for the public" meaning actually "for politicians to spend and gain votes without the usual pain of public taxation or debt".
Companies respond to these policies. If the policies are so contrived and convoluted that there remain loopholes that are worth pursuing to evade tax, that's the LAW WRITERS' fault, not the companies' for exploiting it. But it plays so much better in the press to blame companies for being greedy, rather than politicians for being incompetent.