UCSD-PL / refscript

Refinement Types for Scripting Languages
BSD 3-Clause "New" or "Revised" License
65 stars 3 forks source link

Global variable initialization #66

Closed panagosg7 closed 10 years ago

panagosg7 commented 10 years ago

This addresses #65 and adds support for tests like:

https://github.com/UCSD-PL/RefScript/blob/ssajoin/tests/pos/scope/init-04.ts https://github.com/UCSD-PL/RefScript/blob/ssajoin/tests/pos/scope/init-05.ts

https://github.com/UCSD-PL/RefScript/blob/ssajoin/tests/neg/scope/init-05.ts

New additions:

var r; // global
if (...) { r = 1; }

Then r is conservatively considered uninitialized in the end.

ranjitjhala commented 10 years ago

Nice! Assuming that all tests pass?

panagosg7 commented 10 years ago

Yes. All regression tests pass. Haven't checked d3 yet.

ranjitjhala commented 10 years ago

Did that todo/createElt also work btw?

On Oct 15, 2014, at 7:42 AM, Panagiotis Vekris notifications@github.com wrote:

Yes. All regression tests pass. Haven't checked d3 yet.

— Reply to this email directly or view it on GitHub.

panagosg7 commented 10 years ago

There's a classes/createElts.

That one works.

panagosg7 commented 10 years ago

I'm afraid I haven't checked the fb/ folder. (It's not in the regression script)

ranjitjhala commented 10 years ago

Thanks Panos!

ranjitjhala commented 10 years ago

Added the other folder and merged the pr thanks!

On Oct 15, 2014, at 8:13 AM, Panagiotis Vekris notifications@github.com wrote:

I'm afraid I haven't checked the fb/ folder. (It's not in the regression script)

— Reply to this email directly or view it on GitHub.