Esempio n. 1
0
 def test_storemap(self):
     a = ir.StoreMap(self.var_a, self.var_b, self.var_c, self.loc1)
     b = ir.StoreMap(self.var_a, self.var_b, self.var_c, self.loc1)
     c = ir.StoreMap(self.var_a, self.var_b, self.var_c, self.loc2)
     d = ir.StoreMap(self.var_d, self.var_b, self.var_c, self.loc1)
     e = ir.StoreMap(self.var_a, self.var_d, self.var_c, self.loc1)
     f = ir.StoreMap(self.var_a, self.var_b, self.var_d, self.loc1)
     self.check(a, same=[b, c], different=[d, e, f])
Esempio n. 2
0
 def op_STORE_MAP(self, inst, dct, key, value):
     stmt = ir.StoreMap(
         dct=self.get(dct), key=self.get(key), value=self.get(value), loc=self.loc
     )
     self.current_block.append(stmt)