aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen/InputGen.cc
AgeCommit message (Collapse)Author
2026-10-23fix(stdlib): reject NaN, infinity and hexadecimal text in IS_NUM, STR_TO_NUM ↵_ov4
and INPUT Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-22fix(input): accept the full range of unsigned C integers_ov4
Unsigned C integer targets are parsed as unsigned 64-bit values and checked against the width of the type, so unsigned long long accepts up to 18446744073709551615. Negative numbers are still rejected; signed C integers and INTEGER are unchanged. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-22feat(input)!: validate INPUT and read whole lines into STRING_ov4
Scalar INPUT now reads one whitespace-delimited token through module-local IR helpers instead of scanf, then skips spaces and tabs and consumes one newline. INTEGER, REAL, BOOLEAN (TRUE or FALSE in any case) and CHAR are validated, and bad input or end of input is a runtime error. STRING INPUT reads the rest of the line. The unused scanf and REAL printf format globals are removed. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>