model_print("goal: ");
model_print("(");
for(uint i=0;i<num;i++) {
- model_print("%lu",valarray[i]);
+ model_print("%llu",valarray[i]);
if ((i+1)!=num)
model_print(", ");
}
void MCChange::print() {
record->print();
model_print("(");
- model_print("index=%u, val=%lu)\n", index, val);
+ model_print("index=%u, val=%llu)\n", index, val);
}
bool MCChangeEquals(MCChange *mcc1, MCChange *mcc2) {
CGoal *goal=cit->next();
model_dprintf(f,"(");
for(uint i=0;i<getNumFuncInputs();i++) {
- model_dprintf(f,"%lu ", goal->getValue(i+VC_BASEINDEX));
+ model_dprintf(f,"%llu ", goal->getValue(i+VC_BASEINDEX));
}
- model_dprintf(f,"=> %lu)", goal->getOutput());
+ model_dprintf(f,"=> %llu)", goal->getOutput());
}
delete cit;
}
model_dprintf(f, "{");
while(it->hasNext()) {
- model_dprintf(f, "%lu ", it->next());
+ model_dprintf(f, "%llu ", it->next());
}
model_dprintf(f, "}");
delete it;
model_dprintf(f,"{");
while(it->hasNext()) {
uint64_t v=it->next();
- model_dprintf(f,"%lu ", v);
+ model_dprintf(f,"%llu ", v);
}
model_dprintf(f,"}");
delete it;
uint64_t newval;
uint64_t retval=dormwaction(op, addr, len, currval, oldval, valarg, &newval);
if (DBG_ENABLED()) {
- model_print("RMW %p oldval=%lu valarg=%lu retval=%lu", addr, oldval, valarg, retval);
+ model_print("RMW %p oldval=%llu valarg=%llu retval=%llu", addr, oldval, valarg, retval);
currexecpoint->print();
model_print("\n");
}
EPValue * epval=list->front();
list->pop_front();
if (DBG_ENABLED()) {
- model_print("tid = %lu: ", tid);
+ model_print("tid = %d: ", tid);
}
doStore(epval);
}
uint64_t val=epval->getValue();
int len=epval->getLen();
if (DBG_ENABLED()) {
- model_print("flushing %d bytes *(%p) = %lu", len, addr, val);
+ model_print("flushing %d bytes *(%p) = %llu", len, addr, val);
currexecpoint->print();
model_print("\n");
}
#endif
if (DBG_ENABLED()) {
- model_print("STORE *%p=%lu ", addr, val);
+ model_print("STORE *%p=%llu ", addr, val);
currexecpoint->print();
model_print("\n");
}
#endif
if (DBG_ENABLED()) {
- model_print("%lu(mid=%u)=LOAD %p ", val, id_retval, addr);
+ model_print("%llu(mid=%u)=LOAD %p ", val, id_retval, addr);
currexecpoint->print();
model_print("\n");
}
/** @brief Snapshotting free implementation for user programs */
void free(void * ptr)
{
- if (!DontFree(ptr))
+ if (!DontFree(ptr)) {
if (switch_alloc) {
model_free(ptr);
} else {
mspace_free(user_snapshot_space, ptr);
}
+ }
}
/** @brief Snapshotting realloc implementation for user programs */
case LOAD: {
StoreLoadSet * sls=cgen->getStoreLoadSet(r);
model_print("address=%p ", sls->getAddressEncoding(cgen, r, satsolution));
- model_print("rd=%lu ", sls->getValueEncoding(cgen, r, satsolution));
+ model_print("rd=%llu ", sls->getValueEncoding(cgen, r, satsolution));
}
break;
case STORE: {
StoreLoadSet * sls=cgen->getStoreLoadSet(r);
model_print("address=%p ", sls->getAddressEncoding(cgen, r, satsolution));
- model_print("wr=%lu ", sls->getValueEncoding(cgen, r, satsolution));
+ model_print("wr=%llu ", sls->getValueEncoding(cgen, r, satsolution));
}
break;
case RMW: {
StoreLoadSet * sls=cgen->getStoreLoadSet(r);
model_print("address=%p ", sls->getAddressEncoding(cgen, r, satsolution));
- model_print("rd=%lu ", sls->getRMWRValueEncoding(cgen, r, satsolution));
- model_print("wr=%lu ", sls->getValueEncoding(cgen, r, satsolution));
+ model_print("rd=%llu ", sls->getRMWRValueEncoding(cgen, r, satsolution));
+ model_print("wr=%llu ", sls->getValueEncoding(cgen, r, satsolution));
}
break;
default: