static int nlLogic_failureLevel_calc(ExecutedRule r) { if (!(r.rule instanceof FailedRule)) ret 0; FailedRule fr = cast r.rule; Exp e = fr.rule.in, lookingFor = fr.remainingCondition; int n = l(nlLogic_unrollAnd(e))-l(nlLogic_unrollAnd(lookingFor))+1; // TODO ret n <= 0 ? -1 : n; }
Began life as a copy of #1018324
download show line numbers debug dex old transpilations
Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1018327 |
Snippet name: | nlLogic_failureLevel_calc |
Eternal ID of this version: | #1018327/3 |
Text MD5: | 2a055cf8ac9c22d77fe6de9818970c7d |
Author: | stefan |
Category: | javax / a.i. |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2018-09-19 21:40:53 |
Source code size: | 298 bytes / 7 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 382 / 387 |
Version history: | 2 change(s) |
Referenced in: | [show references] |