local assignments

This commit is contained in:
Edward Chen
2022-01-19 21:52:06 -05:00
parent 996ee74c76
commit 616aea7475
2 changed files with 5 additions and 1 deletions

View File

@@ -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

View File

@@ -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);