Assert
=================


.. c:function:: void assert(bool* Input, bool* output)

判断输入是否为 True。

.. math::

    output_i = \begin{cases}
        \text{True}, & \text{if } Input_i = \text{True} \\
        \text{False}, & \text{if } Input_i = \text{False}
    \end{cases}

输入：
    - **Input** - 输入数据地址（布尔类型）。

输出：
    - **output** - 计算结果地址（布尔类型）。

支持平台：
    ``FT78NE``
    ``MT7004``

.. note::
    - 本算子只有一个版本

**C调用示例：**

.. code-block:: c
    :linenos:
    :emphasize-lines: 10

    // FT78NE/MT7004 示例（共享存储）
    #include <stdio.h>
    #include <stdbool.h>
    
    int main(int argc, char* argv[]) {
        bool *input  = (bool *)0xA0000000;  
        bool *output = (bool *)0xC0000000;  
        assert_s(input, output);
        return 0;
    }

