| 16 | */ |
| 17 | |
| 18 | int Between(const Node * ta, const Node * tb, const Node * tc) |
| 19 | { |
| 20 | int a, b = tb->Rank, c; |
| 21 | |
| 22 | if (!Reversed) { |
| 23 | a = ta->Rank; |
| 24 | c = tc->Rank; |
| 25 | } else { |
| 26 | a = tc->Rank; |
| 27 | c = ta->Rank; |
| 28 | } |
| 29 | return a <= c ? b >= a && b <= c : b >= a || b <= c; |
| 30 | } |
nothing calls this directly
no outgoing calls
no test coverage detected