name
stringlengths 1
473k
| code
stringlengths 7
647k
| asm
stringlengths 4
3.39M
| file
stringlengths 8
196
|
---|---|---|---|
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::InitializeSymbolizer(g_argvs[0].c_str());
#endif // GTEST_HAS_ABSL
ParseGoogleTestFlagsOnly(argc, argv);
GetUnitTestImpl()->PostFlagParsingInit();
} | 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
movq -0x8(%rbp), %rcx
cmpl (%rcx), %eax
je 0x8b1e2
movq -0x10(%rbp), %rax
movslq -0x14(%rbp), %rcx
leaq (%rax,%rcx,8), %rsi
leaq -0x38(%rbp), %rdi
movq %rdi, -0x50(%rbp)
callq 0xa5120
movq -0x50(%rbp), %rsi
leaq 0x423f10(%rip), %rdi # 0x4af0c0
callq 0x839c0
jmp 0x8b1b7
leaq -0x38(%rbp), %rdi
callq 0x37610
movl -0x14(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x14(%rbp)
jmp 0x8b181
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x40(%rbp)
movl %eax, -0x44(%rbp)
leaq -0x38(%rbp), %rdi
callq 0x37610
jmp 0x8b202
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rsi
callq 0x76740
callq 0x830c0
movq %rax, %rdi
callq 0x74e30
addq $0x50, %rsp
popq %rbp
retq
movq -0x40(%rbp), %rdi
callq 0x36bd0
nopl (%rax,%rax)
| /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 global
// namespace, but not other namespaces, including the testing
// namespace which Google Test's Message class is in.
//
// To allow STL containers (and other types that has a << operator
// defined in the global namespace) to be used in Google Test
// assertions, testing::Message must access the custom << operator
// from the global namespace. With this using declaration,
// overloads of << defined in the global namespace and those
// visible via Koenig lookup are both exposed in this function.
using ::operator <<;
*ss_ << val;
return *this;
} | 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_(WARNING)
<< "stream_result_to: failed to stream to "
<< host_name_ << ":" << port_num_;
}
} | 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), %rdi
movq %rdi, -0x50(%rbp)
movl $0x3, %esi
movl $0x439, %ecx # imm = 0x439
callq 0x7d990
movq -0x50(%rbp), %rdi
callq 0x52010
movq %rax, %rdi
leaq 0x29cb89(%rip), %rsi # 0x3303af
callq 0x36a60
movq %rax, -0x48(%rbp)
jmp 0x93831
movq -0x48(%rbp), %rdi
leaq 0x29cb94(%rip), %rsi # 0x3303d0
callq 0x36a60
jmp 0x93843
leaq -0x14(%rbp), %rdi
callq 0x7dad0
jmp 0x93868
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x20(%rbp)
movl %eax, -0x24(%rbp)
leaq -0x14(%rbp), %rdi
callq 0x7dad0
jmp 0x9394b
movq -0x10(%rbp), %rdi
callq 0x36a50
movq %rax, %rcx
movq -0x40(%rbp), %rax
movq %rcx, -0x30(%rbp)
movl 0x8(%rax), %eax
movl %eax, -0x54(%rbp)
movq -0x10(%rbp), %rdi
callq 0x361f0
movl -0x54(%rbp), %edi
movq %rax, %rsi
movq -0x30(%rbp), %rdx
callq 0x37280
cmpq -0x30(%rbp), %rax
je 0x93942
leaq 0x29c925(%rip), %rdx # 0x3301d0
leaq -0x34(%rbp), %rdi
movq %rdi, -0x68(%rbp)
movl $0x1, %esi
movl $0x43e, %ecx # imm = 0x43E
callq 0x7d990
movq -0x68(%rbp), %rdi
callq 0x52010
movq %rax, %rdi
leaq 0x29cb31(%rip), %rsi # 0x330406
callq 0x36a60
movq %rax, -0x60(%rbp)
jmp 0x938e0
movq -0x60(%rbp), %rdi
movq -0x40(%rbp), %rsi
addq $0x10, %rsi
callq 0x36580
movq %rax, -0x70(%rbp)
jmp 0x938f7
movq -0x70(%rbp), %rdi
leaq 0x2a6a4d(%rip), %rsi # 0x33a34f
callq 0x36a60
movq %rax, -0x78(%rbp)
jmp 0x9390d
movq -0x78(%rbp), %rdi
movq -0x40(%rbp), %rsi
addq $0x30, %rsi
callq 0x36580
jmp 0x93920
leaq -0x34(%rbp), %rdi
callq 0x7dad0
jmp 0x93942
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x20(%rbp)
movl %eax, -0x24(%rbp)
leaq -0x34(%rbp), %rdi
callq 0x7dad0
jmp 0x9394b
addq $0x80, %rsp
popq %rbp
retq
movq -0x20(%rbp), %rdi
callq 0x36bd0
nopw %cs:(%rax,%rax)
nop
| /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(%rbp)
movl $0x3, %esi
movl $0x44a, %ecx # imm = 0x44A
callq 0x7d990
movq -0x38(%rbp), %rdi
callq 0x52010
movq %rax, %rdi
leaq 0x29c9f0(%rip), %rsi # 0x3303af
callq 0x36a60
movq %rax, -0x30(%rbp)
jmp 0x939ca
movq -0x30(%rbp), %rdi
leaq 0x29ca58(%rip), %rsi # 0x33042d
callq 0x36a60
jmp 0x939dc
leaq -0xc(%rbp), %rdi
callq 0x7dad0
jmp 0x939fe
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x18(%rbp)
movl %eax, -0x1c(%rbp)
leaq -0xc(%rbp), %rdi
callq 0x7dad0
jmp 0x93a1b
movq -0x28(%rbp), %rax
movl 0x8(%rax), %edi
callq 0x36420
movq -0x28(%rbp), %rax
movl $0xffffffff, 0x8(%rax) # imm = 0xFFFFFFFF
addq $0x40, %rsp
popq %rbp
retq
movq -0x18(%rbp), %rdi
callq 0x36bd0
nopw %cs:(%rax,%rax)
nop
| /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(%rcx), %rcx
movq %rcx, 0x8(%rax)
movq -0x18(%rbp), %rcx
movq 0x10(%rcx), %rcx
movq %rcx, 0x10(%rax)
movq -0x18(%rbp), %rcx
movq $0x0, 0x8(%rcx)
movq %rax, -0x8(%rbp)
movq -0x8(%rbp), %rax
addq $0x20, %rsp
popq %rbp
retq
nopw (%rax,%rax)
| /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_dir_path,
"gtest_redir",
0, // Generate unique file name.
temp_file_path);
GTEST_CHECK_(success != 0)
<< "Unable to create a temporary file in " << temp_dir_path;
const int captured_fd = creat(temp_file_path, _S_IREAD | _S_IWRITE);
GTEST_CHECK_(captured_fd != -1) << "Unable to open temporary file "
<< temp_file_path;
filename_ = temp_file_path;
# else
// There's no guarantee that a test has write access to the current
// directory, so we create the temporary file in a temporary directory.
std::string name_template;
# if GTEST_OS_LINUX_ANDROID
// Note: Android applications are expected to call the framework's
// Context.getExternalStorageDirectory() method through JNI to get
// the location of the world-writable SD Card directory. However,
// this requires a Context handle, which cannot be retrieved
// globally from native code. Doing so also precludes running the
// code as part of a regular standalone executable, which doesn't
// run in a Dalvik process (e.g. when running it through 'adb shell').
//
// The location /data/local/tmp is directly accessible from native code.
// '/sdcard' and other variants cannot be relied on, as they are not
// guaranteed to be mounted, or may have a delay in mounting.
name_template = "/data/local/tmp/";
# elif GTEST_OS_IOS
char user_temp_dir[PATH_MAX + 1];
// Documented alternative to NSTemporaryDirectory() (for obtaining creating
// a temporary directory) at
// https://developer.apple.com/library/archive/documentation/Security/Conceptual/SecureCodingGuide/Articles/RaceConditions.html#//apple_ref/doc/uid/TP40002585-SW10
//
// _CS_DARWIN_USER_TEMP_DIR (as well as _CS_DARWIN_USER_CACHE_DIR) is not
// documented in the confstr() man page at
// https://developer.apple.com/library/archive/documentation/System/Conceptual/ManPages_iPhoneOS/man3/confstr.3.html#//apple_ref/doc/man/3/confstr
// but are still available, according to the WebKit patches at
// https://trac.webkit.org/changeset/262004/webkit
// https://trac.webkit.org/changeset/263705/webkit
//
// The confstr() implementation falls back to getenv("TMPDIR"). See
// https://opensource.apple.com/source/Libc/Libc-1439.100.3/gen/confstr.c.auto.html
::confstr(_CS_DARWIN_USER_TEMP_DIR, user_temp_dir, sizeof(user_temp_dir));
name_template = user_temp_dir;
if (name_template.back() != GTEST_PATH_SEP_[0])
name_template.push_back(GTEST_PATH_SEP_[0]);
# else
name_template = "/tmp/";
# endif
name_template.append("gtest_captured_stream.XXXXXX");
// mkstemp() modifies the string bytes in place, and does not go beyond the
// string's length. This results in well-defined behavior in C++17.
//
// The const_cast is needed below C++17. The constraints on std::string
// implementations in C++11 and above make assumption behind the const_cast
// fairly safe.
const int captured_fd = ::mkstemp(const_cast<char*>(name_template.data()));
if (captured_fd == -1) {
GTEST_LOG_(WARNING)
<< "Failed to create tmp file " << name_template
<< " for test; does the test have access to the /tmp directory?";
}
filename_ = std::move(name_template);
# endif // GTEST_OS_WINDOWS
fflush(nullptr);
dup2(captured_fd, fd_);
close(captured_fd);
} | 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(%rbp), %rdi
movq %rdi, -0x50(%rbp)
callq 0x36620
movq -0x50(%rbp), %rdi
leaq 0x299b83(%rip), %rsi # 0x32f8e6
callq 0x36730
jmp 0x95d6a
leaq 0x29ac1c(%rip), %rsi # 0x33098d
leaq -0x30(%rbp), %rdi
callq 0x36c20
jmp 0x95d7c
leaq -0x30(%rbp), %rdi
callq 0x361d0
movq %rax, %rdi
callq 0x36d00
movl %eax, -0x64(%rbp)
jmp 0x95d92
movl -0x64(%rbp), %eax
movl %eax, -0x40(%rbp)
cmpl $-0x1, -0x40(%rbp)
jne 0x95e31
leaq 0x299fd9(%rip), %rdx # 0x32fd82
leaq -0x44(%rbp), %rdi
movl $0x1, %esi
movl $0x467, %ecx # imm = 0x467
callq 0x7d990
jmp 0x95dbe
leaq -0x44(%rbp), %rdi
callq 0x52010
movq %rax, %rdi
leaq 0x29abd9(%rip), %rsi # 0x3309aa
callq 0x36a60
movq %rax, -0x70(%rbp)
jmp 0x95ddc
movq -0x70(%rbp), %rdi
leaq -0x30(%rbp), %rsi
callq 0x36580
movq %rax, -0x78(%rbp)
jmp 0x95def
movq -0x78(%rbp), %rdi
leaq 0x29abcb(%rip), %rsi # 0x3309c5
callq 0x36a60
jmp 0x95e01
leaq -0x44(%rbp), %rdi
callq 0x7dad0
jmp 0x95e31
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x38(%rbp)
movl %eax, -0x3c(%rbp)
jmp 0x95e77
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x38(%rbp)
movl %eax, -0x3c(%rbp)
leaq -0x44(%rbp), %rdi
callq 0x7dad0
jmp 0x95e77
movq -0x60(%rbp), %rdi
addq $0x8, %rdi
leaq -0x30(%rbp), %rsi
callq 0x369a0
xorl %eax, %eax
movl %eax, %edi
callq 0x36910
jmp 0x95e4d
movq -0x60(%rbp), %rax
movl -0x40(%rbp), %edi
movl (%rax), %esi
callq 0x36a30
movl -0x40(%rbp), %edi
callq 0x36420
jmp 0x95e65
leaq -0x30(%rbp), %rdi
callq 0x37610
addq $0x80, %rsp
popq %rbp
retq
leaq -0x30(%rbp), %rdi
callq 0x37610
movq -0x58(%rbp), %rdi
callq 0x37610
movq -0x38(%rbp), %rdi
callq 0x36bd0
nopw %cs:(%rax,%rax)
nopl (%rax)
| /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 it is more specific than the generic ones
// in ::testing::internal, it will be picked by the compiler in the
// following statement - exactly what we want.
PrintTo(value, os);
} | 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
movq -0x58(%rbp), %rsi
movq -0x50(%rbp), %rdx
leaq -0x30(%rbp), %rdi
callq 0x96a20
jmp 0x96981
movq -0x10(%rbp), %rsi
leaq -0x30(%rbp), %rdi
callq 0x969f0
jmp 0x96990
leaq -0x30(%rbp), %rdi
callq 0x36fb0
leaq -0x31(%rbp), %rdi
callq 0x36300
jmp 0x969d2
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x40(%rbp)
movl %eax, -0x44(%rbp)
jmp 0x969c7
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x40(%rbp)
movl %eax, -0x44(%rbp)
leaq -0x30(%rbp), %rdi
callq 0x36fb0
leaq -0x31(%rbp), %rdi
callq 0x36300
jmp 0x969d8
addq $0x60, %rsp
popq %rbp
retq
movq -0x40(%rbp), %rdi
callq 0x36bd0
nopw %cs:(%rax,%rax)
nopl (%rax,%rax)
| /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 it is more specific than the generic ones
// in ::testing::internal, it will be picked by the compiler in the
// following statement - exactly what we want.
PrintTo(value, os);
} | 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 global
// namespace, but not other namespaces, including the testing
// namespace which Google Test's Message class is in.
//
// To allow STL containers (and other types that has a << operator
// defined in the global namespace) to be used in Google Test
// assertions, testing::Message must access the custom << operator
// from the global namespace. With this using declaration,
// overloads of << defined in the global namespace and those
// visible via Koenig lookup are both exposed in this function.
using ::operator <<;
*ss_ << val;
return *this;
} | 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_->MakeNewHolder();
ThreadLocalValueHolderBase* const holder_base = new_holder;
GTEST_CHECK_POSIX_SUCCESS_(pthread_setspecific(key_, holder_base));
return new_holder->pointer();
} | 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), %rdi
addq $0x8, %rdi
callq 0x98b60
movq %rax, %rdi
movq (%rdi), %rax
callq *0x10(%rax)
movq %rax, %rcx
movq -0x48(%rbp), %rax
movq %rcx, -0x20(%rbp)
movq -0x20(%rbp), %rcx
movq %rcx, -0x28(%rbp)
movl (%rax), %edi
movq -0x28(%rbp), %rsi
callq 0x36660
movl %eax, -0x2c(%rbp)
cmpl $0x0, -0x2c(%rbp)
je 0x98a23
leaq 0x297693(%rip), %rdx # 0x33003b
leaq -0x30(%rbp), %rdi
movq %rdi, -0x58(%rbp)
movl $0x3, %esi
movl $0x6f0, %ecx # imm = 0x6F0
callq 0x7d990
movq -0x58(%rbp), %rdi
callq 0x52010
movq %rax, %rdi
leaq 0x297949(%rip), %rsi # 0x33031b
callq 0x36a60
movq %rax, -0x50(%rbp)
jmp 0x989dd
movq -0x50(%rbp), %rdi
leaq 0x2976f1(%rip), %rsi # 0x3300d9
callq 0x36a60
movq %rax, -0x60(%rbp)
jmp 0x989f3
movq -0x60(%rbp), %rdi
movl -0x2c(%rbp), %esi
callq 0x365c0
jmp 0x98a01
leaq -0x30(%rbp), %rdi
callq 0x7dad0
jmp 0x98a23
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x38(%rbp)
movl %eax, -0x3c(%rbp)
leaq -0x30(%rbp), %rdi
callq 0x7dad0
jmp 0x98a3a
movq -0x20(%rbp), %rdi
callq 0x98b40
movq %rax, -0x8(%rbp)
movq -0x8(%rbp), %rax
addq $0x60, %rsp
popq %rbp
retq
movq -0x38(%rbp), %rdi
callq 0x36bd0
nopw %cs:(%rax,%rax)
nopl (%rax)
| /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::internal::EqMatcher<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>, false>>(testing::internal::MatcherBase<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&> const&) | 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 want to get their impl back when
// they call GetDescriber().
// We use std::get on a tuple as a workaround of not having `if constexpr`.
return std::get<(
std::is_convertible<decltype(&P::Get(m)),
const MatcherDescriberInterface*>::value
? 1
: 0)>(std::make_tuple(&m, &P::Get(m)));
} | 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, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
nop
| /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::EqMatcher<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>, false>>(testing::internal::MatcherBase<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>> const&) | 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 want to get their impl back when
// they call GetDescriber().
// We use std::get on a tuple as a workaround of not having `if constexpr`.
return std::get<(
std::is_convertible<decltype(&P::Get(m)),
const MatcherDescriberInterface*>::value
? 1
: 0)>(std::make_tuple(&m, &P::Get(m)));
} | 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, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
nop
| /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, std::char_traits<char>, std::allocator<char>>>, false>>(testing::internal::MatcherBase<std::basic_string_view<char, std::char_traits<char>> const&> const&) | 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 want to get their impl back when
// they call GetDescriber().
// We use std::get on a tuple as a workaround of not having `if constexpr`.
return std::get<(
std::is_convertible<decltype(&P::Get(m)),
const MatcherDescriberInterface*>::value
? 1
: 0)>(std::make_tuple(&m, &P::Get(m)));
} | 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, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
nop
| /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_traits<char>, std::allocator<char>>>, false>>(testing::internal::MatcherBase<std::basic_string_view<char, std::char_traits<char>>> const&) | 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 want to get their impl back when
// they call GetDescriber().
// We use std::get on a tuple as a workaround of not having `if constexpr`.
return std::get<(
std::is_convertible<decltype(&P::Get(m)),
const MatcherDescriberInterface*>::value
? 1
: 0)>(std::make_tuple(&m, &P::Get(m)));
} | 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, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
nop
| /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 definition over
p.copy_meta_data(&p_, check_param);
return p_;
} | 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 -0x10(%rbp), %rdi
callq 0xb9fb0
movl %eax, -0x4c(%rbp)
movq -0x10(%rbp), %rdi
callq 0xb9fd0
movq %rax, -0x48(%rbp)
movq -0x10(%rbp), %rdi
callq 0xba230
movl %eax, -0x3c(%rbp)
movq -0x10(%rbp), %rdi
callq 0xb9ff0
movq -0x68(%rbp), %rdi
movl -0x5c(%rbp), %esi
movq -0x58(%rbp), %rdx
movl -0x4c(%rbp), %ecx
movq -0x48(%rbp), %r8
movl -0x3c(%rbp), %r9d
movzbl %al, %r10d
andl $0x1, %r10d
movq %rsp, %rax
movl %r10d, (%rax)
callq 0xa8d20
movq %rax, -0x28(%rbp)
movq -0x28(%rbp), %rax
movq %rax, -0x38(%rbp)
movq -0x10(%rbp), %rdi
callq 0xba040
movq -0x38(%rbp), %rdi
movzbl %al, %esi
andl $0x1, %esi
callq 0xba010
movq -0x28(%rbp), %rax
movq %rax, -0x30(%rbp)
movq -0x10(%rbp), %rdi
movq (%rdi), %rax
callq *0xc0(%rax)
movq -0x30(%rbp), %rdi
movb %al, %cl
movq (%rdi), %rax
movq 0xc8(%rax), %rax
movzbl %cl, %esi
andl $0x1, %esi
callq *%rax
movq -0x10(%rbp), %rdi
movq -0x28(%rbp), %rsi
movb -0x19(%rbp), %al
andb $0x1, %al
movzbl %al, %edx
callq 0x10c330
movq -0x28(%rbp), %rax
addq $0x70, %rsp
popq %rbp
retq
nop
| /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);
vars_.emplace(port_name, p);
port.copy_meta_data(p.get(), check_param);
return *p;
} | 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 %rax, -0x80(%rbp)
movq -0x10(%rbp), %rsi
movq (%rsi), %rax
movq 0x170(%rax), %rax
leaq -0x50(%rbp), %rdi
movq %rdi, -0x78(%rbp)
callq *%rax
movq -0x80(%rbp), %rcx
movq -0x78(%rbp), %r8
leaq -0x30(%rbp), %rdi
leaq -0x38(%rbp), %rsi
leaq -0x3c(%rbp), %rdx
callq 0xba250
jmp 0xa9004
leaq -0x50(%rbp), %rdi
callq 0xba2e0
movq -0x88(%rbp), %rdi
movq -0x18(%rbp), %rsi
movq (%rdi), %rax
movq 0x38(%rax), %rax
callq *%rax
jmp 0xa9023
movq -0x88(%rbp), %rdi
addq $0x100, %rdi # imm = 0x100
movq -0x18(%rbp), %rsi
leaq -0x30(%rbp), %rdx
callq 0xba300
movb %dl, -0x91(%rbp)
movq %rax, -0x90(%rbp)
jmp 0xa904d
movb -0x91(%rbp), %al
movq -0x90(%rbp), %rcx
movq %rcx, -0x70(%rbp)
movb %al, -0x68(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0xa0(%rbp)
leaq -0x30(%rbp), %rdi
callq 0xba350
movq -0xa0(%rbp), %rdi
movq %rax, %rsi
movzbl -0x19(%rbp), %edx
andl $0x1, %edx
callq 0x10c330
jmp 0xa908d
leaq -0x30(%rbp), %rdi
callq 0xba370
movq %rax, -0xa8(%rbp)
leaq -0x30(%rbp), %rdi
callq 0xba3a0
movq -0xa8(%rbp), %rax
addq $0xb0, %rsp
popq %rbp
retq
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x58(%rbp)
movl %eax, -0x5c(%rbp)
leaq -0x50(%rbp), %rdi
callq 0xba2e0
jmp 0xa90e2
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x58(%rbp)
movl %eax, -0x5c(%rbp)
leaq -0x30(%rbp), %rdi
callq 0xba3a0
movq -0x58(%rbp), %rdi
callq 0x36bd0
nopl (%rax,%rax)
| /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),
{vars_.at(port_name).get()});
// make sure the enum def is not local
if (def->local())
throw UserException(::format("Cannot use {0} as port type since it's local", def->name));
auto p = std::make_shared<EnumPort>(this, direction, port_name, def);
add_port_name(port_name);
vars_.emplace(port_name, p);
return *p;
} | 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
movq %rax, -0x138(%rbp)
addq $0x130, %rdi # imm = 0x130
callq 0x82ea0
movq %rax, -0x140(%rbp)
leaq -0x138(%rbp), %rdi
leaq -0x140(%rbp), %rsi
callq 0x82e40
testb $0x1, %al
jne 0xa9334
jmp 0xa95b3
movb $0x1, -0x1a2(%rbp)
movl $0x10, %edi
callq 0x36700
movq %rax, %rcx
movq -0x200(%rbp), %rax
movq %rcx, -0x208(%rbp)
movq -0x128(%rbp), %rcx
addq $0x78, %rax
leaq -0x160(%rbp), %rdx
movq %rdx, -0xa8(%rbp)
leaq 0x288518(%rip), %rdx # 0x33188e
movq %rdx, -0xb0(%rbp)
movq %rcx, -0xb8(%rbp)
movq %rax, -0xc0(%rbp)
movq -0xb0(%rbp), %rsi
movq -0xb8(%rbp), %rdx
movq -0xc0(%rbp), %rcx
leaq -0xf0(%rbp), %rdi
callq 0xd82f0
jmp 0xa93ae
leaq -0xf0(%rbp), %rax
movq %rax, -0xc8(%rbp)
movq -0xb0(%rbp), %rdi
callq 0xcc610
movq %rdx, -0x218(%rbp)
movq %rax, -0x210(%rbp)
jmp 0xa93d8
movq -0x218(%rbp), %rax
movq -0x210(%rbp), %rcx
movq %rcx, -0x100(%rbp)
movq %rax, -0xf8(%rbp)
movq -0xc8(%rbp), %rax
leaq -0x110(%rbp), %rcx
movq %rcx, -0x48(%rbp)
movq %rax, -0x50(%rbp)
movq -0x48(%rbp), %rcx
movq -0x50(%rbp), %rax
movq %rcx, -0x38(%rbp)
movq %rax, -0x40(%rbp)
movq -0x38(%rbp), %rdi
movq -0x40(%rbp), %rax
movq %rax, -0x30(%rbp)
movq -0x30(%rbp), %rdx
movl $0xdd, %esi
callq 0xcc8d0
movq -0x100(%rbp), %rsi
movq -0xf8(%rbp), %rdx
movq -0x110(%rbp), %rcx
movq -0x108(%rbp), %r8
leaq -0x160(%rbp), %rdi
callq 0x31ba00
jmp 0xa945e
jmp 0xa9460
movq -0x200(%rbp), %rdi
addq $0x100, %rdi # imm = 0x100
movq -0x128(%rbp), %rsi
callq 0xb95a0
movq %rax, -0x220(%rbp)
jmp 0xa9483
movq -0x220(%rbp), %rdi
callq 0x56220
movq %rax, -0x1a0(%rbp)
leaq -0x1a0(%rbp), %rax
movq %rax, -0x198(%rbp)
movq $0x1, -0x190(%rbp)
leaq -0x1a1(%rbp), %rdi
movq %rdi, -0x228(%rbp)
callq 0xb9d50
movq -0x228(%rbp), %rcx
movq -0x198(%rbp), %rsi
movq -0x190(%rbp), %rdx
leaq -0x188(%rbp), %rdi
callq 0xb9d70
jmp 0xa94e5
movq -0x208(%rbp), %rdi
leaq -0x160(%rbp), %rsi
leaq -0x188(%rbp), %rdx
callq 0x1e5a70
movq -0x208(%rbp), %rdi
movb $0x0, -0x1a2(%rbp)
leaq 0x3f729c(%rip), %rsi # 0x4a07b0
leaq 0x108d5(%rip), %rdx # 0xb9df0
callq 0x36b70
jmp 0xa9864
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x168(%rbp)
movl %eax, -0x16c(%rbp)
jmp 0xa9597
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x168(%rbp)
movl %eax, -0x16c(%rbp)
jmp 0xa958b
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x168(%rbp)
movl %eax, -0x16c(%rbp)
jmp 0xa957f
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x168(%rbp)
movl %eax, -0x16c(%rbp)
leaq -0x188(%rbp), %rdi
callq 0xb9e10
leaq -0x1a1(%rbp), %rdi
callq 0xb9e70
leaq -0x160(%rbp), %rdi
callq 0x37610
testb $0x1, -0x1a2(%rbp)
jne 0xa95a2
jmp 0xa95ae
movq -0x208(%rbp), %rdi
callq 0x37000
jmp 0xa9858
movq -0x130(%rbp), %rdi
callq 0xba540
movq %rax, %rdi
callq 0xba560
testb $0x1, (%rax)
je 0xa9772
movb $0x1, -0x1c9(%rbp)
movl $0x10, %edi
callq 0x36700
movq %rax, -0x240(%rbp)
movq -0x130(%rbp), %rdi
callq 0xba540
addq $0x40, %rax
leaq -0x1c8(%rbp), %rcx
movq %rcx, -0x58(%rbp)
leaq 0x288236(%rip), %rcx # 0x331840
movq %rcx, -0x60(%rbp)
movq %rax, -0x68(%rbp)
movq -0x60(%rbp), %rdi
movq -0x68(%rbp), %rsi
callq 0xd83f0
movq %rdx, -0x238(%rbp)
movq %rax, -0x230(%rbp)
jmp 0xa962f
movq -0x238(%rbp), %rax
movq -0x230(%rbp), %rcx
movq %rcx, -0x80(%rbp)
movq %rax, -0x78(%rbp)
leaq -0x80(%rbp), %rax
movq %rax, -0x70(%rbp)
movq -0x60(%rbp), %rdi
callq 0xcc610
movq %rdx, -0x250(%rbp)
movq %rax, -0x248(%rbp)
jmp 0xa9666
movq -0x250(%rbp), %rax
movq -0x248(%rbp), %rcx
movq %rcx, -0x90(%rbp)
movq %rax, -0x88(%rbp)
movq -0x70(%rbp), %rax
leaq -0xa0(%rbp), %rcx
movq %rcx, -0x20(%rbp)
movq %rax, -0x28(%rbp)
movq -0x20(%rbp), %rcx
movq -0x28(%rbp), %rax
movq %rcx, -0x10(%rbp)
movq %rax, -0x18(%rbp)
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rax
movq %rax, -0x8(%rbp)
movq -0x8(%rbp), %rdx
movl $0xd, %esi
callq 0xcc8d0
movq -0x90(%rbp), %rsi
movq -0x88(%rbp), %rdx
movq -0xa0(%rbp), %rcx
movq -0x98(%rbp), %r8
leaq -0x1c8(%rbp), %rdi
callq 0x31ba00
jmp 0xa96e9
jmp 0xa96eb
movq -0x240(%rbp), %rdi
leaq -0x1c8(%rbp), %rsi
callq 0x1e5d00
movq -0x240(%rbp), %rdi
movb $0x0, -0x1c9(%rbp)
leaq 0x3f6ffd(%rip), %rsi # 0x4a0710
leaq 0xf766(%rip), %rdx # 0xb8e80
callq 0x36b70
jmp 0xa9864
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x168(%rbp)
movl %eax, -0x16c(%rbp)
jmp 0xa9756
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x168(%rbp)
movl %eax, -0x16c(%rbp)
leaq -0x1c8(%rbp), %rdi
callq 0x37610
testb $0x1, -0x1c9(%rbp)
jne 0xa9761
jmp 0xa976d
movq -0x240(%rbp), %rdi
callq 0x37000
jmp 0xa9858
movq -0x200(%rbp), %rax
movq %rax, -0x1e8(%rbp)
movq -0x128(%rbp), %rcx
movq -0x130(%rbp), %r8
leaq -0x1e0(%rbp), %rdi
leaq -0x1e8(%rbp), %rsi
leaq -0x11c(%rbp), %rdx
callq 0xba580
movq -0x200(%rbp), %rdi
movq -0x128(%rbp), %rsi
movq (%rdi), %rax
movq 0x38(%rax), %rax
callq *%rax
jmp 0xa97c1
movq -0x200(%rbp), %rdi
addq $0x100, %rdi # imm = 0x100
movq -0x128(%rbp), %rsi
leaq -0x1e0(%rbp), %rdx
callq 0xba480
movb %dl, -0x259(%rbp)
movq %rax, -0x258(%rbp)
jmp 0xa97f1
movb -0x259(%rbp), %al
movq -0x258(%rbp), %rcx
movq %rcx, -0x1f8(%rbp)
movb %al, -0x1f0(%rbp)
leaq -0x1e0(%rbp), %rdi
callq 0xba4f0
movq %rax, -0x268(%rbp)
leaq -0x1e0(%rbp), %rdi
callq 0xba520
movq -0x268(%rbp), %rax
addq $0x270, %rsp # imm = 0x270
popq %rbp
retq
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x168(%rbp)
movl %eax, -0x16c(%rbp)
leaq -0x1e0(%rbp), %rdi
callq 0xba520
movq -0x168(%rbp), %rdi
callq 0x36bd0
nopw %cs:(%rax,%rax)
| /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 ¶meter_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 # imm = 0x160
callq 0xba9f0
movq %rax, -0xa0(%rbp)
leaq -0x98(%rbp), %rdi
leaq -0xa0(%rbp), %rsi
callq 0xba990
testb $0x1, %al
jne 0xa9bf7
jmp 0xa9e46
movb $0x1, -0x102(%rbp)
movl $0x10, %edi
callq 0x36700
movq %rax, -0x128(%rbp)
movq -0x90(%rbp), %rax
leaq -0xc0(%rbp), %rcx
movq %rcx, -0x30(%rbp)
leaq 0x287c45(%rip), %rcx # 0x33186d
movq %rcx, -0x38(%rbp)
movq %rax, -0x40(%rbp)
movq -0x38(%rbp), %rdi
movq -0x40(%rbp), %rsi
callq 0xdb130
movq %rdx, -0x120(%rbp)
movq %rax, -0x118(%rbp)
jmp 0xa9c4d
movq -0x120(%rbp), %rax
movq -0x118(%rbp), %rcx
movq %rcx, -0x60(%rbp)
movq %rax, -0x58(%rbp)
leaq -0x60(%rbp), %rax
movq %rax, -0x48(%rbp)
movq -0x38(%rbp), %rdi
callq 0xcc610
movq %rdx, -0x138(%rbp)
movq %rax, -0x130(%rbp)
jmp 0xa9c84
movq -0x138(%rbp), %rax
movq -0x130(%rbp), %rcx
movq %rcx, -0x70(%rbp)
movq %rax, -0x68(%rbp)
movq -0x48(%rbp), %rax
leaq -0x80(%rbp), %rcx
movq %rcx, -0x20(%rbp)
movq %rax, -0x28(%rbp)
movq -0x20(%rbp), %rcx
movq -0x28(%rbp), %rax
movq %rcx, -0x10(%rbp)
movq %rax, -0x18(%rbp)
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rax
movq %rax, -0x8(%rbp)
movq -0x8(%rbp), %rdx
movl $0xd, %esi
callq 0xcc8d0
jmp 0xa9cd6
movq -0x70(%rbp), %rsi
movq -0x68(%rbp), %rdx
movq -0x80(%rbp), %rcx
movq -0x78(%rbp), %r8
leaq -0xc0(%rbp), %rdi
callq 0x31ba00
jmp 0xa9cf4
jmp 0xa9cf6
movq -0x110(%rbp), %rdi
addq $0x160, %rdi # imm = 0x160
movq -0x90(%rbp), %rsi
callq 0xbaa20
movq %rax, -0x140(%rbp)
jmp 0xa9d19
movq -0x140(%rbp), %rdi
callq 0xbaac0
movq %rax, -0x100(%rbp)
leaq -0x100(%rbp), %rax
movq %rax, -0xf8(%rbp)
movq $0x1, -0xf0(%rbp)
leaq -0x101(%rbp), %rdi
movq %rdi, -0x148(%rbp)
callq 0xb9d50
movq -0x148(%rbp), %rcx
movq -0xf8(%rbp), %rsi
movq -0xf0(%rbp), %rdx
leaq -0xe8(%rbp), %rdi
callq 0xb9d70
jmp 0xa9d7b
movq -0x128(%rbp), %rdi
leaq -0xc0(%rbp), %rsi
leaq -0xe8(%rbp), %rdx
callq 0x1e5a70
movq -0x128(%rbp), %rdi
movb $0x0, -0x102(%rbp)
leaq 0x3f6a06(%rip), %rsi # 0x4a07b0
leaq 0x1003f(%rip), %rdx # 0xb9df0
callq 0x36b70
jmp 0xa9e5b
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0xc8(%rbp)
movl %eax, -0xcc(%rbp)
jmp 0xa9e2d
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0xc8(%rbp)
movl %eax, -0xcc(%rbp)
jmp 0xa9e21
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0xc8(%rbp)
movl %eax, -0xcc(%rbp)
jmp 0xa9e15
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0xc8(%rbp)
movl %eax, -0xcc(%rbp)
leaq -0xe8(%rbp), %rdi
callq 0xb9e10
leaq -0x101(%rbp), %rdi
callq 0xb9e70
leaq -0xc0(%rbp), %rdi
callq 0x37610
testb $0x1, -0x102(%rbp)
jne 0xa9e38
jmp 0xa9e44
movq -0x128(%rbp), %rdi
callq 0x37000
jmp 0xa9e4f
addq $0x150, %rsp # imm = 0x150
popq %rbp
retq
movq -0xc8(%rbp), %rdi
callq 0x36bd0
nopl (%rax,%rax)
| /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(func_name).get();
} else if (index < stmts_count() + funcs_.size() + get_child_generator_size()) {
auto n = children_names_[index - stmts_count() - funcs_.size()];
return children_.at(n).get();
} else {
return nullptr;
}
} | 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), %rax
cmpq %rcx, %rax
jae 0xacb59
movq -0x80(%rbp), %rdi
addq $0x1f8, %rdi # imm = 0x1F8
movq -0x18(%rbp), %rsi
callq 0xbbf20
movq %rax, %rdi
callq 0xbbf40
movq %rax, -0x8(%rbp)
jmp 0xacd7b
movq -0x80(%rbp), %rdi
movq -0x18(%rbp), %rax
movq %rax, -0x90(%rbp)
callq 0xbbef0
movq -0x80(%rbp), %rdi
movq %rax, -0x98(%rbp)
addq $0x3b8, %rdi # imm = 0x3B8
callq 0xbb6f0
movq -0x98(%rbp), %rcx
movq %rax, %rdx
movq -0x90(%rbp), %rax
addq %rdx, %rcx
cmpq %rcx, %rax
jae 0xacc4b
movq -0x80(%rbp), %rdi
movq -0x18(%rbp), %rax
movq %rax, -0xb0(%rbp)
callq 0xbbef0
movq -0x80(%rbp), %rdi
movq %rax, %rcx
movq -0xb0(%rbp), %rax
subq %rcx, %rax
movq %rax, -0x20(%rbp)
addq $0x3e8, %rdi # imm = 0x3E8
movl -0x20(%rbp), %eax
movl %eax, -0x44(%rbp)
leaq -0x44(%rbp), %rsi
callq 0xbbf60
movq %rax, %rsi
leaq -0x40(%rbp), %rdi
movq %rdi, -0xa8(%rbp)
callq 0x36230
movq -0x80(%rbp), %rdi
movq -0xa8(%rbp), %rsi
addq $0x3b8, %rdi # imm = 0x3B8
callq 0xbb150
movq %rax, -0xa0(%rbp)
jmp 0xacc13
movq -0xa0(%rbp), %rdi
callq 0xbbcf0
movq %rax, -0x8(%rbp)
leaq -0x40(%rbp), %rdi
callq 0x37610
jmp 0xacd7b
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x50(%rbp)
movl %eax, -0x54(%rbp)
leaq -0x40(%rbp), %rdi
callq 0x37610
jmp 0xacd88
movq -0x80(%rbp), %rdi
movq -0x18(%rbp), %rax
movq %rax, -0xb8(%rbp)
callq 0xbbef0
movq -0x80(%rbp), %rdi
movq %rax, -0xc8(%rbp)
addq $0x3b8, %rdi # imm = 0x3B8
callq 0xbb6f0
movq -0x80(%rbp), %rdi
movq %rax, %rcx
movq -0xc8(%rbp), %rax
addq %rcx, %rax
movq %rax, -0xc0(%rbp)
callq 0xbc000
movq -0xc0(%rbp), %rcx
movq %rax, %rdx
movq -0xb8(%rbp), %rax
addq %rdx, %rcx
cmpq %rcx, %rax
jae 0xacd73
movq -0x80(%rbp), %rdi
movq %rdi, %rax
addq $0x248, %rax # imm = 0x248
movq %rax, -0xe0(%rbp)
movq -0x18(%rbp), %rax
movq %rax, -0xf0(%rbp)
callq 0xbbef0
movq -0x80(%rbp), %rdi
movq %rax, %rcx
movq -0xf0(%rbp), %rax
subq %rcx, %rax
movq %rax, -0xe8(%rbp)
addq $0x3b8, %rdi # imm = 0x3B8
callq 0xbb6f0
movq -0xe8(%rbp), %rsi
movq -0xe0(%rbp), %rdi
subq %rax, %rsi
callq 0x83540
movq %rax, %rsi
leaq -0x78(%rbp), %rdi
movq %rdi, -0xd8(%rbp)
callq 0x36230
movq -0x80(%rbp), %rdi
movq -0xd8(%rbp), %rsi
addq $0x210, %rdi # imm = 0x210
callq 0xbc030
movq %rax, -0xd0(%rbp)
jmp 0xacd41
movq -0xd0(%rbp), %rdi
callq 0xbc060
movq %rax, -0x8(%rbp)
leaq -0x78(%rbp), %rdi
callq 0x37610
jmp 0xacd7b
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x50(%rbp)
movl %eax, -0x54(%rbp)
leaq -0x78(%rbp), %rdi
callq 0x37610
jmp 0xacd88
movq $0x0, -0x8(%rbp)
movq -0x8(%rbp), %rax
addq $0xf0, %rsp
popq %rbp
retq
movq -0x50(%rbp), %rdi
callq 0x36bd0
nopw %cs:(%rax,%rax)
| /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);
child->parent_generator_ = this;
children_names_.emplace_back(child->instance_name);
} else {
throw GeneratorException(
::format("{0} already exists in {1}", child->instance_name, instance_name),
{children_.at(instance_name_).get()});
}
} | 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, %rdi
callq 0x374b0
movq -0x138(%rbp), %rax
addq $0x210, %rax # imm = 0x210
movq %rax, -0x140(%rbp)
movq -0xa8(%rbp), %rdi
callq 0xbc080
movq -0x140(%rbp), %rdi
movq %rax, %rsi
addq $0x98, %rsi
callq 0xbc0d0
movq -0x138(%rbp), %rdi
movq %rax, -0xb0(%rbp)
addq $0x210, %rdi # imm = 0x210
callq 0xbc100
movq %rax, -0xb8(%rbp)
leaq -0xb0(%rbp), %rdi
leaq -0xb8(%rbp), %rsi
callq 0xbc0a0
testb $0x1, %al
jne 0xace71
jmp 0xacf0c
movq -0x138(%rbp), %rax
addq $0x210, %rax # imm = 0x210
movq %rax, -0x158(%rbp)
movq -0xa8(%rbp), %rdi
callq 0xbc080
movq -0x158(%rbp), %rdi
movq %rax, %rsi
addq $0x98, %rsi
movq -0xa8(%rbp), %rdx
callq 0xbc130
movq %rax, -0xc8(%rbp)
movb %dl, -0xc0(%rbp)
movq -0xa8(%rbp), %rdi
callq 0xbc080
movq %rax, %rcx
movq -0x138(%rbp), %rax
movq %rax, 0x2d0(%rcx)
addq $0x248, %rax # imm = 0x248
movq %rax, -0x150(%rbp)
movq -0xa8(%rbp), %rdi
callq 0xbc080
movq -0x150(%rbp), %rdi
movq %rax, %rsi
addq $0x98, %rsi
callq 0xbc180
jmp 0xad168
movb $0x1, -0x12a(%rbp)
movl $0x10, %edi
callq 0x36700
movq %rax, -0x160(%rbp)
movq -0xa8(%rbp), %rdi
callq 0xbc080
movq %rax, %rcx
movq -0x138(%rbp), %rax
addq $0x98, %rcx
addq $0x98, %rax
leaq -0xe8(%rbp), %rdx
movq %rdx, -0x30(%rbp)
leaq 0x2849ff(%rip), %rdx # 0x331958
movq %rdx, -0x38(%rbp)
movq %rcx, -0x40(%rbp)
movq %rax, -0x48(%rbp)
movq -0x38(%rbp), %rsi
movq -0x40(%rbp), %rdx
movq -0x48(%rbp), %rcx
leaq -0x70(%rbp), %rdi
callq 0xeaa00
jmp 0xacf7c
leaq -0x70(%rbp), %rax
movq %rax, -0x50(%rbp)
movq -0x38(%rbp), %rdi
callq 0xcc610
movq %rdx, -0x170(%rbp)
movq %rax, -0x168(%rbp)
jmp 0xacf9d
movq -0x170(%rbp), %rax
movq -0x168(%rbp), %rcx
movq %rcx, -0x80(%rbp)
movq %rax, -0x78(%rbp)
movq -0x50(%rbp), %rax
leaq -0x90(%rbp), %rcx
movq %rcx, -0x20(%rbp)
movq %rax, -0x28(%rbp)
movq -0x20(%rbp), %rcx
movq -0x28(%rbp), %rax
movq %rcx, -0x10(%rbp)
movq %rax, -0x18(%rbp)
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rax
movq %rax, -0x8(%rbp)
movq -0x8(%rbp), %rdx
movl $0xdd, %esi
callq 0xcc8d0
jmp 0xacff2
movq -0x80(%rbp), %rsi
movq -0x78(%rbp), %rdx
movq -0x90(%rbp), %rcx
movq -0x88(%rbp), %r8
leaq -0xe8(%rbp), %rdi
callq 0x31ba00
jmp 0xad016
jmp 0xad018
movq -0x138(%rbp), %rdi
addq $0x210, %rdi # imm = 0x210
movq -0xa0(%rbp), %rsi
callq 0xbc030
movq %rax, -0x178(%rbp)
jmp 0xad03b
movq -0x178(%rbp), %rdi
callq 0xbc060
movq %rax, -0x128(%rbp)
leaq -0x128(%rbp), %rax
movq %rax, -0x120(%rbp)
movq $0x1, -0x118(%rbp)
leaq -0x129(%rbp), %rdi
movq %rdi, -0x180(%rbp)
callq 0xbbd10
movq -0x180(%rbp), %rcx
movq -0x120(%rbp), %rsi
movq -0x118(%rbp), %rdx
leaq -0x110(%rbp), %rdi
callq 0xbbd30
jmp 0xad09d
movq -0x160(%rbp), %rdi
leaq -0xe8(%rbp), %rsi
leaq -0x110(%rbp), %rdx
callq 0x1e5c50
movq -0x160(%rbp), %rdi
movb $0x0, -0x12a(%rbp)
leaq 0x3f3714(%rip), %rsi # 0x4a07e0
leaq 0xf12d(%rip), %rdx # 0xbc200
callq 0x36b70
jmp 0xad17d
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0xf0(%rbp)
movl %eax, -0xf4(%rbp)
jmp 0xad14f
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0xf0(%rbp)
movl %eax, -0xf4(%rbp)
jmp 0xad143
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0xf0(%rbp)
movl %eax, -0xf4(%rbp)
jmp 0xad137
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0xf0(%rbp)
movl %eax, -0xf4(%rbp)
leaq -0x110(%rbp), %rdi
callq 0xbbdd0
leaq -0x129(%rbp), %rdi
callq 0xbbe30
leaq -0xe8(%rbp), %rdi
callq 0x37610
testb $0x1, -0x12a(%rbp)
jne 0xad15a
jmp 0xad166
movq -0x160(%rbp), %rdi
callq 0x37000
jmp 0xad171
addq $0x180, %rsp # imm = 0x180
popq %rbp
retq
movq -0xf0(%rbp), %rdi
callq 0x36bd0
nopl (%rax)
| /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),
{this, child.get()});
if (children_.find(new_name) != children_.end())
throw GeneratorException(
::format("Child instance with name {0} already exists in {1}", new_name, instance_name),
{this, child.get()});
auto child_name = child->instance_name;
auto child_handler = children_.extract(child_name);
child_handler.key() = new_name;
children_.insert(std::move(child_handler));
// the commend
if (children_comments_.find(child_name) != children_comments_.end()) {
auto child_comment_handler = children_comments_.extract(child_name);
child_comment_handler.key() = new_name;
children_comments_.insert(std::move(child_comment_handler));
}
// the position holder
auto pos = std::find(children_names_.begin(), children_names_.end(), child_name);
if (pos == children_names_.end())
throw InternalException(::format("Unable to find {0}", child_name));
*pos = new_name;
// debug info
if (children_debug_.find(child_name) != children_debug_.end()) {
auto child_debug_handler = children_debug_.extract(child_name);
child_debug_handler.key() = new_name;
children_debug_.insert(std::move(child_debug_handler));
}
// finally change the instance name of a child
child->instance_name = new_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, -0x400(%rbp)
movq -0x1c0(%rbp), %rdi
callq 0xbc080
movq %rax, %rcx
movq -0x3f8(%rbp), %rax
addq $0x98, %rcx
addq $0x98, %rax
leaq -0x1e8(%rbp), %rdx
movq %rdx, -0x148(%rbp)
leaq 0x283d21(%rip), %rdx # 0x331973
movq %rdx, -0x150(%rbp)
movq %rcx, -0x158(%rbp)
movq %rax, -0x160(%rbp)
movq -0x150(%rbp), %rsi
movq -0x158(%rbp), %rdx
movq -0x160(%rbp), %rcx
leaq -0x190(%rbp), %rdi
callq 0xee8c0
jmp 0xadc8a
leaq -0x190(%rbp), %rax
movq %rax, -0x168(%rbp)
movq -0x150(%rbp), %rdi
callq 0xcc610
movq %rdx, -0x410(%rbp)
movq %rax, -0x408(%rbp)
jmp 0xadcb4
movq -0x410(%rbp), %rax
movq -0x408(%rbp), %rcx
movq %rcx, -0x1a0(%rbp)
movq %rax, -0x198(%rbp)
movq -0x168(%rbp), %rax
leaq -0x1b0(%rbp), %rcx
movq %rcx, -0x70(%rbp)
movq %rax, -0x78(%rbp)
movq -0x70(%rbp), %rcx
movq -0x78(%rbp), %rax
movq %rcx, -0x60(%rbp)
movq %rax, -0x68(%rbp)
movq -0x60(%rbp), %rdi
movq -0x68(%rbp), %rax
movq %rax, -0x58(%rbp)
movq -0x58(%rbp), %rdx
movl $0xdd, %esi
callq 0xcc8d0
jmp 0xadd12
movq -0x1a0(%rbp), %rsi
movq -0x198(%rbp), %rdx
movq -0x1b0(%rbp), %rcx
movq -0x1a8(%rbp), %r8
leaq -0x1e8(%rbp), %rdi
callq 0x31ba00
jmp 0xadd3c
jmp 0xadd3e
movq -0x3f8(%rbp), %rax
movq %rax, -0x230(%rbp)
movq -0x1c0(%rbp), %rdi
callq 0xbc060
movq %rax, -0x228(%rbp)
leaq -0x230(%rbp), %rax
movq %rax, -0x220(%rbp)
movq $0x2, -0x218(%rbp)
leaq -0x231(%rbp), %rdi
movq %rdi, -0x418(%rbp)
callq 0xbbd10
movq -0x418(%rbp), %rcx
movq -0x220(%rbp), %rsi
movq -0x218(%rbp), %rdx
leaq -0x210(%rbp), %rdi
callq 0xbbd30
jmp 0xaddae
movq -0x400(%rbp), %rdi
leaq -0x1e8(%rbp), %rsi
leaq -0x210(%rbp), %rdx
callq 0x1e5c50
movq -0x400(%rbp), %rdi
movb $0x0, -0x232(%rbp)
leaq 0x3f2a03(%rip), %rsi # 0x4a07e0
leaq 0xe41c(%rip), %rdx # 0xbc200
callq 0x36b70
jmp 0xae706
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x1f0(%rbp)
movl %eax, -0x1f4(%rbp)
jmp 0xade4c
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x1f0(%rbp)
movl %eax, -0x1f4(%rbp)
jmp 0xade34
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x1f0(%rbp)
movl %eax, -0x1f4(%rbp)
leaq -0x210(%rbp), %rdi
callq 0xbbdd0
leaq -0x231(%rbp), %rdi
callq 0xbbe30
leaq -0x1e8(%rbp), %rdi
callq 0x37610
testb $0x1, -0x232(%rbp)
jne 0xade57
jmp 0xade63
movq -0x400(%rbp), %rdi
callq 0x37000
jmp 0xae6fa
movq -0x3f8(%rbp), %rdi
addq $0x210, %rdi # imm = 0x210
movq -0x1c8(%rbp), %rsi
callq 0xbc0d0
movq -0x3f8(%rbp), %rdi
movq %rax, -0x240(%rbp)
addq $0x210, %rdi # imm = 0x210
callq 0xbc100
movq %rax, -0x248(%rbp)
leaq -0x240(%rbp), %rdi
leaq -0x248(%rbp), %rsi
callq 0xbc2a0
testb $0x1, %al
jne 0xadebf
jmp 0xae117
movb $0x1, -0x2a2(%rbp)
movl $0x10, %edi
callq 0x36700
movq %rax, %rcx
movq -0x3f8(%rbp), %rax
movq %rcx, -0x420(%rbp)
movq -0x1c8(%rbp), %rcx
addq $0x98, %rax
leaq -0x268(%rbp), %rdx
movq %rdx, -0xd8(%rbp)
leaq 0x283a8a(%rip), %rdx # 0x33198d
movq %rdx, -0xe0(%rbp)
movq %rcx, -0xe8(%rbp)
movq %rax, -0xf0(%rbp)
movq -0xe0(%rbp), %rsi
movq -0xe8(%rbp), %rdx
movq -0xf0(%rbp), %rcx
leaq -0x120(%rbp), %rdi
callq 0xee900
jmp 0xadf3b
leaq -0x120(%rbp), %rax
movq %rax, -0xf8(%rbp)
movq -0xe0(%rbp), %rdi
callq 0xcc610
movq %rdx, -0x430(%rbp)
movq %rax, -0x428(%rbp)
jmp 0xadf65
movq -0x430(%rbp), %rax
movq -0x428(%rbp), %rcx
movq %rcx, -0x130(%rbp)
movq %rax, -0x128(%rbp)
movq -0xf8(%rbp), %rax
leaq -0x140(%rbp), %rcx
movq %rcx, -0x48(%rbp)
movq %rax, -0x50(%rbp)
movq -0x48(%rbp), %rcx
movq -0x50(%rbp), %rax
movq %rcx, -0x38(%rbp)
movq %rax, -0x40(%rbp)
movq -0x38(%rbp), %rdi
movq -0x40(%rbp), %rax
movq %rax, -0x30(%rbp)
movq -0x30(%rbp), %rdx
movl $0xdd, %esi
callq 0xcc8d0
movq -0x130(%rbp), %rsi
movq -0x128(%rbp), %rdx
movq -0x140(%rbp), %rcx
movq -0x138(%rbp), %r8
leaq -0x268(%rbp), %rdi
callq 0x31ba00
jmp 0xadfeb
jmp 0xadfed
movq -0x3f8(%rbp), %rax
movq %rax, -0x2a0(%rbp)
movq -0x1c0(%rbp), %rdi
callq 0xbc060
movq %rax, -0x298(%rbp)
leaq -0x2a0(%rbp), %rax
movq %rax, -0x290(%rbp)
movq $0x2, -0x288(%rbp)
leaq -0x2a1(%rbp), %rdi
movq %rdi, -0x438(%rbp)
callq 0xbbd10
movq -0x438(%rbp), %rcx
movq -0x290(%rbp), %rsi
movq -0x288(%rbp), %rdx
leaq -0x280(%rbp), %rdi
callq 0xbbd30
jmp 0xae05d
movq -0x420(%rbp), %rdi
leaq -0x268(%rbp), %rsi
leaq -0x280(%rbp), %rdx
callq 0x1e5c50
movq -0x420(%rbp), %rdi
movb $0x0, -0x2a2(%rbp)
leaq 0x3f2754(%rip), %rsi # 0x4a07e0
leaq 0xe16d(%rip), %rdx # 0xbc200
callq 0x36b70
jmp 0xae706
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x1f0(%rbp)
movl %eax, -0x1f4(%rbp)
jmp 0xae0fb
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x1f0(%rbp)
movl %eax, -0x1f4(%rbp)
jmp 0xae0e3
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x1f0(%rbp)
movl %eax, -0x1f4(%rbp)
leaq -0x280(%rbp), %rdi
callq 0xbbdd0
leaq -0x2a1(%rbp), %rdi
callq 0xbbe30
leaq -0x268(%rbp), %rdi
callq 0x37610
testb $0x1, -0x2a2(%rbp)
jne 0xae106
jmp 0xae112
movq -0x420(%rbp), %rdi
callq 0x37000
jmp 0xae6fa
movq -0x1c0(%rbp), %rdi
callq 0xbc080
movq %rax, %rsi
addq $0x98, %rsi
leaq -0x2c8(%rbp), %rdi
movq %rdi, -0x440(%rbp)
callq 0x36230
movq -0x3f8(%rbp), %rsi
movq -0x440(%rbp), %rdx
addq $0x210, %rsi # imm = 0x210
leaq -0x2e0(%rbp), %rdi
callq 0xbc940
jmp 0xae163
movq -0x1c8(%rbp), %rax
movq %rax, -0x448(%rbp)
leaq -0x2e0(%rbp), %rdi
callq 0xbc980
movq -0x448(%rbp), %rsi
movq %rax, %rdi
callq 0x374b0
jmp 0xae18e
movq -0x3f8(%rbp), %rsi
addq $0x210, %rsi # imm = 0x210
leaq -0x308(%rbp), %rdi
leaq -0x2e0(%rbp), %rdx
callq 0xbc9a0
jmp 0xae1b1
leaq -0x308(%rbp), %rdi
callq 0xbc9e0
movq -0x3f8(%rbp), %rdi
addq $0x298, %rdi # imm = 0x298
leaq -0x2c8(%rbp), %rsi
callq 0xbca30
movq %rax, -0x450(%rbp)
jmp 0xae1e0
movq -0x3f8(%rbp), %rdi
movq -0x450(%rbp), %rax
movq %rax, -0x310(%rbp)
addq $0x298, %rdi # imm = 0x298
callq 0xbca60
movq %rax, -0x318(%rbp)
leaq -0x310(%rbp), %rdi
leaq -0x318(%rbp), %rsi
callq 0xbca00
testb $0x1, %al
jne 0xae224
jmp 0xae300
movq -0x3f8(%rbp), %rsi
addq $0x298, %rsi # imm = 0x298
leaq -0x330(%rbp), %rdi
leaq -0x2c8(%rbp), %rdx
callq 0xbca90
jmp 0xae247
movq -0x1c8(%rbp), %rax
movq %rax, -0x458(%rbp)
leaq -0x330(%rbp), %rdi
callq 0xbcad0
movq -0x458(%rbp), %rsi
movq %rax, %rdi
callq 0x374b0
jmp 0xae272
movq -0x3f8(%rbp), %rsi
addq $0x298, %rsi # imm = 0x298
leaq -0x358(%rbp), %rdi
leaq -0x330(%rbp), %rdx
callq 0xbcaf0
jmp 0xae295
leaq -0x358(%rbp), %rdi
callq 0xbcb30
leaq -0x330(%rbp), %rdi
callq 0xbcb50
jmp 0xae300
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x1f0(%rbp)
movl %eax, -0x1f4(%rbp)
jmp 0xae6ee
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x1f0(%rbp)
movl %eax, -0x1f4(%rbp)
jmp 0xae6e2
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x1f0(%rbp)
movl %eax, -0x1f4(%rbp)
leaq -0x330(%rbp), %rdi
callq 0xbcb50
jmp 0xae6e2
movq -0x3f8(%rbp), %rdi
addq $0x248, %rdi # imm = 0x248
movq %rdi, -0x468(%rbp)
callq 0x8cc10
movq -0x468(%rbp), %rdi
movq %rax, -0x368(%rbp)
callq 0x8ccc0
movq %rax, -0x370(%rbp)
movq -0x368(%rbp), %rdi
movq -0x370(%rbp), %rsi
leaq -0x2c8(%rbp), %rdx
callq 0xbc2d0
movq %rax, -0x460(%rbp)
jmp 0xae357
movq -0x3f8(%rbp), %rdi
movq -0x460(%rbp), %rax
movq %rax, -0x360(%rbp)
addq $0x248, %rdi # imm = 0x248
callq 0x8ccc0
movq %rax, -0x378(%rbp)
leaq -0x360(%rbp), %rdi
leaq -0x378(%rbp), %rsi
callq 0xbcb70
testb $0x1, %al
jne 0xae39b
jmp 0xae552
movb $0x1, -0x399(%rbp)
movl $0x10, %edi
callq 0x36700
movq %rax, -0x480(%rbp)
leaq -0x398(%rbp), %rax
movq %rax, -0x80(%rbp)
leaq 0x2835fb(%rip), %rax # 0x3319c0
movq %rax, -0x88(%rbp)
leaq -0x2c8(%rbp), %rax
movq %rax, -0x90(%rbp)
movq -0x88(%rbp), %rdi
movq -0x90(%rbp), %rsi
callq 0xeff60
movq %rdx, -0x478(%rbp)
movq %rax, -0x470(%rbp)
jmp 0xae3fd
movq -0x478(%rbp), %rax
movq -0x470(%rbp), %rcx
movq %rcx, -0xb0(%rbp)
movq %rax, -0xa8(%rbp)
leaq -0xb0(%rbp), %rax
movq %rax, -0x98(%rbp)
movq -0x88(%rbp), %rdi
callq 0xcc610
movq %rdx, -0x490(%rbp)
movq %rax, -0x488(%rbp)
jmp 0xae443
movq -0x490(%rbp), %rax
movq -0x488(%rbp), %rcx
movq %rcx, -0xc0(%rbp)
movq %rax, -0xb8(%rbp)
movq -0x98(%rbp), %rax
leaq -0xd0(%rbp), %rcx
movq %rcx, -0x20(%rbp)
movq %rax, -0x28(%rbp)
movq -0x20(%rbp), %rcx
movq -0x28(%rbp), %rax
movq %rcx, -0x10(%rbp)
movq %rax, -0x18(%rbp)
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rax
movq %rax, -0x8(%rbp)
movq -0x8(%rbp), %rdx
movl $0xd, %esi
callq 0xcc8d0
movq -0xc0(%rbp), %rsi
movq -0xb8(%rbp), %rdx
movq -0xd0(%rbp), %rcx
movq -0xc8(%rbp), %r8
leaq -0x398(%rbp), %rdi
callq 0x31ba00
jmp 0xae4c9
jmp 0xae4cb
movq -0x480(%rbp), %rdi
leaq -0x398(%rbp), %rsi
callq 0x1e5cb0
movq -0x480(%rbp), %rdi
movb $0x0, -0x399(%rbp)
leaq 0x3f2305(%rip), %rsi # 0x4a07f8
leaq 0xe6b6(%rip), %rdx # 0xbcbb0
callq 0x36b70
jmp 0xae706
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x1f0(%rbp)
movl %eax, -0x1f4(%rbp)
jmp 0xae536
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x1f0(%rbp)
movl %eax, -0x1f4(%rbp)
leaq -0x398(%rbp), %rdi
callq 0x37610
testb $0x1, -0x399(%rbp)
jne 0xae541
jmp 0xae54d
movq -0x480(%rbp), %rdi
callq 0x37000
jmp 0xae6e2
movq -0x1c8(%rbp), %rax
movq %rax, -0x498(%rbp)
leaq -0x360(%rbp), %rdi
callq 0x99280
movq -0x498(%rbp), %rsi
movq %rax, %rdi
callq 0x374b0
jmp 0xae57d
movq -0x3f8(%rbp), %rdi
addq $0x260, %rdi # imm = 0x260
leaq -0x2c8(%rbp), %rsi
callq 0xbcc00
movq %rax, -0x4a0(%rbp)
jmp 0xae5a0
movq -0x3f8(%rbp), %rdi
movq -0x4a0(%rbp), %rax
movq %rax, -0x3a8(%rbp)
addq $0x260, %rdi # imm = 0x260
callq 0xbcc30
movq %rax, -0x3b0(%rbp)
leaq -0x3a8(%rbp), %rdi
leaq -0x3b0(%rbp), %rsi
callq 0xbcbd0
testb $0x1, %al
jne 0xae5e4
jmp 0xae68f
movq -0x3f8(%rbp), %rsi
addq $0x260, %rsi # imm = 0x260
leaq -0x3c8(%rbp), %rdi
leaq -0x2c8(%rbp), %rdx
callq 0xbcc60
jmp 0xae607
movq -0x1c8(%rbp), %rax
movq %rax, -0x4a8(%rbp)
leaq -0x3c8(%rbp), %rdi
callq 0xbcca0
movq -0x4a8(%rbp), %rsi
movq %rax, %rdi
callq 0x374b0
jmp 0xae632
movq -0x3f8(%rbp), %rsi
addq $0x260, %rsi # imm = 0x260
leaq -0x3f0(%rbp), %rdi
leaq -0x3c8(%rbp), %rdx
callq 0xbccc0
jmp 0xae655
leaq -0x3f0(%rbp), %rdi
callq 0xbcd00
leaq -0x3c8(%rbp), %rdi
callq 0xbcd20
jmp 0xae68f
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x1f0(%rbp)
movl %eax, -0x1f4(%rbp)
leaq -0x3c8(%rbp), %rdi
callq 0xbcd20
jmp 0xae6e2
movq -0x1c8(%rbp), %rax
movq %rax, -0x4b0(%rbp)
movq -0x1c0(%rbp), %rdi
callq 0xbc080
movq -0x4b0(%rbp), %rsi
movq %rax, %rdi
addq $0x98, %rdi
callq 0x374b0
jmp 0xae6c1
leaq -0x2e0(%rbp), %rdi
callq 0xbcd40
leaq -0x2c8(%rbp), %rdi
callq 0x37610
addq $0x4b0, %rsp # imm = 0x4B0
popq %rbp
retq
leaq -0x2e0(%rbp), %rdi
callq 0xbcd40
leaq -0x2c8(%rbp), %rdi
callq 0x37610
movq -0x1f0(%rbp), %rdi
callq 0x36bd0
nopw %cs:(%rax,%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 result;
} | 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 -0x70(%rbp), %rdi
movq %rax, %rsi
callq 0xb8ea0
jmp 0xae75d
movq -0x78(%rbp), %rax
addq $0x100, %rax # imm = 0x100
movq %rax, -0x30(%rbp)
movq -0x30(%rbp), %rdi
callq 0xbcd80
movq %rax, -0x38(%rbp)
movq -0x30(%rbp), %rdi
callq 0xb9ce0
movq %rax, -0x40(%rbp)
leaq -0x38(%rbp), %rdi
leaq -0x40(%rbp), %rsi
callq 0xb9c80
testb $0x1, %al
jne 0xae79b
jmp 0xae81e
leaq -0x38(%rbp), %rdi
callq 0xbcdb0
movq %rax, -0x48(%rbp)
movq -0x48(%rbp), %rdi
callq 0xbcdd0
movq %rax, -0x50(%rbp)
movq -0x48(%rbp), %rdi
callq 0xbcdf0
movq %rax, -0x58(%rbp)
movq -0x58(%rbp), %rdi
callq 0xb9d10
movq %rax, %rdi
callq 0xbce10
movl %eax, -0x84(%rbp)
jmp 0xae7db
movl -0x84(%rbp), %eax
cmpl $0x0, %eax
jne 0xae80e
movq -0x70(%rbp), %rdi
movq -0x50(%rbp), %rsi
callq 0xb8fa0
jmp 0xae7f5
jmp 0xae80e
movq -0x70(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x20(%rbp)
movl %eax, -0x24(%rbp)
callq 0x83350
jmp 0xae867
jmp 0xae810
leaq -0x38(%rbp), %rdi
callq 0xbce30
jmp 0xae785
movq -0x70(%rbp), %rdi
callq 0x8cc10
movq -0x70(%rbp), %rdi
movq %rax, -0x60(%rbp)
callq 0x8ccc0
movq %rax, -0x68(%rbp)
movq -0x60(%rbp), %rdi
movq -0x68(%rbp), %rsi
callq 0xbce60
jmp 0xae847
movb $0x1, -0x11(%rbp)
testb $0x1, -0x11(%rbp)
jne 0xae85a
movq -0x70(%rbp), %rdi
callq 0x83350
movq -0x80(%rbp), %rax
addq $0x90, %rsp
popq %rbp
retq
movq -0x20(%rbp), %rdi
callq 0x36bd0
| /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.empty()) {
result_name = var_name;
} else {
result_name = ::format("{0}_{1}", prefix, var_name);
}
if (!get_var(result_name)) return result_name;
while (true) {
if (prefix.empty()) {
result_name = ::format("{0}_{1}", var_name, count);
} else {
result_name = ::format("{0}_{1}_{2}", prefix, var_name, count);
}
if (!get_var(result_name)) {
break;
} else {
count++;
}
}
return result_name;
} | 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(%rbp)
callq 0x36620
movq -0x1f8(%rbp), %rdi
callq 0x36520
testb $0x1, %al
jne 0xaea7e
jmp 0xaeabb
movq -0x2b8(%rbp), %rdi
movq -0x200(%rbp), %rsi
callq 0x374b0
jmp 0xaea93
jmp 0xaebe7
movq -0x2b8(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x210(%rbp)
movl %eax, -0x214(%rbp)
callq 0x37610
jmp 0xaef63
movq -0x1f8(%rbp), %rcx
movq -0x200(%rbp), %rax
leaq -0x238(%rbp), %rdx
movq %rdx, -0x178(%rbp)
leaq 0x282ef5(%rip), %rdx # 0x3319d3
movq %rdx, -0x180(%rbp)
movq %rcx, -0x188(%rbp)
movq %rax, -0x190(%rbp)
movq -0x180(%rbp), %rsi
movq -0x188(%rbp), %rdx
movq -0x190(%rbp), %rcx
leaq -0x1c0(%rbp), %rdi
callq 0xf2370
jmp 0xaeb16
leaq -0x1c0(%rbp), %rax
movq %rax, -0x198(%rbp)
movq -0x180(%rbp), %rdi
callq 0xcc610
movq %rdx, -0x2c8(%rbp)
movq %rax, -0x2c0(%rbp)
jmp 0xaeb40
movq -0x2c8(%rbp), %rax
movq -0x2c0(%rbp), %rcx
movq %rcx, -0x1d0(%rbp)
movq %rax, -0x1c8(%rbp)
movq -0x198(%rbp), %rax
leaq -0x1e0(%rbp), %rcx
movq %rcx, -0x70(%rbp)
movq %rax, -0x78(%rbp)
movq -0x70(%rbp), %rcx
movq -0x78(%rbp), %rax
movq %rcx, -0x60(%rbp)
movq %rax, -0x68(%rbp)
movq -0x60(%rbp), %rdi
movq -0x68(%rbp), %rax
movq %rax, -0x58(%rbp)
movq -0x58(%rbp), %rdx
movl $0xdd, %esi
callq 0xcc8d0
movq -0x1d0(%rbp), %rsi
movq -0x1c8(%rbp), %rdx
movq -0x1e0(%rbp), %rcx
movq -0x1d8(%rbp), %r8
leaq -0x238(%rbp), %rdi
callq 0x31ba00
jmp 0xaebc6
jmp 0xaebc8
movq -0x2b8(%rbp), %rdi
leaq -0x238(%rbp), %rsi
callq 0x369a0
leaq -0x238(%rbp), %rdi
callq 0x37610
movq -0x2b8(%rbp), %rdx
movq -0x2a8(%rbp), %rsi
leaq -0x248(%rbp), %rdi
callq 0xa8a10
jmp 0xaec03
leaq -0x248(%rbp), %rdi
callq 0xbcf40
xorb $-0x1, %al
movb %al, -0x2c9(%rbp)
leaq -0x248(%rbp), %rdi
callq 0x478f0
movb -0x2c9(%rbp), %al
testb $0x1, %al
jne 0xaec2f
jmp 0xaec45
movb $0x1, -0x205(%rbp)
movl $0x1, -0x24c(%rbp)
jmp 0xaef3e
jmp 0xaec47
jmp 0xaec49
movq -0x1f8(%rbp), %rdi
callq 0x36520
testb $0x1, %al
jne 0xaec5e
jmp 0xaed8f
movq -0x200(%rbp), %rax
leaq -0x270(%rbp), %rcx
movq %rcx, -0x108(%rbp)
leaq 0x282d59(%rip), %rcx # 0x3319d3
movq %rcx, -0x110(%rbp)
movq %rax, -0x118(%rbp)
leaq -0x204(%rbp), %rax
movq %rax, -0x120(%rbp)
movq -0x110(%rbp), %rsi
movq -0x118(%rbp), %rdx
movq -0x120(%rbp), %rcx
leaq -0x150(%rbp), %rdi
callq 0xf2470
jmp 0xaecb9
leaq -0x150(%rbp), %rax
movq %rax, -0x128(%rbp)
movq -0x110(%rbp), %rdi
callq 0xcc610
movq %rdx, -0x2e0(%rbp)
movq %rax, -0x2d8(%rbp)
jmp 0xaece3
movq -0x2e0(%rbp), %rax
movq -0x2d8(%rbp), %rcx
movq %rcx, -0x160(%rbp)
movq %rax, -0x158(%rbp)
movq -0x128(%rbp), %rax
leaq -0x170(%rbp), %rcx
movq %rcx, -0x48(%rbp)
movq %rax, -0x50(%rbp)
movq -0x48(%rbp), %rcx
movq -0x50(%rbp), %rax
movq %rcx, -0x38(%rbp)
movq %rax, -0x40(%rbp)
movq -0x38(%rbp), %rdi
movq -0x40(%rbp), %rax
movq %rax, -0x30(%rbp)
movq -0x30(%rbp), %rdx
movl $0x2d, %esi
callq 0xcc8d0
movq -0x160(%rbp), %rsi
movq -0x158(%rbp), %rdx
movq -0x170(%rbp), %rcx
movq -0x168(%rbp), %r8
leaq -0x270(%rbp), %rdi
callq 0x31ba00
jmp 0xaed69
jmp 0xaed6b
movq -0x2b8(%rbp), %rdi
leaq -0x270(%rbp), %rsi
callq 0x369a0
leaq -0x270(%rbp), %rdi
callq 0x37610
jmp 0xaeecf
movq -0x1f8(%rbp), %rcx
movq -0x200(%rbp), %rax
leaq -0x290(%rbp), %rdx
movq %rdx, -0x80(%rbp)
leaq 0x282c2c(%rip), %rdx # 0x3319db
movq %rdx, -0x88(%rbp)
movq %rcx, -0x90(%rbp)
movq %rax, -0x98(%rbp)
leaq -0x204(%rbp), %rax
movq %rax, -0xa0(%rbp)
movq -0x88(%rbp), %rsi
movq -0x90(%rbp), %rdx
movq -0x98(%rbp), %rcx
movq -0xa0(%rbp), %r8
leaq -0xe0(%rbp), %rdi
callq 0xf25e0
jmp 0xaedfc
leaq -0xe0(%rbp), %rax
movq %rax, -0xa8(%rbp)
movq -0x88(%rbp), %rdi
callq 0xcc610
movq %rdx, -0x2f0(%rbp)
movq %rax, -0x2e8(%rbp)
jmp 0xaee26
movq -0x2f0(%rbp), %rax
movq -0x2e8(%rbp), %rcx
movq %rcx, -0xf0(%rbp)
movq %rax, -0xe8(%rbp)
movq -0xa8(%rbp), %rax
leaq -0x100(%rbp), %rcx
movq %rcx, -0x20(%rbp)
movq %rax, -0x28(%rbp)
movq -0x20(%rbp), %rcx
movq -0x28(%rbp), %rax
movq %rcx, -0x10(%rbp)
movq %rax, -0x18(%rbp)
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rax
movq %rax, -0x8(%rbp)
movq -0x8(%rbp), %rdx
movl $0x2dd, %esi # imm = 0x2DD
callq 0xcc8d0
jmp 0xaee84
movq -0xf0(%rbp), %rsi
movq -0xe8(%rbp), %rdx
movq -0x100(%rbp), %rcx
movq -0xf8(%rbp), %r8
leaq -0x290(%rbp), %rdi
callq 0x31ba00
jmp 0xaeeae
jmp 0xaeeb0
movq -0x2b8(%rbp), %rdi
leaq -0x290(%rbp), %rsi
callq 0x369a0
leaq -0x290(%rbp), %rdi
callq 0x37610
movq -0x2b8(%rbp), %rdx
movq -0x2a8(%rbp), %rsi
leaq -0x2a0(%rbp), %rdi
callq 0xa8a10
jmp 0xaeeeb
leaq -0x2a0(%rbp), %rdi
callq 0xbcf40
xorb $-0x1, %al
movb %al, -0x2f1(%rbp)
leaq -0x2a0(%rbp), %rdi
callq 0x478f0
movb -0x2f1(%rbp), %al
testb $0x1, %al
jne 0xaef17
jmp 0xaef19
jmp 0xaef2d
movl -0x204(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x204(%rbp)
jmp 0xaec47
movb $0x1, -0x205(%rbp)
movl $0x1, -0x24c(%rbp)
testb $0x1, -0x205(%rbp)
jne 0xaef53
movq -0x2b8(%rbp), %rdi
callq 0x37610
movq -0x2b0(%rbp), %rax
addq $0x300, %rsp # imm = 0x300
popq %rbp
retq
movq -0x210(%rbp), %rdi
callq 0x36bd0
nop
| /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 source connection(s)", var->name));
}
if (!var->sinks().empty()) {
throw UserException(::format("{0} still has sink connection(s)", var->name));
}
vars_.erase(var_name);
} | 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 # imm = 0x100
callq 0xb9ce0
movq %rax, -0x1b0(%rbp)
leaq -0x1a8(%rbp), %rdi
leaq -0x1b0(%rbp), %rsi
callq 0xba060
testb $0x1, %al
jne 0xaf037
jmp 0xaf1ea
movb $0x1, -0x1dd(%rbp)
movl $0x10, %edi
callq 0x36700
movq %rax, %rcx
movq -0x248(%rbp), %rax
movq %rcx, -0x250(%rbp)
movq -0x1a0(%rbp), %rcx
addq $0x78, %rax
leaq -0x1d0(%rbp), %rdx
movq %rdx, -0x128(%rbp)
leaq 0x282b7d(%rip), %rdx # 0x331bf6
movq %rdx, -0x130(%rbp)
movq %rcx, -0x138(%rbp)
movq %rax, -0x140(%rbp)
movq -0x130(%rbp), %rsi
movq -0x138(%rbp), %rdx
movq -0x140(%rbp), %rcx
leaq -0x170(%rbp), %rdi
callq 0x105570
jmp 0xaf0b1
leaq -0x170(%rbp), %rax
movq %rax, -0x148(%rbp)
movq -0x130(%rbp), %rdi
callq 0xcc610
movq %rdx, -0x260(%rbp)
movq %rax, -0x258(%rbp)
jmp 0xaf0db
movq -0x260(%rbp), %rax
movq -0x258(%rbp), %rcx
movq %rcx, -0x180(%rbp)
movq %rax, -0x178(%rbp)
movq -0x148(%rbp), %rax
leaq -0x190(%rbp), %rcx
movq %rcx, -0x70(%rbp)
movq %rax, -0x78(%rbp)
movq -0x70(%rbp), %rcx
movq -0x78(%rbp), %rax
movq %rcx, -0x60(%rbp)
movq %rax, -0x68(%rbp)
movq -0x60(%rbp), %rdi
movq -0x68(%rbp), %rax
movq %rax, -0x58(%rbp)
movq -0x58(%rbp), %rdx
movl $0xdd, %esi
callq 0xcc8d0
movq -0x180(%rbp), %rsi
movq -0x178(%rbp), %rdx
movq -0x190(%rbp), %rcx
movq -0x188(%rbp), %r8
leaq -0x1d0(%rbp), %rdi
callq 0x31ba00
jmp 0xaf161
jmp 0xaf163
movq -0x250(%rbp), %rdi
leaq -0x1d0(%rbp), %rsi
callq 0x1e5d00
movq -0x250(%rbp), %rdi
movb $0x0, -0x1dd(%rbp)
leaq 0x3f1585(%rip), %rsi # 0x4a0710
leaq 0x9cee(%rip), %rdx # 0xb8e80
callq 0x36b70
jmp 0xaf667
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x1d8(%rbp)
movl %eax, -0x1dc(%rbp)
jmp 0xaf1ce
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x1d8(%rbp)
movl %eax, -0x1dc(%rbp)
leaq -0x1d0(%rbp), %rdi
callq 0x37610
testb $0x1, -0x1dd(%rbp)
jne 0xaf1d9
jmp 0xaf1e5
movq -0x250(%rbp), %rdi
callq 0x37000
jmp 0xaf65b
movq -0x248(%rbp), %rdi
addq $0x100, %rdi # imm = 0x100
movq -0x1a0(%rbp), %rsi
callq 0xb95a0
movq %rax, %rsi
leaq -0x1f0(%rbp), %rdi
movq %rdi, -0x270(%rbp)
callq 0xba0b0
movq -0x270(%rbp), %rdi
callq 0xb9d10
movq %rax, %rdi
movq (%rdi), %rax
movq 0x80(%rax), %rax
callq *%rax
movq %rax, -0x268(%rbp)
jmp 0xaf23e
movq -0x268(%rbp), %rdi
callq 0xbff00
testb $0x1, %al
jne 0xaf42c
movb $0x1, -0x211(%rbp)
movl $0x10, %edi
callq 0x36700
movq %rax, -0x288(%rbp)
leaq -0x1f0(%rbp), %rdi
callq 0xb9d10
addq $0x78, %rax
leaq -0x210(%rbp), %rcx
movq %rcx, -0xd8(%rbp)
leaq 0x282980(%rip), %rcx # 0x331c0f
movq %rcx, -0xe0(%rbp)
movq %rax, -0xe8(%rbp)
movq -0xe0(%rbp), %rdi
movq -0xe8(%rbp), %rsi
callq 0x105600
movq %rdx, -0x280(%rbp)
movq %rax, -0x278(%rbp)
jmp 0xaf2c0
movq -0x280(%rbp), %rax
movq -0x278(%rbp), %rcx
movq %rcx, -0x100(%rbp)
movq %rax, -0xf8(%rbp)
leaq -0x100(%rbp), %rax
movq %rax, -0xf0(%rbp)
movq -0xe0(%rbp), %rdi
callq 0xcc610
movq %rdx, -0x298(%rbp)
movq %rax, -0x290(%rbp)
jmp 0xaf306
movq -0x298(%rbp), %rax
movq -0x290(%rbp), %rcx
movq %rcx, -0x110(%rbp)
movq %rax, -0x108(%rbp)
movq -0xf0(%rbp), %rax
leaq -0x120(%rbp), %rcx
movq %rcx, -0x38(%rbp)
movq %rax, -0x40(%rbp)
movq -0x38(%rbp), %rcx
movq -0x40(%rbp), %rax
movq %rcx, -0x28(%rbp)
movq %rax, -0x30(%rbp)
movq -0x28(%rbp), %rdi
movq -0x30(%rbp), %rax
movq %rax, -0x20(%rbp)
movq -0x20(%rbp), %rdx
movl $0xd, %esi
callq 0xcc8d0
movq -0x110(%rbp), %rsi
movq -0x108(%rbp), %rdx
movq -0x120(%rbp), %rcx
movq -0x118(%rbp), %r8
leaq -0x210(%rbp), %rdi
callq 0x31ba00
jmp 0xaf38c
jmp 0xaf38e
movq -0x288(%rbp), %rdi
leaq -0x210(%rbp), %rsi
callq 0x1e5d00
movq -0x288(%rbp), %rdi
movb $0x0, -0x211(%rbp)
leaq 0x3f135a(%rip), %rsi # 0x4a0710
leaq 0x9ac3(%rip), %rdx # 0xb8e80
callq 0x36b70
jmp 0xaf667
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x1d8(%rbp)
movl %eax, -0x1dc(%rbp)
jmp 0xaf64f
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x1d8(%rbp)
movl %eax, -0x1dc(%rbp)
jmp 0xaf410
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x1d8(%rbp)
movl %eax, -0x1dc(%rbp)
leaq -0x210(%rbp), %rdi
callq 0x37610
testb $0x1, -0x211(%rbp)
jne 0xaf41b
jmp 0xaf427
movq -0x288(%rbp), %rdi
callq 0x37000
jmp 0xaf64f
leaq -0x1f0(%rbp), %rdi
callq 0xb9d10
movq %rax, %rdi
movq (%rdi), %rax
movq 0x70(%rax), %rax
callq *%rax
movq %rax, -0x2a0(%rbp)
jmp 0xaf44d
movq -0x2a0(%rbp), %rdi
callq 0xbff00
testb $0x1, %al
jne 0xaf61e
movb $0x1, -0x239(%rbp)
movl $0x10, %edi
callq 0x36700
movq %rax, -0x2b8(%rbp)
leaq -0x1f0(%rbp), %rdi
callq 0xb9d10
addq $0x78, %rax
leaq -0x238(%rbp), %rcx
movq %rcx, -0x80(%rbp)
leaq 0x282797(%rip), %rcx # 0x331c32
movq %rcx, -0x88(%rbp)
movq %rax, -0x90(%rbp)
movq -0x88(%rbp), %rdi
movq -0x90(%rbp), %rsi
callq 0x105640
movq %rdx, -0x2b0(%rbp)
movq %rax, -0x2a8(%rbp)
jmp 0xaf4cc
movq -0x2b0(%rbp), %rax
movq -0x2a8(%rbp), %rcx
movq %rcx, -0xb0(%rbp)
movq %rax, -0xa8(%rbp)
leaq -0xb0(%rbp), %rax
movq %rax, -0x98(%rbp)
movq -0x88(%rbp), %rdi
callq 0xcc610
movq %rdx, -0x2c8(%rbp)
movq %rax, -0x2c0(%rbp)
jmp 0xaf512
movq -0x2c8(%rbp), %rax
movq -0x2c0(%rbp), %rcx
movq %rcx, -0xc0(%rbp)
movq %rax, -0xb8(%rbp)
movq -0x98(%rbp), %rax
leaq -0xd0(%rbp), %rcx
movq %rcx, -0x48(%rbp)
movq %rax, -0x50(%rbp)
movq -0x48(%rbp), %rcx
movq -0x50(%rbp), %rax
movq %rcx, -0x10(%rbp)
movq %rax, -0x18(%rbp)
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rax
movq %rax, -0x8(%rbp)
movq -0x8(%rbp), %rdx
movl $0xd, %esi
callq 0xcc8d0
movq -0xc0(%rbp), %rsi
movq -0xb8(%rbp), %rdx
movq -0xd0(%rbp), %rcx
movq -0xc8(%rbp), %r8
leaq -0x238(%rbp), %rdi
callq 0x31ba00
jmp 0xaf598
jmp 0xaf59a
movq -0x2b8(%rbp), %rdi
leaq -0x238(%rbp), %rsi
callq 0x1e5d00
movq -0x2b8(%rbp), %rdi
movb $0x0, -0x239(%rbp)
leaq 0x3f114e(%rip), %rsi # 0x4a0710
leaq 0x98b7(%rip), %rdx # 0xb8e80
callq 0x36b70
jmp 0xaf667
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x1d8(%rbp)
movl %eax, -0x1dc(%rbp)
jmp 0xaf605
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x1d8(%rbp)
movl %eax, -0x1dc(%rbp)
leaq -0x238(%rbp), %rdi
callq 0x37610
testb $0x1, -0x239(%rbp)
jne 0xaf610
jmp 0xaf61c
movq -0x2b8(%rbp), %rdi
callq 0x37000
jmp 0xaf64f
movq -0x248(%rbp), %rdi
addq $0x100, %rdi # imm = 0x100
movq -0x1a0(%rbp), %rsi
callq 0xbff20
jmp 0xaf63a
leaq -0x1f0(%rbp), %rdi
callq 0x478f0
addq $0x2d0, %rsp # imm = 0x2D0
popq %rbp
retq
leaq -0x1f0(%rbp), %rdi
callq 0x478f0
movq -0x1d8(%rbp), %rdi
callq 0x36bd0
nopw (%rax,%rax)
| /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) {
auto base_name = iter.first;
auto &port = ref->get_port(base_name);
port.fn_name_ln.emplace_back(debug_info);
}
return ref;
} | 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 0xb70b0
movq -0x20(%rbp), %rdi
callq 0xbf7a0
movq %rax, -0xc0(%rbp)
jmp 0xb7707
movq -0xc0(%rbp), %rsi
leaq -0x60(%rbp), %rdi
callq 0xbf7c0
jmp 0xb7719
leaq -0x60(%rbp), %rax
movq %rax, -0x78(%rbp)
movq -0x78(%rbp), %rdi
callq 0xbf890
movq %rax, -0x80(%rbp)
movq -0x78(%rbp), %rdi
callq 0xbf8c0
movq %rax, -0x88(%rbp)
leaq -0x80(%rbp), %rdi
leaq -0x88(%rbp), %rsi
callq 0xbf8f0
testb $0x1, %al
jne 0xb7757
jmp 0xb7814
leaq -0x80(%rbp), %rdi
callq 0xbf920
movq %rax, -0x90(%rbp)
movq -0x90(%rbp), %rsi
leaq -0xb0(%rbp), %rdi
callq 0x36230
jmp 0xb777c
movq -0xd0(%rbp), %rdi
callq 0xbfa20
movq %rax, %rdi
leaq -0xb0(%rbp), %rsi
callq 0x260f90
movq %rax, -0xd8(%rbp)
jmp 0xb77a0
movq -0xd8(%rbp), %rax
movq %rax, -0xb8(%rbp)
movq -0xb8(%rbp), %rdi
addq $0x8, %rdi
movq -0x28(%rbp), %rsi
callq 0xbfb10
jmp 0xb77c4
leaq -0xb0(%rbp), %rdi
callq 0x37610
leaq -0x80(%rbp), %rdi
callq 0xbfc30
jmp 0xb773e
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x68(%rbp)
movl %eax, -0x6c(%rbp)
jmp 0xb7850
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x68(%rbp)
movl %eax, -0x6c(%rbp)
jmp 0xb7829
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x68(%rbp)
movl %eax, -0x6c(%rbp)
leaq -0xb0(%rbp), %rdi
callq 0x37610
jmp 0xb7829
movb $0x1, -0x29(%rbp)
leaq -0x60(%rbp), %rdi
callq 0xbfcd0
testb $0x1, -0x29(%rbp)
jne 0xb7840
jmp 0xb7834
leaq -0x60(%rbp), %rdi
callq 0xbfcd0
jmp 0xb7850
movq -0xd0(%rbp), %rdi
callq 0xbfcb0
movq -0xc8(%rbp), %rax
addq $0xe0, %rsp
popq %rbp
retq
movq -0xd0(%rbp), %rdi
callq 0xbfcb0
movq -0x68(%rbp), %rdi
callq 0x36bd0
nopw %cs:(%rax,%rax)
| /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(%rbp)
movq -0x20(%rbp), %rdi
callq 0xc0060
movq %rax, -0x30(%rbp)
leaq -0x28(%rbp), %rdi
leaq -0x30(%rbp), %rsi
callq 0xc0090
testb $0x1, %al
jne 0xb7b9a
jmp 0xb7bec
leaq -0x28(%rbp), %rdi
callq 0xc00c0
movq %rax, -0x38(%rbp)
movq -0x38(%rbp), %rdi
callq 0xc00f0
movq %rax, -0x40(%rbp)
movq -0x38(%rbp), %rdi
callq 0xc0110
movq %rax, -0x48(%rbp)
movq -0x48(%rbp), %rdi
callq 0xc0130
cmpq -0x18(%rbp), %rax
jne 0xb7bdf
movq -0x60(%rbp), %rdi
movq -0x40(%rbp), %rsi
callq 0xc0150
jmp 0xb7bf5
jmp 0xb7be1
leaq -0x28(%rbp), %rdi
callq 0xc0180
jmp 0xb7b87
movq -0x60(%rbp), %rdi
callq 0xc01b0
movq -0x58(%rbp), %rax
addq $0x60, %rsp
popq %rbp
retq
nop
| /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<char>> const&, char [31], char>(char const (&) [31], std::remove_reference<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&>::type const&) | 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 &&
std::is_reference<Args>::value)...>() == 0,
"passing views as lvalues is disallowed");
detail::check_format_string<Args...>(format_str);
return {args...};
} | 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<char>> const&, char [29], char>(char const (&) [29], std::remove_reference<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&>::type const&) | 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 &&
std::is_reference<Args>::value)...>() == 0,
"passing views as lvalues is disallowed");
detail::check_format_string<Args...>(format_str);
return {args...};
} | 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(), index));
if (param == nullptr) {
if (size_param_.find(index) != size_param_.end()) {
auto *linked_param = size_param_.at(index);
// get all the parameters
ParamVisitor visitor;
visitor.visit_root(linked_param);
auto const ¶ms = visitor.params();
for (const auto &p : params) {
p->remove_param_size_var(this, index, linked_param);
}
size_param_.erase(index);
}
return;
}
auto new_dim_size = Simulator::static_evaluate_expr(param);
// LCOV_EXCL_STOP
for (auto const &slice : slices_) {
if (!slice->sliced_by_var()) {
auto slice_index = slice->get_slice_index();
if (slice_index.size() > index) {
auto [high, low] = slice_index[index];
if (high >= new_dim_size || low >= new_dim_size)
throw VarException(
::format("Unable to parameterize dim {0} due to usage of {1}", index,
slice->to_string()),
{slice.get(), this});
}
}
}
// all good. now we need to resize the index
size_[index] = new_dim_size;
size_param_[index] = param;
// get all the parameters
ParamVisitor visitor;
visitor.visit_root(param);
auto const ¶ms = visitor.params();
for (const auto &p : params) {
p->add_param_size_var(this, index, param);
}
} | 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, %edi
callq 0x36700
movq -0x498(%rbp), %rsi
movq %rax, -0x4a0(%rbp)
movq (%rsi), %rax
movq 0xf8(%rax), %rax
leaq -0x1f8(%rbp), %rdi
callq *%rax
jmp 0x10b092
leaq -0x1d8(%rbp), %rax
movq %rax, -0x158(%rbp)
leaq 0x227a34(%rip), %rax # 0x332adb
movq %rax, -0x160(%rbp)
leaq -0x1f8(%rbp), %rax
movq %rax, -0x168(%rbp)
movq -0x160(%rbp), %rdi
movq -0x168(%rbp), %rsi
callq 0x13bf10
movq %rdx, -0x4b0(%rbp)
movq %rax, -0x4a8(%rbp)
jmp 0x10b0df
movq -0x4b0(%rbp), %rax
movq -0x4a8(%rbp), %rcx
movq %rcx, -0x180(%rbp)
movq %rax, -0x178(%rbp)
leaq -0x180(%rbp), %rax
movq %rax, -0x170(%rbp)
movq -0x160(%rbp), %rdi
callq 0xcc610
movq %rdx, -0x4c0(%rbp)
movq %rax, -0x4b8(%rbp)
jmp 0x10b125
movq -0x4c0(%rbp), %rax
movq -0x4b8(%rbp), %rcx
movq %rcx, -0x190(%rbp)
movq %rax, -0x188(%rbp)
movq -0x170(%rbp), %rax
leaq -0x1a0(%rbp), %rcx
movq %rcx, -0x70(%rbp)
movq %rax, -0x78(%rbp)
movq -0x70(%rbp), %rcx
movq -0x78(%rbp), %rax
movq %rcx, -0x60(%rbp)
movq %rax, -0x68(%rbp)
movq -0x60(%rbp), %rdi
movq -0x68(%rbp), %rax
movq %rax, -0x58(%rbp)
movq -0x58(%rbp), %rdx
movl $0xd, %esi
callq 0xcc8d0
jmp 0x10b183
movq -0x190(%rbp), %rsi
movq -0x188(%rbp), %rdx
movq -0x1a0(%rbp), %rcx
movq -0x198(%rbp), %r8
leaq -0x1d8(%rbp), %rdi
callq 0x31ba00
jmp 0x10b1ad
jmp 0x10b1af
movq -0x4a0(%rbp), %rdi
leaq -0x1d8(%rbp), %rsi
callq 0x1e5d00
movq -0x4a0(%rbp), %rdi
movb $0x0, -0x205(%rbp)
leaq 0x395539(%rip), %rsi # 0x4a0710
leaq -0x5235e(%rip), %rdx # 0xb8e80
callq 0x36b70
jmp 0x10bbb1
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x200(%rbp)
movl %eax, -0x204(%rbp)
jmp 0x10b23a
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x200(%rbp)
movl %eax, -0x204(%rbp)
jmp 0x10b22e
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x200(%rbp)
movl %eax, -0x204(%rbp)
leaq -0x1d8(%rbp), %rdi
callq 0x37610
leaq -0x1f8(%rbp), %rdi
callq 0x37610
testb $0x1, -0x205(%rbp)
jne 0x10b245
jmp 0x10b251
movq -0x4a0(%rbp), %rdi
callq 0x37000
jmp 0x10bba5
movq -0x498(%rbp), %rdi
movl -0x1ac(%rbp), %eax
movq %rax, -0x4c8(%rbp)
addq $0xa0, %rdi
callq 0xbd800
movq %rax, %rcx
movq -0x4c8(%rbp), %rax
cmpq %rcx, %rax
jb 0x10b471
movb $0x1, -0x249(%rbp)
movl $0x10, %edi
callq 0x36700
movq -0x498(%rbp), %rsi
movq %rax, -0x4d0(%rbp)
movq (%rsi), %rax
movq 0xf8(%rax), %rax
leaq -0x248(%rbp), %rdi
callq *%rax
jmp 0x10b2bd
leaq -0x228(%rbp), %rax
movq %rax, -0xe8(%rbp)
leaq 0x227827(%rip), %rax # 0x332af9
movq %rax, -0xf0(%rbp)
leaq -0x248(%rbp), %rax
movq %rax, -0xf8(%rbp)
leaq -0x1ac(%rbp), %rax
movq %rax, -0x100(%rbp)
movq -0xf0(%rbp), %rsi
movq -0xf8(%rbp), %rdx
movq -0x100(%rbp), %rcx
leaq -0x130(%rbp), %rdi
callq 0x13bf50
jmp 0x10b318
leaq -0x130(%rbp), %rax
movq %rax, -0x108(%rbp)
movq -0xf0(%rbp), %rdi
callq 0xcc610
movq %rdx, -0x4e0(%rbp)
movq %rax, -0x4d8(%rbp)
jmp 0x10b342
movq -0x4e0(%rbp), %rax
movq -0x4d8(%rbp), %rcx
movq %rcx, -0x140(%rbp)
movq %rax, -0x138(%rbp)
movq -0x108(%rbp), %rax
leaq -0x150(%rbp), %rcx
movq %rcx, -0x48(%rbp)
movq %rax, -0x50(%rbp)
movq -0x48(%rbp), %rcx
movq -0x50(%rbp), %rax
movq %rcx, -0x38(%rbp)
movq %rax, -0x40(%rbp)
movq -0x38(%rbp), %rdi
movq -0x40(%rbp), %rax
movq %rax, -0x30(%rbp)
movq -0x30(%rbp), %rdx
movl $0x2d, %esi
callq 0xcc8d0
movq -0x140(%rbp), %rsi
movq -0x138(%rbp), %rdx
movq -0x150(%rbp), %rcx
movq -0x148(%rbp), %r8
leaq -0x228(%rbp), %rdi
callq 0x31ba00
jmp 0x10b3c8
jmp 0x10b3ca
movq -0x4d0(%rbp), %rdi
leaq -0x228(%rbp), %rsi
callq 0x1e5d00
movq -0x4d0(%rbp), %rdi
movb $0x0, -0x249(%rbp)
leaq 0x39531e(%rip), %rsi # 0x4a0710
leaq -0x52579(%rip), %rdx # 0xb8e80
callq 0x36b70
jmp 0x10bbb1
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x200(%rbp)
movl %eax, -0x204(%rbp)
jmp 0x10b455
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x200(%rbp)
movl %eax, -0x204(%rbp)
jmp 0x10b449
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x200(%rbp)
movl %eax, -0x204(%rbp)
leaq -0x228(%rbp), %rdi
callq 0x37610
leaq -0x248(%rbp), %rdi
callq 0x37610
testb $0x1, -0x249(%rbp)
jne 0x10b460
jmp 0x10b46c
movq -0x4d0(%rbp), %rdi
callq 0x37000
jmp 0x10bba5
cmpq $0x0, -0x1b8(%rbp)
jne 0x10b62a
movq -0x498(%rbp), %rdi
addq $0xb8, %rdi
leaq -0x1ac(%rbp), %rsi
callq 0x124b40
movq -0x498(%rbp), %rdi
movq %rax, -0x258(%rbp)
addq $0xb8, %rdi
callq 0x124b70
movq %rax, -0x260(%rbp)
leaq -0x258(%rbp), %rdi
leaq -0x260(%rbp), %rsi
callq 0x124b10
testb $0x1, %al
jne 0x10b4d6
jmp 0x10b625
movq -0x498(%rbp), %rdi
addq $0xb8, %rdi
leaq -0x1ac(%rbp), %rsi
callq 0x124ba0
movq (%rax), %rax
movq %rax, -0x268(%rbp)
leaq -0x2e8(%rbp), %rdi
movq %rdi, -0x4e8(%rbp)
callq 0x124910
movq -0x4e8(%rbp), %rdi
movq -0x268(%rbp), %rsi
callq 0x18cc40
jmp 0x10b522
leaq -0x2e8(%rbp), %rdi
callq 0x124950
movq %rax, -0x4f0(%rbp)
jmp 0x10b537
movq -0x4f0(%rbp), %rax
movq %rax, -0x2f0(%rbp)
movq -0x2f0(%rbp), %rax
movq %rax, -0x2f8(%rbp)
movq -0x2f8(%rbp), %rdi
callq 0x124970
movq %rax, -0x300(%rbp)
movq -0x2f8(%rbp), %rdi
callq 0x1249a0
movq %rax, -0x308(%rbp)
leaq -0x300(%rbp), %rdi
leaq -0x308(%rbp), %rsi
callq 0x1249d0
testb $0x1, %al
jne 0x10b592
jmp 0x10b5fd
leaq -0x300(%rbp), %rdi
callq 0x124a00
movq -0x498(%rbp), %rsi
movq %rax, -0x310(%rbp)
movq -0x310(%rbp), %rax
movq (%rax), %rdi
movl -0x1ac(%rbp), %edx
movq -0x268(%rbp), %rcx
callq 0x10bbc0
jmp 0x10b5ca
jmp 0x10b5cc
leaq -0x300(%rbp), %rdi
callq 0x124a70
jmp 0x10b579
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x200(%rbp)
movl %eax, -0x204(%rbp)
leaq -0x2e8(%rbp), %rdi
callq 0x124aa0
jmp 0x10bba5
movq -0x498(%rbp), %rdi
addq $0xb8, %rdi
leaq -0x1ac(%rbp), %rsi
callq 0x124bd0
jmp 0x10b619
leaq -0x2e8(%rbp), %rdi
callq 0x124aa0
jmp 0x10bb9c
movq -0x1b8(%rbp), %rdi
callq 0x2179f0
movq %rax, %rcx
movq -0x498(%rbp), %rax
movq %rcx, -0x318(%rbp)
addq $0x188, %rax # imm = 0x188
movq %rax, -0x320(%rbp)
movq -0x320(%rbp), %rdi
callq 0x123e90
movq %rax, -0x328(%rbp)
movq -0x320(%rbp), %rdi
callq 0x123ec0
movq %rax, -0x330(%rbp)
leaq -0x328(%rbp), %rdi
leaq -0x330(%rbp), %rsi
callq 0x123ef0
testb $0x1, %al
jne 0x10b696
jmp 0x10ba2f
leaq -0x328(%rbp), %rdi
callq 0x123f30
movq %rax, -0x338(%rbp)
movq -0x338(%rbp), %rdi
callq 0x123f50
movq %rax, %rdi
movq (%rdi), %rax
callq *0x158(%rax)
testb $0x1, %al
jne 0x10ba1c
movq -0x338(%rbp), %rdi
callq 0x123f50
movq %rax, %rsi
movq (%rsi), %rax
leaq -0x350(%rbp), %rdi
callq *0x120(%rax)
leaq -0x350(%rbp), %rdi
callq 0x124c00
movl -0x1ac(%rbp), %ecx
cmpq %rcx, %rax
jbe 0x10ba10
movl -0x1ac(%rbp), %eax
movl %eax, %esi
leaq -0x350(%rbp), %rdi
callq 0x124c20
movq (%rax), %rax
movq %rax, -0x358(%rbp)
leaq -0x358(%rbp), %rdi
callq 0x46f70
movq %rax, -0x360(%rbp)
leaq -0x358(%rbp), %rdi
callq 0x46f90
movq %rax, -0x368(%rbp)
movq -0x360(%rbp), %rax
movl (%rax), %eax
cmpq -0x318(%rbp), %rax
jae 0x10b76f
movq -0x368(%rbp), %rax
movl (%rax), %eax
cmpq -0x318(%rbp), %rax
jb 0x10ba0e
movb $0x1, -0x3e2(%rbp)
movl $0x10, %edi
callq 0x36700
movq %rax, -0x4f8(%rbp)
movq -0x338(%rbp), %rdi
callq 0x123f50
movq %rax, %rsi
movq (%rsi), %rax
movq 0xf8(%rax), %rax
leaq -0x3a8(%rbp), %rdi
callq *%rax
jmp 0x10b7ab
leaq -0x388(%rbp), %rax
movq %rax, -0x80(%rbp)
leaq 0x22735c(%rip), %rax # 0x332b19
movq %rax, -0x88(%rbp)
leaq -0x1ac(%rbp), %rax
movq %rax, -0x90(%rbp)
leaq -0x3a8(%rbp), %rax
movq %rax, -0x98(%rbp)
movq -0x88(%rbp), %rsi
movq -0x90(%rbp), %rdx
movq -0x98(%rbp), %rcx
leaq -0xc0(%rbp), %rdi
callq 0x13c420
jmp 0x10b803
leaq -0xc0(%rbp), %rax
movq %rax, -0xa0(%rbp)
movq -0x88(%rbp), %rdi
callq 0xcc610
movq %rdx, -0x508(%rbp)
movq %rax, -0x500(%rbp)
jmp 0x10b82d
movq -0x508(%rbp), %rax
movq -0x500(%rbp), %rcx
movq %rcx, -0xd0(%rbp)
movq %rax, -0xc8(%rbp)
movq -0xa0(%rbp), %rax
leaq -0xe0(%rbp), %rcx
movq %rcx, -0x20(%rbp)
movq %rax, -0x28(%rbp)
movq -0x20(%rbp), %rcx
movq -0x28(%rbp), %rax
movq %rcx, -0x10(%rbp)
movq %rax, -0x18(%rbp)
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rax
movq %rax, -0x8(%rbp)
movq -0x8(%rbp), %rdx
movl $0xd2, %esi
callq 0xcc8d0
movq -0xd0(%rbp), %rsi
movq -0xc8(%rbp), %rdx
movq -0xe0(%rbp), %rcx
movq -0xd8(%rbp), %r8
leaq -0x388(%rbp), %rdi
callq 0x31ba00
jmp 0x10b8b3
jmp 0x10b8b5
movq -0x338(%rbp), %rdi
callq 0x1240d0
movq %rax, %rcx
movq -0x498(%rbp), %rax
movq %rcx, -0x3e0(%rbp)
movq %rax, -0x3d8(%rbp)
leaq -0x3e0(%rbp), %rax
movq %rax, -0x3d0(%rbp)
movq $0x2, -0x3c8(%rbp)
leaq -0x3e1(%rbp), %rdi
movq %rdi, -0x510(%rbp)
callq 0xb9d50
movq -0x510(%rbp), %rcx
movq -0x3d0(%rbp), %rsi
movq -0x3c8(%rbp), %rdx
leaq -0x3c0(%rbp), %rdi
callq 0xb9d70
jmp 0x10b928
movq -0x4f8(%rbp), %rdi
leaq -0x388(%rbp), %rsi
leaq -0x3c0(%rbp), %rdx
callq 0x1e5a70
movq -0x4f8(%rbp), %rdi
movb $0x0, -0x3e2(%rbp)
leaq 0x394e59(%rip), %rsi # 0x4a07b0
leaq -0x51b6e(%rip), %rdx # 0xb9df0
callq 0x36b70
jmp 0x10bbb1
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x200(%rbp)
movl %eax, -0x204(%rbp)
jmp 0x10b9e6
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x200(%rbp)
movl %eax, -0x204(%rbp)
jmp 0x10b9da
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x200(%rbp)
movl %eax, -0x204(%rbp)
jmp 0x10b9c2
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x200(%rbp)
movl %eax, -0x204(%rbp)
leaq -0x3c0(%rbp), %rdi
callq 0xb9e10
leaq -0x3e1(%rbp), %rdi
callq 0xb9e70
leaq -0x388(%rbp), %rdi
callq 0x37610
leaq -0x3a8(%rbp), %rdi
callq 0x37610
testb $0x1, -0x3e2(%rbp)
jne 0x10b9f1
jmp 0x10b9fd
movq -0x4f8(%rbp), %rdi
callq 0x37000
leaq -0x350(%rbp), %rdi
callq 0x46ef0
jmp 0x10bba5
jmp 0x10ba10
leaq -0x350(%rbp), %rdi
callq 0x46ef0
jmp 0x10ba1e
leaq -0x328(%rbp), %rdi
callq 0x123fa0
jmp 0x10b67a
movq -0x498(%rbp), %rdi
movl -0x318(%rbp), %eax
movl %eax, -0x524(%rbp)
addq $0xa0, %rdi
movl -0x1ac(%rbp), %eax
movl %eax, %esi
callq 0x124c40
movl -0x524(%rbp), %ecx
movq -0x498(%rbp), %rdi
movl %ecx, (%rax)
movq -0x1b8(%rbp), %rax
movq %rax, -0x520(%rbp)
addq $0xb8, %rdi
leaq -0x1ac(%rbp), %rsi
callq 0x124c60
movq -0x520(%rbp), %rcx
movq %rcx, (%rax)
leaq -0x468(%rbp), %rdi
movq %rdi, -0x518(%rbp)
callq 0x124910
movq -0x518(%rbp), %rdi
movq -0x1b8(%rbp), %rsi
callq 0x18cc40
jmp 0x10bab8
leaq -0x468(%rbp), %rdi
callq 0x124950
movq %rax, -0x530(%rbp)
jmp 0x10bacd
movq -0x530(%rbp), %rax
movq %rax, -0x470(%rbp)
movq -0x470(%rbp), %rax
movq %rax, -0x478(%rbp)
movq -0x478(%rbp), %rdi
callq 0x124970
movq %rax, -0x480(%rbp)
movq -0x478(%rbp), %rdi
callq 0x1249a0
movq %rax, -0x488(%rbp)
leaq -0x480(%rbp), %rdi
leaq -0x488(%rbp), %rsi
callq 0x1249d0
testb $0x1, %al
jne 0x10bb28
jmp 0x10bb90
leaq -0x480(%rbp), %rdi
callq 0x124a00
movq -0x498(%rbp), %rsi
movq %rax, -0x490(%rbp)
movq -0x490(%rbp), %rax
movq (%rax), %rdi
movl -0x1ac(%rbp), %edx
movq -0x1b8(%rbp), %rcx
callq 0x10bc10
jmp 0x10bb60
jmp 0x10bb62
leaq -0x480(%rbp), %rdi
callq 0x124a70
jmp 0x10bb0f
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x200(%rbp)
movl %eax, -0x204(%rbp)
leaq -0x468(%rbp), %rdi
callq 0x124aa0
jmp 0x10bba5
leaq -0x468(%rbp), %rdi
callq 0x124aa0
addq $0x530, %rsp # imm = 0x530
popq %rbp
retq
movq -0x200(%rbp), %rdi
callq 0x36bd0
nopw %cs:(%rax,%rax)
| /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_parent();
if (!root->is_struct())
throw UserException(::format("Invalid member access{0}.{1}", to_string(), member_name));
const PackedStructFieldDef *def;
if (is_struct()) {
auto *packed = dynamic_cast<PackedSlice *>(this);
return packed->slice_member(member_name);
} else {
auto *packed = dynamic_cast<PackedInterface *>(root);
if (!packed)
throw UserException(::format("Unable to access {0}.{1}", to_string(), member_name));
def = packed->get_definition(member_name);
}
if (!def) throw UserException(::format("Unable to access {0}.{1}", to_string(), member_name));
auto p = std::make_shared<PackedSlice>(this, def, member_name);
slices_.emplace_back(p);
return *p;
} | 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, -0x418(%rbp)
callq 0x37190
movq -0x418(%rbp), %rdx
leaq 0x224c1c(%rip), %rsi # 0x332c9a
leaq -0x298(%rbp), %rdi
callq 0x469d0
jmp 0x10e08c
movq -0x420(%rbp), %rdi
leaq -0x298(%rbp), %rsi
callq 0x1e5cb0
movq -0x420(%rbp), %rdi
movb $0x0, -0x2ad(%rbp)
leaq 0x392744(%rip), %rsi # 0x4a07f8
leaq -0x5150b(%rip), %rdx # 0xbcbb0
callq 0x36b70
jmp 0x10eb12
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x2a8(%rbp)
movl %eax, -0x2ac(%rbp)
jmp 0x10e0f7
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x2a8(%rbp)
movl %eax, -0x2ac(%rbp)
leaq -0x298(%rbp), %rdi
callq 0x37610
leaq -0x299(%rbp), %rdi
callq 0x375e0
testb $0x1, -0x2ad(%rbp)
jne 0x10e10e
jmp 0x10e11a
movq -0x420(%rbp), %rdi
callq 0x37000
jmp 0x10eb06
movq -0x410(%rbp), %rax
movq 0x270(%rax), %rdi
movq (%rdi), %rax
callq *0xc0(%rax)
testb $0x1, %al
jne 0x10e13c
jmp 0x10e16c
movq -0x410(%rbp), %rdi
movq (%rdi), %rax
callq *0x38(%rax)
movq -0x410(%rbp), %rdi
movl %eax, -0x424(%rbp)
callq 0xbf010
movq %rax, %rcx
movl -0x424(%rbp), %eax
cmpl (%rcx), %eax
je 0x10e360
movb $0x1, -0x2f1(%rbp)
movl $0x10, %edi
callq 0x36700
movq -0x410(%rbp), %rsi
movq %rax, -0x430(%rbp)
movq (%rsi), %rax
movq 0xf8(%rax), %rax
leaq -0x2f0(%rbp), %rdi
callq *%rax
jmp 0x10e1a0
movq -0x278(%rbp), %rax
leaq -0x2d0(%rbp), %rcx
movq %rcx, -0x118(%rbp)
leaq 0x224af0(%rip), %rcx # 0x332cac
movq %rcx, -0x120(%rbp)
leaq -0x2f0(%rbp), %rcx
movq %rcx, -0x128(%rbp)
movq %rax, -0x130(%rbp)
movq -0x120(%rbp), %rsi
movq -0x128(%rbp), %rdx
movq -0x130(%rbp), %rcx
leaq -0x160(%rbp), %rdi
callq 0x13e540
jmp 0x10e1fb
leaq -0x160(%rbp), %rax
movq %rax, -0x138(%rbp)
movq -0x120(%rbp), %rdi
callq 0xcc610
movq %rdx, -0x440(%rbp)
movq %rax, -0x438(%rbp)
jmp 0x10e225
movq -0x440(%rbp), %rax
movq -0x438(%rbp), %rcx
movq %rcx, -0x170(%rbp)
movq %rax, -0x168(%rbp)
movq -0x138(%rbp), %rax
leaq -0x180(%rbp), %rcx
movq %rcx, -0x88(%rbp)
movq %rax, -0x90(%rbp)
movq -0x88(%rbp), %rcx
movq -0x90(%rbp), %rax
movq %rcx, -0x28(%rbp)
movq %rax, -0x30(%rbp)
movq -0x28(%rbp), %rdi
movq -0x30(%rbp), %rax
movq %rax, -0x20(%rbp)
movq -0x20(%rbp), %rdx
movl $0xdd, %esi
callq 0xcc8d0
movq -0x170(%rbp), %rsi
movq -0x168(%rbp), %rdx
movq -0x180(%rbp), %rcx
movq -0x178(%rbp), %r8
leaq -0x2d0(%rbp), %rdi
callq 0x31ba00
jmp 0x10e2b7
jmp 0x10e2b9
movq -0x430(%rbp), %rdi
leaq -0x2d0(%rbp), %rsi
callq 0x1e5d00
movq -0x430(%rbp), %rdi
movb $0x0, -0x2f1(%rbp)
leaq 0x39242f(%rip), %rsi # 0x4a0710
leaq -0x55468(%rip), %rdx # 0xb8e80
callq 0x36b70
jmp 0x10eb12
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x2a8(%rbp)
movl %eax, -0x2ac(%rbp)
jmp 0x10e344
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x2a8(%rbp)
movl %eax, -0x2ac(%rbp)
jmp 0x10e338
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x2a8(%rbp)
movl %eax, -0x2ac(%rbp)
leaq -0x2d0(%rbp), %rdi
callq 0x37610
leaq -0x2f0(%rbp), %rdi
callq 0x37610
testb $0x1, -0x2f1(%rbp)
jne 0x10e34f
jmp 0x10e35b
movq -0x430(%rbp), %rdi
callq 0x37000
jmp 0x10eb06
movq -0x410(%rbp), %rdi
movq (%rdi), %rax
callq *0x148(%rax)
movq %rax, -0x300(%rbp)
movq -0x300(%rbp), %rdi
movq (%rdi), %rax
callq *0xb8(%rax)
testb $0x1, %al
jne 0x10e583
movb $0x1, -0x341(%rbp)
movl $0x10, %edi
callq 0x36700
movq -0x410(%rbp), %rsi
movq %rax, -0x448(%rbp)
movq (%rsi), %rax
movq 0xf8(%rax), %rax
leaq -0x340(%rbp), %rdi
callq *%rax
jmp 0x10e3c3
movq -0x278(%rbp), %rax
leaq -0x320(%rbp), %rcx
movq %rcx, -0xa8(%rbp)
leaq 0x2248e6(%rip), %rcx # 0x332cc5
movq %rcx, -0xb0(%rbp)
leaq -0x340(%rbp), %rcx
movq %rcx, -0xb8(%rbp)
movq %rax, -0xc0(%rbp)
movq -0xb0(%rbp), %rsi
movq -0xb8(%rbp), %rdx
movq -0xc0(%rbp), %rcx
leaq -0xf0(%rbp), %rdi
callq 0x13e580
jmp 0x10e41e
leaq -0xf0(%rbp), %rax
movq %rax, -0xc8(%rbp)
movq -0xb0(%rbp), %rdi
callq 0xcc610
movq %rdx, -0x458(%rbp)
movq %rax, -0x450(%rbp)
jmp 0x10e448
movq -0x458(%rbp), %rax
movq -0x450(%rbp), %rcx
movq %rcx, -0x100(%rbp)
movq %rax, -0xf8(%rbp)
movq -0xc8(%rbp), %rax
leaq -0x110(%rbp), %rcx
movq %rcx, -0x98(%rbp)
movq %rax, -0xa0(%rbp)
movq -0x98(%rbp), %rcx
movq -0xa0(%rbp), %rax
movq %rcx, -0x10(%rbp)
movq %rax, -0x18(%rbp)
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rax
movq %rax, -0x8(%rbp)
movq -0x8(%rbp), %rdx
movl $0xdd, %esi
callq 0xcc8d0
movq -0x100(%rbp), %rsi
movq -0xf8(%rbp), %rdx
movq -0x110(%rbp), %rcx
movq -0x108(%rbp), %r8
leaq -0x320(%rbp), %rdi
callq 0x31ba00
jmp 0x10e4da
jmp 0x10e4dc
movq -0x448(%rbp), %rdi
leaq -0x320(%rbp), %rsi
callq 0x1e5d00
movq -0x448(%rbp), %rdi
movb $0x0, -0x341(%rbp)
leaq 0x39220c(%rip), %rsi # 0x4a0710
leaq -0x5568b(%rip), %rdx # 0xb8e80
callq 0x36b70
jmp 0x10eb12
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x2a8(%rbp)
movl %eax, -0x2ac(%rbp)
jmp 0x10e567
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x2a8(%rbp)
movl %eax, -0x2ac(%rbp)
jmp 0x10e55b
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x2a8(%rbp)
movl %eax, -0x2ac(%rbp)
leaq -0x320(%rbp), %rdi
callq 0x37610
leaq -0x340(%rbp), %rdi
callq 0x37610
testb $0x1, -0x341(%rbp)
jne 0x10e572
jmp 0x10e57e
movq -0x448(%rbp), %rdi
callq 0x37000
jmp 0x10eb06
movq -0x410(%rbp), %rdi
movq (%rdi), %rax
callq *0xb8(%rax)
testb $0x1, %al
jne 0x10e599
jmp 0x10e605
movq -0x410(%rbp), %rax
cmpq $0x0, %rax
je 0x10e5cd
movq -0x410(%rbp), %rdi
leaq 0x392e8c(%rip), %rsi # 0x4a1440
leaq 0x392e9d(%rip), %rdx # 0x4a1458
xorl %eax, %eax
movl %eax, %ecx
callq 0x37160
movq %rax, -0x460(%rbp)
jmp 0x10e5d8
xorl %eax, %eax
movq %rax, -0x460(%rbp)
jmp 0x10e5d8
movq -0x460(%rbp), %rax
movq %rax, -0x358(%rbp)
movq -0x358(%rbp), %rdi
movq -0x278(%rbp), %rsi
callq 0x10eb20
movq %rax, -0x268(%rbp)
jmp 0x10eaf6
movq -0x300(%rbp), %rax
movq %rax, -0x468(%rbp)
cmpq $0x0, %rax
je 0x10e643
movq -0x468(%rbp), %rdi
leaq 0x392c71(%rip), %rsi # 0x4a1298
leaq 0x392c4a(%rip), %rdx # 0x4a1278
movq $-0x2, %rcx
callq 0x37160
movq %rax, -0x470(%rbp)
jmp 0x10e64e
xorl %eax, %eax
movq %rax, -0x470(%rbp)
jmp 0x10e64e
movq -0x470(%rbp), %rax
movq %rax, -0x360(%rbp)
cmpq $0x0, -0x360(%rbp)
jne 0x10e852
movb $0x1, -0x3a1(%rbp)
movl $0x10, %edi
callq 0x36700
movq -0x410(%rbp), %rsi
movq %rax, -0x478(%rbp)
movq (%rsi), %rax
movq 0xf8(%rax), %rax
leaq -0x3a0(%rbp), %rdi
callq *%rax
jmp 0x10e69e
movq -0x278(%rbp), %rax
leaq -0x380(%rbp), %rcx
movq %rcx, -0x188(%rbp)
leaq 0x2245f2(%rip), %rcx # 0x332cac
movq %rcx, -0x190(%rbp)
leaq -0x3a0(%rbp), %rcx
movq %rcx, -0x198(%rbp)
movq %rax, -0x1a0(%rbp)
movq -0x190(%rbp), %rsi
movq -0x198(%rbp), %rdx
movq -0x1a0(%rbp), %rcx
leaq -0x1d0(%rbp), %rdi
callq 0x13e540
jmp 0x10e6f9
leaq -0x1d0(%rbp), %rax
movq %rax, -0x1a8(%rbp)
movq -0x190(%rbp), %rdi
callq 0xcc610
movq %rdx, -0x488(%rbp)
movq %rax, -0x480(%rbp)
jmp 0x10e723
movq -0x488(%rbp), %rax
movq -0x480(%rbp), %rcx
movq %rcx, -0x1e0(%rbp)
movq %rax, -0x1d8(%rbp)
movq -0x1a8(%rbp), %rax
leaq -0x1f0(%rbp), %rcx
movq %rcx, -0x78(%rbp)
movq %rax, -0x80(%rbp)
movq -0x78(%rbp), %rcx
movq -0x80(%rbp), %rax
movq %rcx, -0x40(%rbp)
movq %rax, -0x48(%rbp)
movq -0x40(%rbp), %rdi
movq -0x48(%rbp), %rax
movq %rax, -0x38(%rbp)
movq -0x38(%rbp), %rdx
movl $0xdd, %esi
callq 0xcc8d0
movq -0x1e0(%rbp), %rsi
movq -0x1d8(%rbp), %rdx
movq -0x1f0(%rbp), %rcx
movq -0x1e8(%rbp), %r8
leaq -0x380(%rbp), %rdi
callq 0x31ba00
jmp 0x10e7a9
jmp 0x10e7ab
movq -0x478(%rbp), %rdi
leaq -0x380(%rbp), %rsi
callq 0x1e5d00
movq -0x478(%rbp), %rdi
movb $0x0, -0x3a1(%rbp)
leaq 0x391f3d(%rip), %rsi # 0x4a0710
leaq -0x5595a(%rip), %rdx # 0xb8e80
callq 0x36b70
jmp 0x10eb12
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x2a8(%rbp)
movl %eax, -0x2ac(%rbp)
jmp 0x10e836
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x2a8(%rbp)
movl %eax, -0x2ac(%rbp)
jmp 0x10e82a
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x2a8(%rbp)
movl %eax, -0x2ac(%rbp)
leaq -0x380(%rbp), %rdi
callq 0x37610
leaq -0x3a0(%rbp), %rdi
callq 0x37610
testb $0x1, -0x3a1(%rbp)
jne 0x10e841
jmp 0x10e84d
movq -0x478(%rbp), %rdi
callq 0x37000
jmp 0x10eb06
movq -0x360(%rbp), %rdi
movq -0x278(%rbp), %rsi
movq (%rdi), %rax
callq *0x8(%rax)
movq %rax, -0x350(%rbp)
cmpq $0x0, -0x350(%rbp)
jne 0x10ea63
movb $0x1, -0x3e9(%rbp)
movl $0x10, %edi
callq 0x36700
movq -0x410(%rbp), %rsi
movq %rax, -0x490(%rbp)
movq (%rsi), %rax
movq 0xf8(%rax), %rax
leaq -0x3e8(%rbp), %rdi
callq *%rax
jmp 0x10e8af
movq -0x278(%rbp), %rax
leaq -0x3c8(%rbp), %rcx
movq %rcx, -0x1f8(%rbp)
leaq 0x2243e1(%rip), %rcx # 0x332cac
movq %rcx, -0x200(%rbp)
leaq -0x3e8(%rbp), %rcx
movq %rcx, -0x208(%rbp)
movq %rax, -0x210(%rbp)
movq -0x200(%rbp), %rsi
movq -0x208(%rbp), %rdx
movq -0x210(%rbp), %rcx
leaq -0x240(%rbp), %rdi
callq 0x13e540
jmp 0x10e90a
leaq -0x240(%rbp), %rax
movq %rax, -0x218(%rbp)
movq -0x200(%rbp), %rdi
callq 0xcc610
movq %rdx, -0x4a0(%rbp)
movq %rax, -0x498(%rbp)
jmp 0x10e934
movq -0x4a0(%rbp), %rax
movq -0x498(%rbp), %rcx
movq %rcx, -0x250(%rbp)
movq %rax, -0x248(%rbp)
movq -0x218(%rbp), %rax
leaq -0x260(%rbp), %rcx
movq %rcx, -0x68(%rbp)
movq %rax, -0x70(%rbp)
movq -0x68(%rbp), %rcx
movq -0x70(%rbp), %rax
movq %rcx, -0x58(%rbp)
movq %rax, -0x60(%rbp)
movq -0x58(%rbp), %rdi
movq -0x60(%rbp), %rax
movq %rax, -0x50(%rbp)
movq -0x50(%rbp), %rdx
movl $0xdd, %esi
callq 0xcc8d0
movq -0x250(%rbp), %rsi
movq -0x248(%rbp), %rdx
movq -0x260(%rbp), %rcx
movq -0x258(%rbp), %r8
leaq -0x3c8(%rbp), %rdi
callq 0x31ba00
jmp 0x10e9ba
jmp 0x10e9bc
movq -0x490(%rbp), %rdi
leaq -0x3c8(%rbp), %rsi
callq 0x1e5d00
movq -0x490(%rbp), %rdi
movb $0x0, -0x3e9(%rbp)
leaq 0x391d2c(%rip), %rsi # 0x4a0710
leaq -0x55b6b(%rip), %rdx # 0xb8e80
callq 0x36b70
jmp 0x10eb12
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x2a8(%rbp)
movl %eax, -0x2ac(%rbp)
jmp 0x10ea47
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x2a8(%rbp)
movl %eax, -0x2ac(%rbp)
jmp 0x10ea3b
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x2a8(%rbp)
movl %eax, -0x2ac(%rbp)
leaq -0x3c8(%rbp), %rdi
callq 0x37610
leaq -0x3e8(%rbp), %rdi
callq 0x37610
testb $0x1, -0x3e9(%rbp)
jne 0x10ea52
jmp 0x10ea5e
movq -0x490(%rbp), %rdi
callq 0x37000
jmp 0x10eb06
movq -0x410(%rbp), %rax
movq %rax, -0x408(%rbp)
movq -0x278(%rbp), %rcx
leaq -0x400(%rbp), %rdi
movq %rdi, -0x4a8(%rbp)
leaq -0x408(%rbp), %rsi
leaq -0x350(%rbp), %rdx
callq 0x1250d0
movq -0x410(%rbp), %rdi
movq -0x4a8(%rbp), %rsi
addq $0x188, %rdi # imm = 0x188
callq 0x124110
jmp 0x10eab5
leaq -0x400(%rbp), %rdi
callq 0x125150
movq %rax, -0x268(%rbp)
leaq -0x400(%rbp), %rdi
callq 0x124260
jmp 0x10eaf6
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x2a8(%rbp)
movl %eax, -0x2ac(%rbp)
leaq -0x400(%rbp), %rdi
callq 0x124260
jmp 0x10eb06
movq -0x268(%rbp), %rax
addq $0x4b0, %rsp # imm = 0x4B0
popq %rbp
retq
movq -0x2a8(%rbp), %rdi
callq 0x36bd0
nopw %cs:(%rax,%rax)
| /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 up during
// the connectivity check
// TODO: fix this
uint32_t required_width;
if (parent->size().size() == 1 && parent->size().front() == 1 && !parent->explicit_array()) {
// slice through the 1D array
// so the width will be 1
var_width_ = 1;
size_ = {1};
// potentially cover all the bits
var_high_ = parent->width() - 1;
var_low_ = 0;
if (parent->width_param())
required_width = Simulator::static_evaluate_expr(parent->width_param());
else
required_width = clog2(parent->width());
} else {
var_width_ = parent->var_width();
is_packed_ = parent->is_packed();
// peel one layer
if (parent->size().size() > 1)
size_ = std::vector<uint32_t>(parent->size().begin() + 1, parent->size().end());
else
size_ = {1};
var_high_ = parent->var_high();
var_low_ = parent->var_low();
// we need to compute the clog2 here
if (parent->get_size_param(0))
required_width = clog2(Simulator::static_evaluate_expr(parent->get_size_param(0)));
else
required_width = clog2(parent->size().front());
}
if (required_width < sliced_var_->width()) {
// may need to demote the variable if it's a var cast
bool has_error = true;
if (IterVar::has_iter_var(sliced_var_)) {
if (IterVar::safe_to_resize(sliced_var_, required_width, false)) {
IterVar::fix_width(sliced_var_, required_width);
has_error = false;
}
}
if (has_error || required_width != sliced_var_->width()) {
// error message copied from verilator
IterVar::safe_to_resize(sliced_var_, required_width, false);
throw VarException(
::format("Bit extraction of array[{0}:0] requires {1} bit index, not {2} bits.",
parent->size().front() - 1, required_width, sliced_var_->width()),
{parent, slice});
}
}
} | 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
addq $0x10, %rcx
movq %rcx, (%rax)
movq -0xc8(%rbp), %rcx
movq %rcx, 0x298(%rax)
movq -0xc0(%rbp), %rdi
callq 0xbd7e0
movq %rax, -0x1b8(%rbp)
jmp 0x10edb6
movq -0x1b8(%rbp), %rdi
callq 0xbd800
cmpq $0x1, %rax
jne 0x10ef4f
movq -0xc0(%rbp), %rdi
callq 0xbd7e0
movq %rax, -0x1c8(%rbp)
jmp 0x10ede1
movq -0x1c8(%rbp), %rdi
callq 0x123e60
cmpl $0x1, (%rax)
jne 0x10ef4f
movq -0xc0(%rbp), %rdi
callq 0xba040
movb %al, -0x1c9(%rbp)
jmp 0x10ee0a
movb -0x1c9(%rbp), %al
testb $0x1, %al
jne 0x10ef4f
jmp 0x10ee1a
movq -0x1c0(%rbp), %rdi
movl $0x1, 0x98(%rdi)
movl $0x1, -0xf4(%rbp)
leaq -0xf4(%rbp), %rax
movq %rax, -0xf0(%rbp)
movq $0x1, -0xe8(%rbp)
addq $0xa0, %rdi
movq -0xf0(%rbp), %rsi
movq -0xe8(%rbp), %rdx
callq 0x124e10
jmp 0x10ee6a
movq -0xc0(%rbp), %rdi
movq (%rdi), %rax
movq 0x38(%rax), %rax
callq *%rax
movl %eax, -0x1d0(%rbp)
jmp 0x10ee82
movq -0x1c0(%rbp), %rax
movl -0x1d0(%rbp), %ecx
decl %ecx
movl %ecx, 0x280(%rax)
movl $0x0, 0x284(%rax)
movq -0xc0(%rbp), %rdi
callq 0xbd620
movq %rax, -0x1d8(%rbp)
jmp 0x10eeb6
movq -0x1d8(%rbp), %rax
cmpq $0x0, %rax
je 0x10ef13
movq -0xc0(%rbp), %rdi
callq 0xbd620
movq %rax, -0x1e0(%rbp)
jmp 0x10eed8
movq -0x1e0(%rbp), %rdi
callq 0x2179f0
movq %rax, -0x1e8(%rbp)
jmp 0x10eeed
movq -0x1e8(%rbp), %rax
movl %eax, -0xcc(%rbp)
jmp 0x10ef4a
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0xd8(%rbp)
movl %eax, -0xdc(%rbp)
jmp 0x10f5e2
movq -0xc0(%rbp), %rdi
movq (%rdi), %rax
movq 0x38(%rax), %rax
callq *%rax
movl %eax, -0x1ec(%rbp)
jmp 0x10ef2b
movl -0x1ec(%rbp), %edi
callq 0x1b90f0
movl %eax, -0x1f0(%rbp)
jmp 0x10ef3e
movl -0x1f0(%rbp), %eax
movl %eax, -0xcc(%rbp)
jmp 0x10f221
movq -0xc0(%rbp), %rdi
callq 0xbf010
movq %rax, -0x1f8(%rbp)
jmp 0x10ef64
movq -0x1c0(%rbp), %rax
movq -0x1f8(%rbp), %rcx
movl (%rcx), %ecx
movl %ecx, 0x98(%rax)
movq -0xc0(%rbp), %rdi
movq (%rdi), %rax
movq 0xc0(%rax), %rax
callq *%rax
movb %al, -0x1f9(%rbp)
jmp 0x10ef95
movq -0x1c0(%rbp), %rax
movb -0x1f9(%rbp), %cl
andb $0x1, %cl
movb %cl, 0x1f8(%rax)
movq -0xc0(%rbp), %rdi
callq 0xbd7e0
movq %rax, -0x208(%rbp)
jmp 0x10efc0
movq -0x208(%rbp), %rdi
callq 0xbd800
cmpq $0x1, %rax
jbe 0x10f0cb
movq -0xc0(%rbp), %rdi
callq 0xbd7e0
movq %rax, -0x210(%rbp)
jmp 0x10efeb
movq -0x210(%rbp), %rdi
callq 0x124e60
movq %rax, -0x120(%rbp)
leaq -0x120(%rbp), %rdi
movl $0x1, %esi
callq 0x124e90
movq %rax, -0x118(%rbp)
movq -0xc0(%rbp), %rdi
callq 0xbd7e0
movq %rax, -0x218(%rbp)
jmp 0x10f02b
movq -0x218(%rbp), %rdi
callq 0x124ed0
movq %rax, -0x128(%rbp)
leaq -0x129(%rbp), %rdi
movq %rdi, -0x220(%rbp)
callq 0x47080
movq -0x220(%rbp), %rcx
movq -0x118(%rbp), %rsi
movq -0x128(%rbp), %rdx
leaq -0x110(%rbp), %rdi
callq 0x124f00
jmp 0x10f074
movq -0x1c0(%rbp), %rdi
addq $0xa0, %rdi
leaq -0x110(%rbp), %rsi
callq 0x124f80
leaq -0x110(%rbp), %rdi
callq 0x47120
leaq -0x129(%rbp), %rdi
callq 0x47180
jmp 0x10f113
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0xd8(%rbp)
movl %eax, -0xdc(%rbp)
leaq -0x129(%rbp), %rdi
callq 0x47180
jmp 0x10f5e2
movq -0x1c0(%rbp), %rdi
movl $0x1, -0x144(%rbp)
leaq -0x144(%rbp), %rax
movq %rax, -0x140(%rbp)
movq $0x1, -0x138(%rbp)
addq $0xa0, %rdi
movq -0x140(%rbp), %rsi
movq -0x138(%rbp), %rdx
callq 0x124e10
jmp 0x10f111
jmp 0x10f113
movq -0xc0(%rbp), %rdi
movq (%rdi), %rax
movq 0x128(%rax), %rax
callq *%rax
movl %eax, -0x224(%rbp)
jmp 0x10f12e
movq -0x1c0(%rbp), %rax
movl -0x224(%rbp), %ecx
movl %ecx, 0x280(%rax)
movq -0xc0(%rbp), %rdi
movq (%rdi), %rax
movq 0x130(%rax), %rax
callq *%rax
movl %eax, -0x228(%rbp)
jmp 0x10f15c
movq -0x1c0(%rbp), %rax
movl -0x228(%rbp), %ecx
movl %ecx, 0x284(%rax)
movq -0xc0(%rbp), %rdi
xorl %esi, %esi
callq 0xbd820
movq %rax, -0x230(%rbp)
jmp 0x10f186
movq -0x230(%rbp), %rax
cmpq $0x0, %rax
je 0x10f1e3
movq -0xc0(%rbp), %rdi
xorl %esi, %esi
callq 0xbd820
movq %rax, -0x238(%rbp)
jmp 0x10f1aa
movq -0x238(%rbp), %rdi
callq 0x2179f0
movq %rax, -0x240(%rbp)
jmp 0x10f1bf
movq -0x240(%rbp), %rax
movl %eax, %edi
callq 0x1b90f0
movl %eax, -0x244(%rbp)
jmp 0x10f1d5
movl -0x244(%rbp), %eax
movl %eax, -0xcc(%rbp)
jmp 0x10f21f
movq -0xc0(%rbp), %rdi
callq 0xbd7e0
movq %rax, -0x250(%rbp)
jmp 0x10f1f8
movq -0x250(%rbp), %rdi
callq 0x123e60
movl (%rax), %edi
callq 0x1b90f0
movl %eax, -0x254(%rbp)
jmp 0x10f213
movl -0x254(%rbp), %eax
movl %eax, -0xcc(%rbp)
jmp 0x10f221
movq -0x1c0(%rbp), %rax
movl -0xcc(%rbp), %ecx
movl %ecx, -0x25c(%rbp)
movq 0x298(%rax), %rdi
movq (%rdi), %rax
movq 0x38(%rax), %rax
callq *%rax
movl %eax, -0x258(%rbp)
jmp 0x10f24c
movl -0x25c(%rbp), %eax
movl -0x258(%rbp), %ecx
cmpl %ecx, %eax
jae 0x10f5d9
movq -0x1c0(%rbp), %rax
movb $0x1, -0x145(%rbp)
movq 0x298(%rax), %rdi
callq 0x10f600
movb %al, -0x25d(%rbp)
jmp 0x10f282
movb -0x25d(%rbp), %al
testb $0x1, %al
jne 0x10f28e
jmp 0x10f2e1
movq -0x1c0(%rbp), %rax
movq 0x298(%rax), %rdi
movl -0xcc(%rbp), %esi
xorl %edx, %edx
callq 0x10f6d0
movb %al, -0x25e(%rbp)
jmp 0x10f2b1
movb -0x25e(%rbp), %al
testb $0x1, %al
jne 0x10f2bd
jmp 0x10f2df
movq -0x1c0(%rbp), %rdi
addq $0x298, %rdi # imm = 0x298
movl -0xcc(%rbp), %esi
callq 0x10f920
jmp 0x10f2d8
movb $0x0, -0x145(%rbp)
jmp 0x10f2e1
testb $0x1, -0x145(%rbp)
jne 0x10f329
movq -0x1c0(%rbp), %rax
movl -0xcc(%rbp), %ecx
movl %ecx, -0x268(%rbp)
movq 0x298(%rax), %rdi
movq (%rdi), %rax
movq 0x38(%rax), %rax
callq *%rax
movl %eax, -0x264(%rbp)
jmp 0x10f315
movl -0x268(%rbp), %eax
movl -0x264(%rbp), %ecx
cmpl %ecx, %eax
je 0x10f5d7
movq -0x1c0(%rbp), %rax
movq 0x298(%rax), %rdi
movl -0xcc(%rbp), %esi
xorl %edx, %edx
callq 0x10f6d0
jmp 0x10f346
movb $0x1, -0x1aa(%rbp)
movl $0x10, %edi
callq 0x36700
movq %rax, -0x278(%rbp)
movq -0xc0(%rbp), %rdi
callq 0xbd7e0
movq %rax, -0x270(%rbp)
jmp 0x10f373
movq -0x270(%rbp), %rdi
callq 0x123e60
movq %rax, %rcx
movq -0x1c0(%rbp), %rax
movl (%rcx), %ecx
decl %ecx
movl %ecx, -0x16c(%rbp)
movq 0x298(%rax), %rdi
movq (%rdi), %rax
movq 0x38(%rax), %rax
callq *%rax
movl %eax, -0x27c(%rbp)
jmp 0x10f3ab
movl -0x27c(%rbp), %eax
movl %eax, -0x170(%rbp)
leaq -0x168(%rbp), %rax
movq %rax, -0x30(%rbp)
leaq 0x223919(%rip), %rax # 0x332ce2
movq %rax, -0x38(%rbp)
leaq -0x16c(%rbp), %rax
movq %rax, -0x40(%rbp)
leaq -0xcc(%rbp), %rax
movq %rax, -0x48(%rbp)
leaq -0x170(%rbp), %rax
movq %rax, -0x50(%rbp)
movq -0x38(%rbp), %rsi
movq -0x40(%rbp), %rdx
movq -0x48(%rbp), %rcx
movq -0x50(%rbp), %r8
leaq -0x90(%rbp), %rdi
callq 0x13e940
jmp 0x10f40c
leaq -0x90(%rbp), %rax
movq %rax, -0x58(%rbp)
movq -0x38(%rbp), %rdi
callq 0xcc610
movq %rdx, -0x290(%rbp)
movq %rax, -0x288(%rbp)
jmp 0x10f430
movq -0x290(%rbp), %rax
movq -0x288(%rbp), %rcx
movq %rcx, -0xa0(%rbp)
movq %rax, -0x98(%rbp)
movq -0x58(%rbp), %rax
leaq -0xb0(%rbp), %rcx
movq %rcx, -0x20(%rbp)
movq %rax, -0x28(%rbp)
movq -0x20(%rbp), %rcx
movq -0x28(%rbp), %rax
movq %rcx, -0x10(%rbp)
movq %rax, -0x18(%rbp)
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rax
movq %rax, -0x8(%rbp)
movq -0x8(%rbp), %rdx
movl $0x222, %esi # imm = 0x222
callq 0xcc8d0
movq -0xa0(%rbp), %rsi
movq -0x98(%rbp), %rdx
movq -0xb0(%rbp), %rcx
movq -0xa8(%rbp), %r8
leaq -0x168(%rbp), %rdi
callq 0x31ba00
jmp 0x10f4b3
jmp 0x10f4b5
movq -0xc0(%rbp), %rax
movq %rax, -0x1a8(%rbp)
movq -0xc8(%rbp), %rax
movq %rax, -0x1a0(%rbp)
leaq -0x1a8(%rbp), %rax
movq %rax, -0x198(%rbp)
movq $0x2, -0x190(%rbp)
leaq -0x1a9(%rbp), %rdi
movq %rdi, -0x298(%rbp)
callq 0xb9d50
movq -0x298(%rbp), %rcx
movq -0x198(%rbp), %rsi
movq -0x190(%rbp), %rdx
leaq -0x188(%rbp), %rdi
callq 0xb9d70
jmp 0x10f520
movq -0x278(%rbp), %rdi
leaq -0x168(%rbp), %rsi
leaq -0x188(%rbp), %rdx
callq 0x1e5a70
movq -0x278(%rbp), %rdi
movb $0x0, -0x1aa(%rbp)
leaq 0x391261(%rip), %rsi # 0x4a07b0
leaq -0x55766(%rip), %rdx # 0xb9df0
callq 0x36b70
jmp 0x10f5fa
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0xd8(%rbp)
movl %eax, -0xdc(%rbp)
jmp 0x10f5be
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0xd8(%rbp)
movl %eax, -0xdc(%rbp)
jmp 0x10f5a6
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0xd8(%rbp)
movl %eax, -0xdc(%rbp)
leaq -0x188(%rbp), %rdi
callq 0xb9e10
leaq -0x1a9(%rbp), %rdi
callq 0xb9e70
leaq -0x168(%rbp), %rdi
callq 0x37610
testb $0x1, -0x1aa(%rbp)
jne 0x10f5c9
jmp 0x10f5d5
movq -0x278(%rbp), %rdi
callq 0x37000
jmp 0x10f5e2
jmp 0x10f5d9
addq $0x2a0, %rsp # imm = 0x2A0
popq %rbp
retq
movq -0x1c0(%rbp), %rdi
callq 0x1250b0
movq -0xd8(%rbp), %rdi
callq 0x36bd0
nopw (%rax,%rax)
| /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 *%rax
movq -0xf8(%rbp), %rax
movq 0x298(%rax), %rsi
movq (%rsi), %rax
movq 0xf8(%rax), %rax
leaq -0xe0(%rbp), %rdi
callq *%rax
jmp 0x10fe45
movq -0x108(%rbp), %rax
movq %rax, -0x30(%rbp)
leaq 0x221e23(%rip), %rax # 0x331c7a
movq %rax, -0x38(%rbp)
leaq -0xc0(%rbp), %rax
movq %rax, -0x40(%rbp)
leaq -0xe0(%rbp), %rax
movq %rax, -0x48(%rbp)
movq -0x38(%rbp), %rsi
movq -0x40(%rbp), %rdx
movq -0x48(%rbp), %rcx
leaq -0x70(%rbp), %rdi
callq 0x13eaa0
jmp 0x10fe88
leaq -0x70(%rbp), %rax
movq %rax, -0x50(%rbp)
movq -0x38(%rbp), %rdi
callq 0xcc610
movq %rdx, -0x118(%rbp)
movq %rax, -0x110(%rbp)
jmp 0x10fea9
movq -0x118(%rbp), %rax
movq -0x110(%rbp), %rcx
movq %rcx, -0x80(%rbp)
movq %rax, -0x78(%rbp)
movq -0x50(%rbp), %rax
leaq -0x90(%rbp), %rcx
movq %rcx, -0x20(%rbp)
movq %rax, -0x28(%rbp)
movq -0x20(%rbp), %rcx
movq -0x28(%rbp), %rax
movq %rcx, -0x10(%rbp)
movq %rax, -0x18(%rbp)
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rax
movq %rax, -0x8(%rbp)
movq -0x8(%rbp), %rdx
movl $0xdd, %esi
callq 0xcc8d0
jmp 0x10fefe
movq -0x108(%rbp), %rdi
movq -0x80(%rbp), %rsi
movq -0x78(%rbp), %rdx
movq -0x90(%rbp), %rcx
movq -0x88(%rbp), %r8
callq 0x31ba00
jmp 0x10ff22
jmp 0x10ff24
leaq -0xe0(%rbp), %rdi
callq 0x37610
leaq -0xc0(%rbp), %rdi
callq 0x37610
movq -0x100(%rbp), %rax
addq $0x120, %rsp # imm = 0x120
popq %rbp
retq
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0xe8(%rbp)
movl %eax, -0xec(%rbp)
jmp 0x10ff7e
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0xe8(%rbp)
movl %eax, -0xec(%rbp)
leaq -0xe0(%rbp), %rdi
callq 0x37610
leaq -0xc0(%rbp), %rdi
callq 0x37610
movq -0xe8(%rbp), %rdi
callq 0x36bd0
nopw %cs:(%rax,%rax)
| /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()});
auto *parent = generator->parent();
if (parent && parent->ir_node_kind() == GeneratorKind) {
auto *gen = dynamic_cast<Generator *>(parent);
this->generator_ = gen;
}
} | 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 *0x68(%rax)
movq %rax, -0x90(%rbp)
cmpq $0x0, -0x90(%rbp)
jne 0x1151a3
movb $0x1, -0xf2(%rbp)
movl $0x10, %edi
callq 0x36700
movq %rax, -0x128(%rbp)
leaq -0xb0(%rbp), %rax
movq %rax, -0x30(%rbp)
leaq 0x21e15a(%rip), %rax # 0x33311f
movq %rax, -0x38(%rbp)
movq -0x38(%rbp), %rdi
callq 0x144980
movq %rdx, -0x120(%rbp)
movq %rax, -0x118(%rbp)
jmp 0x114fe2
movq -0x120(%rbp), %rax
movq -0x118(%rbp), %rcx
movq %rcx, -0x50(%rbp)
movq %rax, -0x48(%rbp)
leaq -0x50(%rbp), %rax
movq %rax, -0x40(%rbp)
movq -0x38(%rbp), %rdi
callq 0xcc610
movq %rdx, -0x138(%rbp)
movq %rax, -0x130(%rbp)
jmp 0x115019
movq -0x138(%rbp), %rax
movq -0x130(%rbp), %rcx
movq %rcx, -0x60(%rbp)
movq %rax, -0x58(%rbp)
movq -0x40(%rbp), %rax
leaq -0x70(%rbp), %rcx
movq %rcx, -0x20(%rbp)
movq %rax, -0x28(%rbp)
movq -0x20(%rbp), %rcx
movq -0x28(%rbp), %rax
movq %rcx, -0x10(%rbp)
movq %rax, -0x18(%rbp)
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rax
movq %rax, -0x8(%rbp)
movq -0x8(%rbp), %rdx
xorl %eax, %eax
movl %eax, %esi
callq 0xcc8d0
jmp 0x11506a
movq -0x60(%rbp), %rsi
movq -0x58(%rbp), %rdx
movq -0x70(%rbp), %rcx
movq -0x68(%rbp), %r8
leaq -0xb0(%rbp), %rdi
callq 0x31ba00
jmp 0x115088
jmp 0x11508a
movq -0x80(%rbp), %rdi
callq 0xed3f0
movq %rax, -0xf0(%rbp)
leaq -0xf0(%rbp), %rax
movq %rax, -0xe8(%rbp)
movq $0x1, -0xe0(%rbp)
leaq -0xf1(%rbp), %rdi
movq %rdi, -0x140(%rbp)
callq 0xbbd10
movq -0x140(%rbp), %rcx
movq -0xe8(%rbp), %rsi
movq -0xe0(%rbp), %rdx
leaq -0xd8(%rbp), %rdi
callq 0xbbd30
jmp 0x1150e9
movq -0x128(%rbp), %rdi
leaq -0xb0(%rbp), %rsi
leaq -0xd8(%rbp), %rdx
callq 0x1e5b60
movq -0x128(%rbp), %rdi
movb $0x0, -0xf2(%rbp)
leaq 0x38b6b0(%rip), %rsi # 0x4a07c8
leaq -0x5936f(%rip), %rdx # 0xbbdb0
callq 0x36b70
jmp 0x115250
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0xb8(%rbp)
movl %eax, -0xbc(%rbp)
jmp 0x115187
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0xb8(%rbp)
movl %eax, -0xbc(%rbp)
jmp 0x11516f
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0xb8(%rbp)
movl %eax, -0xbc(%rbp)
leaq -0xd8(%rbp), %rdi
callq 0xbbdd0
leaq -0xf1(%rbp), %rdi
callq 0xbbe30
leaq -0xb0(%rbp), %rdi
callq 0x37610
testb $0x1, -0xf2(%rbp)
jne 0x115192
jmp 0x11519e
movq -0x128(%rbp), %rdi
callq 0x37000
jmp 0x115244
movq -0x90(%rbp), %rdi
movq (%rdi), %rax
callq *0x20(%rax)
movq %rax, -0x100(%rbp)
cmpq $0x0, -0x100(%rbp)
je 0x11523b
movq -0x100(%rbp), %rdi
callq 0xc02b0
cmpl $0x0, %eax
jne 0x11523b
movq -0x100(%rbp), %rax
movq %rax, -0x148(%rbp)
cmpq $0x0, %rax
je 0x11520d
movq -0x148(%rbp), %rdi
leaq 0x38f7ec(%rip), %rsi # 0x4a49e0
leaq 0x38b57d(%rip), %rdx # 0x4a0778
xorl %eax, %eax
movl %eax, %ecx
callq 0x37160
movq %rax, -0x150(%rbp)
jmp 0x115218
xorl %eax, %eax
movq %rax, -0x150(%rbp)
jmp 0x115218
movq -0x110(%rbp), %rax
movq -0x150(%rbp), %rcx
movq %rcx, -0x108(%rbp)
movq -0x108(%rbp), %rcx
movq %rcx, 0x200(%rax)
addq $0x150, %rsp # imm = 0x150
popq %rbp
retq
movq -0xb8(%rbp), %rdi
callq 0x36bd0
| /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), %al
movl $0x1, %edx
andb $0x1, %al
movzbl %al, %r8d
callq 0x112b30
movq -0x30(%rbp), %rsi
movq -0x28(%rbp), %rdi
leaq 0x38c90c(%rip), %rax # 0x4a1bb0
addq $0x10, %rax
movq %rax, (%rdi)
addq $0x2a0, %rdi # imm = 0x2A0
callq 0x37090
movq -0x28(%rbp), %rdi
movl $0x0, 0x2c0(%rdi)
addq $0x2c8, %rdi # imm = 0x2C8
callq 0x125d00
movq -0x28(%rbp), %rdi
addq $0x300, %rdi # imm = 0x300
callq 0x125d20
movq -0x28(%rbp), %rdi
addq $0x330, %rdi # imm = 0x330
callq 0x125d40
movq -0x28(%rbp), %rdi
movq $0x0, 0x368(%rdi)
movb $0x0, 0x370(%rdi)
addq $0x378, %rdi # imm = 0x378
callq 0x125d60
movq -0x28(%rbp), %rdi
addq $0x388, %rdi # imm = 0x388
callq 0x125d80
movq -0x28(%rbp), %rdi
addq $0x3b0, %rdi # imm = 0x3B0
callq 0x125d80
movq -0x28(%rbp), %rax
movq $0x0, 0x3d8(%rax)
movl $0x5, 0x168(%rax)
addq $0x30, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
| /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 (raw_str_value_) return *raw_str_value_;
if (initial_raw_str_value_) return *initial_raw_str_value_;
}
return name;
}
} | 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(%rbp), %rax
cmpq $0x0, 0x368(%rax)
je 0x115baf
movq -0x20(%rbp), %rdi
callq 0xbd730
movq -0x30(%rbp), %rdi
movq %rax, -0x18(%rbp)
movq -0x18(%rbp), %rsi
movq (%rsi), %rax
callq *0xf8(%rax)
jmp 0x115c37
movq -0x20(%rbp), %rax
cmpl $0x3, 0x2c0(%rax)
jne 0x115c26
movq -0x20(%rbp), %rdi
addq $0x388, %rdi # imm = 0x388
callq 0xc0380
testb $0x1, %al
jne 0x115bd2
jmp 0x115bf0
movq -0x20(%rbp), %rdi
addq $0x388, %rdi # imm = 0x388
callq 0x1260c0
movq -0x30(%rbp), %rdi
movq %rax, %rsi
callq 0x36230
jmp 0x115c37
movq -0x20(%rbp), %rdi
addq $0x3b0, %rdi # imm = 0x3B0
callq 0xc0380
testb $0x1, %al
jne 0x115c06
jmp 0x115c24
movq -0x20(%rbp), %rdi
addq $0x3b0, %rdi # imm = 0x3B0
callq 0x1260c0
movq -0x30(%rbp), %rdi
movq %rax, %rsi
callq 0x36230
jmp 0x115c37
jmp 0x115c26
movq -0x30(%rbp), %rdi
movq -0x20(%rbp), %rsi
addq $0x78, %rsi
callq 0x36230
movq -0x28(%rbp), %rax
addq $0x30, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
| /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) {
return ::format("-{0}\'h{1:X}", width(), -value_);
} else {
return ::format("{0}\'h{1:X}", width(), value_);
}
} | 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 0x115dbe
movq -0x298(%rbp), %rdi
movq (%rdi), %rax
callq *0x38(%rax)
movq -0x2a8(%rbp), %rcx
movl %eax, %edx
movq -0x298(%rbp), %rax
movl %edx, -0x274(%rbp)
addq $0x278, %rax # imm = 0x278
movq %rcx, -0x1f8(%rbp)
leaq 0x21d597(%rip), %rcx # 0x333277
movq %rcx, -0x200(%rbp)
leaq -0x274(%rbp), %rcx
movq %rcx, -0x208(%rbp)
movq %rax, -0x210(%rbp)
movq -0x200(%rbp), %rsi
movq -0x208(%rbp), %rdx
movq -0x210(%rbp), %rcx
leaq -0x240(%rbp), %rdi
callq 0x148120
leaq -0x240(%rbp), %rax
movq %rax, -0x218(%rbp)
movq -0x200(%rbp), %rdi
callq 0xcc610
movq %rax, -0x250(%rbp)
movq %rdx, -0x248(%rbp)
movq -0x218(%rbp), %rax
leaq -0x260(%rbp), %rcx
movq %rcx, -0x88(%rbp)
movq %rax, -0x90(%rbp)
movq -0x88(%rbp), %rcx
movq -0x90(%rbp), %rax
movq %rcx, -0x78(%rbp)
movq %rax, -0x80(%rbp)
movq -0x78(%rbp), %rdi
movq -0x80(%rbp), %rax
movq %rax, -0x70(%rbp)
movq -0x70(%rbp), %rdx
movl $0xd2, %esi
callq 0xcc8d0
movq -0x2a8(%rbp), %rdi
movq -0x250(%rbp), %rsi
movq -0x248(%rbp), %rdx
movq -0x260(%rbp), %rcx
movq -0x258(%rbp), %r8
callq 0x31ba00
jmp 0x11611a
movq -0x298(%rbp), %rdi
movq (%rdi), %rax
callq *0x38(%rax)
movq -0x2a8(%rbp), %rcx
movl %eax, %edx
movq -0x298(%rbp), %rax
movl %edx, -0x278(%rbp)
addq $0x278, %rax # imm = 0x278
movq %rcx, -0x188(%rbp)
leaq 0x21d483(%rip), %rcx # 0x333278
movq %rcx, -0x190(%rbp)
leaq -0x278(%rbp), %rcx
movq %rcx, -0x198(%rbp)
movq %rax, -0x1a0(%rbp)
movq -0x190(%rbp), %rsi
movq -0x198(%rbp), %rdx
movq -0x1a0(%rbp), %rcx
leaq -0x1d0(%rbp), %rdi
callq 0x148220
leaq -0x1d0(%rbp), %rax
movq %rax, -0x1a8(%rbp)
movq -0x190(%rbp), %rdi
callq 0xcc610
movq %rax, -0x1e0(%rbp)
movq %rdx, -0x1d8(%rbp)
movq -0x1a8(%rbp), %rax
leaq -0x1f0(%rbp), %rcx
movq %rcx, -0x98(%rbp)
movq %rax, -0xa0(%rbp)
movq -0x98(%rbp), %rcx
movq -0xa0(%rbp), %rax
movq %rcx, -0x60(%rbp)
movq %rax, -0x68(%rbp)
movq -0x60(%rbp), %rdi
movq -0x68(%rbp), %rax
movq %rax, -0x58(%rbp)
movq -0x58(%rbp), %rdx
movl $0xd2, %esi
callq 0xcc8d0
movq -0x2a8(%rbp), %rdi
movq -0x1e0(%rbp), %rsi
movq -0x1d8(%rbp), %rdx
movq -0x1f0(%rbp), %rcx
movq -0x1e8(%rbp), %r8
callq 0x31ba00
jmp 0x11611a
movq -0x298(%rbp), %rax
testb $0x1, 0xf0(%rax)
je 0x116016
movq -0x298(%rbp), %rax
cmpq $0x0, 0x270(%rax)
jge 0x116016
movq -0x298(%rbp), %rdi
movq (%rdi), %rax
callq *0x38(%rax)
movq -0x298(%rbp), %rdx
movl %eax, %ecx
movq -0x2a8(%rbp), %rax
movl %ecx, -0x27c(%rbp)
xorl %ecx, %ecx
subq 0x270(%rdx), %rcx
movq %rcx, -0x288(%rbp)
movq %rax, -0x118(%rbp)
leaq 0x21d344(%rip), %rax # 0x333281
movq %rax, -0x120(%rbp)
leaq -0x27c(%rbp), %rax
movq %rax, -0x128(%rbp)
leaq -0x288(%rbp), %rax
movq %rax, -0x130(%rbp)
movq -0x120(%rbp), %rsi
movq -0x128(%rbp), %rdx
movq -0x130(%rbp), %rcx
leaq -0x160(%rbp), %rdi
callq 0x148260
leaq -0x160(%rbp), %rax
movq %rax, -0x138(%rbp)
movq -0x120(%rbp), %rdi
callq 0xcc610
movq %rax, -0x170(%rbp)
movq %rdx, -0x168(%rbp)
movq -0x138(%rbp), %rax
leaq -0x180(%rbp), %rcx
movq %rcx, -0x48(%rbp)
movq %rax, -0x50(%rbp)
movq -0x48(%rbp), %rcx
movq -0x50(%rbp), %rax
movq %rcx, -0x38(%rbp)
movq %rax, -0x40(%rbp)
movq -0x38(%rbp), %rdi
movq -0x40(%rbp), %rax
movq %rax, -0x30(%rbp)
movq -0x30(%rbp), %rdx
movl $0x32, %esi
callq 0xcc8d0
movq -0x2a8(%rbp), %rdi
movq -0x170(%rbp), %rsi
movq -0x168(%rbp), %rdx
movq -0x180(%rbp), %rcx
movq -0x178(%rbp), %r8
callq 0x31ba00
jmp 0x11611a
movq -0x298(%rbp), %rdi
movq (%rdi), %rax
callq *0x38(%rax)
movq -0x2a8(%rbp), %rcx
movl %eax, %edx
movq -0x298(%rbp), %rax
movl %edx, -0x28c(%rbp)
addq $0x270, %rax # imm = 0x270
movq %rcx, -0xa8(%rbp)
leaq 0x21d235(%rip), %rcx # 0x333282
movq %rcx, -0xb0(%rbp)
leaq -0x28c(%rbp), %rcx
movq %rcx, -0xb8(%rbp)
movq %rax, -0xc0(%rbp)
movq -0xb0(%rbp), %rsi
movq -0xb8(%rbp), %rdx
movq -0xc0(%rbp), %rcx
leaq -0xf0(%rbp), %rdi
callq 0x148360
leaq -0xf0(%rbp), %rax
movq %rax, -0xc8(%rbp)
movq -0xb0(%rbp), %rdi
callq 0xcc610
movq %rax, -0x100(%rbp)
movq %rdx, -0xf8(%rbp)
movq -0xc8(%rbp), %rax
leaq -0x110(%rbp), %rcx
movq %rcx, -0x20(%rbp)
movq %rax, -0x28(%rbp)
movq -0x20(%rbp), %rcx
movq -0x28(%rbp), %rax
movq %rcx, -0x10(%rbp)
movq %rax, -0x18(%rbp)
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rax
movq %rax, -0x8(%rbp)
movq -0x8(%rbp), %rdx
movl $0x32, %esi
callq 0xcc8d0
movq -0x2a8(%rbp), %rdi
movq -0x100(%rbp), %rsi
movq -0xf8(%rbp), %rdx
movq -0x110(%rbp), %rcx
movq -0x108(%rbp), %r8
callq 0x31ba00
movq -0x2a0(%rbp), %rax
addq $0x2b0, %rsp # imm = 0x2B0
popq %rbp
retq
nopw (%rax,%rax)
| /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 # imm = 0x288
movq %rax, -0xb0(%rbp)
movq -0xb0(%rbp), %rdi
callq 0x126370
movq %rax, -0xb8(%rbp)
movq -0xb0(%rbp), %rdi
callq 0x1263a0
movq %rax, -0xc0(%rbp)
leaq -0xb8(%rbp), %rdi
leaq -0xc0(%rbp), %rsi
callq 0x1263d0
testb $0x1, %al
jne 0x11652a
jmp 0x1165c5
leaq -0xb8(%rbp), %rdi
callq 0x126410
movq %rax, -0xc8(%rbp)
movq -0xc8(%rbp), %rax
movq (%rax), %rsi
movq (%rsi), %rax
movq 0xf8(%rax), %rax
leaq -0xe8(%rbp), %rdi
callq *%rax
jmp 0x11655c
leaq -0xa8(%rbp), %rdi
leaq -0xe8(%rbp), %rsi
callq 0x98c60
jmp 0x116571
leaq -0xe8(%rbp), %rdi
callq 0x37610
leaq -0xb8(%rbp), %rdi
callq 0x126430
jmp 0x11650e
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0xf0(%rbp)
movl %eax, -0xf4(%rbp)
jmp 0x1167c9
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0xf0(%rbp)
movl %eax, -0xf4(%rbp)
leaq -0xe8(%rbp), %rdi
callq 0x37610
jmp 0x1167c9
leaq -0xa8(%rbp), %rdi
movq %rdi, -0x178(%rbp)
callq 0x8cc10
movq -0x178(%rbp), %rdi
movq %rax, -0x120(%rbp)
callq 0x8ccc0
movq %rax, -0x128(%rbp)
leaq -0x149(%rbp), %rdi
movq %rdi, -0x170(%rbp)
callq 0x37190
movq -0x170(%rbp), %rdx
leaq 0x21a5af(%rip), %rsi # 0x330bc2
leaq -0x148(%rbp), %rdi
callq 0x469d0
jmp 0x116621
movq -0x120(%rbp), %rsi
movq -0x128(%rbp), %rdx
leaq -0x118(%rbp), %rdi
leaq -0x148(%rbp), %rcx
callq 0x1167f0
jmp 0x116644
leaq -0x148(%rbp), %rdi
callq 0x37610
leaq -0x149(%rbp), %rdi
callq 0x375e0
movq -0x168(%rbp), %rax
movq %rax, -0x30(%rbp)
leaq 0x21cb29(%rip), %rax # 0x333197
movq %rax, -0x38(%rbp)
leaq -0x118(%rbp), %rax
movq %rax, -0x40(%rbp)
movq -0x38(%rbp), %rdi
movq -0x40(%rbp), %rsi
callq 0x1461e0
movq %rdx, -0x188(%rbp)
movq %rax, -0x180(%rbp)
jmp 0x11669a
movq -0x188(%rbp), %rax
movq -0x180(%rbp), %rcx
movq %rcx, -0x60(%rbp)
movq %rax, -0x58(%rbp)
leaq -0x60(%rbp), %rax
movq %rax, -0x48(%rbp)
movq -0x38(%rbp), %rdi
callq 0xcc610
movq %rdx, -0x198(%rbp)
movq %rax, -0x190(%rbp)
jmp 0x1166d1
movq -0x198(%rbp), %rax
movq -0x190(%rbp), %rcx
movq %rcx, -0x70(%rbp)
movq %rax, -0x68(%rbp)
movq -0x48(%rbp), %rax
leaq -0x80(%rbp), %rcx
movq %rcx, -0x20(%rbp)
movq %rax, -0x28(%rbp)
movq -0x20(%rbp), %rcx
movq -0x28(%rbp), %rax
movq %rcx, -0x10(%rbp)
movq %rax, -0x18(%rbp)
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rax
movq %rax, -0x8(%rbp)
movq -0x8(%rbp), %rdx
movl $0xd, %esi
callq 0xcc8d0
jmp 0x116723
movq -0x168(%rbp), %rdi
movq -0x70(%rbp), %rsi
movq -0x68(%rbp), %rdx
movq -0x80(%rbp), %rcx
movq -0x78(%rbp), %r8
callq 0x31ba00
jmp 0x116741
jmp 0x116743
leaq -0x118(%rbp), %rdi
callq 0x37610
leaq -0xa8(%rbp), %rdi
callq 0x83350
movq -0x160(%rbp), %rax
addq $0x1a0, %rsp # imm = 0x1A0
popq %rbp
retq
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0xf0(%rbp)
movl %eax, -0xf4(%rbp)
jmp 0x11679d
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0xf0(%rbp)
movl %eax, -0xf4(%rbp)
leaq -0x148(%rbp), %rdi
callq 0x37610
leaq -0x149(%rbp), %rdi
callq 0x375e0
jmp 0x1167c9
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0xf0(%rbp)
movl %eax, -0xf4(%rbp)
leaq -0x118(%rbp), %rdi
callq 0x37610
leaq -0xa8(%rbp), %rdi
callq 0x83350
movq -0xf0(%rbp), %rdi
callq 0x36bd0
nopw %cs:(%rax,%rax)
| /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::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>>>>(__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::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>>>, __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::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>>>, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&) | 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 -0x1b0(%rbp), %rdi
leaq -0x18(%rbp), %rsi
callq 0xb9400
testb $0x1, %al
jne 0x11684c
jmp 0x1168dd
leaq -0x1b0(%rbp), %rdi
leaq -0x10(%rbp), %rsi
callq 0xb9400
testb $0x1, %al
jne 0x116862
jmp 0x116896
leaq -0x198(%rbp), %rdi
movq -0x20(%rbp), %rsi
callq 0x36580
jmp 0x116874
jmp 0x116896
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x1b8(%rbp)
movl %eax, -0x1bc(%rbp)
leaq -0x1a8(%rbp), %rdi
callq 0x366f0
jmp 0x11690e
leaq -0x198(%rbp), %rax
movq %rax, -0x1e0(%rbp)
leaq -0x1b0(%rbp), %rdi
callq 0x99280
movq -0x1e0(%rbp), %rdi
movq %rax, %rsi
callq 0x36580
jmp 0x1168c1
jmp 0x1168c3
leaq -0x1b0(%rbp), %rdi
xorl %esi, %esi
callq 0x106f80
movq %rax, -0x1c8(%rbp)
jmp 0x116833
movq -0x1d8(%rbp), %rdi
leaq -0x1a8(%rbp), %rsi
callq 0x36cc0
jmp 0x1168f2
leaq -0x1a8(%rbp), %rdi
callq 0x366f0
movq -0x1d0(%rbp), %rax
addq $0x1e0, %rsp # imm = 0x1E0
popq %rbp
retq
movq -0x1b8(%rbp), %rdi
callq 0x36bd0
nopw (%rax,%rax)
| /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>>&, char [40], char>(char const (&) [40], std::remove_reference<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&>::type const&) | 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 &&
std::is_reference<Args>::value)...>() == 0,
"passing views as lvalues is disallowed");
detail::check_format_string<Args...>(format_str);
return {args...};
} | 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 &&
std::is_reference<Args>::value)...>() == 0,
"passing views as lvalues is disallowed");
detail::check_format_string<Args...>(format_str);
return {args...};
} | 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_parse_context<char, fmt::v7::detail::error_handler>>>&) | 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 == '{') {
++begin;
if (begin != end) {
begin =
parse_arg_id(begin, end, precision_adapter<Handler, Char>(handler));
}
if (begin == end || *begin++ != '}')
return handler.on_error("invalid format string"), begin;
} else {
return handler.on_error("missing precision specifier"), begin;
}
handler.end_precision();
return begin;
} | 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, %eax
movb %al, -0x31(%rbp)
jmp 0x177b4c
movb -0x31(%rbp), %al
movb %al, -0x21(%rbp)
movsbl -0x21(%rbp), %ecx
movl $0x30, %eax
cmpl %ecx, %eax
jg 0x177b91
movsbl -0x21(%rbp), %eax
cmpl $0x39, %eax
jg 0x177b91
movq -0x20(%rbp), %rax
movq %rax, -0x40(%rbp)
movq -0x18(%rbp), %rsi
movq -0x20(%rbp), %rdx
leaq -0x10(%rbp), %rdi
callq 0x178170
movq -0x40(%rbp), %rdi
movl %eax, %esi
callq 0x178a80
jmp 0x177c3f
movsbl -0x21(%rbp), %eax
cmpl $0x7b, %eax
jne 0x177c23
movq -0x10(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x10(%rbp)
movq -0x10(%rbp), %rax
cmpq -0x18(%rbp), %rax
je 0x177be6
movq -0x10(%rbp), %rax
movq %rax, -0x50(%rbp)
movq -0x18(%rbp), %rax
movq %rax, -0x48(%rbp)
movq -0x20(%rbp), %rsi
leaq -0x30(%rbp), %rdi
callq 0x178c90
movq -0x50(%rbp), %rdi
movq -0x48(%rbp), %rsi
leaq -0x30(%rbp), %rdx
callq 0x178aa0
movq %rax, -0x10(%rbp)
movq -0x10(%rbp), %rax
cmpq -0x18(%rbp), %rax
je 0x177c07
movq -0x10(%rbp), %rax
movq %rax, %rcx
addq $0x1, %rcx
movq %rcx, -0x10(%rbp)
movsbl (%rax), %eax
cmpl $0x7d, %eax
je 0x177c21
movq -0x20(%rbp), %rdi
leaq 0x1bcb2e(%rip), %rsi # 0x334740
callq 0x177d00
movq -0x10(%rbp), %rax
movq %rax, -0x8(%rbp)
jmp 0x177c50
jmp 0x177c3d
movq -0x20(%rbp), %rdi
leaq 0x1bcbac(%rip), %rsi # 0x3347da
callq 0x177d00
movq -0x10(%rbp), %rax
movq %rax, -0x8(%rbp)
jmp 0x177c50
jmp 0x177c3f
movq -0x20(%rbp), %rdi
callq 0x178cb0
movq -0x10(%rbp), %rax
movq %rax, -0x8(%rbp)
movq -0x8(%rbp), %rax
addq $0x50, %rsp
popq %rbp
retq
nopw (%rax,%rax)
| /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 -0x10(%rbp), %rcx
xorl %eax, %eax
cmpq -0x18(%rbp), %rcx
movb %al, -0x19(%rbp)
je 0x177cdf
movq -0x10(%rbp), %rax
movsbl (%rax), %eax
andl $0xc0, %eax
cmpl $0x80, %eax
sete %al
movb %al, -0x19(%rbp)
movb -0x19(%rbp), %al
testb $0x1, %al
jne 0x177cad
movq -0x10(%rbp), %rax
movq %rax, -0x8(%rbp)
movq -0x8(%rbp), %rax
popq %rbp
retq
nopw %cs:(%rax,%rax)
nop
| /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_checker<fmt::v7::detail::dynamic_specs_handler<fmt::v7::basic_format_parse_context<char, fmt::v7::detail::error_handler>>>&, char>&) | 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>();
unsigned big = max_int / 10;
do {
// Check for overflow.
if (value > big) {
value = max_int + 1;
break;
}
value = value * 10 + unsigned(*begin - '0');
++begin;
} while (begin != end && '0' <= *begin && *begin <= '9');
if (value > max_int) eh.on_error("number is too big");
return static_cast<int>(value);
} | 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 (%rax), %rax
movsbl (%rax), %eax
cmpl $0x39, %eax
jg 0x1784f5
jmp 0x17850d
leaq 0x1bc149(%rip), %rdi # 0x334645
movl $0x800, %esi # imm = 0x800
leaq 0x1b6c01(%rip), %rdx # 0x32f109
callq 0x31aa60
movl $0x0, -0x1c(%rbp)
movl $0x7fffffff, -0x20(%rbp) # imm = 0x7FFFFFFF
movl $0xccccccc, -0x24(%rbp) # imm = 0xCCCCCCC
movl -0x1c(%rbp), %eax
cmpl -0x24(%rbp), %eax
jbe 0x178533
movl $0x80000000, -0x1c(%rbp) # imm = 0x80000000
jmp 0x17859b
imull $0xa, -0x1c(%rbp), %eax
movq -0x8(%rbp), %rcx
movq (%rcx), %rcx
movsbl (%rcx), %ecx
subl $0x30, %ecx
addl %ecx, %eax
movl %eax, -0x1c(%rbp)
movq -0x8(%rbp), %rax
movq (%rax), %rcx
addq $0x1, %rcx
movq %rcx, (%rax)
movq -0x8(%rbp), %rax
movq (%rax), %rcx
xorl %eax, %eax
cmpq -0x10(%rbp), %rcx
movb %al, -0x25(%rbp)
je 0x178594
movq -0x8(%rbp), %rax
movq (%rax), %rax
movsbl (%rax), %edx
xorl %eax, %eax
movl $0x30, %ecx
cmpl %edx, %ecx
movb %al, -0x25(%rbp)
jg 0x178594
movq -0x8(%rbp), %rax
movq (%rax), %rax
movsbl (%rax), %eax
cmpl $0x39, %eax
setle %al
movb %al, -0x25(%rbp)
movb -0x25(%rbp), %al
testb $0x1, %al
jne 0x178522
cmpl $0x7fffffff, -0x1c(%rbp) # imm = 0x7FFFFFFF
jbe 0x1785b4
movq -0x18(%rbp), %rdi
leaq 0x1bc1a7(%rip), %rsi # 0x334756
callq 0x1785c0
movl -0x1c(%rbp), %eax
addq $0x30, %rsp
popq %rbp
retq
nopl (%rax)
| /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::buffer_appender<char>, char>&) | 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),
ctx.error_handler());
break;
case arg_id_kind::name:
value = detail::get_dynamic_spec<Handler>(ctx.arg(ref.val.name),
ctx.error_handler());
break;
}
} | 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
je 0x179b74
jmp 0x179bd9
jmp 0x179bd9
movq -0x80(%rbp), %rax
movq -0x10(%rbp), %rsi
movl 0x8(%rax), %edx
leaq -0x30(%rbp), %rdi
callq 0x179fe0
movq -0x10(%rbp), %rdi
callq 0x17a010
leaq -0x30(%rbp), %rax
movq (%rax), %rcx
movq %rcx, (%rsp)
movq 0x8(%rax), %rcx
movq %rcx, 0x8(%rsp)
movq 0x10(%rax), %rcx
movq %rcx, 0x10(%rsp)
movq 0x18(%rax), %rax
movq %rax, 0x18(%rsp)
callq 0x17aa30
movl %eax, %ecx
movq -0x8(%rbp), %rax
movl %ecx, (%rax)
jmp 0x179bd9
movq -0x80(%rbp), %rax
movq -0x10(%rbp), %rsi
movq 0x8(%rax), %rcx
movq %rcx, -0x70(%rbp)
movq 0x10(%rax), %rax
movq %rax, -0x68(%rbp)
movq -0x70(%rbp), %rdx
movq -0x68(%rbp), %rcx
leaq -0x60(%rbp), %rdi
callq 0x17a020
movq -0x10(%rbp), %rdi
callq 0x17a010
leaq -0x60(%rbp), %rax
movq (%rax), %rcx
movq %rcx, (%rsp)
movq 0x8(%rax), %rcx
movq %rcx, 0x8(%rsp)
movq 0x10(%rax), %rcx
movq %rcx, 0x10(%rsp)
movq 0x18(%rax), %rax
movq %rax, 0x18(%rsp)
callq 0x17aa30
movl %eax, %ecx
movq -0x8(%rbp), %rax
movl %ecx, (%rax)
addq $0xa0, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
nopl (%rax)
| /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
movq -0x38(%rbp), %rax
movq %rcx, -0x10(%rbp)
movq %rax, -0x8(%rbp)
leaq -0x30(%rbp), %rax
movq %rax, -0x18(%rbp)
movq -0x18(%rbp), %rax
movq %rax, -0x60(%rbp)
leaq -0x10(%rbp), %rdi
callq 0xcc850
movq %rax, %rcx
movq -0x60(%rbp), %rax
movq %rcx, (%rax)
leaq -0x10(%rbp), %rdi
callq 0xcc870
movq -0x60(%rbp), %rcx
movq -0x58(%rbp), %rdi
movq %rax, %rdx
movq -0x50(%rbp), %rax
movq %rdx, 0x8(%rcx)
movq -0x30(%rbp), %rcx
movq %rcx, (%rdi)
movq -0x28(%rbp), %rcx
movq %rcx, 0x8(%rdi)
addq $0x60, %rsp
popq %rbp
retq
| /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_uint<4, Char>(it, abs_value, num_digits,
specs.type != 'x');
});
} | 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 $0x30, 0x1c(%rax,%rcx)
movq 0x10(%rax), %rcx
movb 0x8(%rcx), %dl
movl 0x20(%rax), %ecx
movl %ecx, %esi
addl $0x1, %esi
movl %esi, 0x20(%rax)
movl %ecx, %ecx
movb %dl, 0x1c(%rax,%rcx)
movq -0x48(%rbp), %rax
movl 0x18(%rax), %edi
callq 0x17d310
movq -0x48(%rbp), %rdi
movl %eax, -0xc(%rbp)
movq (%rdi), %rax
movq %rax, -0x20(%rbp)
movl -0xc(%rbp), %eax
movl %eax, -0x4c(%rbp)
callq 0x17c5c0
movl -0x4c(%rbp), %esi
movq %rax, %rcx
movq -0x48(%rbp), %rax
movq %rcx, -0x30(%rbp)
movq %rdx, -0x28(%rbp)
movq 0x10(%rax), %r8
movq %rax, -0x40(%rbp)
movl -0xc(%rbp), %eax
movl %eax, -0x38(%rbp)
movq -0x20(%rbp), %rdi
movq -0x30(%rbp), %rdx
movq -0x28(%rbp), %rcx
leaq -0x40(%rbp), %rax
movq (%rax), %r9
movq %r9, (%rsp)
movq 0x8(%rax), %rax
movq %rax, 0x8(%rsp)
callq 0x17d340
movq %rax, %rcx
movq -0x48(%rbp), %rax
movq %rcx, -0x18(%rbp)
movq -0x18(%rbp), %rcx
movq %rcx, (%rax)
addq $0x60, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
nopl (%rax)
| /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 = write_int(out, num_digits, get_prefix(), specs,
[this, num_digits](iterator it) {
return format_uint<3, Char>(it, abs_value, num_digits);
});
} | 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
movq 0x10(%rax), %rax
movl 0x4(%rax), %eax
cmpl -0xc(%rbp), %eax
jg 0x17bd83
movq -0x48(%rbp), %rax
cmpl $0x0, 0x18(%rax)
je 0x17bd83
movq -0x48(%rbp), %rax
movl 0x20(%rax), %ecx
movl %ecx, %edx
addl $0x1, %edx
movl %edx, 0x20(%rax)
movl %ecx, %ecx
movb $0x30, 0x1c(%rax,%rcx)
movq -0x48(%rbp), %rdi
movq (%rdi), %rax
movq %rax, -0x20(%rbp)
movl -0xc(%rbp), %eax
movl %eax, -0x4c(%rbp)
callq 0x17c5c0
movl -0x4c(%rbp), %esi
movq %rax, %rcx
movq -0x48(%rbp), %rax
movq %rcx, -0x30(%rbp)
movq %rdx, -0x28(%rbp)
movq 0x10(%rax), %r8
movq %rax, -0x40(%rbp)
movl -0xc(%rbp), %eax
movl %eax, -0x38(%rbp)
movq -0x20(%rbp), %rdi
movq -0x30(%rbp), %rdx
movq -0x28(%rbp), %rcx
leaq -0x40(%rbp), %rax
movq (%rax), %r9
movq %r9, (%rsp)
movq 0x8(%rax), %rax
movq %rax, 0x8(%rsp)
callq 0x17dce0
movq %rax, %rcx
movq -0x48(%rbp), %rax
movq %rcx, -0x18(%rbp)
movq -0x18(%rbp), %rcx
movq %rcx, (%rax)
addq $0x60, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
| /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()::'lambda'(fmt::v7::detail::buffer_appender<char>)>(fmt::v7::detail::buffer_appender<char>, int, fmt::v7::basic_string_view<char>, fmt::v7::basic_format_specs<char> const&, fmt::v7::detail::int_writer<fmt::v7::detail::buffer_appender<char>, char, unsigned int>::on_bin()::'lambda'(fmt::v7::detail::buffer_appender<char>))::'lambda'(fmt::v7::detail::buffer_appender<char>)>(char, fmt::v7::basic_format_specs<fmt::v7::detail::int_writer<fmt::v7::detail::buffer_appender<char>, char, unsigned int>::on_bin()::'lambda'(fmt::v7::detail::buffer_appender<char>)> const&, unsigned long, unsigned long, 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()::'lambda'(fmt::v7::detail::buffer_appender<char>)>(fmt::v7::detail::buffer_appender<char>, int, fmt::v7::basic_string_view<char>, fmt::v7::basic_format_specs<char> const&, fmt::v7::detail::int_writer<fmt::v7::detail::buffer_appender<char>, char, unsigned int>::on_bin()::'lambda'(fmt::v7::detail::buffer_appender<char>))::'lambda'(fmt::v7::detail::buffer_appender<char>) const&) | 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 = spec_width > width ? spec_width - width : 0;
auto* shifts = align == align::left ? data::left_padding_shifts
: data::right_padding_shifts;
size_t left_padding = padding >> shifts[specs.align];
auto it = reserve(out, size + padding * specs.fill.size());
it = fill(it, left_padding, specs.fill);
it = f(it);
it = fill(it, padding - left_padding, specs.fill);
return base_iterator(out, it);
} | 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
subq -0x28(%rbp), %rax
movq %rax, -0xa8(%rbp)
jmp 0x17d981
xorl %eax, %eax
movq %rax, -0xa8(%rbp)
jmp 0x17d981
movq -0xa8(%rbp), %rax
movq %rax, -0x40(%rbp)
leaq 0x1becca(%rip), %rax # 0x33c65d
movq %rax, -0x48(%rbp)
movq -0x40(%rbp), %rax
movq -0x48(%rbp), %rcx
movq -0x18(%rbp), %rdx
movb 0x9(%rdx), %dl
andb $0xf, %dl
movzbl %dl, %edx
movl %edx, %edx
movsbl (%rcx,%rdx), %ecx
movl %ecx, %ecx
shrq %cl, %rax
movq %rax, -0x50(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0x60(%rbp)
movq -0x20(%rbp), %rax
movq %rax, -0xb8(%rbp)
movq -0x40(%rbp), %rax
movq %rax, -0xb0(%rbp)
movq -0x18(%rbp), %rdi
addq $0xa, %rdi
callq 0x17c940
movq -0xb8(%rbp), %rsi
movq %rax, %rcx
movq -0xb0(%rbp), %rax
imulq %rcx, %rax
addq %rax, %rsi
movq -0x60(%rbp), %rdi
callq 0x17c8e0
movq %rax, -0x58(%rbp)
movq -0x58(%rbp), %rax
movq %rax, -0x70(%rbp)
movq -0x50(%rbp), %rsi
movq -0x18(%rbp), %rdx
addq $0xa, %rdx
movq -0x70(%rbp), %rdi
callq 0x17c960
movq %rax, -0x68(%rbp)
movq -0x68(%rbp), %rax
movq %rax, -0x58(%rbp)
movq -0x30(%rbp), %rdi
movq -0x58(%rbp), %rax
movq %rax, -0x80(%rbp)
movq -0x80(%rbp), %rsi
callq 0x17dad0
movq %rax, -0x78(%rbp)
movq -0x78(%rbp), %rax
movq %rax, -0x58(%rbp)
movq -0x58(%rbp), %rax
movq %rax, -0x90(%rbp)
movq -0x40(%rbp), %rsi
subq -0x50(%rbp), %rsi
movq -0x18(%rbp), %rdx
addq $0xa, %rdx
movq -0x90(%rbp), %rdi
callq 0x17c960
movq %rax, -0x88(%rbp)
movq -0x88(%rbp), %rax
movq %rax, -0x58(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0x98(%rbp)
movq -0x58(%rbp), %rax
movq %rax, -0xa0(%rbp)
movq -0x98(%rbp), %rdi
movq -0xa0(%rbp), %rsi
callq 0x17cae0
movq %rax, -0x8(%rbp)
movq -0x8(%rbp), %rax
addq $0xc0, %rsp
popq %rbp
retq
nopl (%rax,%rax)
| /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_string_view<char>, fmt::v7::basic_format_specs<char> const&, fmt::v7::detail::int_writer<fmt::v7::detail::buffer_appender<char>, char, unsigned int>::on_oct()::'lambda'(fmt::v7::detail::buffer_appender<char>)) | 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, [=](iterator it) {
if (prefix.size() != 0)
it = copy_str<Char>(prefix.begin(), prefix.end(), it);
it = std::fill_n(it, data.padding, static_cast<Char>('0'));
return f(it);
});
} | 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)
movq -0x30(%rbp), %r8
movq -0x50(%rbp), %rdx
movq -0x48(%rbp), %rcx
leaq -0x40(%rbp), %rdi
callq 0x17c600
movq -0x90(%rbp), %rax
movq -0x10(%rbp), %rcx
movq %rcx, -0x58(%rbp)
movq -0x30(%rbp), %rsi
movq -0x40(%rbp), %rdx
movq -0x20(%rbp), %rcx
movq %rcx, -0x88(%rbp)
movq -0x18(%rbp), %rcx
movq %rcx, -0x80(%rbp)
movq -0x40(%rbp), %rcx
movq %rcx, -0x78(%rbp)
movq -0x38(%rbp), %rcx
movq %rcx, -0x70(%rbp)
movq (%rax), %rcx
movq %rcx, -0x68(%rbp)
movl 0x8(%rax), %eax
movl %eax, -0x60(%rbp)
movq -0x58(%rbp), %rdi
leaq -0x88(%rbp), %rcx
callq 0x17dda0
movq %rax, -0x8(%rbp)
movq -0x8(%rbp), %rax
addq $0x90, %rsp
popq %rbp
retq
nopl (%rax)
| /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()::'lambda'(fmt::v7::detail::buffer_appender<char>)>(fmt::v7::detail::buffer_appender<char>, int, fmt::v7::basic_string_view<char>, fmt::v7::basic_format_specs<char> const&, fmt::v7::detail::int_writer<fmt::v7::detail::buffer_appender<char>, char, unsigned int>::on_oct()::'lambda'(fmt::v7::detail::buffer_appender<char>))::'lambda'(fmt::v7::detail::buffer_appender<char>)>(char, fmt::v7::basic_format_specs<fmt::v7::detail::int_writer<fmt::v7::detail::buffer_appender<char>, char, unsigned int>::on_oct()::'lambda'(fmt::v7::detail::buffer_appender<char>)> const&, unsigned long, unsigned long, 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_string_view<char>, fmt::v7::basic_format_specs<char> const&, fmt::v7::detail::int_writer<fmt::v7::detail::buffer_appender<char>, char, unsigned int>::on_oct()::'lambda'(fmt::v7::detail::buffer_appender<char>))::'lambda'(fmt::v7::detail::buffer_appender<char>) const&) | 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 = spec_width > width ? spec_width - width : 0;
auto* shifts = align == align::left ? data::left_padding_shifts
: data::right_padding_shifts;
size_t left_padding = padding >> shifts[specs.align];
auto it = reserve(out, size + padding * specs.fill.size());
it = fill(it, left_padding, specs.fill);
it = f(it);
it = fill(it, padding - left_padding, specs.fill);
return base_iterator(out, it);
} | 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
subq -0x28(%rbp), %rax
movq %rax, -0xa8(%rbp)
jmp 0x17de41
xorl %eax, %eax
movq %rax, -0xa8(%rbp)
jmp 0x17de41
movq -0xa8(%rbp), %rax
movq %rax, -0x40(%rbp)
leaq 0x1be80a(%rip), %rax # 0x33c65d
movq %rax, -0x48(%rbp)
movq -0x40(%rbp), %rax
movq -0x48(%rbp), %rcx
movq -0x18(%rbp), %rdx
movb 0x9(%rdx), %dl
andb $0xf, %dl
movzbl %dl, %edx
movl %edx, %edx
movsbl (%rcx,%rdx), %ecx
movl %ecx, %ecx
shrq %cl, %rax
movq %rax, -0x50(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0x60(%rbp)
movq -0x20(%rbp), %rax
movq %rax, -0xb8(%rbp)
movq -0x40(%rbp), %rax
movq %rax, -0xb0(%rbp)
movq -0x18(%rbp), %rdi
addq $0xa, %rdi
callq 0x17c940
movq -0xb8(%rbp), %rsi
movq %rax, %rcx
movq -0xb0(%rbp), %rax
imulq %rcx, %rax
addq %rax, %rsi
movq -0x60(%rbp), %rdi
callq 0x17c8e0
movq %rax, -0x58(%rbp)
movq -0x58(%rbp), %rax
movq %rax, -0x70(%rbp)
movq -0x50(%rbp), %rsi
movq -0x18(%rbp), %rdx
addq $0xa, %rdx
movq -0x70(%rbp), %rdi
callq 0x17c960
movq %rax, -0x68(%rbp)
movq -0x68(%rbp), %rax
movq %rax, -0x58(%rbp)
movq -0x30(%rbp), %rdi
movq -0x58(%rbp), %rax
movq %rax, -0x80(%rbp)
movq -0x80(%rbp), %rsi
callq 0x17df90
movq %rax, -0x78(%rbp)
movq -0x78(%rbp), %rax
movq %rax, -0x58(%rbp)
movq -0x58(%rbp), %rax
movq %rax, -0x90(%rbp)
movq -0x40(%rbp), %rsi
subq -0x50(%rbp), %rsi
movq -0x18(%rbp), %rdx
addq $0xa, %rdx
movq -0x90(%rbp), %rdi
callq 0x17c960
movq %rax, -0x88(%rbp)
movq -0x88(%rbp), %rax
movq %rax, -0x58(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0x98(%rbp)
movq -0x58(%rbp), %rax
movq %rax, -0xa0(%rbp)
movq -0x98(%rbp), %rdi
movq -0xa0(%rbp), %rsi
callq 0x17cae0
movq %rax, -0x8(%rbp)
movq -0x8(%rbp), %rax
addq $0xc0, %rsp
popq %rbp
retq
nopl (%rax,%rax)
| /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 two 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.
out -= 2;
copy2(out, data::digits[value % 100]);
value /= 100;
}
if (value < 10) {
*--out = static_cast<Char>('0' + value);
return {out, end};
}
out -= 2;
copy2(out, data::digits[value]);
return {out, end};
} | 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
movl $0x39c, %esi # imm = 0x39C
leaq 0x1b468c(%rip), %rdx # 0x3348ac
callq 0x31aa60
movl -0x24(%rbp), %ecx
movq -0x18(%rbp), %rax
movslq %ecx, %rcx
addq %rcx, %rax
movq %rax, -0x18(%rbp)
movq -0x18(%rbp), %rax
movq %rax, -0x30(%rbp)
cmpq $0x64, -0x20(%rbp)
jb 0x180289
movq -0x18(%rbp), %rax
addq $-0x2, %rax
movq %rax, -0x18(%rbp)
movq -0x18(%rbp), %rdi
movq -0x20(%rbp), %rax
movl $0x64, %ecx
xorl %edx, %edx
divq %rcx
leaq 0x1bc2d6(%rip), %rsi # 0x33c540
shlq %rdx
addq %rdx, %rsi
callq 0x17d0c0
movq -0x20(%rbp), %rax
movl $0x64, %ecx
xorl %edx, %edx
divq %rcx
movq %rax, -0x20(%rbp)
jmp 0x18023e
cmpq $0xa, -0x20(%rbp)
jae 0x1802be
movq -0x20(%rbp), %rax
addq $0x30, %rax
movb %al, %cl
movq -0x18(%rbp), %rax
movq %rax, %rdx
addq $-0x1, %rdx
movq %rdx, -0x18(%rbp)
movb %cl, -0x1(%rax)
movq -0x18(%rbp), %rax
movq %rax, -0x10(%rbp)
movq -0x30(%rbp), %rax
movq %rax, -0x8(%rbp)
jmp 0x1802f4
movq -0x18(%rbp), %rax
addq $-0x2, %rax
movq %rax, -0x18(%rbp)
movq -0x18(%rbp), %rdi
movq -0x20(%rbp), %rax
leaq 0x1bc267(%rip), %rsi # 0x33c540
shlq %rax
addq %rax, %rsi
callq 0x17d0c0
movq -0x18(%rbp), %rax
movq %rax, -0x10(%rbp)
movq -0x30(%rbp), %rax
movq %rax, -0x8(%rbp)
movq -0x10(%rbp), %rax
movq -0x8(%rbp), %rdx
addq $0x40, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
nopl (%rax)
| /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.cbegin();
while (group != groups.cend() && n > *group && *group > 0 &&
*group != max_value<char>()) {
size += sep_size;
n -= *group;
++group;
}
if (group == groups.cend()) size += sep_size * ((n - 1) / groups.back());
char digits[40];
format_decimal(digits, abs_value, num_digits);
basic_memory_buffer<Char> buffer;
size += prefix_size;
buffer.resize(to_unsigned(size));
basic_string_view<Char> s(&sep, sep_size);
// Index of a decimal digit with the least significant digit having index 0.
int digit_index = 0;
group = groups.cbegin();
auto p = buffer.data() + size;
for (int i = num_digits - 1; i >= 0; --i) {
*--p = static_cast<Char>(digits[i]);
if (*group <= 0 || ++digit_index % *group != 0 ||
*group == max_value<char>())
continue;
if (group + 1 != groups.cend()) {
digit_index = 0;
++group;
}
p -= s.size();
std::uninitialized_copy(s.data(), s.data() + s.size(),
make_checked(p, s.size()));
}
if (prefix_size != 0) p[-1] = static_cast<Char>('-');
using iterator = remove_reference_t<decltype(reserve(out, 0))>;
auto data = buffer.data();
out = write_padded<align::right>(out, specs, size, size, [=](iterator it) {
return copy_str<Char>(data, data + size, it);
});
} | 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 0x181f49
movq -0x370(%rbp), %rdi
callq 0x181b50
jmp 0x181f2c
movl $0x1, -0x40(%rbp)
jmp 0x1824cd
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x38(%rbp)
movl %eax, -0x3c(%rbp)
jmp 0x1824df
movq -0x370(%rbp), %rax
movq 0x8(%rax), %rax
movq %rax, -0x50(%rbp)
movq -0x50(%rbp), %rdi
callq 0x17e1c0
movb %al, -0x371(%rbp)
jmp 0x181f69
movb -0x371(%rbp), %al
movb %al, -0x41(%rbp)
cmpb $0x0, -0x41(%rbp)
jne 0x181f92
movq -0x370(%rbp), %rdi
callq 0x181b50
jmp 0x181f86
movl $0x1, -0x40(%rbp)
jmp 0x1824cd
movq -0x370(%rbp), %rcx
movq 0x20(%rcx), %rax
movq 0x28(%rcx), %rcx
movq %rcx, -0x68(%rbp)
movq %rax, -0x70(%rbp)
movq -0x70(%rbp), %rdi
movq -0x68(%rbp), %rsi
callq 0x1825b0
movl %eax, -0x54(%rbp)
movl -0x54(%rbp), %eax
movl %eax, -0x74(%rbp)
movl -0x54(%rbp), %eax
movl %eax, -0x78(%rbp)
leaq -0x28(%rbp), %rdi
callq 0x36990
movq %rax, -0x80(%rbp)
leaq -0x28(%rbp), %rdi
callq 0x36b80
movq %rax, -0x88(%rbp)
leaq -0x80(%rbp), %rdi
leaq -0x88(%rbp), %rsi
callq 0x88400
movb %al, %cl
xorl %eax, %eax
testb $0x1, %cl
movb %al, -0x372(%rbp)
jne 0x182003
jmp 0x182070
movl -0x78(%rbp), %eax
movl %eax, -0x378(%rbp)
leaq -0x80(%rbp), %rdi
callq 0x88440
movl -0x378(%rbp), %ecx
movsbl (%rax), %edx
xorl %eax, %eax
cmpl %edx, %ecx
movb %al, -0x372(%rbp)
jle 0x182070
leaq -0x80(%rbp), %rdi
callq 0x88440
movsbl (%rax), %ecx
xorl %eax, %eax
cmpl $0x0, %ecx
movb %al, -0x372(%rbp)
jle 0x182070
leaq -0x80(%rbp), %rdi
callq 0x88440
movsbl (%rax), %eax
movl %eax, -0x37c(%rbp)
callq 0x17e1f0
movb %al, %cl
movl -0x37c(%rbp), %eax
movsbl %cl, %ecx
cmpl %ecx, %eax
setne %al
movb %al, -0x372(%rbp)
movb -0x372(%rbp), %al
testb $0x1, %al
jne 0x18207c
jmp 0x1820a7
movl -0x74(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x74(%rbp)
leaq -0x80(%rbp), %rdi
callq 0x88440
movsbl (%rax), %ecx
movl -0x78(%rbp), %eax
subl %ecx, %eax
movl %eax, -0x78(%rbp)
leaq -0x80(%rbp), %rdi
callq 0x88460
jmp 0x181fd2
leaq -0x28(%rbp), %rdi
callq 0x36b80
movq %rax, -0x90(%rbp)
leaq -0x80(%rbp), %rdi
leaq -0x90(%rbp), %rsi
callq 0x12ec50
testb $0x1, %al
jne 0x1820cd
jmp 0x1820fa
movl -0x78(%rbp), %eax
subl $0x1, %eax
movl %eax, -0x380(%rbp)
leaq -0x28(%rbp), %rdi
callq 0x37230
movq %rax, %rcx
movl -0x380(%rbp), %eax
movsbl (%rcx), %ecx
cltd
idivl %ecx
shll $0x0, %eax
addl -0x74(%rbp), %eax
movl %eax, -0x74(%rbp)
movq -0x370(%rbp), %rcx
movq 0x20(%rcx), %rax
movq 0x28(%rcx), %rdx
movl -0x54(%rbp), %ecx
movq %rdx, -0xc8(%rbp)
movq %rax, -0xd0(%rbp)
movq -0xd0(%rbp), %rsi
movq -0xc8(%rbp), %rdx
leaq -0xc0(%rbp), %rdi
callq 0x182b80
movq %rdx, -0x390(%rbp)
movq %rax, -0x388(%rbp)
jmp 0x182144
movq -0x390(%rbp), %rax
movq -0x388(%rbp), %rcx
movq %rcx, -0xe0(%rbp)
movq %rax, -0xd8(%rbp)
leaq -0x2f9(%rbp), %rdi
movq %rdi, -0x398(%rbp)
callq 0x37190
movq -0x398(%rbp), %rsi
leaq -0x2f8(%rbp), %rdi
callq 0x17e200
jmp 0x182188
leaq -0x2f9(%rbp), %rdi
callq 0x375e0
movq -0x370(%rbp), %rax
movl 0x34(%rax), %ecx
movl -0x74(%rbp), %eax
addl %ecx, %eax
movl %eax, -0x74(%rbp)
movl -0x74(%rbp), %edi
callq 0x17a090
movl %eax, -0x39c(%rbp)
jmp 0x1821b6
movl -0x39c(%rbp), %eax
movl %eax, %eax
movl %eax, %esi
leaq -0x2f8(%rbp), %rdi
callq 0x17e270
jmp 0x1821ce
leaq -0x310(%rbp), %rdi
leaq -0x41(%rbp), %rsi
movl $0x1, %edx
callq 0x177d80
movl $0x0, -0x314(%rbp)
leaq -0x28(%rbp), %rdi
callq 0x36990
movq %rax, -0x320(%rbp)
movq -0x320(%rbp), %rax
movq %rax, -0x80(%rbp)
leaq -0x2f8(%rbp), %rdi
callq 0x17e2a0
movslq -0x74(%rbp), %rcx
addq %rcx, %rax
movq %rax, -0x328(%rbp)
movl -0x54(%rbp), %eax
subl $0x1, %eax
movl %eax, -0x32c(%rbp)
cmpl $0x0, -0x32c(%rbp)
jl 0x18241e
movslq -0x32c(%rbp), %rax
movb -0xc0(%rbp,%rax), %cl
movq -0x328(%rbp), %rax
movq %rax, %rdx
addq $-0x1, %rdx
movq %rdx, -0x328(%rbp)
movb %cl, -0x1(%rax)
leaq -0x80(%rbp), %rdi
callq 0x88440
movsbl (%rax), %eax
cmpl $0x0, %eax
jle 0x1822ca
movl -0x314(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x3a0(%rbp)
movl %eax, -0x314(%rbp)
leaq -0x80(%rbp), %rdi
callq 0x88440
movq %rax, %rcx
movl -0x3a0(%rbp), %eax
movsbl (%rcx), %ecx
cltd
idivl %ecx
cmpl $0x0, %edx
jne 0x1822ca
leaq -0x80(%rbp), %rdi
callq 0x88440
movsbl (%rax), %eax
movl %eax, -0x3a4(%rbp)
callq 0x17e1f0
movb %al, %cl
movl -0x3a4(%rbp), %eax
movsbl %cl, %ecx
cmpl %ecx, %eax
jne 0x182309
jmp 0x18240a
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x38(%rbp)
movl %eax, -0x3c(%rbp)
leaq -0x2f9(%rbp), %rdi
callq 0x375e0
jmp 0x1824df
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x38(%rbp)
movl %eax, -0x3c(%rbp)
leaq -0x2f8(%rbp), %rdi
callq 0x17e4f0
jmp 0x1824df
leaq -0x80(%rbp), %rdi
movl $0x1, %esi
callq 0x17e2c0
movq %rax, -0x338(%rbp)
leaq -0x28(%rbp), %rdi
callq 0x36b80
movq %rax, -0x340(%rbp)
leaq -0x338(%rbp), %rdi
leaq -0x340(%rbp), %rsi
callq 0x88400
testb $0x1, %al
jne 0x182347
jmp 0x18235a
movl $0x0, -0x314(%rbp)
leaq -0x80(%rbp), %rdi
callq 0x88460
leaq -0x310(%rbp), %rdi
movq %rdi, -0x3d0(%rbp)
callq 0xcc870
movq -0x3d0(%rbp), %rdi
movq %rax, %rcx
movq -0x328(%rbp), %rax
subq %rcx, %rax
movq %rax, -0x328(%rbp)
callq 0xcc850
movq -0x3d0(%rbp), %rdi
movq %rax, -0x3b8(%rbp)
callq 0xcc850
movq -0x3d0(%rbp), %rdi
movq %rax, -0x3c8(%rbp)
callq 0xcc870
movq -0x3d0(%rbp), %rdi
movq %rax, %rcx
movq -0x3c8(%rbp), %rax
addq %rcx, %rax
movq %rax, -0x3b0(%rbp)
movq -0x328(%rbp), %rax
movq %rax, -0x3c0(%rbp)
callq 0xcc870
movq -0x3c0(%rbp), %rdi
movq %rax, %rsi
callq 0x17e330
movq -0x3b8(%rbp), %rdi
movq -0x3b0(%rbp), %rsi
movq %rax, %rdx
callq 0x17e300
jmp 0x182408
jmp 0x18240a
movl -0x32c(%rbp), %eax
addl $-0x1, %eax
movl %eax, -0x32c(%rbp)
jmp 0x18222e
movq -0x370(%rbp), %rax
cmpl $0x0, 0x34(%rax)
je 0x182436
movq -0x328(%rbp), %rax
movb $0x2d, -0x1(%rax)
leaq -0x2f8(%rbp), %rdi
callq 0x17e2a0
movq %rax, %rcx
movq -0x370(%rbp), %rax
movq %rcx, -0x348(%rbp)
movq (%rax), %rcx
movq %rcx, -0x358(%rbp)
movq 0x10(%rax), %rsi
movslq -0x74(%rbp), %rcx
movq -0x348(%rbp), %rax
movq %rax, -0x368(%rbp)
movl -0x74(%rbp), %eax
movl %eax, -0x360(%rbp)
movq -0x358(%rbp), %rdi
leaq -0x368(%rbp), %r8
movq %rcx, %rdx
callq 0x183da0
movq %rax, -0x3d8(%rbp)
jmp 0x18249b
movq -0x370(%rbp), %rax
movq -0x3d8(%rbp), %rcx
movq %rcx, -0x350(%rbp)
movq -0x350(%rbp), %rcx
movq %rcx, (%rax)
leaq -0x2f8(%rbp), %rdi
callq 0x17e4f0
movl $0x0, -0x40(%rbp)
leaq -0x28(%rbp), %rdi
callq 0x37610
addq $0x3e0, %rsp # imm = 0x3E0
popq %rbp
retq
leaq -0x28(%rbp), %rdi
callq 0x37610
movq -0x38(%rbp), %rdi
callq 0x36bd0
nopw %cs:(%rax,%rax)
nopl (%rax,%rax)
| /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;
if (n < 100) return count + 1;
if (n < 1000) return count + 2;
if (n < 10000) return count + 3;
n /= 10000U;
count += 4;
}
} | 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 0x1825fb
jmp 0x1825f0
movl -0x34(%rbp), %eax
movl %eax, -0x4(%rbp)
jmp 0x182693
movq -0x30(%rbp), %rsi
movq -0x28(%rbp), %rcx
xorl %eax, %eax
movl $0x63, %edx
subq %rsi, %rdx
sbbq %rcx, %rax
jb 0x18261f
jmp 0x182614
movl -0x34(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x4(%rbp)
jmp 0x182693
movq -0x30(%rbp), %rsi
movq -0x28(%rbp), %rcx
xorl %eax, %eax
movl $0x3e7, %edx # imm = 0x3E7
subq %rsi, %rdx
sbbq %rcx, %rax
jb 0x182643
jmp 0x182638
movl -0x34(%rbp), %eax
addl $0x2, %eax
movl %eax, -0x4(%rbp)
jmp 0x182693
movq -0x30(%rbp), %rsi
movq -0x28(%rbp), %rcx
xorl %eax, %eax
movl $0x270f, %edx # imm = 0x270F
subq %rsi, %rdx
sbbq %rcx, %rax
jb 0x182667
jmp 0x18265c
movl -0x34(%rbp), %eax
addl $0x3, %eax
movl %eax, -0x4(%rbp)
jmp 0x182693
movq -0x30(%rbp), %rdi
movq -0x28(%rbp), %rsi
xorl %eax, %eax
movl %eax, %ecx
movl $0x2710, %edx # imm = 0x2710
callq 0x36ae0
movq %rdx, -0x28(%rbp)
movq %rax, -0x30(%rbp)
movl -0x34(%rbp), %eax
addl $0x4, %eax
movl %eax, -0x34(%rbp)
jmp 0x1825d7
movl -0x4(%rbp), %eax
addq $0x40, %rsp
popq %rbp
retq
nopl (%rax)
| /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::basic_string_view<char>, fmt::v7::basic_format_specs<char> const&, fmt::v7::detail::int_writer<fmt::v7::detail::buffer_appender<char>, char, unsigned __int128>::on_dec()::'lambda'(fmt::v7::detail::buffer_appender<char>)) | 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, [=](iterator it) {
if (prefix.size() != 0)
it = copy_str<Char>(prefix.begin(), prefix.end(), it);
it = std::fill_n(it, data.padding, static_cast<Char>('0'));
return f(it);
});
} | 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)
movq -0x30(%rbp), %r8
movq -0x50(%rbp), %rdx
movq -0x48(%rbp), %rcx
leaq -0x40(%rbp), %rdi
callq 0x17c600
movq -0x90(%rbp), %rax
movq -0x10(%rbp), %rcx
movq %rcx, -0x58(%rbp)
movq -0x30(%rbp), %rsi
movq -0x40(%rbp), %rdx
movq -0x20(%rbp), %rcx
movq %rcx, -0x88(%rbp)
movq -0x18(%rbp), %rcx
movq %rcx, -0x80(%rbp)
movq -0x40(%rbp), %rcx
movq %rcx, -0x78(%rbp)
movq -0x38(%rbp), %rcx
movq %rcx, -0x70(%rbp)
movq (%rax), %rcx
movq %rcx, -0x68(%rbp)
movl 0x8(%rax), %eax
movl %eax, -0x60(%rbp)
movq -0x58(%rbp), %rdi
leaq -0x88(%rbp), %rcx
callq 0x1827a0
movq %rax, -0x8(%rbp)
movq -0x8(%rbp), %rax
addq $0x90, %rsp
popq %rbp
retq
nopl (%rax)
| /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()::'lambda'(fmt::v7::detail::buffer_appender<char>)>(fmt::v7::detail::buffer_appender<char>, int, fmt::v7::basic_string_view<char>, fmt::v7::basic_format_specs<char> const&, fmt::v7::detail::int_writer<fmt::v7::detail::buffer_appender<char>, char, unsigned __int128>::on_dec()::'lambda'(fmt::v7::detail::buffer_appender<char>))::'lambda'(fmt::v7::detail::buffer_appender<char>)>(char, fmt::v7::basic_format_specs<fmt::v7::detail::int_writer<fmt::v7::detail::buffer_appender<char>, char, unsigned __int128>::on_dec()::'lambda'(fmt::v7::detail::buffer_appender<char>)> const&, unsigned long, unsigned long, 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::basic_string_view<char>, fmt::v7::basic_format_specs<char> const&, fmt::v7::detail::int_writer<fmt::v7::detail::buffer_appender<char>, char, unsigned __int128>::on_dec()::'lambda'(fmt::v7::detail::buffer_appender<char>))::'lambda'(fmt::v7::detail::buffer_appender<char>) const&) | 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 = spec_width > width ? spec_width - width : 0;
auto* shifts = align == align::left ? data::left_padding_shifts
: data::right_padding_shifts;
size_t left_padding = padding >> shifts[specs.align];
auto it = reserve(out, size + padding * specs.fill.size());
it = fill(it, left_padding, specs.fill);
it = f(it);
it = fill(it, padding - left_padding, specs.fill);
return base_iterator(out, it);
} | 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
subq -0x28(%rbp), %rax
movq %rax, -0xa8(%rbp)
jmp 0x182841
xorl %eax, %eax
movq %rax, -0xa8(%rbp)
jmp 0x182841
movq -0xa8(%rbp), %rax
movq %rax, -0x40(%rbp)
leaq 0x1b9e0a(%rip), %rax # 0x33c65d
movq %rax, -0x48(%rbp)
movq -0x40(%rbp), %rax
movq -0x48(%rbp), %rcx
movq -0x18(%rbp), %rdx
movb 0x9(%rdx), %dl
andb $0xf, %dl
movzbl %dl, %edx
movl %edx, %edx
movsbl (%rcx,%rdx), %ecx
movl %ecx, %ecx
shrq %cl, %rax
movq %rax, -0x50(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0x60(%rbp)
movq -0x20(%rbp), %rax
movq %rax, -0xb8(%rbp)
movq -0x40(%rbp), %rax
movq %rax, -0xb0(%rbp)
movq -0x18(%rbp), %rdi
addq $0xa, %rdi
callq 0x17c940
movq -0xb8(%rbp), %rsi
movq %rax, %rcx
movq -0xb0(%rbp), %rax
imulq %rcx, %rax
addq %rax, %rsi
movq -0x60(%rbp), %rdi
callq 0x17c8e0
movq %rax, -0x58(%rbp)
movq -0x58(%rbp), %rax
movq %rax, -0x70(%rbp)
movq -0x50(%rbp), %rsi
movq -0x18(%rbp), %rdx
addq $0xa, %rdx
movq -0x70(%rbp), %rdi
callq 0x17c960
movq %rax, -0x68(%rbp)
movq -0x68(%rbp), %rax
movq %rax, -0x58(%rbp)
movq -0x30(%rbp), %rdi
movq -0x58(%rbp), %rax
movq %rax, -0x80(%rbp)
movq -0x80(%rbp), %rsi
callq 0x182990
movq %rax, -0x78(%rbp)
movq -0x78(%rbp), %rax
movq %rax, -0x58(%rbp)
movq -0x58(%rbp), %rax
movq %rax, -0x90(%rbp)
movq -0x40(%rbp), %rsi
subq -0x50(%rbp), %rsi
movq -0x18(%rbp), %rdx
addq $0xa, %rdx
movq -0x90(%rbp), %rdi
callq 0x17c960
movq %rax, -0x88(%rbp)
movq -0x88(%rbp), %rax
movq %rax, -0x58(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0x98(%rbp)
movq -0x58(%rbp), %rax
movq %rax, -0xa0(%rbp)
movq -0x98(%rbp), %rdi
movq -0xa0(%rbp), %rsi
callq 0x17cae0
movq %rax, -0x8(%rbp)
movq -0x8(%rbp), %rax
addq $0xc0, %rsp
popq %rbp
retq
nopl (%rax,%rax)
| /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 two 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.
out -= 2;
copy2(out, data::digits[value % 100]);
value /= 100;
}
if (value < 10) {
*--out = static_cast<Char>('0' + value);
return {out, end};
}
out -= 2;
copy2(out, data::digits[value]);
return {out, end};
} | 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
movq %rcx, -0x58(%rbp)
movq %rax, -0x60(%rbp)
movq -0x60(%rbp), %rdi
movq -0x58(%rbp), %rsi
callq 0x1825b0
movl %eax, %ecx
movl -0x6c(%rbp), %eax
cmpl %ecx, %eax
jl 0x182bd8
jmp 0x182bf0
leaq 0x1b1a66(%rip), %rdi # 0x334645
movl $0x39c, %esi # imm = 0x39C
leaq 0x1b1cc1(%rip), %rdx # 0x3348ac
callq 0x31aa60
movl -0x44(%rbp), %ecx
movq -0x28(%rbp), %rax
movslq %ecx, %rcx
addq %rcx, %rax
movq %rax, -0x28(%rbp)
movq -0x28(%rbp), %rax
movq %rax, -0x68(%rbp)
movq -0x40(%rbp), %rcx
movq -0x38(%rbp), %rax
subq $0x64, %rcx
sbbq $0x0, %rax
jb 0x182c8f
jmp 0x182c1d
movq -0x28(%rbp), %rax
addq $-0x2, %rax
movq %rax, -0x28(%rbp)
movq -0x28(%rbp), %rax
movq %rax, -0x88(%rbp)
movq -0x40(%rbp), %rdi
movq -0x38(%rbp), %rsi
xorl %eax, %eax
movl %eax, %ecx
movq %rcx, -0x78(%rbp)
movl $0x64, %edx
movq %rdx, -0x80(%rbp)
callq 0x37470
movq -0x88(%rbp), %rdi
movl %eax, %eax
movl %eax, %ecx
leaq 0x1b98dc(%rip), %rax # 0x33c540
leaq (%rax,%rcx,2), %rsi
callq 0x17d0c0
movq -0x80(%rbp), %rdx
movq -0x78(%rbp), %rcx
movq -0x40(%rbp), %rdi
movq -0x38(%rbp), %rsi
callq 0x36ae0
movq %rdx, -0x38(%rbp)
movq %rax, -0x40(%rbp)
jmp 0x182c09
movq -0x40(%rbp), %rsi
movq -0x38(%rbp), %rcx
xorl %eax, %eax
movl $0x9, %edx
subq %rsi, %rdx
sbbq %rcx, %rax
jb 0x182cd2
jmp 0x182ca8
movb -0x40(%rbp), %cl
addb $0x30, %cl
movq -0x28(%rbp), %rax
movq %rax, %rdx
addq $-0x1, %rdx
movq %rdx, -0x28(%rbp)
movb %cl, -0x1(%rax)
movq -0x28(%rbp), %rax
movq %rax, -0x10(%rbp)
movq -0x68(%rbp), %rax
movq %rax, -0x8(%rbp)
jmp 0x182d08
movq -0x28(%rbp), %rax
addq $-0x2, %rax
movq %rax, -0x28(%rbp)
movq -0x28(%rbp), %rdi
movq -0x40(%rbp), %rax
leaq 0x1b9853(%rip), %rsi # 0x33c540
shlq %rax
addq %rax, %rsi
callq 0x17d0c0
movq -0x28(%rbp), %rax
movq %rax, -0x10(%rbp)
movq -0x68(%rbp), %rax
movq %rax, -0x8(%rbp)
movq -0x10(%rbp), %rax
movq -0x8(%rbp), %rdx
addq $0x90, %rsp
popq %rbp
retq
nopl (%rax)
| /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::basic_string_view<char>, fmt::v7::basic_format_specs<char> const&, fmt::v7::detail::int_writer<fmt::v7::detail::buffer_appender<char>, char, unsigned __int128>::on_hex()::'lambda'(fmt::v7::detail::buffer_appender<char>)) | 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, [=](iterator it) {
if (prefix.size() != 0)
it = copy_str<Char>(prefix.begin(), prefix.end(), it);
it = std::fill_n(it, data.padding, static_cast<Char>('0'));
return f(it);
});
} | 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)
movq -0x30(%rbp), %r8
movq -0x50(%rbp), %rdx
movq -0x48(%rbp), %rcx
leaq -0x40(%rbp), %rdi
callq 0x17c600
movq -0x90(%rbp), %rax
movq -0x10(%rbp), %rcx
movq %rcx, -0x58(%rbp)
movq -0x30(%rbp), %rsi
movq -0x40(%rbp), %rdx
movq -0x20(%rbp), %rcx
movq %rcx, -0x88(%rbp)
movq -0x18(%rbp), %rcx
movq %rcx, -0x80(%rbp)
movq -0x40(%rbp), %rcx
movq %rcx, -0x78(%rbp)
movq -0x38(%rbp), %rcx
movq %rcx, -0x70(%rbp)
movq (%rax), %rcx
movq %rcx, -0x68(%rbp)
movl 0x8(%rax), %eax
movl %eax, -0x60(%rbp)
movq -0x58(%rbp), %rdi
leaq -0x88(%rbp), %rcx
callq 0x182e40
movq %rax, -0x8(%rbp)
movq -0x8(%rbp), %rax
addq $0x90, %rsp
popq %rbp
retq
nopl (%rax)
| /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()::'lambda'(fmt::v7::detail::buffer_appender<char>)>(fmt::v7::detail::buffer_appender<char>, int, fmt::v7::basic_string_view<char>, fmt::v7::basic_format_specs<char> const&, fmt::v7::detail::int_writer<fmt::v7::detail::buffer_appender<char>, char, unsigned __int128>::on_hex()::'lambda'(fmt::v7::detail::buffer_appender<char>))::'lambda'(fmt::v7::detail::buffer_appender<char>)>(char, fmt::v7::basic_format_specs<fmt::v7::detail::int_writer<fmt::v7::detail::buffer_appender<char>, char, unsigned __int128>::on_hex()::'lambda'(fmt::v7::detail::buffer_appender<char>)> const&, unsigned long, unsigned long, 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::basic_string_view<char>, fmt::v7::basic_format_specs<char> const&, fmt::v7::detail::int_writer<fmt::v7::detail::buffer_appender<char>, char, unsigned __int128>::on_hex()::'lambda'(fmt::v7::detail::buffer_appender<char>))::'lambda'(fmt::v7::detail::buffer_appender<char>) const&) | 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 = spec_width > width ? spec_width - width : 0;
auto* shifts = align == align::left ? data::left_padding_shifts
: data::right_padding_shifts;
size_t left_padding = padding >> shifts[specs.align];
auto it = reserve(out, size + padding * specs.fill.size());
it = fill(it, left_padding, specs.fill);
it = f(it);
it = fill(it, padding - left_padding, specs.fill);
return base_iterator(out, it);
} | 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
subq -0x28(%rbp), %rax
movq %rax, -0xa8(%rbp)
jmp 0x182ee1
xorl %eax, %eax
movq %rax, -0xa8(%rbp)
jmp 0x182ee1
movq -0xa8(%rbp), %rax
movq %rax, -0x40(%rbp)
leaq 0x1b976a(%rip), %rax # 0x33c65d
movq %rax, -0x48(%rbp)
movq -0x40(%rbp), %rax
movq -0x48(%rbp), %rcx
movq -0x18(%rbp), %rdx
movb 0x9(%rdx), %dl
andb $0xf, %dl
movzbl %dl, %edx
movl %edx, %edx
movsbl (%rcx,%rdx), %ecx
movl %ecx, %ecx
shrq %cl, %rax
movq %rax, -0x50(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0x60(%rbp)
movq -0x20(%rbp), %rax
movq %rax, -0xb8(%rbp)
movq -0x40(%rbp), %rax
movq %rax, -0xb0(%rbp)
movq -0x18(%rbp), %rdi
addq $0xa, %rdi
callq 0x17c940
movq -0xb8(%rbp), %rsi
movq %rax, %rcx
movq -0xb0(%rbp), %rax
imulq %rcx, %rax
addq %rax, %rsi
movq -0x60(%rbp), %rdi
callq 0x17c8e0
movq %rax, -0x58(%rbp)
movq -0x58(%rbp), %rax
movq %rax, -0x70(%rbp)
movq -0x50(%rbp), %rsi
movq -0x18(%rbp), %rdx
addq $0xa, %rdx
movq -0x70(%rbp), %rdi
callq 0x17c960
movq %rax, -0x68(%rbp)
movq -0x68(%rbp), %rax
movq %rax, -0x58(%rbp)
movq -0x30(%rbp), %rdi
movq -0x58(%rbp), %rax
movq %rax, -0x80(%rbp)
movq -0x80(%rbp), %rsi
callq 0x183030
movq %rax, -0x78(%rbp)
movq -0x78(%rbp), %rax
movq %rax, -0x58(%rbp)
movq -0x58(%rbp), %rax
movq %rax, -0x90(%rbp)
movq -0x40(%rbp), %rsi
subq -0x50(%rbp), %rsi
movq -0x18(%rbp), %rdx
addq $0xa, %rdx
movq -0x90(%rbp), %rdi
callq 0x17c960
movq %rax, -0x88(%rbp)
movq -0x88(%rbp), %rax
movq %rax, -0x58(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0x98(%rbp)
movq -0x58(%rbp), %rax
movq %rax, -0xa0(%rbp)
movq -0x98(%rbp), %rdi
movq -0xa0(%rbp), %rsi
callq 0x17cae0
movq %rax, -0x8(%rbp)
movq -0x8(%rbp), %rax
addq $0xc0, %rsp
popq %rbp
retq
nopl (%rax,%rax)
| /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_cast<Char>(BASE_BITS < 4 ? static_cast<char>('0' + digit)
: digits[digit]);
} while ((value >>= BASE_BITS) != 0);
return end;
} | 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, %rcx
addq %rcx, %rax
movq %rax, -0x18(%rbp)
movq -0x18(%rbp), %rax
movq %rax, -0x40(%rbp)
movb -0x35(%rbp), %dl
leaq 0x1b1682(%rip), %rcx # 0x3348c0
leaq 0x1b93cb(%rip), %rax # 0x33c610
testb $0x1, %dl
cmovneq %rcx, %rax
movq %rax, -0x48(%rbp)
movl -0x30(%rbp), %eax
andl $0xf, %eax
movl %eax, -0x4c(%rbp)
movq -0x48(%rbp), %rax
movl -0x4c(%rbp), %ecx
movb (%rax,%rcx), %cl
movq -0x18(%rbp), %rax
movq %rax, %rdx
addq $-0x1, %rdx
movq %rdx, -0x18(%rbp)
movb %cl, -0x1(%rax)
movq -0x30(%rbp), %rdx
movq -0x28(%rbp), %rcx
movq %rcx, %rax
shldq $0x3c, %rdx, %rax
shrq $0x4, %rcx
movq %rcx, -0x28(%rbp)
movq %rax, -0x30(%rbp)
orq %rcx, %rax
jne 0x183234
jmp 0x183298
movq -0x40(%rbp), %rax
popq %rbp
retq
nop
| /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::basic_string_view<char>, fmt::v7::basic_format_specs<char> const&, fmt::v7::detail::int_writer<fmt::v7::detail::buffer_appender<char>, char, unsigned __int128>::on_bin()::'lambda'(fmt::v7::detail::buffer_appender<char>)) | 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, [=](iterator it) {
if (prefix.size() != 0)
it = copy_str<Char>(prefix.begin(), prefix.end(), it);
it = std::fill_n(it, data.padding, static_cast<Char>('0'));
return f(it);
});
} | 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)
movq -0x30(%rbp), %r8
movq -0x50(%rbp), %rdx
movq -0x48(%rbp), %rcx
leaq -0x40(%rbp), %rdi
callq 0x17c600
movq -0x90(%rbp), %rax
movq -0x10(%rbp), %rcx
movq %rcx, -0x58(%rbp)
movq -0x30(%rbp), %rsi
movq -0x40(%rbp), %rdx
movq -0x20(%rbp), %rcx
movq %rcx, -0x88(%rbp)
movq -0x18(%rbp), %rcx
movq %rcx, -0x80(%rbp)
movq -0x40(%rbp), %rcx
movq %rcx, -0x78(%rbp)
movq -0x38(%rbp), %rcx
movq %rcx, -0x70(%rbp)
movq (%rax), %rcx
movq %rcx, -0x68(%rbp)
movl 0x8(%rax), %eax
movl %eax, -0x60(%rbp)
movq -0x58(%rbp), %rdi
leaq -0x88(%rbp), %rcx
callq 0x1833c0
movq %rax, -0x8(%rbp)
movq -0x8(%rbp), %rax
addq $0x90, %rsp
popq %rbp
retq
nopl (%rax)
| /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::basic_string_view<char>, fmt::v7::basic_format_specs<char> const&, fmt::v7::detail::int_writer<fmt::v7::detail::buffer_appender<char>, char, unsigned __int128>::on_oct()::'lambda'(fmt::v7::detail::buffer_appender<char>)) | 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, [=](iterator it) {
if (prefix.size() != 0)
it = copy_str<Char>(prefix.begin(), prefix.end(), it);
it = std::fill_n(it, data.padding, static_cast<Char>('0'));
return f(it);
});
} | 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)
movq -0x30(%rbp), %r8
movq -0x50(%rbp), %rdx
movq -0x48(%rbp), %rcx
leaq -0x40(%rbp), %rdi
callq 0x17c600
movq -0x90(%rbp), %rax
movq -0x10(%rbp), %rcx
movq %rcx, -0x58(%rbp)
movq -0x30(%rbp), %rsi
movq -0x40(%rbp), %rdx
movq -0x20(%rbp), %rcx
movq %rcx, -0x88(%rbp)
movq -0x18(%rbp), %rcx
movq %rcx, -0x80(%rbp)
movq -0x40(%rbp), %rcx
movq %rcx, -0x78(%rbp)
movq -0x38(%rbp), %rcx
movq %rcx, -0x70(%rbp)
movq (%rax), %rcx
movq %rcx, -0x68(%rbp)
movl 0x8(%rax), %eax
movl %eax, -0x60(%rbp)
movq -0x58(%rbp), %rdi
leaq -0x88(%rbp), %rcx
callq 0x183950
movq %rax, -0x8(%rbp)
movq -0x8(%rbp), %rax
addq $0x90, %rsp
popq %rbp
retq
nopl (%rax)
| /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 != 0
? count_code_points(basic_string_view<StrChar>(data, size))
: 0;
using iterator = remove_reference_t<decltype(reserve(out, 0))>;
return write_padded(out, specs, size, width, [=](iterator it) {
return copy_str<Char>(data, data + size, it);
});
} | 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 -0x28(%rbp), %rax
movl 0x4(%rax), %edi
callq 0x17a090
movl %eax, %eax
cmpq -0x38(%rbp), %rax
jae 0x184594
movq -0x20(%rbp), %rax
movq %rax, -0x48(%rbp)
movq -0x18(%rbp), %rax
movq %rax, -0x40(%rbp)
movq -0x28(%rbp), %rax
movl 0x4(%rax), %edi
callq 0x17a090
movl %eax, %eax
movl %eax, %edx
movq -0x48(%rbp), %rdi
movq -0x40(%rbp), %rsi
callq 0x184620
movq %rax, -0x38(%rbp)
movq -0x28(%rbp), %rax
cmpl $0x0, (%rax)
je 0x1845c1
movq -0x30(%rbp), %rsi
movq -0x38(%rbp), %rdx
leaq -0x60(%rbp), %rdi
callq 0x177d80
movq -0x60(%rbp), %rdi
movq -0x58(%rbp), %rsi
callq 0x184670
movq %rax, -0x80(%rbp)
jmp 0x1845c9
xorl %eax, %eax
movq %rax, -0x80(%rbp)
jmp 0x1845c9
movq -0x80(%rbp), %rax
movq %rax, -0x50(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0x68(%rbp)
movq -0x28(%rbp), %rsi
movq -0x38(%rbp), %rdx
movq -0x50(%rbp), %rcx
movq -0x30(%rbp), %rax
movq %rax, -0x78(%rbp)
movq -0x38(%rbp), %rax
movq %rax, -0x70(%rbp)
movq -0x68(%rbp), %rdi
leaq -0x78(%rbp), %r8
callq 0x184700
movq %rax, -0x8(%rbp)
movq -0x8(%rbp), %rax
addq $0x80, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
nopl (%rax)
| /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_specs<char> const&)::'lambda'(fmt::v7::detail::buffer_appender<char>)>(char, fmt::v7::basic_format_specs<fmt::v7::detail::buffer_appender<char>> const&, unsigned long, unsigned long, 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&)::'lambda'(fmt::v7::detail::buffer_appender<char>) const&) | 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 = spec_width > width ? spec_width - width : 0;
auto* shifts = align == align::left ? data::left_padding_shifts
: data::right_padding_shifts;
size_t left_padding = padding >> shifts[specs.align];
auto it = reserve(out, size + padding * specs.fill.size());
it = fill(it, left_padding, specs.fill);
it = f(it);
it = fill(it, padding - left_padding, specs.fill);
return base_iterator(out, it);
} | 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
subq -0x28(%rbp), %rax
movq %rax, -0xa8(%rbp)
jmp 0x184751
xorl %eax, %eax
movq %rax, -0xa8(%rbp)
jmp 0x184751
movq -0xa8(%rbp), %rax
movq %rax, -0x40(%rbp)
leaq 0x1b7ef5(%rip), %rax # 0x33c658
movq %rax, -0x48(%rbp)
movq -0x40(%rbp), %rax
movq -0x48(%rbp), %rcx
movq -0x18(%rbp), %rdx
movb 0x9(%rdx), %dl
andb $0xf, %dl
movzbl %dl, %edx
movl %edx, %edx
movsbl (%rcx,%rdx), %ecx
movl %ecx, %ecx
shrq %cl, %rax
movq %rax, -0x50(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0x60(%rbp)
movq -0x20(%rbp), %rax
movq %rax, -0xb8(%rbp)
movq -0x40(%rbp), %rax
movq %rax, -0xb0(%rbp)
movq -0x18(%rbp), %rdi
addq $0xa, %rdi
callq 0x17c940
movq -0xb8(%rbp), %rsi
movq %rax, %rcx
movq -0xb0(%rbp), %rax
imulq %rcx, %rax
addq %rax, %rsi
movq -0x60(%rbp), %rdi
callq 0x17c8e0
movq %rax, -0x58(%rbp)
movq -0x58(%rbp), %rax
movq %rax, -0x70(%rbp)
movq -0x50(%rbp), %rsi
movq -0x18(%rbp), %rdx
addq $0xa, %rdx
movq -0x70(%rbp), %rdi
callq 0x17c960
movq %rax, -0x68(%rbp)
movq -0x68(%rbp), %rax
movq %rax, -0x58(%rbp)
movq -0x30(%rbp), %rdi
movq -0x58(%rbp), %rax
movq %rax, -0x80(%rbp)
movq -0x80(%rbp), %rsi
callq 0x1848a0
movq %rax, -0x78(%rbp)
movq -0x78(%rbp), %rax
movq %rax, -0x58(%rbp)
movq -0x58(%rbp), %rax
movq %rax, -0x90(%rbp)
movq -0x40(%rbp), %rsi
subq -0x50(%rbp), %rsi
movq -0x18(%rbp), %rdx
addq $0xa, %rdx
movq -0x90(%rbp), %rdi
callq 0x17c960
movq %rax, -0x88(%rbp)
movq -0x88(%rbp), %rax
movq %rax, -0x58(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0x98(%rbp)
movq -0x58(%rbp), %rax
movq %rax, -0xa0(%rbp)
movq -0x98(%rbp), %rdi
movq -0xa0(%rbp), %rsi
callq 0x17cae0
movq %rax, -0x8(%rbp)
movq -0x8(%rbp), %rax
addq $0xc0, %rsp
popq %rbp
retq
nopl (%rax,%rax)
| /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<char>, fmt::v7::basic_format_specs<char> const&)::'lambda'(fmt::v7::detail::buffer_appender<char>)>(fmt::v7::detail::buffer_appender<char>, fmt::v7::basic_format_specs<char> const&, unsigned long, unsigned long, 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<char>, fmt::v7::basic_format_specs<char> const&)::'lambda'(fmt::v7::detail::buffer_appender<char>) const&) | 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 = spec_width > width ? spec_width - width : 0;
auto* shifts = align == align::left ? data::left_padding_shifts
: data::right_padding_shifts;
size_t left_padding = padding >> shifts[specs.align];
auto it = reserve(out, size + padding * specs.fill.size());
it = fill(it, left_padding, specs.fill);
it = f(it);
it = fill(it, padding - left_padding, specs.fill);
return base_iterator(out, it);
} | 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
subq -0x28(%rbp), %rax
movq %rax, -0xa8(%rbp)
jmp 0x185f01
xorl %eax, %eax
movq %rax, -0xa8(%rbp)
jmp 0x185f01
movq -0xa8(%rbp), %rax
movq %rax, -0x40(%rbp)
leaq 0x1b6745(%rip), %rax # 0x33c658
movq %rax, -0x48(%rbp)
movq -0x40(%rbp), %rax
movq -0x48(%rbp), %rcx
movq -0x18(%rbp), %rdx
movb 0x9(%rdx), %dl
andb $0xf, %dl
movzbl %dl, %edx
movl %edx, %edx
movsbl (%rcx,%rdx), %ecx
movl %ecx, %ecx
shrq %cl, %rax
movq %rax, -0x50(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0x60(%rbp)
movq -0x20(%rbp), %rax
movq %rax, -0xb8(%rbp)
movq -0x40(%rbp), %rax
movq %rax, -0xb0(%rbp)
movq -0x18(%rbp), %rdi
addq $0xa, %rdi
callq 0x17c940
movq -0xb8(%rbp), %rsi
movq %rax, %rcx
movq -0xb0(%rbp), %rax
imulq %rcx, %rax
addq %rax, %rsi
movq -0x60(%rbp), %rdi
callq 0x17c8e0
movq %rax, -0x58(%rbp)
movq -0x58(%rbp), %rax
movq %rax, -0x70(%rbp)
movq -0x50(%rbp), %rsi
movq -0x18(%rbp), %rdx
addq $0xa, %rdx
movq -0x70(%rbp), %rdi
callq 0x17c960
movq %rax, -0x68(%rbp)
movq -0x68(%rbp), %rax
movq %rax, -0x58(%rbp)
movq -0x30(%rbp), %rdi
movq -0x58(%rbp), %rax
movq %rax, -0x80(%rbp)
movq -0x80(%rbp), %rsi
callq 0x186050
movq %rax, -0x78(%rbp)
movq -0x78(%rbp), %rax
movq %rax, -0x58(%rbp)
movq -0x58(%rbp), %rax
movq %rax, -0x90(%rbp)
movq -0x40(%rbp), %rsi
subq -0x50(%rbp), %rsi
movq -0x18(%rbp), %rdx
addq $0xa, %rdx
movq -0x90(%rbp), %rdi
callq 0x17c960
movq %rax, -0x88(%rbp)
movq -0x88(%rbp), %rax
movq %rax, -0x58(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0x98(%rbp)
movq -0x58(%rbp), %rax
movq %rax, -0xa0(%rbp)
movq -0x98(%rbp), %rdi
movq -0xa0(%rbp), %rsi
callq 0x17cae0
movq %rax, -0x8(%rbp)
movq -0x8(%rbp), %rax
addq $0xc0, %rsp
popq %rbp
retq
nopl (%rax,%rax)
| /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_spec_handler&&) | 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 -0x10(%rbp), %rdi
callq 0x188b10
jmp 0x188a13
movq -0x10(%rbp), %rdi
leaq 0x1abe15(%rip), %rsi # 0x334823
callq 0x31b950
jmp 0x188a15
addq $0x10, %rsp
popq %rbp
retq
nopl (%rax,%rax)
| /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 0x18cb7c
movq -0x28(%rbp), %rdi
movq -0x18(%rbp), %rsi
movq (%rdi), %rax
callq *0x10(%rax)
movq %rax, -0x20(%rbp)
movq -0x20(%rbp), %rax
cmpq -0x10(%rbp), %rax
jne 0x18cb6c
jmp 0x18cb7c
jmp 0x18cb6e
movq -0x18(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x18(%rbp)
jmp 0x18cb30
movq -0x18(%rbp), %rax
addq $0x30, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
| /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 = static_cast<uint32_t>(i);
pool.clear();
auto current_level = levels[i];
std::vector<std::future<void>> tasks;
tasks.reserve(current_level.size());
for (auto *mod : current_level) {
auto t = pool.push([=](Generator *g) { g->accept_generator(this); }, mod);
tasks.emplace_back(std::move(t));
}
for (auto &t : tasks) {
t.get();
}
}
} | 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
callq 0x1b7170
movl %eax, -0x1f4(%rbp)
jmp 0x18d281
movl -0x1f4(%rbp), %eax
movl %eax, -0x78(%rbp)
movl -0x78(%rbp), %eax
movl %eax, %esi
leaq -0x150(%rbp), %rdi
callq 0x195f70
jmp 0x18d29d
leaq -0x68(%rbp), %rdi
callq 0x1966f0
subq $0x1, %rax
movl %eax, -0x154(%rbp)
cmpl $0x0, -0x154(%rbp)
jl 0x18d51d
movq -0x1f0(%rbp), %rax
movl -0x154(%rbp), %ecx
movl %ecx, 0x8(%rax)
leaq -0x150(%rbp), %rdi
callq 0x196720
jmp 0x18d2db
movslq -0x154(%rbp), %rsi
leaq -0x68(%rbp), %rdi
callq 0x1967a0
movq %rax, %rsi
leaq -0x170(%rbp), %rdi
callq 0x1967c0
jmp 0x18d2fc
leaq -0x188(%rbp), %rdi
movq %rdi, -0x200(%rbp)
callq 0x196120
leaq -0x170(%rbp), %rdi
callq 0x196240
movq -0x200(%rbp), %rdi
movq %rax, %rsi
callq 0x196140
jmp 0x18d32c
leaq -0x170(%rbp), %rax
movq %rax, -0x190(%rbp)
movq -0x190(%rbp), %rdi
callq 0x196260
movq %rax, -0x198(%rbp)
movq -0x190(%rbp), %rdi
callq 0x196290
movq %rax, -0x1a0(%rbp)
leaq -0x198(%rbp), %rdi
leaq -0x1a0(%rbp), %rsi
callq 0x1962c0
testb $0x1, %al
jne 0x18d37c
jmp 0x18d459
leaq -0x198(%rbp), %rdi
callq 0x196300
movq %rax, %rcx
movq -0x1f0(%rbp), %rax
movq (%rcx), %rcx
movq %rcx, -0x1a8(%rbp)
movq %rax, -0x1c0(%rbp)
leaq -0x1b8(%rbp), %rdi
leaq -0x150(%rbp), %rsi
leaq -0x1c0(%rbp), %rdx
leaq -0x1a8(%rbp), %rcx
callq 0x18d570
jmp 0x18d3c6
leaq -0x188(%rbp), %rdi
leaq -0x1b8(%rbp), %rsi
callq 0x196320
jmp 0x18d3db
leaq -0x1b8(%rbp), %rdi
callq 0x1963a0
leaq -0x198(%rbp), %rdi
callq 0x1963c0
jmp 0x18d360
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x70(%rbp)
movl %eax, -0x74(%rbp)
jmp 0x18d559
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x70(%rbp)
movl %eax, -0x74(%rbp)
jmp 0x18d550
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x70(%rbp)
movl %eax, -0x74(%rbp)
jmp 0x18d544
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x70(%rbp)
movl %eax, -0x74(%rbp)
jmp 0x18d503
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x70(%rbp)
movl %eax, -0x74(%rbp)
leaq -0x1b8(%rbp), %rdi
callq 0x1963a0
jmp 0x18d503
leaq -0x188(%rbp), %rax
movq %rax, -0x1c8(%rbp)
movq -0x1c8(%rbp), %rdi
callq 0x1963e0
movq %rax, -0x1d0(%rbp)
movq -0x1c8(%rbp), %rdi
callq 0x196410
movq %rax, -0x1d8(%rbp)
leaq -0x1d0(%rbp), %rdi
leaq -0x1d8(%rbp), %rsi
callq 0x196440
testb $0x1, %al
jne 0x18d4a6
jmp 0x18d4d7
leaq -0x1d0(%rbp), %rdi
callq 0x196480
movq %rax, -0x1e0(%rbp)
movq -0x1e0(%rbp), %rdi
callq 0x1964a0
jmp 0x18d4c7
jmp 0x18d4c9
leaq -0x1d0(%rbp), %rdi
callq 0x196500
jmp 0x18d48d
leaq -0x188(%rbp), %rdi
callq 0x196520
leaq -0x170(%rbp), %rdi
callq 0x1965e0
movl -0x154(%rbp), %eax
addl $-0x1, %eax
movl %eax, -0x154(%rbp)
jmp 0x18d2b0
leaq -0x188(%rbp), %rdi
callq 0x196520
leaq -0x170(%rbp), %rdi
callq 0x1965e0
jmp 0x18d544
leaq -0x150(%rbp), %rdi
callq 0x196580
leaq -0x68(%rbp), %rdi
callq 0x1968b0
leaq -0x50(%rbp), %rdi
callq 0x196640
addq $0x200, %rsp # imm = 0x200
popq %rbp
retq
leaq -0x150(%rbp), %rdi
callq 0x196580
leaq -0x68(%rbp), %rdi
callq 0x1968b0
leaq -0x50(%rbp), %rdi
callq 0x196640
movq -0x70(%rbp), %rdi
callq 0x36bd0
nopl (%rax,%rax)
| /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 : nodes) {
auto t = pool.push([=](Generator *g) { g->accept_generator(this); }, mod);
tasks.emplace_back(std::move(t));
}
for (auto &t : tasks) {
t.get();
}
} | 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
callq 0x1b7170
movl %eax, -0x1d4(%rbp)
jmp 0x18d601
movl -0x1d4(%rbp), %eax
movl %eax, -0x78(%rbp)
movl -0x78(%rbp), %eax
movl %eax, %esi
leaq -0x150(%rbp), %rdi
callq 0x195f70
jmp 0x18d61d
leaq -0x168(%rbp), %rdi
movq %rdi, -0x1e0(%rbp)
callq 0x196120
leaq -0x68(%rbp), %rdi
callq 0x196240
movq -0x1e0(%rbp), %rdi
movq %rax, %rsi
callq 0x196140
jmp 0x18d64a
leaq -0x68(%rbp), %rax
movq %rax, -0x170(%rbp)
movq -0x170(%rbp), %rdi
callq 0x196260
movq %rax, -0x178(%rbp)
movq -0x170(%rbp), %rdi
callq 0x196290
movq %rax, -0x180(%rbp)
leaq -0x178(%rbp), %rdi
leaq -0x180(%rbp), %rsi
callq 0x1962c0
testb $0x1, %al
jne 0x18d697
jmp 0x18d763
leaq -0x178(%rbp), %rdi
callq 0x196300
movq %rax, %rcx
movq -0x1d0(%rbp), %rax
movq (%rcx), %rcx
movq %rcx, -0x188(%rbp)
movq %rax, -0x1a0(%rbp)
leaq -0x198(%rbp), %rdi
leaq -0x150(%rbp), %rsi
leaq -0x1a0(%rbp), %rdx
leaq -0x188(%rbp), %rcx
callq 0x18d850
jmp 0x18d6e1
leaq -0x168(%rbp), %rdi
leaq -0x198(%rbp), %rsi
callq 0x196320
jmp 0x18d6f6
leaq -0x198(%rbp), %rdi
callq 0x1963a0
leaq -0x178(%rbp), %rdi
callq 0x1963c0
jmp 0x18d67b
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x70(%rbp)
movl %eax, -0x74(%rbp)
jmp 0x18d835
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x70(%rbp)
movl %eax, -0x74(%rbp)
jmp 0x18d82c
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x70(%rbp)
movl %eax, -0x74(%rbp)
jmp 0x18d814
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x70(%rbp)
movl %eax, -0x74(%rbp)
leaq -0x198(%rbp), %rdi
callq 0x1963a0
jmp 0x18d814
leaq -0x168(%rbp), %rax
movq %rax, -0x1a8(%rbp)
movq -0x1a8(%rbp), %rdi
callq 0x1963e0
movq %rax, -0x1b0(%rbp)
movq -0x1a8(%rbp), %rdi
callq 0x196410
movq %rax, -0x1b8(%rbp)
leaq -0x1b0(%rbp), %rdi
leaq -0x1b8(%rbp), %rsi
callq 0x196440
testb $0x1, %al
jne 0x18d7b0
jmp 0x18d7e1
leaq -0x1b0(%rbp), %rdi
callq 0x196480
movq %rax, -0x1c0(%rbp)
movq -0x1c0(%rbp), %rdi
callq 0x1964a0
jmp 0x18d7d1
jmp 0x18d7d3
leaq -0x1b0(%rbp), %rdi
callq 0x196500
jmp 0x18d797
leaq -0x168(%rbp), %rdi
callq 0x196520
leaq -0x150(%rbp), %rdi
callq 0x196580
leaq -0x68(%rbp), %rdi
callq 0x1965e0
leaq -0x50(%rbp), %rdi
callq 0x196640
addq $0x1e0, %rsp # imm = 0x1E0
popq %rbp
retq
leaq -0x168(%rbp), %rdi
callq 0x196520
leaq -0x150(%rbp), %rdi
callq 0x196580
leaq -0x68(%rbp), %rdi
callq 0x1965e0
leaq -0x50(%rbp), %rdi
callq 0x196640
movq -0x70(%rbp), %rdi
callq 0x36bd0
nopw (%rax,%rax)
| /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
movq -0x50(%rbp), %rsi
addq $0xb0, %rsi
leaq -0x18(%rbp), %rdi
callq 0x196c50
movq -0x50(%rbp), %rax
addq $0x8, %rax
movq %rax, -0x20(%rbp)
movq -0x20(%rbp), %rdi
callq 0x199f50
movq %rax, -0x28(%rbp)
movq -0x20(%rbp), %rdi
callq 0x199f80
movq %rax, -0x30(%rbp)
leaq -0x28(%rbp), %rdi
leaq -0x30(%rbp), %rsi
callq 0x199fb0
testb $0x1, %al
jne 0x196fd2
jmp 0x19700e
leaq -0x28(%rbp), %rdi
callq 0x199ff0
movq %rax, -0x38(%rbp)
movq -0x38(%rbp), %rdi
callq 0x36560
jmp 0x196fea
jmp 0x196fec
leaq -0x28(%rbp), %rdi
callq 0x19a010
jmp 0x196fbf
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x40(%rbp)
movl %eax, -0x44(%rbp)
leaq -0x18(%rbp), %rdi
callq 0x197060
jmp 0x19701d
leaq -0x18(%rbp), %rdi
callq 0x197060
addq $0x50, %rsp
popq %rbp
retq
movq -0x40(%rbp), %rdi
callq 0x36bd0
nopw %cs:(%rax,%rax)
| /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 &nodes_.at(s->struct_name);
} | 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(%rbp), %rsi
callq 0x1a57b0
testb $0x1, %al
jne 0x1a4139
jmp 0x1a42bd
movb $0x1, -0xcd(%rbp)
movl $0x10, %edi
callq 0x36700
movq %rax, -0x140(%rbp)
movq -0x90(%rbp), %rax
leaq -0xc0(%rbp), %rcx
movq %rcx, -0x30(%rbp)
leaq 0x1918c7(%rip), %rcx # 0x335a31
movq %rcx, -0x38(%rbp)
movq %rax, -0x40(%rbp)
movq -0x38(%rbp), %rdi
movq -0x40(%rbp), %rsi
callq 0x14ff10
movq %rdx, -0x138(%rbp)
movq %rax, -0x130(%rbp)
jmp 0x1a418f
movq -0x138(%rbp), %rax
movq -0x130(%rbp), %rcx
movq %rcx, -0x60(%rbp)
movq %rax, -0x58(%rbp)
leaq -0x60(%rbp), %rax
movq %rax, -0x48(%rbp)
movq -0x38(%rbp), %rdi
callq 0xcc610
movq %rdx, -0x150(%rbp)
movq %rax, -0x148(%rbp)
jmp 0x1a41c6
movq -0x150(%rbp), %rax
movq -0x148(%rbp), %rcx
movq %rcx, -0x70(%rbp)
movq %rax, -0x68(%rbp)
movq -0x48(%rbp), %rax
leaq -0x80(%rbp), %rcx
movq %rcx, -0x20(%rbp)
movq %rax, -0x28(%rbp)
movq -0x20(%rbp), %rcx
movq -0x28(%rbp), %rax
movq %rcx, -0x10(%rbp)
movq %rax, -0x18(%rbp)
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rax
movq %rax, -0x8(%rbp)
movq -0x8(%rbp), %rdx
movl $0xd, %esi
callq 0xcc8d0
movq -0x70(%rbp), %rsi
movq -0x68(%rbp), %rdx
movq -0x80(%rbp), %rcx
movq -0x78(%rbp), %r8
leaq -0xc0(%rbp), %rdi
callq 0x31ba00
jmp 0x1a4234
jmp 0x1a4236
movq -0x140(%rbp), %rdi
leaq -0xc0(%rbp), %rsi
callq 0x1e5cb0
movq -0x140(%rbp), %rdi
movb $0x0, -0xcd(%rbp)
leaq 0x2fc59a(%rip), %rsi # 0x4a07f8
leaq -0xe76b5(%rip), %rdx # 0xbcbb0
callq 0x36b70
jmp 0x1a4383
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0xc8(%rbp)
movl %eax, -0xcc(%rbp)
jmp 0x1a42a1
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0xc8(%rbp)
movl %eax, -0xcc(%rbp)
leaq -0xc0(%rbp), %rdi
callq 0x37610
testb $0x1, -0xcd(%rbp)
jne 0x1a42ac
jmp 0x1a42b8
movq -0x140(%rbp), %rdi
callq 0x37000
jmp 0x1a4377
leaq -0x110(%rbp), %rdi
movq %rdi, -0x168(%rbp)
callq 0x1a5840
movq -0x128(%rbp), %rdi
movq -0x168(%rbp), %rdx
movq -0x90(%rbp), %rax
movq %rax, -0x108(%rbp)
movq -0x90(%rbp), %rsi
callq 0x1a5870
movb %dl, -0x159(%rbp)
movq %rax, -0x158(%rbp)
jmp 0x1a4307
movq -0x128(%rbp), %rdi
movb -0x159(%rbp), %al
movq -0x158(%rbp), %rcx
movq %rcx, -0x120(%rbp)
movb %al, -0x118(%rbp)
movq -0x90(%rbp), %rsi
callq 0x1a58c0
movq %rax, -0x170(%rbp)
jmp 0x1a433d
leaq -0x110(%rbp), %rdi
callq 0x1a58f0
movq -0x170(%rbp), %rax
addq $0x170, %rsp # imm = 0x170
popq %rbp
retq
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0xc8(%rbp)
movl %eax, -0xcc(%rbp)
leaq -0x110(%rbp), %rdi
callq 0x1a58f0
movq -0xc8(%rbp), %rdi
callq 0x36bd0
nopw %cs:(%rax,%rax)
| /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("{0} already has a parent",
child_node->parent->generator->instance_name));
child_node->parent = parent_node;
parent_node->children.emplace(child_node->generator);
}
} | 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(%rbp), %rax
movq %rax, -0xa0(%rbp)
movq -0xa0(%rbp), %rdi
callq 0xee800
movq %rax, -0xc0(%rbp)
movq -0xa0(%rbp), %rdi
callq 0xee640
movq %rax, -0xc8(%rbp)
leaq -0xc0(%rbp), %rdi
leaq -0xc8(%rbp), %rsi
callq 0x196690
testb $0x1, %al
jne 0x1a620d
leaq -0xb8(%rbp), %rdi
callq 0xbc8e0
jmp 0x1a6493
leaq -0xc0(%rbp), %rdi
callq 0xee8a0
movq %rax, %rcx
movq -0x128(%rbp), %rax
movq %rcx, -0xd0(%rbp)
movq 0x48(%rax), %rax
movq %rax, -0x138(%rbp)
movq -0xd0(%rbp), %rdi
callq 0xbc060
movq -0x138(%rbp), %rdi
movq %rax, %rsi
callq 0x1a2ec0
movq %rax, -0x130(%rbp)
jmp 0x1a6259
movq -0x130(%rbp), %rax
movq %rax, -0xd8(%rbp)
movq -0xd8(%rbp), %rax
cmpq $0x0, (%rax)
je 0x1a641f
movb $0x1, -0x109(%rbp)
movl $0x10, %edi
callq 0x36700
movq %rax, -0x150(%rbp)
movq -0xd8(%rbp), %rax
movq (%rax), %rax
movq 0x8(%rax), %rax
addq $0x98, %rax
leaq -0x108(%rbp), %rcx
movq %rcx, -0x30(%rbp)
leaq 0x18f790(%rip), %rcx # 0x335a46
movq %rcx, -0x38(%rbp)
movq %rax, -0x40(%rbp)
movq -0x38(%rbp), %rdi
movq -0x40(%rbp), %rsi
callq 0x1a6530
movq %rdx, -0x148(%rbp)
movq %rax, -0x140(%rbp)
jmp 0x1a62db
movq -0x148(%rbp), %rax
movq -0x140(%rbp), %rcx
movq %rcx, -0x60(%rbp)
movq %rax, -0x58(%rbp)
leaq -0x60(%rbp), %rax
movq %rax, -0x48(%rbp)
movq -0x38(%rbp), %rdi
callq 0xcc610
movq %rdx, -0x160(%rbp)
movq %rax, -0x158(%rbp)
jmp 0x1a6312
movq -0x160(%rbp), %rax
movq -0x158(%rbp), %rcx
movq %rcx, -0x70(%rbp)
movq %rax, -0x68(%rbp)
movq -0x48(%rbp), %rax
leaq -0x80(%rbp), %rcx
movq %rcx, -0x20(%rbp)
movq %rax, -0x28(%rbp)
movq -0x20(%rbp), %rcx
movq -0x28(%rbp), %rax
movq %rcx, -0x10(%rbp)
movq %rax, -0x18(%rbp)
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rax
movq %rax, -0x8(%rbp)
movq -0x8(%rbp), %rdx
movl $0xd, %esi
callq 0xcc8d0
jmp 0x1a6364
movq -0x70(%rbp), %rsi
movq -0x68(%rbp), %rdx
movq -0x80(%rbp), %rcx
movq -0x78(%rbp), %r8
leaq -0x108(%rbp), %rdi
callq 0x31ba00
jmp 0x1a6382
jmp 0x1a6384
movq -0x150(%rbp), %rdi
leaq -0x108(%rbp), %rsi
callq 0x1e5cb0
movq -0x150(%rbp), %rdi
movb $0x0, -0x109(%rbp)
leaq 0x2fa44c(%rip), %rsi # 0x4a07f8
leaq -0xe9803(%rip), %rdx # 0xbcbb0
callq 0x36b70
jmp 0x1a64a8
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0xe0(%rbp)
movl %eax, -0xe4(%rbp)
jmp 0x1a6485
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0xe0(%rbp)
movl %eax, -0xe4(%rbp)
jmp 0x1a6406
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0xe0(%rbp)
movl %eax, -0xe4(%rbp)
leaq -0x108(%rbp), %rdi
callq 0x37610
testb $0x1, -0x109(%rbp)
jne 0x1a6411
jmp 0x1a641d
movq -0x150(%rbp), %rdi
callq 0x37000
jmp 0x1a6485
movq -0x98(%rbp), %rcx
movq -0xd8(%rbp), %rax
movq %rcx, (%rax)
movq -0x98(%rbp), %rdi
addq $0x10, %rdi
movq -0xd8(%rbp), %rsi
addq $0x8, %rsi
callq 0x1a64e0
movb %dl, -0x169(%rbp)
movq %rax, -0x168(%rbp)
jmp 0x1a645a
movb -0x169(%rbp), %al
movq -0x168(%rbp), %rcx
movq %rcx, -0x120(%rbp)
movb %al, -0x118(%rbp)
leaq -0xc0(%rbp), %rdi
callq 0x1966d0
jmp 0x1a61e5
leaq -0xb8(%rbp), %rdi
callq 0xbc8e0
jmp 0x1a649c
addq $0x170, %rsp # imm = 0x170
popq %rbp
retq
movq -0xe0(%rbp), %rdi
callq 0x36bd0
nopl (%rax,%rax)
| /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>>&, char [25], char>(char const (&) [25], std::remove_reference<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&>::type const&) | 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 &&
std::is_reference<Args>::value)...>() == 0,
"passing views as lvalues is disallowed");
detail::check_format_string<Args...>(format_str);
return {args...};
} | 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 # 0x335d4e
callq 0x469d0
jmp 0x1b7c73
leaq -0xd(%rbp), %rdi
callq 0x375e0
jmp 0x1b7d2b
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x18(%rbp)
movl %eax, -0x1c(%rbp)
leaq -0xd(%rbp), %rdi
callq 0x375e0
jmp 0x1b7d35
cmpl $0x1, -0xc(%rbp)
jne 0x1b7ce6
leaq -0x1d(%rbp), %rdi
movq %rdi, -0x40(%rbp)
callq 0x37190
movq -0x30(%rbp), %rdi
movq -0x40(%rbp), %rdx
leaq 0x17f4ae(%rip), %rsi # 0x33716b
callq 0x469d0
jmp 0x1b7cc4
leaq -0x1d(%rbp), %rdi
callq 0x375e0
jmp 0x1b7d2b
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x18(%rbp)
movl %eax, -0x1c(%rbp)
leaq -0x1d(%rbp), %rdi
callq 0x375e0
jmp 0x1b7d35
leaq -0x1e(%rbp), %rdi
movq %rdi, -0x48(%rbp)
callq 0x37190
movq -0x30(%rbp), %rdi
movq -0x48(%rbp), %rdx
leaq 0x1809f7(%rip), %rsi # 0x3386f9
callq 0x469d0
jmp 0x1b7d09
leaq -0x1e(%rbp), %rdi
callq 0x375e0
jmp 0x1b7d2b
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x18(%rbp)
movl %eax, -0x1c(%rbp)
leaq -0x1e(%rbp), %rdi
callq 0x375e0
jmp 0x1b7d35
movq -0x28(%rbp), %rax
addq $0x50, %rsp
popq %rbp
retq
movq -0x18(%rbp), %rdi
callq 0x36bd0
nop
| /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 << src;
f.close();
int status;
// choose which parser to use
// we use verilator first
std::string verilator = fs::which("verilator");
if (!verilator.empty()) {
status =
std::system(::format("{0} {1} --lint-only -Wno-fatal", verilator, filename).c_str());
fs::remove(filename);
return status == 0;
}
std::string iverilog = fs::which("iverilog");
if (!iverilog.empty()) {
std::string output_filename = fs::join(pathname, "out.a");
status =
std::system(::format("{0} {1} -o {2}", iverilog, filename, output_filename).c_str());
fs::remove(filename);
return status == 0;
}
fs::remove(filename);
throw std::runtime_error("iverilog and verilator not found in the system");
} | 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 -0x190(%rbp), %rdi
leaq -0x170(%rbp), %rsi
leaq -0x1b0(%rbp), %rdx
callq 0x1b85e0
jmp 0x1b7da9
leaq -0x1b0(%rbp), %rdi
callq 0x37610
leaq -0x1b1(%rbp), %rdi
callq 0x375e0
leaq -0x190(%rbp), %rdi
callq 0x36520
testb $0x1, %al
jne 0x1b7dd6
jmp 0x1b7e97
movl $0x10, %edi
callq 0x36700
movq %rax, %rdi
movq %rdi, %rax
movq %rax, -0x500(%rbp)
leaq 0x17df67(%rip), %rsi # 0x335d5b
callq 0x364b0
jmp 0x1b7dfb
movq -0x500(%rbp), %rdi
movq 0x2f61a7(%rip), %rsi # 0x4adfb0
movq 0x2f6178(%rip), %rdx # 0x4adf88
callq 0x36b70
jmp 0x1b8570
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x1c0(%rbp)
movl %eax, -0x1c4(%rbp)
jmp 0x1b7e4c
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x1c0(%rbp)
movl %eax, -0x1c4(%rbp)
leaq -0x1b0(%rbp), %rdi
callq 0x37610
leaq -0x1b1(%rbp), %rdi
callq 0x375e0
jmp 0x1b8558
movq -0x500(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x1c0(%rbp)
movl %eax, -0x1c4(%rbp)
callq 0x37000
jmp 0x1b854c
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x1c0(%rbp)
movl %eax, -0x1c4(%rbp)
jmp 0x1b854c
leaq -0x3c8(%rbp), %rdi
leaq -0x190(%rbp), %rsi
movl $0x10, %edx
callq 0x36270
jmp 0x1b7eb1
movq -0x150(%rbp), %rsi
leaq -0x3c8(%rbp), %rdi
callq 0x36580
jmp 0x1b7ec6
leaq -0x3c8(%rbp), %rdi
callq 0x37080
jmp 0x1b7ed4
leaq -0x411(%rbp), %rdi
movq %rdi, -0x508(%rbp)
callq 0x37190
movq -0x508(%rbp), %rdx
leaq 0x17de81(%rip), %rsi # 0x335d76
leaq -0x410(%rbp), %rdi
callq 0x469d0
jmp 0x1b7f03
leaq -0x3f0(%rbp), %rdi
leaq -0x410(%rbp), %rsi
callq 0x1b8660
jmp 0x1b7f18
leaq -0x410(%rbp), %rdi
callq 0x37610
leaq -0x411(%rbp), %rdi
callq 0x375e0
leaq -0x3f0(%rbp), %rdi
callq 0x36520
testb $0x1, %al
jne 0x1b814a
leaq -0x438(%rbp), %rax
movq %rax, -0xd8(%rbp)
leaq 0x17de27(%rip), %rax # 0x335d80
movq %rax, -0xe0(%rbp)
leaq -0x3f0(%rbp), %rax
movq %rax, -0xe8(%rbp)
leaq -0x190(%rbp), %rax
movq %rax, -0xf0(%rbp)
movq -0xe0(%rbp), %rsi
movq -0xe8(%rbp), %rdx
movq -0xf0(%rbp), %rcx
leaq -0x120(%rbp), %rdi
callq 0x1bdb30
jmp 0x1b7f9f
leaq -0x120(%rbp), %rax
movq %rax, -0xf8(%rbp)
movq -0xe0(%rbp), %rdi
callq 0xcc610
movq %rdx, -0x518(%rbp)
movq %rax, -0x510(%rbp)
jmp 0x1b7fc9
movq -0x518(%rbp), %rax
movq -0x510(%rbp), %rcx
movq %rcx, -0x130(%rbp)
movq %rax, -0x128(%rbp)
movq -0xf8(%rbp), %rax
leaq -0x140(%rbp), %rcx
movq %rcx, -0x48(%rbp)
movq %rax, -0x50(%rbp)
movq -0x48(%rbp), %rcx
movq -0x50(%rbp), %rax
movq %rcx, -0x38(%rbp)
movq %rax, -0x40(%rbp)
movq -0x38(%rbp), %rdi
movq -0x40(%rbp), %rax
movq %rax, -0x30(%rbp)
movq -0x30(%rbp), %rdx
movl $0xdd, %esi
callq 0xcc8d0
jmp 0x1b8027
movq -0x130(%rbp), %rsi
movq -0x128(%rbp), %rdx
movq -0x140(%rbp), %rcx
movq -0x138(%rbp), %r8
leaq -0x438(%rbp), %rdi
callq 0x31ba00
jmp 0x1b8051
jmp 0x1b8053
leaq -0x438(%rbp), %rdi
callq 0x361f0
movq %rax, %rdi
callq 0x375b0
movl %eax, -0x51c(%rbp)
jmp 0x1b806f
movl -0x51c(%rbp), %eax
movl %eax, -0x3cc(%rbp)
leaq -0x438(%rbp), %rdi
callq 0x37610
leaq -0x190(%rbp), %rdi
callq 0x1b8910
jmp 0x1b8095
cmpl $0x0, -0x3cc(%rbp)
sete %al
andb $0x1, %al
movb %al, -0x141(%rbp)
movl $0x1, -0x43c(%rbp)
jmp 0x1b84f3
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x1c0(%rbp)
movl %eax, -0x1c4(%rbp)
jmp 0x1b8540
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x1c0(%rbp)
movl %eax, -0x1c4(%rbp)
jmp 0x1b80ff
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x1c0(%rbp)
movl %eax, -0x1c4(%rbp)
leaq -0x410(%rbp), %rdi
callq 0x37610
leaq -0x411(%rbp), %rdi
callq 0x375e0
jmp 0x1b8540
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x1c0(%rbp)
movl %eax, -0x1c4(%rbp)
jmp 0x1b8534
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x1c0(%rbp)
movl %eax, -0x1c4(%rbp)
leaq -0x438(%rbp), %rdi
callq 0x37610
jmp 0x1b8534
leaq -0x481(%rbp), %rdi
movq %rdi, -0x528(%rbp)
callq 0x37190
movq -0x528(%rbp), %rdx
leaq 0x17dc34(%rip), %rsi # 0x335d9f
leaq -0x480(%rbp), %rdi
callq 0x469d0
jmp 0x1b8179
leaq -0x460(%rbp), %rdi
leaq -0x480(%rbp), %rsi
callq 0x1b8660
jmp 0x1b818e
leaq -0x480(%rbp), %rdi
callq 0x37610
leaq -0x481(%rbp), %rdi
callq 0x375e0
leaq -0x460(%rbp), %rdi
callq 0x36520
testb $0x1, %al
jne 0x1b8461
leaq -0x4c9(%rbp), %rdi
movq %rdi, -0x530(%rbp)
callq 0x37190
movq -0x530(%rbp), %rdx
leaq 0x17dbcd(%rip), %rsi # 0x335da8
leaq -0x4c8(%rbp), %rdi
callq 0x469d0
jmp 0x1b81e9
leaq -0x4a8(%rbp), %rdi
leaq -0x170(%rbp), %rsi
leaq -0x4c8(%rbp), %rdx
callq 0x1b85e0
jmp 0x1b8205
leaq -0x4c8(%rbp), %rdi
callq 0x37610
leaq -0x4c9(%rbp), %rdi
callq 0x375e0
leaq -0x4f0(%rbp), %rax
movq %rax, -0x58(%rbp)
leaq 0x17db7f(%rip), %rax # 0x335dae
movq %rax, -0x60(%rbp)
leaq -0x460(%rbp), %rax
movq %rax, -0x68(%rbp)
leaq -0x190(%rbp), %rax
movq %rax, -0x70(%rbp)
leaq -0x4a8(%rbp), %rax
movq %rax, -0x78(%rbp)
movq -0x60(%rbp), %rsi
movq -0x68(%rbp), %rdx
movq -0x70(%rbp), %rcx
movq -0x78(%rbp), %r8
leaq -0xb0(%rbp), %rdi
callq 0x1bdb70
jmp 0x1b8272
leaq -0xb0(%rbp), %rax
movq %rax, -0x80(%rbp)
movq -0x60(%rbp), %rdi
callq 0xcc610
movq %rdx, -0x540(%rbp)
movq %rax, -0x538(%rbp)
jmp 0x1b8296
movq -0x540(%rbp), %rax
movq -0x538(%rbp), %rcx
movq %rcx, -0xc0(%rbp)
movq %rax, -0xb8(%rbp)
movq -0x80(%rbp), %rax
leaq -0xd0(%rbp), %rcx
movq %rcx, -0x20(%rbp)
movq %rax, -0x28(%rbp)
movq -0x20(%rbp), %rcx
movq -0x28(%rbp), %rax
movq %rcx, -0x10(%rbp)
movq %rax, -0x18(%rbp)
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rax
movq %rax, -0x8(%rbp)
movq -0x8(%rbp), %rdx
movl $0xddd, %esi # imm = 0xDDD
callq 0xcc8d0
jmp 0x1b82f1
movq -0xc0(%rbp), %rsi
movq -0xb8(%rbp), %rdx
movq -0xd0(%rbp), %rcx
movq -0xc8(%rbp), %r8
leaq -0x4f0(%rbp), %rdi
callq 0x31ba00
jmp 0x1b831b
jmp 0x1b831d
leaq -0x4f0(%rbp), %rdi
callq 0x361f0
movq %rax, %rdi
callq 0x375b0
movl %eax, -0x544(%rbp)
jmp 0x1b8339
movl -0x544(%rbp), %eax
movl %eax, -0x3cc(%rbp)
leaq -0x4f0(%rbp), %rdi
callq 0x37610
leaq -0x190(%rbp), %rdi
callq 0x1b8910
jmp 0x1b835f
cmpl $0x0, -0x3cc(%rbp)
sete %al
andb $0x1, %al
movb %al, -0x141(%rbp)
movl $0x1, -0x43c(%rbp)
leaq -0x4a8(%rbp), %rdi
callq 0x37610
leaq -0x460(%rbp), %rdi
callq 0x37610
jmp 0x1b84f3
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x1c0(%rbp)
movl %eax, -0x1c4(%rbp)
jmp 0x1b83ca
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x1c0(%rbp)
movl %eax, -0x1c4(%rbp)
leaq -0x480(%rbp), %rdi
callq 0x37610
leaq -0x481(%rbp), %rdi
callq 0x375e0
jmp 0x1b8534
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x1c0(%rbp)
movl %eax, -0x1c4(%rbp)
jmp 0x1b840d
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x1c0(%rbp)
movl %eax, -0x1c4(%rbp)
leaq -0x4c8(%rbp), %rdi
callq 0x37610
leaq -0x4c9(%rbp), %rdi
callq 0x375e0
jmp 0x1b84e5
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x1c0(%rbp)
movl %eax, -0x1c4(%rbp)
jmp 0x1b8450
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x1c0(%rbp)
movl %eax, -0x1c4(%rbp)
leaq -0x4f0(%rbp), %rdi
callq 0x37610
leaq -0x4a8(%rbp), %rdi
callq 0x37610
jmp 0x1b84e5
leaq -0x190(%rbp), %rdi
callq 0x1b8910
jmp 0x1b846f
movl $0x10, %edi
callq 0x36700
movq %rax, %rdi
movq %rdi, %rax
movq %rax, -0x550(%rbp)
leaq 0x17d930(%rip), %rsi # 0x335dbd
callq 0x364b0
jmp 0x1b8494
movq -0x550(%rbp), %rdi
movq 0x2f5b0e(%rip), %rsi # 0x4adfb0
movq 0x2f5adf(%rip), %rdx # 0x4adf88
callq 0x36b70
jmp 0x1b8570
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x1c0(%rbp)
movl %eax, -0x1c4(%rbp)
jmp 0x1b84e5
movq -0x550(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x1c0(%rbp)
movl %eax, -0x1c4(%rbp)
callq 0x37000
leaq -0x460(%rbp), %rdi
callq 0x37610
jmp 0x1b8534
leaq -0x3f0(%rbp), %rdi
callq 0x37610
leaq -0x3c8(%rbp), %rdi
callq 0x36e00
leaq -0x190(%rbp), %rdi
callq 0x37610
leaq -0x170(%rbp), %rdi
callq 0x37610
movb -0x141(%rbp), %al
andb $0x1, %al
addq $0x550, %rsp # imm = 0x550
popq %rbp
retq
leaq -0x3f0(%rbp), %rdi
callq 0x37610
leaq -0x3c8(%rbp), %rdi
callq 0x36e00
leaq -0x190(%rbp), %rdi
callq 0x37610
leaq -0x170(%rbp), %rdi
callq 0x37610
movq -0x1c0(%rbp), %rdi
callq 0x36bd0
| /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
movq -0x50(%rbp), %rsi
movq -0x18(%rbp), %rdx
callq 0x82f20
jmp 0x1b862a
leaq -0x38(%rbp), %rdi
callq 0x37610
movq -0x60(%rbp), %rax
addq $0x60, %rsp
popq %rbp
retq
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x40(%rbp)
movl %eax, -0x44(%rbp)
leaq -0x38(%rbp), %rdi
callq 0x37610
movq -0x40(%rbp), %rdi
callq 0x36bd0
nopl (%rax,%rax)
| /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 = nullptr;
#else
env_path = std::getenv("PATH");
#endif
// tokenize it base on either : or ;
auto tokens = string::get_tokens(env_path, ";:");
for (auto const &dir : tokens) {
auto new_path = fs::join(dir, name);
if (exists(new_path)) {
return new_path;
}
}
return "";
} | 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
jmp 0x1b86b1
leaq -0x79(%rbp), %rdi
movq %rdi, -0xd0(%rbp)
callq 0x37190
movq -0xd0(%rbp), %rdx
leaq 0x17d8ec(%rip), %rsi # 0x335fbb
leaq -0x78(%rbp), %rdi
callq 0x469d0
jmp 0x1b86da
leaq -0x58(%rbp), %rdi
leaq -0x30(%rbp), %rsi
leaq -0x78(%rbp), %rdx
callq 0x1baeb0
jmp 0x1b86ed
leaq -0x78(%rbp), %rdi
callq 0x37610
leaq -0x79(%rbp), %rdi
callq 0x375e0
leaq -0x58(%rbp), %rax
movq %rax, -0x88(%rbp)
movq -0x88(%rbp), %rdi
callq 0x8cc10
movq %rax, -0x90(%rbp)
movq -0x88(%rbp), %rdi
callq 0x8ccc0
movq %rax, -0x98(%rbp)
leaq -0x90(%rbp), %rdi
leaq -0x98(%rbp), %rsi
callq 0xb9400
testb $0x1, %al
jne 0x1b874c
jmp 0x1b8863
leaq -0x90(%rbp), %rdi
callq 0x99280
movq -0xc8(%rbp), %rdi
movq %rax, -0xa0(%rbp)
movb $0x0, -0xa1(%rbp)
movq -0xa0(%rbp), %rsi
movq -0x10(%rbp), %rdx
callq 0x1b85e0
jmp 0x1b877f
movq -0xc8(%rbp), %rdi
callq 0x1bbf90
movb %al, -0xd1(%rbp)
jmp 0x1b8793
movb -0xd1(%rbp), %al
testb $0x1, %al
jne 0x1b87a2
jmp 0x1b8825
movb $0x1, -0xa1(%rbp)
movl $0x1, -0xa8(%rbp)
jmp 0x1b882f
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x38(%rbp)
movl %eax, -0x3c(%rbp)
jmp 0x1b88ef
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x38(%rbp)
movl %eax, -0x3c(%rbp)
jmp 0x1b87e9
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x38(%rbp)
movl %eax, -0x3c(%rbp)
leaq -0x78(%rbp), %rdi
callq 0x37610
leaq -0x79(%rbp), %rdi
callq 0x375e0
jmp 0x1b88ef
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x38(%rbp)
movl %eax, -0x3c(%rbp)
jmp 0x1b88e6
movq -0xc8(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x38(%rbp)
movl %eax, -0x3c(%rbp)
callq 0x37610
jmp 0x1b88e6
movl $0x0, -0xa8(%rbp)
testb $0x1, -0xa1(%rbp)
jne 0x1b8844
movq -0xc8(%rbp), %rdi
callq 0x37610
movl -0xa8(%rbp), %eax
testl %eax, %eax
jne 0x1b88c4
jmp 0x1b8850
jmp 0x1b8852
leaq -0x90(%rbp), %rdi
callq 0xb9440
jmp 0x1b8730
leaq -0xa9(%rbp), %rdi
movq %rdi, -0xe0(%rbp)
callq 0x37190
movq -0xc8(%rbp), %rdi
movq -0xe0(%rbp), %rdx
leaq 0x17687e(%rip), %rsi # 0x32f109
callq 0x469d0
jmp 0x1b8892
leaq -0xa9(%rbp), %rdi
callq 0x375e0
movl $0x1, -0xa8(%rbp)
jmp 0x1b88c4
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x38(%rbp)
movl %eax, -0x3c(%rbp)
leaq -0xa9(%rbp), %rdi
callq 0x375e0
jmp 0x1b88e6
leaq -0x58(%rbp), %rdi
callq 0x83350
leaq -0x30(%rbp), %rdi
callq 0x37610
movq -0xc0(%rbp), %rax
addq $0xe0, %rsp
popq %rbp
retq
leaq -0x58(%rbp), %rdi
callq 0x83350
leaq -0x30(%rbp), %rdi
callq 0x37610
movq -0x38(%rbp), %rdi
callq 0x36bd0
nopw %cs:(%rax,%rax)
| /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;
b_ = p;
break;
}
case 1: {
r_ = q;
g_ = v;
b_ = p;
break;
}
case 2: {
r_ = p;
g_ = v;
b_ = t;
break;
}
case 3: {
r_ = p;
g_ = q;
b_ = v;
break;
}
case 4: {
r_ = t;
g_ = p;
b_ = v;
break;
}
case 5: {
r_ = v;
g_ = p;
b_ = q;
break;
}
default:
throw std::runtime_error("HSV H is larger than 1");
}
auto r = static_cast<unsigned char>(r_ * 255);
auto g = static_cast<unsigned char>(g_ * 255);
auto b = static_cast<unsigned char>(b_ * 255);
return {r, g, b};
} | 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, %xmm0
subsd %xmm1, %xmm0
movsd %xmm0, -0x30(%rbp)
movsd -0x20(%rbp), %xmm0
movsd -0x18(%rbp), %xmm3
movsd 0x170ed5(%rip), %xmm1 # 0x32cc40
movaps %xmm1, %xmm2
subsd %xmm3, %xmm2
mulsd %xmm2, %xmm0
movsd %xmm0, -0x38(%rbp)
movsd -0x20(%rbp), %xmm0
movsd -0x30(%rbp), %xmm3
movsd -0x18(%rbp), %xmm2
mulsd %xmm2, %xmm3
movaps %xmm1, %xmm2
subsd %xmm3, %xmm2
mulsd %xmm2, %xmm0
movsd %xmm0, -0x40(%rbp)
movsd -0x20(%rbp), %xmm0
movsd -0x30(%rbp), %xmm3
movaps %xmm1, %xmm2
subsd %xmm3, %xmm2
movsd -0x18(%rbp), %xmm3
mulsd %xmm3, %xmm2
subsd %xmm2, %xmm1
mulsd %xmm1, %xmm0
movsd %xmm0, -0x48(%rbp)
movl -0x24(%rbp), %eax
movq %rax, -0x80(%rbp)
subq $0x5, %rax
ja 0x1bbeb6
movq -0x80(%rbp), %rax
leaq 0x179d5f(%rip), %rcx # 0x335b40
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movsd -0x20(%rbp), %xmm0
movsd %xmm0, -0x50(%rbp)
movsd -0x48(%rbp), %xmm0
movsd %xmm0, -0x58(%rbp)
movsd -0x38(%rbp), %xmm0
movsd %xmm0, -0x60(%rbp)
jmp 0x1bbf0f
movsd -0x40(%rbp), %xmm0
movsd %xmm0, -0x50(%rbp)
movsd -0x20(%rbp), %xmm0
movsd %xmm0, -0x58(%rbp)
movsd -0x38(%rbp), %xmm0
movsd %xmm0, -0x60(%rbp)
jmp 0x1bbf0f
movsd -0x38(%rbp), %xmm0
movsd %xmm0, -0x50(%rbp)
movsd -0x20(%rbp), %xmm0
movsd %xmm0, -0x58(%rbp)
movsd -0x48(%rbp), %xmm0
movsd %xmm0, -0x60(%rbp)
jmp 0x1bbf0f
movsd -0x38(%rbp), %xmm0
movsd %xmm0, -0x50(%rbp)
movsd -0x40(%rbp), %xmm0
movsd %xmm0, -0x58(%rbp)
movsd -0x20(%rbp), %xmm0
movsd %xmm0, -0x60(%rbp)
jmp 0x1bbf0f
movsd -0x48(%rbp), %xmm0
movsd %xmm0, -0x50(%rbp)
movsd -0x38(%rbp), %xmm0
movsd %xmm0, -0x58(%rbp)
movsd -0x20(%rbp), %xmm0
movsd %xmm0, -0x60(%rbp)
jmp 0x1bbf0f
movsd -0x20(%rbp), %xmm0
movsd %xmm0, -0x50(%rbp)
movsd -0x38(%rbp), %xmm0
movsd %xmm0, -0x58(%rbp)
movsd -0x40(%rbp), %xmm0
movsd %xmm0, -0x60(%rbp)
jmp 0x1bbf0f
movl $0x10, %edi
callq 0x36700
movq %rax, %rdi
movq %rdi, %rax
movq %rax, -0x88(%rbp)
leaq 0x17a0cb(%rip), %rsi # 0x335f9f
callq 0x364b0
jmp 0x1bbedb
movq -0x88(%rbp), %rdi
movq 0x2f20c7(%rip), %rsi # 0x4adfb0
movq 0x2f2098(%rip), %rdx # 0x4adf88
callq 0x36b70
movq -0x88(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x68(%rbp)
movl %eax, -0x6c(%rbp)
callq 0x37000
jmp 0x1bbf7d
movsd -0x50(%rbp), %xmm0
movsd 0x179c64(%rip), %xmm1 # 0x335b80
mulsd %xmm1, %xmm0
cvttsd2si %xmm0, %eax
movb %al, -0x6d(%rbp)
movsd -0x58(%rbp), %xmm0
mulsd %xmm1, %xmm0
cvttsd2si %xmm0, %eax
movb %al, -0x6e(%rbp)
movsd -0x60(%rbp), %xmm0
mulsd %xmm1, %xmm0
cvttsd2si %xmm0, %eax
movb %al, -0x6f(%rbp)
movb -0x6d(%rbp), %al
movb %al, -0x3(%rbp)
movb -0x6e(%rbp), %al
movb %al, -0x2(%rbp)
movb -0x6f(%rbp), %al
movb %al, -0x1(%rbp)
movb -0x1(%rbp), %al
movb %al, -0x72(%rbp)
movw -0x3(%rbp), %ax
movw %ax, -0x74(%rbp)
movzbl -0x72(%rbp), %ecx
shll $0x10, %ecx
movzwl -0x74(%rbp), %eax
orl %ecx, %eax
addq $0x90, %rsp
popq %rbp
retq
movq -0x68(%rbp), %rdi
callq 0x36bd0
nopw %cs:(%rax,%rax)
| /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), %rsi
movq -0x18(%rbp), %rdx
movq $-0x1, %rcx
callq 0x37210
jmp 0x1bc0ba
leaq -0x19(%rbp), %rdi
movq %rdi, -0x48(%rbp)
callq 0x37190
movq -0x40(%rbp), %rdi
movq -0x48(%rbp), %rdx
leaq 0x173078(%rip), %rsi # 0x32f109
callq 0x469d0
jmp 0x1bc098
leaq -0x19(%rbp), %rdi
callq 0x375e0
jmp 0x1bc0ba
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x28(%rbp)
movl %eax, -0x2c(%rbp)
leaq -0x19(%rbp), %rdi
callq 0x375e0
jmp 0x1bc0c4
movq -0x38(%rbp), %rax
addq $0x50, %rsp
popq %rbp
retq
movq -0x28(%rbp), %rdi
callq 0x36bd0
nopl (%rax)
| /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_name);
}
clk_ = generator_->get_port(vars[0]);
// find the reset signal
vars = generator->get_ports(PortType::AsyncReset);
if (vars.empty()) {
throw UserException("Unable to find any reset signal in " + generator->instance_name);
}
reset_ = generator_->get_port(vars[0]);
} | 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, %rdi
movq %rdi, -0x118(%rbp)
callq 0x1f14a0
movq -0xe0(%rbp), %rdi
addq $0x60, %rdi
movq %rdi, -0x110(%rbp)
xorl %eax, %eax
movl %eax, %esi
movq %rsi, -0xf0(%rbp)
callq 0xba090
movq -0xf0(%rbp), %rsi
movq -0xe0(%rbp), %rdi
addq $0x70, %rdi
movq %rdi, -0x108(%rbp)
callq 0xba090
movq -0xe0(%rbp), %rdi
subq $-0x80, %rdi
movq %rdi, -0x100(%rbp)
callq 0x1f14c0
movq -0xe0(%rbp), %rdi
addq $0xb0, %rdi
movq %rdi, -0xf8(%rbp)
callq 0x83330
movq -0xf0(%rbp), %rsi
movq -0xe0(%rbp), %rdi
addq $0xc8, %rdi
movq %rdi, -0xe8(%rbp)
callq 0x1f14e0
movq -0xe0(%rbp), %rdi
addq $0xd8, %rdi
movq %rdi, -0xd8(%rbp)
movl $0x0, -0x1c(%rbp)
leaq 0x148964(%rip), %rsi # 0x32f109
leaq -0x1c(%rbp), %rdx
callq 0x1f1500
jmp 0x1e67b0
movq -0x120(%rbp), %rdi
movq $0x0, 0x100(%rdi)
addq $0x108, %rdi # imm = 0x108
movq %rdi, -0x130(%rbp)
callq 0xb9860
movq -0x120(%rbp), %rdi
movb $0x0, 0x140(%rdi)
movb $0x1, 0x141(%rdi)
movb $0x1, 0x142(%rdi)
movq $0x0, 0x148(%rdi)
addq $0x150, %rdi # imm = 0x150
movq %rdi, -0x128(%rbp)
callq 0x1f1580
movq -0x18(%rbp), %rsi
leaq -0x48(%rbp), %rdi
movl $0x1, %edx
callq 0xb6f10
jmp 0x1e6823
leaq -0x48(%rbp), %rdi
callq 0xccc10
testb $0x1, %al
jne 0x1e6835
jmp 0x1e68f8
movb $0x1, -0x69(%rbp)
movl $0x10, %edi
callq 0x36700
movq %rax, -0x138(%rbp)
movq -0x18(%rbp), %rdx
addq $0x98, %rdx
leaq 0x1504c4(%rip), %rsi # 0x336d20
leaq -0x68(%rbp), %rdi
callq 0x82f70
jmp 0x1e6867
movq -0x138(%rbp), %rdi
leaq -0x68(%rbp), %rsi
callq 0x1e5d00
movq -0x138(%rbp), %rdi
movb $0x0, -0x69(%rbp)
leaq 0x2b9e87(%rip), %rsi # 0x4a0710
leaq -0x12da10(%rip), %rdx # 0xb8e80
callq 0x36b70
jmp 0x1e6b4f
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x28(%rbp)
movl %eax, -0x2c(%rbp)
jmp 0x1e6af2
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x28(%rbp)
movl %eax, -0x2c(%rbp)
jmp 0x1e6ace
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x28(%rbp)
movl %eax, -0x2c(%rbp)
jmp 0x1e68df
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x28(%rbp)
movl %eax, -0x2c(%rbp)
leaq -0x68(%rbp), %rdi
callq 0x37610
testb $0x1, -0x69(%rbp)
jne 0x1e68e7
jmp 0x1e68f3
movq -0x138(%rbp), %rdi
callq 0x37000
jmp 0x1e6ac5
movq -0x120(%rbp), %rax
movq 0x20(%rax), %rax
movq %rax, -0x140(%rbp)
xorl %eax, %eax
movl %eax, %esi
leaq -0x48(%rbp), %rdi
callq 0x83540
movq -0x140(%rbp), %rsi
movq %rax, %rdx
leaq -0x80(%rbp), %rdi
callq 0xa9870
jmp 0x1e692c
movq -0x120(%rbp), %rdi
addq $0x60, %rdi
leaq -0x80(%rbp), %rsi
movq %rsi, -0x148(%rbp)
callq 0x168760
movq -0x148(%rbp), %rdi
callq 0xb96b0
movq -0x18(%rbp), %rsi
leaq -0x98(%rbp), %rdi
movl $0x2, %edx
callq 0xb6f10
jmp 0x1e696a
leaq -0x48(%rbp), %rdi
leaq -0x98(%rbp), %rsi
callq 0x169070
leaq -0x98(%rbp), %rdi
callq 0x83350
leaq -0x48(%rbp), %rdi
callq 0xccc10
testb $0x1, %al
jne 0x1e6998
jmp 0x1e6a59
movb $0x1, -0xb9(%rbp)
movl $0x10, %edi
callq 0x36700
movq %rax, -0x150(%rbp)
movq -0x18(%rbp), %rdx
addq $0x98, %rdx
leaq 0x150382(%rip), %rsi # 0x336d44
leaq -0xb8(%rbp), %rdi
callq 0x82f70
jmp 0x1e69d0
movq -0x150(%rbp), %rdi
leaq -0xb8(%rbp), %rsi
callq 0x1e5d00
movq -0x150(%rbp), %rdi
movb $0x0, -0xb9(%rbp)
leaq 0x2b9d18(%rip), %rsi # 0x4a0710
leaq -0x12db7f(%rip), %rdx # 0xb8e80
callq 0x36b70
jmp 0x1e6b4f
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x28(%rbp)
movl %eax, -0x2c(%rbp)
jmp 0x1e6ac5
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x28(%rbp)
movl %eax, -0x2c(%rbp)
jmp 0x1e6a40
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x28(%rbp)
movl %eax, -0x2c(%rbp)
leaq -0xb8(%rbp), %rdi
callq 0x37610
testb $0x1, -0xb9(%rbp)
jne 0x1e6a4b
jmp 0x1e6a57
movq -0x150(%rbp), %rdi
callq 0x37000
jmp 0x1e6ac5
movq -0x120(%rbp), %rax
movq 0x20(%rax), %rax
movq %rax, -0x158(%rbp)
xorl %eax, %eax
movl %eax, %esi
leaq -0x48(%rbp), %rdi
callq 0x83540
movq -0x158(%rbp), %rsi
movq %rax, %rdx
leaq -0xd0(%rbp), %rdi
callq 0xa9870
jmp 0x1e6a90
movq -0x120(%rbp), %rdi
addq $0x70, %rdi
leaq -0xd0(%rbp), %rsi
callq 0x168760
leaq -0xd0(%rbp), %rdi
callq 0xb96b0
leaq -0x48(%rbp), %rdi
callq 0x83350
addq $0x160, %rsp # imm = 0x160
popq %rbp
retq
leaq -0x48(%rbp), %rdi
callq 0x83350
movq -0x128(%rbp), %rdi
callq 0xded50
movq -0x130(%rbp), %rdi
callq 0xb9b40
movq -0xd8(%rbp), %rdi
callq 0x515d0
movq -0xe8(%rbp), %rdi
callq 0xded70
movq -0xf8(%rbp), %rdi
callq 0x83350
movq -0x100(%rbp), %rdi
callq 0xded90
movq -0x108(%rbp), %rdi
callq 0x478f0
movq -0x110(%rbp), %rdi
callq 0x478f0
movq -0x118(%rbp), %rdi
callq 0xdedb0
movq -0xe0(%rbp), %rdi
callq 0x37610
movq -0x28(%rbp), %rdi
callq 0x36bd0
nop
| /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), %rdi
movq -0x18(%rbp), %rax
movq %rax, 0x20(%rdi)
addq $0x28, %rdi
movq %rdi, -0x88(%rbp)
callq 0x1f14a0
movq -0x80(%rbp), %rsi
movq -0x48(%rbp), %rdi
addq $0x60, %rdi
movq %rdi, -0x78(%rbp)
callq 0x4ef90
movq -0x70(%rbp), %rsi
movq -0x48(%rbp), %rdi
addq $0x70, %rdi
movq %rdi, -0x68(%rbp)
callq 0x4ef90
movq -0x48(%rbp), %rdi
subq $-0x80, %rdi
movq %rdi, -0x60(%rbp)
callq 0x1f14c0
movq -0x48(%rbp), %rdi
addq $0xb0, %rdi
movq %rdi, -0x58(%rbp)
callq 0x83330
movq -0x48(%rbp), %rdi
addq $0xc8, %rdi
movq %rdi, -0x50(%rbp)
xorl %eax, %eax
movl %eax, %esi
callq 0x1f14e0
movq -0x48(%rbp), %rdi
addq $0xd8, %rdi
movl $0x0, -0x2c(%rbp)
leaq 0x1484df(%rip), %rsi # 0x32f109
leaq -0x2c(%rbp), %rdx
callq 0x1f1500
jmp 0x1e6c35
movq -0x90(%rbp), %rdi
movq $0x0, 0x100(%rdi)
addq $0x108, %rdi # imm = 0x108
callq 0xb9860
movq -0x90(%rbp), %rdi
movb $0x0, 0x140(%rdi)
movb $0x1, 0x141(%rdi)
movb $0x1, 0x142(%rdi)
movq $0x0, 0x148(%rdi)
addq $0x150, %rdi # imm = 0x150
callq 0x1f1580
addq $0x90, %rsp
popq %rbp
retq
movq -0x50(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x38(%rbp)
movl %eax, -0x3c(%rbp)
callq 0xded70
movq -0x58(%rbp), %rdi
callq 0x83350
movq -0x60(%rbp), %rdi
callq 0xded90
movq -0x68(%rbp), %rdi
callq 0x478f0
movq -0x78(%rbp), %rdi
callq 0x478f0
movq -0x88(%rbp), %rdi
callq 0xdedb0
movq -0x48(%rbp), %rdi
callq 0x37610
movq -0x38(%rbp), %rdi
callq 0x36bd0
nopw %cs:(%rax,%rax)
| /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;
// erase the start from the child generator
fsm->start_state_ = nullptr;
} | 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 -0xf8(%rbp), %rax
movq %rcx, -0x100(%rbp)
movq -0xa0(%rbp), %rcx
leaq -0xc0(%rbp), %rdx
movq %rdx, -0x30(%rbp)
leaq 0x150001(%rip), %rdx # 0x336d68
movq %rdx, -0x38(%rbp)
movq %rcx, -0x40(%rbp)
movq %rax, -0x48(%rbp)
movq -0x38(%rbp), %rsi
movq -0x40(%rbp), %rdx
movq -0x48(%rbp), %rcx
leaq -0x70(%rbp), %rdi
callq 0x1fc930
jmp 0x1e6d8a
leaq -0x70(%rbp), %rax
movq %rax, -0x50(%rbp)
movq -0x38(%rbp), %rdi
callq 0xcc610
movq %rdx, -0x110(%rbp)
movq %rax, -0x108(%rbp)
jmp 0x1e6dab
movq -0x110(%rbp), %rax
movq -0x108(%rbp), %rcx
movq %rcx, -0x80(%rbp)
movq %rax, -0x78(%rbp)
movq -0x50(%rbp), %rax
leaq -0x90(%rbp), %rcx
movq %rcx, -0x20(%rbp)
movq %rax, -0x28(%rbp)
movq -0x20(%rbp), %rcx
movq -0x28(%rbp), %rax
movq %rcx, -0x10(%rbp)
movq %rax, -0x18(%rbp)
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rax
movq %rax, -0x8(%rbp)
movq -0x8(%rbp), %rdx
movl $0xdd, %esi
callq 0xcc8d0
jmp 0x1e6e00
movq -0x80(%rbp), %rsi
movq -0x78(%rbp), %rdx
movq -0x90(%rbp), %rcx
movq -0x88(%rbp), %r8
leaq -0xc0(%rbp), %rdi
callq 0x31ba00
jmp 0x1e6e24
jmp 0x1e6e26
movq -0x100(%rbp), %rdi
leaq -0xc0(%rbp), %rsi
callq 0x1e5d00
movq -0x100(%rbp), %rdi
movb $0x0, -0xcd(%rbp)
leaq 0x2b98c2(%rip), %rsi # 0x4a0710
leaq -0x12dfd5(%rip), %rdx # 0xb8e80
callq 0x36b70
jmp 0x1e6f3b
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0xc8(%rbp)
movl %eax, -0xcc(%rbp)
jmp 0x1e6e91
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0xc8(%rbp)
movl %eax, -0xcc(%rbp)
leaq -0xc0(%rbp), %rdi
callq 0x37610
testb $0x1, -0xcd(%rbp)
jne 0x1e6e9c
jmp 0x1e6ea8
movq -0x100(%rbp), %rdi
callq 0x37000
jmp 0x1e6f2f
movq -0xf8(%rbp), %rdi
addq $0x150, %rdi # imm = 0x150
movq -0xa0(%rbp), %rsi
leaq -0xa0(%rbp), %rdx
callq 0x1f15a0
movq -0xf8(%rbp), %rcx
movq %rax, -0xe0(%rbp)
movb %dl, -0xd8(%rbp)
movq -0xa0(%rbp), %rax
movq %rcx, 0x148(%rax)
leaq -0xf0(%rbp), %rdi
xorl %eax, %eax
movl %eax, %esi
callq 0x1f14e0
movq -0xa0(%rbp), %rdi
addq $0xc8, %rdi
leaq -0xf0(%rbp), %rsi
callq 0x1f15f0
leaq -0xf0(%rbp), %rdi
callq 0xded70
addq $0x110, %rsp # imm = 0x110
popq %rbp
retq
movq -0xc8(%rbp), %rdi
callq 0x36bd0
nopl (%rax,%rax)
| /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 (!queue.empty()) {
auto* const state = queue.front();
queue.pop();
if (visited.find(state) != visited.end()) continue;
visited.emplace(state);
result.emplace_back(state);
if (!state) continue;
auto next_states = state->transitions();
for (auto const& iter : next_states) {
auto* next_state = iter.second;
auto const* fsm = next_state->parent();
while (fsm && fsm != this) {
fsm = fsm->parent_fsm();
}
if (fsm == this) {
queue.emplace(next_state);
} else if (include_extra_state) {
result.emplace_back(next_state);
}
}
}
return result;
} | 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 -0x160(%rbp), %rdi
movb $0x0, -0x69(%rbp)
callq 0x1f1650
leaq -0xa8(%rbp), %rdi
callq 0x1f1670
movq -0x158(%rbp), %rax
addq $0x80, %rax
movq %rax, -0xb0(%rbp)
movq -0xb0(%rbp), %rdi
callq 0x1f1690
movq %rax, -0xb8(%rbp)
movq -0xb0(%rbp), %rdi
callq 0x1f16c0
movq %rax, -0xc0(%rbp)
leaq -0xb8(%rbp), %rdi
leaq -0xc0(%rbp), %rsi
callq 0x1f16f0
testb $0x1, %al
jne 0x1e6fee
jmp 0x1e7051
leaq -0xb8(%rbp), %rdi
callq 0x1f1720
movq %rax, -0xc8(%rbp)
movq -0xc8(%rbp), %rdi
addq $0x20, %rdi
callq 0x1f1780
movq %rax, -0xd0(%rbp)
leaq -0x68(%rbp), %rdi
leaq -0xd0(%rbp), %rsi
callq 0x1f1750
jmp 0x1e702a
jmp 0x1e702c
leaq -0xb8(%rbp), %rdi
callq 0x1f17a0
jmp 0x1e6fd5
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0xd8(%rbp)
movl %eax, -0xdc(%rbp)
jmp 0x1e7319
jmp 0x1e7053
leaq -0x68(%rbp), %rdi
callq 0x1f17d0
movb %al, -0x169(%rbp)
jmp 0x1e7064
movb -0x169(%rbp), %al
xorb $-0x1, %al
testb $0x1, %al
jne 0x1e7075
jmp 0x1e7301
leaq -0x68(%rbp), %rdi
callq 0x1f17f0
movq %rax, -0x178(%rbp)
jmp 0x1e7087
movq -0x178(%rbp), %rax
movq (%rax), %rax
movq %rax, -0xe8(%rbp)
leaq -0x68(%rbp), %rdi
callq 0x1f1810
jmp 0x1e70a3
leaq -0xa8(%rbp), %rdi
leaq -0xe8(%rbp), %rsi
callq 0x1f1860
movq %rax, -0x180(%rbp)
jmp 0x1e70bf
movq -0x180(%rbp), %rax
movq %rax, -0xf0(%rbp)
leaq -0xa8(%rbp), %rdi
callq 0x1f1890
movq %rax, -0xf8(%rbp)
leaq -0xf0(%rbp), %rdi
leaq -0xf8(%rbp), %rsi
callq 0x1f1830
testb $0x1, %al
jne 0x1e70f9
jmp 0x1e70fe
jmp 0x1e7053
leaq -0xa8(%rbp), %rdi
leaq -0xe8(%rbp), %rsi
callq 0x1f18c0
movb %dl, -0x189(%rbp)
movq %rax, -0x188(%rbp)
jmp 0x1e7120
movq -0x160(%rbp), %rdi
movb -0x189(%rbp), %al
movq -0x188(%rbp), %rcx
movq %rcx, -0x108(%rbp)
movb %al, -0x100(%rbp)
leaq -0xe8(%rbp), %rsi
callq 0x1f1900
jmp 0x1e714f
cmpq $0x0, -0xe8(%rbp)
jne 0x1e715e
jmp 0x1e7053
movq -0xe8(%rbp), %rdi
callq 0x1f1980
movq %rax, -0x198(%rbp)
jmp 0x1e7173
movq -0x198(%rbp), %rsi
leaq -0x120(%rbp), %rdi
callq 0x1f19a0
jmp 0x1e7188
leaq -0x120(%rbp), %rax
movq %rax, -0x128(%rbp)
movq -0x128(%rbp), %rdi
callq 0x1f1a90
movq %rax, -0x130(%rbp)
movq -0x128(%rbp), %rdi
callq 0x1f1ac0
movq %rax, -0x138(%rbp)
leaq -0x130(%rbp), %rdi
leaq -0x138(%rbp), %rsi
callq 0x1f1af0
testb $0x1, %al
jne 0x1e71d8
jmp 0x1e72f0
leaq -0x130(%rbp), %rdi
callq 0x1f1b30
movq %rax, -0x140(%rbp)
movq -0x140(%rbp), %rax
movq 0x8(%rax), %rax
movq %rax, -0x148(%rbp)
movq -0x148(%rbp), %rdi
callq 0x1f1b50
movq %rax, -0x1a0(%rbp)
jmp 0x1e7212
movq -0x1a0(%rbp), %rax
movq %rax, -0x150(%rbp)
xorl %eax, %eax
cmpq $0x0, -0x150(%rbp)
movb %al, -0x1a1(%rbp)
je 0x1e7249
movq -0x158(%rbp), %rax
cmpq %rax, -0x150(%rbp)
setne %al
movb %al, -0x1a1(%rbp)
movb -0x1a1(%rbp), %al
testb $0x1, %al
jne 0x1e7255
jmp 0x1e729a
movq -0x150(%rbp), %rdi
callq 0x1f1b70
movq %rax, -0x1b0(%rbp)
jmp 0x1e726a
movq -0x1b0(%rbp), %rax
movq %rax, -0x150(%rbp)
jmp 0x1e7220
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0xd8(%rbp)
movl %eax, -0xdc(%rbp)
leaq -0x120(%rbp), %rdi
callq 0x1f1c60
jmp 0x1e7319
movq -0x158(%rbp), %rax
cmpq %rax, -0x150(%rbp)
jne 0x1e72be
leaq -0x68(%rbp), %rdi
leaq -0x148(%rbp), %rsi
callq 0x1f1b90
jmp 0x1e72bc
jmp 0x1e72dd
testb $0x1, -0x11(%rbp)
je 0x1e72db
movq -0x160(%rbp), %rdi
leaq -0x148(%rbp), %rsi
callq 0x1f1bc0
jmp 0x1e72d9
jmp 0x1e72db
jmp 0x1e72dd
jmp 0x1e72df
leaq -0x130(%rbp), %rdi
callq 0x1f1c40
jmp 0x1e71bc
leaq -0x120(%rbp), %rdi
callq 0x1f1c60
jmp 0x1e7053
movb $0x1, -0x69(%rbp)
leaq -0xa8(%rbp), %rdi
callq 0x1f1cc0
testb $0x1, -0x69(%rbp)
jne 0x1e7348
jmp 0x1e733c
leaq -0xa8(%rbp), %rdi
callq 0x1f1cc0
movq -0x160(%rbp), %rdi
callq 0x1f1ce0
leaq -0x68(%rbp), %rdi
callq 0x1f1d40
jmp 0x1e7361
movq -0x160(%rbp), %rdi
callq 0x1f1ce0
leaq -0x68(%rbp), %rdi
callq 0x1f1d40
movq -0x168(%rbp), %rax
addq $0x1b0, %rsp # imm = 0x1B0
popq %rbp
retq
movq -0xd8(%rbp), %rdi
callq 0x36bd0
nopl (%rax)
| /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 UserException(::format("FSM {0} is empty", fsm_name()));
uint32_t width = std::max<uint32_t>(1u, std::ceil(std::log2(num_states)));
// define a enum type
std::map<std::string, uint64_t> raw_def;
uint64_t count = 0;
if (!start_state_)
throw UserException(::format("FSM {0} doesn't have a start state", fsm_name_));
// name mapping
std::unordered_map<FSMState*, std::string> state_name_mapping;
bool has_child_state = !child_fsms_.empty();
for (auto const& state : states) {
// notice that we need to do an additional mapping if it's a nested fsm
// to avoid any name conflicts
std::string state_name;
if (has_child_state) {
state_name = state->parent()->fsm_name() + "_" + state->name();
} else {
state_name = state->name();
}
raw_def.emplace(state_name, count++);
state_name_mapping.emplace(state, state_name);
// check states
state->check_outputs();
}
auto& enum_def = generator_->enum_(fsm_name_ + "_state", raw_def, width);
// add debug info
if (generator_->debug) {
std::unordered_set<const FSM*> visited;
for (auto const& state : states) {
const auto* fsm = state->parent();
if (visited.find(fsm) != visited.end()) continue;
auto fn_ln = fsm->fn_name_ln_;
for (auto const& [name, info] : fn_ln) {
auto* s = fsm->get_state(name).get();
if (state_name_mapping.find(state) == state_name_mapping.end()) {
throw UserException(::format(
"Unable to find state name {0} from FSM {1}. Is it a disconnected state?",
s->name(), fsm_name_));
}
auto state_name = state_name_mapping.at(state);
enum_def.add_debug_info(state_name, info);
}
}
}
// create two state variable, current_state, and next_state
auto current_state_name = generator_->get_unique_variable_name(fsm_name_, "current_state");
auto next_state_name = generator_->get_unique_variable_name(fsm_name_, "next_state");
auto& current_state = generator_->enum_var(current_state_name, enum_def.shared_from_this());
current_state_ = ¤t_state;
auto& next_state = generator_->enum_var(next_state_name, enum_def.shared_from_this());
if (generator_->debug) {
current_state.fn_name_ln.emplace_back(std::make_pair(__FILE__, __LINE__));
next_state.fn_name_ln.emplace_back(std::make_pair(__FILE__, __LINE__));
}
// sequential logic
// if (reset)
// current_state <= default_state
// else
// current_state <= next_state
auto seq = generator_->sequential();
bool reset_high = true;
seq->add_condition({EventEdgeType::Posedge, clk_});
if (reset_->type() == VarType::PortIO &&
((reset_->as<Port>()->active_high() && !(*reset_->as<Port>()->active_high())) ||
!reset_high_)) {
seq->add_condition({EventEdgeType::Negedge, reset_});
reset_high = false;
} else {
seq->add_condition({EventEdgeType::Posedge, reset_});
reset_high = true;
}
if (generator_->debug) {
seq->fn_name_ln.emplace_back(std::make_pair(__FILE__, __LINE__));
}
std::shared_ptr<Var> predicate;
if (reset_high) {
predicate = reset_;
} else {
predicate = (reset_->r_not()).as<Var>();
}
auto seq_if = std::make_shared<IfStmt>(predicate);
{
auto start_state_name = state_name_mapping.at(start_state_.get());
auto stmt =
current_state.assign(enum_def.get_enum(start_state_name), AssignmentType::NonBlocking);
seq_if->add_then_stmt(stmt);
if (generator_->debug) {
if (!start_state_debug_.first.empty()) {
stmt->fn_name_ln.emplace_back(start_state_debug_);
}
stmt->fn_name_ln.emplace_back(std::make_pair(__FILE__, __LINE__));
}
}
{
auto stmt =
current_state.assign(next_state.shared_from_this(), AssignmentType::NonBlocking);
if (generator_->debug) stmt->fn_name_ln.emplace_back(std::make_pair(__FILE__, __LINE__));
seq_if->add_else_stmt(stmt);
}
// add it to the seq
seq->add_stmt(seq_if);
if (generator_->debug) seq_if->fn_name_ln.emplace_back(std::make_pair(__FILE__, __LINE__));
// combination logic to compute next state
generate_state_transition(enum_def, current_state, next_state, state_name_mapping);
// now the output logic
// only generate output state block in moore machine. in mealy machine, the output
// is fused inside the state transition.
if (moore_) generate_output(enum_def, current_state, state_name_mapping);
// set to realized for all states
auto fsms = get_all_child_fsm();
for (auto& fsm : fsms) fsm->realized_ = true;
realized_ = true;
} | 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, -0x1a8(%rbp)
cmpq $0x0, -0x1a8(%rbp)
jne 0x1e75a5
movb $0x1, -0x1d5(%rbp)
movl $0x10, %edi
callq 0x36700
movq -0x810(%rbp), %rdi
movq %rax, -0x820(%rbp)
callq 0x1f1d80
movq %rax, -0x818(%rbp)
jmp 0x1e7401
movq -0x818(%rbp), %rax
leaq -0x1c8(%rbp), %rcx
movq %rcx, -0x138(%rbp)
leaq 0x14f981(%rip), %rcx # 0x336d9e
movq %rcx, -0x140(%rbp)
movq %rax, -0x148(%rbp)
movq -0x140(%rbp), %rdi
movq -0x148(%rbp), %rsi
callq 0x1ff4b0
movq %rdx, -0x830(%rbp)
movq %rax, -0x828(%rbp)
jmp 0x1e744e
movq -0x830(%rbp), %rax
movq -0x828(%rbp), %rcx
movq %rcx, -0x160(%rbp)
movq %rax, -0x158(%rbp)
leaq -0x160(%rbp), %rax
movq %rax, -0x150(%rbp)
movq -0x140(%rbp), %rdi
callq 0xcc610
movq %rdx, -0x840(%rbp)
movq %rax, -0x838(%rbp)
jmp 0x1e7494
movq -0x840(%rbp), %rax
movq -0x838(%rbp), %rcx
movq %rcx, -0x170(%rbp)
movq %rax, -0x168(%rbp)
movq -0x150(%rbp), %rax
leaq -0x180(%rbp), %rcx
movq %rcx, -0x70(%rbp)
movq %rax, -0x78(%rbp)
movq -0x70(%rbp), %rcx
movq -0x78(%rbp), %rax
movq %rcx, -0x60(%rbp)
movq %rax, -0x68(%rbp)
movq -0x60(%rbp), %rdi
movq -0x68(%rbp), %rax
movq %rax, -0x58(%rbp)
movq -0x58(%rbp), %rdx
movl $0xd, %esi
callq 0xcc8d0
jmp 0x1e74f2
movq -0x170(%rbp), %rsi
movq -0x168(%rbp), %rdx
movq -0x180(%rbp), %rcx
movq -0x178(%rbp), %r8
leaq -0x1c8(%rbp), %rdi
callq 0x31ba00
jmp 0x1e751c
jmp 0x1e751e
movq -0x820(%rbp), %rdi
leaq -0x1c8(%rbp), %rsi
callq 0x1e5d00
movq -0x820(%rbp), %rdi
movb $0x0, -0x1d5(%rbp)
leaq 0x2b91ca(%rip), %rsi # 0x4a0710
leaq -0x12e6cd(%rip), %rdx # 0xb8e80
callq 0x36b70
jmp 0x1e90d4
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x1d0(%rbp)
movl %eax, -0x1d4(%rbp)
jmp 0x1e7589
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x1d0(%rbp)
movl %eax, -0x1d4(%rbp)
leaq -0x1c8(%rbp), %rdi
callq 0x37610
testb $0x1, -0x1d5(%rbp)
jne 0x1e7594
jmp 0x1e75a0
movq -0x820(%rbp), %rdi
callq 0x37000
jmp 0x1e90bc
movl $0x1, -0x1e0(%rbp)
movq -0x1a8(%rbp), %rdi
callq 0x1f1d90
movsd %xmm0, -0x848(%rbp)
jmp 0x1e75c5
movsd -0x848(%rbp), %xmm0
callq 0x373b0
cvttsd2si %xmm0, %rax
movl %eax, -0x1e4(%rbp)
leaq -0x1e0(%rbp), %rdi
leaq -0x1e4(%rbp), %rsi
callq 0x1bca80
movq %rax, -0x850(%rbp)
jmp 0x1e75f9
movq -0x850(%rbp), %rax
movl (%rax), %eax
movl %eax, -0x1dc(%rbp)
leaq -0x218(%rbp), %rdi
callq 0x8e5b0
movq -0x810(%rbp), %rdi
movq $0x0, -0x220(%rbp)
addq $0xc8, %rdi
callq 0x1f1dd0
testb $0x1, %al
jne 0x1e780e
movb $0x1, -0x241(%rbp)
movl $0x10, %edi
callq 0x36700
movq %rax, %rcx
movq -0x810(%rbp), %rax
movq %rcx, -0x868(%rbp)
leaq -0x240(%rbp), %rcx
movq %rcx, -0xe8(%rbp)
leaq 0x14f73e(%rip), %rcx # 0x336daf
movq %rcx, -0xf0(%rbp)
movq %rax, -0xf8(%rbp)
movq -0xf0(%rbp), %rdi
movq -0xf8(%rbp), %rsi
callq 0x105600
movq %rdx, -0x860(%rbp)
movq %rax, -0x858(%rbp)
jmp 0x1e76a2
movq -0x860(%rbp), %rax
movq -0x858(%rbp), %rcx
movq %rcx, -0x110(%rbp)
movq %rax, -0x108(%rbp)
leaq -0x110(%rbp), %rax
movq %rax, -0x100(%rbp)
movq -0xf0(%rbp), %rdi
callq 0xcc610
movq %rdx, -0x878(%rbp)
movq %rax, -0x870(%rbp)
jmp 0x1e76e8
movq -0x878(%rbp), %rax
movq -0x870(%rbp), %rcx
movq %rcx, -0x120(%rbp)
movq %rax, -0x118(%rbp)
movq -0x100(%rbp), %rax
leaq -0x130(%rbp), %rcx
movq %rcx, -0x48(%rbp)
movq %rax, -0x50(%rbp)
movq -0x48(%rbp), %rcx
movq -0x50(%rbp), %rax
movq %rcx, -0x38(%rbp)
movq %rax, -0x40(%rbp)
movq -0x38(%rbp), %rdi
movq -0x40(%rbp), %rax
movq %rax, -0x30(%rbp)
movq -0x30(%rbp), %rdx
movl $0xd, %esi
callq 0xcc8d0
movq -0x120(%rbp), %rsi
movq -0x118(%rbp), %rdx
movq -0x130(%rbp), %rcx
movq -0x128(%rbp), %r8
leaq -0x240(%rbp), %rdi
callq 0x31ba00
jmp 0x1e776e
jmp 0x1e7770
movq -0x868(%rbp), %rdi
leaq -0x240(%rbp), %rsi
callq 0x1e5d00
movq -0x868(%rbp), %rdi
movb $0x0, -0x241(%rbp)
leaq 0x2b8f78(%rip), %rsi # 0x4a0710
leaq -0x12e91f(%rip), %rdx # 0xb8e80
callq 0x36b70
jmp 0x1e90d4
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x1d0(%rbp)
movl %eax, -0x1d4(%rbp)
jmp 0x1e90bc
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x1d0(%rbp)
movl %eax, -0x1d4(%rbp)
jmp 0x1e77f2
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x1d0(%rbp)
movl %eax, -0x1d4(%rbp)
leaq -0x240(%rbp), %rdi
callq 0x37610
testb $0x1, -0x241(%rbp)
jne 0x1e77fd
jmp 0x1e7809
movq -0x868(%rbp), %rdi
callq 0x37000
jmp 0x1e90b0
leaq -0x280(%rbp), %rdi
callq 0x1f1df0
movq -0x810(%rbp), %rdi
addq $0x150, %rdi # imm = 0x150
callq 0x1f1e10
xorb $-0x1, %al
andb $0x1, %al
movb %al, -0x281(%rbp)
leaq -0x1a0(%rbp), %rax
movq %rax, -0x290(%rbp)
movq -0x290(%rbp), %rdi
callq 0x1f1e30
movq %rax, -0x298(%rbp)
movq -0x290(%rbp), %rdi
callq 0x1f1e60
movq %rax, -0x2a0(%rbp)
leaq -0x298(%rbp), %rdi
leaq -0x2a0(%rbp), %rsi
callq 0x1f1e90
testb $0x1, %al
jne 0x1e7887
jmp 0x1e7aa6
leaq -0x298(%rbp), %rdi
callq 0x1f1ed0
movq %rax, -0x2a8(%rbp)
leaq -0x2c8(%rbp), %rdi
callq 0x36620
testb $0x1, -0x281(%rbp)
je 0x1e7997
movq -0x2a8(%rbp), %rax
movq (%rax), %rdi
callq 0x1f1b50
movq %rax, -0x880(%rbp)
jmp 0x1e78cb
movq -0x880(%rbp), %rdi
callq 0x1f1d80
movq %rax, -0x888(%rbp)
jmp 0x1e78e0
movq -0x888(%rbp), %rsi
leaq 0x14850c(%rip), %rdx # 0x32fdfa
leaq -0x308(%rbp), %rdi
callq 0x83610
jmp 0x1e78fc
movq -0x2a8(%rbp), %rax
movq (%rax), %rdi
callq 0x1f1ef0
movq %rax, -0x890(%rbp)
jmp 0x1e7914
movq -0x890(%rbp), %rdx
leaq -0x2e8(%rbp), %rdi
leaq -0x308(%rbp), %rsi
callq 0x82f20
jmp 0x1e7930
leaq -0x2c8(%rbp), %rdi
leaq -0x2e8(%rbp), %rsi
callq 0x369a0
leaq -0x2e8(%rbp), %rdi
callq 0x37610
leaq -0x308(%rbp), %rdi
callq 0x37610
jmp 0x1e79c6
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x1d0(%rbp)
movl %eax, -0x1d4(%rbp)
jmp 0x1e7a95
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x1d0(%rbp)
movl %eax, -0x1d4(%rbp)
leaq -0x308(%rbp), %rdi
callq 0x37610
jmp 0x1e7a95
movq -0x2a8(%rbp), %rax
movq (%rax), %rdi
callq 0x1f1ef0
movq %rax, -0x898(%rbp)
jmp 0x1e79af
movq -0x898(%rbp), %rsi
leaq -0x2c8(%rbp), %rdi
callq 0x374b0
jmp 0x1e79c4
jmp 0x1e79c6
movq -0x220(%rbp), %rax
movq %rax, %rcx
incq %rcx
movq %rcx, -0x220(%rbp)
movq %rax, -0x310(%rbp)
leaq -0x218(%rbp), %rdi
leaq -0x2c8(%rbp), %rsi
leaq -0x310(%rbp), %rdx
callq 0x1f1f10
movb %dl, -0x8a1(%rbp)
movq %rax, -0x8a0(%rbp)
jmp 0x1e7a0a
movb -0x8a1(%rbp), %al
movq -0x8a0(%rbp), %rcx
movq %rcx, -0x320(%rbp)
movb %al, -0x318(%rbp)
movq -0x2a8(%rbp), %rsi
leaq -0x280(%rbp), %rdi
leaq -0x2c8(%rbp), %rdx
callq 0x1f1f60
movb %dl, -0x8b1(%rbp)
movq %rax, -0x8b0(%rbp)
jmp 0x1e7a4d
movb -0x8b1(%rbp), %al
movq -0x8b0(%rbp), %rcx
movq %rcx, -0x330(%rbp)
movb %al, -0x328(%rbp)
movq -0x2a8(%rbp), %rax
movq (%rax), %rdi
callq 0x1e90e0
jmp 0x1e7a78
leaq -0x2c8(%rbp), %rdi
callq 0x37610
leaq -0x298(%rbp), %rdi
callq 0x1f1fb0
jmp 0x1e786b
leaq -0x2c8(%rbp), %rdi
callq 0x37610
jmp 0x1e90a4
movq -0x810(%rbp), %rsi
movq 0x20(%rsi), %rax
movq %rax, -0x8c0(%rbp)
leaq 0x14f362(%rip), %rdx # 0x336e21
leaq -0x358(%rbp), %rdi
callq 0x83610
jmp 0x1e7acd
movq -0x8c0(%rbp), %rdi
movl -0x1dc(%rbp), %ecx
leaq -0x358(%rbp), %rsi
leaq -0x218(%rbp), %rdx
callq 0xaa300
movq %rax, -0x8c8(%rbp)
jmp 0x1e7af6
leaq -0x358(%rbp), %rdi
callq 0x37610
movq -0x8c8(%rbp), %rcx
movq -0x810(%rbp), %rax
movq %rcx, -0x338(%rbp)
movq 0x20(%rax), %rax
testb $0x1, 0xbc(%rax)
je 0x1e8060
leaq -0x390(%rbp), %rdi
callq 0x1f1fd0
leaq -0x1a0(%rbp), %rax
movq %rax, -0x398(%rbp)
movq -0x398(%rbp), %rdi
callq 0x1f1e30
movq %rax, -0x3a0(%rbp)
movq -0x398(%rbp), %rdi
callq 0x1f1e60
movq %rax, -0x3a8(%rbp)
leaq -0x3a0(%rbp), %rdi
leaq -0x3a8(%rbp), %rsi
callq 0x1f1e90
testb $0x1, %al
jne 0x1e7b84
jmp 0x1e8041
leaq -0x3a0(%rbp), %rdi
callq 0x1f1ed0
movq %rax, -0x3b0(%rbp)
movq -0x3b0(%rbp), %rax
movq (%rax), %rdi
callq 0x1f1b50
movq %rax, -0x8d0(%rbp)
jmp 0x1e7baf
movq -0x8d0(%rbp), %rax
movq %rax, -0x3b8(%rbp)
leaq -0x390(%rbp), %rdi
leaq -0x3b8(%rbp), %rsi
callq 0x1f2020
movq %rax, -0x8d8(%rbp)
jmp 0x1e7bd9
movq -0x8d8(%rbp), %rax
movq %rax, -0x3c0(%rbp)
leaq -0x390(%rbp), %rdi
callq 0x1f2050
movq %rax, -0x3c8(%rbp)
leaq -0x3c0(%rbp), %rdi
leaq -0x3c8(%rbp), %rsi
callq 0x1f1ff0
testb $0x1, %al
jne 0x1e7c13
jmp 0x1e7c69
jmp 0x1e8022
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x1d0(%rbp)
movl %eax, -0x1d4(%rbp)
jmp 0x1e90a4
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x1d0(%rbp)
movl %eax, -0x1d4(%rbp)
leaq -0x358(%rbp), %rdi
callq 0x37610
jmp 0x1e90a4
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x1d0(%rbp)
movl %eax, -0x1d4(%rbp)
jmp 0x1e804f
movq -0x3b8(%rbp), %rsi
addq $0x108, %rsi # imm = 0x108
leaq -0x400(%rbp), %rdi
callq 0x1f2080
jmp 0x1e7c85
leaq -0x400(%rbp), %rax
movq %rax, -0x408(%rbp)
movq -0x408(%rbp), %rdi
callq 0x1f20b0
movq %rax, -0x410(%rbp)
movq -0x408(%rbp), %rdi
callq 0xbcc30
movq %rax, -0x418(%rbp)
leaq -0x410(%rbp), %rdi
leaq -0x418(%rbp), %rsi
callq 0xbcbd0
testb $0x1, %al
jne 0x1e7cd5
jmp 0x1e8016
leaq -0x410(%rbp), %rdi
callq 0x1f20e0
movq %rax, -0x420(%rbp)
movq -0x420(%rbp), %rdi
callq 0xeb560
movq %rax, -0x428(%rbp)
movq -0x420(%rbp), %rdi
callq 0x1f2110
movq %rax, -0x430(%rbp)
movq -0x3b8(%rbp), %rsi
movq -0x428(%rbp), %rdx
leaq -0x448(%rbp), %rdi
callq 0x1e9900
jmp 0x1e7d2a
leaq -0x448(%rbp), %rdi
movq %rdi, -0x8f0(%rbp)
callq 0x1f1780
movq -0x8f0(%rbp), %rdi
movq %rax, -0x8e8(%rbp)
callq 0xded70
movq -0x8e8(%rbp), %rax
movq %rax, -0x438(%rbp)
movq -0x3b0(%rbp), %rsi
leaq -0x280(%rbp), %rdi
callq 0x1f2160
movq %rax, -0x8e0(%rbp)
jmp 0x1e7d7a
movq -0x8e0(%rbp), %rax
movq %rax, -0x450(%rbp)
leaq -0x280(%rbp), %rdi
callq 0x1f2190
movq %rax, -0x458(%rbp)
leaq -0x450(%rbp), %rdi
leaq -0x458(%rbp), %rsi
callq 0x1f2130
testb $0x1, %al
jne 0x1e7db7
jmp 0x1e7f8c
movb $0x1, -0x479(%rbp)
movl $0x10, %edi
callq 0x36700
movq %rax, -0x900(%rbp)
movq -0x438(%rbp), %rdi
callq 0x1f1ef0
movq %rax, -0x8f8(%rbp)
jmp 0x1e7de4
movq -0x810(%rbp), %rax
movq -0x8f8(%rbp), %rcx
leaq -0x478(%rbp), %rdx
movq %rdx, -0x80(%rbp)
leaq 0x14efce(%rip), %rdx # 0x336dd2
movq %rdx, -0x88(%rbp)
movq %rcx, -0x90(%rbp)
movq %rax, -0x98(%rbp)
movq -0x88(%rbp), %rsi
movq -0x90(%rbp), %rdx
movq -0x98(%rbp), %rcx
leaq -0xc0(%rbp), %rdi
callq 0x200db0
jmp 0x1e7e3c
leaq -0xc0(%rbp), %rax
movq %rax, -0xa0(%rbp)
movq -0x88(%rbp), %rdi
callq 0xcc610
movq %rdx, -0x910(%rbp)
movq %rax, -0x908(%rbp)
jmp 0x1e7e66
movq -0x910(%rbp), %rax
movq -0x908(%rbp), %rcx
movq %rcx, -0xd0(%rbp)
movq %rax, -0xc8(%rbp)
movq -0xa0(%rbp), %rax
leaq -0xe0(%rbp), %rcx
movq %rcx, -0x20(%rbp)
movq %rax, -0x28(%rbp)
movq -0x20(%rbp), %rcx
movq -0x28(%rbp), %rax
movq %rcx, -0x10(%rbp)
movq %rax, -0x18(%rbp)
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rax
movq %rax, -0x8(%rbp)
movq -0x8(%rbp), %rdx
movl $0xdd, %esi
callq 0xcc8d0
movq -0xd0(%rbp), %rsi
movq -0xc8(%rbp), %rdx
movq -0xe0(%rbp), %rcx
movq -0xd8(%rbp), %r8
leaq -0x478(%rbp), %rdi
callq 0x31ba00
jmp 0x1e7eec
jmp 0x1e7eee
movq -0x900(%rbp), %rdi
leaq -0x478(%rbp), %rsi
callq 0x1e5d00
movq -0x900(%rbp), %rdi
movb $0x0, -0x479(%rbp)
leaq 0x2b87fa(%rip), %rsi # 0x4a0710
leaq -0x12f09d(%rip), %rdx # 0xb8e80
callq 0x36b70
jmp 0x1e90d4
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x1d0(%rbp)
movl %eax, -0x1d4(%rbp)
jmp 0x1e8033
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x1d0(%rbp)
movl %eax, -0x1d4(%rbp)
jmp 0x1e7f70
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x1d0(%rbp)
movl %eax, -0x1d4(%rbp)
leaq -0x478(%rbp), %rdi
callq 0x37610
testb $0x1, -0x479(%rbp)
jne 0x1e7f7b
jmp 0x1e7f87
movq -0x900(%rbp), %rdi
callq 0x37000
jmp 0x1e8033
movq -0x3b0(%rbp), %rsi
leaq -0x280(%rbp), %rdi
callq 0x1f21c0
movq %rax, -0x918(%rbp)
jmp 0x1e7fa8
movq -0x918(%rbp), %rsi
leaq -0x4a0(%rbp), %rdi
callq 0x36230
jmp 0x1e7fbd
movq -0x338(%rbp), %rdi
movq -0x430(%rbp), %rdx
leaq -0x4a0(%rbp), %rsi
callq 0x11ec10
jmp 0x1e7fd9
leaq -0x4a0(%rbp), %rdi
callq 0x37610
leaq -0x410(%rbp), %rdi
callq 0x1f21f0
jmp 0x1e7cb9
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x1d0(%rbp)
movl %eax, -0x1d4(%rbp)
leaq -0x4a0(%rbp), %rdi
callq 0x37610
jmp 0x1e8033
leaq -0x400(%rbp), %rdi
callq 0xb9b40
leaq -0x3a0(%rbp), %rdi
callq 0x1f1fb0
jmp 0x1e7b68
leaq -0x400(%rbp), %rdi
callq 0xb9b40
jmp 0x1e804f
leaq -0x390(%rbp), %rdi
callq 0x1f2220
jmp 0x1e8060
leaq -0x390(%rbp), %rdi
callq 0x1f2220
jmp 0x1e90a4
movq -0x810(%rbp), %rax
movq 0x20(%rax), %rcx
movq %rcx, -0x930(%rbp)
movq %rax, -0x928(%rbp)
leaq -0x4e1(%rbp), %rdi
movq %rdi, -0x920(%rbp)
callq 0x37190
movq -0x920(%rbp), %rdx
leaq 0x14ed80(%rip), %rsi # 0x336e1a
leaq -0x4e0(%rbp), %rdi
callq 0x469d0
jmp 0x1e80a8
movq -0x928(%rbp), %rdx
movq -0x930(%rbp), %rsi
leaq -0x4c0(%rbp), %rdi
leaq -0x4e0(%rbp), %rcx
callq 0xaea10
jmp 0x1e80cb
leaq -0x4e0(%rbp), %rdi
callq 0x37610
leaq -0x4e1(%rbp), %rdi
callq 0x375e0
movq -0x810(%rbp), %rax
movq 0x20(%rax), %rcx
movq %rcx, -0x948(%rbp)
movq %rax, -0x940(%rbp)
leaq -0x529(%rbp), %rdi
movq %rdi, -0x938(%rbp)
callq 0x37190
movq -0x938(%rbp), %rdx
leaq 0x14ed0b(%rip), %rsi # 0x336e28
leaq -0x528(%rbp), %rdi
callq 0x469d0
jmp 0x1e812b
movq -0x940(%rbp), %rdx
movq -0x948(%rbp), %rsi
leaq -0x508(%rbp), %rdi
leaq -0x528(%rbp), %rcx
callq 0xaea10
jmp 0x1e814e
leaq -0x528(%rbp), %rdi
callq 0x37610
leaq -0x529(%rbp), %rdi
callq 0x375e0
movq -0x810(%rbp), %rax
movq 0x20(%rax), %rax
movq %rax, -0x950(%rbp)
movq -0x338(%rbp), %rsi
leaq -0x548(%rbp), %rdi
callq 0xba450
jmp 0x1e818d
movq -0x950(%rbp), %rdi
leaq -0x4c0(%rbp), %rsi
leaq -0x548(%rbp), %rdx
callq 0xaa3c0
movq %rax, -0x958(%rbp)
jmp 0x1e81b0
leaq -0x548(%rbp), %rdi
callq 0x4abf0
movq -0x958(%rbp), %rcx
movq -0x810(%rbp), %rax
movq %rcx, -0x538(%rbp)
movq -0x538(%rbp), %rcx
movq %rcx, 0x100(%rax)
movq 0x20(%rax), %rax
movq %rax, -0x960(%rbp)
movq -0x338(%rbp), %rsi
leaq -0x560(%rbp), %rdi
callq 0xba450
jmp 0x1e81ff
movq -0x960(%rbp), %rdi
leaq -0x508(%rbp), %rsi
leaq -0x560(%rbp), %rdx
callq 0xaa3c0
movq %rax, -0x968(%rbp)
jmp 0x1e8222
leaq -0x560(%rbp), %rdi
callq 0x4abf0
movq -0x968(%rbp), %rcx
movq -0x810(%rbp), %rax
movq %rcx, -0x550(%rbp)
movq 0x20(%rax), %rax
testb $0x1, 0xbc(%rax)
je 0x1e844a
movq -0x538(%rbp), %rax
addq $0x8, %rax
movq %rax, -0x980(%rbp)
movl $0x95, -0x574(%rbp)
leaq 0x14ebbc(%rip), %rdi # 0x336e33
leaq -0x574(%rbp), %rsi
callq 0x1f2240
movl %edx, -0x974(%rbp)
movq %rax, -0x970(%rbp)
jmp 0x1e8292
movq -0x980(%rbp), %rdi
movl -0x974(%rbp), %eax
movq -0x970(%rbp), %rcx
movq %rcx, -0x588(%rbp)
movl %eax, -0x580(%rbp)
movl -0x580(%rbp), %eax
movl %eax, -0x568(%rbp)
movq -0x588(%rbp), %rax
movq %rax, -0x570(%rbp)
leaq -0x570(%rbp), %rsi
callq 0x127810
jmp 0x1e82db
movq -0x550(%rbp), %rax
addq $0x8, %rax
movq %rax, -0x998(%rbp)
movl $0x96, -0x59c(%rbp)
leaq 0x14eb35(%rip), %rdi # 0x336e33
leaq -0x59c(%rbp), %rsi
callq 0x1f2240
movl %edx, -0x98c(%rbp)
movq %rax, -0x988(%rbp)
jmp 0x1e8319
movq -0x998(%rbp), %rdi
movl -0x98c(%rbp), %eax
movq -0x988(%rbp), %rcx
movq %rcx, -0x5b0(%rbp)
movl %eax, -0x5a8(%rbp)
movl -0x5a8(%rbp), %eax
movl %eax, -0x590(%rbp)
movq -0x5b0(%rbp), %rax
movq %rax, -0x598(%rbp)
leaq -0x598(%rbp), %rsi
callq 0x127810
jmp 0x1e8362
jmp 0x1e844a
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x1d0(%rbp)
movl %eax, -0x1d4(%rbp)
jmp 0x1e8399
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x1d0(%rbp)
movl %eax, -0x1d4(%rbp)
leaq -0x4e0(%rbp), %rdi
callq 0x37610
leaq -0x4e1(%rbp), %rdi
callq 0x375e0
jmp 0x1e90a4
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x1d0(%rbp)
movl %eax, -0x1d4(%rbp)
jmp 0x1e83dc
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x1d0(%rbp)
movl %eax, -0x1d4(%rbp)
leaq -0x528(%rbp), %rdi
callq 0x37610
leaq -0x529(%rbp), %rdi
callq 0x375e0
jmp 0x1e9098
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x1d0(%rbp)
movl %eax, -0x1d4(%rbp)
jmp 0x1e908c
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x1d0(%rbp)
movl %eax, -0x1d4(%rbp)
leaq -0x548(%rbp), %rdi
callq 0x4abf0
jmp 0x1e908c
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x1d0(%rbp)
movl %eax, -0x1d4(%rbp)
leaq -0x560(%rbp), %rdi
callq 0x4abf0
jmp 0x1e908c
movq -0x810(%rbp), %rax
movq 0x20(%rax), %rsi
leaq -0x5c0(%rbp), %rdi
callq 0xb1770
jmp 0x1e8463
movb $0x1, -0x5c1(%rbp)
leaq -0x5c0(%rbp), %rdi
callq 0x47950
movq -0x810(%rbp), %rdx
movq %rax, -0x9a0(%rbp)
movl $0x0, -0x5e4(%rbp)
addq $0x60, %rdx
leaq -0x5e0(%rbp), %rdi
leaq -0x5e4(%rbp), %rsi
callq 0x1f2280
jmp 0x1e84a7
movq -0x9a0(%rbp), %rdi
leaq -0x5e0(%rbp), %rsi
callq 0x15f8b0
jmp 0x1e84bc
leaq -0x5e0(%rbp), %rdi
callq 0x479b0
movq -0x810(%rbp), %rdi
addq $0x70, %rdi
callq 0xb9d10
movq %rax, %rdi
movb $0x0, -0x5f9(%rbp)
movb $0x0, -0x611(%rbp)
callq 0xbce10
movl %eax, -0x9a4(%rbp)
jmp 0x1e84f6
movl -0x9a4(%rbp), %ecx
xorl %eax, %eax
cmpl $0x4, %ecx
movb %al, -0x9a5(%rbp)
jne 0x1e8602
movq -0x810(%rbp), %rdi
addq $0x70, %rdi
callq 0xb9d10
movq %rax, %rsi
leaq -0x5f8(%rbp), %rdi
callq 0x1f22c0
jmp 0x1e852e
movb $0x1, -0x5f9(%rbp)
leaq -0x5f8(%rbp), %rdi
callq 0xb9690
movq %rax, %rdi
callq 0x1f2310
movw %ax, -0x9a8(%rbp)
jmp 0x1e8552
movw -0x9a8(%rbp), %ax
movw %ax, -0x5e6(%rbp)
leaq -0x5e6(%rbp), %rdi
callq 0x1f2330
testb $0x1, %al
jne 0x1e8572
jmp 0x1e85e1
movq -0x810(%rbp), %rdi
addq $0x70, %rdi
callq 0xb9d10
movq %rax, %rsi
leaq -0x610(%rbp), %rdi
callq 0x1f22c0
jmp 0x1e8593
movb $0x1, -0x611(%rbp)
leaq -0x610(%rbp), %rdi
callq 0xb9690
movq %rax, %rdi
callq 0x1f2310
movw %ax, -0x9aa(%rbp)
jmp 0x1e85b7
movw -0x9aa(%rbp), %ax
movw %ax, -0x5fb(%rbp)
leaq -0x5fb(%rbp), %rdi
callq 0x1f2350
movq %rax, %rcx
movb $0x1, %al
testb $0x1, (%rcx)
movb %al, -0x9ab(%rbp)
je 0x1e85f6
movq -0x810(%rbp), %rax
movb 0x142(%rax), %al
xorb $-0x1, %al
movb %al, -0x9ab(%rbp)
movb -0x9ab(%rbp), %al
movb %al, -0x9a5(%rbp)
movb -0x9a5(%rbp), %al
movb %al, -0x9ac(%rbp)
testb $0x1, -0x611(%rbp)
jne 0x1e8619
jmp 0x1e8625
leaq -0x610(%rbp), %rdi
callq 0xb96b0
testb $0x1, -0x5f9(%rbp)
jne 0x1e8630
jmp 0x1e863c
leaq -0x5f8(%rbp), %rdi
callq 0xb96b0
movb -0x9ac(%rbp), %al
testb $0x1, %al
jne 0x1e864b
jmp 0x1e876d
leaq -0x5c0(%rbp), %rdi
callq 0x47950
movq -0x810(%rbp), %rdx
movq %rax, -0x9b8(%rbp)
movl $0x1, -0x634(%rbp)
addq $0x70, %rdx
leaq -0x630(%rbp), %rdi
leaq -0x634(%rbp), %rsi
callq 0x1f2280
jmp 0x1e8688
movq -0x9b8(%rbp), %rdi
leaq -0x630(%rbp), %rsi
callq 0x15f8b0
jmp 0x1e869d
leaq -0x630(%rbp), %rdi
callq 0x479b0
movb $0x0, -0x5c1(%rbp)
jmp 0x1e87f7
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x1d0(%rbp)
movl %eax, -0x1d4(%rbp)
jmp 0x1e9080
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x1d0(%rbp)
movl %eax, -0x1d4(%rbp)
leaq -0x5e0(%rbp), %rdi
callq 0x479b0
jmp 0x1e9080
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x1d0(%rbp)
movl %eax, -0x1d4(%rbp)
jmp 0x1e872e
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x1d0(%rbp)
movl %eax, -0x1d4(%rbp)
testb $0x1, -0x611(%rbp)
jne 0x1e8720
jmp 0x1e872c
leaq -0x610(%rbp), %rdi
callq 0xb96b0
jmp 0x1e872e
testb $0x1, -0x5f9(%rbp)
jne 0x1e8739
jmp 0x1e8745
leaq -0x5f8(%rbp), %rdi
callq 0xb96b0
jmp 0x1e9080
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x1d0(%rbp)
movl %eax, -0x1d4(%rbp)
leaq -0x630(%rbp), %rdi
callq 0x479b0
jmp 0x1e9080
leaq -0x5c0(%rbp), %rdi
callq 0x47950
movq -0x810(%rbp), %rdx
movq %rax, -0x9c0(%rbp)
movl $0x0, -0x654(%rbp)
addq $0x70, %rdx
leaq -0x650(%rbp), %rdi
leaq -0x654(%rbp), %rsi
callq 0x1f2280
jmp 0x1e87aa
movq -0x9c0(%rbp), %rdi
leaq -0x650(%rbp), %rsi
callq 0x15f8b0
jmp 0x1e87bf
leaq -0x650(%rbp), %rdi
callq 0x479b0
movb $0x1, -0x5c1(%rbp)
jmp 0x1e87f7
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x1d0(%rbp)
movl %eax, -0x1d4(%rbp)
leaq -0x650(%rbp), %rdi
callq 0x479b0
jmp 0x1e9080
movq -0x810(%rbp), %rax
movq 0x20(%rax), %rax
testb $0x1, 0xbc(%rax)
je 0x1e889d
leaq -0x5c0(%rbp), %rdi
callq 0x47950
addq $0x8, %rax
movq %rax, -0x9d8(%rbp)
movl $0xab, -0x66c(%rbp)
leaq 0x14e5fc(%rip), %rdi # 0x336e33
leaq -0x66c(%rbp), %rsi
callq 0x1f2240
movl %edx, -0x9cc(%rbp)
movq %rax, -0x9c8(%rbp)
jmp 0x1e8852
movq -0x9d8(%rbp), %rdi
movl -0x9cc(%rbp), %eax
movq -0x9c8(%rbp), %rcx
movq %rcx, -0x680(%rbp)
movl %eax, -0x678(%rbp)
movl -0x678(%rbp), %eax
movl %eax, -0x660(%rbp)
movq -0x680(%rbp), %rax
movq %rax, -0x668(%rbp)
leaq -0x668(%rbp), %rsi
callq 0x127810
jmp 0x1e889b
jmp 0x1e889d
leaq -0x690(%rbp), %rdi
callq 0xc6680
testb $0x1, -0x5c1(%rbp)
je 0x1e88cb
movq -0x810(%rbp), %rsi
addq $0x70, %rsi
leaq -0x690(%rbp), %rdi
callq 0x167200
jmp 0x1e8939
movq -0x810(%rbp), %rdi
addq $0x70, %rdi
callq 0xb9d10
movq %rax, %rdi
callq 0x108d40
movq %rax, -0x9e0(%rbp)
jmp 0x1e88ec
movq -0x9e0(%rbp), %rsi
leaq -0x6a0(%rbp), %rdi
callq 0x127620
jmp 0x1e8901
leaq -0x690(%rbp), %rdi
leaq -0x6a0(%rbp), %rsi
callq 0x1276b0
leaq -0x6a0(%rbp), %rdi
callq 0x478f0
jmp 0x1e8939
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x1d0(%rbp)
movl %eax, -0x1d4(%rbp)
jmp 0x1e9074
leaq -0x6b0(%rbp), %rdi
leaq -0x690(%rbp), %rsi
callq 0x1f2370
jmp 0x1e894e
movq -0x810(%rbp), %rdi
addq $0xc8, %rdi
callq 0x1f1780
movq %rax, -0x6d8(%rbp)
leaq -0x280(%rbp), %rdi
leaq -0x6d8(%rbp), %rsi
callq 0x1f21c0
movq %rax, -0x9e8(%rbp)
jmp 0x1e8984
movq -0x9e8(%rbp), %rsi
leaq -0x6d0(%rbp), %rdi
callq 0x36230
jmp 0x1e8999
movq -0x538(%rbp), %rax
movq %rax, -0x9f0(%rbp)
movq -0x338(%rbp), %rsi
leaq -0x708(%rbp), %rdi
leaq -0x6d0(%rbp), %rdx
callq 0x11e120
jmp 0x1e89c3
leaq -0x6f8(%rbp), %rdi
movq %rdi, -0x9f8(%rbp)
leaq -0x708(%rbp), %rsi
callq 0x1f23e0
movq -0x9f0(%rbp), %rsi
movq -0x9f8(%rbp), %rdx
leaq -0x6e8(%rbp), %rdi
movl $0x1, %ecx
callq 0x1121e0
jmp 0x1e89fe
leaq -0x6f8(%rbp), %rdi
callq 0x478f0
leaq -0x708(%rbp), %rdi
callq 0xdc650
leaq -0x6b0(%rbp), %rdi
callq 0x47b20
movq %rax, -0xa08(%rbp)
leaq -0x718(%rbp), %rdi
movq %rdi, -0xa00(%rbp)
leaq -0x6e8(%rbp), %rsi
callq 0xbc690
movq -0xa08(%rbp), %rdi
movq -0xa00(%rbp), %rsi
callq 0x15d710
jmp 0x1e8a58
leaq -0x718(%rbp), %rdi
callq 0x47340
movq -0x810(%rbp), %rax
movq 0x20(%rax), %rax
testb $0x1, 0xbc(%rax)
je 0x1e8be9
movq -0x810(%rbp), %rdi
addq $0xd8, %rdi
callq 0x36520
testb $0x1, %al
jne 0x1e8b5b
leaq -0x6e8(%rbp), %rdi
callq 0xbc650
movq -0x810(%rbp), %rsi
movq %rax, %rdi
addq $0x8, %rdi
addq $0xd8, %rsi
callq 0x1f2410
jmp 0x1e8abf
jmp 0x1e8b5b
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x1d0(%rbp)
movl %eax, -0x1d4(%rbp)
jmp 0x1e9068
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x1d0(%rbp)
movl %eax, -0x1d4(%rbp)
jmp 0x1e8d07
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x1d0(%rbp)
movl %eax, -0x1d4(%rbp)
leaq -0x6f8(%rbp), %rdi
callq 0x478f0
leaq -0x708(%rbp), %rdi
callq 0xdc650
jmp 0x1e8d07
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x1d0(%rbp)
movl %eax, -0x1d4(%rbp)
leaq -0x718(%rbp), %rdi
callq 0x47340
jmp 0x1e8cfb
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x1d0(%rbp)
movl %eax, -0x1d4(%rbp)
jmp 0x1e8cfb
leaq -0x6e8(%rbp), %rdi
callq 0xbc650
addq $0x8, %rax
movq %rax, -0xa20(%rbp)
movl $0xbf, -0x72c(%rbp)
leaq 0x14e2b0(%rip), %rdi # 0x336e33
leaq -0x72c(%rbp), %rsi
callq 0x1f2240
movl %edx, -0xa14(%rbp)
movq %rax, -0xa10(%rbp)
jmp 0x1e8b9e
movq -0xa20(%rbp), %rdi
movl -0xa14(%rbp), %eax
movq -0xa10(%rbp), %rcx
movq %rcx, -0x740(%rbp)
movl %eax, -0x738(%rbp)
movl -0x738(%rbp), %eax
movl %eax, -0x720(%rbp)
movq -0x740(%rbp), %rax
movq %rax, -0x728(%rbp)
leaq -0x728(%rbp), %rsi
callq 0x127810
jmp 0x1e8be7
jmp 0x1e8be9
leaq -0x6e8(%rbp), %rdi
callq 0x47360
leaq -0x6d0(%rbp), %rdi
callq 0x37610
movq -0x538(%rbp), %rax
movq %rax, -0xa28(%rbp)
movq -0x550(%rbp), %rsi
addq $0x68, %rsi
leaq -0x760(%rbp), %rdi
callq 0x47890
jmp 0x1e8c28
movq -0xa28(%rbp), %rsi
leaq -0x750(%rbp), %rdi
leaq -0x760(%rbp), %rdx
movl $0x1, %ecx
callq 0x1121e0
jmp 0x1e8c49
leaq -0x760(%rbp), %rdi
callq 0x478f0
movq -0x810(%rbp), %rax
movq 0x20(%rax), %rax
testb $0x1, 0xbc(%rax)
je 0x1e8d52
leaq -0x750(%rbp), %rdi
callq 0xbc650
addq $0x8, %rax
movq %rax, -0xa40(%rbp)
movl $0xc5, -0x774(%rbp)
leaq 0x14e19e(%rip), %rdi # 0x336e33
leaq -0x774(%rbp), %rsi
callq 0x1f2240
movl %edx, -0xa34(%rbp)
movq %rax, -0xa30(%rbp)
jmp 0x1e8cb0
movq -0xa40(%rbp), %rdi
movl -0xa34(%rbp), %eax
movq -0xa30(%rbp), %rcx
movq %rcx, -0x788(%rbp)
movl %eax, -0x780(%rbp)
movl -0x780(%rbp), %eax
movl %eax, -0x768(%rbp)
movq -0x788(%rbp), %rax
movq %rax, -0x770(%rbp)
leaq -0x770(%rbp), %rsi
callq 0x127810
jmp 0x1e8cf9
jmp 0x1e8d52
leaq -0x6e8(%rbp), %rdi
callq 0x47360
leaq -0x6d0(%rbp), %rdi
callq 0x37610
jmp 0x1e9068
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x1d0(%rbp)
movl %eax, -0x1d4(%rbp)
leaq -0x760(%rbp), %rdi
callq 0x478f0
jmp 0x1e9068
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x1d0(%rbp)
movl %eax, -0x1d4(%rbp)
jmp 0x1e8ebe
leaq -0x6b0(%rbp), %rdi
callq 0x47b20
movq %rax, -0xa50(%rbp)
leaq -0x798(%rbp), %rdi
movq %rdi, -0xa48(%rbp)
leaq -0x750(%rbp), %rsi
callq 0xbc690
movq -0xa50(%rbp), %rdi
movq -0xa48(%rbp), %rsi
callq 0x15e190
jmp 0x1e8d94
leaq -0x798(%rbp), %rdi
callq 0x47340
leaq -0x750(%rbp), %rdi
callq 0x47360
leaq -0x5c0(%rbp), %rdi
callq 0x47950
movq %rax, -0xa60(%rbp)
leaq -0x7a8(%rbp), %rdi
movq %rdi, -0xa58(%rbp)
leaq -0x6b0(%rbp), %rsi
callq 0x47b40
movq -0xa60(%rbp), %rdi
movq -0xa58(%rbp), %rsi
callq 0x15d8a0
jmp 0x1e8dee
leaq -0x7a8(%rbp), %rdi
callq 0x47340
movq -0x810(%rbp), %rax
movq 0x20(%rax), %rax
testb $0x1, 0xbc(%rax)
je 0x1e8ef2
leaq -0x6b0(%rbp), %rdi
callq 0x47b20
addq $0x8, %rax
movq %rax, -0xa78(%rbp)
movl $0xca, -0x7bc(%rbp)
leaq 0x14dff9(%rip), %rdi # 0x336e33
leaq -0x7bc(%rbp), %rsi
callq 0x1f2240
movl %edx, -0xa6c(%rbp)
movq %rax, -0xa68(%rbp)
jmp 0x1e8e55
movq -0xa78(%rbp), %rdi
movl -0xa6c(%rbp), %eax
movq -0xa68(%rbp), %rcx
movq %rcx, -0x7d0(%rbp)
movl %eax, -0x7c8(%rbp)
movl -0x7c8(%rbp), %eax
movl %eax, -0x7b0(%rbp)
movq -0x7d0(%rbp), %rax
movq %rax, -0x7b8(%rbp)
leaq -0x7b8(%rbp), %rsi
callq 0x127810
jmp 0x1e8e9e
jmp 0x1e8ef2
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x1d0(%rbp)
movl %eax, -0x1d4(%rbp)
leaq -0x798(%rbp), %rdi
callq 0x47340
leaq -0x750(%rbp), %rdi
callq 0x47360
jmp 0x1e9068
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x1d0(%rbp)
movl %eax, -0x1d4(%rbp)
leaq -0x7a8(%rbp), %rdi
callq 0x47340
jmp 0x1e9068
movq -0x810(%rbp), %rdi
movq -0x338(%rbp), %rsi
movq -0x538(%rbp), %rdx
movq -0x550(%rbp), %rcx
leaq -0x280(%rbp), %r8
callq 0x1e9b60
jmp 0x1e8f1c
movq -0x810(%rbp), %rax
testb $0x1, 0x141(%rax)
je 0x1e8f51
movq -0x810(%rbp), %rdi
movq -0x338(%rbp), %rsi
movq -0x538(%rbp), %rdx
leaq -0x280(%rbp), %rcx
callq 0x1eaec0
jmp 0x1e8f4f
jmp 0x1e8f51
movq -0x810(%rbp), %rsi
leaq -0x7e8(%rbp), %rdi
callq 0x1eb900
jmp 0x1e8f66
leaq -0x7e8(%rbp), %rax
movq %rax, -0x7f0(%rbp)
movq -0x7f0(%rbp), %rdi
callq 0x1f2490
movq %rax, -0x7f8(%rbp)
movq -0x7f0(%rbp), %rdi
callq 0x1f24c0
movq %rax, -0x800(%rbp)
leaq -0x7f8(%rbp), %rdi
leaq -0x800(%rbp), %rsi
callq 0x1f24f0
testb $0x1, %al
jne 0x1e8fb3
jmp 0x1e8fe5
leaq -0x7f8(%rbp), %rdi
callq 0x1f2530
movq %rax, -0x808(%rbp)
movq -0x808(%rbp), %rax
movq (%rax), %rax
movb $0x1, 0x140(%rax)
leaq -0x7f8(%rbp), %rdi
callq 0x1f2550
jmp 0x1e8f9a
movq -0x810(%rbp), %rax
movb $0x1, 0x140(%rax)
leaq -0x7e8(%rbp), %rdi
callq 0x1f2570
leaq -0x6b0(%rbp), %rdi
callq 0x47bc0
leaq -0x690(%rbp), %rdi
callq 0x478f0
leaq -0x5c0(%rbp), %rdi
callq 0x479d0
leaq -0x508(%rbp), %rdi
callq 0x37610
leaq -0x4c0(%rbp), %rdi
callq 0x37610
leaq -0x280(%rbp), %rdi
callq 0x1f25d0
leaq -0x218(%rbp), %rdi
callq 0x8fa50
leaq -0x1a0(%rbp), %rdi
callq 0x1f1ce0
addq $0xa80, %rsp # imm = 0xA80
popq %rbp
retq
leaq -0x6b0(%rbp), %rdi
callq 0x47bc0
leaq -0x690(%rbp), %rdi
callq 0x478f0
leaq -0x5c0(%rbp), %rdi
callq 0x479d0
leaq -0x508(%rbp), %rdi
callq 0x37610
leaq -0x4c0(%rbp), %rdi
callq 0x37610
leaq -0x280(%rbp), %rdi
callq 0x1f25d0
leaq -0x218(%rbp), %rdi
callq 0x8fa50
leaq -0x1a0(%rbp), %rdi
callq 0x1f1ce0
movq -0x1d0(%rbp), %rdi
callq 0x36bd0
nopw %cs:(%rax,%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_s.get();
if (port->port_type() == PortType::AsyncReset) {
if (reset_map_.find(port) == reset_map_.end()) {
// it's used as a sync reset
throw VarException(
::format("{0} is used has a synchronous reset", port->to_string()),
{port, stmt});
}
bool reset_high = reset_map_.at(port);
if (!reset_high)
throw VarException("Active low signal used as active high", {port, stmt});
} else if (port->port_type() == PortType::Reset) {
if (reset_map_.find(port) != reset_map_.end()) {
throw VarException(::format("{0} is synchronous reset but used as async reset",
port->to_string()),
{port, stmt, get_reset_stmt(port)});
}
}
} else if (predicate->type() == VarType::Expression) {
auto expr = predicate->as<Expr>();
if (expr->op == ExprOp::UNot || expr->op == ExprOp::UInvert) {
auto var = expr->left->as<Var>();
if (var->type() == VarType::PortIO) {
auto port = var->as<Port>();
if (port->port_type() == PortType::AsyncReset) {
if (reset_map_.find(port.get()) == reset_map_.end()) {
// it's used as a sync reset
throw VarException(
::format("{0} is used has a synchronous reset", port->to_string()),
{port.get(), stmt});
}
bool reset_high = reset_map_.at(port.get());
if (reset_high) {
throw VarException("Active high signal used as active low",
{port.get(), stmt});
}
} else if (port->port_type() == PortType::Reset) {
if (reset_map_.find(port.get()) != reset_map_.end()) {
throw VarException(
::format("{0} is synchronous reset but used as async reset",
port->to_string()),
{port.get(), stmt, get_reset_stmt(port.get())});
}
}
}
}
}
} | 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
movl %eax, -0x5b0(%rbp)
jmp 0x2781fd
movl -0x5b0(%rbp), %eax
cmpl $0x4, %eax
jne 0x278aaf
leaq -0x220(%rbp), %rdi
callq 0xb9d10
movq %rax, %rsi
leaq -0x240(%rbp), %rdi
callq 0x1f22c0
jmp 0x278229
leaq -0x240(%rbp), %rdi
callq 0xbeae0
movq %rax, -0x248(%rbp)
movq -0x248(%rbp), %rdi
callq 0xba230
movl %eax, -0x5c4(%rbp)
jmp 0x278250
movl -0x5c4(%rbp), %eax
cmpl $0x2, %eax
jne 0x27875b
movq -0x5c0(%rbp), %rdi
addq $0x48, %rdi
leaq -0x248(%rbp), %rsi
callq 0x27a4a0
movq %rax, -0x5d0(%rbp)
jmp 0x27827f
movq -0x5c0(%rbp), %rdi
movq -0x5d0(%rbp), %rax
movq %rax, -0x250(%rbp)
addq $0x48, %rdi
callq 0x27a4d0
movq %rax, -0x258(%rbp)
leaq -0x250(%rbp), %rdi
leaq -0x258(%rbp), %rsi
callq 0x27a470
testb $0x1, %al
jne 0x2782c0
jmp 0x2785a0
movb $0x1, -0x2d2(%rbp)
movl $0x10, %edi
callq 0x36700
movq %rax, -0x5d8(%rbp)
movq -0x248(%rbp), %rsi
movq (%rsi), %rax
movq 0xf8(%rax), %rax
leaq -0x298(%rbp), %rdi
callq *%rax
jmp 0x2782f4
leaq -0x278(%rbp), %rax
movq %rax, -0x130(%rbp)
leaq 0xc0d24(%rip), %rax # 0x33902d
movq %rax, -0x138(%rbp)
leaq -0x298(%rbp), %rax
movq %rax, -0x140(%rbp)
movq -0x138(%rbp), %rdi
movq -0x140(%rbp), %rsi
callq 0x25c0f0
movq %rdx, -0x5e8(%rbp)
movq %rax, -0x5e0(%rbp)
jmp 0x278341
movq -0x5e8(%rbp), %rax
movq -0x5e0(%rbp), %rcx
movq %rcx, -0x160(%rbp)
movq %rax, -0x158(%rbp)
leaq -0x160(%rbp), %rax
movq %rax, -0x148(%rbp)
movq -0x138(%rbp), %rdi
callq 0xcc610
movq %rdx, -0x5f8(%rbp)
movq %rax, -0x5f0(%rbp)
jmp 0x278387
movq -0x5f8(%rbp), %rax
movq -0x5f0(%rbp), %rcx
movq %rcx, -0x170(%rbp)
movq %rax, -0x168(%rbp)
movq -0x148(%rbp), %rax
leaq -0x180(%rbp), %rcx
movq %rcx, -0x120(%rbp)
movq %rax, -0x128(%rbp)
movq -0x120(%rbp), %rcx
movq -0x128(%rbp), %rax
movq %rcx, -0x110(%rbp)
movq %rax, -0x118(%rbp)
movq -0x110(%rbp), %rdi
movq -0x118(%rbp), %rax
movq %rax, -0x108(%rbp)
movq -0x108(%rbp), %rdx
movl $0xd, %esi
callq 0xcc8d0
movq -0x170(%rbp), %rsi
movq -0x168(%rbp), %rdx
movq -0x180(%rbp), %rcx
movq -0x178(%rbp), %r8
leaq -0x278(%rbp), %rdi
callq 0x31ba00
jmp 0x27842b
jmp 0x27842d
movq -0x248(%rbp), %rax
movq %rax, -0x2d0(%rbp)
movq -0x210(%rbp), %rax
movq %rax, -0x2c8(%rbp)
leaq -0x2d0(%rbp), %rax
movq %rax, -0x2c0(%rbp)
movq $0x2, -0x2b8(%rbp)
leaq -0x2d1(%rbp), %rdi
movq %rdi, -0x600(%rbp)
callq 0xb9d50
movq -0x600(%rbp), %rcx
movq -0x2c0(%rbp), %rsi
movq -0x2b8(%rbp), %rdx
leaq -0x2b0(%rbp), %rdi
callq 0xb9d70
jmp 0x278498
movq -0x5d8(%rbp), %rdi
leaq -0x278(%rbp), %rsi
leaq -0x2b0(%rbp), %rdx
callq 0x1e5a70
movq -0x5d8(%rbp), %rdi
movb $0x0, -0x2d2(%rbp)
leaq 0x2282e9(%rip), %rsi # 0x4a07b0
leaq -0x1be6de(%rip), %rdx # 0xb9df0
callq 0x36b70
jmp 0x279570
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x228(%rbp)
movl %eax, -0x22c(%rbp)
jmp 0x279558
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x228(%rbp)
movl %eax, -0x22c(%rbp)
jmp 0x278a9e
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x228(%rbp)
movl %eax, -0x22c(%rbp)
jmp 0x278584
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x228(%rbp)
movl %eax, -0x22c(%rbp)
jmp 0x278578
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x228(%rbp)
movl %eax, -0x22c(%rbp)
jmp 0x278560
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x228(%rbp)
movl %eax, -0x22c(%rbp)
leaq -0x2b0(%rbp), %rdi
callq 0xb9e10
leaq -0x2d1(%rbp), %rdi
callq 0xb9e70
leaq -0x278(%rbp), %rdi
callq 0x37610
leaq -0x298(%rbp), %rdi
callq 0x37610
testb $0x1, -0x2d2(%rbp)
jne 0x27858f
jmp 0x27859b
movq -0x5d8(%rbp), %rdi
callq 0x37000
jmp 0x278a9e
movq -0x5c0(%rbp), %rdi
addq $0x48, %rdi
leaq -0x248(%rbp), %rsi
callq 0x27a500
movq %rax, -0x608(%rbp)
jmp 0x2785c0
movq -0x608(%rbp), %rax
movb (%rax), %al
andb $0x1, %al
movb %al, -0x2d3(%rbp)
testb $0x1, -0x2d3(%rbp)
jne 0x278756
movb $0x1, -0x33a(%rbp)
movl $0x10, %edi
callq 0x36700
movq %rax, -0x618(%rbp)
leaq -0x2f9(%rbp), %rdi
movq %rdi, -0x610(%rbp)
callq 0x37190
movq -0x610(%rbp), %rdx
leaq 0xc0a3a(%rip), %rsi # 0x339051
leaq -0x2f8(%rbp), %rdi
callq 0x469d0
jmp 0x278625
movq -0x248(%rbp), %rax
movq %rax, -0x338(%rbp)
movq -0x210(%rbp), %rax
movq %rax, -0x330(%rbp)
leaq -0x338(%rbp), %rax
movq %rax, -0x328(%rbp)
movq $0x2, -0x320(%rbp)
leaq -0x339(%rbp), %rdi
movq %rdi, -0x620(%rbp)
callq 0xb9d50
movq -0x620(%rbp), %rcx
movq -0x328(%rbp), %rsi
movq -0x320(%rbp), %rdx
leaq -0x318(%rbp), %rdi
callq 0xb9d70
jmp 0x278690
movq -0x618(%rbp), %rdi
leaq -0x2f8(%rbp), %rsi
leaq -0x318(%rbp), %rdx
callq 0x1e5a70
movq -0x618(%rbp), %rdi
movb $0x0, -0x33a(%rbp)
leaq 0x2280f1(%rip), %rsi # 0x4a07b0
leaq -0x1be8d6(%rip), %rdx # 0xb9df0
callq 0x36b70
jmp 0x279570
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x228(%rbp)
movl %eax, -0x22c(%rbp)
jmp 0x27872e
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x228(%rbp)
movl %eax, -0x22c(%rbp)
jmp 0x278716
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x228(%rbp)
movl %eax, -0x22c(%rbp)
leaq -0x318(%rbp), %rdi
callq 0xb9e10
leaq -0x339(%rbp), %rdi
callq 0xb9e70
leaq -0x2f8(%rbp), %rdi
callq 0x37610
leaq -0x2f9(%rbp), %rdi
callq 0x375e0
testb $0x1, -0x33a(%rbp)
jne 0x278745
jmp 0x278751
movq -0x618(%rbp), %rdi
callq 0x37000
jmp 0x278a9e
jmp 0x278a8d
movq -0x248(%rbp), %rdi
callq 0xba230
movl %eax, -0x624(%rbp)
jmp 0x27876f
movl -0x624(%rbp), %eax
cmpl $0x3, %eax
jne 0x278a8b
movq -0x5c0(%rbp), %rdi
addq $0x48, %rdi
leaq -0x248(%rbp), %rsi
callq 0x27a4a0
movq %rax, -0x630(%rbp)
jmp 0x27879e
movq -0x5c0(%rbp), %rdi
movq -0x630(%rbp), %rax
movq %rax, -0x348(%rbp)
addq $0x48, %rdi
callq 0x27a4d0
movq %rax, -0x350(%rbp)
leaq -0x348(%rbp), %rdi
leaq -0x350(%rbp), %rsi
callq 0x27a530
testb $0x1, %al
jne 0x2787df
jmp 0x278a89
movb $0x1, -0x3d2(%rbp)
movl $0x10, %edi
callq 0x36700
movq %rax, -0x638(%rbp)
movq -0x248(%rbp), %rsi
movq (%rsi), %rax
movq 0xf8(%rax), %rax
leaq -0x390(%rbp), %rdi
callq *%rax
jmp 0x278813
leaq -0x370(%rbp), %rax
movq %rax, -0x30(%rbp)
leaq 0xc0852(%rip), %rax # 0x339077
movq %rax, -0x38(%rbp)
leaq -0x390(%rbp), %rax
movq %rax, -0x40(%rbp)
movq -0x38(%rbp), %rdi
movq -0x40(%rbp), %rsi
callq 0x27ac30
movq %rdx, -0x648(%rbp)
movq %rax, -0x640(%rbp)
jmp 0x278851
movq -0x648(%rbp), %rax
movq -0x640(%rbp), %rcx
movq %rcx, -0x60(%rbp)
movq %rax, -0x58(%rbp)
leaq -0x60(%rbp), %rax
movq %rax, -0x48(%rbp)
movq -0x38(%rbp), %rdi
callq 0xcc610
movq %rdx, -0x658(%rbp)
movq %rax, -0x650(%rbp)
jmp 0x278888
movq -0x658(%rbp), %rax
movq -0x650(%rbp), %rcx
movq %rcx, -0x70(%rbp)
movq %rax, -0x68(%rbp)
movq -0x48(%rbp), %rax
leaq -0x80(%rbp), %rcx
movq %rcx, -0x20(%rbp)
movq %rax, -0x28(%rbp)
movq -0x20(%rbp), %rcx
movq -0x28(%rbp), %rax
movq %rcx, -0x10(%rbp)
movq %rax, -0x18(%rbp)
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rax
movq %rax, -0x8(%rbp)
movq -0x8(%rbp), %rdx
movl $0xd, %esi
callq 0xcc8d0
movq -0x70(%rbp), %rsi
movq -0x68(%rbp), %rdx
movq -0x80(%rbp), %rcx
movq -0x78(%rbp), %r8
leaq -0x370(%rbp), %rdi
callq 0x31ba00
jmp 0x2788f6
jmp 0x2788f8
movq -0x5c0(%rbp), %rdi
movq -0x248(%rbp), %rax
movq %rax, -0x3d0(%rbp)
movq -0x210(%rbp), %rax
movq %rax, -0x3c8(%rbp)
leaq -0x3c0(%rbp), %rax
movq %rax, -0x668(%rbp)
movq -0x248(%rbp), %rsi
callq 0x27a560
movq %rax, -0x660(%rbp)
jmp 0x27893e
movq -0x668(%rbp), %rax
movq -0x660(%rbp), %rcx
movq %rcx, (%rax)
leaq -0x3d0(%rbp), %rax
movq %rax, -0x3b8(%rbp)
movq $0x3, -0x3b0(%rbp)
leaq -0x3d1(%rbp), %rdi
movq %rdi, -0x670(%rbp)
callq 0xb9d50
movq -0x670(%rbp), %rcx
movq -0x3b8(%rbp), %rsi
movq -0x3b0(%rbp), %rdx
leaq -0x3a8(%rbp), %rdi
callq 0xb9d70
jmp 0x27899e
movq -0x638(%rbp), %rdi
leaq -0x370(%rbp), %rsi
leaq -0x3a8(%rbp), %rdx
callq 0x1e5a70
movq -0x638(%rbp), %rdi
movb $0x0, -0x3d2(%rbp)
leaq 0x227de3(%rip), %rsi # 0x4a07b0
leaq -0x1bebe4(%rip), %rdx # 0xb9df0
callq 0x36b70
jmp 0x279570
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x228(%rbp)
movl %eax, -0x22c(%rbp)
jmp 0x278a70
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x228(%rbp)
movl %eax, -0x22c(%rbp)
jmp 0x278a64
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x228(%rbp)
movl %eax, -0x22c(%rbp)
jmp 0x278a58
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x228(%rbp)
movl %eax, -0x22c(%rbp)
jmp 0x278a4c
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x228(%rbp)
movl %eax, -0x22c(%rbp)
leaq -0x3a8(%rbp), %rdi
callq 0xb9e10
leaq -0x3d1(%rbp), %rdi
callq 0xb9e70
leaq -0x370(%rbp), %rdi
callq 0x37610
leaq -0x390(%rbp), %rdi
callq 0x37610
testb $0x1, -0x3d2(%rbp)
jne 0x278a7b
jmp 0x278a87
movq -0x638(%rbp), %rdi
callq 0x37000
jmp 0x278a9e
jmp 0x278a8b
jmp 0x278a8d
leaq -0x240(%rbp), %rdi
callq 0xb96b0
jmp 0x279543
leaq -0x240(%rbp), %rdi
callq 0xb96b0
jmp 0x279558
leaq -0x220(%rbp), %rdi
callq 0xb9d10
movq %rax, %rdi
callq 0xbce10
movl %eax, -0x674(%rbp)
jmp 0x278acb
movl -0x674(%rbp), %eax
cmpl $0x1, %eax
jne 0x279541
leaq -0x220(%rbp), %rdi
callq 0xb9d10
movq %rax, %rsi
leaq -0x3e8(%rbp), %rdi
callq 0x124cd0
jmp 0x278af7
leaq -0x3e8(%rbp), %rdi
callq 0xbdaf0
cmpq $0x4, 0x270(%rax)
je 0x278b27
leaq -0x3e8(%rbp), %rdi
callq 0xbdaf0
cmpq $0x0, 0x270(%rax)
jne 0x279525
leaq -0x3e8(%rbp), %rdi
callq 0xbdaf0
movq 0x278(%rax), %rsi
leaq -0x3f8(%rbp), %rdi
callq 0x127620
jmp 0x278b48
leaq -0x3f8(%rbp), %rdi
callq 0xb9d10
movq %rax, %rdi
callq 0xbce10
movl %eax, -0x678(%rbp)
jmp 0x278b64
movl -0x678(%rbp), %eax
cmpl $0x4, %eax
jne 0x279509
leaq -0x3f8(%rbp), %rdi
callq 0xb9d10
movq %rax, %rsi
leaq -0x408(%rbp), %rdi
callq 0x1f22c0
jmp 0x278b90
leaq -0x408(%rbp), %rdi
callq 0xb9690
movq %rax, %rdi
callq 0xba230
movl %eax, -0x67c(%rbp)
jmp 0x278bac
movl -0x67c(%rbp), %eax
cmpl $0x2, %eax
jne 0x279122
movq -0x5c0(%rbp), %rax
addq $0x48, %rax
movq %rax, -0x690(%rbp)
leaq -0x408(%rbp), %rdi
callq 0xbeae0
movq -0x690(%rbp), %rdi
movq %rax, -0x418(%rbp)
leaq -0x418(%rbp), %rsi
callq 0x27a4a0
movq %rax, -0x688(%rbp)
jmp 0x278bfc
movq -0x5c0(%rbp), %rdi
movq -0x688(%rbp), %rax
movq %rax, -0x410(%rbp)
addq $0x48, %rdi
callq 0x27a4d0
movq %rax, -0x420(%rbp)
leaq -0x410(%rbp), %rdi
leaq -0x420(%rbp), %rsi
callq 0x27a470
testb $0x1, %al
jne 0x278c3d
jmp 0x278f41
movb $0x1, -0x49a(%rbp)
movl $0x10, %edi
callq 0x36700
movq %rax, -0x698(%rbp)
leaq -0x408(%rbp), %rdi
callq 0xb9690
movq %rax, %rsi
movq (%rsi), %rax
movq 0xf8(%rax), %rax
leaq -0x460(%rbp), %rdi
callq *%rax
jmp 0x278c79
leaq -0x440(%rbp), %rax
movq %rax, -0x1b0(%rbp)
leaq 0xc039f(%rip), %rax # 0x33902d
movq %rax, -0x1b8(%rbp)
leaq -0x460(%rbp), %rax
movq %rax, -0x1c0(%rbp)
movq -0x1b8(%rbp), %rdi
movq -0x1c0(%rbp), %rsi
callq 0x25c0f0
movq %rdx, -0x6a8(%rbp)
movq %rax, -0x6a0(%rbp)
jmp 0x278cc6
movq -0x6a8(%rbp), %rax
movq -0x6a0(%rbp), %rcx
movq %rcx, -0x1e0(%rbp)
movq %rax, -0x1d8(%rbp)
leaq -0x1e0(%rbp), %rax
movq %rax, -0x1c8(%rbp)
movq -0x1b8(%rbp), %rdi
callq 0xcc610
movq %rdx, -0x6b8(%rbp)
movq %rax, -0x6b0(%rbp)
jmp 0x278d0c
movq -0x6b8(%rbp), %rax
movq -0x6b0(%rbp), %rcx
movq %rcx, -0x1f0(%rbp)
movq %rax, -0x1e8(%rbp)
movq -0x1c8(%rbp), %rax
leaq -0x200(%rbp), %rcx
movq %rcx, -0x1a0(%rbp)
movq %rax, -0x1a8(%rbp)
movq -0x1a0(%rbp), %rcx
movq -0x1a8(%rbp), %rax
movq %rcx, -0x190(%rbp)
movq %rax, -0x198(%rbp)
movq -0x190(%rbp), %rdi
movq -0x198(%rbp), %rax
movq %rax, -0x188(%rbp)
movq -0x188(%rbp), %rdx
movl $0xd, %esi
callq 0xcc8d0
movq -0x1f0(%rbp), %rsi
movq -0x1e8(%rbp), %rdx
movq -0x200(%rbp), %rcx
movq -0x1f8(%rbp), %r8
leaq -0x440(%rbp), %rdi
callq 0x31ba00
jmp 0x278db0
jmp 0x278db2
leaq -0x408(%rbp), %rdi
callq 0xbeae0
movq %rax, -0x498(%rbp)
movq -0x210(%rbp), %rax
movq %rax, -0x490(%rbp)
leaq -0x498(%rbp), %rax
movq %rax, -0x488(%rbp)
movq $0x2, -0x480(%rbp)
leaq -0x499(%rbp), %rdi
movq %rdi, -0x6c0(%rbp)
callq 0xb9d50
movq -0x6c0(%rbp), %rcx
movq -0x488(%rbp), %rsi
movq -0x480(%rbp), %rdx
leaq -0x478(%rbp), %rdi
callq 0xb9d70
jmp 0x278e22
movq -0x698(%rbp), %rdi
leaq -0x440(%rbp), %rsi
leaq -0x478(%rbp), %rdx
callq 0x1e5a70
movq -0x698(%rbp), %rdi
movb $0x0, -0x49a(%rbp)
leaq 0x22795f(%rip), %rsi # 0x4a07b0
leaq -0x1bf068(%rip), %rdx # 0xb9df0
callq 0x36b70
jmp 0x279570
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x228(%rbp)
movl %eax, -0x22c(%rbp)
jmp 0x279533
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x228(%rbp)
movl %eax, -0x22c(%rbp)
jmp 0x279517
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x228(%rbp)
movl %eax, -0x22c(%rbp)
jmp 0x2794fb
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x228(%rbp)
movl %eax, -0x22c(%rbp)
jmp 0x278f25
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x228(%rbp)
movl %eax, -0x22c(%rbp)
jmp 0x278f19
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x228(%rbp)
movl %eax, -0x22c(%rbp)
jmp 0x278f01
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x228(%rbp)
movl %eax, -0x22c(%rbp)
leaq -0x478(%rbp), %rdi
callq 0xb9e10
leaq -0x499(%rbp), %rdi
callq 0xb9e70
leaq -0x440(%rbp), %rdi
callq 0x37610
leaq -0x460(%rbp), %rdi
callq 0x37610
testb $0x1, -0x49a(%rbp)
jne 0x278f30
jmp 0x278f3c
movq -0x698(%rbp), %rdi
callq 0x37000
jmp 0x2794fb
movq -0x5c0(%rbp), %rax
addq $0x48, %rax
movq %rax, -0x6d0(%rbp)
leaq -0x408(%rbp), %rdi
callq 0xbeae0
movq -0x6d0(%rbp), %rdi
movq %rax, -0x4a8(%rbp)
leaq -0x4a8(%rbp), %rsi
callq 0x27a500
movq %rax, -0x6c8(%rbp)
jmp 0x278f82
movq -0x6c8(%rbp), %rax
movb (%rax), %al
andb $0x1, %al
movb %al, -0x49b(%rbp)
testb $0x1, -0x49b(%rbp)
je 0x27911d
movb $0x1, -0x50a(%rbp)
movl $0x10, %edi
callq 0x36700
movq %rax, -0x6e0(%rbp)
leaq -0x4c9(%rbp), %rdi
movq %rdi, -0x6d8(%rbp)
callq 0x37190
movq -0x6d8(%rbp), %rdx
leaq 0xc00cf(%rip), %rsi # 0x3390a8
leaq -0x4c8(%rbp), %rdi
callq 0x469d0
jmp 0x278fe7
leaq -0x408(%rbp), %rdi
callq 0xbeae0
movq %rax, -0x508(%rbp)
movq -0x210(%rbp), %rax
movq %rax, -0x500(%rbp)
leaq -0x508(%rbp), %rax
movq %rax, -0x4f8(%rbp)
movq $0x2, -0x4f0(%rbp)
leaq -0x509(%rbp), %rdi
movq %rdi, -0x6e8(%rbp)
callq 0xb9d50
movq -0x6e8(%rbp), %rcx
movq -0x4f8(%rbp), %rsi
movq -0x4f0(%rbp), %rdx
leaq -0x4e8(%rbp), %rdi
callq 0xb9d70
jmp 0x279057
movq -0x6e0(%rbp), %rdi
leaq -0x4c8(%rbp), %rsi
leaq -0x4e8(%rbp), %rdx
callq 0x1e5a70
movq -0x6e0(%rbp), %rdi
movb $0x0, -0x50a(%rbp)
leaq 0x22772a(%rip), %rsi # 0x4a07b0
leaq -0x1bf29d(%rip), %rdx # 0xb9df0
callq 0x36b70
jmp 0x279570
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x228(%rbp)
movl %eax, -0x22c(%rbp)
jmp 0x2790f5
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x228(%rbp)
movl %eax, -0x22c(%rbp)
jmp 0x2790dd
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x228(%rbp)
movl %eax, -0x22c(%rbp)
leaq -0x4e8(%rbp), %rdi
callq 0xb9e10
leaq -0x509(%rbp), %rdi
callq 0xb9e70
leaq -0x4c8(%rbp), %rdi
callq 0x37610
leaq -0x4c9(%rbp), %rdi
callq 0x375e0
testb $0x1, -0x50a(%rbp)
jne 0x27910c
jmp 0x279118
movq -0x6e0(%rbp), %rdi
callq 0x37000
jmp 0x2794fb
jmp 0x2794ed
leaq -0x408(%rbp), %rdi
callq 0xb9690
movq %rax, %rdi
callq 0xba230
movl %eax, -0x6ec(%rbp)
jmp 0x27913e
movl -0x6ec(%rbp), %eax
cmpl $0x3, %eax
jne 0x2794eb
movq -0x5c0(%rbp), %rax
addq $0x48, %rax
movq %rax, -0x700(%rbp)
leaq -0x408(%rbp), %rdi
callq 0xbeae0
movq -0x700(%rbp), %rdi
movq %rax, -0x520(%rbp)
leaq -0x520(%rbp), %rsi
callq 0x27a4a0
movq %rax, -0x6f8(%rbp)
jmp 0x27918e
movq -0x5c0(%rbp), %rdi
movq -0x6f8(%rbp), %rax
movq %rax, -0x518(%rbp)
addq $0x48, %rdi
callq 0x27a4d0
movq %rax, -0x528(%rbp)
leaq -0x518(%rbp), %rdi
leaq -0x528(%rbp), %rsi
callq 0x27a530
testb $0x1, %al
jne 0x2791cf
jmp 0x2794e9
movb $0x1, -0x5aa(%rbp)
movl $0x10, %edi
callq 0x36700
movq %rax, -0x708(%rbp)
leaq -0x408(%rbp), %rdi
callq 0xb9690
movq %rax, %rsi
movq (%rsi), %rax
movq 0xf8(%rax), %rax
leaq -0x568(%rbp), %rdi
callq *%rax
jmp 0x27920b
leaq -0x548(%rbp), %rax
movq %rax, -0xb0(%rbp)
leaq 0xbfe57(%rip), %rax # 0x339077
movq %rax, -0xb8(%rbp)
leaq -0x568(%rbp), %rax
movq %rax, -0xc0(%rbp)
movq -0xb8(%rbp), %rdi
movq -0xc0(%rbp), %rsi
callq 0x27ac30
movq %rdx, -0x718(%rbp)
movq %rax, -0x710(%rbp)
jmp 0x279258
movq -0x718(%rbp), %rax
movq -0x710(%rbp), %rcx
movq %rcx, -0xe0(%rbp)
movq %rax, -0xd8(%rbp)
leaq -0xe0(%rbp), %rax
movq %rax, -0xc8(%rbp)
movq -0xb8(%rbp), %rdi
callq 0xcc610
movq %rdx, -0x728(%rbp)
movq %rax, -0x720(%rbp)
jmp 0x27929e
movq -0x728(%rbp), %rax
movq -0x720(%rbp), %rcx
movq %rcx, -0xf0(%rbp)
movq %rax, -0xe8(%rbp)
movq -0xc8(%rbp), %rax
leaq -0x100(%rbp), %rcx
movq %rcx, -0xa0(%rbp)
movq %rax, -0xa8(%rbp)
movq -0xa0(%rbp), %rcx
movq -0xa8(%rbp), %rax
movq %rcx, -0x90(%rbp)
movq %rax, -0x98(%rbp)
movq -0x90(%rbp), %rdi
movq -0x98(%rbp), %rax
movq %rax, -0x88(%rbp)
movq -0x88(%rbp), %rdx
movl $0xd, %esi
callq 0xcc8d0
movq -0xf0(%rbp), %rsi
movq -0xe8(%rbp), %rdx
movq -0x100(%rbp), %rcx
movq -0xf8(%rbp), %r8
leaq -0x548(%rbp), %rdi
callq 0x31ba00
jmp 0x279342
jmp 0x279344
leaq -0x408(%rbp), %rdi
movq %rdi, -0x740(%rbp)
callq 0xbeae0
movq -0x740(%rbp), %rdi
movq %rax, -0x5a8(%rbp)
movq -0x210(%rbp), %rax
movq %rax, -0x5a0(%rbp)
leaq -0x598(%rbp), %rax
movq %rax, -0x738(%rbp)
callq 0xbeae0
movq -0x5c0(%rbp), %rdi
movq %rax, %rsi
callq 0x27a560
movq %rax, -0x730(%rbp)
jmp 0x27939e
movq -0x738(%rbp), %rax
movq -0x730(%rbp), %rcx
movq %rcx, (%rax)
leaq -0x5a8(%rbp), %rax
movq %rax, -0x590(%rbp)
movq $0x3, -0x588(%rbp)
leaq -0x5a9(%rbp), %rdi
movq %rdi, -0x748(%rbp)
callq 0xb9d50
movq -0x748(%rbp), %rcx
movq -0x590(%rbp), %rsi
movq -0x588(%rbp), %rdx
leaq -0x580(%rbp), %rdi
callq 0xb9d70
jmp 0x2793fe
movq -0x708(%rbp), %rdi
leaq -0x548(%rbp), %rsi
leaq -0x580(%rbp), %rdx
callq 0x1e5a70
movq -0x708(%rbp), %rdi
movb $0x0, -0x5aa(%rbp)
leaq 0x227383(%rip), %rsi # 0x4a07b0
leaq -0x1bf644(%rip), %rdx # 0xb9df0
callq 0x36b70
jmp 0x279570
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x228(%rbp)
movl %eax, -0x22c(%rbp)
jmp 0x2794d0
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x228(%rbp)
movl %eax, -0x22c(%rbp)
jmp 0x2794c4
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x228(%rbp)
movl %eax, -0x22c(%rbp)
jmp 0x2794b8
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x228(%rbp)
movl %eax, -0x22c(%rbp)
jmp 0x2794ac
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x228(%rbp)
movl %eax, -0x22c(%rbp)
leaq -0x580(%rbp), %rdi
callq 0xb9e10
leaq -0x5a9(%rbp), %rdi
callq 0xb9e70
leaq -0x548(%rbp), %rdi
callq 0x37610
leaq -0x568(%rbp), %rdi
callq 0x37610
testb $0x1, -0x5aa(%rbp)
jne 0x2794db
jmp 0x2794e7
movq -0x708(%rbp), %rdi
callq 0x37000
jmp 0x2794fb
jmp 0x2794eb
jmp 0x2794ed
leaq -0x408(%rbp), %rdi
callq 0xb96b0
jmp 0x279509
leaq -0x408(%rbp), %rdi
callq 0xb96b0
jmp 0x279517
leaq -0x3f8(%rbp), %rdi
callq 0x478f0
jmp 0x279525
leaq -0x3f8(%rbp), %rdi
callq 0x478f0
jmp 0x279533
leaq -0x3e8(%rbp), %rdi
callq 0xba7c0
jmp 0x279541
leaq -0x3e8(%rbp), %rdi
callq 0xba7c0
jmp 0x279558
jmp 0x279543
leaq -0x220(%rbp), %rdi
callq 0x478f0
addq $0x750, %rsp # imm = 0x750
popq %rbp
retq
leaq -0x220(%rbp), %rdi
callq 0x478f0
movq -0x228(%rbp), %rdi
callq 0x36bd0
| /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>();
auto* port = port_s.get();
if (port->port_type() == PortType::AsyncReset) {
auto reset_high = t == EventEdgeType::Posedge;
// check if we have reset edge set
if (port->active_high()) {
if (reset_high != (*port->active_high())) {
throw VarException(
::format("{0} is declared reset {1} but is used as reset {2}",
port->to_string(), reset_high ? "low" : "high",
reset_high ? "high" : "low"),
{port, stmt});
}
}
if (reset_map_.find(port) != reset_map_.end()) {
// check consistency
if (reset_map_.at(port) != reset_high) {
throw VarException(
::format("Inconsistent active low/high usage for {0}",
port->to_string()),
{port, stmt, get_reset_stmt(port)});
}
} else {
reset_map_.emplace(std::make_pair(port, reset_high));
reset_map_.emplace(std::make_pair(port, stmt));
}
} else if (port->port_type() == PortType::Reset) {
throw VarException(
::format("{0} is used as async reset but is declared synchronous",
port->to_string()),
{port, stmt});
}
}
}
} | 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 %rax, -0x1c8(%rbp)
movq -0x1c0(%rbp), %rdi
callq 0x1737c0
movq %rax, -0x1d0(%rbp)
leaq -0x1c8(%rbp), %rdi
leaq -0x1d0(%rbp), %rsi
callq 0x1739f0
testb $0x1, %al
jne 0x2795fa
jmp 0x27a1a0
leaq -0x1c8(%rbp), %rdi
callq 0x173a70
movq %rax, -0x1d8(%rbp)
movq -0x1d8(%rbp), %rax
movl 0x14(%rax), %eax
movl %eax, -0x1dc(%rbp)
movq -0x1d8(%rbp), %rax
movq 0x8(%rax), %rax
movq %rax, -0x1e8(%rbp)
movq -0x1e8(%rbp), %rdi
callq 0xbce10
cmpl $0x4, %eax
jne 0x27a18d
movq -0x1e8(%rbp), %rsi
leaq -0x1f8(%rbp), %rdi
callq 0x1f22c0
leaq -0x1f8(%rbp), %rdi
callq 0xbeae0
movq %rax, -0x200(%rbp)
movq -0x200(%rbp), %rdi
callq 0xba230
cmpl $0x2, %eax
jne 0x279eea
movl -0x1dc(%rbp), %eax
testl %eax, %eax
sete -0x201(%rbp)
movq -0x200(%rbp), %rdi
callq 0x1f2310
movw %ax, -0x41a(%rbp)
jmp 0x2796a3
movw -0x41a(%rbp), %ax
movw %ax, -0x203(%rbp)
leaq -0x203(%rbp), %rdi
callq 0x1f2330
testb $0x1, %al
jne 0x2796c6
jmp 0x279a0b
movzbl -0x201(%rbp), %eax
andl $0x1, %eax
movl %eax, -0x420(%rbp)
movq -0x200(%rbp), %rdi
callq 0x1f2310
movw %ax, -0x41c(%rbp)
jmp 0x2796eb
movw -0x41c(%rbp), %ax
movw %ax, -0x216(%rbp)
leaq -0x216(%rbp), %rdi
callq 0x1f2350
movq %rax, %rcx
movl -0x420(%rbp), %eax
movb (%rcx), %cl
andb $0x1, %cl
movzbl %cl, %ecx
cmpl %ecx, %eax
je 0x279a09
movb $0x1, -0x2a2(%rbp)
movl $0x10, %edi
callq 0x36700
movq %rax, -0x428(%rbp)
movq -0x200(%rbp), %rsi
movq (%rsi), %rax
movq 0xf8(%rax), %rax
leaq -0x258(%rbp), %rdi
callq *%rax
jmp 0x279752
movb -0x201(%rbp), %dl
leaq 0xbf96b(%rip), %rax # 0x3390ca
leaq 0xbf90c(%rip), %rcx # 0x339072
testb $0x1, %dl
movq %rcx, %rdx
cmovneq %rax, %rdx
movq %rdx, -0x260(%rbp)
movb -0x201(%rbp), %dl
testb $0x1, %dl
cmovneq %rcx, %rax
movq %rax, -0x268(%rbp)
leaq -0x238(%rbp), %rax
movq %rax, -0x128(%rbp)
leaq 0xbf92e(%rip), %rax # 0x3390ce
movq %rax, -0x130(%rbp)
leaq -0x258(%rbp), %rax
movq %rax, -0x138(%rbp)
leaq -0x260(%rbp), %rax
movq %rax, -0x140(%rbp)
leaq -0x268(%rbp), %rax
movq %rax, -0x148(%rbp)
movq -0x130(%rbp), %rsi
movq -0x138(%rbp), %rdx
movq -0x140(%rbp), %rcx
movq -0x148(%rbp), %r8
leaq -0x180(%rbp), %rdi
callq 0x27b400
jmp 0x2797fb
leaq -0x180(%rbp), %rax
movq %rax, -0x150(%rbp)
movq -0x130(%rbp), %rdi
callq 0xcc610
movq %rdx, -0x438(%rbp)
movq %rax, -0x430(%rbp)
jmp 0x279825
movq -0x438(%rbp), %rax
movq -0x430(%rbp), %rcx
movq %rcx, -0x190(%rbp)
movq %rax, -0x188(%rbp)
movq -0x150(%rbp), %rax
leaq -0x1a0(%rbp), %rcx
movq %rcx, -0x20(%rbp)
movq %rax, -0x28(%rbp)
movq -0x20(%rbp), %rcx
movq -0x28(%rbp), %rax
movq %rcx, -0x10(%rbp)
movq %rax, -0x18(%rbp)
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rax
movq %rax, -0x8(%rbp)
movq -0x8(%rbp), %rdx
movl $0xccd, %esi # imm = 0xCCD
callq 0xcc8d0
movq -0x190(%rbp), %rsi
movq -0x188(%rbp), %rdx
movq -0x1a0(%rbp), %rcx
movq -0x198(%rbp), %r8
leaq -0x238(%rbp), %rdi
callq 0x31ba00
jmp 0x2798ab
jmp 0x2798ad
movq -0x200(%rbp), %rax
movq %rax, -0x2a0(%rbp)
movq -0x1b0(%rbp), %rax
movq %rax, -0x298(%rbp)
leaq -0x2a0(%rbp), %rax
movq %rax, -0x290(%rbp)
movq $0x2, -0x288(%rbp)
leaq -0x2a1(%rbp), %rdi
movq %rdi, -0x440(%rbp)
callq 0xb9d50
movq -0x440(%rbp), %rcx
movq -0x290(%rbp), %rsi
movq -0x288(%rbp), %rdx
leaq -0x280(%rbp), %rdi
callq 0xb9d70
jmp 0x279918
movq -0x428(%rbp), %rdi
leaq -0x238(%rbp), %rsi
leaq -0x280(%rbp), %rdx
callq 0x1e5a70
movq -0x428(%rbp), %rdi
movb $0x0, -0x2a2(%rbp)
leaq 0x226e69(%rip), %rsi # 0x4a07b0
leaq -0x1bfb5e(%rip), %rdx # 0xb9df0
callq 0x36b70
jmp 0x27a1b5
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x210(%rbp)
movl %eax, -0x214(%rbp)
jmp 0x27a17f
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x210(%rbp)
movl %eax, -0x214(%rbp)
jmp 0x2799ed
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x210(%rbp)
movl %eax, -0x214(%rbp)
jmp 0x2799e1
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x210(%rbp)
movl %eax, -0x214(%rbp)
jmp 0x2799c9
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x210(%rbp)
movl %eax, -0x214(%rbp)
leaq -0x280(%rbp), %rdi
callq 0xb9e10
leaq -0x2a1(%rbp), %rdi
callq 0xb9e70
leaq -0x238(%rbp), %rdi
callq 0x37610
leaq -0x258(%rbp), %rdi
callq 0x37610
testb $0x1, -0x2a2(%rbp)
jne 0x2799f8
jmp 0x279a04
movq -0x428(%rbp), %rdi
callq 0x37000
jmp 0x27a17f
jmp 0x279a0b
movq -0x418(%rbp), %rdi
addq $0x48, %rdi
leaq -0x200(%rbp), %rsi
callq 0x27a4a0
movq %rax, -0x448(%rbp)
jmp 0x279a2b
movq -0x418(%rbp), %rdi
movq -0x448(%rbp), %rax
movq %rax, -0x2b0(%rbp)
addq $0x48, %rdi
callq 0x27a4d0
movq %rax, -0x2b8(%rbp)
leaq -0x2b0(%rbp), %rdi
leaq -0x2b8(%rbp), %rsi
callq 0x27a530
testb $0x1, %al
jne 0x279a6c
jmp 0x279db4
movq -0x418(%rbp), %rdi
addq $0x48, %rdi
leaq -0x200(%rbp), %rsi
callq 0x27a500
movq %rax, -0x450(%rbp)
jmp 0x279a8c
movq -0x450(%rbp), %rax
movb (%rax), %al
andb $0x1, %al
movzbl %al, %eax
movb -0x201(%rbp), %cl
andb $0x1, %cl
movzbl %cl, %ecx
cmpl %ecx, %eax
je 0x279daf
movb $0x1, -0x33a(%rbp)
movl $0x10, %edi
callq 0x36700
movq %rax, -0x458(%rbp)
movq -0x200(%rbp), %rsi
movq (%rsi), %rax
movq 0xf8(%rax), %rax
leaq -0x2f8(%rbp), %rdi
callq *%rax
jmp 0x279ae2
leaq -0x2d8(%rbp), %rax
movq %rax, -0xd0(%rbp)
leaq 0xbf60a(%rip), %rax # 0x339101
movq %rax, -0xd8(%rbp)
leaq -0x2f8(%rbp), %rax
movq %rax, -0xe0(%rbp)
movq -0xd8(%rbp), %rdi
movq -0xe0(%rbp), %rsi
callq 0x27b560
movq %rdx, -0x468(%rbp)
movq %rax, -0x460(%rbp)
jmp 0x279b2f
movq -0x468(%rbp), %rax
movq -0x460(%rbp), %rcx
movq %rcx, -0x100(%rbp)
movq %rax, -0xf8(%rbp)
leaq -0x100(%rbp), %rax
movq %rax, -0xe8(%rbp)
movq -0xd8(%rbp), %rdi
callq 0xcc610
movq %rdx, -0x478(%rbp)
movq %rax, -0x470(%rbp)
jmp 0x279b75
movq -0x478(%rbp), %rax
movq -0x470(%rbp), %rcx
movq %rcx, -0x110(%rbp)
movq %rax, -0x108(%rbp)
movq -0xe8(%rbp), %rax
leaq -0x120(%rbp), %rcx
movq %rcx, -0xc0(%rbp)
movq %rax, -0xc8(%rbp)
movq -0xc0(%rbp), %rcx
movq -0xc8(%rbp), %rax
movq %rcx, -0xb0(%rbp)
movq %rax, -0xb8(%rbp)
movq -0xb0(%rbp), %rdi
movq -0xb8(%rbp), %rax
movq %rax, -0xa8(%rbp)
movq -0xa8(%rbp), %rdx
movl $0xd, %esi
callq 0xcc8d0
movq -0x110(%rbp), %rsi
movq -0x108(%rbp), %rdx
movq -0x120(%rbp), %rcx
movq -0x118(%rbp), %r8
leaq -0x2d8(%rbp), %rdi
callq 0x31ba00
jmp 0x279c19
jmp 0x279c1b
movq -0x418(%rbp), %rdi
movq -0x200(%rbp), %rax
movq %rax, -0x338(%rbp)
movq -0x1b0(%rbp), %rax
movq %rax, -0x330(%rbp)
leaq -0x328(%rbp), %rax
movq %rax, -0x488(%rbp)
movq -0x200(%rbp), %rsi
callq 0x27a560
movq %rax, -0x480(%rbp)
jmp 0x279c61
movq -0x488(%rbp), %rax
movq -0x480(%rbp), %rcx
movq %rcx, (%rax)
leaq -0x338(%rbp), %rax
movq %rax, -0x320(%rbp)
movq $0x3, -0x318(%rbp)
leaq -0x339(%rbp), %rdi
movq %rdi, -0x490(%rbp)
callq 0xb9d50
movq -0x490(%rbp), %rcx
movq -0x320(%rbp), %rsi
movq -0x318(%rbp), %rdx
leaq -0x310(%rbp), %rdi
callq 0xb9d70
jmp 0x279cc1
movq -0x458(%rbp), %rdi
leaq -0x2d8(%rbp), %rsi
leaq -0x310(%rbp), %rdx
callq 0x1e5a70
movq -0x458(%rbp), %rdi
movb $0x0, -0x33a(%rbp)
leaq 0x226ac0(%rip), %rsi # 0x4a07b0
leaq -0x1bff07(%rip), %rdx # 0xb9df0
callq 0x36b70
jmp 0x27a1b5
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x210(%rbp)
movl %eax, -0x214(%rbp)
jmp 0x279d93
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x210(%rbp)
movl %eax, -0x214(%rbp)
jmp 0x279d87
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x210(%rbp)
movl %eax, -0x214(%rbp)
jmp 0x279d7b
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x210(%rbp)
movl %eax, -0x214(%rbp)
jmp 0x279d6f
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x210(%rbp)
movl %eax, -0x214(%rbp)
leaq -0x310(%rbp), %rdi
callq 0xb9e10
leaq -0x339(%rbp), %rdi
callq 0xb9e70
leaq -0x2d8(%rbp), %rdi
callq 0x37610
leaq -0x2f8(%rbp), %rdi
callq 0x37610
testb $0x1, -0x33a(%rbp)
jne 0x279d9e
jmp 0x279daa
movq -0x458(%rbp), %rdi
callq 0x37000
jmp 0x27a17f
jmp 0x279ee5
movq -0x418(%rbp), %rax
addq $0x48, %rax
movq %rax, -0x4a8(%rbp)
leaq -0x200(%rbp), %rdi
leaq -0x201(%rbp), %rsi
callq 0x27b360
movb %dl, -0x499(%rbp)
movq %rax, -0x498(%rbp)
jmp 0x279de8
movq -0x4a8(%rbp), %rdi
movb -0x499(%rbp), %al
movq -0x498(%rbp), %rcx
movq %rcx, -0x360(%rbp)
movb %al, -0x358(%rbp)
movb -0x358(%rbp), %al
movb %al, -0x348(%rbp)
movq -0x360(%rbp), %rax
movq %rax, -0x350(%rbp)
leaq -0x350(%rbp), %rsi
callq 0x27b320
movb %dl, -0x4b1(%rbp)
movq %rax, -0x4b0(%rbp)
jmp 0x279e3e
movq -0x418(%rbp), %rax
movb -0x4b1(%rbp), %cl
movq -0x4b0(%rbp), %rdx
movq %rdx, -0x370(%rbp)
movb %cl, -0x368(%rbp)
addq $0x48, %rax
movq %rax, -0x4d0(%rbp)
leaq -0x200(%rbp), %rdi
leaq -0x1b0(%rbp), %rsi
callq 0x27b3d0
movq %rdx, -0x4c8(%rbp)
movq %rax, -0x4c0(%rbp)
jmp 0x279e8d
movq -0x4d0(%rbp), %rdi
movq -0x4c8(%rbp), %rax
movq -0x4c0(%rbp), %rcx
movq %rcx, -0x380(%rbp)
movq %rax, -0x378(%rbp)
leaq -0x380(%rbp), %rsi
callq 0x27b390
movb %dl, -0x4d9(%rbp)
movq %rax, -0x4d8(%rbp)
jmp 0x279ecb
movb -0x4d9(%rbp), %al
movq -0x4d8(%rbp), %rcx
movq %rcx, -0x390(%rbp)
movb %al, -0x388(%rbp)
jmp 0x27a171
movq -0x200(%rbp), %rdi
callq 0xba230
cmpl $0x3, %eax
jne 0x27a16f
movb $0x1, -0x40a(%rbp)
movl $0x10, %edi
callq 0x36700
movq %rax, -0x4e8(%rbp)
movq -0x200(%rbp), %rsi
movq (%rsi), %rax
movq 0xf8(%rax), %rax
leaq -0x3d0(%rbp), %rdi
callq *%rax
jmp 0x279f33
leaq -0x3b0(%rbp), %rax
movq %rax, -0x58(%rbp)
leaq 0xbf1e7(%rip), %rax # 0x33912c
movq %rax, -0x60(%rbp)
leaq -0x3d0(%rbp), %rax
movq %rax, -0x68(%rbp)
movq -0x60(%rbp), %rdi
movq -0x68(%rbp), %rsi
callq 0x27c780
movq %rdx, -0x4f8(%rbp)
movq %rax, -0x4f0(%rbp)
jmp 0x279f71
movq -0x4f8(%rbp), %rax
movq -0x4f0(%rbp), %rcx
movq %rcx, -0x80(%rbp)
movq %rax, -0x78(%rbp)
leaq -0x80(%rbp), %rax
movq %rax, -0x70(%rbp)
movq -0x60(%rbp), %rdi
callq 0xcc610
movq %rdx, -0x508(%rbp)
movq %rax, -0x500(%rbp)
jmp 0x279fa8
movq -0x508(%rbp), %rax
movq -0x500(%rbp), %rcx
movq %rcx, -0x90(%rbp)
movq %rax, -0x88(%rbp)
movq -0x70(%rbp), %rax
leaq -0xa0(%rbp), %rcx
movq %rcx, -0x48(%rbp)
movq %rax, -0x50(%rbp)
movq -0x48(%rbp), %rcx
movq -0x50(%rbp), %rax
movq %rcx, -0x38(%rbp)
movq %rax, -0x40(%rbp)
movq -0x38(%rbp), %rdi
movq -0x40(%rbp), %rax
movq %rax, -0x30(%rbp)
movq -0x30(%rbp), %rdx
movl $0xd, %esi
callq 0xcc8d0
movq -0x90(%rbp), %rsi
movq -0x88(%rbp), %rdx
movq -0xa0(%rbp), %rcx
movq -0x98(%rbp), %r8
leaq -0x3b0(%rbp), %rdi
callq 0x31ba00
jmp 0x27a02b
jmp 0x27a02d
movq -0x200(%rbp), %rax
movq %rax, -0x408(%rbp)
movq -0x1b0(%rbp), %rax
movq %rax, -0x400(%rbp)
leaq -0x408(%rbp), %rax
movq %rax, -0x3f8(%rbp)
movq $0x2, -0x3f0(%rbp)
leaq -0x409(%rbp), %rdi
movq %rdi, -0x510(%rbp)
callq 0xb9d50
movq -0x510(%rbp), %rcx
movq -0x3f8(%rbp), %rsi
movq -0x3f0(%rbp), %rdx
leaq -0x3e8(%rbp), %rdi
callq 0xb9d70
jmp 0x27a098
movq -0x4e8(%rbp), %rdi
leaq -0x3b0(%rbp), %rsi
leaq -0x3e8(%rbp), %rdx
callq 0x1e5a70
movq -0x4e8(%rbp), %rdi
movb $0x0, -0x40a(%rbp)
leaq 0x2266e9(%rip), %rsi # 0x4a07b0
leaq -0x1c02de(%rip), %rdx # 0xb9df0
callq 0x36b70
jmp 0x27a1b5
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x210(%rbp)
movl %eax, -0x214(%rbp)
jmp 0x27a156
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x210(%rbp)
movl %eax, -0x214(%rbp)
jmp 0x27a14a
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x210(%rbp)
movl %eax, -0x214(%rbp)
jmp 0x27a132
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x210(%rbp)
movl %eax, -0x214(%rbp)
leaq -0x3e8(%rbp), %rdi
callq 0xb9e10
leaq -0x409(%rbp), %rdi
callq 0xb9e70
leaq -0x3b0(%rbp), %rdi
callq 0x37610
leaq -0x3d0(%rbp), %rdi
callq 0x37610
testb $0x1, -0x40a(%rbp)
jne 0x27a161
jmp 0x27a16d
movq -0x4e8(%rbp), %rdi
callq 0x37000
jmp 0x27a17f
jmp 0x27a171
leaq -0x1f8(%rbp), %rdi
callq 0xb96b0
jmp 0x27a18d
leaq -0x1f8(%rbp), %rdi
callq 0xb96b0
jmp 0x27a1a9
jmp 0x27a18f
leaq -0x1c8(%rbp), %rdi
callq 0x173a90
jmp 0x2795de
addq $0x510, %rsp # imm = 0x510
popq %rbp
retq
movq -0x210(%rbp), %rdi
callq 0x36bd0
nopw %cs:(%rax,%rax)
nop
| /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_checked<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, char const*, char const*, char [51], char>(char const (&) [51], std::remove_reference<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>::type const&, std::remove_reference<char const*>::type const&, std::remove_reference<char const*>::type const&) | 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 &&
std::is_reference<Args>::value)...>() == 0,
"passing views as lvalues is disallowed");
detail::check_format_string<Args...>(format_str);
return {args...};
} | 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), %rax
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>>, char [43], char>(char const (&) [43], std::remove_reference<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>::type const&) | 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 &&
std::is_reference<Args>::value)...>() == 0,
"passing views as lvalues is disallowed");
detail::check_format_string<Args...>(format_str);
return {args...};
} | 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>>, char [55], char>(char const (&) [55], std::remove_reference<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>::type const&) | 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 &&
std::is_reference<Args>::value)...>() == 0,
"passing views as lvalues is disallowed");
detail::check_format_string<Args...>(format_str);
return {args...};
} | 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<Var*>(slice->get_var_root_parent());
}
assigned_vars_[left].emplace_back(stmt);
} | 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(%rbp)
movq -0x20(%rbp), %rdi
movq (%rdi), %rax
callq *0x158(%rax)
testb $0x1, %al
jne 0x27ea81
jmp 0x27ea83
jmp 0x27eab1
movq -0x20(%rbp), %rdi
movq (%rdi), %rax
callq *0x148(%rax)
movq %rax, -0x18(%rbp)
movq -0x28(%rbp), %rdi
addq $0x48, %rdi
leaq -0x18(%rbp), %rsi
callq 0x27ec20
movq %rax, %rdi
leaq -0x10(%rbp), %rsi
callq 0x27ec50
addq $0x30, %rsp
popq %rbp
retq
nopw (%rax,%rax)
| /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 || right;
} else {
if (var->type() == VarType::Slice) {
auto* slice = reinterpret_cast<VarSlice*>(var);
var = const_cast<Var*>(slice->get_var_root_parent());
}
return var == target;
}
} | 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 -0x48(%rbp), %rax
movq %rax, -0x20(%rbp)
movq -0x20(%rbp), %rax
movq 0x278(%rax), %rdi
movq -0x18(%rbp), %rsi
callq 0x2812f0
andb $0x1, %al
movb %al, -0x31(%rbp)
movq -0x20(%rbp), %rax
cmpq $0x0, 0x280(%rax)
je 0x28137d
movq -0x20(%rbp), %rax
movq 0x280(%rax), %rdi
movq -0x18(%rbp), %rsi
callq 0x2812f0
movb %al, -0x49(%rbp)
jmp 0x281384
xorl %eax, %eax
movb %al, -0x49(%rbp)
jmp 0x281384
movb -0x49(%rbp), %al
andb $0x1, %al
movb %al, -0x32(%rbp)
movb $0x1, %al
testb $0x1, -0x31(%rbp)
movb %al, -0x4a(%rbp)
jne 0x28139d
movb -0x32(%rbp), %al
movb %al, -0x4a(%rbp)
movb -0x4a(%rbp), %al
andb $0x1, %al
movb %al, -0x1(%rbp)
jmp 0x2813de
movq -0x10(%rbp), %rdi
callq 0xbce10
cmpl $0x2, %eax
jne 0x2813ce
movq -0x10(%rbp), %rax
movq %rax, -0x40(%rbp)
movq -0x40(%rbp), %rdi
movq (%rdi), %rax
callq *0x148(%rax)
movq %rax, -0x10(%rbp)
movq -0x10(%rbp), %rax
cmpq -0x18(%rbp), %rax
sete %al
andb $0x1, %al
movb %al, -0x1(%rbp)
movb -0x1(%rbp), %al
andb $0x1, %al
addq $0x50, %rsp
popq %rbp
retq
nopl (%rax)
| /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) {
auto const& port = gen->get_port(name);
check_var(port.get());
}
} | 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->block_type() == StatementBlockType::Sequential) {
check_always_ff(block->as<SequentialStmtBlock>().get());
}
}
}
} | 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(), cond->handle_name(gen));
}
}
} | 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), %rax
jae 0x288a35
movq -0x10(%rbp), %rsi
movl -0x24(%rbp), %eax
movl %eax, %edx
leaq -0x40(%rbp), %rdi
movq %rdi, -0xa8(%rbp)
callq 0x272f40
movq -0xa8(%rbp), %rax
movq %rax, -0x30(%rbp)
movq -0x30(%rbp), %rdi
callq 0xbbf40
movq %rax, %rsi
leaq -0x50(%rbp), %rdi
callq 0x28a420
jmp 0x288927
leaq -0x50(%rbp), %rdi
callq 0xbcf40
testb $0x1, %al
jne 0x288939
jmp 0x288a01
movq -0xa0(%rbp), %rax
addq $0x48, %rax
movq %rax, -0xb0(%rbp)
movq -0x30(%rbp), %rdi
callq 0xbbf40
movq %rax, -0x68(%rbp)
leaq -0x50(%rbp), %rdi
callq 0xb9d10
movq %rax, %rsi
movq -0x20(%rbp), %rdx
movq (%rsi), %rax
movq 0x110(%rax), %rax
leaq -0x88(%rbp), %rdi
callq *%rax
jmp 0x28897d
movq -0xb0(%rbp), %rdi
leaq -0x68(%rbp), %rsi
leaq -0x88(%rbp), %rdx
callq 0x28ace0
movb %dl, -0xb9(%rbp)
movq %rax, -0xb8(%rbp)
jmp 0x2889a3
movb -0xb9(%rbp), %al
movq -0xb8(%rbp), %rcx
movq %rcx, -0x98(%rbp)
movb %al, -0x90(%rbp)
leaq -0x88(%rbp), %rdi
callq 0x37610
jmp 0x288a01
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x58(%rbp)
movl %eax, -0x5c(%rbp)
jmp 0x288a2a
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x58(%rbp)
movl %eax, -0x5c(%rbp)
jmp 0x288a21
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x58(%rbp)
movl %eax, -0x5c(%rbp)
leaq -0x88(%rbp), %rdi
callq 0x37610
jmp 0x288a21
leaq -0x50(%rbp), %rdi
callq 0x478f0
leaq -0x40(%rbp), %rdi
callq 0x47340
movl -0x24(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x24(%rbp)
jmp 0x2888df
leaq -0x50(%rbp), %rdi
callq 0x478f0
leaq -0x40(%rbp), %rdi
callq 0x47340
jmp 0x288a3e
addq $0xc0, %rsp
popq %rbp
retq
movq -0x58(%rbp), %rdi
callq 0x36bd0
nopw (%rax,%rax)
| /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.emplace(stmt, str_value);
}
} | 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(::format("redefinition of different packed struct {0}",
struct_def->struct_name),
{var, struct_ports_.at(struct_def->struct_name)});
}
} else {
structs_.emplace(struct_def->struct_name, struct_def);
struct_ports_.emplace(struct_def->struct_name, var);
// check if there is any struct inside attributes
for (auto const& attr : struct_def->attributes) {
if (attr.struct_) {
process_struct_(attr.struct_, var);
}
}
}
} | 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
movq %rax, -0xa8(%rbp)
leaq -0xa0(%rbp), %rdi
leaq -0xa8(%rbp), %rsi
callq 0x28e870
testb $0x1, %al
jne 0x28e3e8
jmp 0x28e693
movq -0x168(%rbp), %rdi
addq $0x48, %rdi
movq -0x90(%rbp), %rsi
callq 0x28e900
movq (%rax), %rax
movq %rax, -0xb0(%rbp)
movq -0x90(%rbp), %rdi
movq -0xb0(%rbp), %rsi
callq 0x11c790
testb $0x1, %al
jne 0x28e68e
movb $0x1, -0x11a(%rbp)
movl $0x10, %edi
callq 0x36700
movq %rax, -0x180(%rbp)
movq -0x90(%rbp), %rax
leaq -0xd0(%rbp), %rcx
movq %rcx, -0x30(%rbp)
leaq 0xaaeb7(%rip), %rcx # 0x33930c
movq %rcx, -0x38(%rbp)
movq %rax, -0x40(%rbp)
movq -0x38(%rbp), %rdi
movq -0x40(%rbp), %rsi
callq 0x28ef30
movq %rdx, -0x178(%rbp)
movq %rax, -0x170(%rbp)
jmp 0x28e47a
movq -0x178(%rbp), %rax
movq -0x170(%rbp), %rcx
movq %rcx, -0x60(%rbp)
movq %rax, -0x58(%rbp)
leaq -0x60(%rbp), %rax
movq %rax, -0x48(%rbp)
movq -0x38(%rbp), %rdi
callq 0xcc610
movq %rdx, -0x190(%rbp)
movq %rax, -0x188(%rbp)
jmp 0x28e4b1
movq -0x190(%rbp), %rax
movq -0x188(%rbp), %rcx
movq %rcx, -0x70(%rbp)
movq %rax, -0x68(%rbp)
movq -0x48(%rbp), %rax
leaq -0x80(%rbp), %rcx
movq %rcx, -0x20(%rbp)
movq %rax, -0x28(%rbp)
movq -0x20(%rbp), %rcx
movq -0x28(%rbp), %rax
movq %rcx, -0x10(%rbp)
movq %rax, -0x18(%rbp)
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rax
movq %rax, -0x8(%rbp)
movq -0x8(%rbp), %rdx
movl $0xd, %esi
callq 0xcc8d0
movq -0x70(%rbp), %rsi
movq -0x68(%rbp), %rdx
movq -0x80(%rbp), %rcx
movq -0x78(%rbp), %r8
leaq -0xd0(%rbp), %rdi
callq 0x31ba00
jmp 0x28e51f
jmp 0x28e521
movq -0x168(%rbp), %rdi
movq -0x98(%rbp), %rax
movq %rax, -0x118(%rbp)
leaq -0x110(%rbp), %rax
movq %rax, -0x1a0(%rbp)
addq $0x78, %rdi
movq -0x90(%rbp), %rsi
callq 0x28e9a0
movq %rax, -0x198(%rbp)
jmp 0x28e55d
movq -0x1a0(%rbp), %rax
movq -0x198(%rbp), %rcx
movq (%rcx), %rcx
movq %rcx, (%rax)
leaq -0x118(%rbp), %rax
movq %rax, -0x108(%rbp)
movq $0x2, -0x100(%rbp)
leaq -0x119(%rbp), %rdi
movq %rdi, -0x1a8(%rbp)
callq 0xb9d50
movq -0x1a8(%rbp), %rcx
movq -0x108(%rbp), %rsi
movq -0x100(%rbp), %rdx
leaq -0xf8(%rbp), %rdi
callq 0xb9d70
jmp 0x28e5c0
movq -0x180(%rbp), %rdi
leaq -0xd0(%rbp), %rsi
leaq -0xf8(%rbp), %rdx
callq 0x1e5a70
movq -0x180(%rbp), %rdi
movb $0x0, -0x11a(%rbp)
leaq 0x2121c1(%rip), %rsi # 0x4a07b0
leaq -0x1d4806(%rip), %rdx # 0xb9df0
callq 0x36b70
jmp 0x28e7a0
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0xd8(%rbp)
movl %eax, -0xdc(%rbp)
jmp 0x28e672
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0xd8(%rbp)
movl %eax, -0xdc(%rbp)
jmp 0x28e666
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0xd8(%rbp)
movl %eax, -0xdc(%rbp)
jmp 0x28e65a
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0xd8(%rbp)
movl %eax, -0xdc(%rbp)
leaq -0xf8(%rbp), %rdi
callq 0xb9e10
leaq -0x119(%rbp), %rdi
callq 0xb9e70
leaq -0xd0(%rbp), %rdi
callq 0x37610
testb $0x1, -0x11a(%rbp)
jne 0x28e67d
jmp 0x28e689
movq -0x180(%rbp), %rdi
callq 0x37000
jmp 0x28e794
jmp 0x28e78b
movq -0x168(%rbp), %rdi
addq $0x48, %rdi
movq -0x90(%rbp), %rsi
leaq -0x90(%rbp), %rdx
callq 0x28ea40
movq -0x168(%rbp), %rdi
movq %rax, -0x130(%rbp)
movb %dl, -0x128(%rbp)
addq $0x78, %rdi
movq -0x90(%rbp), %rsi
leaq -0x98(%rbp), %rdx
callq 0x28ea90
movq %rax, -0x140(%rbp)
movb %dl, -0x138(%rbp)
movq -0x90(%rbp), %rax
addq $0x20, %rax
movq %rax, -0x148(%rbp)
movq -0x148(%rbp), %rdi
callq 0x128390
movq %rax, -0x150(%rbp)
movq -0x148(%rbp), %rdi
callq 0x1283c0
movq %rax, -0x158(%rbp)
leaq -0x150(%rbp), %rdi
leaq -0x158(%rbp), %rsi
callq 0x1283f0
testb $0x1, %al
jne 0x28e73a
jmp 0x28e789
leaq -0x150(%rbp), %rdi
callq 0x128430
movq %rax, -0x160(%rbp)
movq -0x160(%rbp), %rax
cmpq $0x0, 0x28(%rax)
je 0x28e779
movq -0x168(%rbp), %rdi
movq -0x160(%rbp), %rax
movq 0x28(%rax), %rsi
movq -0x98(%rbp), %rdx
callq 0x28e370
jmp 0x28e77b
leaq -0x150(%rbp), %rdi
callq 0x128450
jmp 0x28e721
jmp 0x28e78b
addq $0x1b0, %rsp # imm = 0x1B0
popq %rbp
retq
movq -0xd8(%rbp), %rdi
callq 0x36bd0
| /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);
}
// look for child definition
for (auto const& attr : parent->attributes) {
if (attr.struct_) {
add_struct(g, parent, attr.struct_);
}
}
} | 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 -0x20(%rbp), %rcx
movq -0x28(%rbp), %rax
movq %rcx, (%rax)
movq -0x20(%rbp), %rdi
addq $0x10, %rdi
leaq -0x28(%rbp), %rsi
callq 0x290800
movq %rax, -0x38(%rbp)
movb %dl, -0x30(%rbp)
movq -0x18(%rbp), %rax
addq $0x20, %rax
movq %rax, -0x40(%rbp)
movq -0x40(%rbp), %rdi
callq 0x128040
movq %rax, -0x48(%rbp)
movq -0x40(%rbp), %rdi
callq 0x128070
movq %rax, -0x50(%rbp)
leaq -0x48(%rbp), %rdi
leaq -0x50(%rbp), %rsi
callq 0x1280a0
testb $0x1, %al
jne 0x290569
jmp 0x2905a3
leaq -0x48(%rbp), %rdi
callq 0x1280e0
movq %rax, -0x58(%rbp)
movq -0x58(%rbp), %rax
cmpq $0x0, 0x28(%rax)
je 0x290596
movq -0x8(%rbp), %rdi
movq -0x18(%rbp), %rsi
movq -0x58(%rbp), %rax
movq 0x28(%rax), %rdx
callq 0x2904d0
jmp 0x290598
leaq -0x48(%rbp), %rdi
callq 0x128100
jmp 0x290556
addq $0x60, %rsp
popq %rbp
retq
nopl (%rax)
| /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));
lock_.unlock();
} else {
// making sure they are the same
auto const& [reg_gen, ref_interface] = interfaces_.at(def->def_name());
auto ref_def = ref_interface->definition();
lock_.unlock();
auto const& ports = def->ports();
if (ref_def->ports() != ports)
throw UserException(::format("{0}.{1}'s interface differs from {2}.{3}'s",
gen->handle_name(), def->def_name(),
reg_gen->handle_name(), ref_def->def_name()));
for (auto const& port_name : ports) {
if (def->port(port_name) != ref_def->port(port_name))
throw UserException(::format("{0}.{1}'s interface differs from {2}.{3}'s",
gen->handle_name(), def->def_name(),
reg_gen->handle_name(), ref_def->def_name()));
}
// same var as well
auto const& vars = def->vars();
if (ref_def->vars() != vars)
throw UserException(::format("{0}.{1}'s interface differs from {2}.{3}'s",
gen->handle_name(), def->def_name(),
reg_gen->handle_name(), ref_def->def_name()));
for (auto const& port_name : vars) {
if (def->var(port_name) != ref_def->var(port_name))
throw UserException(::format("{0}.{1}'s interface differs from {2}.{3}'s",
gen->handle_name(), def->def_name(),
reg_gen->handle_name(), ref_def->def_name()));
}
}
} | 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 -0x310(%rbp), %rdi
callq 0xbdca0
movq %rax, %rsi
movq (%rsi), %rax
movq 0x38(%rax), %rax
leaq -0x348(%rbp), %rdi
movq %rdi, -0x838(%rbp)
callq *%rax
movq -0x840(%rbp), %rdi
movq -0x838(%rbp), %rsi
callq 0x294e20
movq %rax, -0x830(%rbp)
jmp 0x293bb2
movq -0x848(%rbp), %rdi
movq -0x830(%rbp), %rax
movq %rax, -0x328(%rbp)
addq $0x48, %rdi
callq 0x294e50
movq %rax, -0x360(%rbp)
leaq -0x328(%rbp), %rdi
leaq -0x360(%rbp), %rsi
callq 0x294df0
movb %al, -0x849(%rbp)
leaq -0x348(%rbp), %rdi
callq 0x37610
movb -0x849(%rbp), %al
testb $0x1, %al
jne 0x293c0b
jmp 0x293d28
movq -0x848(%rbp), %rax
addq $0x48, %rax
movq %rax, -0x868(%rbp)
movq -0x310(%rbp), %rdi
callq 0xbdca0
movq %rax, %rsi
movq (%rsi), %rax
movq 0x38(%rax), %rax
leaq -0x380(%rbp), %rdi
callq *%rax
leaq -0x320(%rbp), %rdi
leaq -0x318(%rbp), %rsi
callq 0x294ed0
movq %rdx, -0x860(%rbp)
movq %rax, -0x858(%rbp)
jmp 0x293c5f
movq -0x868(%rbp), %rdi
movq -0x860(%rbp), %rax
movq -0x858(%rbp), %rcx
movq %rcx, -0x390(%rbp)
movq %rax, -0x388(%rbp)
leaq -0x380(%rbp), %rsi
leaq -0x390(%rbp), %rdx
callq 0x294e80
movb %dl, -0x871(%rbp)
movq %rax, -0x870(%rbp)
jmp 0x293ca4
movb -0x871(%rbp), %al
movq -0x870(%rbp), %rcx
movq %rcx, -0x3a0(%rbp)
movb %al, -0x398(%rbp)
leaq -0x380(%rbp), %rdi
callq 0x37610
movq -0x848(%rbp), %rdi
addq $0x80, %rdi
callq 0x1996e0
jmp 0x294dd5
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x350(%rbp)
movl %eax, -0x354(%rbp)
leaq -0x348(%rbp), %rdi
callq 0x37610
jmp 0x294dde
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x350(%rbp)
movl %eax, -0x354(%rbp)
leaq -0x380(%rbp), %rdi
callq 0x37610
jmp 0x294dde
movq -0x848(%rbp), %rax
addq $0x48, %rax
movq %rax, -0x890(%rbp)
movq -0x310(%rbp), %rdi
callq 0xbdca0
movq %rax, %rsi
movq (%rsi), %rax
movq 0x38(%rax), %rax
leaq -0x3c8(%rbp), %rdi
movq %rdi, -0x888(%rbp)
callq *%rax
movq -0x890(%rbp), %rdi
movq -0x888(%rbp), %rsi
callq 0x294f00
movq %rax, -0x880(%rbp)
jmp 0x293d7c
leaq -0x3c8(%rbp), %rdi
callq 0x37610
movq -0x880(%rbp), %rax
movq %rax, -0x3a8(%rbp)
movq -0x3a8(%rbp), %rdi
callq 0x294f30
movq %rax, -0x3d0(%rbp)
movq -0x3a8(%rbp), %rdi
callq 0x294f50
movq %rax, -0x3d8(%rbp)
movq -0x3d8(%rbp), %rax
movq (%rax), %rdi
callq 0x273a80
movq %rax, %rsi
leaq -0x3e8(%rbp), %rdi
callq 0xf62b0
movq -0x848(%rbp), %rdi
subq $-0x80, %rdi
callq 0x1996e0
jmp 0x293dec
movq -0x310(%rbp), %rdi
callq 0xbdca0
movq %rax, %rsi
movq (%rsi), %rax
movq 0x20(%rax), %rax
leaq -0x420(%rbp), %rdi
callq *%rax
jmp 0x293e0d
leaq -0x420(%rbp), %rax
movq %rax, -0x3f0(%rbp)
leaq -0x3e8(%rbp), %rdi
callq 0xbdca0
movq %rax, %rsi
movq (%rsi), %rax
movq 0x20(%rax), %rax
leaq -0x450(%rbp), %rdi
callq *%rax
jmp 0x293e3c
movq -0x3f0(%rbp), %rsi
leaq -0x450(%rbp), %rdi
callq 0x294f70
movb %al, -0x891(%rbp)
jmp 0x293e57
leaq -0x450(%rbp), %rdi
callq 0x89830
movb -0x891(%rbp), %al
testb $0x1, %al
jne 0x293e72
jmp 0x294184
movb $0x1, -0x4f1(%rbp)
movl $0x10, %edi
callq 0x36700
movq %rax, -0x8a0(%rbp)
movq -0x320(%rbp), %rsi
leaq -0x490(%rbp), %rdi
callq 0xb3da0
jmp 0x293e9f
movq -0x310(%rbp), %rdi
callq 0xbdca0
movq %rax, %rsi
movq (%rsi), %rax
movq 0x38(%rax), %rax
leaq -0x4b0(%rbp), %rdi
callq *%rax
jmp 0x293ec0
movq -0x3d0(%rbp), %rax
movq (%rax), %rsi
leaq -0x4d0(%rbp), %rdi
callq 0xb3da0
jmp 0x293ed8
leaq -0x3e8(%rbp), %rdi
callq 0xbdca0
movq %rax, %rsi
movq (%rsi), %rax
movq 0x38(%rax), %rax
leaq -0x4f0(%rbp), %rdi
callq *%rax
jmp 0x293ef9
leaq -0x470(%rbp), %rax
movq %rax, -0x30(%rbp)
leaq 0xa54bb(%rip), %rax # 0x3393c6
movq %rax, -0x38(%rbp)
leaq -0x490(%rbp), %rax
movq %rax, -0x40(%rbp)
leaq -0x4b0(%rbp), %rax
movq %rax, -0x48(%rbp)
leaq -0x4d0(%rbp), %rax
movq %rax, -0x50(%rbp)
leaq -0x4f0(%rbp), %rax
movq %rax, -0x58(%rbp)
movq -0x38(%rbp), %rsi
movq -0x40(%rbp), %rdx
movq -0x48(%rbp), %rcx
movq -0x50(%rbp), %r8
movq -0x58(%rbp), %r9
leaq -0xa0(%rbp), %rdi
callq 0x296650
jmp 0x293f5d
leaq -0xa0(%rbp), %rax
movq %rax, -0x60(%rbp)
movq -0x38(%rbp), %rdi
callq 0xcc610
movq %rdx, -0x8b0(%rbp)
movq %rax, -0x8a8(%rbp)
jmp 0x293f81
movq -0x8b0(%rbp), %rax
movq -0x8a8(%rbp), %rcx
movq %rcx, -0xb0(%rbp)
movq %rax, -0xa8(%rbp)
movq -0x60(%rbp), %rax
leaq -0xc0(%rbp), %rcx
movq %rcx, -0x20(%rbp)
movq %rax, -0x28(%rbp)
movq -0x20(%rbp), %rcx
movq -0x28(%rbp), %rax
movq %rcx, -0x10(%rbp)
movq %rax, -0x18(%rbp)
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rax
movq %rax, -0x8(%rbp)
movq -0x8(%rbp), %rdx
movl $0xdddd, %esi # imm = 0xDDDD
callq 0xcc8d0
movq -0xb0(%rbp), %rsi
movq -0xa8(%rbp), %rdx
movq -0xc0(%rbp), %rcx
movq -0xb8(%rbp), %r8
leaq -0x470(%rbp), %rdi
callq 0x31ba00
jmp 0x294004
jmp 0x294006
movq -0x8a0(%rbp), %rdi
leaq -0x470(%rbp), %rsi
callq 0x1e5d00
movq -0x8a0(%rbp), %rdi
movb $0x0, -0x4f1(%rbp)
leaq 0x20c6e2(%rip), %rsi # 0x4a0710
leaq -0x1db1b5(%rip), %rdx # 0xb8e80
callq 0x36b70
jmp 0x294dea
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x350(%rbp)
movl %eax, -0x354(%rbp)
leaq -0x3c8(%rbp), %rdi
callq 0x37610
jmp 0x294dde
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x350(%rbp)
movl %eax, -0x354(%rbp)
jmp 0x294dc7
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x350(%rbp)
movl %eax, -0x354(%rbp)
jmp 0x294dbb
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x350(%rbp)
movl %eax, -0x354(%rbp)
leaq -0x450(%rbp), %rdi
callq 0x89830
jmp 0x294dbb
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x350(%rbp)
movl %eax, -0x354(%rbp)
jmp 0x294168
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x350(%rbp)
movl %eax, -0x354(%rbp)
jmp 0x29415c
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x350(%rbp)
movl %eax, -0x354(%rbp)
jmp 0x294150
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x350(%rbp)
movl %eax, -0x354(%rbp)
jmp 0x294144
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x350(%rbp)
movl %eax, -0x354(%rbp)
jmp 0x294138
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x350(%rbp)
movl %eax, -0x354(%rbp)
leaq -0x470(%rbp), %rdi
callq 0x37610
leaq -0x4f0(%rbp), %rdi
callq 0x37610
leaq -0x4d0(%rbp), %rdi
callq 0x37610
leaq -0x4b0(%rbp), %rdi
callq 0x37610
leaq -0x490(%rbp), %rdi
callq 0x37610
testb $0x1, -0x4f1(%rbp)
jne 0x294173
jmp 0x29417f
movq -0x8a0(%rbp), %rdi
callq 0x37000
jmp 0x294dbb
movq -0x3f0(%rbp), %rax
movq %rax, -0x500(%rbp)
movq -0x500(%rbp), %rdi
callq 0xbc440
movq %rax, -0x508(%rbp)
movq -0x500(%rbp), %rdi
callq 0x82ea0
movq %rax, -0x510(%rbp)
leaq -0x508(%rbp), %rdi
leaq -0x510(%rbp), %rsi
callq 0x82e40
testb $0x1, %al
jne 0x2941d4
jmp 0x2945b5
leaq -0x508(%rbp), %rdi
callq 0xbc470
movq %rax, -0x518(%rbp)
movq -0x310(%rbp), %rdi
callq 0xbdca0
movq %rax, %rsi
movq -0x518(%rbp), %rdx
movq (%rsi), %rax
movq 0x10(%rax), %rax
leaq -0x540(%rbp), %rdi
callq *%rax
jmp 0x29420f
leaq -0x3e8(%rbp), %rdi
callq 0xbdca0
movq %rax, %rsi
movq -0x518(%rbp), %rdx
movq (%rsi), %rax
movq 0x10(%rax), %rax
leaq -0x568(%rbp), %rdi
callq *%rax
jmp 0x294237
leaq -0x540(%rbp), %rdi
leaq -0x568(%rbp), %rsi
callq 0x294fa0
movb %al, -0x8b1(%rbp)
jmp 0x294252
leaq -0x568(%rbp), %rdi
callq 0xbe190
leaq -0x540(%rbp), %rdi
callq 0xbe190
movb -0x8b1(%rbp), %al
testb $0x1, %al
jne 0x294279
jmp 0x2945a2
movb $0x1, -0x609(%rbp)
movl $0x10, %edi
callq 0x36700
movq %rax, -0x8c0(%rbp)
movq -0x320(%rbp), %rsi
leaq -0x5a8(%rbp), %rdi
callq 0xb3da0
jmp 0x2942a6
movq -0x310(%rbp), %rdi
callq 0xbdca0
movq %rax, %rsi
movq (%rsi), %rax
movq 0x38(%rax), %rax
leaq -0x5c8(%rbp), %rdi
callq *%rax
jmp 0x2942c7
movq -0x3d0(%rbp), %rax
movq (%rax), %rsi
leaq -0x5e8(%rbp), %rdi
callq 0xb3da0
jmp 0x2942df
leaq -0x3e8(%rbp), %rdi
callq 0xbdca0
movq %rax, %rsi
movq (%rsi), %rax
movq 0x38(%rax), %rax
leaq -0x608(%rbp), %rdi
callq *%rax
jmp 0x294300
leaq -0x588(%rbp), %rax
movq %rax, -0xf0(%rbp)
leaq 0xa50b1(%rip), %rax # 0x3393c6
movq %rax, -0xf8(%rbp)
leaq -0x5a8(%rbp), %rax
movq %rax, -0x100(%rbp)
leaq -0x5c8(%rbp), %rax
movq %rax, -0x108(%rbp)
leaq -0x5e8(%rbp), %rax
movq %rax, -0x110(%rbp)
leaq -0x608(%rbp), %rax
movq %rax, -0x118(%rbp)
movq -0xf8(%rbp), %rsi
movq -0x100(%rbp), %rdx
movq -0x108(%rbp), %rcx
movq -0x110(%rbp), %r8
movq -0x118(%rbp), %r9
leaq -0x160(%rbp), %rdi
callq 0x296650
jmp 0x294385
leaq -0x160(%rbp), %rax
movq %rax, -0x120(%rbp)
movq -0xf8(%rbp), %rdi
callq 0xcc610
movq %rdx, -0x8d0(%rbp)
movq %rax, -0x8c8(%rbp)
jmp 0x2943af
movq -0x8d0(%rbp), %rax
movq -0x8c8(%rbp), %rcx
movq %rcx, -0x170(%rbp)
movq %rax, -0x168(%rbp)
movq -0x120(%rbp), %rax
leaq -0x180(%rbp), %rcx
movq %rcx, -0xe0(%rbp)
movq %rax, -0xe8(%rbp)
movq -0xe0(%rbp), %rcx
movq -0xe8(%rbp), %rax
movq %rcx, -0xd0(%rbp)
movq %rax, -0xd8(%rbp)
movq -0xd0(%rbp), %rdi
movq -0xd8(%rbp), %rax
movq %rax, -0xc8(%rbp)
movq -0xc8(%rbp), %rdx
movl $0xdddd, %esi # imm = 0xDDDD
callq 0xcc8d0
movq -0x170(%rbp), %rsi
movq -0x168(%rbp), %rdx
movq -0x180(%rbp), %rcx
movq -0x178(%rbp), %r8
leaq -0x588(%rbp), %rdi
callq 0x31ba00
jmp 0x294453
jmp 0x294455
movq -0x8c0(%rbp), %rdi
leaq -0x588(%rbp), %rsi
callq 0x1e5d00
movq -0x8c0(%rbp), %rdi
movb $0x0, -0x609(%rbp)
leaq 0x20c293(%rip), %rsi # 0x4a0710
leaq -0x1db604(%rip), %rdx # 0xb8e80
callq 0x36b70
jmp 0x294dea
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x350(%rbp)
movl %eax, -0x354(%rbp)
jmp 0x2944c0
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x350(%rbp)
movl %eax, -0x354(%rbp)
leaq -0x568(%rbp), %rdi
callq 0xbe190
leaq -0x540(%rbp), %rdi
callq 0xbe190
jmp 0x294dbb
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x350(%rbp)
movl %eax, -0x354(%rbp)
jmp 0x294586
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x350(%rbp)
movl %eax, -0x354(%rbp)
jmp 0x29457a
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x350(%rbp)
movl %eax, -0x354(%rbp)
jmp 0x29456e
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x350(%rbp)
movl %eax, -0x354(%rbp)
jmp 0x294562
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x350(%rbp)
movl %eax, -0x354(%rbp)
jmp 0x294556
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x350(%rbp)
movl %eax, -0x354(%rbp)
leaq -0x588(%rbp), %rdi
callq 0x37610
leaq -0x608(%rbp), %rdi
callq 0x37610
leaq -0x5e8(%rbp), %rdi
callq 0x37610
leaq -0x5c8(%rbp), %rdi
callq 0x37610
leaq -0x5a8(%rbp), %rdi
callq 0x37610
testb $0x1, -0x609(%rbp)
jne 0x294591
jmp 0x29459d
movq -0x8c0(%rbp), %rdi
callq 0x37000
jmp 0x294dbb
jmp 0x2945a4
leaq -0x508(%rbp), %rdi
callq 0xbc6f0
jmp 0x2941b8
movq -0x310(%rbp), %rdi
callq 0xbdca0
movq %rax, %rsi
movq (%rsi), %rax
movq 0x28(%rax), %rax
leaq -0x648(%rbp), %rdi
callq *%rax
jmp 0x2945d6
leaq -0x648(%rbp), %rax
movq %rax, -0x618(%rbp)
leaq -0x3e8(%rbp), %rdi
callq 0xbdca0
movq %rax, %rsi
movq (%rsi), %rax
movq 0x28(%rax), %rax
leaq -0x678(%rbp), %rdi
callq *%rax
jmp 0x294605
movq -0x618(%rbp), %rsi
leaq -0x678(%rbp), %rdi
callq 0x294f70
movb %al, -0x8d1(%rbp)
jmp 0x294620
leaq -0x678(%rbp), %rdi
callq 0x89830
movb -0x8d1(%rbp), %al
testb $0x1, %al
jne 0x29463b
jmp 0x29495b
movb $0x1, -0x719(%rbp)
movl $0x10, %edi
callq 0x36700
movq %rax, -0x8e0(%rbp)
movq -0x320(%rbp), %rsi
leaq -0x6b8(%rbp), %rdi
callq 0xb3da0
jmp 0x294668
movq -0x310(%rbp), %rdi
callq 0xbdca0
movq %rax, %rsi
movq (%rsi), %rax
movq 0x38(%rax), %rax
leaq -0x6d8(%rbp), %rdi
callq *%rax
jmp 0x294689
movq -0x3d0(%rbp), %rax
movq (%rax), %rsi
leaq -0x6f8(%rbp), %rdi
callq 0xb3da0
jmp 0x2946a1
leaq -0x3e8(%rbp), %rdi
callq 0xbdca0
movq %rax, %rsi
movq (%rsi), %rax
movq 0x38(%rax), %rax
leaq -0x718(%rbp), %rdi
callq *%rax
jmp 0x2946c2
leaq -0x698(%rbp), %rax
movq %rax, -0x1b0(%rbp)
leaq 0xa4cef(%rip), %rax # 0x3393c6
movq %rax, -0x1b8(%rbp)
leaq -0x6b8(%rbp), %rax
movq %rax, -0x1c0(%rbp)
leaq -0x6d8(%rbp), %rax
movq %rax, -0x1c8(%rbp)
leaq -0x6f8(%rbp), %rax
movq %rax, -0x1d0(%rbp)
leaq -0x718(%rbp), %rax
movq %rax, -0x1d8(%rbp)
movq -0x1b8(%rbp), %rsi
movq -0x1c0(%rbp), %rdx
movq -0x1c8(%rbp), %rcx
movq -0x1d0(%rbp), %r8
movq -0x1d8(%rbp), %r9
leaq -0x220(%rbp), %rdi
callq 0x296650
jmp 0x294747
leaq -0x220(%rbp), %rax
movq %rax, -0x1e0(%rbp)
movq -0x1b8(%rbp), %rdi
callq 0xcc610
movq %rdx, -0x8f0(%rbp)
movq %rax, -0x8e8(%rbp)
jmp 0x294771
movq -0x8f0(%rbp), %rax
movq -0x8e8(%rbp), %rcx
movq %rcx, -0x230(%rbp)
movq %rax, -0x228(%rbp)
movq -0x1e0(%rbp), %rax
leaq -0x240(%rbp), %rcx
movq %rcx, -0x1a0(%rbp)
movq %rax, -0x1a8(%rbp)
movq -0x1a0(%rbp), %rcx
movq -0x1a8(%rbp), %rax
movq %rcx, -0x190(%rbp)
movq %rax, -0x198(%rbp)
movq -0x190(%rbp), %rdi
movq -0x198(%rbp), %rax
movq %rax, -0x188(%rbp)
movq -0x188(%rbp), %rdx
movl $0xdddd, %esi # imm = 0xDDDD
callq 0xcc8d0
movq -0x230(%rbp), %rsi
movq -0x228(%rbp), %rdx
movq -0x240(%rbp), %rcx
movq -0x238(%rbp), %r8
leaq -0x698(%rbp), %rdi
callq 0x31ba00
jmp 0x294815
jmp 0x294817
movq -0x8e0(%rbp), %rdi
leaq -0x698(%rbp), %rsi
callq 0x1e5d00
movq -0x8e0(%rbp), %rdi
movb $0x0, -0x719(%rbp)
leaq 0x20bed1(%rip), %rsi # 0x4a0710
leaq -0x1db9c6(%rip), %rdx # 0xb8e80
callq 0x36b70
jmp 0x294dea
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x350(%rbp)
movl %eax, -0x354(%rbp)
jmp 0x294daf
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x350(%rbp)
movl %eax, -0x354(%rbp)
leaq -0x678(%rbp), %rdi
callq 0x89830
jmp 0x294daf
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x350(%rbp)
movl %eax, -0x354(%rbp)
jmp 0x29493f
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x350(%rbp)
movl %eax, -0x354(%rbp)
jmp 0x294933
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x350(%rbp)
movl %eax, -0x354(%rbp)
jmp 0x294927
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x350(%rbp)
movl %eax, -0x354(%rbp)
jmp 0x29491b
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x350(%rbp)
movl %eax, -0x354(%rbp)
jmp 0x29490f
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x350(%rbp)
movl %eax, -0x354(%rbp)
leaq -0x698(%rbp), %rdi
callq 0x37610
leaq -0x718(%rbp), %rdi
callq 0x37610
leaq -0x6f8(%rbp), %rdi
callq 0x37610
leaq -0x6d8(%rbp), %rdi
callq 0x37610
leaq -0x6b8(%rbp), %rdi
callq 0x37610
testb $0x1, -0x719(%rbp)
jne 0x29494a
jmp 0x294956
movq -0x8e0(%rbp), %rdi
callq 0x37000
jmp 0x294daf
movq -0x618(%rbp), %rax
movq %rax, -0x728(%rbp)
movq -0x728(%rbp), %rdi
callq 0xbc440
movq %rax, -0x730(%rbp)
movq -0x728(%rbp), %rdi
callq 0x82ea0
movq %rax, -0x738(%rbp)
leaq -0x730(%rbp), %rdi
leaq -0x738(%rbp), %rsi
callq 0x82e40
testb $0x1, %al
jne 0x2949ab
jmp 0x294d89
leaq -0x730(%rbp), %rdi
callq 0xbc470
movq %rax, -0x740(%rbp)
movq -0x310(%rbp), %rdi
callq 0xbdca0
movq %rax, %rsi
movq -0x740(%rbp), %rdx
movq (%rsi), %rax
movq 0x18(%rax), %rax
leaq -0x760(%rbp), %rdi
callq *%rax
jmp 0x2949e6
leaq -0x3e8(%rbp), %rdi
callq 0xbdca0
movq %rax, %rsi
movq -0x740(%rbp), %rdx
movq (%rsi), %rax
movq 0x18(%rax), %rax
leaq -0x780(%rbp), %rdi
callq *%rax
jmp 0x294a0e
leaq -0x760(%rbp), %rdi
leaq -0x780(%rbp), %rsi
callq 0x294fd0
movb %al, -0x8f1(%rbp)
jmp 0x294a29
leaq -0x780(%rbp), %rdi
callq 0xbdf50
leaq -0x760(%rbp), %rdi
callq 0xbdf50
movb -0x8f1(%rbp), %al
testb $0x1, %al
jne 0x294a50
jmp 0x294d76
movb $0x1, -0x821(%rbp)
movl $0x10, %edi
callq 0x36700
movq %rax, -0x900(%rbp)
movq -0x320(%rbp), %rsi
leaq -0x7c0(%rbp), %rdi
callq 0xb3da0
jmp 0x294a7d
movq -0x310(%rbp), %rdi
callq 0xbdca0
movq %rax, %rsi
movq (%rsi), %rax
movq 0x38(%rax), %rax
leaq -0x7e0(%rbp), %rdi
callq *%rax
jmp 0x294a9e
movq -0x3d0(%rbp), %rax
movq (%rax), %rsi
leaq -0x800(%rbp), %rdi
callq 0xb3da0
jmp 0x294ab6
leaq -0x3e8(%rbp), %rdi
callq 0xbdca0
movq %rax, %rsi
movq (%rsi), %rax
movq 0x38(%rax), %rax
leaq -0x820(%rbp), %rdi
callq *%rax
jmp 0x294ad7
leaq -0x7a0(%rbp), %rax
movq %rax, -0x270(%rbp)
leaq 0xa48da(%rip), %rax # 0x3393c6
movq %rax, -0x278(%rbp)
leaq -0x7c0(%rbp), %rax
movq %rax, -0x280(%rbp)
leaq -0x7e0(%rbp), %rax
movq %rax, -0x288(%rbp)
leaq -0x800(%rbp), %rax
movq %rax, -0x290(%rbp)
leaq -0x820(%rbp), %rax
movq %rax, -0x298(%rbp)
movq -0x278(%rbp), %rsi
movq -0x280(%rbp), %rdx
movq -0x288(%rbp), %rcx
movq -0x290(%rbp), %r8
movq -0x298(%rbp), %r9
leaq -0x2e0(%rbp), %rdi
callq 0x296650
jmp 0x294b5c
leaq -0x2e0(%rbp), %rax
movq %rax, -0x2a0(%rbp)
movq -0x278(%rbp), %rdi
callq 0xcc610
movq %rdx, -0x910(%rbp)
movq %rax, -0x908(%rbp)
jmp 0x294b86
movq -0x910(%rbp), %rax
movq -0x908(%rbp), %rcx
movq %rcx, -0x2f0(%rbp)
movq %rax, -0x2e8(%rbp)
movq -0x2a0(%rbp), %rax
leaq -0x300(%rbp), %rcx
movq %rcx, -0x260(%rbp)
movq %rax, -0x268(%rbp)
movq -0x260(%rbp), %rcx
movq -0x268(%rbp), %rax
movq %rcx, -0x250(%rbp)
movq %rax, -0x258(%rbp)
movq -0x250(%rbp), %rdi
movq -0x258(%rbp), %rax
movq %rax, -0x248(%rbp)
movq -0x248(%rbp), %rdx
movl $0xdddd, %esi # imm = 0xDDDD
callq 0xcc8d0
movq -0x2f0(%rbp), %rsi
movq -0x2e8(%rbp), %rdx
movq -0x300(%rbp), %rcx
movq -0x2f8(%rbp), %r8
leaq -0x7a0(%rbp), %rdi
callq 0x31ba00
jmp 0x294c2a
jmp 0x294c2c
movq -0x900(%rbp), %rdi
leaq -0x7a0(%rbp), %rsi
callq 0x1e5d00
movq -0x900(%rbp), %rdi
movb $0x0, -0x821(%rbp)
leaq 0x20babc(%rip), %rsi # 0x4a0710
leaq -0x1dbddb(%rip), %rdx # 0xb8e80
callq 0x36b70
jmp 0x294dea
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x350(%rbp)
movl %eax, -0x354(%rbp)
jmp 0x294c97
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x350(%rbp)
movl %eax, -0x354(%rbp)
leaq -0x780(%rbp), %rdi
callq 0xbdf50
leaq -0x760(%rbp), %rdi
callq 0xbdf50
jmp 0x294daf
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x350(%rbp)
movl %eax, -0x354(%rbp)
jmp 0x294d5d
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x350(%rbp)
movl %eax, -0x354(%rbp)
jmp 0x294d51
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x350(%rbp)
movl %eax, -0x354(%rbp)
jmp 0x294d45
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x350(%rbp)
movl %eax, -0x354(%rbp)
jmp 0x294d39
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x350(%rbp)
movl %eax, -0x354(%rbp)
jmp 0x294d2d
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x350(%rbp)
movl %eax, -0x354(%rbp)
leaq -0x7a0(%rbp), %rdi
callq 0x37610
leaq -0x820(%rbp), %rdi
callq 0x37610
leaq -0x800(%rbp), %rdi
callq 0x37610
leaq -0x7e0(%rbp), %rdi
callq 0x37610
leaq -0x7c0(%rbp), %rdi
callq 0x37610
testb $0x1, -0x821(%rbp)
jne 0x294d68
jmp 0x294d74
movq -0x900(%rbp), %rdi
callq 0x37000
jmp 0x294daf
jmp 0x294d78
leaq -0x730(%rbp), %rdi
callq 0xbc6f0
jmp 0x29498f
leaq -0x648(%rbp), %rdi
callq 0x89830
leaq -0x420(%rbp), %rdi
callq 0x89830
leaq -0x3e8(%rbp), %rdi
callq 0xf6380
jmp 0x294dd5
leaq -0x648(%rbp), %rdi
callq 0x89830
leaq -0x420(%rbp), %rdi
callq 0x89830
leaq -0x3e8(%rbp), %rdi
callq 0xf6380
jmp 0x294dde
addq $0x910, %rsp # imm = 0x910
popq %rbp
retq
movq -0x350(%rbp), %rdi
callq 0x36bd0
nopw (%rax,%rax)
| /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::string return_str;
if (stmt->has_return_value()) {
auto handler = stmt->function_handler();
auto width = 32u;
if (handler) {
width = handler->width();
}
return_str = "logic" + get_width_str(width) + " ";
} else {
return_str = "void ";
}
stream_ << "function " << return_str;
}
stream_ << stmt->function_name();
if (stmt->ports().empty()) {
stream_ << ";" << std::endl;
} else {
stream_ << "(" << stream_.endl();
}
indent_++;
uint64_t count = 0;
auto ports = stmt->ports();
// if the ordering is specified, use the ordering
// otherwise use the default map ordering, which is sorted alphabetically
std::vector<std::string> port_names;
port_names.reserve(ports.size());
auto ordering = stmt->port_ordering();
for (auto const& iter : ports) port_names.emplace_back(iter.first);
if (!ordering.empty()) {
if (ordering.size() != ports.size())
throw InternalException("Port ordering size mismatches ports");
// sort the list
std::sort(port_names.begin(), port_names.end(), [&](auto const& lhs, auto const& rhs) {
return ordering.at(lhs) < ordering.at(rhs);
});
}
for (auto const& port_name : port_names) {
auto* port = ports.at(port_name).get();
if (generator_->debug) port->verilog_ln = stream_.line_no();
stream_ << indent() << get_port_str(port);
if (++count != ports.size())
stream_ << "," << stream_.endl();
else
stream_ << stream_.endl() << ");" << stream_.endl();
}
indent_--;
stream_ << "begin" << stream_.endl();
indent_++;
for (uint64_t i = 0; i < stmt->child_count(); i++) {
dispatch_node(stmt->get_child(i));
}
indent_--;
auto const* end_token = stmt->is_task() ? "endtask" : "endfunction";
stream_ << indent() << "end" << stream_.endl() << end_token << stream_.endl();
} | 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, %al
jne 0x29fb9f
jmp 0x29fba4
jmp 0x2a06ae
movq -0x238(%rbp), %rax
movq 0x48(%rax), %rax
testb $0x1, 0xbc(%rax)
je 0x29fbd4
movq -0x238(%rbp), %rdi
addq $0xe8, %rdi
callq 0x2b8000
movl %eax, %ecx
movq -0x10(%rbp), %rax
movl %ecx, 0x20(%rax)
movq -0x10(%rbp), %rdi
movq (%rdi), %rax
callq *0x88(%rax)
testb $0x1, %al
jne 0x29fbe7
jmp 0x29fc0a
movq -0x238(%rbp), %rdi
addq $0xe8, %rdi
addq $0x10, %rdi
leaq 0x9a5c7(%rip), %rsi # 0x33a1c7
callq 0x36a60
jmp 0x29fdc4
leaq -0x30(%rbp), %rdi
callq 0x36620
movq -0x10(%rbp), %rdi
movq (%rdi), %rax
movq 0x70(%rax), %rax
callq *%rax
movb %al, -0x239(%rbp)
jmp 0x29fc28
movb -0x239(%rbp), %al
testb $0x1, %al
jne 0x29fc37
jmp 0x29fd62
movq -0x10(%rbp), %rsi
leaq -0x50(%rbp), %rdi
callq 0x129280
jmp 0x29fc46
movl $0x20, -0x54(%rbp)
leaq -0x50(%rbp), %rdi
callq 0xbcf40
testb $0x1, %al
jne 0x29fc5c
jmp 0x29fca6
leaq -0x50(%rbp), %rdi
callq 0xb9d10
movq %rax, %rdi
movq (%rdi), %rax
movq 0x38(%rax), %rax
callq *%rax
movl %eax, -0x240(%rbp)
jmp 0x29fc79
movl -0x240(%rbp), %eax
movl %eax, -0x54(%rbp)
jmp 0x29fca6
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x38(%rbp)
movl %eax, -0x3c(%rbp)
jmp 0x29fdb6
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x38(%rbp)
movl %eax, -0x3c(%rbp)
jmp 0x29fd57
movl -0x54(%rbp), %esi
leaq -0xb8(%rbp), %rdi
callq 0x29f700
jmp 0x29fcb7
leaq 0x990e1(%rip), %rsi # 0x338d9f
leaq -0x98(%rbp), %rdi
leaq -0xb8(%rbp), %rdx
callq 0x859f0
jmp 0x29fcd3
leaq 0x8ec2e(%rip), %rdx # 0x32e908
leaq -0x78(%rbp), %rdi
leaq -0x98(%rbp), %rsi
callq 0x82ed0
jmp 0x29fcec
leaq -0x30(%rbp), %rdi
leaq -0x78(%rbp), %rsi
callq 0x369a0
leaq -0x78(%rbp), %rdi
callq 0x37610
leaq -0x98(%rbp), %rdi
callq 0x37610
leaq -0xb8(%rbp), %rdi
callq 0x37610
leaq -0x50(%rbp), %rdi
callq 0x478f0
jmp 0x29fd76
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x38(%rbp)
movl %eax, -0x3c(%rbp)
jmp 0x29fd4b
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x38(%rbp)
movl %eax, -0x3c(%rbp)
leaq -0x98(%rbp), %rdi
callq 0x37610
leaq -0xb8(%rbp), %rdi
callq 0x37610
leaq -0x50(%rbp), %rdi
callq 0x478f0
jmp 0x29fdb6
leaq 0x9906b(%rip), %rsi # 0x338dd4
leaq -0x30(%rbp), %rdi
callq 0x36730
jmp 0x29fd74
jmp 0x29fd76
movq -0x238(%rbp), %rdi
addq $0xf8, %rdi
leaq 0x995b1(%rip), %rsi # 0x33933c
callq 0x36a60
movq %rax, -0x248(%rbp)
jmp 0x29fd99
movq -0x248(%rbp), %rdi
leaq -0x30(%rbp), %rsi
callq 0x36580
jmp 0x29fdab
leaq -0x30(%rbp), %rdi
callq 0x37610
jmp 0x29fdc4
leaq -0x30(%rbp), %rdi
callq 0x37610
jmp 0x2a06db
movq -0x238(%rbp), %rax
addq $0xf8, %rax
movq %rax, -0x258(%rbp)
movq -0x10(%rbp), %rsi
leaq -0xd8(%rbp), %rdi
movq %rdi, -0x250(%rbp)
callq 0xbbcb0
movq -0x258(%rbp), %rdi
movq -0x250(%rbp), %rsi
callq 0x36580
jmp 0x29fe04
leaq -0xd8(%rbp), %rdi
callq 0x37610
movq -0x10(%rbp), %rdi
callq 0x129120
movq %rax, %rdi
callq 0x2b8ae0
testb $0x1, %al
jne 0x29fe27
jmp 0x29fe73
movq -0x238(%rbp), %rdi
addq $0xe8, %rdi
addq $0x10, %rdi
leaq 0x9a513(%rip), %rsi # 0x33a353
callq 0x36a60
movq %rax, %rdi
movq 0x20e169(%rip), %rsi # 0x4adfb8
callq 0x37290
jmp 0x29feba
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x38(%rbp)
movl %eax, -0x3c(%rbp)
leaq -0xd8(%rbp), %rdi
callq 0x37610
jmp 0x2a06db
movq -0x238(%rbp), %rdi
addq $0xe8, %rdi
addq $0x10, %rdi
leaq 0x8ec0e(%rip), %rsi # 0x32ea9a
callq 0x36a60
movq -0x238(%rbp), %rdi
movq %rax, -0x260(%rbp)
addq $0xe8, %rdi
callq 0x2b7c50
movq -0x260(%rbp), %rdi
movsbl %al, %esi
callq 0x36c00
movq -0x238(%rbp), %rax
movq 0x10(%rax), %rcx
incq %rcx
movq %rcx, 0x10(%rax)
movq $0x0, -0xe0(%rbp)
movq -0x10(%rbp), %rdi
callq 0x129120
movq %rax, %rsi
leaq -0x110(%rbp), %rdi
movq %rdi, -0x270(%rbp)
callq 0x129140
leaq -0x128(%rbp), %rdi
movq %rdi, -0x268(%rbp)
callq 0x83330
movq -0x270(%rbp), %rdi
callq 0x168a10
movq -0x268(%rbp), %rdi
movq %rax, %rsi
callq 0xb8ea0
jmp 0x29ff26
movq -0x10(%rbp), %rdi
callq 0x129740
movq %rax, -0x278(%rbp)
jmp 0x29ff38
movq -0x278(%rbp), %rsi
leaq -0x158(%rbp), %rdi
callq 0x129780
jmp 0x29ff4d
leaq -0x110(%rbp), %rax
movq %rax, -0x160(%rbp)
movq -0x160(%rbp), %rdi
callq 0x129170
movq %rax, -0x168(%rbp)
movq -0x160(%rbp), %rdi
callq 0x1291a0
movq %rax, -0x170(%rbp)
leaq -0x168(%rbp), %rdi
leaq -0x170(%rbp), %rsi
callq 0x1291d0
testb $0x1, %al
jne 0x29ff9a
jmp 0x29fff4
leaq -0x168(%rbp), %rdi
callq 0x129200
movq %rax, -0x178(%rbp)
movq -0x178(%rbp), %rsi
leaq -0x128(%rbp), %rdi
callq 0xb8fa0
jmp 0x29ffc2
jmp 0x29ffc4
leaq -0x168(%rbp), %rdi
callq 0x129250
jmp 0x29ff81
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x38(%rbp)
movl %eax, -0x3c(%rbp)
jmp 0x2a06c3
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x38(%rbp)
movl %eax, -0x3c(%rbp)
jmp 0x2a06b7
leaq -0x158(%rbp), %rdi
callq 0x129760
testb $0x1, %al
jne 0x2a0161
leaq -0x158(%rbp), %rdi
callq 0x129800
movq %rax, -0x280(%rbp)
leaq -0x110(%rbp), %rdi
callq 0x168a10
movq %rax, %rcx
movq -0x280(%rbp), %rax
cmpq %rcx, %rax
je 0x2a0108
movb $0x1, -0x19a(%rbp)
movl $0x10, %edi
callq 0x36700
movq %rax, -0x290(%rbp)
leaq -0x199(%rbp), %rdi
movq %rdi, -0x288(%rbp)
callq 0x37190
movq -0x288(%rbp), %rdx
leaq 0x9a15a(%rip), %rsi # 0x33a1cd
leaq -0x198(%rbp), %rdi
callq 0x469d0
jmp 0x2a0081
movq -0x290(%rbp), %rdi
leaq -0x198(%rbp), %rsi
callq 0x1e5cb0
movq -0x290(%rbp), %rdi
movb $0x0, -0x19a(%rbp)
leaq 0x20074f(%rip), %rsi # 0x4a07f8
leaq -0x1e3500(%rip), %rdx # 0xbcbb0
callq 0x36b70
jmp 0x2a06e4
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x38(%rbp)
movl %eax, -0x3c(%rbp)
jmp 0x2a00e0
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x38(%rbp)
movl %eax, -0x3c(%rbp)
leaq -0x198(%rbp), %rdi
callq 0x37610
leaq -0x199(%rbp), %rdi
callq 0x375e0
testb $0x1, -0x19a(%rbp)
jne 0x2a00f7
jmp 0x2a0103
movq -0x290(%rbp), %rdi
callq 0x37000
jmp 0x2a06b7
leaq -0x128(%rbp), %rdi
movq %rdi, -0x298(%rbp)
callq 0x8cc10
movq -0x298(%rbp), %rdi
movq %rax, -0x1a8(%rbp)
callq 0x8ccc0
movq %rax, -0x1b0(%rbp)
leaq -0x158(%rbp), %rax
movq %rax, -0x1b8(%rbp)
movq -0x1a8(%rbp), %rdi
movq -0x1b0(%rbp), %rsi
movq -0x1b8(%rbp), %rdx
callq 0x2a63a0
jmp 0x2a015f
jmp 0x2a0161
leaq -0x128(%rbp), %rax
movq %rax, -0x1c0(%rbp)
movq -0x1c0(%rbp), %rdi
callq 0x8cc10
movq %rax, -0x1c8(%rbp)
movq -0x1c0(%rbp), %rdi
callq 0x8ccc0
movq %rax, -0x1d0(%rbp)
leaq -0x1c8(%rbp), %rdi
leaq -0x1d0(%rbp), %rsi
callq 0xb9400
testb $0x1, %al
jne 0x2a01b1
jmp 0x2a042d
leaq -0x1c8(%rbp), %rdi
callq 0x99280
movq %rax, -0x1d8(%rbp)
movq -0x1d8(%rbp), %rsi
leaq -0x110(%rbp), %rdi
callq 0x1688f0
movq %rax, -0x2a0(%rbp)
jmp 0x2a01e0
movq -0x2a0(%rbp), %rdi
callq 0xbeae0
movq %rax, %rcx
movq -0x238(%rbp), %rax
movq %rcx, -0x1e0(%rbp)
movq 0x48(%rax), %rax
testb $0x1, 0xbc(%rax)
je 0x2a0235
movq -0x238(%rbp), %rdi
addq $0xe8, %rdi
callq 0x2b8000
movl %eax, -0x2a4(%rbp)
jmp 0x2a0225
movl -0x2a4(%rbp), %ecx
movq -0x1e0(%rbp), %rax
movl %ecx, 0x20(%rax)
movq -0x238(%rbp), %rdi
movq %rdi, %rax
addq $0xf8, %rax
movq %rax, -0x2c0(%rbp)
callq 0x29afb0
movq %rdx, -0x2b8(%rbp)
movq %rax, -0x2b0(%rbp)
jmp 0x2a0261
movq -0x2c0(%rbp), %rdi
movq -0x2b8(%rbp), %rax
movq -0x2b0(%rbp), %rcx
movq %rcx, -0x1f0(%rbp)
movq %rax, -0x1e8(%rbp)
movq -0x1f0(%rbp), %rsi
movq -0x1e8(%rbp), %rdx
callq 0x2b7c80
movq %rax, -0x2c8(%rbp)
jmp 0x2a02a0
movq -0x1e0(%rbp), %rsi
leaq -0x210(%rbp), %rdi
callq 0x29b5e0
jmp 0x2a02b5
movq -0x2c8(%rbp), %rdi
leaq -0x210(%rbp), %rsi
callq 0x36580
jmp 0x2a02ca
leaq -0x210(%rbp), %rdi
callq 0x37610
movq -0xe0(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x2d0(%rbp)
movq %rax, -0xe0(%rbp)
leaq -0x110(%rbp), %rdi
callq 0x168a10
movq %rax, %rcx
movq -0x2d0(%rbp), %rax
cmpq %rcx, %rax
je 0x2a0381
movq -0x238(%rbp), %rdi
addq $0xf8, %rdi
leaq 0x8fdef(%rip), %rsi # 0x33010e
callq 0x36a60
movq %rax, -0x2d8(%rbp)
jmp 0x2a032d
movq -0x238(%rbp), %rdi
addq $0xe8, %rdi
callq 0x2b7c50
movb %al, -0x2d9(%rbp)
jmp 0x2a0348
movq -0x2d8(%rbp), %rdi
movb -0x2d9(%rbp), %al
movsbl %al, %esi
callq 0x36c00
jmp 0x2a035f
jmp 0x2a041a
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x38(%rbp)
movl %eax, -0x3c(%rbp)
leaq -0x210(%rbp), %rdi
callq 0x37610
jmp 0x2a06b7
movq -0x238(%rbp), %rax
movq %rax, %rdi
addq $0xe8, %rdi
addq $0xf8, %rax
movq %rax, -0x2e8(%rbp)
callq 0x2b7c50
movb %al, -0x2da(%rbp)
jmp 0x2a03ac
movq -0x2e8(%rbp), %rdi
movb -0x2da(%rbp), %al
movsbl %al, %esi
callq 0x36c00
movq %rax, -0x2f0(%rbp)
jmp 0x2a03ca
movq -0x2f0(%rbp), %rdi
leaq 0x99f7a(%rip), %rsi # 0x33a352
callq 0x36a60
movq %rax, -0x2f8(%rbp)
jmp 0x2a03e6
movq -0x238(%rbp), %rdi
addq $0xe8, %rdi
callq 0x2b7c50
movb %al, -0x2f9(%rbp)
jmp 0x2a0401
movq -0x2f8(%rbp), %rdi
movb -0x2f9(%rbp), %al
movsbl %al, %esi
callq 0x36c00
jmp 0x2a0418
jmp 0x2a041a
jmp 0x2a041c
leaq -0x1c8(%rbp), %rdi
callq 0xb9440
jmp 0x2a0195
movq -0x238(%rbp), %rdi
movq 0x10(%rdi), %rax
decq %rax
movq %rax, 0x10(%rdi)
addq $0xf8, %rdi
leaq 0x99d5a(%rip), %rsi # 0x33a1a7
callq 0x36a60
movq %rax, -0x308(%rbp)
jmp 0x2a045b
movq -0x238(%rbp), %rdi
addq $0xe8, %rdi
callq 0x2b7c50
movb %al, -0x309(%rbp)
jmp 0x2a0476
movq -0x308(%rbp), %rdi
movb -0x309(%rbp), %al
movsbl %al, %esi
callq 0x36c00
jmp 0x2a048d
movq -0x238(%rbp), %rax
movq 0x10(%rax), %rcx
addq $0x1, %rcx
movq %rcx, 0x10(%rax)
movq $0x0, -0x218(%rbp)
movq -0x218(%rbp), %rax
movq %rax, -0x320(%rbp)
movq -0x10(%rbp), %rdi
movq (%rdi), %rax
movq 0x8(%rax), %rax
callq *%rax
movq %rax, -0x318(%rbp)
jmp 0x2a04cf
movq -0x320(%rbp), %rax
movq -0x318(%rbp), %rcx
cmpq %rcx, %rax
jae 0x2a0530
movq -0x10(%rbp), %rdi
movq -0x218(%rbp), %rsi
movq (%rdi), %rax
movq 0x10(%rax), %rax
callq *%rax
movq %rax, -0x328(%rbp)
jmp 0x2a04ff
movq -0x328(%rbp), %rsi
movq -0x238(%rbp), %rdi
movq (%rdi), %rax
movq (%rax), %rax
callq *%rax
jmp 0x2a0517
jmp 0x2a0519
movq -0x218(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x218(%rbp)
jmp 0x2a04ab
movq -0x238(%rbp), %rax
movq 0x10(%rax), %rcx
decq %rcx
movq %rcx, 0x10(%rax)
movq -0x10(%rbp), %rdi
movq (%rdi), %rax
movq 0x88(%rax), %rax
callq *%rax
movb %al, -0x329(%rbp)
jmp 0x2a055a
movq -0x238(%rbp), %rdi
movb -0x329(%rbp), %dl
leaq 0x96ee5(%rip), %rcx # 0x337453
leaq 0x96e61(%rip), %rax # 0x3373d6
testb $0x1, %dl
cmovneq %rcx, %rax
movq %rax, -0x220(%rbp)
movq %rdi, %rax
addq $0xf8, %rax
movq %rax, -0x348(%rbp)
callq 0x29afb0
movq %rdx, -0x340(%rbp)
movq %rax, -0x338(%rbp)
jmp 0x2a05a8
movq -0x348(%rbp), %rdi
movq -0x340(%rbp), %rax
movq -0x338(%rbp), %rcx
movq %rcx, -0x230(%rbp)
movq %rax, -0x228(%rbp)
movq -0x230(%rbp), %rsi
movq -0x228(%rbp), %rdx
callq 0x2b7c80
movq %rax, -0x350(%rbp)
jmp 0x2a05e7
movq -0x350(%rbp), %rdi
leaq 0x99ca0(%rip), %rsi # 0x33a295
callq 0x36a60
movq %rax, -0x358(%rbp)
jmp 0x2a0603
movq -0x238(%rbp), %rdi
addq $0xe8, %rdi
callq 0x2b7c50
movb %al, -0x359(%rbp)
jmp 0x2a061e
movq -0x358(%rbp), %rdi
movb -0x359(%rbp), %al
movsbl %al, %esi
callq 0x36c00
movq %rax, -0x368(%rbp)
jmp 0x2a063c
movq -0x368(%rbp), %rdi
movq -0x220(%rbp), %rsi
callq 0x36a60
movq %rax, -0x370(%rbp)
jmp 0x2a0658
movq -0x238(%rbp), %rdi
addq $0xe8, %rdi
callq 0x2b7c50
movb %al, -0x371(%rbp)
jmp 0x2a0673
movq -0x370(%rbp), %rdi
movb -0x371(%rbp), %al
movsbl %al, %esi
callq 0x36c00
jmp 0x2a068a
leaq -0x158(%rbp), %rdi
callq 0xe4830
leaq -0x128(%rbp), %rdi
callq 0x83350
leaq -0x110(%rbp), %rdi
callq 0xb9700
addq $0x380, %rsp # imm = 0x380
popq %rbp
retq
leaq -0x158(%rbp), %rdi
callq 0xe4830
leaq -0x128(%rbp), %rdi
callq 0x83350
leaq -0x110(%rbp), %rdi
callq 0xb9700
movq -0x38(%rbp), %rdi
callq 0x36bd0
nopw %cs:(%rax,%rax)
| /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()) << ") ";
auto const& then_body = stmt->then_body();
dispatch_node(then_body.get());
auto const& else_body = stmt->else_body();
if (!else_body->empty()) {
// special case where there is another (and only) if statement nested inside the else body
// i.e. the else if case
auto first_stmt = else_body->empty() ? nullptr : else_body->get_stmt(0);
bool skip = else_body->size() == 1 && (first_stmt->type() == StatementType::Assign ||
first_stmt->type() == StatementType::If ||
first_stmt->type() == StatementType::Return);
if (skip) {
stream_ << indent() << "else ";
skip_indent_ = true;
else_body->verilog_ln = stream_.line_no();
dispatch_node((*else_body)[0].get());
} else {
stream_ << indent() << "else ";
dispatch_node(stmt->else_body().get());
}
}
} | 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, 0x20(%rax)
movq -0x10(%rbp), %rsi
leaq -0x20(%rbp), %rdi
callq 0x219920
leaq -0x20(%rbp), %rdi
callq 0xb9d10
movl 0x20(%rax), %eax
movl %eax, -0xe4(%rbp)
leaq -0x20(%rbp), %rdi
callq 0x478f0
movl -0xe4(%rbp), %eax
cmpl $0x0, %eax
jne 0x2a0d0f
movq -0xe0(%rbp), %rdi
addq $0xe8, %rdi
callq 0x2b8000
movl %eax, -0xe8(%rbp)
movq -0x10(%rbp), %rsi
leaq -0x30(%rbp), %rdi
callq 0x219920
leaq -0x30(%rbp), %rdi
callq 0xb9d10
movl -0xe8(%rbp), %ecx
movl %ecx, 0x20(%rax)
leaq -0x30(%rbp), %rdi
callq 0x478f0
jmp 0x2a0d11
movq -0xe0(%rbp), %rdi
movq %rdi, %rax
addq $0xe8, %rax
movq %rax, -0xf8(%rbp)
movq %rdi, %rax
addq $0xf8, %rax
movq %rax, -0x108(%rbp)
callq 0x29afb0
movq -0x108(%rbp), %rdi
movq %rax, -0x40(%rbp)
movq %rdx, -0x38(%rbp)
movq -0x40(%rbp), %rsi
movq -0x38(%rbp), %rdx
callq 0x2b7c80
movq %rax, %rdi
leaq 0x994bc(%rip), %rsi # 0x33a21f
callq 0x36a60
movq %rax, -0x100(%rbp)
movq -0x10(%rbp), %rsi
leaq -0x70(%rbp), %rdi
movq %rdi, -0xf0(%rbp)
callq 0x219920
movq -0xf8(%rbp), %rsi
movq -0xf0(%rbp), %rdx
leaq -0x60(%rbp), %rdi
callq 0x29cee0
jmp 0x2a0d9c
movq -0x100(%rbp), %rdi
leaq -0x60(%rbp), %rsi
callq 0x36580
movq %rax, -0x110(%rbp)
jmp 0x2a0db5
movq -0x110(%rbp), %rdi
leaq 0x9944d(%rip), %rsi # 0x33a210
callq 0x36a60
jmp 0x2a0dca
leaq -0x60(%rbp), %rdi
callq 0x37610
leaq -0x70(%rbp), %rdi
callq 0x478f0
movq -0x10(%rbp), %rdi
callq 0x219960
movq %rax, -0x88(%rbp)
movq -0x88(%rbp), %rdi
callq 0xc0310
movq -0xe0(%rbp), %rdi
movq %rax, %rsi
movq (%rdi), %rax
callq *(%rax)
movq -0x10(%rbp), %rdi
callq 0x219980
movq %rax, -0x90(%rbp)
movq -0x90(%rbp), %rdi
callq 0x1671e0
movq %rax, %rdi
callq 0x24fdc0
testb $0x1, %al
jne 0x2a119a
movq -0x90(%rbp), %rdi
callq 0x1671e0
movq %rax, %rdi
callq 0x24fdc0
testb $0x1, %al
jne 0x2a0e4d
jmp 0x2a0e5f
leaq -0xa0(%rbp), %rdi
xorl %eax, %eax
movl %eax, %esi
callq 0xbedd0
jmp 0x2a0e7e
movq -0x90(%rbp), %rdi
callq 0x1671e0
movq %rax, %rsi
leaq -0xa0(%rbp), %rdi
xorl %eax, %eax
movl %eax, %edx
callq 0x272f40
movq -0x90(%rbp), %rdi
callq 0x1671e0
movq %rax, %rdi
callq 0x166c70
movq %rax, -0x118(%rbp)
jmp 0x2a0e9b
movq -0x118(%rbp), %rcx
xorl %eax, %eax
cmpq $0x1, %rcx
movb %al, -0x119(%rbp)
jne 0x2a0f4c
leaq -0xa0(%rbp), %rdi
callq 0xbcea0
movq %rax, %rdi
callq 0xbedf0
movl %eax, -0x120(%rbp)
jmp 0x2a0ed0
movl -0x120(%rbp), %ecx
movb $0x1, %al
cmpl $0x3, %ecx
movb %al, -0x121(%rbp)
je 0x2a0f40
leaq -0xa0(%rbp), %rdi
callq 0xbcea0
movq %rax, %rdi
callq 0xbedf0
movl %eax, -0x128(%rbp)
jmp 0x2a0eff
movl -0x128(%rbp), %ecx
movb $0x1, %al
cmpl $0x0, %ecx
movb %al, -0x121(%rbp)
je 0x2a0f40
leaq -0xa0(%rbp), %rdi
callq 0xbcea0
movq %rax, %rdi
callq 0xbedf0
movl %eax, -0x12c(%rbp)
jmp 0x2a0f2e
movl -0x12c(%rbp), %eax
cmpl $0x8, %eax
sete %al
movb %al, -0x121(%rbp)
movb -0x121(%rbp), %al
movb %al, -0x119(%rbp)
movb -0x119(%rbp), %al
andb $0x1, %al
movb %al, -0xa1(%rbp)
testb $0x1, -0xa1(%rbp)
je 0x2a10ca
movq -0xe0(%rbp), %rdi
movq %rdi, %rax
addq $0xf8, %rax
movq %rax, -0x148(%rbp)
callq 0x29afb0
movq %rdx, -0x140(%rbp)
movq %rax, -0x138(%rbp)
jmp 0x2a0f93
movq -0x148(%rbp), %rdi
movq -0x140(%rbp), %rax
movq -0x138(%rbp), %rcx
movq %rcx, -0xb8(%rbp)
movq %rax, -0xb0(%rbp)
movq -0xb8(%rbp), %rsi
movq -0xb0(%rbp), %rdx
callq 0x2b7c80
movq %rax, -0x150(%rbp)
jmp 0x2a0fd2
movq -0x150(%rbp), %rdi
leaq 0x9921b(%rip), %rsi # 0x33a1fb
callq 0x36a60
jmp 0x2a0fe7
movq -0xe0(%rbp), %rdi
movb $0x1, 0x50(%rdi)
addq $0xe8, %rdi
callq 0x2b8000
movl %eax, -0x154(%rbp)
jmp 0x2a1006
movq -0x90(%rbp), %rdi
callq 0x1671e0
movl -0x154(%rbp), %ecx
movl %ecx, 0x20(%rax)
movq -0x90(%rbp), %rdi
callq 0x167230
movq %rax, %rsi
leaq -0xc8(%rbp), %rdi
xorl %edx, %edx
callq 0x166cd0
jmp 0x2a103a
leaq -0xc8(%rbp), %rdi
callq 0xbbf40
movq -0xe0(%rbp), %rdi
movq %rax, %rsi
movq (%rdi), %rax
movq (%rax), %rax
callq *%rax
jmp 0x2a105a
leaq -0xc8(%rbp), %rdi
callq 0x47340
jmp 0x2a117e
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x78(%rbp)
movl %eax, -0x7c(%rbp)
jmp 0x2a108e
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x78(%rbp)
movl %eax, -0x7c(%rbp)
leaq -0x60(%rbp), %rdi
callq 0x37610
leaq -0x70(%rbp), %rdi
callq 0x478f0
jmp 0x2a11a3
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x78(%rbp)
movl %eax, -0x7c(%rbp)
jmp 0x2a118c
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x78(%rbp)
movl %eax, -0x7c(%rbp)
leaq -0xc8(%rbp), %rdi
callq 0x47340
jmp 0x2a118c
movq -0xe0(%rbp), %rdi
movq %rdi, %rax
addq $0xf8, %rax
movq %rax, -0x170(%rbp)
callq 0x29afb0
movq %rdx, -0x168(%rbp)
movq %rax, -0x160(%rbp)
jmp 0x2a10f6
movq -0x170(%rbp), %rdi
movq -0x168(%rbp), %rax
movq -0x160(%rbp), %rcx
movq %rcx, -0xd8(%rbp)
movq %rax, -0xd0(%rbp)
movq -0xd8(%rbp), %rsi
movq -0xd0(%rbp), %rdx
callq 0x2b7c80
movq %rax, -0x178(%rbp)
jmp 0x2a1135
movq -0x178(%rbp), %rdi
leaq 0x990b8(%rip), %rsi # 0x33a1fb
callq 0x36a60
jmp 0x2a114a
movq -0x10(%rbp), %rdi
callq 0x219980
movq %rax, -0x180(%rbp)
jmp 0x2a115c
movq -0x180(%rbp), %rdi
callq 0xc0310
movq -0xe0(%rbp), %rdi
movq %rax, %rsi
movq (%rdi), %rax
movq (%rax), %rax
callq *%rax
jmp 0x2a117c
jmp 0x2a117e
leaq -0xa0(%rbp), %rdi
callq 0x47340
jmp 0x2a119a
leaq -0xa0(%rbp), %rdi
callq 0x47340
jmp 0x2a11a3
addq $0x180, %rsp # imm = 0x180
popq %rbp
retq
movq -0x78(%rbp), %rdi
callq 0x36bd0
nopl (%rax)
| /Kuree[P]kratos/src/codegen.cc |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.