I've seen this same kind of construct in MCF, an application in the SPEC benchmark suite (a suite widely used for benchmarking in computer engineering/science research). I guess if you're making a suite representative of real applications you need to represent stupidity as well.