enable IL to be seen as constant by analyze 70/19370/1
Antoine ELIAS [Fri, 11 Aug 2017 13:59:13 +0000 (15:59 +0200)]
Change-Id: I61e0d43d9600e15af54e264ec09848f468d1271f

scilab/modules/ast/src/cpp/types/implicitlist.cpp

index 467283d..9e30900 100644 (file)
@@ -700,9 +700,14 @@ InternalType* ImplicitList::extract(typed_list* _pArgs)
     return pOut;
 }
 
-ast::Exp * ImplicitList::getExp(const Location & loc)
+ast::Exp* ImplicitList::getExp(const Location & loc)
 {
-    return new ast::DoubleExp(loc, this);
+    if (isComputable()) 
+    {
+        return new ast::DoubleExp(loc, extractFullMatrix());
+    }
+
+    return nullptr;
 }
 
 bool ImplicitList::isTrue()