'Given two dictionaries of Numba IR blocks, check to make sure the
control IR has no array expressions, while the test IR
contains one and only one.'

def _assert_total_rewrite(self, control_ir, test_ir, trivial=False):

    self.assertEqual(len(control_ir), len(test_ir))
    control_block = control_ir[0].body
    test_block = test_ir[0].body
    self._assert_array_exprs(control_block, 0)
    self._assert_array_exprs(test_block, 1)
    if (not trivial):
        self.assertGreater(len(control_block), len(test_block))
