mirror of
https://github.com/circify/circ.git
synced 2026-05-14 03:00:33 -04:00
local assignments
This commit is contained in:
@@ -104,4 +104,4 @@ mpc_test 2 ./examples/C/mpc/unit_tests/array_tests/2pc_array_sum.c
|
||||
# mpc_test 2 ./examples/C/mpc/ilp_benchmarks/2pc_ilp_bench_9.c
|
||||
# mpc_test 2 ./examples/C/mpc/ilp_benchmarks/2pc_ilp_bench.c
|
||||
|
||||
mpc_test 2 ./examples/C/mpc/2pc_millionaires.c
|
||||
# mpc_test 2 ./examples/C/mpc/2pc_millionaires.c
|
||||
|
||||
@@ -627,14 +627,18 @@ pub fn to_aby(ir: Computation, path_buf: &PathBuf, lang: &String, cm: &String) {
|
||||
|
||||
let partitions = partition(&ir, &path_buf, &lang);
|
||||
|
||||
let mut local_share_maps: Vec<SharingMap> = Vec::new();
|
||||
for p in partitions {
|
||||
let s_map = assign(&ir, cm);
|
||||
local_share_maps.push(s_map.clone());
|
||||
println!("s_map made!");
|
||||
for (key, value) in &*s_map {
|
||||
println!("{} : {:#?}", key, value);
|
||||
}
|
||||
}
|
||||
|
||||
// for now, use local assignments for global assignment
|
||||
|
||||
// let s_map: SharingMap = assign(&ir, cm);
|
||||
let s_map = some_arith_sharing(&ir);
|
||||
let mut converter = ToABY::new(md, s_map, path_buf, lang);
|
||||
|
||||
Reference in New Issue
Block a user