simit-lang / simit

A language for computing on sparse systems
http://simit-lang.org
Other
454 stars 52 forks source link

Assert Failed assignment lhs contains slice #101

Open huangjd opened 7 years ago

huangjd commented 7 years ago

Input

export func main()

var A : tensor[3,3](int);
var B : tensor[3,3](int);
var C : tensor[3,3](int);

A(:,:) = B(:,:) + C(:,:);

end

Error message

Please report it to http://issues.simit-lang.org
 Condition failed: isa<E>(e)
 Wrong Expr type (.tmpfree0,.tmpfree1 A(.tmpfree0,.tmpfree1))

Similar error occurs when lhs of assignment has slice indices.

For example:

export func main()

var A : tensor[3,3](int);
var B : tensor[3](int);
var C : tensor[3](int);

A(:,1) = B+C;

end