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

Method finalize_tape

Compiler/program.py:514–523  ·  view source on GitHub ↗
(self, tape)

Source from the content-addressed store, hash-verified

512 print('Hash:', h.hexdigest())
513
514 def finalize_tape(self, tape):
515 if not tape.purged:
516 curr_tape = self.curr_tape
517 self.curr_tape = tape
518 tape.optimize(self.options)
519 self.curr_tape = curr_tape
520 tape.write_bytes()
521 if self.options.asmoutfile:
522 tape.write_str(self.options.asmoutfile + "-" + tape.name)
523 tape.purge()
524
525 @property
526 def curr_tape(self):

Callers 2

new_tapeMethod · 0.95
on_first_callMethod · 0.80

Calls 4

write_strMethod · 0.80
optimizeMethod · 0.45
write_bytesMethod · 0.45
purgeMethod · 0.45

Tested by

no test coverage detected