Ignore:
Timestamp:
Sep 6, 2015, 4:22:31 PM (4 years ago)
Author:
nmedfort
Message:

Temporary check in

File:
1 edited

Legend:

Unmodified
Added
Removed
  • icGREP/icgrep-devel/icgrep/pablo/printer_pablos.cpp

    r4718 r4762  
    193193    if (expr == nullptr) {
    194194        strm << "<null-expr>";
    195     }
    196     else if (isa<const Zeroes>(expr)) {
     195    } else if (isa<const Zeroes>(expr)) {
    197196        strm << "0";
    198     }
    199     else if (isa<const Ones>(expr)) {
     197    } else if (isa<const Ones>(expr)) {
    200198        strm << "1";
    201     }
    202     else if (const Var * var = dyn_cast<const Var>(expr)) {
     199    } else if (const Var * var = dyn_cast<const Var>(expr)) {
    203200        strm  << var->getName();
    204     }
    205     else if (const Next * next = dyn_cast<const Next>(expr)) {
     201    } else if (const Next * next = dyn_cast<const Next>(expr)) {
    206202        strm << "Next(" << next->getName() << ")";
    207     }
    208     else if (const Statement * stmt = dyn_cast<Statement>(expr)) {
     203    } else if (const If * ifstmt = dyn_cast<If>(expr)) {
     204        strm << "if ";
     205        print(ifstmt->getCondition(), strm);
     206    } else if (const While * whl = dyn_cast<While>(expr)) {
     207        strm << "while ";
     208        print(whl->getCondition(), strm);
     209    } else if (const Statement * stmt = dyn_cast<Statement>(expr)) {
    209210        strm << stmt->getName();
    210     }
    211     else {
     211    } else {
    212212        strm << "**UNKNOWN Pablo Expression type **\n" << "\n";
    213213    }
Note: See TracChangeset for help on using the changeset viewer.