These are chat archives for symengine/symengine

4th
Feb 2018
Eeshan Gupta
@eeshan9815
Feb 04 2018 04:00
@isuruf What is the best way to debug symengine code during runtime? I am working on Issue #1359 and need some help debugging my code
Isuru Fernando
@isuruf
Feb 04 2018 05:10
you can do cmake -DCMAKE_BUILD_TYPE=Debug . to build in debug mode and use a debugger you like
Nilay Pochhi
@npochhi
Feb 04 2018 17:37
Hi! I'm trying to fix #1386 , but am at loss trying to figure out where we've to make the change. Also, how do we check whether a subexpression has been visited? Do we need to add a boolean quantity is_visited to the Basic class and check accordingly in the value of it while visiting?
Isuru Fernando
@isuruf
Feb 04 2018 20:56
You can't use a variable in Basic class because it is immutable and the objects are shared.
Nilay Pochhi
@npochhi
Feb 04 2018 21:06
Okay. Can you please point out the file where I can try to work on the advancements mentioned in #1386?
Isuru Fernando
@isuruf
Feb 04 2018 21:07
You can keep a dictionary and the result. Search for FreeSymbolsVisitor
Nilay Pochhi
@npochhi
Feb 04 2018 21:08
Okay. Thanks!