Add initial version of value analysis and dataflow constant propagation
This commit is contained in:
@@ -471,7 +471,11 @@ pub trait Labeller<'a> {
|
||||
/// Escape tags in such a way that it is suitable for inclusion in a
|
||||
/// Graphviz HTML label.
|
||||
pub fn escape_html(s: &str) -> String {
|
||||
s.replace('&', "&").replace('\"', """).replace('<', "<").replace('>', ">")
|
||||
s.replace('&', "&")
|
||||
.replace('\"', """)
|
||||
.replace('<', "<")
|
||||
.replace('>', ">")
|
||||
.replace('\n', "<br align=\"left\"/>")
|
||||
}
|
||||
|
||||
impl<'a> LabelText<'a> {
|
||||
|
||||
Reference in New Issue
Block a user