1 | static int nlLogic_failureLevel_calc(ExecutedRule r) { |
2 | if (!(r.rule instanceof FailedRule)) ret 0; |
3 | FailedRule fr = cast r.rule; |
4 | Exp e = fr.rule.in, lookingFor = fr.remainingCondition; |
5 | int n = l(nlLogic_unrollAnd(e))-l(nlLogic_unrollAnd(lookingFor))+1; // TODO |
6 | ret n <= 0 ? -1 : n; |
7 | } |
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: | 384 / 389 |
Version history: | 2 change(s) |
Referenced in: | [show references] |