MCPcopy Create free account
hub / github.com/data61/MP-SPDZ / replace_last_reg

Method replace_last_reg

Compiler/program.py:1119–1124  ·  view source on GitHub ↗
(self, new_reg, last_reg)

Source from the content-addressed store, hash-verified

1117 return res
1118
1119 def replace_last_reg(self, new_reg, last_reg):
1120 args = self.instructions[-1].args
1121 if args[0] is last_reg:
1122 args[0] = new_reg
1123 else:
1124 new_reg.mov(new_reg, new_reg.conv(last_reg))
1125
1126 def __str__(self):
1127 return self.name

Callers 3

load_otherMethod · 0.80
maybe_mulmFunction · 0.80
LTZFunction · 0.80

Calls 1

convMethod · 0.45

Tested by

no test coverage detected