Skip to content

Commit 9e5875f

Browse files
committed
Merge branch 'main' of github.com:DistCompiler/pgo
2 parents baaedda + 2accae8 commit 9e5875f

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

omnilink/setbench/ChromaticTree.tla

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ KVInsert(key, value, result) ==
3030
KVInsertIfAbsent(key, value, result) ==
3131
IF key \notin DOMAIN dict
3232
THEN KVInsert(key, value, result)
33-
ELSE /\ result = NoValue
33+
ELSE /\ result = dict[key]
3434
/\ UNCHANGED vars
3535

3636
KVErase(key, result) ==

omnilink/setbench/main.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ struct TreeWorkloadContext: public omnilink::WorkloadContext<TreeWorkloadContext
7373
}
7474

7575
ChromaticTree::KVInsertIfAbsent perform_operation(omnilink::Tag<ChromaticTree::KVInsertIfAbsent>) {
76+
// throw omnilink::UnsupportedException{};
7677
assert(tid == thread_idx);
7778
int32_t key = rand_kv();
7879
int32_t value = rand_kv();
@@ -81,6 +82,7 @@ struct TreeWorkloadContext: public omnilink::WorkloadContext<TreeWorkloadContext
8182
}
8283

8384
ChromaticTree::KVContains perform_operation(omnilink::Tag<ChromaticTree::KVContains>) {
85+
// throw omnilink::UnsupportedException{};
8486
assert(tid == thread_idx);
8587
int32_t key = rand_kv();
8688
bool result = workload_context.data_structure.contains(thread_idx, key);
@@ -95,6 +97,7 @@ struct TreeWorkloadContext: public omnilink::WorkloadContext<TreeWorkloadContext
9597
}
9698

9799
ChromaticTree::KVRangeQuery perform_operation(omnilink::Tag<ChromaticTree::KVRangeQuery>) {
100+
// throw omnilink::UnsupportedException{};
98101
assert(tid == thread_idx);
99102
int32_t lo = rand_kv();
100103
int32_t hi = rand_kv();

0 commit comments

Comments
 (0)