1 | // null = no satisfaction |
2 | // otherwise return var map |
3 | static Iterable<SS> gSatAnd(L<S> statements) { |
4 | assertTrue(l(statements) >= 1); |
5 | |
6 | if (l(statements) == 1) |
7 | ret gSat(first(statements)); |
8 | |
9 | new L<SS> l; |
10 | for (SS map : gSat(first(statements))) |
11 | for (SS map2 : gSatAnd(dropFirst(statements))) |
12 | addIfNotEmpty(l, mergeMappings(map, map2)); |
13 | ret l; |
14 | } |
15 | |
16 | static Iterable<SS> gSatAnd(S... statements) { |
17 | ret gSatAnd(asList(statements)); |
18 | } |
download show line numbers debug dex old transpilations
Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, ddnzoavkxhuk, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1004300 |
Snippet name: | gSatAnd - "and" connection between statements, satisfy in log |
Eternal ID of this version: | #1004300/1 |
Text MD5: | 5dd894dc3be0cfb1ba8bd769d9701e7d |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2016-08-13 03:01:48 |
Source code size: | 469 bytes / 18 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 540 / 530 |
Referenced in: | [show references] |