Metamorphic Testing for Software Libraries and Graphics Compilers