daphne-eu / daphne

DAPHNE: An Open and Extensible System Infrastructure for Integrated Data Analysis Pipelines
Apache License 2.0
68 stars 62 forks source link

Bug potentially related to type inference and loops #819

Open pdamme opened 2 months ago

pdamme commented 2 months ago

The following DaphneDSL script seems to make the DAPHNE compiler get stuck:

z = [0];
x = [1.0];
for(i in 1:2)
    z = z + x;
print(z);

When the first line is changed to z = [0.0]; it runs smoothly and prints the expected result:

DenseMatrix(1x1, double)
2