/* Built from 9b7e4eb (session v16): writes an old-format project store image. */
#define FM1_CUT_FIXTURE 1
#include "test_pattern_fixed_runtime.c"
#include <stdio.h>
int main(int argc,char **argv){
 fm1_fixed_runtime_port port={0};static br_session_t s;FILE *f;
 port.begin=port_begin;port.set_mode=port_mode;port.end=port_end;port.fence=port_fence;port.faulted=port_faulted;port.pair_state=port_state;port.certificate=port_cert;port.activate=port_activate;port.commit_slot=port_slot;port.role[0]=1;port.role[1]=2;port.role[2]=3;port.role[3]=4;port.named_slots=12;port.fixed_partition_auto=1;mutable_port=&port;
 init_runtime_fixture();assert(fm1_fixed_runtime_bind(&runtime,&port)==PFS_OK);
 f=fopen(argv[1],"rb");assert(f&&fread(&s,1,sizeof s,f)==sizeof s);fclose(f);
 assert(br_restore(&s));
 assert(fm1_fixed_bridge_save(&runtime.bridge,0,"OLD SONG")==PFS_OK);
 f=fopen(argv[2],"wb");assert(f);
 assert(fwrite(pair_flash,1,2u*PS_SECTOR,f)==2u*PS_SECTOR);
 assert(fwrite(pair_flash+24u*PS_SECTOR,1,2u*PS_SECTOR,f)==2u*PS_SECTOR);
 fclose(f);puts("v16 store image written");return 0;}
