inst_has_potential
(inst_has_potential(inst, enabled, optional, exclude) != 0);
r = inst_has_potential(inst, enabled, optional, exclude);