示例#1
0
 def __to_cryptol__(self, ty : Any) -> Any:
     return cryptoltypes.CryptolLiteral(self.name()).__to_cryptol__(ty)
示例#2
0
 def __init__(self, code : Union[str, cryptoltypes.CryptolJSON]):
     if isinstance(code, str):
         self.expression = cryptoltypes.CryptolLiteral(code)
     else:
         self.expression = code
示例#3
0
def cry(exp):
    return cryptoltypes.CryptolLiteral(exp)
示例#4
0
 def __to_cryptol_str__(self) -> str:
     return cryptoltypes.CryptolLiteral(self.name()).__to_cryptol_str__()
示例#5
0
 def __to_cryptol__(self) -> cryptoltypes.JSON:
     return cryptoltypes.CryptolLiteral(self.name()).__to_cryptol__()
示例#6
0
文件: llvm.py 项目: pnwamk/argo
 def __to_cryptol__(self, ty: Any) -> Any:
     if self.name is None:
         self.name = self.spec.get_fresh_name()
     return cryptoltypes.CryptolLiteral(self.name).__to_cryptol__(ty)