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

Method is_empty

Compiler/oram.py:450–451  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

448 def has_empty_entry(self):
449 return 1 - tree_reduce(operator.mul, [1 - bit for bit in self.get_empty_bits()])
450 def is_empty(self):
451 return tree_reduce(operator.mul, list(self.get_empty_bits()))
452 def reveal(self):
453 Program.prog.curr_tape.start_new_basicblock()
454 res = RAM(self.size, [t.clear_type for t in self.entry_type], \

Callers 2

prepare_deepestMethod · 0.45
opMethod · 0.45

Calls 2

get_empty_bitsMethod · 0.95
tree_reduceFunction · 0.70

Tested by

no test coverage detected