4 wire width 4 input 0 \A
5 wire width 2 input 1 \S
6 wire width 24 output 2 \Y
11 connect \A { \A [3] \A [1] 1'0 \A [2:0] }
19 equiv_opt -assert opt_reduce -fine
21 select -assert-count 1 t:$demux r:WIDTH=4 %i
28 wire width 2 input 1 \S
29 wire width 24 output 2 \Y
42 equiv_opt -assert opt_reduce -fine
44 select -assert-count 0 t:$demux
51 wire width 5 input 0 \A
52 wire width 2 input 1 \S
53 wire width 160 output 2 \Y
59 connect \S { \S [0] \S [1] 1'1 \S [0] 1'0 }
66 equiv_opt -assert opt_reduce -fine
68 select -assert-count 1 t:$demux r:S_WIDTH=2 %i
75 wire width 5 input 0 \A
76 wire width 20 output 2 \Y
89 equiv_opt -assert opt_reduce -fine
91 select -assert-count 0 t:$demux