This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cmake_minimum_required(VERSION 3.20) | |
project(string_conversion_exception) | |
set(CMAKE_CXX_STANDARD_REQUIRED 17) | |
find_package(Boost 1.74 REQUIRED) | |
if (Boost_FOUND) | |
message("Boost found") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <string> | |
#include <filesystem> | |
#include <map> | |
namespace fs = std::filesystem; | |
const std::map<std::string, fs::path> dirs { | |
{ "WorkDir", fs::path("work_dir") }, | |
{ "SMT-FileDir", fs::path("work_dir/smt") }, | |
{ "Logs", fs::path("work_dir/log") }, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <format> | |
#include <string> | |
#include <vector> | |
#include <map> | |
struct Pass; | |
std::map<std::string, Pass*> pass_register; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
hostip=$(cat /etc/resolv.conf | grep nameserver | awk '{ print $2 }') | |
wslip=$(hostname -I | awk '{print $1}') | |
port=7890 | |
PROXY_HTTP="http://${hostip}:${port}" | |
set_proxy(){ | |
export http_proxy="${PROXY_HTTP}" | |
export HTTP_PROXY="${PROXY_HTTP}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <vector> | |
#include <stack> | |
#include <map> | |
#include <string> | |
#define DEBUG 1 | |
enum class Operator { | |
AT = 0, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <vector> | |
#include <array> | |
using namespace std; | |
class TrieTree { | |
public: | |
TrieTree() : nodeSize(1) { } | |