Skip to content

Commit

Permalink
Merge branch 'FreeRTOS:main' into coreMQTTThreadSafe
Browse files Browse the repository at this point in the history
  • Loading branch information
DakshitBabbar authored Sep 26, 2024
2 parents 33340d2 + 6a3ec09 commit bd28bbd
Show file tree
Hide file tree
Showing 7 changed files with 234 additions and 188 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ jobs:
- name: Set up CBMC runner
uses: FreeRTOS/CI-CD-Github-Actions/set_up_cbmc_runner@main
with:
cbmc_version: "5.95.1"
cbmc_version: "6.3.1"
- name: Run CBMC
uses: FreeRTOS/CI-CD-Github-Actions/run_cbmc@main
with:
Expand Down
9 changes: 9 additions & 0 deletions test/cbmc/proofs/MQTT_ProcessLoop/MQTT_ProcessLoop_harness.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,15 @@
#include "core_mqtt.h"
#include "mqtt_cbmc_state.h"

MQTTStatus_t MQTT_DeserializeAck( const MQTTPacketInfo_t * pIncomingPacket,
uint16_t * pPacketId,
bool * pSessionPresent )
{
MQTTStatus_t result;

return result;
}

void harness()
{
MQTTContext_t * pContext;
Expand Down
9 changes: 9 additions & 0 deletions test/cbmc/proofs/MQTT_ReceiveLoop/MQTT_ReceiveLoop_harness.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,15 @@
#include "core_mqtt.h"
#include "mqtt_cbmc_state.h"

MQTTStatus_t MQTT_DeserializeAck( const MQTTPacketInfo_t * pIncomingPacket,
uint16_t * pPacketId,
bool * pSessionPresent )
{
MQTTStatus_t result;

return result;
}

void harness()
{
MQTTContext_t * pContext;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ void harness()
uint16_t packetId;

pFixedBuffer = allocateMqttFixedBuffer( NULL );
__CPROVER_ASSUME( isValidMqttFixedBuffer( pFixedBuffer ) );
__CPROVER_assume( isValidMqttFixedBuffer( pFixedBuffer ) );

MQTT_SerializeAck( pFixedBuffer, packetType, packetId );
}
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ void harness()
MQTTFixedBuffer_t * pFixedBuffer;

pFixedBuffer = allocateMqttFixedBuffer( NULL );
__CPROVER_ASSUME( isValidMqttFixedBuffer( pFixedBuffer ) );
__CPROVER_assume( isValidMqttFixedBuffer( pFixedBuffer ) );

MQTT_SerializeDisconnect( pFixedBuffer );
}
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ void harness()
MQTTFixedBuffer_t * pFixedBuffer;

pFixedBuffer = allocateMqttFixedBuffer( NULL );
__CPROVER_ASSUME( isValidMqttFixedBuffer( pFixedBuffer ) );
__CPROVER_assume( isValidMqttFixedBuffer( pFixedBuffer ) );

MQTT_SerializePingreq( pFixedBuffer );
}
Loading

0 comments on commit bd28bbd

Please sign in to comment.