Skip to content

Restore compiler demos; fix strncmp libc conflict in cgen - #216

Merged
godofecht merged 2 commits into
mainfrom
feat/compiler-demos-libc-cgen
Aug 5, 2026
Merged

godofecht merged 2 commits into
mainfrom
feat/compiler-demos-libc-cgen

Conversation

@godofecht

Copy link
Copy Markdown
Contributor

Summary

  • Restore claim_address_demo, know_demo, and math_prose_demo (dropped earlier as “Stage-A-only / tier-2 failures”).
  • Fix the real Python-host break: know.flow was passing an array<u8, 256> into flowc_claim_parse(string); bind via a string local first.
  • Expand C generator libc whitelist (strncmp, strncpy, strncat, strchr, strstr, memmove, memcmp) so Flow extern decls no longer conflict with system headers.
  • Restore compiler/scripts/stage_a_smoke.sh and scripts/tools/repo_stats/README.md (referenced by docs; previously stash-only).

Test plan

  • FLOW_HOST=python ./flow run examples/compilers/{claim_address,math_prose,know}_demo.flow → PASS
  • ./compiler/scripts/smoke_know.sh / smoke_math_prose.sh
  • examples/compilers tier-2: 5/5 pass
  • Full verify_examples.py: +1 pass vs baseline (know_demo), no regressions
  • CI green

Made with Cursor

godofecht and others added 2 commits August 5, 2026 21:03
…ilers demos

The three examples/compilers demos carry flow:lenient for the
string vs byte-buffer strict gap (board card
flow-strict-string-buffer-coercions).

Co-Authored-By: Claude Fable 5 <[email protected]>
@godofecht
godofecht merged commit 0dc9422 into main Aug 5, 2026
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant