(p: Properties)
| 751 | |
| 752 | |
| 753 | def cflags(p: Properties) -> str: |
| 754 | flags: list[str] = [] |
| 755 | if p.oparg: |
| 756 | flags.append("HAS_ARG_FLAG") |
| 757 | if p.uses_co_consts: |
| 758 | flags.append("HAS_CONST_FLAG") |
| 759 | if p.uses_co_names: |
| 760 | flags.append("HAS_NAME_FLAG") |
| 761 | if p.jumps: |
| 762 | flags.append("HAS_JUMP_FLAG") |
| 763 | if p.has_free: |
| 764 | flags.append("HAS_FREE_FLAG") |
| 765 | if p.uses_locals: |
| 766 | flags.append("HAS_LOCAL_FLAG") |
| 767 | if p.eval_breaker: |
| 768 | flags.append("HAS_EVAL_BREAK_FLAG") |
| 769 | if p.deopts: |
| 770 | flags.append("HAS_DEOPT_FLAG") |
| 771 | if p.deopts_periodic: |
| 772 | flags.append("HAS_PERIODIC_FLAG") |
| 773 | if p.side_exit or p.side_exit_at_end: |
| 774 | flags.append("HAS_EXIT_FLAG") |
| 775 | if not p.infallible: |
| 776 | flags.append("HAS_ERROR_FLAG") |
| 777 | if p.error_without_pop: |
| 778 | flags.append("HAS_ERROR_NO_POP_FLAG") |
| 779 | if p.escapes: |
| 780 | flags.append("HAS_ESCAPES_FLAG") |
| 781 | if p.pure: |
| 782 | flags.append("HAS_PURE_FLAG") |
| 783 | if p.no_save_ip: |
| 784 | flags.append("HAS_NO_SAVE_IP_FLAG") |
| 785 | if p.sync_sp: |
| 786 | flags.append("HAS_SYNC_SP_FLAG") |
| 787 | if p.unpredictable_jump: |
| 788 | flags.append("HAS_UNPREDICTABLE_JUMP_FLAG") |
| 789 | if p.needs_guard_ip: |
| 790 | flags.append("HAS_NEEDS_GUARD_IP_FLAG") |
| 791 | if p.records_value: |
| 792 | flags.append("HAS_RECORDS_VALUE_FLAG") |
| 793 | if flags: |
| 794 | return " | ".join(flags) |
| 795 | else: |
| 796 | return "0" |
no test coverage detected
searching dependent graphs…