| 420 | } |
| 421 | |
| 422 | LogicExp* MakeExpChain(int dest) { |
| 423 | auto node = new LogicExp(); |
| 424 | node->parent = nullptr; |
| 425 | node->subexp = nullptr; |
| 426 | node->next = nullptr; |
| 427 | node->prev = nullptr; |
| 428 | node->op1 = ""; |
| 429 | node->op2 = ""; |
| 430 | node->neg = 0; |
| 431 | node->dest = dest; |
| 432 | node->is_chain = 1; |
| 433 | return node; |
| 434 | } |
| 435 | |
| 436 | LogicExp* FindLogicExpTreeRoot(LogicExp* exp) { |
| 437 | LogicExp* curr = exp; |