Skip to content

Commit 3729dc6

Browse files
committed
PBVDDs are default now
1 parent 89dfa66 commit 3729dc6

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

tools/bitme.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ def __init__(self, sid_line, value, var_line = None, bvdd = None, cflobvdd = Non
9090
assert sid_line.is_unsigned_value(value)
9191

9292
if Values.BVDD:
93-
self.bvdd = BVDD.BVDD.constant(value)
93+
self.bvdd = BVDD.PBVDD.constant(value)
9494
if Values.CFLOBVDD:
9595
self.cflobvdd = CFLOBVDD.CFLOBVDD.byte_constant(
9696
Values.CFLOBVDD_level,
@@ -102,7 +102,7 @@ def __init__(self, sid_line, value, var_line = None, bvdd = None, cflobvdd = Non
102102
Values.total_number_of_constants += 1
103103
elif isinstance(var_line, Variable):
104104
if Values.BVDD:
105-
self.bvdd = BVDD.BVDD.projection(var_line.input_index)
105+
self.bvdd = BVDD.PBVDD.projection(var_line.input_index)
106106
if Values.CFLOBVDD:
107107
self.cflobvdd = CFLOBVDD.CFLOBVDD.byte_projection(
108108
Values.CFLOBVDD_level,
@@ -1799,9 +1799,9 @@ def main():
17991799
bmc(bitwuzla_solver, kmin, kmax, args)
18001800

18011801
if Values.BVDD:
1802-
BVDD.BVDD.print_profile()
1802+
BVDD.PBVDD.print_profile()
18031803
if Values.CFLOBVDD:
1804-
BVDD.BVDD.print_profile()
1804+
BVDD.PBVDD.print_profile()
18051805
CFLOBVDD.CFLOBVDD.print_profile()
18061806

18071807
print_separator('#')

tools/bvdd.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1106,10 +1106,10 @@ def compute_ternary(self, op, bvdd2, bvdd3, op_id = None, ternary = None):
11061106
def print_profile():
11071107
BVDD.print_profile()
11081108
print("PBVDD cache profile:")
1109-
print(f"unary operators: {utilization(PBVDD_cached.compute_unary_hits, len(PBVDD_cached.compute_unary_cache))}")
1110-
print(f"binary operators: {utilization(PBVDD_cached.compute_binary_hits, len(PBVDD_cached.compute_binary_cache))}")
1111-
print(f"ite operators: {utilization(PBVDD_cached.compute_ite_hits, len(PBVDD_cached.compute_ite_cache))}")
1112-
print(f"ternary operators: {utilization(PBVDD_cached.compute_ternary_hits, len(PBVDD_cached.compute_ternary_cache))}")
1109+
print(f"unary operators: {utilization(PBVDD_cached.compute_unary_hits, len(PBVDD_cached.compute_unary_cache))}")
1110+
print(f"binary operators: {utilization(PBVDD_cached.compute_binary_hits, len(PBVDD_cached.compute_binary_cache))}")
1111+
print(f"ite operators: {utilization(PBVDD_cached.compute_ite_hits, len(PBVDD_cached.compute_ite_cache))}")
1112+
print(f"ternary operators: {utilization(PBVDD_cached.compute_ternary_hits, len(PBVDD_cached.compute_ternary_cache))}")
11131113

11141114
class PBVDD(PBVDD_cached):
11151115
pass

0 commit comments

Comments
 (0)