Oh noes! The robots are killing us! But why? We never programmed them to do this!
static bool isCrazyMurderingRobot = false;
void interact_with_humans (void) {
if (isCrazyMurderingRobot = true)
kill(humans);
else
be_nice_to(humans);
}