Commit 54d5ab7
Add unary minus to hauntedc parser and fix INT32_FITS macro
- Add Punct::Dash (unary minus) to the hauntedc parser's
unary_expression, enabling expressions like -2147483647 in
_requires/_ensures annotations
- Add SpecInt case for Neg in emit_unop, emitting op_Minus
- Fix INT32_FITS macro in malloc.c to use INT32_MIN properly
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>1 parent 59982f5 commit 54d5ab7
3 files changed
Lines changed: 9 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
709 | 709 | | |
710 | 710 | | |
711 | 711 | | |
| 712 | + | |
| 713 | + | |
| 714 | + | |
| 715 | + | |
| 716 | + | |
| 717 | + | |
| 718 | + | |
712 | 719 | | |
713 | 720 | | |
714 | 721 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
768 | 768 | | |
769 | 769 | | |
770 | 770 | | |
| 771 | + | |
771 | 772 | | |
772 | 773 | | |
773 | 774 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | | - | |
27 | | - | |
| 26 | + | |
28 | 27 | | |
29 | 28 | | |
30 | 29 | | |
| |||
0 commit comments