Skip to content

Commit

Permalink
Need to include core_mqtt.h in the proofs
Browse files Browse the repository at this point in the history
  • Loading branch information
Skptak committed Aug 19, 2023
1 parent 26f7f69 commit 8de943b
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 2 deletions.
3 changes: 3 additions & 0 deletions test/cbmc/include/core_mqtt_config.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@
#ifndef CORE_MQTT_CONFIG_H_
#define CORE_MQTT_CONFIG_H_

/* core_mqtt.h must precede including this header. */
#include "core_mqtt.h"

/* Mock a network context for the CBMC proofs. */
struct NetworkContext
{
Expand Down
3 changes: 2 additions & 1 deletion test/cbmc/include/event_callback_stub.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@
#ifndef EVENT_CALLBACK_STUB_H_
#define EVENT_CALLBACK_STUB_H_

/* mqtt.h must precede including this header. */
/* core_mqtt.h must precede including this header. */
#include "core_mqtt.h"

/**
* @brief User defined callback for receiving incoming publishes and incoming
Expand Down
3 changes: 3 additions & 0 deletions test/cbmc/include/get_time_stub.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@
#ifndef GET_TIME_STUB_H_
#define GET_TIME_STUB_H_

/* core_mqtt.h must precede including this header. */
#include "core_mqtt.h"

/**
* Application defined callback to retrieve the current time in milliseconds.
*
Expand Down
3 changes: 2 additions & 1 deletion test/cbmc/include/mqtt_cbmc_state.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@

#include <stdbool.h>

/* mqtt.h must precede including this header. */
/* core_mqtt.h must precede including this header. */
#include "core_mqtt.h"

#define IMPLIES( a, b ) ( !( a ) || ( b ) )

Expand Down
3 changes: 3 additions & 0 deletions test/cbmc/include/network_interface_stubs.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@
#define NETWORK_INTERFACE_STUBS_H_

/* transport_interface.h must precede including this header. */
/* core_mqtt.h must precede including this header. */
#include "core_mqtt.h"
#include "transport_interface.h"

/**
* @brief Application defined network interface receive function.
Expand Down

0 comments on commit 8de943b

Please sign in to comment.