name
string
code
string
asm
string
file
string
void testing::internal::InitGoogleTestImpl<char>(int*, char**)
void InitGoogleTestImpl(int* argc, CharType** argv) { // We don't want to run the initialization code twice. if (GTestIsInitialized()) return; if (*argc <= 0) return; g_argvs.clear(); for (int i = 0; i != *argc; i++) { g_argvs.push_back(StreamableToString(argv[i])); } #if GTEST_HAS_ABSL absl::Initi...
pushq %rbp movq %rsp, %rbp subq $0x50, %rsp movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) callq 0x752b0 testb $0x1, %al jne 0x8b15b jmp 0x8b160 jmp 0x8b1fc movq -0x8(%rbp), %rax cmpl $0x0, (%rax) jg 0x8b16e jmp 0x8b1fc leaq 0x423f4b(%rip), %rdi # 0x4af0c0 callq 0xa5290 movl $0x0, -0x14(%rbp) movl -0x14(%rbp), %eax mo...
/Kuree[P]kratos/extern/googletest/googletest/src/gtest.cc
testing::Message& testing::Message::operator<<<char [20]>(char const (&) [20])
inline Message& operator <<(const T& val) { // Some libraries overload << for STL containers. These // overloads are defined in the global namespace instead of ::std. // // C++'s symbol lookup rule (i.e. Koenig lookup) says that these // overloads are visible in either the std namespace or the glob...
pushq %rbp movq %rsp, %rbp subq $0x20, %rsp movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movq -0x8(%rbp), %rdi movq %rdi, -0x18(%rbp) callq 0x83a80 movq %rax, %rdi addq $0x10, %rdi movq -0x10(%rbp), %rsi callq 0x36a60 movq -0x18(%rbp), %rax addq $0x20, %rsp popq %rbp retq nopw (%rax,%rax)
/Kuree[P]kratos/extern/googletest/googletest/include/gtest/gtest-message.h
testing::internal::StreamingListener::SocketWriter::Send(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
void Send(const std::string& message) override { GTEST_CHECK_(sockfd_ != -1) << "Send() can be called only when there is a connection."; const auto len = static_cast<size_t>(message.length()); if (write(sockfd_, message.c_str(), len) != static_cast<ssize_t>(len)) { GTEST_LOG_(WARNIN...
pushq %rbp movq %rsp, %rbp subq $0x80, %rsp movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movq -0x8(%rbp), %rax movq %rax, -0x40(%rbp) cmpl $-0x1, 0x8(%rax) setne %al movzbl %al, %edi andl $0x1, %edi callq 0x58f50 testb $0x1, %al jne 0x937f3 jmp 0x937f5 jmp 0x93868 leaq 0x29c9d4(%rip), %rdx # 0x3301d0 leaq -0x14(%rbp...
/Kuree[P]kratos/extern/googletest/googletest/src/gtest-internal-inl.h
testing::internal::StreamingListener::SocketWriter::CloseConnection()
void CloseConnection() override { GTEST_CHECK_(sockfd_ != -1) << "CloseConnection() can be called only when there is a connection."; close(sockfd_); sockfd_ = -1; }
pushq %rbp movq %rsp, %rbp subq $0x40, %rsp movq %rdi, -0x8(%rbp) movq -0x8(%rbp), %rax movq %rax, -0x28(%rbp) cmpl $-0x1, 0x8(%rax) setne %al movzbl %al, %edi andl $0x1, %edi callq 0x58f50 testb $0x1, %al jne 0x9398c jmp 0x9398e jmp 0x939fe leaq 0x29c83b(%rip), %rdx # 0x3301d0 leaq -0xc(%rbp), %rdi movq %rdi, -0x38...
/Kuree[P]kratos/extern/googletest/googletest/src/gtest-internal-inl.h
testing::internal::MatcherBase<std::basic_string_view<char, std::char_traits<char>> const&>::operator=(testing::internal::MatcherBase<std::basic_string_view<char, std::char_traits<char>> const&>&&)
MatcherBase& operator=(MatcherBase&& other) { if (this == &other) return *this; Destroy(); vtable_ = other.vtable_; buffer_ = other.buffer_; other.vtable_ = nullptr; return *this; }
pushq %rbp movq %rsp, %rbp subq $0x20, %rsp movq %rdi, -0x10(%rbp) movq %rsi, -0x18(%rbp) movq -0x10(%rbp), %rax movq %rax, -0x20(%rbp) cmpq -0x18(%rbp), %rax jne 0x95b38 movq -0x20(%rbp), %rax movq %rax, -0x8(%rbp) jmp 0x95b6d movq -0x20(%rbp), %rdi callq 0x95b80 movq -0x20(%rbp), %rax movq -0x18(%rbp), %rcx movq 0x8(...
/Kuree[P]kratos/extern/googletest/googletest/include/gtest/gtest-matchers.h
testing::internal::CapturedStream::CapturedStream(int)
explicit CapturedStream(int fd) : fd_(fd), uncaptured_fd_(dup(fd)) { # if GTEST_OS_WINDOWS char temp_dir_path[MAX_PATH + 1] = { '\0' }; // NOLINT char temp_file_path[MAX_PATH + 1] = { '\0' }; // NOLINT ::GetTempPathA(sizeof(temp_dir_path), temp_dir_path); const UINT success = ::GetTempFileNameA(temp_...
pushq %rbp movq %rsp, %rbp subq $0x80, %rsp movq %rdi, -0x8(%rbp) movl %esi, -0xc(%rbp) movq -0x8(%rbp), %rax movq %rax, -0x60(%rbp) movl -0xc(%rbp), %ecx movl %ecx, (%rax) movl -0xc(%rbp), %edi callq 0x37530 movq -0x60(%rbp), %rdi movl %eax, 0x4(%rdi) addq $0x8, %rdi movq %rdi, -0x58(%rbp) callq 0x36620 leaq -0x30(%rb...
/Kuree[P]kratos/extern/googletest/googletest/src/gtest-port.cc
testing::internal::UniversalPrinter<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>::Print(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, std::ostream*)
static void Print(const T& value, ::std::ostream* os) { // By default, ::testing::internal::PrintTo() is used for printing // the value. // // Thanks to Koenig look-up, if T is a class and has its own // PrintTo() function defined in its namespace, that function will // be visible here. Since i...
pushq %rbp movq %rsp, %rbp subq $0x10, %rsp movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movq -0x8(%rbp), %rdi movq -0x10(%rbp), %rsi callq 0x96900 addq $0x10, %rsp popq %rbp retq nopw %cs:(%rax,%rax) nopl (%rax)
/Kuree[P]kratos/extern/googletest/googletest/include/gtest/gtest-printers.h
testing::internal::UniversalTersePrinter<wchar_t const*>::Print(wchar_t const*, std::ostream*)
static void Print(const wchar_t* str, ::std::ostream* os) { if (str == nullptr) { *os << "NULL"; } else { UniversalPrint(::std::wstring(str), os); } }
pushq %rbp movq %rsp, %rbp subq $0x60, %rsp movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) cmpq $0x0, -0x8(%rbp) jne 0x96959 movq -0x10(%rbp), %rdi leaq 0x29c96d(%rip), %rsi # 0x3332bf callq 0x36a60 jmp 0x969d2 movq -0x8(%rbp), %rax movq %rax, -0x58(%rbp) leaq -0x31(%rbp), %rdi movq %rdi, -0x50(%rbp) callq 0x36680 mov...
/Kuree[P]kratos/extern/googletest/googletest/include/gtest/gtest-printers.h
testing::internal::UniversalPrinter<std::__cxx11::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t>>>::Print(std::__cxx11::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t>> const&, std::ostream*)
static void Print(const T& value, ::std::ostream* os) { // By default, ::testing::internal::PrintTo() is used for printing // the value. // // Thanks to Koenig look-up, if T is a class and has its own // PrintTo() function defined in its namespace, that function will // be visible here. Since i...
pushq %rbp movq %rsp, %rbp subq $0x10, %rsp movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movq -0x8(%rbp), %rdi movq -0x10(%rbp), %rsi callq 0x96b00 addq $0x10, %rsp popq %rbp retq nopw %cs:(%rax,%rax) nopl (%rax)
/Kuree[P]kratos/extern/googletest/googletest/include/gtest/gtest-printers.h
testing::Message& testing::Message::operator<<<long>(long const&)
inline Message& operator <<(const T& val) { // Some libraries overload << for STL containers. These // overloads are defined in the global namespace instead of ::std. // // C++'s symbol lookup rule (i.e. Koenig lookup) says that these // overloads are visible in either the std namespace or the glob...
pushq %rbp movq %rsp, %rbp subq $0x20, %rsp movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movq -0x8(%rbp), %rdi movq %rdi, -0x18(%rbp) callq 0x83a80 movq %rax, %rdi addq $0x10, %rdi movq -0x10(%rbp), %rax movq (%rax), %rsi callq 0x366c0 movq -0x18(%rbp), %rax addq $0x20, %rsp popq %rbp retq nopw (%rax,%rax)
/Kuree[P]kratos/extern/googletest/googletest/include/gtest/gtest-message.h
testing::internal::ThreadLocal<testing::TestPartResultReporterInterface*>::GetOrCreateValue() const
T* GetOrCreateValue() const { ThreadLocalValueHolderBase* const holder = static_cast<ThreadLocalValueHolderBase*>(pthread_getspecific(key_)); if (holder != nullptr) { return CheckedDowncastToActualType<ValueHolder>(holder)->pointer(); } ValueHolder* const new_holder = default_factory_->Ma...
pushq %rbp movq %rsp, %rbp subq $0x60, %rsp movq %rdi, -0x10(%rbp) movq -0x10(%rbp), %rax movq %rax, -0x48(%rbp) movl (%rax), %edi callq 0x37390 movq %rax, -0x18(%rbp) cmpq $0x0, -0x18(%rbp) je 0x98960 movq -0x18(%rbp), %rdi callq 0x98a50 movq %rax, %rdi callq 0x98b40 movq %rax, -0x8(%rbp) jmp 0x98a30 movq -0x48(%rbp),...
/Kuree[P]kratos/extern/googletest/googletest/include/gtest/internal/gtest-port.h
testing::MatcherDescriberInterface const* testing::internal::MatcherBase<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&>::GetDescriberImpl<testing::internal::MatcherBase<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&>::ValuePolicy<testing::in...
static const MatcherDescriberInterface* GetDescriberImpl( const MatcherBase& m) { // If the impl is a MatcherDescriberInterface, then return it. // Otherwise use MatcherBase itself. // This allows us to implement the GetDescriber() function without support // from the impl, but some users really w...
pushq %rbp movq %rsp, %rbp subq $0x30, %rsp movq %rdi, -0x8(%rbp) movq -0x8(%rbp), %rax movq %rax, -0x20(%rbp) movq -0x8(%rbp), %rdi callq 0xa57f0 movq %rax, -0x28(%rbp) leaq -0x18(%rbp), %rdi leaq -0x20(%rbp), %rsi leaq -0x28(%rbp), %rdx callq 0xa59b0 leaq -0x18(%rbp), %rdi callq 0xa5990 movq (%rax), %rax addq $0x30, ...
/Kuree[P]kratos/extern/googletest/googletest/include/gtest/gtest-matchers.h
testing::MatcherDescriberInterface const* testing::internal::MatcherBase<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>::GetDescriberImpl<testing::internal::MatcherBase<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>::ValuePolicy<testing::internal::EqMatc...
static const MatcherDescriberInterface* GetDescriberImpl( const MatcherBase& m) { // If the impl is a MatcherDescriberInterface, then return it. // Otherwise use MatcherBase itself. // This allows us to implement the GetDescriber() function without support // from the impl, but some users really w...
pushq %rbp movq %rsp, %rbp subq $0x30, %rsp movq %rdi, -0x8(%rbp) movq -0x8(%rbp), %rax movq %rax, -0x20(%rbp) movq -0x8(%rbp), %rdi callq 0xa5e80 movq %rax, -0x28(%rbp) leaq -0x18(%rbp), %rdi leaq -0x20(%rbp), %rsi leaq -0x28(%rbp), %rdx callq 0xa5ec0 leaq -0x18(%rbp), %rdi callq 0xa5ea0 movq (%rax), %rax addq $0x30, ...
/Kuree[P]kratos/extern/googletest/googletest/include/gtest/gtest-matchers.h
testing::MatcherDescriberInterface const* testing::internal::MatcherBase<std::basic_string_view<char, std::char_traits<char>> const&>::GetDescriberImpl<testing::internal::MatcherBase<std::basic_string_view<char, std::char_traits<char>> const&>::ValuePolicy<testing::internal::EqMatcher<std::__cxx11::basic_string<char, s...
static const MatcherDescriberInterface* GetDescriberImpl( const MatcherBase& m) { // If the impl is a MatcherDescriberInterface, then return it. // Otherwise use MatcherBase itself. // This allows us to implement the GetDescriber() function without support // from the impl, but some users really w...
pushq %rbp movq %rsp, %rbp subq $0x30, %rsp movq %rdi, -0x8(%rbp) movq -0x8(%rbp), %rax movq %rax, -0x20(%rbp) movq -0x8(%rbp), %rdi callq 0xa6210 movq %rax, -0x28(%rbp) leaq -0x18(%rbp), %rdi leaq -0x20(%rbp), %rsi leaq -0x28(%rbp), %rdx callq 0xa6460 leaq -0x18(%rbp), %rdi callq 0xa6440 movq (%rax), %rax addq $0x30, ...
/Kuree[P]kratos/extern/googletest/googletest/include/gtest/gtest-matchers.h
testing::MatcherDescriberInterface const* testing::internal::MatcherBase<std::basic_string_view<char, std::char_traits<char>>>::GetDescriberImpl<testing::internal::MatcherBase<std::basic_string_view<char, std::char_traits<char>>>::ValuePolicy<testing::internal::EqMatcher<std::__cxx11::basic_string<char, std::char_trait...
static const MatcherDescriberInterface* GetDescriberImpl( const MatcherBase& m) { // If the impl is a MatcherDescriberInterface, then return it. // Otherwise use MatcherBase itself. // This allows us to implement the GetDescriber() function without support // from the impl, but some users really w...
pushq %rbp movq %rsp, %rbp subq $0x30, %rsp movq %rdi, -0x8(%rbp) movq -0x8(%rbp), %rax movq %rax, -0x20(%rbp) movq -0x8(%rbp), %rdi callq 0xa67b0 movq %rax, -0x28(%rbp) leaq -0x18(%rbp), %rdi leaq -0x20(%rbp), %rsi leaq -0x28(%rbp), %rdx callq 0xa67f0 leaq -0x18(%rbp), %rdi callq 0xa67d0 movq (%rax), %rax addq $0x30, ...
/Kuree[P]kratos/extern/googletest/googletest/include/gtest/gtest-matchers.h
kratos::Generator::port(kratos::Port const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, bool)
Port &Generator::port(const Port &p, const std::string &port_name, bool check_param) { auto &p_ = port(p.port_direction(), port_name, p.var_width(), p.size(), p.port_type(), p.is_signed()); p_.set_explicit_array(p.explicit_array()); p_.set_is_packed(p.is_packed()); // need to copy other definiti...
pushq %rbp movq %rsp, %rbp subq $0x70, %rsp movb %cl, %al movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movq %rdx, -0x18(%rbp) andb $0x1, %al movb %al, -0x19(%rbp) movq -0x8(%rbp), %rax movq %rax, -0x68(%rbp) movq -0x10(%rbp), %rdi callq 0xba210 movl %eax, -0x5c(%rbp) movq -0x18(%rbp), %rax movq %rax, -0x58(%rbp) movq -...
/Kuree[P]kratos/src/generator.cc
kratos::Generator::port(kratos::PortPackedStruct const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, bool)
Port &Generator::port(const PortPackedStruct &port, const std::string &port_name, bool check_param) { auto p = std::make_shared<PortPackedStruct>(this, port.port_direction(), port_name, port.packed_struct()); add_port_name(port_name); var...
pushq %rbp movq %rsp, %rbp subq $0xb0, %rsp movb %cl, %al movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movq %rdx, -0x18(%rbp) andb $0x1, %al movb %al, -0x19(%rbp) movq -0x8(%rbp), %rax movq %rax, -0x88(%rbp) movq %rax, -0x38(%rbp) movq -0x10(%rbp), %rdi callq 0xba210 movl %eax, -0x3c(%rbp) movq -0x18(%rbp), %rax movq %...
/Kuree[P]kratos/src/generator.cc
kratos::Generator::port(kratos::PortDirection, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, std::shared_ptr<kratos::Enum> const&)
EnumPort &Generator::port(kratos::PortDirection direction, const std::string &port_name, const std::shared_ptr<kratos::Enum> &def) { if (ports_.find(port_name) != ports_.end()) throw VarException(::format("{0} already exists in {1}", port_name, name), {va...
pushq %rbp movq %rsp, %rbp subq $0x270, %rsp # imm = 0x270 movq %rdi, -0x118(%rbp) movl %esi, -0x11c(%rbp) movq %rdx, -0x128(%rbp) movq %rcx, -0x130(%rbp) movq -0x118(%rbp), %rdi movq %rdi, -0x200(%rbp) addq $0x130, %rdi # imm = 0x130 movq -0x128(%rbp), %rsi callq 0xb9560 movq -0x200(%rbp), %rdi m...
/Kuree[P]kratos/src/generator.cc
kratos::Generator::check_param_name_conflict(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
void Generator::check_param_name_conflict(const std::string &parameter_name) { if (params_.find(parameter_name) != params_.end()) throw VarException(::format("parameter {0} already exists", parameter_name), {params_.at(parameter_name).get()}); }
pushq %rbp movq %rsp, %rbp subq $0x150, %rsp # imm = 0x150 movq %rdi, -0x88(%rbp) movq %rsi, -0x90(%rbp) movq -0x88(%rbp), %rdi movq %rdi, -0x110(%rbp) addq $0x160, %rdi # imm = 0x160 movq -0x90(%rbp), %rsi callq 0xba9c0 movq -0x110(%rbp), %rdi movq %rax, -0x98(%rbp) addq $0x160, %rdi #...
/Kuree[P]kratos/src/generator.cc
kratos::Generator::get_child(unsigned long)
IRNode *Generator::get_child(uint64_t index) { if (is_external_) return nullptr; if (index < stmts_count()) { return stmts_[index].get(); } else if (index < stmts_count() + funcs_.size()) { auto i = index - stmts_count(); auto func_name = func_index_.at(i); return funcs_.at(f...
pushq %rbp movq %rsp, %rbp subq $0xf0, %rsp movq %rdi, -0x10(%rbp) movq %rsi, -0x18(%rbp) movq -0x10(%rbp), %rax movq %rax, -0x80(%rbp) testb $0x1, 0x2d9(%rax) je 0xacb11 movq $0x0, -0x8(%rbp) jmp 0xacd7b movq -0x80(%rbp), %rdi movq -0x18(%rbp), %rax movq %rax, -0x88(%rbp) callq 0xbbef0 movq %rax, %rcx movq -0x88(%rbp)...
/Kuree[P]kratos/src/generator.cc
kratos::Generator::add_child_generator(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, std::shared_ptr<kratos::Generator> const&)
void Generator::add_child_generator(const std::string &instance_name_, const std::shared_ptr<Generator> &child) { child->instance_name = instance_name_; if (children_.find(child->instance_name) == children_.end()) { children_.emplace(child->instance_name, child); ...
pushq %rbp movq %rsp, %rbp subq $0x180, %rsp # imm = 0x180 movq %rdi, -0x98(%rbp) movq %rsi, -0xa0(%rbp) movq %rdx, -0xa8(%rbp) movq -0x98(%rbp), %rax movq %rax, -0x138(%rbp) movq -0xa0(%rbp), %rax movq %rax, -0x148(%rbp) movq -0xa8(%rbp), %rdi callq 0xbc080 movq -0x148(%rbp), %rsi movq %rax, %rdi addq $0x98...
/Kuree[P]kratos/src/generator.cc
kratos::Generator::rename_child_generator(std::shared_ptr<kratos::Generator> const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
void Generator::rename_child_generator(const std::shared_ptr<Generator> &child, const std::string &new_name) { if (!has_child_generator(child)) throw GeneratorException( ::format("{0} doesn't belong to {1}", child->instance_name, instance_name), ...
pushq %rbp movq %rsp, %rbp subq $0x4b0, %rsp # imm = 0x4B0 movq %rdi, -0x1b8(%rbp) movq %rsi, -0x1c0(%rbp) movq %rdx, -0x1c8(%rbp) movq -0x1b8(%rbp), %rdi movq %rdi, -0x3f8(%rbp) movq -0x1c0(%rbp), %rsi callq 0xadaf0 testb $0x1, %al jne 0xade68 movb $0x1, -0x232(%rbp) movl $0x10, %edi callq 0x36700 movq %rax...
/Kuree[P]kratos/src/generator.cc
kratos::Generator::get_vars[abi:cxx11]()
std::vector<std::string> Generator::get_vars() { std::vector<std::string> result; result.reserve(vars_.size()); for (auto const &[name_, ptr] : vars_) { if (ptr->type() == VarType::Base) { result.emplace_back(name_); } } std::sort(result.begin(), result.end()); return...
pushq %rbp movq %rsp, %rbp subq $0x90, %rsp movq %rdi, -0x70(%rbp) movq %rdi, %rax movq %rax, -0x80(%rbp) movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movq -0x10(%rbp), %rax movq %rax, -0x78(%rbp) movb $0x0, -0x11(%rbp) callq 0x83330 movq -0x78(%rbp), %rdi addq $0x100, %rdi # imm = 0x100 callq 0xbcd60 movq -...
/Kuree[P]kratos/src/generator.cc
kratos::Generator::get_unique_variable_name(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
std::string Generator::get_unique_variable_name(const std::string &prefix, const std::string &var_name) { // NOTE: this is not thread-safe! uint32_t count = 0; std::string result_name; // maybe we're lucky and not need to prefix the count if (prefix.em...
pushq %rbp movq %rsp, %rbp subq $0x300, %rsp # imm = 0x300 movq %rdi, -0x2b8(%rbp) movq %rdi, %rax movq %rax, -0x2b0(%rbp) movq %rdi, -0x1e8(%rbp) movq %rsi, -0x1f0(%rbp) movq %rdx, -0x1f8(%rbp) movq %rcx, -0x200(%rbp) movq -0x1f0(%rbp), %rax movq %rax, -0x2a8(%rbp) movl $0x0, -0x204(%rbp) movb $0x0, -0x205(...
/Kuree[P]kratos/src/generator.cc
kratos::Generator::remove_var(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
void Generator::remove_var(const std::string &var_name) { if (vars_.find(var_name) == vars_.end()) { throw UserException(::format("Cannot find {0} from {1}", var_name, name)); } auto var = vars_.at(var_name); if (!var->sources().empty()) { throw UserException(::format("{0} still has sour...
pushq %rbp movq %rsp, %rbp subq $0x2d0, %rsp # imm = 0x2D0 movq %rdi, -0x198(%rbp) movq %rsi, -0x1a0(%rbp) movq -0x198(%rbp), %rdi movq %rdi, -0x248(%rbp) addq $0x100, %rdi # imm = 0x100 movq -0x1a0(%rbp), %rsi callq 0xb9cb0 movq -0x248(%rbp), %rdi movq %rax, -0x1a8(%rbp) addq $0x100, %rdi ...
/Kuree[P]kratos/src/generator.cc
kratos::Generator::add_bundle_port_def(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, kratos::PortBundleDefinition const&, std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, unsigned int> const&)
std::shared_ptr<PortBundleRef> Generator::add_bundle_port_def( const std::string &port_name, const PortBundleDefinition &def, const std::pair<std::string, uint32_t> &debug_info) { auto ref = add_bundle_port_def(port_name, def); auto definition = def.definition(); for (auto const &iter : definition) ...
pushq %rbp movq %rsp, %rbp subq $0xe0, %rsp movq %rdi, -0xd0(%rbp) movq %rdi, %rax movq %rax, -0xc8(%rbp) movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movq %rdx, -0x18(%rbp) movq %rcx, -0x20(%rbp) movq %r8, -0x28(%rbp) movq -0x10(%rbp), %rsi movb $0x0, -0x29(%rbp) movq -0x18(%rbp), %rdx movq -0x20(%rbp), %rcx callq 0xb...
/Kuree[P]kratos/src/generator.cc
kratos::Generator::get_block_name[abi:cxx11](kratos::Stmt const*) const
std::optional<std::string> Generator::get_block_name(const Stmt *stmt) const { for (auto const &[name_, s] : named_blocks_) { if (s.get() == stmt) { return name_; } } return std::nullopt; }
pushq %rbp movq %rsp, %rbp subq $0x60, %rsp movq %rdi, -0x60(%rbp) movq %rdi, %rax movq %rax, -0x58(%rbp) movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movq %rdx, -0x18(%rbp) movq -0x10(%rbp), %rax addq $0x320, %rax # imm = 0x320 movq %rax, -0x20(%rbp) movq -0x20(%rbp), %rdi callq 0xc0030 movq %rax, -0x28(%rb...
/Kuree[P]kratos/src/generator.cc
fmt::v7::format_arg_store<fmt::v7::basic_format_context<fmt::v7::detail::buffer_appender<char>, char>, std::remove_reference<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&>::type> fmt::v7::make_args_checked<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<ch...
inline auto make_args_checked(const S& format_str, const remove_reference_t<Args>&... args) -> format_arg_store<buffer_context<Char>, remove_reference_t<Args>...> { static_assert( detail::count<( std::is_base_of<detail::view, remove_reference_t<Args>>::value && ...
pushq %rbp movq %rsp, %rbp subq $0x30, %rsp movq %rdi, -0x28(%rbp) movq %rsi, -0x30(%rbp) movq -0x28(%rbp), %rax movq %rax, -0x8(%rbp) movq -0x30(%rbp), %rsi leaq -0x20(%rbp), %rdi callq 0xd1c70 movq -0x20(%rbp), %rax movq -0x18(%rbp), %rdx addq $0x30, %rsp popq %rbp retq nopw %cs:(%rax,%rax) nopl (%rax)
/Kuree[P]kratos/src/../extern/fmt/include/fmt/core.h
fmt::v7::format_arg_store<fmt::v7::basic_format_context<fmt::v7::detail::buffer_appender<char>, char>, std::remove_reference<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&>::type> fmt::v7::make_args_checked<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<ch...
inline auto make_args_checked(const S& format_str, const remove_reference_t<Args>&... args) -> format_arg_store<buffer_context<Char>, remove_reference_t<Args>...> { static_assert( detail::count<( std::is_base_of<detail::view, remove_reference_t<Args>>::value && ...
pushq %rbp movq %rsp, %rbp subq $0x30, %rsp movq %rdi, -0x28(%rbp) movq %rsi, -0x30(%rbp) movq -0x28(%rbp), %rax movq %rax, -0x8(%rbp) movq -0x30(%rbp), %rsi leaq -0x20(%rbp), %rdi callq 0xd1c70 movq -0x20(%rbp), %rax movq -0x18(%rbp), %rdx addq $0x30, %rsp popq %rbp retq nopw %cs:(%rax,%rax) nopl (%rax)
/Kuree[P]kratos/src/../extern/fmt/include/fmt/core.h
kratos::Var::set_size_param(unsigned int, kratos::Var*)
void Var::set_size_param(uint32_t index, Var *param) { if (type_ != VarType::Base && type_ != VarType::PortIO) throw UserException(::format("{0} is not a variable or port", to_string())); if (index >= size_.size()) throw UserException(::format("{0} does not have {1} dimension", to_string(), inde...
pushq %rbp movq %rsp, %rbp subq $0x530, %rsp # imm = 0x530 movq %rdi, -0x1a8(%rbp) movl %esi, -0x1ac(%rbp) movq %rdx, -0x1b8(%rbp) movq -0x1a8(%rbp), %rax movq %rax, -0x498(%rbp) cmpl $0x0, 0x168(%rax) je 0x10b256 movq -0x498(%rbp), %rax cmpl $0x4, 0x168(%rax) je 0x10b256 movb $0x1, -0x205(%rbp) movl $0x10, ...
/Kuree[P]kratos/src/expr.cc
kratos::VarSlice::operator[](std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
PackedSlice &VarSlice::operator[](const std::string &member_name) { if (!parent_var) throw InternalException("Invalid var slice"); if (!parent_var->is_packed() || width() != var_width()) throw UserException(::format("Unable to access {0}.{1}", to_string(), member_name)); auto *root = get_var_root_pa...
pushq %rbp movq %rsp, %rbp subq $0x4b0, %rsp # imm = 0x4B0 movq %rdi, -0x270(%rbp) movq %rsi, -0x278(%rbp) movq -0x270(%rbp), %rax movq %rax, -0x410(%rbp) cmpq $0x0, 0x270(%rax) jne 0x10e11f movb $0x1, -0x2ad(%rbp) movl $0x10, %edi callq 0x36700 movq %rax, -0x420(%rbp) leaq -0x299(%rbp), %rdi movq %rdi, -0x4...
/Kuree[P]kratos/src/expr.cc
kratos::VarVarSlice::VarVarSlice(kratos::Var*, kratos::Var*)
VarVarSlice::VarVarSlice(kratos::Var *parent, kratos::Var *slice) : VarSlice(parent, 0, 0), sliced_var_(slice) { // check the size or width // we need to re-compute var_high, var_low, width, and other stuff by ourselves here // there is an issue about the var_high and var_low; the problem will only show...
pushq %rbp movq %rsp, %rbp subq $0x2a0, %rsp # imm = 0x2A0 movq %rdi, -0xb8(%rbp) movq %rsi, -0xc0(%rbp) movq %rdx, -0xc8(%rbp) movq -0xb8(%rbp), %rdi movq %rdi, -0x1c0(%rbp) movq -0xc0(%rbp), %rsi xorl %ecx, %ecx movl %ecx, %edx callq 0x10c900 movq -0x1c0(%rbp), %rax leaq 0x3926e4(%rip), %rcx # 0x4a1470 ...
/Kuree[P]kratos/src/expr.cc
kratos::VarVarSlice::to_string[abi:cxx11]() const
std::string VarVarSlice::to_string() const { return ::format("{0}[{1}]", parent_var->to_string(), sliced_var_->to_string()); }
pushq %rbp movq %rsp, %rbp subq $0x120, %rsp # imm = 0x120 movq %rdi, -0x108(%rbp) movq %rdi, %rax movq %rax, -0x100(%rbp) movq %rdi, -0x98(%rbp) movq %rsi, -0xa0(%rbp) movq -0xa0(%rbp), %rax movq %rax, -0xf8(%rbp) movq 0x270(%rax), %rsi movq (%rsi), %rax movq 0xf8(%rax), %rax leaq -0xc0(%rbp), %rdi callq *%...
/Kuree[P]kratos/src/expr.cc
kratos::Const::add_sink(std::shared_ptr<kratos::AssignStmt> const&)
void Const::add_sink(const std::shared_ptr<AssignStmt> &stmt) { auto *left = stmt->left(); // if it's a port, we change the constant's generator to that of port auto *generator = left->generator(); if (!generator) throw StmtException(::format("Unable to find left hand side generator"), {stmt.get...
pushq %rbp movq %rsp, %rbp subq $0x150, %rsp # imm = 0x150 movq %rdi, -0x78(%rbp) movq %rsi, -0x80(%rbp) movq -0x78(%rbp), %rax movq %rax, -0x110(%rbp) movq -0x80(%rbp), %rdi callq 0xbc650 movq %rax, %rdi callq 0xbee60 movq (%rax), %rax movq %rax, -0x88(%rbp) movq -0x88(%rbp), %rdi movq (%rdi), %rax callq *0...
/Kuree[P]kratos/src/expr.cc
kratos::Param::Param(kratos::Generator*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, unsigned int, bool)
Param::Param(Generator *m, std::string name, uint32_t width, bool is_signed) : Const(m, 1, width, is_signed), parameter_name_(std::move(name)) { // override the type value type_ = VarType::Parameter; }
pushq %rbp movq %rsp, %rbp subq $0x30, %rsp movq %rdx, -0x30(%rbp) movb %r8b, %al movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movq %rdx, -0x18(%rbp) movl %ecx, -0x1c(%rbp) andb $0x1, %al movb %al, -0x1d(%rbp) movq -0x8(%rbp), %rdi movq %rdi, -0x28(%rbp) movq -0x10(%rbp), %rsi movl -0x1c(%rbp), %ecx movb -0x1d(%rbp), %...
/Kuree[P]kratos/src/expr.cc
kratos::Param::value_str[abi:cxx11]() const
std::string Param::value_str() const { if (param_type_ == ParamType::Integral) { return Const::to_string(); } else if (parent_param_) { const auto *p = parent_param(); return p->to_string(); } else { // raw type if (param_type_ == ParamType::RawType) { if ...
pushq %rbp movq %rsp, %rbp subq $0x30, %rsp movq %rdi, -0x30(%rbp) movq %rdi, %rax movq %rax, -0x28(%rbp) movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movq -0x10(%rbp), %rax movq %rax, -0x20(%rbp) cmpl $0x0, 0x2c0(%rax) jne 0x115b7e movq -0x20(%rbp), %rsi movq -0x30(%rbp), %rdi callq 0x115c50 jmp 0x115c37 movq -0x20(%r...
/Kuree[P]kratos/src/expr.cc
kratos::Const::to_string[abi:cxx11]() const
std::string Const::to_string() const { if (num_bits_ != 0) { // very big number if (negative_) { return ::format("-{0}\'h{1}", width(), hex_value_); } else { return ::format("{0}\'h{1}", width(), hex_value_); } } else if (is_signed_ && value_ < 0) { ...
pushq %rbp movq %rsp, %rbp subq $0x2b0, %rsp # imm = 0x2B0 movq %rdi, -0x2a8(%rbp) movq %rdi, %rax movq %rax, -0x2a0(%rbp) movq %rdi, -0x268(%rbp) movq %rsi, -0x270(%rbp) movq -0x270(%rbp), %rax movq %rax, -0x298(%rbp) cmpl $0x0, 0x298(%rax) je 0x115ed3 movq -0x298(%rbp), %rax testb $0x1, 0x29c(%rax) je 0x11...
/Kuree[P]kratos/src/expr.cc
kratos::VarConcat::to_string[abi:cxx11]() const
std::string VarConcat::to_string() const { std::vector<std::string> var_names; for (const auto &ptr : vars_) { var_names.emplace_back(ptr->to_string()); } auto content = string::join(var_names.begin(), var_names.end(), ", "); return ::format("{{{0}}}", content); }
pushq %rbp movq %rsp, %rbp subq $0x1a0, %rsp # imm = 0x1A0 movq %rdi, -0x168(%rbp) movq %rdi, %rax movq %rax, -0x160(%rbp) movq %rdi, -0x88(%rbp) movq %rsi, -0x90(%rbp) movq -0x90(%rbp), %rax movq %rax, -0x158(%rbp) leaq -0xa8(%rbp), %rdi callq 0x83330 movq -0x158(%rbp), %rax addq $0x288, %rax # i...
/Kuree[P]kratos/src/expr.cc
std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> kratos::string::join<__gnu_cxx::__normal_iterator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>*, std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::allocator<std...
std::string static join(Iter begin, Iter end, const std::string &sep) { std::stringstream stream; for (auto it = begin; it != end; it++) { if (it != begin) stream << sep; stream << *it; } return stream.str(); }
pushq %rbp movq %rsp, %rbp subq $0x1e0, %rsp # imm = 0x1E0 movq %rdi, -0x1d8(%rbp) movq %rdi, %rax movq %rax, -0x1d0(%rbp) movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movq %rdx, -0x18(%rbp) movq %rcx, -0x20(%rbp) leaq -0x1a8(%rbp), %rdi callq 0x36590 movq -0x10(%rbp), %rax movq %rax, -0x1b0(%rbp) leaq -0x1b...
/Kuree[P]kratos/src/util.hh
fmt::v7::format_arg_store<fmt::v7::basic_format_context<fmt::v7::detail::buffer_appender<char>, char>, std::remove_reference<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&>::type> fmt::v7::make_args_checked<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&,...
inline auto make_args_checked(const S& format_str, const remove_reference_t<Args>&... args) -> format_arg_store<buffer_context<Char>, remove_reference_t<Args>...> { static_assert( detail::count<( std::is_base_of<detail::view, remove_reference_t<Args>>::value && ...
pushq %rbp movq %rsp, %rbp subq $0x30, %rsp movq %rdi, -0x28(%rbp) movq %rsi, -0x30(%rbp) movq -0x28(%rbp), %rax movq %rax, -0x8(%rbp) movq -0x30(%rbp), %rsi leaq -0x20(%rbp), %rdi callq 0xd8430 movq -0x20(%rbp), %rax movq -0x18(%rbp), %rdx addq $0x30, %rsp popq %rbp retq nopw %cs:(%rax,%rax) nopl (%rax)
/Kuree[P]kratos/src/../extern/fmt/include/fmt/core.h
fmt::v7::format_arg_store<fmt::v7::basic_format_context<fmt::v7::detail::buffer_appender<char>, char>> fmt::v7::make_args_checked<char [19], char>(char const (&) [19])
inline auto make_args_checked(const S& format_str, const remove_reference_t<Args>&... args) -> format_arg_store<buffer_context<Char>, remove_reference_t<Args>...> { static_assert( detail::count<( std::is_base_of<detail::view, remove_reference_t<Args>>::value && ...
pushq %rbp movq %rsp, %rbp subq $0x30, %rsp movq %rdi, -0x28(%rbp) movq -0x28(%rbp), %rax movq %rax, -0x8(%rbp) leaq -0x20(%rbp), %rdi callq 0x13cff0 movq -0x20(%rbp), %rax movq -0x18(%rbp), %rdx addq $0x30, %rsp popq %rbp retq nopl (%rax,%rax)
/Kuree[P]kratos/src/../extern/fmt/include/fmt/core.h
char const* fmt::v7::detail::parse_precision<char, fmt::v7::detail::specs_checker<fmt::v7::detail::dynamic_specs_handler<fmt::v7::basic_format_parse_context<char, fmt::v7::detail::error_handler>>>&>(char const*, char const*, fmt::v7::detail::specs_checker<fmt::v7::detail::dynamic_specs_handler<fmt::v7::basic_format_par...
FMT_CONSTEXPR const Char* parse_precision(const Char* begin, const Char* end, Handler&& handler) { ++begin; auto c = begin != end ? *begin : Char(); if ('0' <= c && c <= '9') { handler.on_precision(parse_nonnegative_int(begin, end, handler)); } else if (c == '{') { ...
pushq %rbp movq %rsp, %rbp subq $0x50, %rsp movq %rdi, -0x10(%rbp) movq %rsi, -0x18(%rbp) movq %rdx, -0x20(%rbp) movq -0x10(%rbp), %rax addq $0x1, %rax movq %rax, -0x10(%rbp) movq -0x10(%rbp), %rax cmpq -0x18(%rbp), %rax je 0x177b45 movq -0x10(%rbp), %rax movb (%rax), %al movb %al, -0x31(%rbp) jmp 0x177b4c xorl %eax, %...
/Kuree[P]kratos/src/../extern/fmt/include/fmt/format.h
char const* fmt::v7::detail::next_code_point<char>(char const*, char const*)
FMT_CONSTEXPR const Char* next_code_point(const Char* begin, const Char* end) { if (const_check(sizeof(Char) != 1) || (*begin & 0x80) == 0) return begin + 1; do { ++begin; } while (begin != end && (*begin & 0xc0) == 0x80); return begin; }
pushq %rbp movq %rsp, %rbp movq %rdi, -0x10(%rbp) movq %rsi, -0x18(%rbp) movq -0x10(%rbp), %rax movsbl (%rax), %eax andl $0x80, %eax cmpl $0x0, %eax jne 0x177cab movq -0x10(%rbp), %rax addq $0x1, %rax movq %rax, -0x8(%rbp) jmp 0x177cee jmp 0x177cad movq -0x10(%rbp), %rax addq $0x1, %rax movq %rax, -0x10(%rbp) movq -0x1...
/Kuree[P]kratos/src/../extern/fmt/include/fmt/format.h
int fmt::v7::detail::parse_nonnegative_int<char, fmt::v7::detail::width_adapter<fmt::v7::detail::specs_checker<fmt::v7::detail::dynamic_specs_handler<fmt::v7::basic_format_parse_context<char, fmt::v7::detail::error_handler>>>&, char>&>(char const*&, char const*, fmt::v7::detail::width_adapter<fmt::v7::detail::specs_che...
FMT_CONSTEXPR int parse_nonnegative_int(const Char*& begin, const Char* end, ErrorHandler&& eh) { FMT_ASSERT(begin != end && '0' <= *begin && *begin <= '9', ""); unsigned value = 0; // Convert to unsigned to prevent a warning. constexpr unsigned max_int = max_value<int>()...
pushq %rbp movq %rsp, %rbp subq $0x30, %rsp movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movq %rdx, -0x18(%rbp) movq -0x8(%rbp), %rax movq (%rax), %rax cmpq -0x10(%rbp), %rax je 0x1784f5 movq -0x8(%rbp), %rax movq (%rax), %rax movsbl (%rax), %ecx movl $0x30, %eax cmpl %ecx, %eax jg 0x1784f5 movq -0x8(%rbp), %rax movq (...
/Kuree[P]kratos/src/../extern/fmt/include/fmt/format.h
void fmt::v7::detail::handle_dynamic_spec<fmt::v7::detail::precision_checker, fmt::v7::basic_format_context<fmt::v7::detail::buffer_appender<char>, char>>(int&, fmt::v7::detail::arg_ref<fmt::v7::basic_format_context<fmt::v7::detail::buffer_appender<char>, char>::char_type>, fmt::v7::basic_format_context<fmt::v7::detail...
void handle_dynamic_spec(int& value, arg_ref<typename Context::char_type> ref, Context& ctx) { switch (ref.kind) { case arg_id_kind::none: break; case arg_id_kind::index: value = detail::get_dynamic_spec<Handler>(ctx.arg(ref.val.index), ...
pushq %rbp movq %rsp, %rbp subq $0xa0, %rsp leaq 0x10(%rbp), %rax movq %rax, -0x80(%rbp) movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movl (%rax), %eax movl %eax, -0x78(%rbp) testl %eax, %eax je 0x179b1d jmp 0x179b06 movl -0x78(%rbp), %eax subl $0x1, %eax je 0x179b22 jmp 0x179b10 movl -0x78(%rbp), %eax subl $0x2, %eax ...
/Kuree[P]kratos/src/../extern/fmt/include/fmt/format.h
fmt::v7::basic_format_arg<fmt::v7::basic_format_context<fmt::v7::detail::buffer_appender<char>, char>> fmt::v7::detail::make_arg<fmt::v7::basic_format_context<fmt::v7::detail::buffer_appender<char>, char>, fmt::v7::basic_string_view<char>>(fmt::v7::basic_string_view<char> const&)
FMT_CONSTEXPR basic_format_arg<Context> make_arg(const T& value) { basic_format_arg<Context> arg; arg.type_ = mapped_type_constant<T, Context>::value; arg.value_ = arg_mapper<Context>().map(value); return arg; }
pushq %rbp movq %rsp, %rbp subq $0x60, %rsp movq %rdi, -0x58(%rbp) movq %rdi, %rax movq %rax, -0x50(%rbp) movq %rsi, -0x20(%rbp) callq 0x17a6a0 movq -0x58(%rbp), %rdi movl $0xd, 0x10(%rdi) movq -0x20(%rbp), %rsi leaq -0x41(%rbp), %rdi callq 0x1890a0 movq %rax, -0x40(%rbp) movq %rdx, -0x38(%rbp) movq -0x40(%rbp), %rcx m...
/Kuree[P]kratos/src/../extern/fmt/include/fmt/core.h
fmt::v7::detail::int_writer<fmt::v7::detail::buffer_appender<char>, char, unsigned int>::on_hex()
void on_hex() { if (specs.alt) { prefix[prefix_size++] = '0'; prefix[prefix_size++] = specs.type; } int num_digits = count_digits<4>(abs_value); out = write_int(out, num_digits, get_prefix(), specs, [this, num_digits](iterator it) { return format_uin...
pushq %rbp movq %rsp, %rbp subq $0x60, %rsp movq %rdi, -0x8(%rbp) movq -0x8(%rbp), %rax movq %rax, -0x48(%rbp) movq 0x10(%rax), %rax movb 0x9(%rax), %al shrb $0x7, %al testb $0x1, %al je 0x17bbb0 movq -0x48(%rbp), %rax movl 0x20(%rax), %ecx movl %ecx, %edx addl $0x1, %edx movl %edx, 0x20(%rax) movl %ecx, %ecx movb $0x3...
/Kuree[P]kratos/src/../extern/fmt/include/fmt/format.h
fmt::v7::detail::int_writer<fmt::v7::detail::buffer_appender<char>, char, unsigned int>::on_oct()
void on_oct() { int num_digits = count_digits<3>(abs_value); if (specs.alt && specs.precision <= num_digits && abs_value != 0) { // Octal prefix '0' is counted as a digit, so only add it if precision // is not greater than the number of digits. prefix[prefix_size++] = '0'; } out = writ...
pushq %rbp movq %rsp, %rbp subq $0x60, %rsp movq %rdi, -0x8(%rbp) movq -0x8(%rbp), %rax movq %rax, -0x48(%rbp) movl 0x18(%rax), %edi callq 0x17dcb0 movl %eax, %ecx movq -0x48(%rbp), %rax movl %ecx, -0xc(%rbp) movq 0x10(%rax), %rax movb 0x9(%rax), %al shrb $0x7, %al testb $0x1, %al je 0x17bd83 movq -0x48(%rbp), %rax mov...
/Kuree[P]kratos/src/../extern/fmt/include/fmt/format.h
char fmt::v7::detail::write_padded<(fmt::v7::align::type)2, fmt::v7::detail::buffer_appender<char>, char, fmt::v7::detail::buffer_appender<char> fmt::v7::detail::write_int<fmt::v7::detail::buffer_appender<char>, char, fmt::v7::detail::int_writer<fmt::v7::detail::buffer_appender<char>, char, unsigned int>::on_bin()::'la...
inline OutputIt write_padded(OutputIt out, const basic_format_specs<Char>& specs, size_t size, size_t width, const F& f) { static_assert(align == align::left || align == align::right, ""); unsigned spec_width = to_unsigned(specs.width); size_t padding = sp...
pushq %rbp movq %rsp, %rbp subq $0xc0, %rsp movq %rdi, -0x10(%rbp) movq %rsi, -0x18(%rbp) movq %rdx, -0x20(%rbp) movq %rcx, -0x28(%rbp) movq %r8, -0x30(%rbp) movq -0x18(%rbp), %rax movl (%rax), %edi callq 0x17a090 movl %eax, -0x34(%rbp) movl -0x34(%rbp), %eax cmpq -0x28(%rbp), %rax jbe 0x17d976 movl -0x34(%rbp), %eax s...
/Kuree[P]kratos/src/../extern/fmt/include/fmt/format.h
fmt::v7::detail::buffer_appender<char> fmt::v7::detail::write_int<fmt::v7::detail::buffer_appender<char>, char, fmt::v7::detail::int_writer<fmt::v7::detail::buffer_appender<char>, char, unsigned int>::on_oct()::'lambda'(fmt::v7::detail::buffer_appender<char>)>(fmt::v7::detail::buffer_appender<char>, int, fmt::v7::basic...
OutputIt write_int(OutputIt out, int num_digits, string_view prefix, const basic_format_specs<Char>& specs, F f) { auto data = write_int_data<Char>(num_digits, prefix, specs); using iterator = remove_reference_t<decltype(reserve(out, 0))>; return write_padded<align::right>(out, specs, data.size...
pushq %rbp movq %rsp, %rbp subq $0x90, %rsp leaq 0x10(%rbp), %rax movq %rax, -0x90(%rbp) movq %rdi, -0x10(%rbp) movq %rdx, -0x20(%rbp) movq %rcx, -0x18(%rbp) movl %esi, -0x24(%rbp) movq %r8, -0x30(%rbp) movl -0x24(%rbp), %esi movq -0x20(%rbp), %rax movq %rax, -0x50(%rbp) movq -0x18(%rbp), %rax movq %rax, -0x48(%rbp) mo...
/Kuree[P]kratos/src/../extern/fmt/include/fmt/format.h
char fmt::v7::detail::write_padded<(fmt::v7::align::type)2, fmt::v7::detail::buffer_appender<char>, char, fmt::v7::detail::buffer_appender<char> fmt::v7::detail::write_int<fmt::v7::detail::buffer_appender<char>, char, fmt::v7::detail::int_writer<fmt::v7::detail::buffer_appender<char>, char, unsigned int>::on_oct()::'la...
inline OutputIt write_padded(OutputIt out, const basic_format_specs<Char>& specs, size_t size, size_t width, const F& f) { static_assert(align == align::left || align == align::right, ""); unsigned spec_width = to_unsigned(specs.width); size_t padding = sp...
pushq %rbp movq %rsp, %rbp subq $0xc0, %rsp movq %rdi, -0x10(%rbp) movq %rsi, -0x18(%rbp) movq %rdx, -0x20(%rbp) movq %rcx, -0x28(%rbp) movq %r8, -0x30(%rbp) movq -0x18(%rbp), %rax movl (%rax), %edi callq 0x17a090 movl %eax, -0x34(%rbp) movl -0x34(%rbp), %eax cmpq -0x28(%rbp), %rax jbe 0x17de36 movl -0x34(%rbp), %eax s...
/Kuree[P]kratos/src/../extern/fmt/include/fmt/format.h
fmt::v7::detail::format_decimal_result<char*> fmt::v7::detail::format_decimal<char, unsigned long>(char*, unsigned long, int)
inline format_decimal_result<Char*> format_decimal(Char* out, UInt value, int size) { FMT_ASSERT(size >= count_digits(value), "invalid digit count"); out += size; Char* end = out; while (value >= 100) { // Integer division is slow so do it for a group of tw...
pushq %rbp movq %rsp, %rbp subq $0x40, %rsp movq %rdi, -0x18(%rbp) movq %rsi, -0x20(%rbp) movl %edx, -0x24(%rbp) movl -0x24(%rbp), %eax movl %eax, -0x34(%rbp) movq -0x20(%rbp), %rdi callq 0x17fd10 movl %eax, %ecx movl -0x34(%rbp), %eax cmpl %ecx, %eax jl 0x18020d jmp 0x180225 leaq 0x1b4431(%rip), %rdi # 0x334645 mov...
/Kuree[P]kratos/src/../extern/fmt/include/fmt/format.h
fmt::v7::detail::int_writer<fmt::v7::detail::buffer_appender<char>, char, unsigned __int128>::on_num()
void on_num() { std::string groups = grouping<Char>(locale); if (groups.empty()) return on_dec(); auto sep = thousands_sep<Char>(locale); if (!sep) return on_dec(); int num_digits = count_digits(abs_value); int size = num_digits, n = num_digits; std::string::const_iterator group = groups.cbe...
pushq %rbp movq %rsp, %rbp subq $0x3e0, %rsp # imm = 0x3E0 movq %rdi, -0x8(%rbp) movq -0x8(%rbp), %rax movq %rax, -0x370(%rbp) movq 0x8(%rax), %rax movq %rax, -0x30(%rbp) movq -0x30(%rbp), %rsi leaq -0x28(%rbp), %rdi callq 0x17e180 leaq -0x28(%rbp), %rdi callq 0x36520 testb $0x1, %al jne 0x181f1e jmp 0x181f4...
/Kuree[P]kratos/src/../extern/fmt/include/fmt/format.h
fmt::v7::detail::count_digits(unsigned __int128)
inline int count_digits(uint128_t n) { int count = 1; for (;;) { // Integer division is slow so do it for a group of four digits instead // of for every digit. The idea comes from the talk by Alexandrescu // "Three Optimization Tips for C++". See speed-test for a comparison. if (n < 10) return count...
pushq %rbp movq %rsp, %rbp subq $0x40, %rsp movq %rdi, -0x20(%rbp) movq %rsi, -0x18(%rbp) movq -0x20(%rbp), %rax movq -0x18(%rbp), %rcx movq %rcx, -0x28(%rbp) movq %rax, -0x30(%rbp) movl $0x1, -0x34(%rbp) movq -0x30(%rbp), %rsi movq -0x28(%rbp), %rcx xorl %eax, %eax movl $0x9, %edx subq %rsi, %rdx sbbq %rcx, %rax jb 0x...
/Kuree[P]kratos/src/../extern/fmt/include/fmt/format.h
fmt::v7::detail::buffer_appender<char> fmt::v7::detail::write_int<fmt::v7::detail::buffer_appender<char>, char, fmt::v7::detail::int_writer<fmt::v7::detail::buffer_appender<char>, char, unsigned __int128>::on_dec()::'lambda'(fmt::v7::detail::buffer_appender<char>)>(fmt::v7::detail::buffer_appender<char>, int, fmt::v7::...
OutputIt write_int(OutputIt out, int num_digits, string_view prefix, const basic_format_specs<Char>& specs, F f) { auto data = write_int_data<Char>(num_digits, prefix, specs); using iterator = remove_reference_t<decltype(reserve(out, 0))>; return write_padded<align::right>(out, specs, data.size...
pushq %rbp movq %rsp, %rbp subq $0x90, %rsp leaq 0x10(%rbp), %rax movq %rax, -0x90(%rbp) movq %rdi, -0x10(%rbp) movq %rdx, -0x20(%rbp) movq %rcx, -0x18(%rbp) movl %esi, -0x24(%rbp) movq %r8, -0x30(%rbp) movl -0x24(%rbp), %esi movq -0x20(%rbp), %rax movq %rax, -0x50(%rbp) movq -0x18(%rbp), %rax movq %rax, -0x48(%rbp) mo...
/Kuree[P]kratos/src/../extern/fmt/include/fmt/format.h
char fmt::v7::detail::write_padded<(fmt::v7::align::type)2, fmt::v7::detail::buffer_appender<char>, char, fmt::v7::detail::buffer_appender<char> fmt::v7::detail::write_int<fmt::v7::detail::buffer_appender<char>, char, fmt::v7::detail::int_writer<fmt::v7::detail::buffer_appender<char>, char, unsigned __int128>::on_dec()...
inline OutputIt write_padded(OutputIt out, const basic_format_specs<Char>& specs, size_t size, size_t width, const F& f) { static_assert(align == align::left || align == align::right, ""); unsigned spec_width = to_unsigned(specs.width); size_t padding = sp...
pushq %rbp movq %rsp, %rbp subq $0xc0, %rsp movq %rdi, -0x10(%rbp) movq %rsi, -0x18(%rbp) movq %rdx, -0x20(%rbp) movq %rcx, -0x28(%rbp) movq %r8, -0x30(%rbp) movq -0x18(%rbp), %rax movl (%rax), %edi callq 0x17a090 movl %eax, -0x34(%rbp) movl -0x34(%rbp), %eax cmpq -0x28(%rbp), %rax jbe 0x182836 movl -0x34(%rbp), %eax s...
/Kuree[P]kratos/src/../extern/fmt/include/fmt/format.h
fmt::v7::detail::format_decimal_result<char*> fmt::v7::detail::format_decimal<char, unsigned __int128>(char*, unsigned __int128, int)
inline format_decimal_result<Char*> format_decimal(Char* out, UInt value, int size) { FMT_ASSERT(size >= count_digits(value), "invalid digit count"); out += size; Char* end = out; while (value >= 100) { // Integer division is slow so do it for a group of tw...
pushq %rbp movq %rsp, %rbp subq $0x90, %rsp movq %rsi, -0x20(%rbp) movq %rdx, -0x18(%rbp) movq -0x20(%rbp), %rax movq -0x18(%rbp), %rdx movq %rdi, -0x28(%rbp) movq %rdx, -0x38(%rbp) movq %rax, -0x40(%rbp) movl %ecx, -0x44(%rbp) movl -0x44(%rbp), %eax movl %eax, -0x6c(%rbp) movq -0x40(%rbp), %rax movq -0x38(%rbp), %rcx ...
/Kuree[P]kratos/src/../extern/fmt/include/fmt/format.h
fmt::v7::detail::buffer_appender<char> fmt::v7::detail::write_int<fmt::v7::detail::buffer_appender<char>, char, fmt::v7::detail::int_writer<fmt::v7::detail::buffer_appender<char>, char, unsigned __int128>::on_hex()::'lambda'(fmt::v7::detail::buffer_appender<char>)>(fmt::v7::detail::buffer_appender<char>, int, fmt::v7::...
OutputIt write_int(OutputIt out, int num_digits, string_view prefix, const basic_format_specs<Char>& specs, F f) { auto data = write_int_data<Char>(num_digits, prefix, specs); using iterator = remove_reference_t<decltype(reserve(out, 0))>; return write_padded<align::right>(out, specs, data.size...
pushq %rbp movq %rsp, %rbp subq $0x90, %rsp leaq 0x10(%rbp), %rax movq %rax, -0x90(%rbp) movq %rdi, -0x10(%rbp) movq %rdx, -0x20(%rbp) movq %rcx, -0x18(%rbp) movl %esi, -0x24(%rbp) movq %r8, -0x30(%rbp) movl -0x24(%rbp), %esi movq -0x20(%rbp), %rax movq %rax, -0x50(%rbp) movq -0x18(%rbp), %rax movq %rax, -0x48(%rbp) mo...
/Kuree[P]kratos/src/../extern/fmt/include/fmt/format.h
char fmt::v7::detail::write_padded<(fmt::v7::align::type)2, fmt::v7::detail::buffer_appender<char>, char, fmt::v7::detail::buffer_appender<char> fmt::v7::detail::write_int<fmt::v7::detail::buffer_appender<char>, char, fmt::v7::detail::int_writer<fmt::v7::detail::buffer_appender<char>, char, unsigned __int128>::on_hex()...
inline OutputIt write_padded(OutputIt out, const basic_format_specs<Char>& specs, size_t size, size_t width, const F& f) { static_assert(align == align::left || align == align::right, ""); unsigned spec_width = to_unsigned(specs.width); size_t padding = sp...
pushq %rbp movq %rsp, %rbp subq $0xc0, %rsp movq %rdi, -0x10(%rbp) movq %rsi, -0x18(%rbp) movq %rdx, -0x20(%rbp) movq %rcx, -0x28(%rbp) movq %r8, -0x30(%rbp) movq -0x18(%rbp), %rax movl (%rax), %edi callq 0x17a090 movl %eax, -0x34(%rbp) movl -0x34(%rbp), %eax cmpq -0x28(%rbp), %rax jbe 0x182ed6 movl -0x34(%rbp), %eax s...
/Kuree[P]kratos/src/../extern/fmt/include/fmt/format.h
char* fmt::v7::detail::format_uint<4u, char, unsigned __int128>(char*, unsigned __int128, int, bool)
inline Char* format_uint(Char* buffer, UInt value, int num_digits, bool upper = false) { buffer += num_digits; Char* end = buffer; do { const char* digits = upper ? "0123456789ABCDEF" : data::hex_digits; unsigned digit = (value & ((1 << BASE_BITS) - 1)); *--buffer = static_cas...
pushq %rbp movq %rsp, %rbp movb %r8b, %al movq %rsi, -0x10(%rbp) movq %rdx, -0x8(%rbp) movq -0x10(%rbp), %rdx movq -0x8(%rbp), %rsi movq %rdi, -0x18(%rbp) movq %rsi, -0x28(%rbp) movq %rdx, -0x30(%rbp) movl %ecx, -0x34(%rbp) andb $0x1, %al movb %al, -0x35(%rbp) movl -0x34(%rbp), %ecx movq -0x18(%rbp), %rax movslq %ecx, ...
/Kuree[P]kratos/src/../extern/fmt/include/fmt/format.h
fmt::v7::detail::buffer_appender<char> fmt::v7::detail::write_int<fmt::v7::detail::buffer_appender<char>, char, fmt::v7::detail::int_writer<fmt::v7::detail::buffer_appender<char>, char, unsigned __int128>::on_bin()::'lambda'(fmt::v7::detail::buffer_appender<char>)>(fmt::v7::detail::buffer_appender<char>, int, fmt::v7::...
OutputIt write_int(OutputIt out, int num_digits, string_view prefix, const basic_format_specs<Char>& specs, F f) { auto data = write_int_data<Char>(num_digits, prefix, specs); using iterator = remove_reference_t<decltype(reserve(out, 0))>; return write_padded<align::right>(out, specs, data.size...
pushq %rbp movq %rsp, %rbp subq $0x90, %rsp leaq 0x10(%rbp), %rax movq %rax, -0x90(%rbp) movq %rdi, -0x10(%rbp) movq %rdx, -0x20(%rbp) movq %rcx, -0x18(%rbp) movl %esi, -0x24(%rbp) movq %r8, -0x30(%rbp) movl -0x24(%rbp), %esi movq -0x20(%rbp), %rax movq %rax, -0x50(%rbp) movq -0x18(%rbp), %rax movq %rax, -0x48(%rbp) mo...
/Kuree[P]kratos/src/../extern/fmt/include/fmt/format.h
fmt::v7::detail::buffer_appender<char> fmt::v7::detail::write_int<fmt::v7::detail::buffer_appender<char>, char, fmt::v7::detail::int_writer<fmt::v7::detail::buffer_appender<char>, char, unsigned __int128>::on_oct()::'lambda'(fmt::v7::detail::buffer_appender<char>)>(fmt::v7::detail::buffer_appender<char>, int, fmt::v7::...
OutputIt write_int(OutputIt out, int num_digits, string_view prefix, const basic_format_specs<Char>& specs, F f) { auto data = write_int_data<Char>(num_digits, prefix, specs); using iterator = remove_reference_t<decltype(reserve(out, 0))>; return write_padded<align::right>(out, specs, data.size...
pushq %rbp movq %rsp, %rbp subq $0x90, %rsp leaq 0x10(%rbp), %rax movq %rax, -0x90(%rbp) movq %rdi, -0x10(%rbp) movq %rdx, -0x20(%rbp) movq %rcx, -0x18(%rbp) movl %esi, -0x24(%rbp) movq %r8, -0x30(%rbp) movl -0x24(%rbp), %esi movq -0x20(%rbp), %rax movq %rax, -0x50(%rbp) movq -0x18(%rbp), %rax movq %rax, -0x48(%rbp) mo...
/Kuree[P]kratos/src/../extern/fmt/include/fmt/format.h
fmt::v7::detail::buffer_appender<char> fmt::v7::detail::write<char, char, fmt::v7::detail::buffer_appender<char>>(fmt::v7::detail::buffer_appender<char>, fmt::v7::basic_string_view<char>, fmt::v7::basic_format_specs<char> const&)
OutputIt write(OutputIt out, basic_string_view<StrChar> s, const basic_format_specs<Char>& specs) { auto data = s.data(); auto size = s.size(); if (specs.precision >= 0 && to_unsigned(specs.precision) < size) size = code_point_index(s, to_unsigned(specs.precision)); auto width = specs.width !...
pushq %rbp movq %rsp, %rbp subq $0x80, %rsp movq %rdi, -0x10(%rbp) movq %rsi, -0x20(%rbp) movq %rdx, -0x18(%rbp) movq %rcx, -0x28(%rbp) leaq -0x20(%rbp), %rdi callq 0xcc850 movq %rax, -0x30(%rbp) leaq -0x20(%rbp), %rdi callq 0xcc870 movq %rax, -0x38(%rbp) movq -0x28(%rbp), %rax cmpl $0x0, 0x4(%rax) jl 0x184594 movq -0x...
/Kuree[P]kratos/src/../extern/fmt/include/fmt/format.h
char fmt::v7::detail::write_padded<(fmt::v7::align::type)1, fmt::v7::detail::buffer_appender<char>, char, fmt::v7::detail::buffer_appender<char> fmt::v7::detail::write<char, char, fmt::v7::detail::buffer_appender<char>>(fmt::v7::detail::buffer_appender<char>, fmt::v7::basic_string_view<char>, fmt::v7::basic_format_spec...
inline OutputIt write_padded(OutputIt out, const basic_format_specs<Char>& specs, size_t size, size_t width, const F& f) { static_assert(align == align::left || align == align::right, ""); unsigned spec_width = to_unsigned(specs.width); size_t padding = sp...
pushq %rbp movq %rsp, %rbp subq $0xc0, %rsp movq %rdi, -0x10(%rbp) movq %rsi, -0x18(%rbp) movq %rdx, -0x20(%rbp) movq %rcx, -0x28(%rbp) movq %r8, -0x30(%rbp) movq -0x18(%rbp), %rax movl (%rax), %edi callq 0x17a090 movl %eax, -0x34(%rbp) movl -0x34(%rbp), %eax cmpq -0x28(%rbp), %rax jbe 0x184746 movl -0x34(%rbp), %eax s...
/Kuree[P]kratos/src/../extern/fmt/include/fmt/format.h
fmt::v7::detail::buffer_appender<char> fmt::v7::detail::write_padded<(fmt::v7::align::type)1, fmt::v7::detail::buffer_appender<char>, char, fmt::v7::detail::buffer_appender<char> fmt::v7::detail::write_bytes<char, fmt::v7::detail::buffer_appender<char>>(fmt::v7::detail::buffer_appender<char>, fmt::v7::basic_string_view...
inline OutputIt write_padded(OutputIt out, const basic_format_specs<Char>& specs, size_t size, size_t width, const F& f) { static_assert(align == align::left || align == align::right, ""); unsigned spec_width = to_unsigned(specs.width); size_t padding = sp...
pushq %rbp movq %rsp, %rbp subq $0xc0, %rsp movq %rdi, -0x10(%rbp) movq %rsi, -0x18(%rbp) movq %rdx, -0x20(%rbp) movq %rcx, -0x28(%rbp) movq %r8, -0x30(%rbp) movq -0x18(%rbp), %rax movl (%rax), %edi callq 0x17a090 movl %eax, -0x34(%rbp) movl -0x34(%rbp), %eax cmpq -0x28(%rbp), %rax jbe 0x185ef6 movl -0x34(%rbp), %eax s...
/Kuree[P]kratos/src/../extern/fmt/include/fmt/format.h
void fmt::v7::detail::handle_cstring_type_spec<char, fmt::v7::detail::arg_formatter_base<fmt::v7::detail::buffer_appender<char>, char, fmt::v7::detail::error_handler>::cstring_spec_handler>(char, fmt::v7::detail::arg_formatter_base<fmt::v7::detail::buffer_appender<char>, char, fmt::v7::detail::error_handler>::cstring_s...
FMT_CONSTEXPR void handle_cstring_type_spec(Char spec, Handler&& handler) { if (spec == 0 || spec == 's') handler.on_string(); else if (spec == 'p') handler.on_pointer(); else handler.on_error("invalid type specifier"); }
pushq %rbp movq %rsp, %rbp subq $0x10, %rsp movb %dil, %al movb %al, -0x1(%rbp) movq %rsi, -0x10(%rbp) movsbl -0x1(%rbp), %eax cmpl $0x0, %eax je 0x1889e4 movsbl -0x1(%rbp), %eax cmpl $0x73, %eax jne 0x1889ef movq -0x10(%rbp), %rdi callq 0x188ae0 jmp 0x188a15 movsbl -0x1(%rbp), %eax cmpl $0x70, %eax jne 0x188a03 movq -...
/Kuree[P]kratos/src/../extern/fmt/include/fmt/format.h
kratos::IRNode::index_of(kratos::IRNode const*)
uint64_t IRNode::index_of(const kratos::IRNode *node) { uint64_t index; for (index = 0; index < child_count(); index++) { auto *n = get_child(index); if (n == node) break; } return index; }
pushq %rbp movq %rsp, %rbp subq $0x30, %rsp movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movq -0x8(%rbp), %rax movq %rax, -0x28(%rbp) movq $0x0, -0x18(%rbp) movq -0x28(%rbp), %rdi movq -0x18(%rbp), %rax movq %rax, -0x30(%rbp) movq (%rdi), %rax callq *0x8(%rax) movq %rax, %rcx movq -0x30(%rbp), %rax cmpq %rcx, %rax jae ...
/Kuree[P]kratos/src/ir.cc
kratos::IRVisitor::visit_generator_root_p(kratos::Generator*)
void IRVisitor::visit_generator_root_p(kratos::Generator *generator) { GeneratorGraph graph(generator); auto levels = graph.get_leveled_nodes(); uint32_t num_cpus = get_num_cpus(); cxxpool::thread_pool pool{num_cpus}; for (int i = static_cast<int>(levels.size() - 1); i >= 0; i--) { level = s...
pushq %rbp movq %rsp, %rbp subq $0x200, %rsp # imm = 0x200 movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movq -0x8(%rbp), %rax movq %rax, -0x1f0(%rbp) movq -0x10(%rbp), %rsi leaq -0x50(%rbp), %rdi movq %rdi, -0x1e8(%rbp) callq 0x1a2a30 movq -0x1e8(%rbp), %rsi leaq -0x68(%rbp), %rdi callq 0x1a3580 jmp 0x18d274...
/Kuree[P]kratos/src/ir.cc
kratos::IRVisitor::visit_generator_root_tp(kratos::Generator*)
void IRVisitor::visit_generator_root_tp(kratos::Generator *generator) { GeneratorGraph graph(generator); auto nodes = graph.get_nodes(); uint32_t num_cpus = get_num_cpus(); cxxpool::thread_pool pool{num_cpus}; std::vector<std::future<void>> tasks; tasks.reserve(nodes.size()); for (auto *mod ...
pushq %rbp movq %rsp, %rbp subq $0x1e0, %rsp # imm = 0x1E0 movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movq -0x8(%rbp), %rax movq %rax, -0x1d0(%rbp) movq -0x10(%rbp), %rsi leaq -0x50(%rbp), %rdi movq %rdi, -0x1c8(%rbp) callq 0x1a2a30 movq -0x1c8(%rbp), %rsi leaq -0x68(%rbp), %rdi callq 0x1a3490 jmp 0x18d5f4...
/Kuree[P]kratos/src/ir.cc
cxxpool::thread_pool::shutdown()
void shutdown() { { std::lock_guard<std::mutex> task_lock(task_mutex_); done_ = true; paused_ = false; } task_cond_var_.notify_all(); std::lock_guard<std::mutex> thread_lock(thread_mutex_); for (auto& thread : threads_) thread.join(...
pushq %rbp movq %rsp, %rbp subq $0x50, %rsp movq %rdi, -0x8(%rbp) movq -0x8(%rbp), %rsi movq %rsi, -0x50(%rbp) addq $0x88, %rsi leaq -0x10(%rbp), %rdi callq 0x196c50 movq -0x50(%rbp), %rax movb $0x1, (%rax) movb $0x0, 0x1(%rax) leaq -0x10(%rbp), %rdi callq 0x197060 movq -0x50(%rbp), %rdi addq $0x58, %rdi callq 0x37110 ...
/Kuree[P]kratos/src/../extern/cxxpool/src/cxxpool.h
kratos::PackedStructGraph::add_node(kratos::PackedStruct const*)
PackedStructNode *PackedStructGraph::add_node(const PackedStruct *s) { if (nodes_.find(s->struct_name) != nodes_.end()) { throw InternalException(::format("{0} already in graph", s->struct_name)); } PackedStructNode node; node.struct_ = s; nodes_.emplace(s->struct_name, node); return &n...
pushq %rbp movq %rsp, %rbp subq $0x170, %rsp # imm = 0x170 movq %rdi, -0x88(%rbp) movq %rsi, -0x90(%rbp) movq -0x88(%rbp), %rdi movq %rdi, -0x128(%rbp) movq -0x90(%rbp), %rsi callq 0x1a57e0 movq -0x128(%rbp), %rdi movq %rax, -0x98(%rbp) callq 0x1a5810 movq %rax, -0xa0(%rbp) leaq -0x98(%rbp), %rdi leaq -0xa0(...
/Kuree[P]kratos/src/graph.cc
kratos::GeneratorGraphVisitor::visit(kratos::Generator*)
void visit(Generator *generator) override { auto *parent_node = g_->get_node(generator); for (auto const &child : generator->get_child_generators()) { auto *child_node = g_->get_node(child.get()); if (child_node->parent != nullptr) throw InternalException(::format...
pushq %rbp movq %rsp, %rbp subq $0x170, %rsp # imm = 0x170 movq %rdi, -0x88(%rbp) movq %rsi, -0x90(%rbp) movq -0x88(%rbp), %rax movq %rax, -0x128(%rbp) movq 0x48(%rax), %rdi movq -0x90(%rbp), %rsi callq 0x1a2ec0 movq %rax, -0x98(%rbp) movq -0x90(%rbp), %rsi leaq -0xb8(%rbp), %rdi callq 0xad9c0 leaq -0xb8(%rb...
/Kuree[P]kratos/src/graph.cc
fmt::v7::format_arg_store<fmt::v7::basic_format_context<fmt::v7::detail::buffer_appender<char>, char>, std::remove_reference<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&>::type> fmt::v7::make_args_checked<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&,...
inline auto make_args_checked(const S& format_str, const remove_reference_t<Args>&... args) -> format_arg_store<buffer_context<Char>, remove_reference_t<Args>...> { static_assert( detail::count<( std::is_base_of<detail::view, remove_reference_t<Args>>::value && ...
pushq %rbp movq %rsp, %rbp subq $0x30, %rsp movq %rdi, -0x28(%rbp) movq %rsi, -0x30(%rbp) movq -0x28(%rbp), %rax movq %rax, -0x8(%rbp) movq -0x30(%rbp), %rsi leaq -0x20(%rbp), %rdi callq 0xd8430 movq -0x20(%rbp), %rax movq -0x18(%rbp), %rdx addq $0x30, %rsp popq %rbp retq nopw %cs:(%rax,%rax) nopl (%rax)
/Kuree[P]kratos/src/../extern/fmt/include/fmt/core.h
kratos::port_dir_to_str[abi:cxx11](kratos::PortDirection)
std::string port_dir_to_str(PortDirection direction) { if (direction == PortDirection::In) { return "input"; } else if (direction == PortDirection::Out) { return "output"; } else { return "inout"; } }
pushq %rbp movq %rsp, %rbp subq $0x50, %rsp movq %rdi, -0x30(%rbp) movq %rdi, %rax movq %rax, -0x28(%rbp) movq %rdi, -0x8(%rbp) movl %esi, -0xc(%rbp) cmpl $0x0, -0xc(%rbp) jne 0x1b7c9b leaq -0xd(%rbp), %rdi movq %rdi, -0x38(%rbp) callq 0x37190 movq -0x30(%rbp), %rdi movq -0x38(%rbp), %rdx leaq 0x17e0e2(%rip), %rsi #...
/Kuree[P]kratos/src/util.cc
kratos::is_valid_verilog(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
bool is_valid_verilog(const std::string &src) { // we first output to a temp src std::string pathname = fs::temp_directory_path(); std::string filename = fs::join(pathname, "src.sv"); if (filename.empty()) throw std::runtime_error("unable to create temp file"); std::ofstream f(filename); f << sr...
pushq %rbp movq %rsp, %rbp subq $0x550, %rsp # imm = 0x550 movq %rdi, -0x150(%rbp) leaq -0x170(%rbp), %rdi callq 0x1b8570 leaq -0x1b1(%rbp), %rdi movq %rdi, -0x4f8(%rbp) callq 0x37190 movq -0x4f8(%rbp), %rdx leaq 0x17dfd5(%rip), %rsi # 0x335d54 leaq -0x1b0(%rbp), %rdi callq 0x469d0 jmp 0x1b7d8d leaq -0x19...
/Kuree[P]kratos/src/util.cc
kratos::fs::join(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
std::string join(const std::string &path1, const std::string &path2) { #if defined(INCLUDE_FILESYSTEM) namespace fs = std::filesystem; fs::path p1 = path1; fs::path p2 = path2; return p1 / p2; #else return path1 + "/" + path2; #endif }
pushq %rbp movq %rsp, %rbp subq $0x60, %rsp movq %rdi, -0x58(%rbp) movq %rdi, %rax movq %rax, -0x60(%rbp) movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movq %rdx, -0x18(%rbp) movq -0x10(%rbp), %rsi leaq 0x1826e8(%rip), %rdx # 0x33acf2 leaq -0x38(%rbp), %rdi movq %rdi, -0x50(%rbp) callq 0x83610 movq -0x58(%rbp), %rdi ...
/Kuree[P]kratos/src/util.cc
kratos::fs::which(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
std::string which(const std::string &name) { // windows is more picky std::string env_path; #ifdef _WIN32 char *path_var; size_t len; auto err = _dupenv_s(&path_var, &len, "PATH"); if (err) { env_path = ""; } env_path = std::string(path_var); free(path_var); path_var = nu...
pushq %rbp movq %rsp, %rbp subq $0xe0, %rsp movq %rdi, -0xc8(%rbp) movq %rdi, %rax movq %rax, -0xc0(%rbp) movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) leaq -0x30(%rbp), %rdi movq %rdi, -0xb8(%rbp) callq 0x36620 leaq 0x17d91b(%rip), %rdi # 0x335fb6 callq 0x36d90 movq -0xb8(%rbp), %rdi movq %rax, %rsi callq 0x36730 jm...
/Kuree[P]kratos/src/util.cc
kratos::color::hsv_to_rgb(double, double, double)
Color hsv_to_rgb(double h, double s, double v) { auto h_i = static_cast<int>(h * 6); auto f = h * 6 - h_i; auto p = v * (1 - s); auto q = v * (1 - f * s); auto t = v * (1 - (1 - f) * s); double r_, g_, b_; switch (h_i) { case 0: { r_ = v; g_ = t; ...
pushq %rbp movq %rsp, %rbp subq $0x90, %rsp movsd %xmm0, -0x10(%rbp) movsd %xmm1, -0x18(%rbp) movsd %xmm2, -0x20(%rbp) movsd -0x10(%rbp), %xmm0 movsd 0x179e41(%rip), %xmm2 # 0x335b78 mulsd %xmm2, %xmm0 cvttsd2si %xmm0, %eax movl %eax, -0x24(%rbp) movsd -0x10(%rbp), %xmm0 cvtsi2sdl -0x24(%rbp), %xmm1 mulsd %xmm2, %xmm...
/Kuree[P]kratos/src/util.cc
kratos::fs::get_ext(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
std::string get_ext(const std::string &filename) { #if defined(INCLUDE_FILESYSTEM) std::filesystem::path path(filename); return path.extension().string(); #else auto idx = filename.rfind('.'); if (idx != std::string::npos) return filename.substr(idx); else return ""; #endif }
pushq %rbp movq %rsp, %rbp subq $0x50, %rsp movq %rdi, -0x40(%rbp) movq %rdi, %rax movq %rax, -0x38(%rbp) movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movq -0x10(%rbp), %rdi movl $0x2e, %esi movq $-0x1, %rdx callq 0x367e0 movq %rax, -0x18(%rbp) cmpq $-0x1, -0x18(%rbp) je 0x1bc075 movq -0x40(%rbp), %rdi movq -0x10(%rbp)...
/Kuree[P]kratos/src/util.cc
kratos::FSM::FSM(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, kratos::Generator*)
FSM::FSM(std::string name, kratos::Generator* generator) : fsm_name_(std::move(name)), generator_(generator) { // find the first clock signal auto vars = generator->get_ports(PortType::Clock); if (vars.empty()) { throw UserException("Unable to find any clock signal in " + generator->instance_nam...
pushq %rbp movq %rsp, %rbp subq $0x160, %rsp # imm = 0x160 movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movq %rdx, -0x18(%rbp) movq -0x8(%rbp), %rdi movq %rdi, -0xe0(%rbp) movq %rdi, %rax movq %rax, -0x120(%rbp) callq 0x37090 movq -0xe0(%rbp), %rdi movq -0x18(%rbp), %rax movq %rax, 0x20(%rdi) addq $0x28, %rd...
/Kuree[P]kratos/src/fsm.cc
kratos::FSM::FSM(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, kratos::Generator*, std::shared_ptr<kratos::Var>, std::shared_ptr<kratos::Var>)
FSM::FSM(std::string name, kratos::Generator* generator, std::shared_ptr<Var> clk, std::shared_ptr<Var> reset) : fsm_name_(std::move(name)), generator_(generator), clk_(std::move(clk)), reset_(std::move(reset)) {}
pushq %rbp movq %rsp, %rbp subq $0x90, %rsp movq %rcx, -0x80(%rbp) movq %r8, -0x70(%rbp) movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movq %rdx, -0x18(%rbp) movq %rcx, -0x20(%rbp) movq %r8, -0x28(%rbp) movq -0x8(%rbp), %rdi movq %rdi, -0x48(%rbp) movq %rdi, %rax movq %rax, -0x90(%rbp) callq 0x37090 movq -0x48(%rbp), %r...
/Kuree[P]kratos/src/fsm.cc
kratos::FSM::add_child_fsm(kratos::FSM*)
void FSM::add_child_fsm(FSM* fsm) { if (fsm->generator_ != generator_) throw UserException(::format("FSM {0} doesn't have the same generator parent as {1}", fsm->fsm_name_, fsm_name_)); child_fsms_.emplace(fsm->fsm_name_, fsm); fsm->parent_fsm_ = this; // era...
pushq %rbp movq %rsp, %rbp subq $0x110, %rsp # imm = 0x110 movq %rdi, -0x98(%rbp) movq %rsi, -0xa0(%rbp) movq -0x98(%rbp), %rcx movq %rcx, -0xf8(%rbp) movq -0xa0(%rbp), %rax movq 0x20(%rax), %rax cmpq 0x20(%rcx), %rax je 0x1e6ead movb $0x1, -0xcd(%rbp) movl $0x10, %edi callq 0x36700 movq %rax, %rcx movq -0xf...
/Kuree[P]kratos/src/fsm.cc
kratos::FSM::get_all_child_states(bool) const
std::vector<FSMState*> FSM::get_all_child_states(bool include_extra_state) const { // this is a BFS search std::queue<FSMState*> queue; std::vector<FSMState*> result; std::unordered_set<FSMState*> visited; for (auto const& iter : states_) { queue.emplace(iter.second.get()); } while ...
pushq %rbp movq %rsp, %rbp subq $0x1b0, %rsp # imm = 0x1B0 movq %rdi, -0x160(%rbp) movb %dl, %al movq %rdi, %rcx movq %rcx, -0x168(%rbp) movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) andb $0x1, %al movb %al, -0x11(%rbp) movq -0x10(%rbp), %rax movq %rax, -0x158(%rbp) leaq -0x68(%rbp), %rdi callq 0x1f1620 movq ...
/Kuree[P]kratos/src/fsm.cc
kratos::FSM::realize()
void FSM::realize() { // never realize again if (realized_) return; // generate the statements to the generator // first, get state and next state variable // compute number of states auto states = get_all_child_states(false); uint64_t num_states = states.size(); if (!num_states) throw U...
pushq %rbp movq %rsp, %rbp subq $0xa80, %rsp # imm = 0xA80 movq %rdi, -0x188(%rbp) movq -0x188(%rbp), %rax movq %rax, -0x810(%rbp) testb $0x1, 0x140(%rax) je 0x1e739e jmp 0x1e905f movq -0x810(%rbp), %rsi leaq -0x1a0(%rbp), %rdi xorl %edx, %edx callq 0x1e6f40 leaq -0x1a0(%rbp), %rdi callq 0x1f1d60 movq %rax, ...
/Kuree[P]kratos/src/fsm.cc
kratos::ActiveVisitor::visit(kratos::IfStmt*)
void visit(IfStmt* stmt) override { auto predicate = stmt->predicate(); // notice this just catch some simple mistakes // thus is designed to be zero false negative if (predicate->type() == VarType::PortIO) { auto port_s = predicate->as<Port>(); auto* port = port_...
pushq %rbp movq %rsp, %rbp subq $0x750, %rsp # imm = 0x750 movq %rdi, -0x208(%rbp) movq %rsi, -0x210(%rbp) movq -0x208(%rbp), %rax movq %rax, -0x5c0(%rbp) movq -0x210(%rbp), %rsi leaq -0x220(%rbp), %rdi movq %rdi, -0x5b8(%rbp) callq 0x219920 movq -0x5b8(%rbp), %rdi callq 0xb9d10 movq %rax, %rdi callq 0xbce10...
/Kuree[P]kratos/src/analysis.cc
kratos::ActiveVisitor::visit(kratos::SequentialStmtBlock*)
void visit(SequentialStmtBlock* stmt) override { auto const& sensitivity = stmt->get_event_controls(); for (auto const& event : sensitivity) { auto t = event.edge; auto* v = event.var; if (v->type() == VarType::PortIO) { auto port_s = v->as<Port>(); ...
pushq %rbp movq %rsp, %rbp subq $0x510, %rsp # imm = 0x510 movq %rdi, -0x1a8(%rbp) movq %rsi, -0x1b0(%rbp) movq -0x1a8(%rbp), %rax movq %rax, -0x418(%rbp) movq -0x1b0(%rbp), %rdi callq 0x219a80 movq %rax, -0x1b8(%rbp) movq -0x1b8(%rbp), %rax movq %rax, -0x1c0(%rbp) movq -0x1c0(%rbp), %rdi callq 0x173790 movq...
/Kuree[P]kratos/src/analysis.cc
fmt::v7::format_arg_store<fmt::v7::basic_format_context<fmt::v7::detail::buffer_appender<char>, char>, std::remove_reference<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>::type, std::remove_reference<char const*>::type, std::remove_reference<char const*>::type> fmt::v7::make_args_check...
inline auto make_args_checked(const S& format_str, const remove_reference_t<Args>&... args) -> format_arg_store<buffer_context<Char>, remove_reference_t<Args>...> { static_assert( detail::count<( std::is_base_of<detail::view, remove_reference_t<Args>>::value && ...
pushq %rbp movq %rsp, %rbp subq $0x30, %rsp movq %rdi, %rax movq %rax, -0x30(%rbp) movq %rsi, -0x10(%rbp) movq %rdx, -0x18(%rbp) movq %rcx, -0x20(%rbp) movq %r8, -0x28(%rbp) movq -0x10(%rbp), %rax movq %rax, -0x8(%rbp) movq -0x18(%rbp), %rsi movq -0x20(%rbp), %rdx movq -0x28(%rbp), %rcx callq 0x27b450 movq -0x30(%rbp),...
/Kuree[P]kratos/src/../extern/fmt/include/fmt/core.h
fmt::v7::format_arg_store<fmt::v7::basic_format_context<fmt::v7::detail::buffer_appender<char>, char>, std::remove_reference<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>::type> fmt::v7::make_args_checked<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, c...
inline auto make_args_checked(const S& format_str, const remove_reference_t<Args>&... args) -> format_arg_store<buffer_context<Char>, remove_reference_t<Args>...> { static_assert( detail::count<( std::is_base_of<detail::view, remove_reference_t<Args>>::value && ...
pushq %rbp movq %rsp, %rbp subq $0x30, %rsp movq %rdi, -0x28(%rbp) movq %rsi, -0x30(%rbp) movq -0x28(%rbp), %rax movq %rax, -0x8(%rbp) movq -0x30(%rbp), %rsi leaq -0x20(%rbp), %rdi callq 0xd8430 movq -0x20(%rbp), %rax movq -0x18(%rbp), %rdx addq $0x30, %rsp popq %rbp retq nopw %cs:(%rax,%rax) nopl (%rax)
/Kuree[P]kratos/src/../extern/fmt/include/fmt/core.h
fmt::v7::format_arg_store<fmt::v7::basic_format_context<fmt::v7::detail::buffer_appender<char>, char>, std::remove_reference<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>::type> fmt::v7::make_args_checked<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, c...
inline auto make_args_checked(const S& format_str, const remove_reference_t<Args>&... args) -> format_arg_store<buffer_context<Char>, remove_reference_t<Args>...> { static_assert( detail::count<( std::is_base_of<detail::view, remove_reference_t<Args>>::value && ...
pushq %rbp movq %rsp, %rbp subq $0x30, %rsp movq %rdi, -0x28(%rbp) movq %rsi, -0x30(%rbp) movq -0x28(%rbp), %rax movq %rax, -0x8(%rbp) movq -0x30(%rbp), %rsi leaq -0x20(%rbp), %rdi callq 0xd8430 movq -0x20(%rbp), %rax movq -0x18(%rbp), %rdx addq $0x30, %rsp popq %rbp retq nopw %cs:(%rax,%rax) nopl (%rax)
/Kuree[P]kratos/src/../extern/fmt/include/fmt/core.h
kratos::LatchVisitor::AssignedVarVisitor::visit(kratos::AssignStmt*)
void visit(AssignStmt* stmt) override { auto* left = stmt->left(); if (left->type() == VarType::Slice) { auto* slice = reinterpret_cast<VarSlice*>(left); if (slice->sliced_by_var()) { return; } left = const_cast<...
pushq %rbp movq %rsp, %rbp subq $0x30, %rsp movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movq -0x8(%rbp), %rax movq %rax, -0x28(%rbp) movq -0x10(%rbp), %rdi callq 0xbee60 movq (%rax), %rax movq %rax, -0x18(%rbp) movq -0x18(%rbp), %rdi callq 0xbce10 cmpl $0x2, %eax jne 0x27ea94 movq -0x18(%rbp), %rax movq %rax, -0x20(%r...
/Kuree[P]kratos/src/analysis.cc
kratos::LatchVisitor::IfVisitor::has_var(kratos::Var*, kratos::Var*)
bool static has_var(Var* var, Var* target) { if (var->type() == VarType::Expression) { auto* expr = var->as<Expr>().get(); bool left = has_var(expr->left, target); bool right = expr->right ? has_var(expr->right, target) : false; return left || ...
pushq %rbp movq %rsp, %rbp subq $0x50, %rsp movq %rdi, -0x10(%rbp) movq %rsi, -0x18(%rbp) movq -0x10(%rbp), %rdi callq 0xbce10 cmpl $0x1, %eax jne 0x2813a7 movq -0x10(%rbp), %rsi leaq -0x30(%rbp), %rdi callq 0x124cd0 leaq -0x30(%rbp), %rdi callq 0xcf700 movq %rax, -0x48(%rbp) leaq -0x30(%rbp), %rdi callq 0xba7c0 movq -...
/Kuree[P]kratos/src/analysis.cc
kratos::MultipleDriverVisitor::~MultipleDriverVisitor()
void visit(Generator* gen) override { auto var_names = gen->get_vars(); for (auto const& name : var_names) { auto const& var = gen->get_var(name); check_var(var.get()); } auto port_names = gen->get_port_names(); for (auto const& name : port_names) { ...
pushq %rbp movq %rsp, %rbp subq $0x10, %rsp movq %rdi, -0x8(%rbp) movq -0x8(%rbp), %rdi movq %rdi, -0x10(%rbp) callq 0x273160 movq -0x10(%rbp), %rdi movl $0x48, %esi callq 0x36200 addq $0x10, %rsp popq %rbp retq nopl (%rax)
/Kuree[P]kratos/src/analysis.cc
kratos::CheckFlipFlopAlwaysFFVisitor::~CheckFlipFlopAlwaysFFVisitor()
void visit(Generator* gen) override { uint64_t stmt_count = gen->stmts_count(); for (uint64_t i = 0; i < stmt_count; i++) { auto stmt = gen->get_stmt(i); if (stmt->type() == StatementType::Block) { auto block = stmt->as<StmtBlock>(); if (block->blo...
pushq %rbp movq %rsp, %rbp subq $0x10, %rsp movq %rdi, -0x8(%rbp) movq -0x8(%rbp), %rdi movq %rdi, -0x10(%rbp) callq 0x273220 movq -0x10(%rbp), %rdi movl $0x48, %esi callq 0x36200 addq $0x10, %rsp popq %rbp retq nopl (%rax)
/Kuree[P]kratos/src/analysis.cc
kratos::EnableStmtVisitor::visit(kratos::ScopedStmtBlock*)
void visit(ScopedStmtBlock* stmt) override { auto count = stmt->size(); auto* gen = stmt->generator_parent(); for (auto i = 0u; i < count; i++) { auto const& s = stmt->get_stmt(i); auto cond = get_cond(s.get()); if (cond) { values.emplace(s.get...
pushq %rbp movq %rsp, %rbp subq $0xc0, %rsp movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movq -0x8(%rbp), %rax movq %rax, -0xa0(%rbp) movq -0x10(%rbp), %rdi callq 0x166c70 movq %rax, -0x18(%rbp) movq -0x10(%rbp), %rdi callq 0x15aad0 movq %rax, -0x20(%rbp) movl $0x0, -0x24(%rbp) movl -0x24(%rbp), %eax cmpq -0x18(%rbp), ...
/Kuree[P]kratos/src/analysis.cc
kratos::EnableStmtVisitor::~EnableStmtVisitor()
void visit(AssignStmt* stmt) override { // we're only interested in top level blocking assignment if (stmt->assign_type() != AssignmentType::Blocking) return; auto* left = stmt->left(); auto str_value = get_ssa_enable_condition(left); if (!str_value.empty()) { values....
pushq %rbp movq %rsp, %rbp subq $0x10, %rsp movq %rdi, -0x8(%rbp) movq -0x8(%rbp), %rdi movq %rdi, -0x10(%rbp) callq 0x2732b0 movq -0x10(%rbp), %rdi movl $0x80, %esi callq 0x36200 addq $0x10, %rsp popq %rbp retq nopl (%rax)
/Kuree[P]kratos/src/analysis.cc
kratos::PortPackedVisitor::process_struct_(kratos::PackedStruct*, kratos::Var*)
void process_struct_(PackedStruct* struct_def, Var* var) { if (structs_.find(struct_def->struct_name) != structs_.end()) { // do some checking auto const* struct_ = structs_.at(struct_def->struct_name); if (!struct_def->same(*struct_)) { throw VarException(::f...
pushq %rbp movq %rsp, %rbp subq $0x1b0, %rsp # imm = 0x1B0 movq %rdi, -0x88(%rbp) movq %rsi, -0x90(%rbp) movq %rdx, -0x98(%rbp) movq -0x88(%rbp), %rdi movq %rdi, -0x168(%rbp) addq $0x48, %rdi movq -0x90(%rbp), %rsi callq 0x28e8a0 movq -0x168(%rbp), %rdi movq %rax, -0xa0(%rbp) addq $0x48, %rdi callq 0x28e8d0 ...
/Kuree[P]kratos/src/analysis.cc
kratos::PortPackedVisitor::add_struct(kratos::PackedStructGraph*, kratos::PackedStruct const*, kratos::PackedStruct const*)
static void add_struct(PackedStructGraph* g, const PackedStruct* s, const PackedStruct* parent) { auto* parent_node = g->get_node(parent); auto* n = g->get_node(s); if (n) { n->parent = parent_node; parent_node->children.emplace(n); } ...
pushq %rbp movq %rsp, %rbp subq $0x60, %rsp movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movq %rdx, -0x18(%rbp) movq -0x8(%rbp), %rdi movq -0x18(%rbp), %rsi callq 0x1a4390 movq %rax, -0x20(%rbp) movq -0x8(%rbp), %rdi movq -0x10(%rbp), %rsi callq 0x1a4390 movq %rax, -0x28(%rbp) cmpq $0x0, -0x28(%rbp) je 0x290530 movq -0...
/Kuree[P]kratos/src/analysis.cc
kratos::InterfaceVisitor::update_interface_definition(std::shared_ptr<kratos::IDefinition> const&, kratos::InterfaceRef const*, kratos::Generator*)
void update_interface_definition(const std::shared_ptr<IDefinition>& def, const InterfaceRef* ref, Generator* gen) { lock_.lock(); if (interfaces_.find(def->def_name()) == interfaces_.end()) { interfaces_.emplace(def->def_name(), std::make_pair(gen, ref))...
pushq %rbp movq %rsp, %rbp subq $0x910, %rsp # imm = 0x910 movq %rdi, -0x308(%rbp) movq %rsi, -0x310(%rbp) movq %rdx, -0x318(%rbp) movq %rcx, -0x320(%rbp) movq -0x308(%rbp), %rdi movq %rdi, -0x848(%rbp) subq $-0x80, %rdi callq 0x197860 movq -0x848(%rbp), %rax addq $0x48, %rax movq %rax, -0x840(%rbp) movq -0x...
/Kuree[P]kratos/src/analysis.cc
kratos::SystemVerilogCodeGen::stmt_code(kratos::FunctionStmtBlock*)
void SystemVerilogCodeGen::stmt_code(kratos::FunctionStmtBlock* stmt) { // dpi is external module if (stmt->is_dpi() || stmt->is_builtin()) return; if (generator_->debug) { stmt->verilog_ln = stream_.line_no(); } if (stmt->is_task()) { stream_ << "task "; } else { std::st...
pushq %rbp movq %rsp, %rbp subq $0x380, %rsp # imm = 0x380 movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movq -0x8(%rbp), %rax movq %rax, -0x238(%rbp) movq -0x10(%rbp), %rdi movq (%rdi), %rax callq *0x78(%rax) testb $0x1, %al jne 0x29fb9f movq -0x10(%rbp), %rdi movq (%rdi), %rax callq *0x80(%rax) testb $0x1, ...
/Kuree[P]kratos/src/codegen.cc
kratos::SystemVerilogCodeGen::stmt_code(kratos::IfStmt*)
void SystemVerilogCodeGen::stmt_code(IfStmt* stmt) { if (generator_->debug) { stmt->verilog_ln = stream_.line_no(); if (stmt->predicate()->verilog_ln == 0) stmt->predicate()->verilog_ln = stream_.line_no(); } stream_ << indent() << "if (" << stream_.var_str(stmt->predicate()) << ") "; au...
pushq %rbp movq %rsp, %rbp subq $0x180, %rsp # imm = 0x180 movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movq -0x8(%rbp), %rax movq %rax, -0xe0(%rbp) movq 0x48(%rax), %rax testb $0x1, 0xbc(%rax) je 0x2a0d11 movq -0xe0(%rbp), %rdi addq $0xe8, %rdi callq 0x2b8000 movl %eax, %ecx movq -0x10(%rbp), %rax movl %ecx...
/Kuree[P]kratos/src/codegen.cc