File tree Expand file tree Collapse file tree
include/mlir/Dialect/MQTOpt/Transforms/Decomposition
lib/Dialect/MQTOpt/Transforms Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1515#undef eigen_assert
1616#define eigen_assert (x ) \
1717 if (!(x)) { \
18- throw ( std:: assert (false && std::to_string (std::stacktrace::current ())) ); \
18+ assert (std::to_string (std::stacktrace::current ()). c_str () && false ); \
1919 }
2020
2121#include " EulerBasis.h"
Original file line number Diff line number Diff line change 1212
1313#define HAVE_STACKTRACE
1414#include < stacktrace>
15+
1516#undef eigen_assert
1617#define eigen_assert (x ) \
1718 if (!(x)) { \
18- throw ( std:: assert (false && std::to_string (std::stacktrace::current ())) ); \
19+ assert (std::to_string (std::stacktrace::current ()). c_str () && false ); \
1920 }
2021
2122#include < cstdint>
Original file line number Diff line number Diff line change 2020#undef eigen_assert
2121#define eigen_assert (x ) \
2222 if (!(x)) { \
23- throw ( std:: assert (false && std::to_string (std::stacktrace::current ())) ); \
23+ assert (std::to_string (std::stacktrace::current ()). c_str () && false ); \
2424 }
2525
2626namespace mqt ::ir::opt::decomposition {
Original file line number Diff line number Diff line change 3737#undef eigen_assert
3838#define eigen_assert (x ) \
3939 if (!(x)) { \
40- throw ( std:: assert (false && std::to_string (std::stacktrace::current ())) ); \
40+ assert (std::to_string (std::stacktrace::current ()). c_str () && false ); \
4141 }
4242
4343namespace mqt ::ir::opt::decomposition {
Original file line number Diff line number Diff line change 3535#undef eigen_assert
3636#define eigen_assert (x ) \
3737 if (!(x)) { \
38- throw ( std:: assert (false && std::to_string (std::stacktrace::current ())) ); \
38+ assert (std::to_string (std::stacktrace::current ()). c_str () && false ); \
3939 }
4040
4141namespace mqt ::ir::opt {
Original file line number Diff line number Diff line change 1919#undef eigen_assert
2020#define eigen_assert (x ) \
2121 if (!(x)) { \
22- throw ( std:: assert (false && std::to_string (std::stacktrace::current ())) ); \
22+ assert (std::to_string (std::stacktrace::current ()). c_str () && false ); \
2323 }
2424
2525namespace mqt ::ir::opt::decomposition {
Original file line number Diff line number Diff line change 4444#undef eigen_assert
4545#define eigen_assert (x ) \
4646 if (!(x)) { \
47- throw ( std:: assert (false && std::to_string (std::stacktrace::current ())) ); \
47+ assert (std::to_string (std::stacktrace::current ()). c_str () && false ); \
4848 }
4949
5050namespace mqt ::ir::opt::decomposition {
Original file line number Diff line number Diff line change 4343#undef eigen_assert
4444#define eigen_assert (x ) \
4545 if (!(x)) { \
46- throw (std::runtime_error ( std:: to_string (std::stacktrace::current ())) ); \
46+ assert (std::to_string (std::stacktrace::current ()). c_str () && false ); \
4747 }
4848
4949namespace mqt ::ir::opt {
You can’t perform that action at this time.
0 commit comments