(self)
| 942 | self.recommended.add(key) |
| 943 | |
| 944 | def expected_communication(self): |
| 945 | if self.options.ring: |
| 946 | bit_length = int(self.options.ring) |
| 947 | elif self.options.prime: |
| 948 | bit_length = self.prime.bit_length() |
| 949 | else: |
| 950 | # check against OnlineOptions.cpp |
| 951 | bit_length = max(self.required_bit_length("p"), 128) |
| 952 | bit_length = int(math.ceil(bit_length / 64) * 64) |
| 953 | length = int(math.ceil(bit_length / 8)) |
| 954 | return expected_communication( |
| 955 | self.options.execute, self.req_num or Tape.ReqNum(), length) |
| 956 | |
| 957 | def warn_about_slow_loop(self): |
| 958 | if not self.warned_about['loop']: |
no test coverage detected