1 | // returns true if any changes were made (deletions or additions) |
2 | static bool post_correctThird(S a, S b, S c) { |
3 | bool found = false, changes = false; |
4 | for (TripleWeb w : ai_triples(a, b, "$X")) { |
5 | if (eqic(w.c, c)) found = true; |
6 | else { ai_invalidateTriple(w); changes = true; } |
7 | } |
8 | if (!found) { |
9 | post(a, b, c); changes = true; |
10 | } |
11 | ret changes; |
12 | } |
download show line numbers debug dex old transpilations
Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1013432 |
Snippet name: | post_correctThird |
Eternal ID of this version: | #1013432/1 |
Text MD5: | 6df85bd5124c5f173700f8ad7bf0d65e |
Author: | stefan |
Category: | javax / a.i. |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2018-01-06 07:57:07 |
Source code size: | 374 bytes / 12 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 359 / 410 |
Referenced in: | [show references] |