Sat Jan 3 09:28:34 2015 BVEC_TEST Python version: Test the BVEC library. BVEC_ADD_TEST BVEC_ADD adds binary vectors representing integers; I J K = I + J Kb = Ib + Jb -57 92 35 35 66 12 78 78 -17 -87 -104 -104 -49 -78 -127 -127 -92 27 -65 -65 -88 -10 -98 -98 -20 51 31 31 60 -100 -40 -40 80 -30 50 50 -81 -98 -179 -179 BVEC_ADD_TEST: Normal end of execution. BVEC_COMPLEMENT2_TEST BVEC_COMPLEMENT2 returns the twos complement of a (signed) binary vector; 1 1 1 1 0 0 0 1 1 1 0 0 0 0 1 1 1 0 0 1 0 0 0 1 0 1 1 1 0 0 1 1 1 0 1 0 0 1 0 0 0 0 0 1 0 0 0 0 1 0 1 1 1 0 1 1 1 1 1 0 0 0 0 0 0 0 1 1 0 0 1 1 1 1 1 1 0 1 0 0 1 1 1 1 1 0 1 1 1 1 0 0 0 0 0 1 0 0 0 1 BVEC_COMPLEMENT2_TEST Normal end of execution. BVEC_NEXT_TEST BVEC_NEXT computes the "next" BVEC. 0 0 0 0 1 0 0 0 0 1 0 0 1 1 0 0 0 0 1 0 1 0 1 0 0 1 1 0 1 1 1 0 0 0 0 1 1 0 0 1 0 1 0 1 1 1 0 1 0 0 1 1 1 0 1 1 0 1 1 1 1 1 1 1 0 0 0 0 BVEC_NEXT_TEST: Normal end of execution. BVEC_PRINT_TEST BVEC_PRINT prints a binary vector. BVEC: 0 0 1 1 1 0 1 0 0 1 BVEC_PRINT_TEST Normal end of execution. BVEC_SUB_TEST BVEC_SUB subtracts binary vectors representing integers; I J K = I - J Kb = Ib - Jb -57 92 -149 -149 66 12 54 54 -17 -87 70 70 -49 -78 29 29 -92 27 -119 -119 -88 -10 -78 -78 -20 51 -71 -71 60 -100 160 160 80 -30 110 110 -81 -98 17 17 BVEC_SUB_TEST: Normal end of execution. BVEC_TO_I4_TEST BVEC_TO_I4 converts a signed binary vector to an integer; I --> BVEC --> I 1 -3 1 1 1 1 1 1 1 1 0 1 -3 -2 1 1 1 1 1 1 1 1 1 0 -2 -1 1 1 1 1 1 1 1 1 1 1 -1 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 1 1 2 0 0 0 0 0 0 0 0 1 0 2 3 0 0 0 0 0 0 0 0 1 1 3 4 0 0 0 0 0 0 0 1 0 0 4 5 0 0 0 0 0 0 0 1 0 1 5 6 0 0 0 0 0 0 0 1 1 0 6 7 0 0 0 0 0 0 0 1 1 1 7 8 0 0 0 0 0 0 1 0 0 0 8 9 0 0 0 0 0 0 1 0 0 1 9 10 0 0 0 0 0 0 1 0 1 0 10 BVEC_TO_I4_TEST Normal end of execution. BVEC_UNIFORM_TEST BVEC_UNIFORM computes a random BVEC. Initial seed is 123456789 0 1 1 1 1 1 0 0 0 1 1 1 1 0 1 0 0 1 1 1 1 0 1 1 0 1 1 1 0 0 1 1 0 1 0 0 1 0 0 0 0 0 1 1 0 1 1 0 1 0 1 0 0 0 1 0 0 1 0 1 1 1 0 1 1 1 0 1 0 0 1 0 0 0 1 1 1 1 1 1 1 1 1 0 0 0 0 1 0 0 1 0 1 0 0 0 1 1 0 0 BVEC_UNIFORM_TEST: Normal end of execution. I4_TO_BVEC_TEST I4_TO_BVEC converts an integer to a signed binary vector. I --> BVEC --> I -3 1 1 1 1 1 1 1 1 0 1 -3 -2 1 1 1 1 1 1 1 1 1 0 -2 -1 1 1 1 1 1 1 1 1 1 1 -1 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 1 1 2 0 0 0 0 0 0 0 0 1 0 2 3 0 0 0 0 0 0 0 0 1 1 3 4 0 0 0 0 0 0 0 1 0 0 4 5 0 0 0 0 0 0 0 1 0 1 5 6 0 0 0 0 0 0 0 1 1 0 6 7 0 0 0 0 0 0 0 1 1 1 7 8 0 0 0 0 0 0 1 0 0 0 8 9 0 0 0 0 0 0 1 0 0 1 9 10 0 0 0 0 0 0 1 0 1 0 10 I4_TO_BVEC_TEST Normal end of execution. I4_UNIFORM_AB_TEST I4_UNIFORM_AB computes pseudorandom values in an interval [A,B]. The lower endpoint A = -100 The upper endpoint B = 200 The initial seed is 123456789 1 -35 2 187 3 149 4 69 5 25 6 -81 7 -23 8 -67 9 -87 10 90 11 -82 12 35 13 20 14 127 15 139 16 -100 17 170 18 5 19 -72 20 -96 I4_UNIFORM_AB_TEST: Normal end of execution. BVEC_TEST: Normal end of execution. Sat Jan 3 09:28:34 2015