* 2.4.x:
utils/str.3: Fix typeface for mathematics.
sys/tests.at: Add full stops after header comments.
codec/codec.3: Fix spacing after ellipsis.
utils/t/bits-testgen.py: Set the `SEED' from the command-line correctly.
utils/t/bits-testgen.py: Make `arg' return arguments in the right order.
decoding errors.
.PP
If you do not set any of the
-.BR CDCF_IGN ...
+.BR CDCF_IGN ...\&
flags, a decoder should only accept the exact encoding that the
corresponding encoder would produce (with
.I maxline
AT_CHECK([$mdup 3:4])
AT_CHECK([$mdup 4:3])
-## Overlapping sources and destinations
+## Overlapping sources and destinations.
AT_CHECK([$mdup 4:3 3:5 5:6])
-## Repeated sources
+## Repeated sources.
AT_CHECK([$mdup 3:4 3:3 3:-1])
AT_CHECK([$mdup 5:8 3:4 3:5 4:6])
-## Cycles
+## Cycles.
AT_CHECK([$mdup 5:7 3:4 3:5 4:6 5:3])
AT_CHECK([$mdup 5:8 3:4 3:5 4:6 5:3])
The function
.B str_sanitize
copies at most
-.I sz \- 1
+.I sz
+\- 1
characters from the string
.I p
to
LIMIT = 1 << WD
MASK = LIMIT - 1
-SYS.argv.pop()
+ARGS = SYS.argv[1:]; ARGS.reverse()
def arg(default = None):
- if len(SYS.argv):
- return SYS.argv.pop()
- else:
- return default
+ if len(ARGS): return ARGS.pop()
+ else: return default
R.seed(None)
-SEED = int(arg(R.randrange(0, 1 << 32)))
+seed = arg()
+if seed is None: SEED = R.randrange(0, 1 << 32)
+else: SEED = int(seed, 0)
R.seed(SEED)
print '### Test vectors for 64-bit arithmetic macros'