-
Some rough notes from a conversation @ahejlsberg and I had earlier about trade-offs in the control flow analysis work based on running the real-world code (RWC) tests. For obvious reasons I'll be comp…
-
# Bug Report
Hello,
### 🔎 Search Terms
type narrowing, generic types, control flow analysis
### 🕗 Version & Regression Information
(see Playground) When trying to narrow generic types (…
-
Per #9998 and its many offshoots, we have problems analyzing code like this
``` ts
let x: string | number = "OK";
mystery(() => {
x = 10;
});
if (x === 10) { // Error, we believe this to be …
-
Do control flow analysis to be able to detect statically when a variable can be referenced before assignment. Right now, this is a runtime error, and it doesn't need to be.
-
Possible parts:
- [x] Type inference/checking
- [x] Control flow graph building https://github.com/intellij-rust/intellij-rust/pull/2687
- [ ] Borrow checker
- [x] Move analysis https://github.c…
-
Both of these would enable a lot of optimizations, but CFA / DFA are complex to implement. I suppose the ideal would a 0-CFA that is linear in time instead of cubic (or worse!).
Some starting point…
-
Global Data Flow currently has no support for control flow analysis. We should add that back in.
-
**CFA(Control Flow Analysis)**
I used the following simple QL statement:
```
/**
* @name Control Flow Graph Visualization
* @description This query identifies control flow nodes within a functi…
-
Dear Author,
I have used your example dataset, burkhardt21, for analysis, and I performed variable filtering with the following code:
fs.pp.determine_informative_variables(adata,
…
-
If a variable is assigned in a for loop's body and its else clause, then it should be treated as defined at the loop's end. For example, this code is safe
```python
#pyre-strict
from typing imp…