rust/src/comp/middle/tstate
Tim Chevalier 1c786bcc82 Initialize all constraints to False
Previously, typestate was initializing the init constraint for
a declared-but-not-initialized variable (like x in "let x;") to False,
but other constraints to Don't-know. This led to over-lenient results
when a variable was used before declaration (see the included test
case). Now, everything gets initialized to False in the prestate/poststate-
finding phase, and Don't-know should only be used in pre/postconditions.

This aspect of the algorithm really needs formalization (just on paper),
but for now, this closes #700
2011-08-05 15:25:52 -07:00
..
ann.rs Reformat for new syntax 2011-07-27 15:54:33 +02:00
annotate.rs Revert "rustc: Introduce the concept of inline to the AST" 2011-08-05 11:38:06 -07:00
auxiliary.rs Revert "rustc: Introduce the concept of inline to the AST" 2011-08-05 11:38:06 -07:00
bitvectors.rs Initialize all constraints to False 2011-08-05 15:25:52 -07:00
ck.rs Revert "rustc: Introduce the concept of inline to the AST" 2011-08-05 11:38:06 -07:00
collect_locals.rs Revert "rustc: Introduce the concept of inline to the AST" 2011-08-05 11:38:06 -07:00
pre_post_conditions.rs Revert "rustc: Introduce the concept of inline to the AST" 2011-08-05 11:38:06 -07:00
states.rs Initialize all constraints to False 2011-08-05 15:25:52 -07:00
tritv.rs Initialize all constraints to False 2011-08-05 15:25:52 -07:00