FreeRTOS/Test/CBMC/proofs/Task/TaskGetCurrentTaskHandle/TaskGetCurrentTaskHandle_harness.c
/*
 * We set pxCurrentTCB to an unconstrained TCB. Then we call
 * xTaskGetCurrentTaskHandle() and check the return value is not NULL
 */
We set pxCurrentTCB to an unconstrained TCB. Then we call
xTaskGetCurrentTaskHandle() and check the return value is not NULL
We set pxCurrentTCB to an unconstrained TCB . Then we call xTaskGetCurrentTaskHandle () and check the return value is not NULL
void harness()
{
    TaskHandle_t xTask;
    BaseType_t xTasksPrepared;
    xTasksPrepared = xPrepareCurrentTCB();
    if( xTasksPrepared != pdFAIL )
    {
        xTask = xTaskGetCurrentTaskHandle();
        __CPROVER_assert( xTask != NULL, "Current task handle is NULL!" );
    }
}
void harness ( ) { TaskHandle_t xTask ; BaseType_t xTasksPrepared ; xTasksPrepared = xPrepareCurrentTCB ( ) ; if ( xTasksPrepared != pdFAIL ) { xTask = xTaskGetCurrentTaskHandle ( ) ; __CPROVER_assert ( xTask != NULL , " " ) ; } }
We set pxCurrentTCB to an unconstrained TCB.
We set pxCurrentTCB to an unconstrained TCB .