mirror of
https://git.sfja.dk/Mikkel/slige.git
synced 2025-01-18 18:36:31 +00:00
19 lines
348 B
C++
19 lines
348 B
C++
#pragma once
|
|
|
|
#include "vm.hpp"
|
|
|
|
namespace sliger::rpc::vm_provider {
|
|
class VmProvider {
|
|
public:
|
|
VmProvider() { }
|
|
|
|
auto load_and_run(std::vector<uint32_t> instructions) -> void;
|
|
auto flame_graph_json() -> std::optional<std::string>;
|
|
auto code_coverage_json() -> std::optional<std::string>;
|
|
|
|
private:
|
|
std::optional<VM> vm;
|
|
};
|
|
|
|
}
|