Repository navigation
Conversation
Casting u8 to i32 zero-extends correctly via arith.extui, but the result is a signed i32. Marking it unsigned made downstream >> use arith.shrui (logical shift) instead of arith.shrsi (arithmetic shift). Only add to _ssa_unsigned when the target type itself is unsigned. Fixes #418. This pull request includes code written with the assistance of AI. The code has not yet been reviewed by a human. Generated with [Devin](https://devin.ai) Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Contributor
|
Bugbot is not enabled for your account, so this pull request was not reviewed. Enable Bugbot in the Cursor dashboard to get automatic reviews on future PRs. |
…zers Add _fold_const_binary to fold BinaryOperation on integer literals (e.g. `0 - 1`, `65536 * 2`) into a Literal. Handles +, -, *, /, %, <<, >>, &, |, ^. Unwraps CastExpression and UnaryOperation(-) to reach the raw literal. Applied in generate_const (const declarations) and generate_static (mutable statics with const-referencing initializers). Also extends _resolve_const_value to fold BinaryOperation initializers. This pull request includes code written with the assistance of AI. The code has not yet been reviewed by a human. Generated with [Devin](https://devin.ai) Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
…410) Two fixes: 1. String escape validator (#408): the valid escape backslash was rejected because the Python string literal for two backslashes was compared against a single backslash character. Fixed to check a single backslash. Escaped quotes already worked; the bug was in the validator rejecting backslash before the lexer could emit it. 2. Reverse for loops (#410): for i in n-1 to 0 with no explicit step now detects the direction at runtime. The C backend emits a ternary step and condition. The MLIR backend returns None from _constant_step when no step is given, forcing the cf lowering path which handles runtime direction via arith.select on the step and comparison predicate. 'to' is exclusive in both directions: 0 to 4 gives 0,1,2,3; 4 to 0 gives 4,3,2,1. Vectorization pragmas are suppressed for no-step loops since the direction is not known at compile time. Tests: 8 new tests in test_escaped_strings.py. All 1278 unit tests pass. This pull request includes code written with the assistance of AI. The code has not yet been reviewed by a human. Generated with [Devin](https://devin.ai) Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
The flow CLI suppressed all stderr from the Flow compiler with 2>/dev/null, leaving only "FLOW compilation failed" with no detail. Now captures stderr to a temp file and prints it on failure. Also adds regression tests for transitive const visibility (#411), which already works correctly with dot-path imports. This pull request includes code written with the assistance of AI. The code has not yet been reviewed by a human. Generated with [Devin](https://devin.ai) Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Struct literal returns with embedded function calls already work correctly. The original failure was likely caused by error suppression (#413) hiding the real diagnostic. Adds 5 regression tests covering binary ops, function calls, pointer fields, nested structs, and mixed initializers. This pull request includes code written with the assistance of AI. The code has not yet been reviewed by a human. Generated with [Devin](https://devin.ai) Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Vectorization pragmas (pragma clang loop vectorize(enable), pragma GCC ivdep) were always-on for for loops with explicit steps. This is unsafe for loops with data-dependent control flow, function calls, or floating-point accumulation with conditional updates. Added _loop_body_is_simple() to check whether the loop body contains only straight-line assignments. Pragmas are now only emitted when the body has no if/match, no break/continue, no function calls, and no nested loops. All 1294 unit tests pass. This pull request includes code written with the assistance of AI. The code has not yet been reviewed by a human. Generated with [Devin](https://devin.ai) Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
String + string already works correctly via flow_strcat. The original failure was likely caused by error suppression (#413). Adds 5 regression tests covering literal concat, variable concat, three-way concat, concat in print, and concat in function return. This pull request includes code written with the assistance of AI. The code has not yet been reviewed by a human. Generated with [Devin](https://devin.ai) Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Add flow.toml [conventions] and [build] sections with a flow check command that warns when source files match avoid patterns. New modules: - src/flow/conventions.py: reads flow.toml for avoid patterns, build settings, and preferred idioms. Substring or regex pattern matching. - src/flow/check.py: flow check command. Scans .flow files for convention violations. flow init now writes template [build], [conventions], and [patterns] sections to flow.toml. The flow CLI dispatches flow check to the new module. Tests: 8 new tests in test_conventions.py. All 1299 unit tests pass. This pull request includes code written with the assistance of AI. The code has not yet been reviewed by a human. Generated with [Devin](https://devin.ai) Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
This was referenced Aug 11, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Fixes 7 issues and adds 1 feature:
Changes
Test plan
Closes #408, #410, #411, #412, #413, #414, #415.
This pull request includes code written with the assistance of AI.
The code has not yet been reviewed by a human.
Generated with Devin