X-Git-Url: http://plrg.eecs.uci.edu/git/?p=cdsspec-compiler.git;a=blobdiff_plain;f=snapshot-interface.cc;h=bd1de3e60645f15e299e545b07d197b5c90d4e43;hp=cd1eceea744b2262f2899542aa59dd0ece45db88;hb=dd34ddf490dd97c2c202092c8fa44064a07f8c4f;hpb=216b2766b35830e1abef08b7cefc23f145e520c0 diff --git a/snapshot-interface.cc b/snapshot-interface.cc index cd1ecee..bd1de3e 100644 --- a/snapshot-interface.cc +++ b/snapshot-interface.cc @@ -2,12 +2,12 @@ #include #include #include -#include #include "snapshot-interface.h" #include "snapshot.h" #include "common.h" #include "mymemory.h" +#include "stl-model.h" /* MYBINARYNAME only works because our pathname usually includes 'model' (e.g., * /.../model-checker/test/userprog.o) */ @@ -29,7 +29,7 @@ class SnapshotStack { MEMALLOC private: - std::vector > stack; + ModelVector stack; }; static SnapshotStack *snap_stack; @@ -148,7 +148,7 @@ int SnapshotStack::backTrackBeforeStep(int seqindex) /** This method takes a snapshot at the given sequence number. */ void SnapshotStack::snapshotStep(int seqindex) { - stack.push_back(snapshot_entry(seqindex, take_snapshot())); + stack.push_back(snapshot_entry(take_snapshot(), seqindex)); } void snapshot_stack_init()