Evaluation of Logic Functions Using Hardware in the Presence of Unknown Inputs