Some dead code has been transformed into undefined behavior . Undefined behavior of C.Running with more than one device or emulator attached could lead to undefined behavior . In C, that is undefined behavior . Combinations with other parts of speech
Usage with adjectives
More
In C this is Undefined Behavior . But alas in C, this is undefined behavior and. Running with more than one device or emulator attached could lead to undefined behavior . Greg: How about undefined behavior , though? Certain pointer operations may result in undefined behavior :. Here are two examples of code with undefined behavior :. Why does undefined behaviour exist? Effective C++ programmers do their best to steer clear of undefined behavior . But this code actually leads to undefined behavior . Allowed by compiler, but result is undefined behavior . 然而,C/C++标准将这种情况归类为“未定义行为 ”。 C++ Standard defines such situation as undefined behavior . 一类不那么为人所知的未定义行为 存在于大多数优化、领先的编译器的中间表达(IR)里。 A less well-known kind of undefined behavior exists in the intermediate representation(IR) for most optimizing, ahead-of-time compilers. 例如PNaCl定义了一个小的具有减少未定义行为 的IR的可移植子集以及位码编码的稳定版本。 For example PNaCl defines a small portable subset of the IR with reduced undefined behavior , and a stable version of the bitcode encoding. 数据竞争会导致未定义行为 ,难以在运行时追踪,并且难以诊断和修复;. Data races cause undefined behavior and can be difficult to diagnose and fix when you're trying to track them down at runtime; 但是如果JeffDean的代码里有未定义行为 ,这时会有一匹踩着彩虹降临的独角兽,给所有人带来免费的冰激凌。 When Jeff Dean's code has undefined behavior , a unicorn rides in on a rainbow and gives everybody free ice cream. 如果某一操作在文档中被定为未定义行为 ,编译器就可以假设该操作在符合标准的程序中永远不会发生。 Documenting an operation as undefined behavior allows compilers to assume that this operation will never happen in a conforming program. Undefined behavior : a has type A*, A not a base of B. 以违背这些规则的方式添加common_type特化的程序拥有未定义行为 。 A program that adds common_type specializations in violation of these rules has undefined behavior . 流经有返回值的函数(除了main)的函数尾而不经过return语句是未定义行为 。 Flowing off the end of a value-returning function(except main) without a return statement is undefined behavior . 控制流出有返回值的函数(除了main)的结尾而不经过return语句是未定义行为 。 Flowing off the end of a value-returning function(except main) without a return statement is undefined behavior . 以违背这些规则的方式添加特化的程序拥有未定义行为 。 A program that adds common_type specializations in violation of these rules has undefined behavior . 但是,在生产代码中使用这些语言需要你手动管理内存并了解可能导致未定义行为 的所有方法。 However, using those languages in production code requires you to manage memory manually and know all the ways you might cause undefined behavior .". 问:在本博中的Fermat代码会执行有符号整数溢出或其他未定义行为 吗?? Q: Does the Fermat code in this post execute any signed integer overflows or other undefined behaviors ? 这是真的:一个带有未定义行为 的程序可以(could)删除你的硬盘。 It's true: a program with undefined behavior could erase your hard drive. C-可以将具有未定义行为 的分支假定为不可达,并作为死代码进行优化?? Can branches with undefined behavior be assumed unreachable and optimized as dead code?
Display more examples
Results: 37 ,
Time: 0.0161