

def test_optimize_slicing(data):
    a = symbol('a', discover(b))
    b = symbol('b', discover(data))
    assert optimize((a + 1)[:3], data).isidentical((a[:3] + 1))
    assert optimize((a + b)[:3], data).isidentical((a[:3] + b[:3]))

dataset/ETHPy150Open blaze/blaze/blaze/compute/tests/test_h5py.py test_optimize_slicing/VarMisuse@18/27 `data`->`b`