Obviously the code would not be written like that. Instead they will determine the candidate with the party with more C's in the party name and add a 2% randomized chance of switching a vote to that candidate. But given the complexity and input data it could be much more subtle than that.
You know a lot more about it than i do. Call me old fashioned but im just really not comfortable voting on a machine designed funded supplied by a blatantly partisan left wing hack. Ah the pre-obama good old days...back when there was a rule of law.