Warning: session_start(): open(/var/lib/php/sessions/sess_o6k763718548mrohrmn9864slo, O_RDWR) failed: No space left on device (28) in /var/www/tb-usercake/models/config.php on line 51
Warning: session_start(): Failed to read session data: files (path: /var/lib/php/sessions) in /var/www/tb-usercake/models/config.php on line 51
static Web web_ifThen(Web inputWeb, Web web) {
Web patternWeb, Map patternMap = unpair cloneWebWithMap(web);
web_dropRelationsStartingWith(patternWeb, "Then:");
Web thenWeb, Map thenMap = unpair cloneWebWithReverseMap(web);
web_unpackRelationsStartingWith(thenWeb, "Then:");
Map match = web_matchAllPerms_partial(patternWeb, inputWeb);
if (match != null) {
// Then add relations from thenWeb
for (WebRelation rel : web_relationObjects(thenWeb)) {
WebNode a = mapGet(match, mapGet(patternMap, mapGet(thenMap, rel.a));
WebNode b = mapGet(match, mapGet(patternMap, mapGet(thenMap, rel.b));
if (a != null && b != null) {
WebRelation rel2 = inputWeb.getRelation(a, b);
web_addLabelsFromNodeToNode(rel, rel2);
}
}
}
}