mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 06:38:20 +00:00
fix for ZAM identification of common subexpressions
This commit is contained in:
parent
e0e6c462ce
commit
b0e21b7e64
1 changed files with 7 additions and 6 deletions
|
@ -43,13 +43,14 @@ TraversalCode CSE_ValidityChecker::PreStmt(const Stmt* s) {
|
||||||
|
|
||||||
TraversalCode CSE_ValidityChecker::PreExpr(const Expr* e) {
|
TraversalCode CSE_ValidityChecker::PreExpr(const Expr* e) {
|
||||||
if ( e == start_e ) {
|
if ( e == start_e ) {
|
||||||
ASSERT(! have_start_e);
|
if ( ! have_start_e ) {
|
||||||
have_start_e = true;
|
have_start_e = true;
|
||||||
|
|
||||||
// Don't analyze the expression, as it's our starting
|
// Don't analyze the expression, as it's our starting
|
||||||
// point and we don't want to conflate its properties
|
// point and we don't want to conflate its properties
|
||||||
// with those of any intervening expressions.
|
// with those of any intervening expressions.
|
||||||
return TC_CONTINUE;
|
return TC_CONTINUE;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( e == end_e ) {
|
if ( e == end_e ) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue