document undefined behavior