mirror of
https://github.com/data61/MP-SPDZ.git
synced 2026-01-09 05:27:56 -05:00
22 lines
401 B
Python
Executable File
22 lines
401 B
Python
Executable File
#!/usr/bin/env python3
|
|
|
|
import sys, os
|
|
sys.path.append(os.curdir)
|
|
|
|
from Compiler.program import Program, defaults
|
|
|
|
opts = defaults()
|
|
opts.ring = 64
|
|
|
|
prog = Program(['direct_compilation'], opts)
|
|
|
|
from Compiler.library import print_ln
|
|
from Compiler.types import sint
|
|
|
|
print_ln('%s', (sint(0) < sint(1)).reveal())
|
|
|
|
prog.finalize()
|
|
|
|
import subprocess
|
|
subprocess.run(['./emulate.x', 'direct_compilation'])
|