自校验代码

self-checking code