Global variables
Open
- Dominant language
- Rust
- Stars
- 11
- Forks
- 1
- Avg merge
- 2d 3h
- Merged PRs (30d)
- 47
Description
```c
int z;
void f () { z = 0; }
```
Gives:
```fstar
fn f ()
{
z := 0l;
}
```
With a non-existing `z`. At least, we should properly raise a translation error if we find references to global mutable variables.
We should discuss how to actually support it.
Contributor guide
No contributing guide indexed for this repository
Research direction
No source file, test, or entry point is named. Start by locating the C-to-F* translation path that handles references to global variables, then reproduce the example and trace how the undeclared z is emitted. Done means the invalid global mutable reference produces a translation error; broader support remains a separate design question.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- c, rust
- Domain
- compilers
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 25/100