Echo icon indicating copy to clipboard operation
Echo copied to clipboard

ast: broken phi in loops

Open ZingBallyhoo opened this issue 2 years ago • 0 comments

can be seen on the created ast in https://github.com/Washi1337/Echo/blob/master/test/Core/Echo.Ast.Tests/AstParserTest.cs#L293

image

blue box: variable is assigned twice red box: use of undefined variable


I am also seeing a KeyNotFoundException at https://github.com/Washi1337/Echo/blob/master/src/Core/Echo.Ast/Construction/BlockTransformer.cs#L199 when parsing some asts. I've repalced this with _context.IncrementVariableVersion(variable) locally but I don't know if this is the correct fix

ZingBallyhoo avatar Aug 09 '21 18:08 ZingBallyhoo