Ignore:
Timestamp:
Sep 15, 2015, 11:33:40 PM (4 years ago)
Author:
nmedfort
Message:

Bug fixes for reassociation pass.

File:
1 edited

Legend:

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

    r4771 r4773  
    33#include <pablo/codegenstate.h>
    44#include <pablo/printer_pablos.h>
     5#include <iostream>
    56#include <unordered_set>
    67
     
    7071
    7172void PabloVerifier::verify(const PabloFunction & function, const bool ignoreUnusedStatements) {
    72     isTopologicallyOrdered(function, ignoreUnusedStatements);
     73    try {
     74        isTopologicallyOrdered(function, ignoreUnusedStatements);
     75    } catch(std::runtime_error err) {
     76        raw_os_ostream out(std::cerr);
     77        PabloPrinter::print(function.getEntryBlock().statements(), out);
     78        out.flush();
     79        throw err;
     80    }
    7381}
    7482
Note: See TracChangeset for help on using the changeset viewer.