modcc : report linear test error. (#1278)
Fix segfault in modcc when min/max used in net_receive. * The error occurred when a synapse that use `max` or `min` expressions in the `net_receive` block: we test for linearity to check whether they can be coalesced; we cannot differentiate the expression; an error is raised but not reported; seg fault. * Fixes ` as_c_double` printing which does not print integers as doubles as intended. Fixes #1275
Showing
- modcc/linearrewriter.cpp 7 additions, 2 deletionsmodcc/linearrewriter.cpp
- modcc/module.cpp 9 additions, 0 deletionsmodcc/module.cpp
- modcc/printer/cexpr_emit.cpp 9 additions, 2 deletionsmodcc/printer/cexpr_emit.cpp
- modcc/symdiff.cpp 7 additions, 2 deletionsmodcc/symdiff.cpp
- test/unit-modcc/test_printers.cpp 32 additions, 32 deletionstest/unit-modcc/test_printers.cpp
- test/unit-modcc/test_symdiff.cpp 25 additions, 0 deletionstest/unit-modcc/test_symdiff.cpp
- test/unit/CMakeLists.txt 1 addition, 0 deletionstest/unit/CMakeLists.txt
- test/unit/mod/non_linear.mod 32 additions, 0 deletionstest/unit/mod/non_linear.mod
- test/unit/test_mechinfo.cpp 14 additions, 0 deletionstest/unit/test_mechinfo.cpp
- test/unit/unit_test_catalogue.cpp 2 additions, 0 deletionstest/unit/unit_test_catalogue.cpp
Please register or sign in to comment