Somewhere , somehow you need to do a LOGICAL AND of ALL the internally shorted pins so
Let the numbers represent the flags for those pins , then
(2 AND 10) => (PIN-2 LOW AND PIN-10 LOW) => PASS for 2 & 10 ONLY ! (ACTION=> set flags for 2 & 10 to PASS)
(23 AND 44) => (PIN-23 LOW AND PIN-44 LOW) => PASS for 23 & 44 ONLY ! (ACTION=> set flags for 23 & 44 to PASS)
(24 AND 30 )=> (PIN-24 LOW AND PIN-30 LOW) => PASS for 24 & 30 ONLY ! (ACTION=> set flags for 24 & 30 to PASS)
(29 AND 31) etc. =============================================> etc.
(32 AND 33) etc. =============================================> etc.
(39 AND 41) etc. =============================================> etc.
(42 AND 47) etc. =============================================> etc.
(55 AND 60) etc. =============================================> etc.