Closed Bug 462084 Opened 16 years ago Closed 16 years ago

Add State.prototype.get to esp.js

Categories

(Developer Infrastructure :: Source Code Analysis, defect)

Other Branch
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: jorendorff, Unassigned)

References

Details

Attachments

(1 file)

Attached patch v1 (deleted) — Splinter Review
state.get(var_decl) -> abstract value Return the union of all possible values of the given variable at this state.
Attachment #345214 - Flags: review?(dmandelin)
Comment on attachment 345214 [details] [diff] [review] v1 The fragility of our strategy for composing meet and join functions kind of scares me. I don't think we need to fix it yet, but please add a comment giving the preconditions for the zero_nonzero join function before pushing.
Attachment #345214 - Flags: review?(dmandelin) → review+
This is what you meant, right? function join(v1, v2) { + // Here we can assume that v1 != v2 and neither is TOP or NOT_REACHED. if (v1 == 0 || v2 == 0) return ESP.TOP; return Lattice.NONZERO; } http://hg.mozilla.org/users/tglek_mozilla.com/dehydra-gcc/rev/125235b5a9aa
Status: NEW → RESOLVED
Closed: 16 years ago
Resolution: --- → FIXED
The version I pushed has a shorter implementation of esp.js's join() function because dmandelin pointed out that NOT_REACHED will never be passed there.
Product: Core → Firefox Build System
Product: Firefox Build System → Developer Infrastructure
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: