@Override public void validateTypes(final Individual node, final List<ATermAppl> negatedTypes) { for (int i = 0, n = negatedTypes.size(); i < n; i++) { final ATermAppl a = negatedTypes.get(i); if (a.getArity() == 0) continue; final ATermAppl notA = (ATermAppl) a.getArgument(0); if (node.hasType(notA)) { if (!node.hasType(a)) throw new InternalReasonerException("Invalid type found: " + node + " " + " " + a + " " + node.debugString() + " " + node._depends); throw new InternalReasonerException("Clash found: " + node + " " + a + " " + node.debugString() + " " + node._depends); } } }
@Override public void validateTypes(final Individual node, final List<ATermAppl> negatedTypes) { for (int i = 0, n = negatedTypes.size(); i < n; i++) { final ATermAppl a = negatedTypes.get(i); if (a.getArity() == 0) continue; final ATermAppl notA = (ATermAppl) a.getArgument(0); if (node.hasType(notA)) { if (!node.hasType(a)) throw new InternalReasonerException("Invalid type found: " + node + " " + " " + a + " " + node.debugString() + " " + node._depends); throw new InternalReasonerException("Clash found: " + node + " " + a + " " + node.debugString() + " " + node._depends); } } }
private void cache(final Individual rootNode, final ATermAppl c, final boolean isConsistent) { if (!isConsistent) { if (_logger.isLoggable(Level.FINE)) { _logger.fine("Unsatisfiable: " + ATermUtils.toString(c)); _logger.fine("Equivalent to TOP: " + ATermUtils.toString(ATermUtils.negate(c))); } _cache.putSat(c, false); } else { _logger.fine(() -> "Cache " + rootNode.debugString()); _cache.put(c, CachedNodeFactory.createNode(c, rootNode)); } }
private void cache(final Individual rootNode, final ATermAppl c, final boolean isConsistent) { if (!isConsistent) { if (_logger.isLoggable(Level.FINE)) { _logger.fine("Unsatisfiable: " + ATermUtils.toString(c)); _logger.fine("Equivalent to TOP: " + ATermUtils.toString(ATermUtils.negate(c))); } _cache.putSat(c, false); } else { _logger.fine(() -> "Cache " + rootNode.debugString()); _cache.put(c, CachedNodeFactory.createNode(c, rootNode)); } }
final ATermAppl desc = type.getType(); DependencyIndex._logger.fine(() -> " Removing type? " + desc + " from " + (node instanceof Individual ? ((Individual) node).debugString() : node));
final ATermAppl desc = type.getType(); DependencyIndex._logger.fine(() -> " Removing type? " + desc + " from " + (node instanceof Individual ? ((Individual) node).debugString() : node));