cana.function_generation.rof module
Syntactic read-once (ROF) expression builders.
Builders produce variables a0…a{k-1} with symbolic & / |.
Each variable appears once.
- cana.function_generation.rof.half_or_half_and(k)[source]
(a0 | … | a{k/2-1}) & a{k/2} & … & a{k-1}(even k).- Parameters:
k (int)
- Return type:
str
- cana.function_generation.rof.pairwise_and_or(k)[source]
(a0 & a1) | (a2 & a3) | …(even k).- Parameters:
k (int)
- Return type:
str
- cana.function_generation.rof.pairwise_or_and(k)[source]
(a0 | a1) & (a2 | a3) & …(even k).- Parameters:
k (int)
- Return type:
str