Cylons Justification....
To be fair, the Cylons' justification for hatred and war had to do with enslavement - very much in the same vein as Planet of the Apes. In each of the cases above AI has progressed to the point of self awareness and emotion. Since prioritization is an emotional function, it's reasonable to guess that introducing basic "emotional" reasoning could be useful - and heuristics may lead that way; the iPhone is very-basically self-aware, it knows where it is, it communicates, and it has basic senses. This raises valid questions about how far AI can develop before we have moral and ethical obligations for the treatment of intelligent devices. Humans don't have a very good track record, from that perspective, if one considers the treatment of animals.