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

Method check

Compiler/instructions_base.py:938–943  ·  view source on GitHub ↗
(cls, arg)

Source from the content-addressed store, hash-verified

936class PlayerNoAF(IntArgFormat):
937 @classmethod
938 def check(cls, arg):
939 if not util.is_constant(arg):
940 raise CompilerError('Player number must be known at compile time')
941 super(PlayerNoAF, cls).check(arg)
942 if arg > 256:
943 raise ArgumentError(arg, 'Player number > 256')
944
945class String(ArgFormat):
946 length = 16

Callers

nothing calls this directly

Calls 4

CompilerErrorClass · 0.85
ArgumentErrorClass · 0.85
is_constantMethod · 0.80
checkMethod · 0.45

Tested by

no test coverage detected