hexsha
stringlengths
40
40
size
int64
7
1.05M
ext
stringclasses
13 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
269
max_stars_repo_name
stringlengths
5
108
max_stars_repo_head_hexsha
stringlengths
40
40
max_stars_repo_licenses
listlengths
1
9
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
4
269
max_issues_repo_name
stringlengths
5
116
max_issues_repo_head_hexsha
stringlengths
40
40
max_issues_repo_licenses
listlengths
1
9
max_issues_count
int64
1
67k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
4
269
max_forks_repo_name
stringlengths
5
116
max_forks_repo_head_hexsha
stringlengths
40
40
max_forks_repo_licenses
listlengths
1
9
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
7
1.05M
avg_line_length
float64
1.21
330k
max_line_length
int64
6
990k
alphanum_fraction
float64
0.01
0.99
author_id
stringlengths
2
40
48d213e5a7c3874a240d009fc50b97f41465e1a5
1,137
cpp
C++
ProblemSolving/UpdateIT/main.cpp
vikaspachisia/DataStructuresAndAlgorithms
85aef2715ffa489d1c0d190bcd0442fb336957a2
[ "MIT" ]
null
null
null
ProblemSolving/UpdateIT/main.cpp
vikaspachisia/DataStructuresAndAlgorithms
85aef2715ffa489d1c0d190bcd0442fb336957a2
[ "MIT" ]
null
null
null
ProblemSolving/UpdateIT/main.cpp
vikaspachisia/DataStructuresAndAlgorithms
85aef2715ffa489d1c0d190bcd0442fb336957a2
[ "MIT" ]
null
null
null
//scanf and printf is faster than cin and cout. #include <stdio.h> using namespace std; #define MAX_N 10002 void solve_main_problem() { char testid[10]; int T, ST, VAL, N, U, Q, L, R, D[MAX_N]{}; scanf("%d",&T); for (int t = 0; t < T; t++) { scanf("%s",&testid); scanf("%d",&ST); for (int st = 0; st < ST; st++) { scanf("%d %d", &N, &U); for (int i = 0; i <= N; i++)D[i] = 0; for (int i = 1; i <= U; i++) { scanf("%d %d %d", &L, &R, &VAL); D[L+1] += VAL, D[R + 2] -= VAL; } for (int i = 1; i <= N; i++) { D[i] += D[i - 1]; } printf("%d\n", testid); scanf("%d",&Q); for (int i = 1; i <= Q; i++) { scanf("%d", &VAL); printf("%d", D[VAL+1]); } } } } FILE *inStream, *outStream; void open_unit_test_files() { freopen_s(&inStream, "unit_test_input.txt", "r", stdin); freopen_s(&outStream, "unit_test_output.txt", "w", stdout); //std::ios_base::sync_with_stdio(false); } void close_unit_test_files() { fclose(stdin); fclose(stdout); fclose(inStream); fclose(outStream); } int main() { open_unit_test_files(); solve_main_problem(); close_unit_test_files(); return 0; }
21.055556
80
0.552331
vikaspachisia
48d298b12c587228bb36e2c056b37165c308ee3f
1,920
cpp
C++
examples/xtd.forms.examples/others/form_window_state/src/form_window_state.cpp
BaderEddineOuaich/xtd
6f28634c7949a541d183879d2de18d824ec3c8b1
[ "MIT" ]
1
2022-02-25T16:53:06.000Z
2022-02-25T16:53:06.000Z
examples/xtd.forms.examples/others/form_window_state/src/form_window_state.cpp
leanid/xtd
2e1ea6537218788ca08901faf8915d4100990b53
[ "MIT" ]
null
null
null
examples/xtd.forms.examples/others/form_window_state/src/form_window_state.cpp
leanid/xtd
2e1ea6537218788ca08901faf8915d4100990b53
[ "MIT" ]
null
null
null
#define TRACE #include <xtd/xtd> using namespace xtd; using namespace xtd::forms; class form1 : public form { public: form1() { *this << button_full_screen << button_maximize << button_minimize << button_normal; text("Window state example"); resize += [&] { button_full_screen.enabled(window_state() != form_window_state::full_screen&& window_state() != form_window_state::maximized); button_maximize.enabled(window_state() != form_window_state::maximized&& window_state() != form_window_state::full_screen); button_normal.enabled(window_state() != form_window_state::normal); button_minimize.enabled(window_state() != form_window_state::minimized&& window_state() != form_window_state::full_screen); ctrace << ustring::format("resize: {}, {}", size(), window_state()) << std::endl; }; client_size({410, 200}); window_state(form_window_state::maximized); button_full_screen.location({10, 10}); button_full_screen.text("Full screen"); button_full_screen.width(90); button_full_screen.click += [&] { window_state(form_window_state::full_screen); }; button_maximize.location({110, 10}); button_maximize.text("Maximize"); button_maximize.width(90); button_maximize.click += [&] { window_state(form_window_state::maximized); }; button_normal.location({210, 10}); button_normal.text("Normal"); button_normal.width(90); button_normal.click += [&] { window_state(form_window_state::normal); }; button_minimize.location({310, 10}); button_minimize.text("Minimize"); button_minimize.width(90); button_minimize.click += [&] { window_state(form_window_state::minimized); }; } private: button button_full_screen; button button_maximize; button button_normal; button button_minimize; }; int main() { application::run(form1()); }
30.967742
132
0.68125
BaderEddineOuaich
48d31e8fd116ac94a27d0f06258a4bdd64a08437
1,054
cpp
C++
WonderMake/Logging/ConsoleLogger.cpp
nicolasgustafsson/WonderMake
9661d5dab17cf98e06daf6ea77c5927db54d62f9
[ "MIT" ]
3
2020-03-27T15:25:19.000Z
2022-01-18T14:12:25.000Z
WonderMake/Logging/ConsoleLogger.cpp
nicolasgustafsson/WonderMake
9661d5dab17cf98e06daf6ea77c5927db54d62f9
[ "MIT" ]
null
null
null
WonderMake/Logging/ConsoleLogger.cpp
nicolasgustafsson/WonderMake
9661d5dab17cf98e06daf6ea77c5927db54d62f9
[ "MIT" ]
null
null
null
#include "pch.h" #include "ConsoleLogger.h" #include <iostream> REGISTER_SYSTEM(ConsoleLogger); ConsoleLogger::ConsoleLogger() noexcept : mySubscriber(BindHelper(&ConsoleLogger::OnLogMessage, this)) {} void ConsoleLogger::OnLogMessage(const SLogMessage& aMessage) { if (aMessage.HasTag(TagError)) SetColor(EConsoleColor::Red); else if (aMessage.HasTag(TagWarning)) SetColor(EConsoleColor::Yellow); else if (aMessage.HasTag(TagSuccess)) SetColor(EConsoleColor::Green); else SetColor(EConsoleColor::Default); std::cout << aMessage.LogText << '\n'; } void ConsoleLogger::SetColor(const EConsoleColor aColor) noexcept { auto hConsole = GetStdHandle(STD_OUTPUT_HANDLE); WORD attribute = 0; switch (aColor) { case EConsoleColor::Blue: attribute = 9; break; case EConsoleColor::Green: attribute = 10; break; case EConsoleColor::Yellow: attribute = 14; break; case EConsoleColor::Red: attribute = 12; break; case EConsoleColor::Default: attribute = 7; break; } SetConsoleTextAttribute(hConsole, attribute); }
20.269231
65
0.740987
nicolasgustafsson
48d32b2a5dbfa5a1bcc9a18d46c8b4acbc05e862
14,013
hpp
C++
include/pressio/rom/impl/rom_lspg_steady_traits.hpp
nittaya1990/pressio
22fad15ffc00f3e4d880476a5e60b227ac714ef4
[ "BSD-3-Clause" ]
1
2021-09-24T17:06:51.000Z
2021-09-24T17:06:51.000Z
include/pressio/rom/impl/rom_lspg_steady_traits.hpp
nittaya1990/pressio
22fad15ffc00f3e4d880476a5e60b227ac714ef4
[ "BSD-3-Clause" ]
2
2021-10-03T20:36:28.000Z
2021-10-17T10:26:06.000Z
include/pressio/rom/impl/rom_lspg_steady_traits.hpp
nittaya1990/pressio
22fad15ffc00f3e4d880476a5e60b227ac714ef4
[ "BSD-3-Clause" ]
null
null
null
/* //@HEADER // ************************************************************************ // // rom_lspg_steady_traits.hpp // Pressio // Copyright 2019 // National Technology & Engineering Solutions of Sandia, LLC (NTESS) // // Under the terms of Contract DE-NA0003525 with NTESS, the // U.S. Government retains certain rights in this software. // // Pressio is licensed under BSD-3-Clause terms of use: // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions // are met: // // 1. Redistributions of source code must retain the above copyright // notice, this list of conditions and the following disclaimer. // // 2. Redistributions in binary form must reproduce the above copyright // notice, this list of conditions and the following disclaimer in the // documentation and/or other materials provided with the distribution. // // 3. Neither the name of the copyright holder nor the names of its // contributors may be used to endorse or promote products derived // from this software without specific prior written permission. // // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS // "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT // LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS // FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE // COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, // INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES // (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR // SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, // STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING // IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE // POSSIBILITY OF SUCH DAMAGE. // // Questions? Contact Francesco Rizzi (fnrizzi@sandia.gov) // // ************************************************************************ //@HEADER */ #ifndef ROM_IMPL_ROM_LSPG_STEADY_TRAITS_HPP_ #define ROM_IMPL_ROM_LSPG_STEADY_TRAITS_HPP_ namespace pressio{ namespace rom{ namespace lspg{ namespace impl{ //fwd declare problem class template <int, class ...> class SteadyProblem; template <class FomSystemType, class LspgStateType, class DecoderType> struct CommonTraitsSteady { using fom_system_type = FomSystemType; using scalar_type = typename fom_system_type::scalar_type; using lspg_state_type = LspgStateType; static_assert (::pressio::rom::admissible_lspg_state<lspg_state_type>::value, "Invalid lspg state type"); using decoder_type = DecoderType; using decoder_jac_type = typename decoder_type::jacobian_type; // --------------------- // detect fom state type from decoder // ensure it is consistent with the fom_state_type from the app using fom_state_from_decoder_type = typename decoder_type::fom_state_type; using fom_state_from_adapter_type = typename fom_system_type::state_type; static_assert (std::is_same<fom_state_from_decoder_type, fom_state_from_adapter_type>::value, "The fom state type detected from the fom adapter must match the fom state type used in the decoder"); using fom_state_type = fom_state_from_decoder_type; // --------------------- using fom_residual_type = fom_state_type; using fom_residual_from_adapter_type = typename fom_system_type::residual_type; static_assert (std::is_same<fom_state_type, fom_residual_from_adapter_type>::value, "Currently, the fom state and residual must be of the same type"); // --------------------- /* for steady lspg, the lspg residual is literally the rhs (aka velocity fo us) */ using lspg_residual_type = fom_residual_type; /* lspg_jacobian_t is type to represent dR/dx_rom where R is the residual * dR/dx_rom = df/dxFom * dxFom/dxRom * so df/dxFom = J and dxFom/dxRom = decoder_jacobian * For now, set lspg_jacobian_t to be of same type as decoder_jac_t * not a bad assumption since all matrices are left-applied to decoder_jac_t */ using lspg_jacobian_type = decoder_jac_type; // --------------------- // fom state reconstructor using fom_state_reconstr_type = ::pressio::rom::FomStateReconstructor<decoder_type>; // for steady lspg, we only need to store one FOM state using fom_states_manager_type = ::pressio::rom::ManagerFomStatesSteady< fom_state_type, fom_state_reconstr_type>; static constexpr bool binding_sentinel = false; }; }}} // end namespace pressio::rom::galekin::impl //======================= // DEFAULT //======================= template < class FomSystemType, class LspgStateType, class DecoderType > struct Traits< ::pressio::rom::lspg::impl::SteadyProblem< 0, FomSystemType, LspgStateType, DecoderType > > { using common_types = ::pressio::rom::lspg::impl::CommonTraitsSteady< FomSystemType, LspgStateType, DecoderType>; static constexpr auto binding_sentinel = common_types::binding_sentinel; using fom_system_type = typename common_types::fom_system_type; using scalar_type = typename common_types::scalar_type; using fom_state_type = typename common_types::fom_state_type; using fom_residual_type = typename common_types::fom_residual_type; using decoder_type = typename common_types::decoder_type; using decoder_jac_type = typename common_types::decoder_jac_type; using fom_state_reconstr_type = typename common_types::fom_state_reconstr_type; using fom_states_manager_type = typename common_types::fom_states_manager_type; using lspg_state_type = typename common_types::lspg_state_type; using lspg_residual_type = typename common_types::lspg_residual_type; using lspg_jacobian_type = typename common_types::lspg_jacobian_type; using size_type = typename ::pressio::Traits<lspg_state_type>::size_type; using residual_policy_type = ::pressio::rom::lspg::impl::SteadyResidualPolicy< fom_states_manager_type, lspg_residual_type, fom_system_type >; using jacobian_policy_type = ::pressio::rom::lspg::impl::SteadyJacobianPolicy< fom_states_manager_type, decoder_jac_type, decoder_type,fom_system_type >; using steady_system_type = ::pressio::rom::lspg::impl::SteadySystem< scalar_type, lspg_state_type, lspg_residual_type, lspg_jacobian_type, residual_policy_type, jacobian_policy_type>; }; //======================= // MASKED //======================= template < class FomSystemType, class LspgStateType, class DecoderType, class MaskerType > struct Traits< ::pressio::rom::lspg::impl::SteadyProblem< 1, FomSystemType, LspgStateType, DecoderType, MaskerType > > { using common_types = ::pressio::rom::lspg::impl::CommonTraitsSteady< FomSystemType, LspgStateType, DecoderType>; static constexpr auto binding_sentinel = common_types::binding_sentinel; using fom_system_type = typename common_types::fom_system_type; using scalar_type = typename common_types::scalar_type; using fom_state_type = typename common_types::fom_state_type; using fom_residual_type = typename common_types::fom_residual_type; using decoder_type = typename common_types::decoder_type; using decoder_jac_type = typename common_types::decoder_jac_type; using fom_state_reconstr_type = typename common_types::fom_state_reconstr_type; using fom_states_manager_type = typename common_types::fom_states_manager_type; using lspg_state_type = typename common_types::lspg_state_type; using lspg_residual_type = typename common_types::lspg_residual_type; using lspg_jacobian_type = typename common_types::lspg_jacobian_type; using size_type = typename ::pressio::Traits<lspg_state_type>::size_type; using masker_type = MaskerType; static_assert (::pressio::rom::lspg_steady_masker< masker_type, fom_residual_type, lspg_jacobian_type>::value, "Invalid masker passed for steady LSPG"); using residual_policy_type = ::pressio::rom::lspg::impl::MaskDecoratorSteady< lspg_residual_type, masker_type, ::pressio::rom::lspg::impl::SteadyResidualPolicy< fom_states_manager_type, lspg_residual_type, fom_system_type > >; using jacobian_policy_type = ::pressio::rom::lspg::impl::MaskDecoratorSteady< lspg_jacobian_type, masker_type, ::pressio::rom::lspg::impl::SteadyJacobianPolicy< fom_states_manager_type, lspg_jacobian_type, decoder_type,fom_system_type > >; using steady_system_type = ::pressio::rom::lspg::impl::SteadySystem< scalar_type, lspg_state_type, lspg_residual_type, lspg_jacobian_type, residual_policy_type, jacobian_policy_type>; }; //======================= // PRECONDITIONED DEFAULT //======================= template < class FomSystemType, class LspgStateType, class DecoderType, class PreconditionerType > struct Traits< ::pressio::rom::lspg::impl::SteadyProblem< 2, FomSystemType, LspgStateType, DecoderType, PreconditionerType > > { using common_types = ::pressio::rom::lspg::impl::CommonTraitsSteady< FomSystemType, LspgStateType, DecoderType>; static constexpr auto binding_sentinel = common_types::binding_sentinel; using fom_system_type = typename common_types::fom_system_type; using scalar_type = typename common_types::scalar_type; using fom_state_type = typename common_types::fom_state_type; using fom_residual_type = typename common_types::fom_residual_type; using decoder_type = typename common_types::decoder_type; using decoder_jac_type = typename common_types::decoder_jac_type; using fom_state_reconstr_type = typename common_types::fom_state_reconstr_type; using fom_states_manager_type = typename common_types::fom_states_manager_type; using lspg_state_type = typename common_types::lspg_state_type; using lspg_residual_type = typename common_types::lspg_residual_type; using lspg_jacobian_type = typename common_types::lspg_jacobian_type; using size_type = typename ::pressio::Traits<lspg_state_type>::size_type; using preconditioner_type = PreconditionerType; static_assert (::pressio::rom::lspg_steady_preconditioner< preconditioner_type, fom_state_type, lspg_residual_type, lspg_jacobian_type>::value, "Invalid masker passed for steady LSPG"); using residual_policy_type = ::pressio::rom::lspg::impl::PreconditionDecoratorSteady< lspg_residual_type, preconditioner_type, ::pressio::rom::lspg::impl::SteadyResidualPolicy< fom_states_manager_type, lspg_residual_type, fom_system_type > >; using jacobian_policy_type = ::pressio::rom::lspg::impl::PreconditionDecoratorSteady< lspg_jacobian_type, preconditioner_type, ::pressio::rom::lspg::impl::SteadyJacobianPolicy< fom_states_manager_type, lspg_jacobian_type, decoder_type,fom_system_type > >; using steady_system_type = ::pressio::rom::lspg::impl::SteadySystem< scalar_type, lspg_state_type, lspg_residual_type, lspg_jacobian_type, residual_policy_type, jacobian_policy_type>; }; //======================= // PRECONDITIONED MASKED //======================= template < class FomSystemType, class LspgStateType, class DecoderType, class MaskerType, class PreconditionerType > struct Traits< ::pressio::rom::lspg::impl::SteadyProblem< 3, FomSystemType, LspgStateType, DecoderType, MaskerType, PreconditionerType > > { using common_types = ::pressio::rom::lspg::impl::CommonTraitsSteady< FomSystemType, LspgStateType, DecoderType>; static constexpr auto binding_sentinel = common_types::binding_sentinel; using fom_system_type = typename common_types::fom_system_type; using scalar_type = typename common_types::scalar_type; using fom_state_type = typename common_types::fom_state_type; using fom_residual_type = typename common_types::fom_residual_type; using decoder_type = typename common_types::decoder_type; using decoder_jac_type = typename common_types::decoder_jac_type; using fom_state_reconstr_type = typename common_types::fom_state_reconstr_type; using fom_states_manager_type = typename common_types::fom_states_manager_type; using lspg_state_type = typename common_types::lspg_state_type; using lspg_residual_type = typename common_types::lspg_residual_type; using lspg_jacobian_type = typename common_types::lspg_jacobian_type; using size_type = typename ::pressio::Traits<lspg_state_type>::size_type; using masker_type = MaskerType; static_assert (::pressio::rom::lspg_steady_masker< masker_type, fom_residual_type, lspg_jacobian_type>::value, "Invalid masker passed for steady LSPG"); using preconditioner_type = PreconditionerType; static_assert (::pressio::rom::lspg_steady_preconditioner< preconditioner_type, fom_state_type, lspg_residual_type, lspg_jacobian_type>::value, "Invalid masker passed for steady LSPG"); using residual_policy_type = ::pressio::rom::lspg::impl::PreconditionDecoratorSteady< lspg_residual_type, preconditioner_type, ::pressio::rom::lspg::impl::MaskDecoratorSteady< lspg_residual_type, masker_type, ::pressio::rom::lspg::impl::SteadyResidualPolicy< fom_states_manager_type, lspg_residual_type, fom_system_type > > >; using jacobian_policy_type = ::pressio::rom::lspg::impl::PreconditionDecoratorSteady< lspg_jacobian_type, preconditioner_type, ::pressio::rom::lspg::impl::MaskDecoratorSteady< lspg_jacobian_type, masker_type, ::pressio::rom::lspg::impl::SteadyJacobianPolicy< fom_states_manager_type, lspg_jacobian_type, decoder_type,fom_system_type > > >; using steady_system_type = ::pressio::rom::lspg::impl::SteadySystem< scalar_type, lspg_state_type, lspg_residual_type, lspg_jacobian_type, residual_policy_type, jacobian_policy_type>; }; }//end namespace pressio #endif // ROM_IMPL_ROM_LSPG_STEADY_TRAITS_HPP_
38.497253
105
0.746949
nittaya1990
48d34b74c007c31fab95977cf6d6dd9971f7dc46
2,318
cpp
C++
project2D/MushRoom.cpp
deadglow/AIE-AI-Assessment
c010dadb55b1c7152f983d11868055e275c42b42
[ "MIT" ]
null
null
null
project2D/MushRoom.cpp
deadglow/AIE-AI-Assessment
c010dadb55b1c7152f983d11868055e275c42b42
[ "MIT" ]
null
null
null
project2D/MushRoom.cpp
deadglow/AIE-AI-Assessment
c010dadb55b1c7152f983d11868055e275c42b42
[ "MIT" ]
null
null
null
#include "MushRoom.h" #include <iostream> #include <fstream> MushRoom::MushRoom(std::string path) { LoadMapData(path); } MushRoom::~MushRoom() { delete[] mapData; } int* MushRoom::GetMapData() { return mapData; } void MushRoom::LoadMapData(std::string path) { //----------------------------------------------- // Map data layout // :width height // :i i i i i i i /n // :i i i i i i i /n // :i i i i i i i /n // :i i i i i i i /n //_______________________________________________ //Load the map std::ifstream mushroomFile(path.c_str()); //Cache for reading from lines std::string line; std::string str = ""; //First line is the dimensions of the map separated by a space std::getline(mushroomFile, line); //Iterator to loop through line chars auto iter = line.begin(); //Iterate through line chars until a space is found while (*iter != ' ') { str.push_back(*iter); iter++; } //Found width, assign then reset string width = std::stoi(str); str = ""; //Move iter forward to skip space iter++; //Height is the rest of the chars after space while (iter != line.end()) { str.push_back(*iter); iter++; } //Found height height = std::stoi(str); str = ""; //Create mapData on heap as a 1d array mapData = new int[width * height]; //Indices for coordinates int y = 0; int x; //Start reading data line by line while (std::getline(mushroomFile, line)) { //Reset x position since its a new line x = 0; //Iterate through every char in line auto iter = line.begin(); while (iter != line.end()) { //' ' is the separator between cells //Allows for numbers larger than one character //(which is probably never going to be used) if (*iter == ' ') { //Separator found, so add the data to mapData SetData(x, height - 1 - y, std::stoi(str)); iter++; x++; //Data added, reset string str = ""; } else { str.push_back(*iter); iter++; } } //Reached end of line, go to the next one y++; } } int MushRoom::GetWidth() { return width; } int MushRoom::GetHeight() { return height; } int MushRoom::GetData(int x, int y) { //Access 1d array like a 2d array return mapData[y * width + x]; } void MushRoom::SetData(int x, int y, int data) { mapData[y * width + x] = data; }
17.560606
63
0.612597
deadglow
48d3c666ebc87e5682a1c1166e2da7f88405e7c7
2,760
cpp
C++
yarpl/test/Single_test.cpp
bli7193/rsocket-cpp
c2abc34687f8ba6bab667029a25f1699531951e8
[ "Apache-2.0" ]
217
2017-04-29T14:44:39.000Z
2022-03-29T04:06:17.000Z
yarpl/test/Single_test.cpp
bli7193/rsocket-cpp
c2abc34687f8ba6bab667029a25f1699531951e8
[ "Apache-2.0" ]
270
2017-04-28T04:12:23.000Z
2022-03-11T20:39:33.000Z
yarpl/test/Single_test.cpp
bli7193/rsocket-cpp
c2abc34687f8ba6bab667029a25f1699531951e8
[ "Apache-2.0" ]
83
2017-04-28T02:06:16.000Z
2022-03-11T20:35:16.000Z
// Copyright (c) Facebook, Inc. and its affiliates. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. #include <folly/ExceptionWrapper.h> #include <folly/synchronization/Baton.h> #include <gtest/gtest.h> #include <atomic> #include "yarpl/Single.h" #include "yarpl/single/SingleTestObserver.h" #include "yarpl/test_utils/Tuple.h" using namespace yarpl::single; TEST(Single, SingleOnNext) { auto a = Single<int>::create([](std::shared_ptr<SingleObserver<int>> obs) { obs->onSubscribe(SingleSubscriptions::empty()); obs->onSuccess(1); }); auto to = SingleTestObserver<int>::create(); a->subscribe(to); to->awaitTerminalEvent(); to->assertOnSuccessValue(1); } TEST(Single, OnError) { std::string errorMessage("DEFAULT->No Error Message"); auto a = Single<int>::create([](std::shared_ptr<SingleObserver<int>> obs) { obs->onError( folly::exception_wrapper(std::runtime_error("something broke!"))); }); auto to = SingleTestObserver<int>::create(); a->subscribe(to); to->awaitTerminalEvent(); to->assertOnErrorMessage("something broke!"); } TEST(Single, Just) { auto a = Singles::just<int>(1); auto to = SingleTestObserver<int>::create(); a->subscribe(to); to->awaitTerminalEvent(); to->assertOnSuccessValue(1); } TEST(Single, Error) { std::string errorMessage("DEFAULT->No Error Message"); auto a = Singles::error<int>(std::runtime_error("something broke!")); auto to = SingleTestObserver<int>::create(); a->subscribe(to); to->awaitTerminalEvent(); to->assertOnErrorMessage("something broke!"); } TEST(Single, SingleMap) { auto a = Single<int>::create([](std::shared_ptr<SingleObserver<int>> obs) { obs->onSubscribe(SingleSubscriptions::empty()); obs->onSuccess(1); }); auto to = SingleTestObserver<const char*>::create(); a->map([](int) { return "hello"; })->subscribe(to); to->awaitTerminalEvent(); to->assertOnSuccessValue("hello"); } TEST(Single, MapWithException) { auto single = Singles::just<int>(3)->map([](int n) { if (n > 2) { throw std::runtime_error{"Too big!"}; } return n; }); auto observer = std::make_shared<SingleTestObserver<int>>(); single->subscribe(observer); observer->assertOnErrorMessage("Too big!"); }
29.052632
77
0.692754
bli7193
48d3d37205bddbb6313b8ce311d2f11ef96ff515
1,129
hpp
C++
src/time/rk3_tvd.hpp
vanreeslab/murphy
01c9c56171fcee33cb3c1c93c25617ccf7b8ff83
[ "BSD-3-Clause" ]
1
2021-12-01T22:12:56.000Z
2021-12-01T22:12:56.000Z
src/time/rk3_tvd.hpp
vanreeslab/murphy
01c9c56171fcee33cb3c1c93c25617ccf7b8ff83
[ "BSD-3-Clause" ]
null
null
null
src/time/rk3_tvd.hpp
vanreeslab/murphy
01c9c56171fcee33cb3c1c93c25617ccf7b8ff83
[ "BSD-3-Clause" ]
null
null
null
#ifndef SRC_RK3_HPP #define SRC_RK3_HPP #include "core/macros.hpp" #include "core/types.hpp" #include "grid/field.hpp" #include "grid/grid.hpp" #include "tools/prof.hpp" #include "rkfunctor.hpp" /** * @brief provides an implementation of a RK3 -TVD using two registers * * For more detail, cfr * Total Variation Diminishing Runge-Kutta Schemes, Gottlieb and Shu, 1998 * Strong Stability-Preserving High-Order Time Discretization Methods, Gottlieb et al., 2001 * */ class RK3_TVD { real_t cfl_max_ = 1.0; Grid* grid_ = nullptr; Field* field_u_ = nullptr; RKFunctor* f_ = nullptr; Prof* prof_ = nullptr; Field* field_y1_ = nullptr; Field* field_y2_ = nullptr; public: explicit RK3_TVD(Grid* grid, Field* state, RKFunctor* f, Prof* prof, const real_t cfl_max = 1.0); virtual ~RK3_TVD(); void DoDt(const real_t dt, real_t* time) const; real_t ComputeDt(const RKFunctor* rhs, const real_t max_ve, const real_t nu = 0.0) const; real_t ComputeDt(const RKFunctor* rhs, const Field* velocity, const real_t nu = 0.0) const; }; #endif
29.710526
101
0.677591
vanreeslab
48d5777b93cad0307d4c7a8f158794cc629d5714
2,078
cpp
C++
UCD/ecs60_40/hw3/appt.cpp
darylnak/ucdavis-work
4bb41f5fc0e8e95197e22166e99576deefb0565a
[ "MIT" ]
2
2017-03-16T02:06:43.000Z
2017-03-16T04:48:18.000Z
UCD/ecs60_40/hw3/appt.cpp
darylnak/ucdavis-work
4bb41f5fc0e8e95197e22166e99576deefb0565a
[ "MIT" ]
null
null
null
UCD/ecs60_40/hw3/appt.cpp
darylnak/ucdavis-work
4bb41f5fc0e8e95197e22166e99576deefb0565a
[ "MIT" ]
1
2017-03-16T05:14:02.000Z
2017-03-16T05:14:02.000Z
#include <iostream> #include <iomanip> #include <cstring> #include "appt.h" #include "time.h" using namespace std; int Appointment::count = 0; Appointment::Appointment() : subject(NULL), location(NULL) { } // Appointment default contructor Appointment::Appointment(const Appointment &appt) : startTime(appt.startTime), endTime(appt.endTime) { subject = new char[strlen(appt.subject) + 1]; location = new char[strlen(appt.location) + 1]; strcpy(subject, appt.subject); strcpy(location, appt.location); } // Appointment copy constructor Appointment::~Appointment() { delete [] subject; delete [] location; } // Appointment destructor bool Appointment::equal(const char *subject2) const { return strstr(subject, subject2) != NULL; } // equal() bool Appointment::isDuplicate(const Appointment* appt) const { // check if appointment is a duplicate if (strcmp(this->subject, appt->subject) == 0 && strcmp(this->location, appt->location) == 0 && this->startTime.equal(&appt->startTime) && this->endTime.equal(&appt->endTime)) return true; return false; } // isDuplicate() void Appointment::getCount() { cout << "Appointment count: " << count << "\n\n"; } // getCount() bool Appointment::lessThan(const Appointment *appointment2) const { return startTime.lessThan(&appointment2->startTime); } // lessThan() void Appointment::print() const { startTime.print(); endTime.print(); cout << left << setw(13) << subject << location << right << endl; } // print() void Appointment::addRead() { char *ptr; ptr = strtok(NULL, ","); subject = new char[strlen(ptr) + 1]; strcpy(subject, ptr); startTime.addRead(); endTime.addRead(); ptr = strtok(NULL, ","); location = new char[strlen(ptr) + 1]; strcpy(location, ptr); } // add read() void Appointment::read() { char *ptr; ptr = strtok(NULL, ","); subject = new char[strlen(ptr) + 1]; strcpy(subject, ptr); startTime.read(); endTime.read(); ptr = strtok(NULL, "\n"); location = new char[strlen(ptr) + 1]; strcpy(location, ptr); } // read()
22.344086
67
0.663619
darylnak
48d6e4c914593cfc49af70367f11b543508ebc0e
2,805
cpp
C++
WitchEngine3/src/WE3/math/script/WEScriptVector2.cpp
jadnohra/World-Of-Football
fc4c9dd23e0b2d8381ae8f62b1c387af7f28fcfc
[ "MIT" ]
3
2018-12-02T14:09:22.000Z
2021-11-22T07:14:05.000Z
WitchEngine3/src/WE3/math/script/WEScriptVector2.cpp
jadnohra/World-Of-Football
fc4c9dd23e0b2d8381ae8f62b1c387af7f28fcfc
[ "MIT" ]
1
2018-12-03T22:54:38.000Z
2018-12-03T22:54:38.000Z
WitchEngine3/src/WE3/math/script/WEScriptVector2.cpp
jadnohra/World-Of-Football
fc4c9dd23e0b2d8381ae8f62b1c387af7f28fcfc
[ "MIT" ]
2
2020-09-22T21:04:14.000Z
2021-05-24T09:43:28.000Z
#include "WEScriptVector2.h" DECLARE_INSTANCE_TYPE_NAME(WE::Vector2, Vector2); DECLARE_INSTANCE_TYPE_NAME(WE::CtVector2, CtVector2); namespace WE { const TCHAR* ScriptVector2::ScriptClassName = L"Vector2"; void ScriptVector2::declareInVM(SquirrelVM& target) { SqPlus::SQClassDef<Vector2>(ScriptClassName). func(&Vector2::zero, L"zero"). func(&Vector2::script_isZero, L"isZero"). func(&Vector2::script_equals, L"equals"). func(&Vector2::script_set2, L"set2"). func(&Vector2::script_setEl, L"setEl"). func(&Vector2::script_get, L"getEl"). func(&Vector2::script_get, L"get"). func(&Vector2::script_dot, L"dot"). func(&Vector2::script_add, L"add"). func(&Vector2::script_subtract, L"subtract"). func(&Vector2::script_subtractFromSelf, L"subtractFromSelf"). func(&Vector2::script_set, L"set"). func(&Vector2::script_addToSelf, L"addToSelf"). func(&Vector2::script_mul, L"mul"). func(&Vector2::script_div, L"div"). func(&Vector2::script_mulToSelf, L"mulToSelf"). func(&Vector2::script_divToSelf, L"divToSelf"). func(&Vector2::script_mulAndAdd, L"mulAndAdd"). func(&Vector2::script_vmul, L"vmul"). func(&Vector2::script_normalize, L"normalize"). func(&Vector2::script_normalizeTo, L"normalizeTo"). func(&Vector2::script_magSq, L"magSq"). func(&Vector2::script_mag, L"mag"). func(&Vector2::script_negateTo, L"negateTo"). func(&Vector2::script_negate, L"negate"). func(&Vector2::script_subtractNoReverse, L"subtractNoReverse"). func(&Vector2::script_randomize, L"randomize"). func(&Vector2::script_randomizeToSelf, L"randomizeToSelf"). func(&Vector2::script_addMultiplication, L"addMultiplication"). var(&Vector2::x, L"x"). var(&Vector2::y, L"y"); } const TCHAR* ScriptCtVector2::ScriptClassName = L"CtVector2"; void ScriptCtVector2::declareInVM(SquirrelVM& target) { SqPlus::SQClassDef<CtVector2>(ScriptClassName). staticVar(&CtVector2::kZero, L"kZero"). func(&CtVector2::script_isZero, L"isZero"). func(&CtVector2::script_equals, L"equals"). func(&CtVector2::script_get, L"get"). func(&CtVector2::script_dot, L"dot"). func(&CtVector2::script_add, L"add"). func(&CtVector2::script_mul, L"mul"). func(&CtVector2::script_div, L"div"). func(&CtVector2::script_mulAndAdd, L"mulAndAdd"). func(&CtVector2::script_subtract, L"subtract"). func(&CtVector2::script_get, L"getEl"). func(&CtVector2::script_magSq, L"magSq"). func(&CtVector2::script_mag, L"mag"). func(&CtVector2::script_negateTo, L"negateTo"). func(&CtVector2::script_normalizeTo, L"normalizeTo"). func(&CtVector2::script_randomize, L"randomize"). func(&CtVector2::script_addMultiplication, L"addMultiplication"); SqPlus::BindVariable(&CtVector2::kZero, L"kZeroVector2"); } }
38.424658
68
0.709447
jadnohra
48d82faf071e49eba79bd8ad901d78ae36341065
17,201
cpp
C++
src/DevicePage.cpp
my-devices/gateway
6c2036551f2609e9834d3b7cf012db19ebeafafe
[ "BSL-1.0" ]
4
2017-12-22T17:28:34.000Z
2022-03-09T16:41:44.000Z
src/DevicePage.cpp
my-devices/gateway
6c2036551f2609e9834d3b7cf012db19ebeafafe
[ "BSL-1.0" ]
null
null
null
src/DevicePage.cpp
my-devices/gateway
6c2036551f2609e9834d3b7cf012db19ebeafafe
[ "BSL-1.0" ]
1
2021-09-29T06:06:36.000Z
2021-09-29T06:06:36.000Z
// // DevicePage.cpp // // This file has been generated from DevicePage.cpsp on 2021-11-27 20:17:05. // #include "DevicePage.h" #include "Poco/Net/HTTPServerRequest.h" #include "Poco/Net/HTTPServerResponse.h" #include "Poco/Net/HTMLForm.h" #include "Poco/DeflatingStream.h" #include "DevicePageController.h" #include "Poco/Net/NameValueCollection.h" #include "Utility.h" using namespace std::string_literals; namespace MyDevices { namespace Gateway { DevicePage::DevicePage(DeviceManager::Ptr context): _context(context) { } void DevicePage::handleRequest(Poco::Net::HTTPServerRequest& request, Poco::Net::HTTPServerResponse& response) { response.setChunkedTransferEncoding(true); response.setContentType("text/html;charset=utf-8"s); bool _compressResponse(request.hasToken("Accept-Encoding"s, "gzip"s)); if (_compressResponse) response.set("Content-Encoding"s, "gzip"s); Poco::Net::HTMLForm form(request, request.stream()); #line 4 "/Users/guenter/ws/git/my-devices/gateway/html/template.inc" Poco::Net::NameValueCollection pageTemplate; pageTemplate.set("softwareVersion", Utility::versionString()); #line 13 "/Users/guenter/ws/git/my-devices/gateway/src/DevicePage.cpsp" DevicePageController ctrl(context(), request, form); if (response.sent()) return; if (ctrl.mustRedirect()) return; if (ctrl.deviceConfig()) { pageTemplate.set("title", "Gateway > " + ctrl.name()); } else { pageTemplate.set("title", "Gateway > Unknown Device"); } pageTemplate.set("domain", ctrl.defaultDomain()); std::ostream& _responseStream = response.send(); Poco::DeflatingOutputStream _gzipStream(_responseStream, Poco::DeflatingStreamBuf::STREAM_GZIP, 1); std::ostream& responseStream = _compressResponse ? _gzipStream : _responseStream; responseStream << "<!DOCTYPE HTML>\n"; responseStream << "\n"; // begin include html/template.inc responseStream << "\n"; // end include html/template.inc responseStream << "\n"; // begin include html/header.inc responseStream << "<html>\n"; responseStream << " <head>\n"; responseStream << " <meta http-equiv=\"content-type\" content=\"text/html; charset=utf-8\">\n"; responseStream << " <meta http-equiv=\"X-UA-Compatible\" content=\"IE=edge,chrome=1\">\n"; responseStream << " <title>"; #line 5 "/Users/guenter/ws/git/my-devices/gateway/html/header.inc" responseStream << ( U::htmlize(pageTemplate["title"]) ); responseStream << "</title>\n"; responseStream << " <link rel=\"stylesheet\" href=\"/css/styles.css\" type=\"text/css\"/>\n"; responseStream << " <link rel=\"icon\" href=\"/images/favicon.ico\">\n"; responseStream << " </head>\n"; responseStream << " <body lang=\"en\">\n"; responseStream << " <header>\n"; responseStream << " <div class=\"headercontainer\">\n"; responseStream << " <div class=\"header\">\n"; responseStream << "\t\t <h1>REMOTE "; #line 13 "/Users/guenter/ws/git/my-devices/gateway/html/header.inc" responseStream << ( U::htmlize(pageTemplate["title"]) ); responseStream << "</h1>\n"; responseStream << " </div>\n"; responseStream << " </div>\n"; responseStream << " </header>\n"; responseStream << " <div class=\"contentcontainer\">\n"; responseStream << " <div class=\"content\">\n"; // end include html/header.inc responseStream << "\n"; responseStream << "<script language=\"JavaScript\">\n"; responseStream << "function cancelUpdateDevice(id)\n"; responseStream << "{\n"; responseStream << " document.actionForm.action.value = \"cancel\";\n"; responseStream << " document.actionForm.submit();\n"; responseStream << "}\n"; responseStream << "</script>\n"; responseStream << "\n"; responseStream << "<nav>\n"; responseStream << " <div class=\"usernav\">\n"; responseStream << " <div class=\"navigation\">\n"; responseStream << " </div>\n"; responseStream << " <div class=\"username\">\n"; responseStream << " &nbsp;\n"; responseStream << " "; #line 45 "/Users/guenter/ws/git/my-devices/gateway/src/DevicePage.cpsp" responseStream << ( ctrl.username() ); responseStream << "\n"; responseStream << " &nbsp;\n"; responseStream << " <a id=\"logoutLink\" href=\"#\" onclick=\"document.logout.submit()\">Sign out</a>\n"; responseStream << " </div>\n"; responseStream << " <form method=\"post\" name=\"logout\" action=\"/\">\n"; responseStream << " <input type=\"hidden\" name=\"action\" value=\"logout\">\n"; responseStream << " </form>\n"; responseStream << " <div style=\"clear: both;\"></div>\n"; responseStream << " </div>\n"; responseStream << "</nav>\n"; responseStream << "\n"; #line 56 "/Users/guenter/ws/git/my-devices/gateway/src/DevicePage.cpsp" if (!ctrl.message().empty()) { responseStream << "\n"; responseStream << " <div class=\"error\">\n"; responseStream << " "; #line 58 "/Users/guenter/ws/git/my-devices/gateway/src/DevicePage.cpsp" responseStream << ( U::htmlize(ctrl.message()) ); responseStream << "\n"; responseStream << " </div>\n"; #line 60 "/Users/guenter/ws/git/my-devices/gateway/src/DevicePage.cpsp" } responseStream << "\n"; #line 62 "/Users/guenter/ws/git/my-devices/gateway/src/DevicePage.cpsp" if (ctrl.deviceConfig()) { responseStream << "\n"; responseStream << " <div class=\"groupbox\">\n"; responseStream << " <h2>Device Properties</h2>\n"; responseStream << "\n"; responseStream << " <form name=\"actionForm\" method=\"post\" autocomplete=\"off\">\n"; responseStream << " <input type=\"hidden\" name=\"action\" value=\"update\">\n"; responseStream << " <input type=\"hidden\" name=\"csrfToken\" value=\""; #line 68 "/Users/guenter/ws/git/my-devices/gateway/src/DevicePage.cpsp" responseStream << ( ctrl.csrfToken() ); responseStream << "\">\n"; responseStream << " <input type=\"hidden\" name=\"target\" value=\""; #line 69 "/Users/guenter/ws/git/my-devices/gateway/src/DevicePage.cpsp" responseStream << ( ctrl.deviceId() ); responseStream << "\">\n"; responseStream << " <table class=\"list\">\n"; responseStream << " <tbody>\n"; responseStream << " <tr class=\"intermediateHeader\">\n"; responseStream << " <th colspan=\"2\">\n"; responseStream << " Basic Properties\n"; responseStream << " </th>\n"; responseStream << " </tr>\n"; responseStream << " <tr class=\"even\">\n"; responseStream << " <td class=\"basicProperty\">Name</td>\n"; responseStream << " <td>\n"; responseStream << " <input type=\"text\"\n"; responseStream << " name=\"deviceName\"\n"; responseStream << " value=\""; #line 82 "/Users/guenter/ws/git/my-devices/gateway/src/DevicePage.cpsp" responseStream << ( U::htmlize(ctrl.name()) ); responseStream << "\"\n"; responseStream << " size=\"64\"\n"; responseStream << " maxLength=\"64\"\n"; responseStream << " class=\"form-control\">\n"; responseStream << " </td>\n"; responseStream << " </tr>\n"; responseStream << " <tr class=\"odd\">\n"; responseStream << " <td class=\"basicProperty\">ID</td>\n"; responseStream << " <td>"; #line 90 "/Users/guenter/ws/git/my-devices/gateway/src/DevicePage.cpsp" responseStream << ( U::htmlize(ctrl.deviceId()) ); responseStream << "</td>\n"; responseStream << " </tr>\n"; responseStream << " <tr class=\"even\">\n"; responseStream << " <td class=\"basicProperty\">Domain</td>\n"; responseStream << " <td>\n"; responseStream << " <input type=\"text\"\n"; responseStream << " name=\"domain\"\n"; responseStream << " value=\""; #line 97 "/Users/guenter/ws/git/my-devices/gateway/src/DevicePage.cpsp" responseStream << ( U::htmlize(ctrl.domain()) ); responseStream << "\"\n"; responseStream << " size=\"64\"\n"; responseStream << " maxLength=\"64\"\n"; responseStream << " class=\"form-control\">\n"; responseStream << " </td>\n"; responseStream << " </tr>\n"; responseStream << " <tr class=\"odd\">\n"; responseStream << " <td>Device Password</td>\n"; responseStream << " <td>\n"; responseStream << " <input type=\"password\"\n"; responseStream << " name=\"password\"\n"; responseStream << " value=\""; #line 108 "/Users/guenter/ws/git/my-devices/gateway/src/DevicePage.cpsp" responseStream << ( U::htmlize(ctrl.password()) ); responseStream << "\"\n"; responseStream << " size=\"32\"\n"; responseStream << " maxLength=\"32\"\n"; responseStream << " class=\"form-control\">\n"; responseStream << " (optional)\n"; responseStream << " </td>\n"; responseStream << " </tr>\n"; responseStream << " <tr class=\"even\">\n"; responseStream << " <td>Status</td>\n"; responseStream << " <td>"; #line 117 "/Users/guenter/ws/git/my-devices/gateway/src/DevicePage.cpsp" responseStream << ( ctrl.deviceStatus() ); responseStream << "</td>\n"; responseStream << " </tr>\n"; responseStream << " <tr class=\"intermediateHeader\">\n"; responseStream << " <th colspan=\"2\">\n"; responseStream << " Device Address and Forwarded Ports\n"; responseStream << " </th>\n"; responseStream << " </tr>\n"; responseStream << " <tr class=\"even\">\n"; responseStream << " <td class=\"basicProperty\">Device IP Address or Domain Name</td>\n"; responseStream << " <td>\n"; responseStream << " <input type=\"text\"\n"; responseStream << " name=\"host\"\n"; responseStream << " value=\""; #line 129 "/Users/guenter/ws/git/my-devices/gateway/src/DevicePage.cpsp" responseStream << ( U::htmlize(ctrl.host()) ); responseStream << "\"\n"; responseStream << " size=\"64\"\n"; responseStream << " maxLength=\"64\"\n"; responseStream << " class=\"form-control\">\n"; responseStream << " </td>\n"; responseStream << " </tr>\n"; responseStream << " <tr class=\"odd\">\n"; responseStream << " <td class=\"basicProperty\">HTTP Server Port</td>\n"; responseStream << " <td>\n"; responseStream << " <input type=\"number\"\n"; responseStream << " name=\"httpPort\"\n"; responseStream << " value=\""; #line 140 "/Users/guenter/ws/git/my-devices/gateway/src/DevicePage.cpsp" responseStream << ( U::htmlize(ctrl.httpPort()) ); responseStream << "\"\n"; responseStream << " size=\"5\"\n"; responseStream << " maxLength=\"5\"\n"; responseStream << " min=\"0\"\n"; responseStream << " max=\"65535\"\n"; responseStream << " class=\"form-control\">\n"; responseStream << " <input type=\"checkbox\"\n"; responseStream << " name=\"httpsRequired\"\n"; responseStream << " value=\"true\"\n"; responseStream << " "; #line 149 "/Users/guenter/ws/git/my-devices/gateway/src/DevicePage.cpsp" responseStream << ( ctrl.httpsEnable() ? "checked" : "" ); responseStream << "\n"; responseStream << " class=\"form-control\">\n"; responseStream << " <label for=\"httpsRequired\">Requires HTTPS</label>\n"; responseStream << " </td>\n"; responseStream << " </tr>\n"; responseStream << " <tr class=\"even\">\n"; responseStream << " <td class=\"basicProperty\">SSH Server Port</td>\n"; responseStream << " <td>\n"; responseStream << " <input type=\"number\"\n"; responseStream << " name=\"sshPort\"\n"; responseStream << " value=\""; #line 159 "/Users/guenter/ws/git/my-devices/gateway/src/DevicePage.cpsp" responseStream << ( U::htmlize(ctrl.sshPort()) ); responseStream << "\"\n"; responseStream << " size=\"5\"\n"; responseStream << " maxLength=\"5\"\n"; responseStream << " min=\"1\"\n"; responseStream << " max=\"65535\"\n"; responseStream << " class=\"form-control\">\n"; responseStream << " (optional)\n"; responseStream << " </td>\n"; responseStream << " </tr>\n"; responseStream << " <tr class=\"odd\">\n"; responseStream << " <td class=\"basicProperty\">VNC Server Port</td>\n"; responseStream << " <td>\n"; responseStream << " <input type=\"number\"\n"; responseStream << " name=\"vncPort\"\n"; responseStream << " value=\""; #line 173 "/Users/guenter/ws/git/my-devices/gateway/src/DevicePage.cpsp" responseStream << ( U::htmlize(ctrl.vncPort()) ); responseStream << "\"\n"; responseStream << " size=\"5\"\n"; responseStream << " maxLength=\"5\"\n"; responseStream << " min=\"1\"\n"; responseStream << " max=\"65535\"\n"; responseStream << " class=\"form-control\">\n"; responseStream << " (optional)\n"; responseStream << " </td>\n"; responseStream << " </tr>\n"; responseStream << " <tr class=\"even\">\n"; responseStream << " <td class=\"basicProperty\">RDP Server Port</td>\n"; responseStream << " <td>\n"; responseStream << " <input type=\"number\"\n"; responseStream << " name=\"rdpPort\"\n"; responseStream << " value=\""; #line 187 "/Users/guenter/ws/git/my-devices/gateway/src/DevicePage.cpsp" responseStream << ( U::htmlize(ctrl.rdpPort()) ); responseStream << "\"\n"; responseStream << " size=\"5\"\n"; responseStream << " maxLength=\"5\"\n"; responseStream << " min=\"1\"\n"; responseStream << " max=\"65535\"\n"; responseStream << " class=\"form-control\">\n"; responseStream << " (optional)\n"; responseStream << " </td>\n"; responseStream << " </tr>\n"; responseStream << " <tr class=\"odd\">\n"; responseStream << " <td>Additional Forwarded TCP Ports</td>\n"; responseStream << " <td>\n"; responseStream << " <input type=\"text\"\n"; responseStream << " name=\"ports\"\n"; responseStream << " value=\""; #line 201 "/Users/guenter/ws/git/my-devices/gateway/src/DevicePage.cpsp" responseStream << ( ctrl.extraPorts() ); responseStream << "\"\n"; responseStream << " size=\"40\"\n"; responseStream << " maxLength=\"40\"\n"; responseStream << " class=\"form-control\">\n"; responseStream << " (comma-separated)\n"; responseStream << " </td>\n"; responseStream << " </tr>\n"; responseStream << " <tr>\n"; responseStream << " <td colspan=\"2\" style=\"text-align: right\">\n"; responseStream << " <a href=\"#\" onclick=\"cancelUpdateDevice()\">Cancel</a>\n"; responseStream << " &nbsp;\n"; responseStream << " <input type=\"submit\" value=\"Save\" class=\"form-control\">\n"; responseStream << " </td>\n"; responseStream << " </tr>\n"; responseStream << " </tbody>\n"; responseStream << " </table>\n"; responseStream << " </form>\n"; responseStream << " </div>\n"; #line 219 "/Users/guenter/ws/git/my-devices/gateway/src/DevicePage.cpsp" } responseStream << " "; responseStream << "\n"; // begin include html/footer.inc responseStream << " </div>\n"; responseStream << " </div>\n"; responseStream << " <footer>\n"; responseStream << " <div class=\"footercontainer\">\n"; responseStream << " <div class=\"footer\">\n"; responseStream << " "; #line 6 "/Users/guenter/ws/git/my-devices/gateway/html/footer.inc" responseStream << ( pageTemplate["softwareVersion"] ); responseStream << " | &copy; 2015-2021 by <a href=\"https://macchina.io\">Applied Informatics GmbH</a> | Gateway Domain: "; #line 6 "/Users/guenter/ws/git/my-devices/gateway/html/footer.inc" responseStream << ( U::htmlize(pageTemplate["domain"]) ); responseStream << "\n"; responseStream << " </div>\n"; responseStream << " </div>\n"; responseStream << " </footer>\n"; responseStream << " </body>\n"; responseStream << "</html>\n"; // end include html/footer.inc responseStream << "\n"; if (_compressResponse) _gzipStream.close(); } } } // namespace MyDevices::Gateway
47.780556
124
0.565432
my-devices
48d9156940f56afa2d91ad0de06853d250f9958c
587
cc
C++
RAVL2/Contrib/Audio/DevAudio/RavlDevAudio.cc
isuhao/ravl2
317e0ae1cb51e320b877c3bad6a362447b5e52ec
[ "BSD-Source-Code" ]
null
null
null
RAVL2/Contrib/Audio/DevAudio/RavlDevAudio.cc
isuhao/ravl2
317e0ae1cb51e320b877c3bad6a362447b5e52ec
[ "BSD-Source-Code" ]
null
null
null
RAVL2/Contrib/Audio/DevAudio/RavlDevAudio.cc
isuhao/ravl2
317e0ae1cb51e320b877c3bad6a362447b5e52ec
[ "BSD-Source-Code" ]
null
null
null
// This file is part of RAVL, Recognition And Vision Library // Copyright (C) 2003, OmniPerception Ltd. // This code may be redistributed under the terms of the GNU Lesser // General Public License (LGPL). See the lgpl.licence file for details or // see http://www.gnu.org/copyleft/lesser.html // file-header-ends-here //! rcsid="$Id: RavlDevAudio.cc 3074 2003-06-13 07:23:52Z craftit $" //! lib=RavlDevAudio //! file="Ravl/Contrib/Audio/DevAudio/RavlDevAudio.cc" namespace RavlAudioN { extern void InitDevAudioFormat(); void InitDevAudio() { InitDevAudioFormat(); } }
30.894737
74
0.72402
isuhao
48dc418abb2057eb4c3071e1026fdccd3f61e871
181
cc
C++
src/reddit/source/RedditLabelSelection0_3.cc
venkate5hgunda/CSE598-Spring22-Group22-NetsDB
6c2dabd1a3b3f5901a97c788423fdd93cc0015d4
[ "Apache-2.0" ]
13
2022-01-17T16:14:26.000Z
2022-03-30T02:06:04.000Z
src/reddit/source/RedditLabelSelection0_3.cc
venkate5hgunda/CSE598-Spring22-Group22-NetsDB
6c2dabd1a3b3f5901a97c788423fdd93cc0015d4
[ "Apache-2.0" ]
1
2022-01-28T23:17:14.000Z
2022-01-28T23:17:14.000Z
src/reddit/source/RedditLabelSelection0_3.cc
venkate5hgunda/CSE598-Spring22-Group22-NetsDB
6c2dabd1a3b3f5901a97c788423fdd93cc0015d4
[ "Apache-2.0" ]
3
2022-01-18T02:13:53.000Z
2022-03-06T19:28:19.000Z
#ifndef REDDIT_LABEL_SELECTION_03CC #define REDDIT_LABEL_SELECTION_03CC #include "GetVTable.h" #include "RedditLabelSelection0_3.h" GET_V_TABLE(reddit::LabelSelection0_3) #endif
18.1
38
0.845304
venkate5hgunda
48dc8ec4b272b234dce70371486b61593228249d
2,195
cpp
C++
Kamek/src/levelnames.cpp
N-I-N-0/NSMBWii-Mod
56e45eeb3696f7dfa75dca13fdc2a384c8baa5fe
[ "MIT" ]
5
2021-07-02T19:37:47.000Z
2021-08-21T21:31:55.000Z
Kamek/src/levelnames.cpp
N-I-N-0/NSMBWii-Mod
56e45eeb3696f7dfa75dca13fdc2a384c8baa5fe
[ "MIT" ]
null
null
null
Kamek/src/levelnames.cpp
N-I-N-0/NSMBWii-Mod
56e45eeb3696f7dfa75dca13fdc2a384c8baa5fe
[ "MIT" ]
3
2021-03-11T09:42:52.000Z
2022-01-31T00:12:59.000Z
#include <common.h> #include <actors.h> #include <stage.h> #include "levelinfo_old.h" #include "fileload.h" #include "layoutlib.h" //#define DEBUG_NAMES #ifndef DEBUG_NAMES #endif extern char CurrentLevel; extern char CurrentWorld; int DoNames(int state) { int wnum = (int)CurrentWorld; int lnum = (int)CurrentLevel; //OSReport("DoNames 1 ...\n"); // Skip the title screen // and only process the code if the State is set to 1 // (the screen has been initialised) //OSReport("World: %p, Level: %p, state: %p\n", wnum, lnum, state); if (state == 1 && lnum != STAGE_TITLE) { // grab the CRSIN object Actor *ptr = FindActorByType(CRSIN, 0); OSReport("DoNames (levelnames.cpp) 2 ...\n"); // FIX !!!!! if (ptr != 0) { void *worldObj = EmbeddedLayout_FindTextBoxByName((Layout*)((u32)ptr+0xB0), "TXT_WorldName"); void *levelObj = EmbeddedLayout_FindTextBoxByName((Layout*)((u32)ptr+0xB0), "TXT_LevelName"); if (worldObj == 0 || levelObj == 0) return state; /*char *file = RetrieveFileFromArc(ARC_TABLE, "Mario", "newer/names.bin"); char *worldname = file + (wnum * 0x40); char *levelname = file + 0x280 + (wnum * 0xA80) + (lnum * 0x40);*/ FileHandle fh; void *info = LoadFile(&fh, "/NewerRes/LevelInfo.bin"); OSReport("LevelInfo.bin loaded ...\n"); LevelInfo_Prepare(&fh); LevelInfo_Entry *entry = LevelInfo_SearchSlot(info, wnum, lnum); char *worldname = LevelInfo_GetName(info, entry); char *levelname = ""; OSReport("levelname: %p\n", levelname); OSReport("worldname: %p\n", worldname); void *vtable = *((void**)levelObj); void *funcaddr = *((void**)((u32)vtable+0x7C)); int (*SetString)(void*, unsigned short*, unsigned short); SetString = (int(*)(void*, unsigned short*, unsigned short))funcaddr; unsigned short wbuffer[0x40], lbuffer[0x40]; for (int i = 0; i < 0x40; i++) { wbuffer[i] = (unsigned short)worldname[i]; lbuffer[i] = (unsigned short)levelname[i]; } SetString(worldObj, wbuffer, 0); SetString(levelObj, lbuffer, 0); FreeFile(&fh); } } else { } return state; } int DoNamesTest2(int state, u32 ptr) { return DoNames(state); }
27.4375
96
0.645558
N-I-N-0
48de86ea9cb2d42f4074f28d37c355c09f5bd3fd
3,249
cpp
C++
packages/data_gen/electron_photon/src/DataGen_AdjointIncoherentGridGenerator.cpp
lkersting/SCR-2123
06ae3d92998664a520dc6a271809a5aeffe18f72
[ "BSD-3-Clause" ]
null
null
null
packages/data_gen/electron_photon/src/DataGen_AdjointIncoherentGridGenerator.cpp
lkersting/SCR-2123
06ae3d92998664a520dc6a271809a5aeffe18f72
[ "BSD-3-Clause" ]
null
null
null
packages/data_gen/electron_photon/src/DataGen_AdjointIncoherentGridGenerator.cpp
lkersting/SCR-2123
06ae3d92998664a520dc6a271809a5aeffe18f72
[ "BSD-3-Clause" ]
null
null
null
//---------------------------------------------------------------------------// //! //! \file DataGen_AdjointIncoherentGridGenerator.cpp //! \author Alex Robinson //! \brief Adjoint incoherent grid generator definition //! //---------------------------------------------------------------------------// // FRENSIE Includes #include "DataGen_AdjointIncoherentGridGenerator.hpp" #include "Utility_PhysicalConstants.hpp" #include "Utility_ContractException.hpp" namespace DataGen{ // Initialize the static member data double AdjointIncoherentGridGenerator::s_min_table_energy = 0.0001; double AdjointIncoherentGridGenerator::s_max_table_energy = 20; const double AdjointIncoherentGridGenerator::s_max_table_energy_nudge_factor = 0.01; double AdjointIncoherentGridGenerator::s_nudged_max_table_energy = s_max_table_energy*(1.0+s_max_table_energy_nudge_factor); double AdjointIncoherentGridGenerator::s_energy_to_max_energy_nudge_factor = 1e-6; //! Set the min table energy (default is 0.0001 MeV) void AdjointIncoherentGridGenerator::setMinTableEnergy( const double min_energy ) { // Make sure the min energy is valid testPrecondition( min_energy > 0.0 ); testPrecondition( min_energy < s_max_table_energy ); s_min_table_energy = min_energy; } // Get the min table energy double AdjointIncoherentGridGenerator::getMinTableEnergy() { return s_min_table_energy; } // Set the max table energy (default is 20.0 MeV) void AdjointIncoherentGridGenerator::setMaxTableEnergy( const double max_energy ) { // Make sure the max energy is valid testPrecondition( max_energy > 0.0 ); testPrecondition( max_energy > s_min_table_energy ); s_max_table_energy = max_energy; s_nudged_max_table_energy = s_max_table_energy*(1.0+s_max_table_energy_nudge_factor); } // Get the max table energy double AdjointIncoherentGridGenerator::getMaxTableEnergy() { return s_max_table_energy; } //! Get the max table energy nudge factor double AdjointIncoherentGridGenerator::getNudgedMaxTableEnergy() { return s_nudged_max_table_energy; } // Set the energy to max energy nudge factor /*! \details Setting a factor of 0.0 means that every max energy grid will * start at the corresponding energy. This can be problematic for log * interpolation since the adjoint incoherent cross section is zero when * the energy is equal to the max energy. By pushing the first max energy * slightly above the corresponding energy with this factor, that problem * can be avoided (usually leading to smaller grids that converge faster). */ void AdjointIncoherentGridGenerator::setEnergyToMaxEnergyNudgeFactor( const double factor ) { // Make sure the factor is valid testPrecondition( factor >= 0.0 ); testPrecondition( factor <= 0.0001 ); s_energy_to_max_energy_nudge_factor = factor; } // Get the energy to max energy nudge factor double AdjointIncoherentGridGenerator::getEnergyToMaxEnergyNudgeFactor() { return s_energy_to_max_energy_nudge_factor; } } // end DataGen namespace //---------------------------------------------------------------------------// // end DataGen_AdjointIncoherentGridGenerator.cpp //---------------------------------------------------------------------------//
32.818182
79
0.709449
lkersting
48e26af1d53050950cd807a2b6d8e128e3ff1d8c
5,420
hpp
C++
src/uml/src_gen/uml/impl/ReadVariableActionImpl.hpp
dataliz9r/MDE4CPP
9c5ce01c800fb754c371f1a67f648366eeabae49
[ "MIT" ]
null
null
null
src/uml/src_gen/uml/impl/ReadVariableActionImpl.hpp
dataliz9r/MDE4CPP
9c5ce01c800fb754c371f1a67f648366eeabae49
[ "MIT" ]
1
2019-03-01T00:54:13.000Z
2019-03-04T02:15:50.000Z
src/uml/src_gen/uml/impl/ReadVariableActionImpl.hpp
vallesch/MDE4CPP
7f8a01dd6642820913b2214d255bef2ea76be309
[ "MIT" ]
null
null
null
//******************************************************************** //* //* Warning: This file was generated by ecore4CPP Generator //* //******************************************************************** #ifndef UML_READVARIABLEACTIONREADVARIABLEACTIONIMPL_HPP #define UML_READVARIABLEACTIONREADVARIABLEACTIONIMPL_HPP //********************************* // generated Includes //Model includes #include "../ReadVariableAction.hpp" #include "uml/impl/VariableActionImpl.hpp" //********************************* namespace uml { class ReadVariableActionImpl :virtual public VariableActionImpl, virtual public ReadVariableAction { public: ReadVariableActionImpl(const ReadVariableActionImpl & obj); virtual std::shared_ptr<ecore::EObject> copy() const; private: ReadVariableActionImpl& operator=(ReadVariableActionImpl const&) = delete; protected: friend class UmlFactoryImpl; ReadVariableActionImpl(); virtual std::shared_ptr<ReadVariableAction> getThisReadVariableActionPtr() const; virtual void setThisReadVariableActionPtr(std::weak_ptr<ReadVariableAction> thisReadVariableActionPtr); //Additional constructors for the containments back reference ReadVariableActionImpl(std::weak_ptr<uml::Activity > par_activity); //Additional constructors for the containments back reference ReadVariableActionImpl(std::weak_ptr<uml::StructuredActivityNode > par_inStructuredNode); //Additional constructors for the containments back reference ReadVariableActionImpl(std::weak_ptr<uml::Namespace > par_namespace); //Additional constructors for the containments back reference ReadVariableActionImpl(std::weak_ptr<uml::Element > par_owner); public: //destructor virtual ~ReadVariableActionImpl(); //********************************* // Operations //********************************* /*! The multiplicity of the variable must be compatible with the multiplicity of the output pin. variable.compatibleWith(result) */ virtual bool compatible_multiplicity(Any diagnostics,std::map < Any, Any > context) ; /*! The type and ordering of the result OutputPin are the same as the type and ordering of the variable. result.type =variable.type and result.isOrdered = variable.isOrdered */ virtual bool type_and_ordering(Any diagnostics,std::map < Any, Any > context) ; //********************************* // Attributes Getter Setter //********************************* //********************************* // Reference //********************************* /*! The OutputPin on which the result values are placed. <p>From package UML::Actions.</p> */ virtual std::shared_ptr<uml::OutputPin > getResult() const ; /*! The OutputPin on which the result values are placed. <p>From package UML::Actions.</p> */ virtual void setResult(std::shared_ptr<uml::OutputPin> _result_result) ; //********************************* // Union Getter //********************************* /*! ActivityGroups containing the ActivityNode. <p>From package UML::Activities.</p> */ virtual std::shared_ptr<Union<uml::ActivityGroup>> getInGroup() const ;/*! The ordered set of OutputPins representing outputs from the Action. <p>From package UML::Actions.</p> */ virtual std::shared_ptr<SubsetUnion<uml::OutputPin, uml::Element>> getOutput() const ;/*! The Elements owned by this Element. <p>From package UML::CommonStructure.</p> */ virtual std::shared_ptr<Union<uml::Element>> getOwnedElement() const ;/*! The Element that owns this Element. <p>From package UML::CommonStructure.</p> */ virtual std::weak_ptr<uml::Element > getOwner() const ;/*! The RedefinableElement that is being redefined by this element. <p>From package UML::Classification.</p> */ virtual std::shared_ptr<Union<uml::RedefinableElement>> getRedefinedElement() const ; //********************************* // Structural Feature Getter/Setter //********************************* virtual std::shared_ptr<ecore::EObject> eContainer() const ; //********************************* // Persistence Functions //********************************* virtual void load(std::shared_ptr<persistence::interfaces::XLoadHandler> loadHandler) ; virtual void loadAttributes(std::shared_ptr<persistence::interfaces::XLoadHandler> loadHandler, std::map<std::string, std::string> attr_list); virtual void loadNode(std::string nodeName, std::shared_ptr<persistence::interfaces::XLoadHandler> loadHandler, std::shared_ptr<uml::UmlFactory> modelFactory); virtual void resolveReferences(const int featureID, std::list<std::shared_ptr<ecore::EObject> > references) ; virtual void save(std::shared_ptr<persistence::interfaces::XSaveHandler> saveHandler) const ; virtual void saveContent(std::shared_ptr<persistence::interfaces::XSaveHandler> saveHandler) const; protected: virtual std::shared_ptr<ecore::EClass> eStaticClass() const; virtual Any eGet(int featureID, bool resolve, bool coreType) const ; virtual bool internalEIsSet(int featureID) const ; virtual bool eSet(int featureID, Any newValue) ; private: std::weak_ptr<ReadVariableAction> m_thisReadVariableActionPtr; }; } #endif /* end of include guard: UML_READVARIABLEACTIONREADVARIABLEACTIONIMPL_HPP */
38.169014
162
0.65
dataliz9r
48e7790aa357f7560fbfd873574f7527b14ac45e
75
cpp
C++
multimedia/directx/dxg/d3d8/fw/init.cpp
npocmaka/Windows-Server-2003
5c6fe3db626b63a384230a1aa6b92ac416b0765f
[ "Unlicense" ]
17
2020-11-13T13:42:52.000Z
2021-09-16T09:13:13.000Z
multimedia/directx/dxg/dd/ddraw/main/init.cpp
sancho1952007/Windows-Server-2003
5c6fe3db626b63a384230a1aa6b92ac416b0765f
[ "Unlicense" ]
2
2020-10-19T08:02:06.000Z
2020-10-19T08:23:18.000Z
multimedia/directx/dxg/dd/ddraw/main/init.cpp
sancho1952007/Windows-Server-2003
5c6fe3db626b63a384230a1aa6b92ac416b0765f
[ "Unlicense" ]
14
2020-11-14T09:43:20.000Z
2021-08-28T08:59:57.000Z
#define INITGUID #define this _this #include "ddrawpr.h" #undef this
12.5
21
0.706667
npocmaka
48e84a84477b34d5a3bea88f3015bbe33607ba05
4,471
cpp
C++
Sources/Elastos/Frameworks/Droid/Base/Core/src/elastos/droid/bluetooth/CBluetoothHealthAppConfiguration.cpp
jingcao80/Elastos
d0f39852356bdaf3a1234743b86364493a0441bc
[ "Apache-2.0" ]
7
2017-07-13T10:34:54.000Z
2021-04-16T05:40:35.000Z
Sources/Elastos/Frameworks/Droid/Base/Core/src/elastos/droid/bluetooth/CBluetoothHealthAppConfiguration.cpp
jingcao80/Elastos
d0f39852356bdaf3a1234743b86364493a0441bc
[ "Apache-2.0" ]
null
null
null
Sources/Elastos/Frameworks/Droid/Base/Core/src/elastos/droid/bluetooth/CBluetoothHealthAppConfiguration.cpp
jingcao80/Elastos
d0f39852356bdaf3a1234743b86364493a0441bc
[ "Apache-2.0" ]
9
2017-07-13T12:33:20.000Z
2021-06-19T02:46:48.000Z
//========================================================================= // Copyright (C) 2012 The Elastos Open Source Project // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. //========================================================================= #include "elastos/droid/bluetooth/CBluetoothHealthAppConfiguration.h" #include "elastos/droid/ext/frameworkdef.h" #include <elastos/core/StringBuilder.h> using Elastos::Core::StringBuilder; namespace Elastos { namespace Droid { namespace Bluetooth { CAR_INTERFACE_IMPL_2(CBluetoothHealthAppConfiguration, Object, IBluetoothHealthAppConfiguration, IParcelable); CAR_OBJECT_IMPL(CBluetoothHealthAppConfiguration); CBluetoothHealthAppConfiguration::CBluetoothHealthAppConfiguration() : mDataType(0) , mRole(0) , mChannelType(0) {} ECode CBluetoothHealthAppConfiguration::Equals( /* [in] */ IInterface* obj, /* [out] */ Boolean* equal) { VALIDATE_NOT_NULL(equal) AutoPtr<IBluetoothHealthAppConfiguration> config = IBluetoothHealthAppConfiguration::Probe(obj); if (config) { // config.getName() can never be NULL String name; config->GetName(&name); Int32 type, role, channelType; config->GetDataType(&type); config->GetRole(&role); config->GetChannelType(&channelType); *equal = mName.Equals(name) && mDataType == type && mRole == role && mChannelType == channelType; } *equal = FALSE; return NOERROR; } ECode CBluetoothHealthAppConfiguration::GetHashCode( /* [out] */ Int32 *hashCode) { Int32 result = 17; result = 31 * result + (mName.IsNull() ? 0 : mName.GetHashCode()); result = 31 * result + mDataType; result = 31 * result + mRole; result = 31 * result + mChannelType; return result; } ECode CBluetoothHealthAppConfiguration::ToString( /* [out] */ String* s) { VALIDATE_NOT_NULL(s) StringBuilder sb("BluetoothHealthAppConfiguration [mName = "); sb += mName; sb += ",mDataType = "; sb += mDataType; sb += ", mRole = "; sb += mRole; sb += ",mChannelType = "; sb += mChannelType; sb += "]"; *s = sb.ToString(); return NOERROR; } ECode CBluetoothHealthAppConfiguration::GetDataType( /* [out] */ Int32* type) { VALIDATE_NOT_NULL(type) *type = mDataType; return NOERROR; } ECode CBluetoothHealthAppConfiguration::GetName( /* [out] */ String* name) { VALIDATE_NOT_NULL(name) *name = mName; return NOERROR; } ECode CBluetoothHealthAppConfiguration::GetRole( /* [out] */ Int32* role) { VALIDATE_NOT_NULL(role) *role = mRole; return NOERROR; } ECode CBluetoothHealthAppConfiguration::GetChannelType( /* [out] */ Int32* type) { VALIDATE_NOT_NULL(type) *type = mChannelType; return NOERROR; } ECode CBluetoothHealthAppConfiguration::ReadFromParcel( /* [in] */ IParcel* source) { source->ReadString(&mName); source->ReadInt32(&mDataType); source->ReadInt32(&mRole); source->ReadInt32(&mChannelType); return NOERROR; } ECode CBluetoothHealthAppConfiguration::WriteToParcel( /* [in] */ IParcel* dest) { dest->WriteString(mName); dest->WriteInt32(mDataType); dest->WriteInt32(mRole); dest->WriteInt32(mChannelType); return NOERROR; } ECode CBluetoothHealthAppConfiguration::constructor() { return NOERROR; } ECode CBluetoothHealthAppConfiguration::constructor( /* [in] */ const String& name, /* [in] */ Int32 dataType) { mName = name; mDataType = dataType; mRole = IBluetoothHealth::SINK_ROLE; mChannelType = IBluetoothHealth::CHANNEL_TYPE_ANY; return NOERROR; } ECode CBluetoothHealthAppConfiguration::constructor( /* [in] */ const String& name, /* [in] */ Int32 dataType, /* [in] */ Int32 role, /* [in] */ Int32 channelType) { mName = name; mDataType = dataType; mRole = role; mChannelType = channelType; return NOERROR; } } } }
26.146199
110
0.656229
jingcao80
48eb0c326683df21cac8f4746870a48f58ece808
5,439
cpp
C++
source/ktwgEngine/contact.cpp
JasonWyx/ktwgEngine
410ba799f7000895995b9f9fc59d738f293f8871
[ "MIT" ]
null
null
null
source/ktwgEngine/contact.cpp
JasonWyx/ktwgEngine
410ba799f7000895995b9f9fc59d738f293f8871
[ "MIT" ]
12
2019-09-15T07:48:18.000Z
2019-12-08T17:23:22.000Z
source/ktwgEngine/contact.cpp
JasonWyx/ktwgEngine
410ba799f7000895995b9f9fc59d738f293f8871
[ "MIT" ]
null
null
null
#include "contact.h" #include "contactlistener.h" #include "fcollider.h" #include "boxcollider.h" #include "rigidbody.h" #include "gjk.h" #include "entity.h" void Contact::Update(ContactListener* listener) { // Get all necessary information from colliders // transform must be a world transformation BoxCollider* colliderA = pair_.colliders_[0]; BoxCollider* colliderB = pair_.colliders_[1]; RigidBody* bodyA = colliderA->GetRigidBody(); RigidBody* bodyB = colliderB->GetRigidBody(); bool isTriggerContact = colliderA->GetIsTrigger() || colliderB->GetIsTrigger(); // Contact is a trigger contact, no need for generating contact, so we do GJK collision detection check if (isTriggerContact) { GJK::GJKOutput output = GJK::GJK(colliderA, colliderB); float radiiA = colliderA->GetRadius(); float radiiB = colliderB->GetRadius(); bool colliding = output.distance_ <= radiiA + radiiB; // Update the contact state. if (colliding == true) flags_ |= flags_ & CF_COLLIDING ? CF_WASCOLLIDING : CF_COLLIDING; else { if (flags_ & CF_COLLIDING) { flags_ &= ~CF_COLLIDING; flags_ |= CF_WASCOLLIDING; } else flags_ &= ~CF_WASCOLLIDING; } } else { // Copy out the old manifold Manifold oldManifold = manifold_; Vec3 oldTangent0 = oldManifold.tangentVectors_[0]; Vec3 oldTangent1 = oldManifold.tangentVectors_[1]; // Solve and generate a manifold SolveCollision(); ComputeBasis(manifold_.normal_, &manifold_.tangentVectors_[0], &manifold_.tangentVectors_[1]); for (auto i = (int8_t)0; i < manifold_.contactCount_; ++i) { ContactInfo* contactInfo = manifold_.contactInfos_ + i; contactInfo->Initialize(); for (auto j = 0; j < oldManifold.contactCount_; ++j) { ContactInfo* oldContactInfo = oldManifold.contactInfos_ + j; if (contactInfo->id_.key == oldContactInfo->id_.key) { contactInfo->normalImpulse_ = oldContactInfo->normalImpulse_; Vec3 friction = oldTangent0 * oldContactInfo->tangentImpulse_[0] + oldTangent1 * oldContactInfo->tangentImpulse_[1]; contactInfo->tangentImpulse_[0] = Dot(friction, manifold_.tangentVectors_[0]); contactInfo->tangentImpulse_[1] = Dot(friction, manifold_.tangentVectors_[1]); break; } } } // If manifold has contact generated, It means there's a collision/no collision in this frame if (manifold_.contactCount_ > 0) { // If previous flag is Colliding, then current flag will be WasColliding because // the contact is already in colliding previous frame. // Whereas if the flag is not colliding, it means that the contact just begin its collision // So it is considered Colliding in this frame. flags_ |= flags_ & CF_COLLIDING ? CF_WASCOLLIDING : CF_COLLIDING; } else { // If no contact is generated in the manifold, it could mean the contact just ended collision // So if previous flag is Colliding, the current flag will not have Colliding set but only // wasColliding set to imply it had a past collision. // Whereas if flag is not in colliding anymore, we should reset the wasColliding flag to imply // there's no past collision this frame if (flags_ & CF_COLLIDING) { flags_ &= ~CF_COLLIDING; flags_ |= CF_WASCOLLIDING; } else flags_ &= ~CF_WASCOLLIDING; } } bool isColliding = flags_ & CF_COLLIDING; bool wasColliding = flags_ & CF_WASCOLLIDING; // Wake the bodies associated with the shapes if the contact has began. if (isColliding != wasColliding) { bodyA->SetAwake(true); bodyB->SetAwake(true); } // Collision detection events information are passed to the event dispatcher if (listener) { if (isTriggerContact) { if (isColliding && !wasColliding) listener->TriggerStarted(this); else if (!isColliding && wasColliding) listener->TriggerEnded(this); else if (isColliding && wasColliding) listener->TriggerPersist(this); } else { if (isColliding && !wasColliding) listener->ContactStarted(this); else if (!isColliding && wasColliding) listener->ContactEnded(this); else if (isColliding && wasColliding) listener->ContactPersist(this); } } } void Contact::SolveCollision() { CheckBoxToBox(manifold_, pair_.colliders_[0], pair_.colliders_[1]); } void Contact::DispatchEvent(ContactListener* listener) { BoxCollider* colliderA = pair_.colliders_[0]; BoxCollider* colliderB = pair_.colliders_[1]; bool isTriggerContact = colliderA->GetIsTrigger() || colliderB->GetIsTrigger(); bool isColliding = flags_ & CF_COLLIDING; bool wasColliding = flags_ & CF_WASCOLLIDING; if (listener) { if (isTriggerContact) { if (isColliding && !wasColliding) listener->TriggerStarted(this); else if (!isColliding && wasColliding) listener->TriggerEnded(this); else if (isColliding && wasColliding) listener->TriggerPersist(this); } else { if (isColliding && !wasColliding) listener->ContactStarted(this); else if (!isColliding && wasColliding) listener->ContactEnded(this); else if (isColliding && wasColliding) listener->ContactPersist(this); } } }
31.807018
126
0.668138
JasonWyx
48eb6daa171615dce1bd44281b1aa03b6536eae2
450
cpp
C++
utils/jsonutil.cpp
InkosiZhong/Space
d38f9595e02700eafbd1b44306bff24c00ef6933
[ "MIT" ]
4
2021-09-18T02:56:09.000Z
2022-03-16T12:38:39.000Z
utils/jsonutil.cpp
InkosiZhong/Space
d38f9595e02700eafbd1b44306bff24c00ef6933
[ "MIT" ]
null
null
null
utils/jsonutil.cpp
InkosiZhong/Space
d38f9595e02700eafbd1b44306bff24c00ef6933
[ "MIT" ]
1
2022-01-11T16:44:50.000Z
2022-01-11T16:44:50.000Z
#include "jsonutil.h" Util::JsonUtil::JsonUtil(std::string str) { parseJson(str); } bool Util::JsonUtil::parseJson(std::string str) { Json::CharReaderBuilder b; Json::CharReader* reader(b.newCharReader()); JSONCPP_STRING errs; bool ret = reader->parse(str.c_str(), str.c_str() + std::strlen(str.c_str()), &m_json, &errs); delete reader; return ret; } const Json::Value& Util::JsonUtil::getJson() { return m_json; }
23.684211
98
0.662222
InkosiZhong
48edae10b343ddee3e9f0e133d6af4b00ea353fc
2,240
cpp
C++
library/view/controls/focusable_border.cpp
topillar/PuTTY-ng
1f5bf26de0f42e03ef4f100fa879b16216d61abf
[ "MIT" ]
39
2019-06-22T12:25:54.000Z
2022-03-14T05:42:44.000Z
library/view/controls/focusable_border.cpp
topillar/PuTTY-ng
1f5bf26de0f42e03ef4f100fa879b16216d61abf
[ "MIT" ]
5
2019-06-29T10:58:43.000Z
2020-09-04T08:44:09.000Z
library/view/controls/focusable_border.cpp
topillar/PuTTY-ng
1f5bf26de0f42e03ef4f100fa879b16216d61abf
[ "MIT" ]
10
2019-08-07T06:08:23.000Z
2022-03-14T05:42:47.000Z
#include "focusable_border.h" #include "ui_gfx/canvas_skia.h" #include "ui_gfx/insets.h" namespace { // Define the size of the insets const int kTopInsetSize = 4; const int kLeftInsetSize = 4; const int kBottomInsetSize = 4; const int kRightInsetSize = 4; // Color settings for border. // These are tentative, and should be derived from theme, system // settings and current settings. // TODO(saintlou): understand why this is not factored/shared somewhere const SkColor kFocusedBorderColor = SK_ColorCYAN; const SkColor kDefaultBorderColor = SK_ColorGRAY; } namespace view { FocusableBorder::FocusableBorder() : has_focus_(false), insets_(kTopInsetSize, kLeftInsetSize, kBottomInsetSize, kRightInsetSize) {} void FocusableBorder::Paint(const View& view, gfx::Canvas* canvas) const { SkRect rect; rect.set(SkIntToScalar(0), SkIntToScalar(0), SkIntToScalar(view.width()), SkIntToScalar(view.height())); SkScalar corners[8] = { // top-left SkIntToScalar(insets_.left()), SkIntToScalar(insets_.top()), // top-right SkIntToScalar(insets_.right()), SkIntToScalar(insets_.top()), // bottom-right SkIntToScalar(insets_.right()), SkIntToScalar(insets_.bottom()), // bottom-left SkIntToScalar(insets_.left()), SkIntToScalar(insets_.bottom()), }; SkPath path; path.addRoundRect(rect, corners); SkPaint paint; paint.setStyle(SkPaint::kStroke_Style); paint.setFlags(SkPaint::kAntiAlias_Flag); // TODO(oshima): Copy what WebKit does for focused border. paint.setColor(has_focus_ ? kFocusedBorderColor : kDefaultBorderColor); paint.setStrokeWidth(SkIntToScalar(has_focus_ ? 2 : 1)); canvas->AsCanvasSkia()->drawPath(path, paint); } void FocusableBorder::GetInsets(gfx::Insets* insets) const { *insets = insets_; } void FocusableBorder::SetInsets(int top, int left, int bottom, int right) { insets_.Set(top, left, bottom, right); } } //namespace view
29.866667
79
0.632143
topillar
48ef738189014736312ddf3d2d0eb40222708568
2,573
cpp
C++
src/saveMap.cpp
softdream/Slam-Project-Of-MyOwn
6d6db8a5761e8530971b203983ea2215620aa5c2
[ "Apache-2.0" ]
21
2021-07-19T08:15:53.000Z
2022-03-31T07:07:55.000Z
src/saveMap.cpp
Forrest-Z/Slam-Project-Of-MyOwn
6d6db8a5761e8530971b203983ea2215620aa5c2
[ "Apache-2.0" ]
3
2022-03-02T12:55:37.000Z
2022-03-07T12:12:57.000Z
src/saveMap.cpp
softdream/Slam-Project-Of-MyOwn
6d6db8a5761e8530971b203983ea2215620aa5c2
[ "Apache-2.0" ]
4
2021-08-12T15:11:09.000Z
2022-01-08T14:20:36.000Z
#include "saveMap.h" namespace slam{ SaveMap::SaveMap() { } SaveMap::~SaveMap() { } bool SaveMap::openMapFile( const std::string &fileName ) { outfile.open( fileName, std::ios::binary | std::ios::out ); if( !outfile.is_open() ){ std::cerr<<"Failed to open the map file ..."<<std::endl; return false; } std::cerr<<"Open the Map File ..."<<std::endl; return true; } void SaveMap::closeMapFile() { return outfile.close(); } void SaveMap::setInputMapData( const OccupiedMap &map ) { occupiedMap = map; isSetInputMapData = true; } bool SaveMap::saveGridOccupiedMap() { if( !isSetInputMapData ){ return false; } // 1. first write the map information int sizeX = occupiedMap.getSizeX(); int sizeY = occupiedMap.getSizeY(); Eigen::Vector2i center = occupiedMap.getMapCenter(); int centerX = center(0); int centerY = center(1); float cellLength = occupiedMap.getCellLength(); float scale = occupiedMap.getScale(); // cells' number int cellsNumber = occupiedMap.getCellsNumber(); outfile.write( reinterpret_cast<char *>( &sizeX ), sizeof( sizeX ) ); outfile.write( reinterpret_cast<char *>( &sizeY ), sizeof( sizeY ) ); outfile.write( reinterpret_cast<char *>( &centerX ), sizeof( centerX ) ); outfile.write( reinterpret_cast<char *>( &centerY ), sizeof( centerY ) ); outfile.write( reinterpret_cast<char *>( &cellLength ), sizeof( cellLength ) ); outfile.write( reinterpret_cast<char *>( &scale ), sizeof( scale ) ); outfile.write( reinterpret_cast<char *>( &cellsNumber ), sizeof( cellsNumber ) ); // 2. write the GridCell Operations information float logOddsPocc = occupiedMap.getLogOddsPoccValue(); float logOddsPfree = occupiedMap.getLogOddsPfreeValue(); outfile.write( reinterpret_cast<char *>( &logOddsPocc ), sizeof( logOddsPocc )); outfile.write( reinterpret_cast<char *>( &logOddsPfree ), sizeof( logOddsPfree ) ); // 3. write the Occupied Grid Map information // TODO ... not important // 4. write the GridCell information, it is a std::vector std::vector<GridCell> mapArray = occupiedMap.getMapArray(); outfile.write( reinterpret_cast<char *>( mapArray.data() ), mapArray.size() * sizeof( GridCell ) ); return true; } bool SaveMap::operator()( const std::string &fileName, const OccupiedMap &map ) { // 1. open the file if( !openMapFile( fileName ) ){ return false; } // 2. set the input occupied grid map setInputMapData( map ); // 3. save the occupied grid map if( !saveGridOccupiedMap() ){ return false; } // 4. close the file closeMapFile(); return true; } }
23.18018
100
0.690634
softdream
f701b5eb4571d0dace475292f6ee1b6ce56cbcf2
5,408
cpp
C++
components/hifi3/rkdsp/drivers/intc/intc.cpp
h-hys/rk2108_202012_SDK
c0880365a8eb208979df0a45ae350c8fe8f565c6
[ "Apache-2.0" ]
null
null
null
components/hifi3/rkdsp/drivers/intc/intc.cpp
h-hys/rk2108_202012_SDK
c0880365a8eb208979df0a45ae350c8fe8f565c6
[ "Apache-2.0" ]
1
2021-08-19T10:47:10.000Z
2021-08-19T10:47:10.000Z
components/hifi3/rkdsp/drivers/intc/intc.cpp
h-hys/rk2108_202012_SDK
c0880365a8eb208979df0a45ae350c8fe8f565c6
[ "Apache-2.0" ]
3
2021-04-24T23:33:56.000Z
2022-01-14T07:13:38.000Z
/* * Copyright (c) 2019 Rockchip Electronics Co. Ltd. * Author: Huaping Liao <huaping.liao@rock-chips.com> * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ #include "intc.h" #include <string.h> #include <stdint.h> #include <xtensa/hal.h> #include <xtensa/core-macros.h> #include <xtensa/xtruntime.h> #include "error.h" #include "io.h" #include "iomap.h" #include "section.h" #define REG_L 32 #define INTC_IRQ_TYPE IRQ_LEVEL0 /* DSP INTC registers */ #define INTC_IRQ_INTEN_L 0x00 #define INTC_IRQ_INTEN_H 0x04 #define INTC_IRQ_INTMASK_L 0x08 #define INTC_IRQ_INTMASK_H 0x0c #define INTC_IRQ_INTFORCE_L 0x10 #define INTC_IRQ_INTFORCE_H 0x14 #define INTC_IRQ_RAWSTATUS_L 0x18 #define INTC_IRQ_RAWSTATUS_H 0x1c #define INTC_IRQ_STATUS_L 0x20 #define INTC_IRQ_STATUS_H 0x24 #define INTC_IRQ_MASKSTATUS_L 0x28 #define INTC_IRQ_MASKSTATUS_H 0x2c #define INTC_IRQ_FINALSTATUS_L 0x30 #define INTC_IRQ_FINALSTATUS_H 0x34 #define INTC_IRQ_PLEVEL 0xd8 #define INTC_IRQ_PR_OFFSET 0xe8 struct irq_info { enum irq_num irq_num; isr_t isr; void *params; }; struct intc_regs { volatile uint32_t inten_l; volatile uint32_t inten_h; volatile uint32_t intmask_l; volatile uint32_t intmask_h; volatile uint32_t intforce_l; volatile uint32_t intforce_h; volatile uint32_t rawstatus_l; volatile uint32_t rawstatus_h; volatile uint32_t status_l; volatile uint32_t status_h; volatile uint32_t maskstatus_l; volatile uint32_t maskstatus_h; volatile uint32_t finalstatus_l; volatile uint32_t finalstatus_h; volatile uint32_t res0[0xd8 - 0x34]; volatile uint32_t plevel; volatile uint32_t res1[0xe8 - 0xd8]; volatile uint32_t pr_offset; }; static __sys_data__ struct irq_info g_irqs[IRQ_MAX_NUM]; extern "C" void intc_irq_handler(void *arg) { uint32_t irq_num; uint32_t status_l, status_h; struct intc_regs *intc_reg = (struct intc_regs *)DSP_INTC_BASE; // _xtos_clear_ints(INTC_IRQ_TYPE); status_l = intc_reg->status_l; status_h = intc_reg->status_h; for (irq_num = 0; irq_num < IRQ_MAX_NUM; irq_num++) { if (irq_num < REG_L) { if (status_l & 1) break; status_l >>= 1; } else { if (status_h & 1) break; status_h >>= 1; } } if (irq_num < IRQ_MAX_NUM && g_irqs[irq_num].isr) g_irqs[irq_num].isr((enum irq_num)irq_num, g_irqs[irq_num].params); return; } __sys__ int irq_mask(enum irq_num irq_num) { struct intc_regs *intc_reg = (struct intc_regs*)DSP_INTC_BASE; if (irq_num >= IRQ_MAX_NUM || irq_num < 0) return -EINVALID; if (irq_num < REG_L) intc_reg->intmask_l |= (0x1 << (irq_num & 0x1f)); else intc_reg->intmask_h |= (0x1 << ((irq_num - REG_L) & 0x1f)); return 0; } __sys__ int irq_unmask(enum irq_num irq_num) { struct intc_regs *intc_reg = (struct intc_regs *)DSP_INTC_BASE; if (irq_num >= IRQ_MAX_NUM || irq_num < 0) return -EINVALID; if (irq_num < REG_L) intc_reg->intmask_l &= (~(0x1 << (irq_num & 0x1f))); else intc_reg->intmask_h &= (~(0x1 << ((irq_num - REG_L) & 0x1f))); return 0; } __sys__ int irq_register_isr(enum irq_num irq_num, isr_t isr, void* params) { if (irq_num >= IRQ_MAX_NUM || irq_num < 0) return -EINVALID; g_irqs[irq_num].isr = isr; g_irqs[irq_num].irq_num = irq_num; g_irqs[irq_num].params = params; return 0; } __sys__ int irq_unregister_isr(enum irq_num irq_num) { if (irq_num >= IRQ_MAX_NUM || irq_num < 0) return -EINVALID; g_irqs[irq_num].isr = NULL; g_irqs[irq_num].irq_num = IRQ_MAX_NUM; g_irqs[irq_num].params = NULL; return 0; } __sys__ int irq_enable(enum irq_num irq_num) { struct intc_regs *intc_reg = (struct intc_regs *)DSP_INTC_BASE; if (irq_num >= IRQ_MAX_NUM || irq_num < 0) return -EINVALID; if (irq_num < REG_L) intc_reg->inten_l |= (0x1 << (irq_num & 0x1f)); else intc_reg->inten_h |= (0x1 << ((irq_num - REG_L) & 0x1f)); return 0; } __sys__ int irq_disable(enum irq_num irq_num) { struct intc_regs *intc_reg = (struct intc_regs *)DSP_INTC_BASE; if (irq_num >= IRQ_MAX_NUM || irq_num < 0) return -EINVALID; if (irq_num < REG_L) intc_reg->inten_l &= (~(0x1 << (irq_num & 0x1f))); else intc_reg->inten_h &= (~(0x1 << ((irq_num - REG_L) & 0x1f))); return 0; } __sys__ int intc_init(void) { memset(g_irqs, 0, sizeof(g_irqs)); _xtos_set_interrupt_handler(INTC_IRQ_TYPE, (_xtos_handler)&intc_irq_handler); _xtos_interrupt_enable(INTC_IRQ_TYPE); return 0; } __sys__ int intc_deinit(void) { _xtos_interrupt_disable(INTC_IRQ_TYPE); return 0; }
26.252427
75
0.66716
h-hys
f708082fb3f69836363b51a23717eaaffa118604
3,751
cpp
C++
Visual Mercutio/zModel/PSS_UserEntity.cpp
Jeanmilost/Visual-Mercutio
f079730005b6ce93d5e184bb7c0893ccced3e3ab
[ "MIT" ]
1
2022-01-31T06:24:24.000Z
2022-01-31T06:24:24.000Z
Visual Mercutio/zModel/PSS_UserEntity.cpp
Jeanmilost/Visual-Mercutio
f079730005b6ce93d5e184bb7c0893ccced3e3ab
[ "MIT" ]
2
2021-04-11T15:50:42.000Z
2021-06-05T08:23:04.000Z
Visual Mercutio/zModel/PSS_UserEntity.cpp
Jeanmilost/Visual-Mercutio
f079730005b6ce93d5e184bb7c0893ccced3e3ab
[ "MIT" ]
2
2021-01-08T00:55:18.000Z
2022-01-31T06:24:18.000Z
/**************************************************************************** * ==> PSS_UserEntity ------------------------------------------------------* **************************************************************************** * Description : Provides an user entity * * Developer : Processsoft * ****************************************************************************/ #include "stdafx.h" #include "PSS_UserEntity.h" // processsoft #include "zBaseLib\PSS_BaseDocument.h" #include "zBaseLib\PSS_GUID.h" #ifdef _DEBUG #undef THIS_FILE static char THIS_FILE[]=__FILE__; #define new DEBUG_NEW #endif //--------------------------------------------------------------------------- // Serialization //--------------------------------------------------------------------------- IMPLEMENT_SERIAL(PSS_UserEntity, CObject, g_DefVersion) //--------------------------------------------------------------------------- // PSS_UserEntity //--------------------------------------------------------------------------- PSS_UserEntity::PSS_UserEntity(const CString& name, const CString& description, const float cost, PSS_UserEntity* pParent) : CObject(), m_pParent(pParent), m_EntityName(name), m_EntityDescription(description), m_EntityCost(cost) { CreateGUID(); } //--------------------------------------------------------------------------- PSS_UserEntity::PSS_UserEntity(const PSS_UserEntity& other) : CObject(), m_pParent(NULL), m_EntityCost(0.0f) { *this = other; } //--------------------------------------------------------------------------- PSS_UserEntity::~PSS_UserEntity() {} //--------------------------------------------------------------------------- PSS_UserEntity& PSS_UserEntity::operator = (const PSS_UserEntity& other) { m_GUID = other.m_GUID; m_EntityName = other.m_EntityName; m_EntityDescription = other.m_EntityDescription; m_EntityCost = other.m_EntityCost; return *this; } //--------------------------------------------------------------------------- PSS_UserEntity* PSS_UserEntity::Clone() const { return new PSS_UserEntity(*this); } //--------------------------------------------------------------------------- #ifdef _DEBUG void PSS_UserEntity::AssertValid() const { CObject::AssertValid(); } #endif //--------------------------------------------------------------------------- #ifdef _DEBUG void PSS_UserEntity::Dump(CDumpContext& dc) const { CObject::Dump(dc); } #endif //--------------------------------------------------------------------------- void PSS_UserEntity::Serialize(CArchive& ar) { if (ar.IsStoring()) { // write the elements ar << m_GUID; ar << m_EntityName; ar << m_EntityDescription; ar << m_EntityCost; } else { // read the elements CString s; ar >> s; PSS_BaseDocument* pBaseDoc = dynamic_cast<PSS_BaseDocument*>(ar.m_pDocument); if (pBaseDoc && pBaseDoc->GetDocumentStamp().GetInternalVersion() >= 19) { m_GUID = s; ar >> m_EntityName; } else { CreateGUID(); m_EntityName = s; } ar >> m_EntityDescription; ar >> m_EntityCost; } } //--------------------------------------------------------------------------- void PSS_UserEntity::CreateGUID() { m_GUID = PSS_GUID::CreateNewGUID(); } //---------------------------------------------------------------------------
31.258333
85
0.384164
Jeanmilost
f7082d839adb42570f822c19cd5030ddc1d6d7f9
142
hpp
C++
engine/include/ECS/EntityID.hpp
Trypio/Aeyon3D
6e630228fe8f8fe269ab1dfc835a7c7c5d314c2b
[ "MIT" ]
null
null
null
engine/include/ECS/EntityID.hpp
Trypio/Aeyon3D
6e630228fe8f8fe269ab1dfc835a7c7c5d314c2b
[ "MIT" ]
null
null
null
engine/include/ECS/EntityID.hpp
Trypio/Aeyon3D
6e630228fe8f8fe269ab1dfc835a7c7c5d314c2b
[ "MIT" ]
null
null
null
// // // #ifndef AEYON3D_ENTITYID_HPP #define AEYON3D_ENTITYID_HPP #include "UUID.hpp" namespace aeyon { using EntityID = UUID; } #endif
8.875
28
0.71831
Trypio
f7088698d5750e03f9b40ba6c9ca7918fd02ae98
372
cpp
C++
Baekjoon/11399.cpp
r4k0nb4k0n/Programming-Challenges
3d734902a7503f9dc49c97fe6e69e7541cd73e56
[ "MIT" ]
2
2019-05-24T08:58:26.000Z
2022-01-09T00:46:42.000Z
Baekjoon/11399.cpp
r4k0nb4k0n/Programming-Challenges
3d734902a7503f9dc49c97fe6e69e7541cd73e56
[ "MIT" ]
null
null
null
Baekjoon/11399.cpp
r4k0nb4k0n/Programming-Challenges
3d734902a7503f9dc49c97fe6e69e7541cd73e56
[ "MIT" ]
null
null
null
#include <iostream> #include <algorithm> #include <vector> #include <functional> using namespace std; int main(){ int N; vector<int> v; cin >> N; while(N--){ int temp; cin >> temp; v.push_back(temp); } int sum=0; sort(v.begin(), v.end(), greater<int>()); // Descending order. 내림차순 for(int i=0;i<v.size();i++){ sum+=v[i]*(i+1); } cout << sum; return 0; }
16.909091
67
0.599462
r4k0nb4k0n
f709117efc226ae5b24cf8b26079f99a88d45fbd
8,738
cpp
C++
src/cpp/SPL/Runtime/ProcessingElement/PEMetricsImpl.cpp
IBMStreams/OSStreams
c6287bd9ec4323f567d2faf59125baba8604e1db
[ "Apache-2.0" ]
10
2021-02-19T20:19:24.000Z
2021-09-16T05:11:50.000Z
src/cpp/SPL/Runtime/ProcessingElement/PEMetricsImpl.cpp
xguerin/openstreams
7000370b81a7f8778db283b2ba9f9ead984b7439
[ "Apache-2.0" ]
7
2021-02-20T01:17:12.000Z
2021-06-08T14:56:34.000Z
src/cpp/SPL/Runtime/ProcessingElement/PEMetricsImpl.cpp
IBMStreams/OSStreams
c6287bd9ec4323f567d2faf59125baba8604e1db
[ "Apache-2.0" ]
4
2021-02-19T18:43:10.000Z
2022-02-23T14:18:16.000Z
/* * Copyright 2021 IBM Corporation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ #include <SPL/Runtime/ProcessingElement/PEMetricsImpl.h> #include <NAM/NAM_NameService.h> #include <SAM/augmentedApplicationModel.h> #include <SPL/Runtime/Common/RuntimeMessage.h> #include <SPL/Runtime/Common/SystemMetricInfoFactory.h> #include <SPL/Runtime/ProcessingElement/PEImpl.h> #include <SPL/Runtime/ProcessingElement/PETransportPorts.h> #include <UTILS/HostInfo.h> #include <cassert> #include <sstream> #include <string> #include <sys/resource.h> using namespace SPL; using namespace std; using namespace Distillery; using namespace Streams; PEMetricsImpl::PEMetricsImpl(PEImpl& pe) : pe_(pe) { uint32_t numIps = pe_.getPEModel().inputPorts().inputPort().size(); uint32_t numOps = pe_.getPEModel().outputPorts().outputPort().size(); inputMetricsRaw_ = new InputPortMetricBlock[numIps]; outputMetricsRaw_ = new OutputPortMetricBlock[numOps]; // Check metric count assert(SystemMetricInfoFactory::getSystemMetricInfoCount( SystemMetricInfoFactory::PEInputPort) == nFinalPunctsProcessed + 1); assert(SystemMetricInfoFactory::getSystemMetricInfoCount( SystemMetricInfoFactory::PEOutputPort) == nConnections + 1); // input port metrics for (uint32_t i = 0; i < numIps; ++i) { createInputPortMetric(i, nTuplesProcessed, "nTuplesProcessed"); createInputPortMetric(i, nTupleBytesProcessed, "nTupleBytesProcessed"); createInputPortMetric(i, nWindowPunctsProcessed, "nWindowPunctsProcessed"); createInputPortMetric(i, nFinalPunctsProcessed, "nFinalPunctsProcessed"); } // output port metrics for (uint32_t i = 0; i < numOps; ++i) { createOutputPortMetric(i, nTuplesSubmitted, "nTuplesSubmitted"); createOutputPortMetric(i, nTupleBytesSubmitted, "nTupleBytesSubmitted"); createOutputPortMetric(i, nWindowPunctsSubmitted, "nWindowPunctsSubmitted"); createOutputPortMetric(i, nFinalPunctsSubmitted, "nFinalPunctsSubmitted"); createOutputPortMetric(i, nBrokenConnections, "nBrokenConnections"); createOutputPortMetric(i, nRequiredConnecting, "nRequiredConnecting"); createOutputPortMetric(i, nOptionalConnecting, "nOptionalConnecting"); createOutputPortMetric(i, nTuplesTransmitted, "nTuplesTransmitted"); createOutputPortMetric(i, nTupleBytesTransmitted, "nTupleBytesTransmitted"); createOutputPortMetric(i, nConnections, "nConnections"); } } PEMetricsImpl::~PEMetricsImpl() { APPTRC(L_DEBUG, "Deallocating metrics data structure for PE " << "'" << pe_.getPEId() << "'", SPL_METRIC_DBG); for (size_t i = 0, iu = inputMetrics_.size(); i < iu; ++i) { for (size_t j = 0, ju = inputMetrics_[i].size(); j < ju; ++j) { dumpMetricAtExit(*inputMetrics_[i][j]); delete inputMetrics_[i][j]; } } for (size_t i = 0, iu = outputMetrics_.size(); i < iu; ++i) { for (size_t j = 0, ju = outputMetrics_[i].size(); j < ju; ++j) { dumpMetricAtExit(*outputMetrics_[i][j]); delete outputMetrics_[i][j]; } } delete[] inputMetricsRaw_; delete[] outputMetricsRaw_; } void PEMetricsImpl::dumpMetricAtExit(Metric& metric) { if (!pe_.isStandalone()) { APPTRC((pe_.hasFailedOperators() ? L_ERROR : L_DEBUG), SPL_RUNTIME_PE_METRIC_FINAL_VALUE(metric.getDescription(), metric.getValueNoLock()), SPL_METRIC_DBG); } } void PEMetricsImpl::createInputPortMetric(uint32_t port, InputPortMetricName name, string const& shortName) { SystemMetricInfo const& mi = SystemMetricInfoFactory::getSystemMetricInfo(shortName, SystemMetricInfoFactory::PEInputPort); assert((InputPortMetricName)mi.getIndex() == name); const string& longName = mi.getDescription(); Metric::Kind kind = mi.getKind(); SystemMetricImpl* m = createPortMetric(port, shortName, longName, kind, &(inputMetricsRaw_[port][name])); if (inputMetrics_.size() == port) { inputMetrics_.push_back(vector<SystemMetricImpl*>()); } inputMetrics_[port].push_back(m); inputMetricsRaw_[port][name].store(0, boost::memory_order_relaxed); } void PEMetricsImpl::createOutputPortMetric(uint32_t port, OutputPortMetricName name, string const& shortName) { SystemMetricInfo const& mi = SystemMetricInfoFactory::getSystemMetricInfo( shortName, SystemMetricInfoFactory::PEOutputPort); assert((OutputPortMetricName)mi.getIndex() == name); const string& longName = mi.getDescription(); Metric::Kind kind = mi.getKind(); SystemMetricImpl* m = createPortMetric(port, shortName, longName, kind, &(outputMetricsRaw_[port][name])); if (outputMetrics_.size() == port) { outputMetrics_.push_back(vector<SystemMetricImpl*>()); } outputMetrics_[port].push_back(m); outputMetricsRaw_[port][name].store(0, boost::memory_order_relaxed); } SystemMetricImpl* PEMetricsImpl::createPortMetric(uint32_t port, string const& shortName, string const& longName, Metric::Kind kind, boost::atomic<int64_t>* value) { stringstream strLong; strLong.imbue(locale::classic()); strLong << longName << " (port " << port << ")"; SystemMetricImpl* np = new SystemMetricImpl(shortName, strLong.str(), kind, value); return np; } /// Fill in system PE metrics data (PE ports) void PEMetricsImpl::getMetrics(PEMetricsInfo& peMetrics) const { uint32_t numIps = pe_.getPEModel().inputPorts().inputPort().size(); uint32_t numOps = pe_.getPEModel().outputPorts().outputPort().size(); // input port metrics for (uint32_t i = 0; i < numIps; ++i) { APPTRC(L_TRACE, "Get input port metric" << i, SPL_METRIC_DBG); InputPortMetricBlock& m = inputMetricsRaw_[i]; PortMetricsInfo pmi(i); for (uint32_t j = 0; j < numInputPortMetrics; j++) { pmi.addMetrics(m[j]); } peMetrics.addInputPortMetrics(pmi); } APPTRC(L_TRACE, "Finished input metrics", SPL_METRIC_DBG); // output port metrics for (uint32_t i = 0; i < numOps; ++i) { APPTRC(L_TRACE, "Get output port metric " << i, SPL_METRIC_DBG); OutputPortMetricBlock& m = outputMetricsRaw_[i]; PEOutputPortMetricsInfo pmi(i); for (uint32_t j = 0; j < numOutputPortMetrics; j++) { pmi.addMetrics(m[j]); } // We need to add the congestion factor for the output port // Also put in a 0 for nTuplesFilteredOut at this time vector<DataSender::OutputCongestion> congestionfactors; vector<PETransportOPort::FilterMetric> metrics; APPTRC(L_TRACE, "Get congestion factors", SPL_METRIC_DBG); pe_.getCongestionFactorsAndMetrics(i, congestionfactors, metrics); for (uint32_t j = 0, uj = congestionfactors.size(); j < uj; j++) { APPTRC(L_TRACE, "Process congestion factor " << j, SPL_METRIC_DBG); const DataSender::OutputCongestion& cf = congestionfactors[j]; vector<int64_t> opm; // Congestion factor opm.push_back(cf.congestionFactor); // nTuplesFilteredOut int64_t nTuplesFilteredOut = 0; for (uint32_t k = 0, uk = metrics.size(); k < uk; k++) { PETransportOPort::FilterMetric& fm = metrics[k]; if (fm.match(cf.receiverPEId, cf.receiverPortId)) { nTuplesFilteredOut = fm.nTuplesFilteredOut(); break; } } opm.push_back(nTuplesFilteredOut); pmi.addConnectionMetric(cf.receiverPEId, cf.receiverPortId, opm); } peMetrics.addOutputPortMetrics(pmi); } APPTRC(L_TRACE, "Finished output metrics", SPL_METRIC_DBG); }
42.009615
100
0.652094
IBMStreams
f70a2db5f8ca8998a0bee8002662fe5fa85330ca
1,254
cpp
C++
tests/geometry/PointTest.cpp
cuhkshenzhen/CUHKSZLib
4ad122d7e736cda3e768c8ae8dcad1f9fb195a1f
[ "MIT" ]
null
null
null
tests/geometry/PointTest.cpp
cuhkshenzhen/CUHKSZLib
4ad122d7e736cda3e768c8ae8dcad1f9fb195a1f
[ "MIT" ]
29
2017-04-26T09:15:28.000Z
2017-05-21T15:50:37.000Z
tests/geometry/PointTest.cpp
cuhkshenzhen/CUHKSZLib
4ad122d7e736cda3e768c8ae8dcad1f9fb195a1f
[ "MIT" ]
7
2017-04-26T09:32:39.000Z
2021-11-03T02:00:07.000Z
#include "geometry/Point.h" #include "gtest/gtest.h" TEST(Point, initialize) { cuhksz::Point<1> a1, b1(5); EXPECT_DOUBLE_EQ(b1[0], 5); cuhksz::Point<2> a2, b2(2, 3); EXPECT_DOUBLE_EQ(b2[0], 2); EXPECT_DOUBLE_EQ(b2[1], 3); cuhksz::Point<3> a3, b3(1, 2, 3); EXPECT_DOUBLE_EQ(b3[0], 1); EXPECT_DOUBLE_EQ(b3[1], 2); EXPECT_DOUBLE_EQ(b3[2], 3); } TEST(GVector, addition) { cuhksz::GVector<2> a(2, 3), b(1, 5), c; c = a + b; EXPECT_DOUBLE_EQ(c[0], 3); EXPECT_DOUBLE_EQ(c[1], 8); } TEST(GVector, subtraction) { cuhksz::GVector<2> a(2, 3), b(1, 5), c; c = a - b; EXPECT_DOUBLE_EQ(c[0], 1); EXPECT_DOUBLE_EQ(c[1], -2); } TEST(GVector, mulNumber) { cuhksz::GVector<2> a(2, 3), b; b = a * 2; EXPECT_DOUBLE_EQ(b[0], 4); EXPECT_DOUBLE_EQ(b[1], 6); a = 2 * b; EXPECT_DOUBLE_EQ(a[0], 8); EXPECT_DOUBLE_EQ(a[1], 12); } TEST(GVector, dotProduct) { cuhksz::GVector<2> a(2, 3), b(3, 5); EXPECT_DOUBLE_EQ(dot(a, b), 21); a = cuhksz::GVector<2>(-2, 3); b = cuhksz::GVector<2>(1, -5); EXPECT_DOUBLE_EQ(a * b, -17); } TEST(GVector, crossProduct) { cuhksz::Point<2> a(2, 3), b(3, 5); EXPECT_DOUBLE_EQ(cross(a, b), 1); } TEST(GVector, len) { cuhksz::GVector<2> a(3, 4); EXPECT_DOUBLE_EQ(a.len(), 5); }
20.557377
41
0.600478
cuhkshenzhen
f70c491ad4bf66c45b1e31a1c1501654f6e45353
1,409
cpp
C++
src/py/wrapper/wrapper_473db32424065b56b6f464f44bfd1500.cpp
StatisKit/StatisKit-GLM
c26d21d95ae2da54add6c4542b16df41c201ccc5
[ "Apache-2.0" ]
1
2019-11-09T03:49:49.000Z
2019-11-09T03:49:49.000Z
src/py/wrapper/wrapper_473db32424065b56b6f464f44bfd1500.cpp
StatisKit/StatisKit-GLM
c26d21d95ae2da54add6c4542b16df41c201ccc5
[ "Apache-2.0" ]
3
2017-05-23T12:32:06.000Z
2019-06-03T10:59:30.000Z
src/py/wrapper/wrapper_473db32424065b56b6f464f44bfd1500.cpp
StatisKit/GLM
c26d21d95ae2da54add6c4542b16df41c201ccc5
[ "Apache-2.0" ]
5
2018-03-20T10:21:13.000Z
2021-03-15T18:27:17.000Z
#include "_glm.h" namespace autowig { } void wrapper_473db32424065b56b6f464f44bfd1500(pybind11::module& module) { pybind11::class_<class ::statiskit::glm::QuantitativeScalarRegressionFisherEstimation< class ::statiskit::glm::NegativeBinomialRegression, struct ::statiskit::DiscreteUnivariateConditionalDistributionEstimation >, autowig::HolderType< class ::statiskit::glm::QuantitativeScalarRegressionFisherEstimation< class ::statiskit::glm::NegativeBinomialRegression, struct ::statiskit::DiscreteUnivariateConditionalDistributionEstimation > >::Type, class ::statiskit::glm::ScalarRegressionFisherEstimation< class ::statiskit::glm::NegativeBinomialRegression, struct ::statiskit::DiscreteUnivariateConditionalDistributionEstimation > > class_473db32424065b56b6f464f44bfd1500(module, "_QuantitativeScalarRegressionFisherEstimation_473db32424065b56b6f464f44bfd1500", ""); class_473db32424065b56b6f464f44bfd1500.def(pybind11::init< >()); class_473db32424065b56b6f464f44bfd1500.def(pybind11::init< class ::statiskit::glm::NegativeBinomialRegression const *, class ::statiskit::UnivariateConditionalData const * >()); class_473db32424065b56b6f464f44bfd1500.def(pybind11::init< class ::statiskit::glm::QuantitativeScalarRegressionFisherEstimation< class ::statiskit::glm::NegativeBinomialRegression, struct ::statiskit::DiscreteUnivariateConditionalDistributionEstimation > const & >()); }
93.933333
763
0.832505
StatisKit
f70ce9b7c2b748abad82cceec2f558e46e4014db
6,919
cpp
C++
gpiq_/gpiq_/gpiq_rjsxx.cpp
Pavel-Innokentevich-Galanin/5-sem_NPO
b707ad206aa214b0d8413639a4d059bae85e1c54
[ "Unlicense" ]
null
null
null
gpiq_/gpiq_/gpiq_rjsxx.cpp
Pavel-Innokentevich-Galanin/5-sem_NPO
b707ad206aa214b0d8413639a4d059bae85e1c54
[ "Unlicense" ]
null
null
null
gpiq_/gpiq_/gpiq_rjsxx.cpp
Pavel-Innokentevich-Galanin/5-sem_NPO
b707ad206aa214b0d8413639a4d059bae85e1c54
[ "Unlicense" ]
null
null
null
#include "gpiq_rjsxx.h" #include "ui_gpiq_rjsxx.h" #include <QDebug> gpiq_rjsxx::gpiq_rjsxx(QWidget *parent) : QDialog(parent), ui(new Ui::gpiq_rjsxx) { ui->setupUi(this); connect(ui->gpiq_rjsxx_grid_c, SIGNAL(clicked()), this, SLOT(gpiq_rjsxx_grid_cClick())); connect(ui->gpiq_rjsxx_back_c, SIGNAL(clicked()), this, SLOT(gpiq_rjsxx_back_cClick())); connect(ui->gpiq_rjsxx_next_c, SIGNAL(clicked()), this, SLOT(gpiq_rjsxx_next_cClick())); connect(ui->gpiq_rjsxx_exit_c, SIGNAL(clicked()), this, SLOT(gpiq_rjsxx_exit_cClick())); connect(ui->gpiq_rjsxx_dbn_e, SIGNAL(textChanged(QString)), this, SLOT(gpiq_rjsxx_dbn_eTextChanged(QString))); connect(ui->gpiq_rjsxx_db_e, SIGNAL(textChanged(QString)), this, SLOT(gpiq_rjsxx_db_eTextChanged(QString))); connect(ui->gpiq_rjsxx_dokk_e, SIGNAL(textChanged(QString)), this, SLOT(gpiq_rjsxx_dokk_eTextChanged(QString))); connect(ui->gpiq_rjsxx_data_e, SIGNAL(textChanged(QString)), this, SLOT(gpiq_rjsxx_data_eTextChanged(QString))); connect(ui->gpiq_rjsxx_dokn_e, SIGNAL(textChanged(QString)), this, SLOT(gpiq_rjsxx_dokn_eTextChanged(QString))); connect(ui->gpiq_rjsxx_dokd_e, SIGNAL(textChanged(QString)), this, SLOT(gpiq_rjsxx_dokd_eTextChanged(QString))); connect(ui->gpiq_rjsxx_kr_e, SIGNAL(textChanged(QString)), this, SLOT(gpiq_rjsxx_kr_eTextChanged(QString))); connect(ui->gpiq_rjsxx_krn_e, SIGNAL(textChanged(QString)), this, SLOT(gpiq_rjsxx_krn_eTextChanged(QString))); connect(ui->gpiq_rjsxx_to_e, SIGNAL(textChanged(QString)), this, SLOT(gpiq_rjsxx_to_eTextChanged(QString))); connect(ui->gpiq_rjsxx_rub_e, SIGNAL(textChanged(QString)), this, SLOT(gpiq_rjsxx_rub_eTextChanged(QString))); model.setTable("gpiq_rj"); model.select(); model.setEditStrategy(QSqlTableModel::OnFieldChange); size = model.rowCount(); currentIndex = 0; changeEdits(size - 1); ui->gpiq_rjsxx_dbn_e->setStyleSheet("color: red;"); ui->gpiq_rjsxx_db_e->setStyleSheet("color: red;"); ui->gpiq_rjsxx_dokk_e->setStyleSheet("color: red;"); ui->gpiq_rjsxx_data_e->setStyleSheet("color: red;"); ui->gpiq_rjsxx_dokn_e->setStyleSheet("color: red;"); ui->gpiq_rjsxx_dokd_e->setStyleSheet("color: red;"); ui->gpiq_rjsxx_kr_e->setStyleSheet("color: red;"); ui->gpiq_rjsxx_krn_e->setStyleSheet("color: red;"); ui->gpiq_rjsxx_to_e->setStyleSheet("color: red;"); ui->gpiq_rjsxx_rub_e->setStyleSheet("color: red;"); } gpiq_rjsxx::~gpiq_rjsxx() { delete ui; } void gpiq_rjsxx::changeEdits(int newIndex) { if (newIndex >=0 && newIndex < size) { currentIndex = newIndex; QString gpiq_rj_db = model.record(currentIndex).value("Gpiq_rj_db").toString(); QString gpiq_rj_dbn = model.record(currentIndex).value("Gpiq_rj_dbn").toString(); QString gpiq_rj_dokk = model.record(currentIndex).value("Gpiq_rj_dokk").toString(); QString gpiq_rj_dokd = model.record(currentIndex).value("Gpiq_rj_dokd").toString(); QString gpiq_rj_dokn = model.record(currentIndex).value("Gpiq_rj_dokn").toString(); QString gpiq_rj_data = model.record(currentIndex).value("Gpiq_rj_data").toString(); QString gpiq_rj_to = model.record(currentIndex).value("Gpiq_rj_to").toString(); QString gpiq_rj_kr = model.record(currentIndex).value("Gpiq_rj_kr").toString(); QString gpiq_rj_krn = model.record(currentIndex).value("Gpiq_rj_krn").toString(); QString gpiq_rj_rub = model.record(currentIndex).value("Gpiq_rj_rub").toString(); ui->gpiq_rjsxx_db_e->setText(gpiq_rj_db); ui->gpiq_rjsxx_dbn_e->setText(gpiq_rj_dbn); ui->gpiq_rjsxx_dokk_e->setText(gpiq_rj_dokk); ui->gpiq_rjsxx_dokd_e->setText(gpiq_rj_dokd); ui->gpiq_rjsxx_dokn_e->setText(gpiq_rj_dokn); ui->gpiq_rjsxx_data_e->setText(gpiq_rj_data); ui->gpiq_rjsxx_kr_e->setText(gpiq_rj_kr); ui->gpiq_rjsxx_krn_e->setText(gpiq_rj_krn); ui->gpiq_rjsxx_rub_e->setText(gpiq_rj_rub); ui->gpiq_rjsxx_to_e->setText(gpiq_rj_to); } } void gpiq_rjsxx::gpiq_rjsxx_grid_cClick() { gpiq_xxsgrid* gpiq_xxsgrid1 = new gpiq_xxsgrid(this, &model, currentIndex); gpiq_xxsgrid1->setWindowTitle("gpiq_rjsxx viberi dokument"); gpiq_xxsgrid1->exec(); changeEdits(gpiq_xxsgrid1->currentIndex); } void gpiq_rjsxx::gpiq_rjsxx_back_cClick() { changeEdits(currentIndex - 1); } void gpiq_rjsxx::gpiq_rjsxx_next_cClick() { changeEdits(currentIndex + 1); } void gpiq_rjsxx::gpiq_rjsxx_exit_cClick() { QDialog::reject(); } void gpiq_rjsxx::gpiq_rjsxx_add_cClick() { model.insertRow(size); model.setData(model.index(size,0), 0); if(model.submitAll()) { model.database().commit(); } else { model.database().rollback(); qDebug() << "Database Write Error" << "The database reported an error: " << model.lastError().text(); } size++; changeEdits(size - 1); } void gpiq_rjsxx::gpiq_rjsxx_del_cClick() { model.removeRow(currentIndex); if(model.submitAll()) { model.database().commit(); } else { model.database().rollback(); qDebug() << "Database Write Error" << "The database reported an error: " << model.lastError().text(); } size--; model.select(); changeEdits(currentIndex - 1); } void gpiq_rjsxx::gpiq_rjsxx_db_eTextChanged(QString text) { model.setData(model.index(currentIndex, model.fieldIndex("Gpiq_rj_db")), text); } void gpiq_rjsxx::gpiq_rjsxx_dbn_eTextChanged(QString text) { model.setData(model.index(currentIndex, model.fieldIndex("Gpiq_rj_dbn")), text); } void gpiq_rjsxx::gpiq_rjsxx_dokk_eTextChanged(QString text) { model.setData(model.index(currentIndex, model.fieldIndex("Gpiq_rj_dokk")), text); } void gpiq_rjsxx::gpiq_rjsxx_kr_eTextChanged(QString text) { model.setData(model.index(currentIndex, model.fieldIndex("Gpiq_rj_kr")), text); } void gpiq_rjsxx::gpiq_rjsxx_krn_eTextChanged(QString text) { model.setData(model.index(currentIndex, model.fieldIndex("Gpiq_rj_krn")), text); } void gpiq_rjsxx::gpiq_rjsxx_data_eTextChanged(QString text) { model.setData(model.index(currentIndex, model.fieldIndex("Gpiq_rj_data")), text); } void gpiq_rjsxx::gpiq_rjsxx_dokn_eTextChanged(QString text) { model.setData(model.index(currentIndex, model.fieldIndex("Gpiq_rj_dokn")), text); } void gpiq_rjsxx::gpiq_rjsxx_dokd_eTextChanged(QString text) { model.setData(model.index(currentIndex, model.fieldIndex("Gpiq_rj_dokd")), text); } void gpiq_rjsxx::gpiq_rjsxx_to_eTextChanged(QString text) { model.setData(model.index(currentIndex, model.fieldIndex("Gpiq_rj_to")), text); } void gpiq_rjsxx::gpiq_rjsxx_rub_eTextChanged(QString text) { model.setData(model.index(currentIndex, model.fieldIndex("Gpiq_rj_rub")), text); }
41.184524
116
0.714121
Pavel-Innokentevich-Galanin
f70e36711b3cc099812f883eb1af2d856b5a6cf3
2,246
hpp
C++
include/codegen/include/UnityEngine/Analytics/DataPrivacy_UserPostData.hpp
Futuremappermydud/Naluluna-Modifier-Quest
bfda34370764b275d90324b3879f1a429a10a873
[ "MIT" ]
1
2021-11-12T09:29:31.000Z
2021-11-12T09:29:31.000Z
include/codegen/include/UnityEngine/Analytics/DataPrivacy_UserPostData.hpp
Futuremappermydud/Naluluna-Modifier-Quest
bfda34370764b275d90324b3879f1a429a10a873
[ "MIT" ]
null
null
null
include/codegen/include/UnityEngine/Analytics/DataPrivacy_UserPostData.hpp
Futuremappermydud/Naluluna-Modifier-Quest
bfda34370764b275d90324b3879f1a429a10a873
[ "MIT" ]
2
2021-10-03T02:14:20.000Z
2021-11-12T09:29:36.000Z
// Autogenerated from CppHeaderCreator on 7/27/2020 3:10:20 PM // Created by Sc2ad // ========================================================================= #pragma once #pragma pack(push, 8) // Begin includes #include "utils/typedefs.h" // Including type: System.ValueType #include "System/ValueType.hpp" // Including type: UnityEngine.Analytics.DataPrivacy #include "UnityEngine/Analytics/DataPrivacy.hpp" #include "utils/il2cpp-utils.hpp" // Completed includes // Begin forward declares // Completed forward declares // Type namespace: UnityEngine.Analytics namespace UnityEngine::Analytics { // Autogenerated type: UnityEngine.Analytics.DataPrivacy/UserPostData struct DataPrivacy::UserPostData : public System::ValueType { public: // public System.String appid // Offset: 0x0 ::Il2CppString* appid; // public System.String userid // Offset: 0x8 ::Il2CppString* userid; // public System.Int64 sessionid // Offset: 0x10 int64_t sessionid; // public System.String platform // Offset: 0x18 ::Il2CppString* platform; // public System.UInt32 platformid // Offset: 0x20 uint platformid; // public System.String sdk_ver // Offset: 0x28 ::Il2CppString* sdk_ver; // public System.Boolean debug_device // Offset: 0x30 bool debug_device; // public System.String deviceid // Offset: 0x38 ::Il2CppString* deviceid; // public System.String plugin_ver // Offset: 0x40 ::Il2CppString* plugin_ver; // Creating value type constructor for type: UserPostData UserPostData(::Il2CppString* appid_ = {}, ::Il2CppString* userid_ = {}, int64_t sessionid_ = {}, ::Il2CppString* platform_ = {}, uint platformid_ = {}, ::Il2CppString* sdk_ver_ = {}, bool debug_device_ = {}, ::Il2CppString* deviceid_ = {}, ::Il2CppString* plugin_ver_ = {}) : appid{appid_}, userid{userid_}, sessionid{sessionid_}, platform{platform_}, platformid{platformid_}, sdk_ver{sdk_ver_}, debug_device{debug_device_}, deviceid{deviceid_}, plugin_ver{plugin_ver_} {} }; // UnityEngine.Analytics.DataPrivacy/UserPostData } DEFINE_IL2CPP_ARG_TYPE(UnityEngine::Analytics::DataPrivacy::UserPostData, "UnityEngine.Analytics", "DataPrivacy/UserPostData"); #pragma pack(pop)
41.592593
476
0.696794
Futuremappermydud
f70f38d9a6c6f07d0088a7d031341a57564ff7a4
2,227
cpp
C++
engine/scene/AbstractSceneComponent.cpp
zapolnov/game_engine
cd22dc0f49aeadd660eec3ea9b95b1ca2696f97a
[ "MIT", "Unlicense" ]
null
null
null
engine/scene/AbstractSceneComponent.cpp
zapolnov/game_engine
cd22dc0f49aeadd660eec3ea9b95b1ca2696f97a
[ "MIT", "Unlicense" ]
null
null
null
engine/scene/AbstractSceneComponent.cpp
zapolnov/game_engine
cd22dc0f49aeadd660eec3ea9b95b1ca2696f97a
[ "MIT", "Unlicense" ]
null
null
null
/* * Copyright (c) 2015 Nikolay Zapolnov (zapolnov@gmail.com). * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in * all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ #include "AbstractSceneComponent.h" namespace B3D { AbstractSceneComponent::AbstractSceneComponent() { } AbstractSceneComponent::~AbstractSceneComponent() { } void AbstractSceneComponent::onBeforeSizeChanged(IScene*, glm::vec2&) { } void AbstractSceneComponent::onAfterSizeChanged(IScene*, const glm::vec2&) { } void AbstractSceneComponent::onBeforeUpdateScene(IScene*, double) { } void AbstractSceneComponent::onAfterUpdateScene(IScene*, double) { } void AbstractSceneComponent::onBeforeDrawScene(const IScene*, ICanvas*) { } void AbstractSceneComponent::onAfterDrawScene(const IScene*, ICanvas*) { } void AbstractSceneComponent::onBeforeTouchEvent(TouchEvent, int, glm::vec2&, bool&) { } void AbstractSceneComponent::onAfterTouchEvent(TouchEvent, int, const glm::vec2&, bool&) { } void AbstractSceneComponent::onBeforeSendEvent(const IEvent*, bool) { } void AbstractSceneComponent::onAfterSendEvent(const IEvent*, bool) { } }
30.094595
92
0.722946
zapolnov
f7103674b2725a30db075d0b9875f92863943a91
2,163
hpp
C++
src/budget/MoveRuleCommand.hpp
vimofthevine/UnderBudget
5711be8e5da3cb7a78da007fe43cf1ce1b796493
[ "Apache-2.0" ]
2
2016-07-17T02:12:44.000Z
2016-11-22T14:04:55.000Z
src/budget/MoveRuleCommand.hpp
vimofthevine/UnderBudget
5711be8e5da3cb7a78da007fe43cf1ce1b796493
[ "Apache-2.0" ]
null
null
null
src/budget/MoveRuleCommand.hpp
vimofthevine/UnderBudget
5711be8e5da3cb7a78da007fe43cf1ce1b796493
[ "Apache-2.0" ]
null
null
null
/* * Copyright 2013 Kyle Treubig * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ #ifndef MOVERULECOMMAND_HPP #define MOVERULECOMMAND_HPP // Qt include(s) #include <QList> #include <QUndoCommand> // UnderBudget include(s) #include "budget/AssignmentRule.hpp" // Forward delcaration(s) class AssignmentRules; namespace ub { /** * An undoable command to move an existing rule within the rules list. * * @ingroup rule_commands */ class MoveRuleCommand : public QUndoCommand { public: /** * Constructs a new move rule command. It is critical to note that the * rules list pointer being given is not owned by this object, and it * may be deleted externally at any time. Since the `QUndoStack` that * will take ownership of this command is tied to the `Session` that * also holds a `QSharedPointer` to the encompassing budget, it should * be impossible for the rules list to be deleted while this command * is still relevant. * * @param[in] rules rules list * @param[in] from original index from which to move the rule * @param[in] to destination index to which to move the rule * @param[in] parent parent undoable command for grouping */ MoveRuleCommand(AssignmentRules* rules, int from, int to, QUndoCommand* parent); // Overriding methods int id() const; bool mergeWith(const QUndoCommand* command); void redo(); void undo(); private: /** Move rule command ID */ static const int ID; /** Rules list */ AssignmentRules* rules; /** Original index of the rule to be moved */ const int oldIndex; /** New index of the rule to be moved */ const int newIndex; }; } #endif //MOVERULECOMMAND_HPP
27.730769
75
0.725381
vimofthevine
f71498253a5849507519a721c7e7613c58cdbc29
1,628
cpp
C++
SurfaceReconstruction/App/Main.cpp
namibj/TSR
df14f4a9fc175b2a6b0c14b3ace924f2364afe7b
[ "BSD-3-Clause" ]
102
2017-10-17T10:10:59.000Z
2022-01-19T02:10:29.000Z
SurfaceReconstruction/App/Main.cpp
namibj/TSR
df14f4a9fc175b2a6b0c14b3ace924f2364afe7b
[ "BSD-3-Clause" ]
2
2019-12-21T11:59:15.000Z
2020-09-08T11:38:36.000Z
SurfaceReconstruction/App/Main.cpp
namibj/TSR
df14f4a9fc175b2a6b0c14b3ace924f2364afe7b
[ "BSD-3-Clause" ]
27
2017-10-18T09:37:34.000Z
2022-03-22T01:30:51.000Z
/* * Copyright (C) 2018 by Author: Aroudj, Samir * TU Darmstadt - Graphics, Capture and Massively Parallel Computing * All rights reserved. * * This software may be modified and distributed under the terms * of the BSD 3-Clause license. See the License.txt file for details. */ #include "App/TSR.h" #include "Platform/ResourceManagement/MemoryManager.h" #include "Platform/Utilities/HelperFunctions.h" using namespace Platform; using namespace std; #ifdef MEMORY_MANAGEMENT const uint32 ResourceManagement::DEFAULT_POOL_BUCKET_NUMBER = 5; const uint16 ResourceManagement::DEFAULT_POOL_BUCKET_CAPACITIES[DEFAULT_POOL_BUCKET_NUMBER] = { 1024, 1024, 1024, 1024, 1024 }; const uint16 ResourceManagement::DEFAULT_POOL_BUCKET_GRANULARITIES[DEFAULT_POOL_BUCKET_NUMBER] = { 16, 32, 64, 128, 256 }; #endif /// MEMORY_MANAGEMENT #ifdef _WINDOWS int32 WINAPI WinMain(HINSTANCE applicationHandle, HINSTANCE unused, LPSTR commandLineArguments, int32 windowShowState) { #else int main(int argumentCount, const char *commandLineArguments[]) { #endif // _WINDOWS // do cool stuff { vector<string> arguments; #ifdef _WINDOWS Utilities::getCommandLineArguments(arguments, commandLineArguments); #else Utilities::getCommandLineArguments(arguments, commandLineArguments, argumentCount); #endif // _WINDOWS TSR application ( #ifdef _WINDOWS applicationHandle, #endif // _WINDOWS arguments ); application.run(); } #ifdef MEMORY_MANAGEMENT ResourceManagement::MemoryManager::shutDown(); #endif /// MEMORY_MANAGEMENT return 0; }
29.6
129
0.7414
namibj
f71499882de3091f5db57cbfa8cd5e74a3464b77
2,099
cpp
C++
bitcode/tagger/tagger.cpp
eluv-io/content-bitcode
d73da79593dcf1d16065096d31ab4f1ca3d2b306
[ "MIT" ]
1
2020-09-30T18:11:32.000Z
2020-09-30T18:11:32.000Z
bitcode/tagger/tagger.cpp
eluv-io/content-bitcode
d73da79593dcf1d16065096d31ab4f1ca3d2b306
[ "MIT" ]
1
2021-01-21T00:48:00.000Z
2021-01-21T01:07:50.000Z
bitcode/tagger/tagger.cpp
eluv-io/content-bitcode
d73da79593dcf1d16065096d31ab4f1ca3d2b306
[ "MIT" ]
null
null
null
#include <stdio.h> #include <string.h> #include <stdlib.h> #include <unistd.h> #include <sys/stat.h> #include <pthread.h> #include <fcntl.h> #include <fstream> #include <iostream> #include <string> #include <unordered_map> #include <vector> #include <memory> #include <nlohmann/json.hpp> #include "eluvio/argutils.h" #include "eluvio/fixup-cpp.h" #include "eluvio/utils.h" #include "eluvio/el_cgo_interface.h" #include "eluvio/el_constants.h" using nlohmann::json; /* clang++ -std=c++14 -stdlib=libstdc++ -I ../include -I /home/jan/SSD2/elv-debug/dist/linux-glibc.2.27/include -g -c -emit-llvm -O0 tagger.cpp -fno-use-cxa-atexit -o tagger.bc */ /* * Outputs the data from key "image" */ int taggit(int outsz, char *outbuf, char* qlibid, char* qhash) { // ************************************* // THIS IS DUP'd FROM AVMASTER2000.CPP // JUST A PLACEHOLDER // ************************************* return -1; } /* * Dispatch content requests * * Arguments: * qlibid - content library ID * qhash - content 'hash' * URL path (e.g.: "/html") * * Example URLs: * http://localhost:8008/qlibs/ilibXXX/q/hq__XXX/rep/video * http://localhost:8008/qlibs/ilibXXX/q/hq__XXX/rep/html * http://localhost:8008/qlibs/ilibXXX/q/hq__XXX/rep/image */ extern "C" int tagger(int outsz, char *outbuf, const char *argbuf) { int res = -1; ArgumentBuffer argBuf(argbuf); int argc = argBuf.Count(); // argc should be 3 if (argc < 3) return -1; printf("argc=%d lib=%s url=%s\n", argc, argBuf[0], argBuf[2]); char *qlibid = argBuf[0]; char *qhash = argBuf[1]; // char* pMetaRequest = argBuf[2]; // int szUrl = 4*1024; // char url[szUrl]; // /*FIXME: Need a way to get the url instead of localhost:8008 */ // snprintf(url, szUrl, "http://localhost:8008/qlibs/%s/q/%s/meta/%s",qlibid,qhash,pMetaRequest); // if (strcmp(pMetaRequest, "/tag") == 0){ // really need to return error if not matching any // return taggit(outsz, outbuf, qlibid, qhash); // } return taggit(outsz, outbuf, ; }
25.91358
109
0.61839
eluv-io
f71844aa3ae2e1920253e6c6df586e9eaace0c2b
2,364
cpp
C++
dragwidget.cpp
sergiosvieira/mog
f23d2b18851bb58c3e60aae9b10deec023f2c9c8
[ "MIT" ]
null
null
null
dragwidget.cpp
sergiosvieira/mog
f23d2b18851bb58c3e60aae9b10deec023f2c9c8
[ "MIT" ]
null
null
null
dragwidget.cpp
sergiosvieira/mog
f23d2b18851bb58c3e60aae9b10deec023f2c9c8
[ "MIT" ]
null
null
null
#include <QtWidgets> #include "dragwidget.h" DragWidget::DragWidget(DragWidgetType dragType, QWidget *parent) : QLabel(parent) { setMinimumSize(32, 32); setFrameStyle(QFrame::Sunken | QFrame::StyledPanel); // setAcceptDrops(true); QString imgPath; switch (dragType) { case DragWidgetType::ShipNK: imgPath = ":/images/ShipNK.png"; break; case DragWidgetType::ShipSK: imgPath = ":/images/ShipSK.png"; break; case DragWidgetType::AirportNK: imgPath = ":/images/AirportNK.png"; break; case DragWidgetType::AirportSK: imgPath = ":/images/AirportSK.png"; break; case DragWidgetType::HelicopterCarNK: imgPath = ":/images/HelicopterCarNK"; break; case DragWidgetType::HelicopterCarSK: imgPath = ":/images/HelicopterCarSK.png"; break; } type = dragType; setPixmap(QPixmap(imgPath)); move(0, 0); setAttribute(Qt::WA_DeleteOnClose); } void DragWidget::mousePressEvent(QMouseEvent *event) { QPixmap pixmap = *this->pixmap();; QMimeData *mimeData = new QMimeData; switch (type) { case DragWidgetType::ShipNK: mimeData->setText("ShipNK"); break; case DragWidgetType::ShipSK: mimeData->setText("ShipSK"); break; case DragWidgetType::AirportNK: mimeData->setText("AirportNK"); break; case DragWidgetType::AirportSK: mimeData->setText("AirportSK"); break; case DragWidgetType::HelicopterCarNK: mimeData->setText("HelicopterCarNK"); break; case DragWidgetType::HelicopterCarSK: mimeData->setText("HelicopterCarSK"); break; } QDrag *drag = new QDrag(this); drag->setMimeData(mimeData); drag->setPixmap(pixmap); drag->setHotSpot(event->pos()); QPixmap tempPixmap = pixmap; QPainter painter; painter.begin(&tempPixmap); painter.fillRect(pixmap.rect(), QColor(127, 127, 127, 127)); painter.end(); setPixmap(tempPixmap); if (drag->exec(Qt::CopyAction | Qt::MoveAction, Qt::CopyAction) == Qt::MoveAction) { close(); } else { show(); setPixmap(pixmap); } } DragWidgetType DragWidget::getType() { return type; }
26.266667
89
0.604061
sergiosvieira
f720eb8592b9d8b0ad66699663f6ddfe84a34d47
5,529
cpp
C++
oi/self/trees/scapegoat.cpp
Riteme/test
b511d6616a25f4ae8c3861e2029789b8ee4dcb8d
[ "BSD-Source-Code" ]
3
2018-08-30T09:43:20.000Z
2019-12-03T04:53:43.000Z
oi/self/trees/scapegoat.cpp
Riteme/test
b511d6616a25f4ae8c3861e2029789b8ee4dcb8d
[ "BSD-Source-Code" ]
null
null
null
oi/self/trees/scapegoat.cpp
Riteme/test
b511d6616a25f4ae8c3861e2029789b8ee4dcb8d
[ "BSD-Source-Code" ]
null
null
null
#define USE_FILE_IO #define NDEBUG #define ALPHA 0.805 #include <cassert> #include <cstring> #include <climits> #include <vector> #include <random> #include <fstream> #include <sstream> #include <algorithm> using namespace std; #ifndef USE_FILE_IO #include <iostream> using std::cin; using std::cout; #else static ifstream cin("tree.in"); static ofstream cout("tree.out"); #endif // IFNDEF USE_FILE_IO inline void initialize() { #ifndef USE_FILE_IO ios::sync_with_stdio(false); #endif }; struct Node { Node() = default; Node(int _key = 0, int _value = 0, Node *_left = nullptr, Node *_right = nullptr) : key(_key) , value(_value) , size(1) , left(_left) , right(_right) , deleted(false) {} int key = 0; int value = 0; int size = 1; Node *left = nullptr; Node *right = nullptr; bool deleted = false; void update() { size = (deleted ? 0 : 1) + (left ? left->size : 0) + (right ? right->size : 0); } std::string print_node() { stringstream buffer; buffer << key; buffer << "[label=\"" << key << "\" color=" << (deleted ? "red" : "black") << "]"; buffer << ";"; if (left != nullptr) { buffer << key << ":sw -> " << left->key << "[style=bold];"; } if (right != nullptr) { buffer << key << ":se -> " << right->key << "[style=bold];"; } return buffer.str(); } }; // struct Node static int size = 0; static int deleted_count = 0; static Node *tree = nullptr; #define MEMORY_SIZE 10000000 static size_t current; static Node *memory[MEMORY_SIZE]; inline void refresh() { current = 0; } inline void push(Node *node) { memory[++current] = node; } Node *rebalance(Node *h); Node *insert(Node *h, int key, int value); Node *remove(Node *h, int key); Node *query(Node *h, int key); void print_tree(Node *node); void print_tree(Node *node, std::string &data); int main() { initialize(); char command; int key = INT_MAX, value = INT_MAX; while (cin >> command) { switch (command) { case 'A': cin >> key >> value; tree = insert(tree, key, value); break; case 'D': cin >> key; tree = remove(tree, key); break; case 'Q': cin >> key; { auto ptr = query(tree, key); if (ptr) cout << ptr->value << "\n"; else cout << "-1\n"; } break; case 'B': tree = rebalance(tree); break; } // switch to command #ifndef NDEBUG if (command == 'P') { print_tree(tree); } #endif // IFNDEF NDEBUG } // while return 0; } // function main void print_tree(Node *node) { std::string data; data = "digraph{\nnode [shape=circle];"; print_tree(node, data); data += "}"; ofstream file("/tmp/tree.tmp.dot"); file << data; file.close(); system("showdot /tmp/tree.tmp.dot"); } void print_tree(Node *node, std::string &data) { if (node == nullptr) return; data += node->print_node(); print_tree(node->left, data); print_tree(node->right, data); } static void travel(Node *h) { if (!h) return; travel(h->left); if (!h->deleted) push(h); travel(h->right); if (h->deleted) delete h; } static Node *rebalance(int left, int right) { if (right < left) return nullptr; int mid = (left + right) >> 1; Node *node = memory[mid]; node->left = rebalance(left, mid - 1); node->right = rebalance(mid + 1, right); node->update(); return node; } Node *rebalance(Node *h) { refresh(); travel(h); return rebalance(1, current); } static Node *insert(Node *h, int key, int value, bool &balanced) { if (!h) { size++; return new Node(key, value); } if (key == h->key) { h->value = value; if (h->deleted) h->deleted = false; } else if (key < h->key) h->left = insert(h->left, key, value); else h->right = insert(h->right, key, value); h->update(); if (!balanced && ((h->left && h->left->size > ALPHA * h->size) || ((h->right && h->right->size > ALPHA * h->size)))) { balanced = true; return rebalance(h); } else return h; } Node *insert(Node *h, int key, int value) { bool balanced = false; return insert(h, key, value, balanced); } static Node *_remove(Node *h, int key) { if (!h) return nullptr; if (!h->deleted && key == h->key) { h->deleted = true; deleted_count++; } else if (key < h->key) h->left = _remove(h->left, key); else h->right = _remove(h->right, key); return h; } Node *remove(Node *h, int key) { h = _remove(h, key); if (deleted_count > size / 2) { size -= deleted_count; deleted_count = 0; return rebalance(h); } else return h; } Node *query(Node *h, int key) { if (!h) return nullptr; if (!h->deleted && key == h->key) return h; else if (key < h->key) return query(h->left, key); else return query(h->right, key); }
20.553903
74
0.507687
Riteme
f728cabf6b5d607ee401447f71862a76c52f2c63
2,401
cpp
C++
div15.cpp
ohmyjons/SPOJ-1
870ae3b072a3fbc89149b35fe5649a74512a8f60
[ "Unlicense" ]
264
2015-01-08T10:07:01.000Z
2022-03-26T04:11:51.000Z
div15.cpp
ohmyjons/SPOJ-1
870ae3b072a3fbc89149b35fe5649a74512a8f60
[ "Unlicense" ]
17
2016-04-15T03:38:07.000Z
2020-10-30T00:33:57.000Z
div15.cpp
ohmyjons/SPOJ-1
870ae3b072a3fbc89149b35fe5649a74512a8f60
[ "Unlicense" ]
127
2015-01-08T04:56:44.000Z
2022-02-25T18:40:37.000Z
// 2009-04-19 #include <iostream> #include <stdio.h> #include <algorithm> #include <cassert> #include <string.h> using namespace std; int fox(int a,int b) { int tot=0,n1=a,n2=b; while ((n1>2) && (n1>n2+1)) tot+=3,n1-=3; while ((n2>2) && (n2>n1+1)) tot+=3,n2-=3; return(tot+min(n1,n2)*2); } int main() { //freopen("spoj.txt","r",stdin); //vars int t=10,a,b; bool zero; static char s[3005]; int ndig[3]; static char dig[3][3005]; int nout; static char out[3005]; //testcase loop scanf("%d\n",&t); while (t--) { //input scanf("%s",s); //separate by %3 ndig[0]=ndig[1]=ndig[2]=0; zero=0; for (a=strlen(s)-1; a>=0; a--) { if ((s[a]=='0') && (!zero)) zero=1; else { assert(s[a]>=48); b=(s[a]-'0')%3; dig[b][ndig[b]++]=s[a]; } } //sort for (a=0; a<3; a++) sort(dig[a],dig[a]+ndig[a]); nout=0; //find last digit if (!zero) { //no 0s, so look for a 5 for (a=0; a<ndig[2]; a++) { if (dig[2][a]=='5') { //take the 5 memmove(dig[2]+a,dig[2]+a+1,sizeof(int)*(ndig[2]-a-1)); ndig[2]--; //take other digits to cancel it out if ((ndig[1]>0) && (fox(ndig[1]-1,ndig[2])>fox(ndig[1],ndig[2]-2))) { out[nout++]=dig[1][--ndig[1]]; } else if (ndig[2]>1) { out[nout++]=dig[2][--ndig[2]]; out[nout++]=dig[2][--ndig[2]]; } else goto bad; goto ok; } } //no 0s or 5s bad: printf("impossible\n"); continue; } ok: //use as many digits as possible for (a=0; a<ndig[0]; a++) { out[nout++]=dig[0][a]; } while ((ndig[1]>2) && (ndig[1]>ndig[2]+1)) for (a=0; a<3; a++) { out[nout++]=dig[1][--ndig[1]]; } while ((ndig[2]>2) && (ndig[2]>ndig[1]+1)) for (a=0; a<3; a++) { out[nout++]=dig[2][--ndig[2]]; } for (a=min(ndig[1],ndig[2]); a--; ) { out[nout++]=dig[1][--ndig[1]]; out[nout++]=dig[2][--ndig[2]]; } //sort and output if (nout<1) goto grr; sort(out,out+nout); if (out[nout-1]=='0') { grr: printf("0\n"); continue; } for (a=nout-1; a>=0; a--) { printf("%c",out[a]); } if (zero) printf("0\n"); else printf("5\n"); } }
17.654412
76
0.436068
ohmyjons
f72d8543b64197c6934345431ce573faf6340eb6
2,290
cpp
C++
PE/ch13/13.2/classic.cpp
DustOfStars/CppPrimerPlus6
391e3ad76eaa99f331981cee72139d83115fc93d
[ "MIT" ]
null
null
null
PE/ch13/13.2/classic.cpp
DustOfStars/CppPrimerPlus6
391e3ad76eaa99f331981cee72139d83115fc93d
[ "MIT" ]
null
null
null
PE/ch13/13.2/classic.cpp
DustOfStars/CppPrimerPlus6
391e3ad76eaa99f331981cee72139d83115fc93d
[ "MIT" ]
null
null
null
#include <iostream> #include <cstring> #include "classic.h" using namespace std; // Cd methods Cd::Cd(const char * s1, const char * s2, int n, double x) { performers = new char[strlen(s1)+1]; strcpy(performers, s1); label = new char[strlen(s2)+1]; strcpy(label, s2); selections = n; playtime = x; } Cd::Cd(const Cd & d) { performers = new char[strlen(d.performers)+1]; strcpy(performers, d.performers); label = new char[strlen(d.label)+1]; strcpy(label, d.label); selections = d.selections; playtime = d.playtime; } Cd::Cd() { performers = new char[8]; strcpy(performers, "Unknown"); label = new char[5]; strcpy(label, "None"); selections = 0; playtime = 0.0; } Cd::~Cd() { delete [] performers; delete [] label; } void Cd::Report() const { cout << "Performers: " << performers << endl; cout << "Label: " << label << endl; cout << selections << " selections, " << playtime << " minutes.\n"; } Cd & Cd::operator=(const Cd & d) { if (this == &d) return *this; delete [] performers; performers = new char[strlen(d.performers) + 1]; strcpy(performers, d.performers); delete [] label; label = new char[strlen(d.label) + 1]; strcpy(label, d.label); selections = d.selections; playtime = d.playtime; return *this; } // Classic methods Classic::Classic(const char * pri, const char * per, const char * l, int n, double x) : Cd(per, l, n, x) { primary = new char[strlen(pri)+1]; strcpy(primary, pri); } Classic::Classic(const Cd & d, const char * pri) : Cd(d) { primary = new char[strlen(pri)+1]; strcpy(primary, pri); } Classic::Classic(const Classic & c) : Cd(c) { primary = new char[strlen(c.primary)+1]; strcpy(primary, c.primary); } Classic::Classic() : Cd() { primary = new char[5]; strcpy(primary, "None"); } Classic::~Classic() { delete [] primary; } void Classic::Report() const { cout << "Primary work: " << primary << endl; Cd::Report(); } Classic & Classic::operator=(const Classic & d) { if (this == &d) return *this; Cd::operator=(d); delete [] primary; primary = new char[strlen(d.primary)+1]; strcpy(primary, d.primary); return *this; }
20.446429
71
0.588646
DustOfStars
f72fce116b96a5bf3d94f0639e9f3219bca7b8fa
505
cpp
C++
shared/ADM/Physics/PhysBody_Box.cpp
BlueNightHawk4906/HL-ADM-Custom
7cd3925de819d4f5a2a808e5c0b34bb03a51c991
[ "Unlicense" ]
1
2020-12-11T17:52:33.000Z
2020-12-11T17:52:33.000Z
shared/ADM/Physics/PhysBody_Box.cpp
BlueNightHawk4906/HL-ADM-Custom
7cd3925de819d4f5a2a808e5c0b34bb03a51c991
[ "Unlicense" ]
7
2021-07-09T09:19:14.000Z
2021-07-20T19:35:21.000Z
shared/ADM/Physics/PhysBody_Box.cpp
phoenixprojectsoftware/phoenixADM
5f170a34739e64111dbe161d9ab9e0baa219512b
[ "Unlicense" ]
null
null
null
#include "Base/ExtDLL.h" #include "Util.h" #include "Base/CBase.h" #include "IPhysBody.h" #include "PhysBody.h" #include "PhysBody_Box.h" /* ======================================================== CPhysBody_Box ======================================================== */ void CPhysBody_Box::InitShape( const PhysParameters& params ) { btVector3 btExtents( params.dimensions.x, params.dimensions.z, params.dimensions.y ); shape = new btBoxShape( PhysUtils::utom(btExtents) ); }
24.047619
87
0.540594
BlueNightHawk4906
f731610d79f73bcac7579b85309615dbfc340a2d
2,759
cpp
C++
src/examples/ex-ndpomdp.cpp
SDMStudio/sdms
43a86973081ffd86c091aed69b332f0087f59361
[ "MIT" ]
null
null
null
src/examples/ex-ndpomdp.cpp
SDMStudio/sdms
43a86973081ffd86c091aed69b332f0087f59361
[ "MIT" ]
null
null
null
src/examples/ex-ndpomdp.cpp
SDMStudio/sdms
43a86973081ffd86c091aed69b332f0087f59361
[ "MIT" ]
null
null
null
#include <iostream> #include <memory> #include <sdm/exception.hpp> #include <sdm/config.hpp> #include <sdm/parser/parser.hpp> using namespace sdm; int main(int argc, char **argv) { std::string ndpomdp_filename = (argc > 1) ? argv[1] : config::PROBLEM_PATH + "dpomdp/tiger.dpomdp"; // Instanciate a standard MPOMDP from a ".ndpomdp" file std::cout << "----------------------------------------" << std::endl; std::cout << "#> Instanciate a MPOMDP (from a NDPOMDP file)" << std::endl; std::cout << "----------------------------------------" << std::endl; std::shared_ptr<MPOMDP> mpomdp_from_ndpomdp = sdm::parser::parse_file(ndpomdp_filename); mpomdp_from_ndpomdp->setHorizon(2); // -------------------------------------------------- // ----------- DISPLAY SOME ATTRIBUTES -------------- // -------------------------------------------------- std::cout << "#> Description of the problem" << std::endl; std::cout << "----------------------------------------" << std::endl; std::cout << "#> Horizon=" << mpomdp_from_ndpomdp->getHorizon() << std::endl; std::cout << "----------------------------------------" << std::endl; std::cout << "\033[1;31m#> STATE SPACE (standard version)\033[0m" << std::endl; std::cout << *mpomdp_from_ndpomdp->getStateSpace(0) << std::endl; std::cout << "----------------------------------------" << std::endl; std::cout << "\033[1;31m#> ACTION SPACE (standard version)\033[0m" << std::endl; std::cout << *mpomdp_from_ndpomdp->getActionSpace(0) << std::endl; std::cout << "----------------------------------------" << std::endl; std::cout << "\033[1;31m#> OBSERVATION SPACE (standard version)\033[0m" << std::endl; std::cout << *mpomdp_from_ndpomdp->getObservationSpace(0) << std::endl; std::cout << "----------------------------------------" << std::endl; std::cout << "\033[1;31m#> REWARD (standard version)\033[0m" << std::endl; for (const auto &s : *mpomdp_from_ndpomdp->getStateSpace(0)) { for (const auto &a : *mpomdp_from_ndpomdp->getActionSpace(0)) { std::cout << "R(" << *s << ", " << *a << ")=" << mpomdp_from_ndpomdp->getReward(s->toState(), a->toAction()) << std::endl; } } // std::cout << "----------------------------------------" << std::endl; // std::cout << "\033[1;31m#> TRANSITION (standard version)\033[0m" << std::endl; // for (const auto &s : *mpomdp_from_ndpomdp->getStateSpace(0)) // { // for (const auto &a : *mpomdp_from_ndpomdp->getActionSpace(0)) // { // std::cout << "R(" << *s << ", " << *a << ")=" << mpomdp_from_ndpomdp->getReward(s->toState(), a->toAction()) << std::endl; // } // } } // END main
47.568966
137
0.485321
SDMStudio
f73502070122fc25d034257d86eb5cf344fd3b39
5,154
cpp
C++
Soomla/NativeImpl/CCNativeVirtualCurrencyStorage.cpp
konopka/cocos2dx-store
9646c4d474e4416d8dde637b54100d2bfd30741d
[ "Apache-2.0" ]
null
null
null
Soomla/NativeImpl/CCNativeVirtualCurrencyStorage.cpp
konopka/cocos2dx-store
9646c4d474e4416d8dde637b54100d2bfd30741d
[ "Apache-2.0" ]
null
null
null
Soomla/NativeImpl/CCNativeVirtualCurrencyStorage.cpp
konopka/cocos2dx-store
9646c4d474e4416d8dde637b54100d2bfd30741d
[ "Apache-2.0" ]
3
2020-05-10T08:41:59.000Z
2021-02-11T15:58:32.000Z
/* Copyright (C) 2012-2014 Soomla Inc. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ #include "CCNativeVirtualCurrencyStorage.h" #include "CCNativeVirtualGoodsStorage.h" #include "CCSoomlaUtils.h" #include "CCNdkBridge.h" #include "CCStoreInfo.h" #include "CCUpgradeVG.h" namespace soomla { #define TAG "SOOMLA NativeVirtualCurrencyStorage" USING_NS_CC; CCNativeVirtualCurrencyStorage::CCNativeVirtualCurrencyStorage() { } CCNativeVirtualCurrencyStorage::~CCNativeVirtualCurrencyStorage() { } int CCNativeVirtualCurrencyStorage::getBalance(CCVirtualItem *item, CCError **error) { const char *itemId = item->getId()->getCString(); CCSoomlaUtils::logDebug(TAG, __String::createWithFormat("SOOMLA/COCOS2DX Calling getBalance with: %s", itemId)->getCString()); __Dictionary *params = __Dictionary::create(); params->setObject(__String::create("CCNativeVirtualCurrencyStorage::getBalance"), "method"); params->setObject(__String::create(itemId), "itemId"); __Dictionary *retParams = (__Dictionary *) CCNdkBridge::callNative (params, error); if (retParams == NULL) { return 0; } __Integer *retValue = (__Integer *) retParams->objectForKey("return"); if (retValue) { return retValue->getValue(); } else { return 0; } } int CCNativeVirtualCurrencyStorage::setBalance(CCVirtualItem *item, int balance, bool notify, CCError **error) { const char *itemId = item->getId()->getCString(); CCSoomlaUtils::logDebug(TAG, __String::createWithFormat("SOOMLA/COCOS2DX Calling setBalance with: %s", itemId)->getCString()); __Dictionary *params = __Dictionary::create(); params->setObject(__String::create("CCNativeVirtualCurrencyStorage::setBalance"), "method"); params->setObject(__String::create(itemId), "itemId"); params->setObject(__Integer::create(balance), "balance"); params->setObject(__Bool::create(notify), "notify"); __Dictionary *retParams = (__Dictionary *) CCNdkBridge::callNative (params, error); if (retParams == NULL) { return 0; } __Integer *retValue = (__Integer *) retParams->objectForKey("return"); if (retValue) { return retValue->getValue(); } else { return 0; } } int CCNativeVirtualCurrencyStorage::add(CCVirtualItem *item, int amount, bool notify, CCError **error) { const char *itemId = item->getId()->getCString(); CCSoomlaUtils::logDebug(TAG, __String::createWithFormat("SOOMLA/COCOS2DX Calling add with: %s", itemId)->getCString()); __Dictionary *params = __Dictionary::create(); params->setObject(__String::create("CCNativeVirtualCurrencyStorage::add"), "method"); params->setObject(__String::create(itemId), "itemId"); params->setObject(__Integer::create(amount), "amount"); params->setObject(__Bool::create(notify), "notify"); __Dictionary *retParams = (__Dictionary *) CCNdkBridge::callNative (params, error); if (retParams == NULL) { return 0; } __Integer *retValue = (__Integer *) retParams->objectForKey("return"); if (retValue) { return retValue->getValue(); } else { return 0; } } int CCNativeVirtualCurrencyStorage::remove(CCVirtualItem *item, int amount, bool notify, CCError **error) { const char *itemId = item->getId()->getCString(); CCSoomlaUtils::logDebug(TAG, __String::createWithFormat("SOOMLA/COCOS2DX Calling remove with: %s", itemId)->getCString()); __Dictionary *params = __Dictionary::create(); params->setObject(__String::create("CCNativeVirtualCurrencyStorage::remove"), "method"); params->setObject(__String::create(itemId), "itemId"); params->setObject(__Integer::create(amount), "amount"); params->setObject(__Bool::create(notify), "notify"); __Dictionary *retParams = (__Dictionary *) CCNdkBridge::callNative (params, error); if (retParams == NULL) { return 0; } __Integer *retValue = (__Integer *) retParams->objectForKey("return"); if (retValue) { return retValue->getValue(); } else { return 0; } } }
39.343511
129
0.624175
konopka
f73780c55a914017b1096d45066629443e9555ca
1,833
cc
C++
alps/src/pegasus/pegasus_options.cc
liujiawinds/sparkle
23099cead99603a997803af9f66e17e17161faa2
[ "Apache-2.0" ]
40
2016-03-15T20:55:01.000Z
2021-12-01T11:45:43.000Z
alps/src/pegasus/pegasus_options.cc
liujiawinds/sparkle
23099cead99603a997803af9f66e17e17161faa2
[ "Apache-2.0" ]
18
2016-05-19T11:10:13.000Z
2020-03-18T01:42:49.000Z
alps/src/pegasus/pegasus_options.cc
liujiawinds/sparkle
23099cead99603a997803af9f66e17e17161faa2
[ "Apache-2.0" ]
19
2016-06-03T16:12:25.000Z
2022-02-18T07:16:54.000Z
/* * (c) Copyright 2016 Hewlett Packard Enterprise Development LP * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ #include "alps/pegasus/pegasus_options.hh" namespace alps { // template-ing just for const/non-const template <typename PARENT_OPTION_PTR, typename CHILD_PTR> std::vector< CHILD_PTR > get_children_impl(PARENT_OPTION_PTR option) { std::vector< CHILD_PTR > children; children.push_back(&option->debug_options); children.push_back(&option->lfs_options); children.push_back(&option->tmpfs_options); return children; } std::vector<Externalizable* > get_children(PegasusOptions* option) { return get_children_impl<PegasusOptions*, Externalizable*>(option); } std::vector< const Externalizable* > get_children(const PegasusOptions* option) { return get_children_impl<const PegasusOptions*, const Externalizable*>(option); } ErrorStack PegasusOptions::load(YAML::Node* node, bool ignore_missing) { for (Externalizable* child : get_children(this)) { CHECK_ERROR(get_child_element(node, child->get_tag_name(), child, ignore_missing)); } return kRetOk; } ErrorStack PegasusOptions::save(YAML::Emitter* out) const { return kRetOk; } ErrorStack PegasusOptions::add_command_options(CommandOptionList* cmdopt) { return kRetOk; }; } // namespace alps
31.603448
91
0.747409
liujiawinds
f73861850e378e2a14db6b20966fcf67fc24ee10
316
cpp
C++
LibApophis/src/Training/StoppingConditions.cpp
elpollouk/Apophis
a400a3d689750502137b048eef8e8246f7c04d6b
[ "MIT" ]
null
null
null
LibApophis/src/Training/StoppingConditions.cpp
elpollouk/Apophis
a400a3d689750502137b048eef8e8246f7c04d6b
[ "MIT" ]
null
null
null
LibApophis/src/Training/StoppingConditions.cpp
elpollouk/Apophis
a400a3d689750502137b048eef8e8246f7c04d6b
[ "MIT" ]
null
null
null
#include "stdafx.h" #include "apophis/Training/StoppingConditions.h" using namespace Apophis; using namespace Apophis::Training::StoppingCondition; bool AnyStoppingCondition::Check(Data::Metrics& metrics) const { for (auto& condition : m_Conditions) if ((*condition)(metrics)) return true; return false; }
21.066667
62
0.762658
elpollouk
f7393daab6e676d3f0b6101e2d1b7c44496f116a
2,007
cpp
C++
sem3_1 OOP Menu/main.cpp
AntonC9018/FP
9480fab57c262d1647d49eec6f06d3b7be557bb2
[ "MIT" ]
1
2020-11-02T17:54:27.000Z
2020-11-02T17:54:27.000Z
sem3_1 OOP Menu/main.cpp
AntonC9018/FP
9480fab57c262d1647d49eec6f06d3b7be557bb2
[ "MIT" ]
null
null
null
sem3_1 OOP Menu/main.cpp
AntonC9018/FP
9480fab57c262d1647d49eec6f06d3b7be557bb2
[ "MIT" ]
null
null
null
// https://moodle.usm.md/mod/assign/view.php?id=71065 /* Tested with g++ main.cpp. # Notes on code style. I've been programming in c# recently, which is where the convention of calling methods with capital letters is established. The reason why the `Container` class has lower-case methods is because I figured that it is sort of like a library class and they usually have snake_case c-style nomenclature. */ #include <string> #include <iostream> #include "./menu.cpp" #include "./option_funcs.cpp" void PrintAll(Container<Product> &products); void SetAll(Container<Product> &products); void Sort(Container<Product> &products); void PrintIfManufacturerMatches(Container<Product> &products); void PrintIfWeightMatches(Container<Product> &products); void ChangeLast(Container<Product> &products); void AddProduct(Container<Product> &products); int main() { Menu menu = Menu(); MenuOption addOption{ optionFunc : AddProduct, description : "Add a new product" }; MenuOption printOption{ optionFunc : PrintAll, description : "Print all product data" }; MenuOption sortOption{ optionFunc : Sort, description : "Sort products by name" }; MenuOption manufacturerOption{ optionFunc : PrintIfManufacturerMatches, description : "Input a manufacturer's name and print products that have name match the specified name" }; MenuOption weightOption{ optionFunc : PrintIfWeightMatches, description : "Input a weight in kg and add a new product before the first product that has that weight" }; MenuOption changeLastOption{ optionFunc : ChangeLast, description : "Respecify the last product's data" }; menu.AddOption(addOption); menu.AddOption(printOption); menu.AddOption(sortOption); menu.AddOption(manufacturerOption); menu.AddOption(weightOption); menu.AddOption(changeLastOption); menu.Start(); return 0; }
30.876923
112
0.703039
AntonC9018
f73d8b244afb63aa46b2dc5abf75c3774724b3a4
765
cpp
C++
Search/a_star/main.cpp
SS47816/CarND-Notes
ac31b2ba4f0e251d022749b0d984e10b2e3bacac
[ "MIT" ]
null
null
null
Search/a_star/main.cpp
SS47816/CarND-Notes
ac31b2ba4f0e251d022749b0d984e10b2e3bacac
[ "MIT" ]
null
null
null
Search/a_star/main.cpp
SS47816/CarND-Notes
ac31b2ba4f0e251d022749b0d984e10b2e3bacac
[ "MIT" ]
null
null
null
#include <iostream> #include <vector> #include "a_star.h" const int X = 1; const int _ = 0; vector<vector<int> > map = { {1, 1, 1, 0, 0, 0,}, {1, 1, 1, 0, 1, 0,}, {0, 0, 0, 0, 0, 0,}, {1, 1, 1, 0, 1, 1,}, {1, 1, 1, 0, 1, 1,} }; vector<int> start = {4, 3, 0}; //{x, y, theta} /* theta = 0: up 1: left 2: down 3: right */ vector<int> goal = {2, 0}; //{x, y} vector<int> costs = {2, 1, 20}; // vector<int> start(2, 0); // vector<int> goal = {(int)map.size() - 1, (int)map[0].size() - 1}; // const int cost = 1; int main() { A_STAR a_star = A_STAR(); A_STAR::Result planning_result = a_star.search(map, start, goal, costs); a_star.print_search_result(planning_result, start, goal); return 0; }
20.675676
76
0.51634
SS47816
f73dac4d5c6b9d0cecd7064ebf6cf5e63c739d00
2,225
cc
C++
gcc-gcc-7_3_0-release/libstdc++-v3/testsuite/18_support/type_info/hash_code.cc
best08618/asylo
5a520a9f5c461ede0f32acc284017b737a43898c
[ "Apache-2.0" ]
7
2020-05-02T17:34:05.000Z
2021-10-17T10:15:18.000Z
gcc-gcc-7_3_0-release/libstdc++-v3/testsuite/18_support/type_info/hash_code.cc
best08618/asylo
5a520a9f5c461ede0f32acc284017b737a43898c
[ "Apache-2.0" ]
null
null
null
gcc-gcc-7_3_0-release/libstdc++-v3/testsuite/18_support/type_info/hash_code.cc
best08618/asylo
5a520a9f5c461ede0f32acc284017b737a43898c
[ "Apache-2.0" ]
2
2020-07-27T00:22:36.000Z
2021-04-01T09:41:02.000Z
// { dg-do run { target c++11 } } // 2010-09-21 Paolo Carlini <paolo.carlini@oracle.com> // // Copyright (C) 2010-2017 Free Software Foundation, Inc. // // This file is part of the GNU ISO C++ Library. This library is free // software; you can redistribute it and/or modify it under the // terms of the GNU General Public License as published by the // Free Software Foundation; either version 3, or (at your option) // any later version. // This library is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // GNU General Public License for more details. // You should have received a copy of the GNU General Public License along // with this library; see the file COPYING3. If not see // <http://www.gnu.org/licenses/>. #include <typeinfo> #include <testsuite_hooks.h> void test01() { using namespace std; class Abraca { }; Abraca a1, a2_; typedef const Abraca cAbraca; cAbraca a2 = a2_; class Dabra { }; Dabra d1; const type_info& to01 = typeid(int); const type_info& to02 = typeid(double); VERIFY( to01 != to02 ); VERIFY( to01.hash_code() != to02.hash_code() ); const type_info& to03 = typeid(a1); const type_info& to04 = typeid(a2); VERIFY( to03 == to04 ); VERIFY( to03.hash_code() == to04.hash_code() ); const type_info& to05 = typeid(Abraca); const type_info& to06 = typeid(cAbraca); VERIFY( to05 == to06 ); VERIFY( to05.hash_code() == to06.hash_code() ); const type_info& to07 = typeid(Abraca); const type_info& to08 = typeid(a2); VERIFY( to07 == to08 ); VERIFY( to07.hash_code() == to08.hash_code() ); const type_info& to09 = typeid(Abraca); const type_info& to10 = typeid(const Abraca&); VERIFY( to09 == to10 ); VERIFY( to09.hash_code() == to10.hash_code() ); const type_info& to11 = typeid(Abraca); const type_info& to12 = typeid(Dabra); VERIFY( to11 != to12 ); VERIFY( to11.hash_code() != to12.hash_code() ); const type_info& to13 = typeid(a1); const type_info& to14 = typeid(d1); VERIFY( to13 != to14 ); VERIFY( to13.hash_code() != to14.hash_code() ); } int main() { test01(); return 0; }
28.164557
74
0.678652
best08618
f73e40dae92f93bf31a9ffc7c25942b7a6c932f2
623
cc
C++
src/stb_gl.cc
stbd/stoolbox
4535e1df2795cb0157420e7d4b1a01f3bda441da
[ "MIT" ]
null
null
null
src/stb_gl.cc
stbd/stoolbox
4535e1df2795cb0157420e7d4b1a01f3bda441da
[ "MIT" ]
null
null
null
src/stb_gl.cc
stbd/stoolbox
4535e1df2795cb0157420e7d4b1a01f3bda441da
[ "MIT" ]
null
null
null
#include "stb_gl.hh" #include "stb_types.hh" #include "stb_error.hh" namespace stb { extern void setError(const char * format, ...); } GLenum stb::getGlError(const char * file, const int lineNumber) { GLenum glError = glGetError(); if (glError != GL_NO_ERROR) { stb::setError("GL error: %d at %s:%d\n", glError, file, lineNumber); } return glError; } static_assert(sizeof(GLuint) == sizeof(GL_U), "Assumption failed: Size of GLuint and GL_U is not equal"); static_assert(sizeof(GLint) == sizeof(GL_I), "Assumption failed: Size of GLuint and GL_I is not equal");
25.958333
76
0.651685
stbd
f743e3fb5bebbcaa5717dbebd67d3a094b7d61a6
1,701
hpp
C++
PotreeConverter/include/PointAttributes.hpp
tigerfoot/PotreeConverter
75cbd0e8b75995b2806e4b7bda03369c6ed2605d
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
PotreeConverter/include/PointAttributes.hpp
tigerfoot/PotreeConverter
75cbd0e8b75995b2806e4b7bda03369c6ed2605d
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
PotreeConverter/include/PointAttributes.hpp
tigerfoot/PotreeConverter
75cbd0e8b75995b2806e4b7bda03369c6ed2605d
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
#ifndef POINT_ATTRIBUTES_H #define POINT_ATTRIBUTES_H #include <string> #include <vector> using std::string; using std::vector; class PointAttribute{ public: static const PointAttribute POSITION_CARTESIAN; static const PointAttribute COLOR_PACKED; int ordinal; string name; int numElements; int byteSize; PointAttribute(int ordinal, string name, int numElements, int byteSize){ this->ordinal = ordinal; this->name = name; this->numElements = numElements; this->byteSize = byteSize; } //bool operator==(const PointAttribute &other){ // return ordinal == other.ordinal; //} }; bool operator==(const PointAttribute& lhs, const PointAttribute& rhs); //class PointAttributeDef{ //public: // string name; // int numElements; // int byteSize; // // PointAttributeDef(string name, int numElements, int byteSize){ // this->name = name; // this->numElements = numElements; // this->byteSize = byteSize; // } //}; // //namespace PointAttribute{ // PointAttributeDef POSITION_CARTESIAN("POSITION_CARTESIAN", 3, 3*sizeof(float)); // PointAttributeDef COLOR_PACKED("COLOR_PACKED", 4, 4*sizeof(unsigned char)); //} //struct PointAttribute{ // const PointAttributeDef POSITION_CARTESIAN("POSITION_CARTESIAN", 3, 3*sizeof(float)); // const PointAttributeDef COLOR_PACKED("COLOR_PACKED", 4, 4*sizeof(unsigned char)); //}; class PointAttributes{ public: vector<PointAttribute> attributes; int byteSize; PointAttributes(){ byteSize = 0; } void add(PointAttribute attribute){ attributes.push_back(attribute); byteSize += attribute.byteSize; } int size(){ return attributes.size(); } PointAttribute& operator[](int i) { return attributes[i]; } }; #endif
18.692308
88
0.724868
tigerfoot
f74435cdb659b9b4994bdd01da960fc42686fe3c
3,733
cpp
C++
src/engine/processing/SSAO.cpp
kosua20/Rendu
6b8e730f16658738572bc2f49e08fc4a2c59df07
[ "MIT" ]
399
2019-05-25T16:05:59.000Z
2022-03-31T23:38:04.000Z
src/engine/processing/SSAO.cpp
kosua20/Rendu
6b8e730f16658738572bc2f49e08fc4a2c59df07
[ "MIT" ]
3
2019-07-23T21:03:33.000Z
2020-12-14T12:47:51.000Z
src/engine/processing/SSAO.cpp
kosua20/Rendu
6b8e730f16658738572bc2f49e08fc4a2c59df07
[ "MIT" ]
20
2019-06-08T17:15:01.000Z
2022-03-21T11:20:14.000Z
#include "processing/SSAO.hpp" #include "generation/Random.hpp" #include "graphics/GPUTypes.hpp" #include "graphics/GPU.hpp" #include "graphics/ScreenQuad.hpp" #include "resources/ResourcesManager.hpp" SSAO::SSAO(uint width, uint height, uint downscale, float radius, const std::string & name) : _highBlur(name + " SSAO"), _mediumBlur(true, name + " SSAO"), _samples(16, UniformFrequency::STATIC), _radius(radius), _downscale(downscale) { _ssaoFramebuffer.reset(new Framebuffer(width/_downscale, height/_downscale, Layout::R8, name + " SSAO")); _finalFramebuffer.reset(new Framebuffer(width, height, Layout::R8, name + " SSAO final")); _programSSAO = Resources::manager().getProgram2D("ssao"); // Generate samples. // We need random vectors in the half sphere above z, with more samples close to the center. for(int i = 0; i < 16; ++i) { const glm::vec3 randVec = glm::vec3(Random::Float(-1.0f, 1.0f), Random::Float(-1.0f, 1.0f), Random::Float(0.0f, 1.0f)); _samples[i] = glm::vec4(glm::normalize(randVec), 0.0f); _samples[i] *= Random::Float(0.0f, 1.0f); // Skew the distribution towards the center. float scale = float(i) / 16.0f; scale = 0.1f + 0.9f * scale * scale; _samples[i] *= scale; } // Send the samples to the GPU. _samples.upload(); // Noise texture (same size as the box blur applied after SSAO computation). // We need to generate two dimensional normalized offsets. _noisetexture.width = 5; _noisetexture.height = 5; _noisetexture.depth = 1; _noisetexture.levels = 1; _noisetexture.shape = TextureShape::D2; _noisetexture.images.emplace_back(); Image & img = _noisetexture.images.back(); img.width = 5; img.height = 5; img.components = 4; for(int i = 0; i < 25; ++i) { const glm::vec3 randVec = glm::vec3(Random::Float(-1.0f, 1.0f), Random::Float(-1.0f, 1.0f), 0.0f); const glm::vec3 norVec = glm::normalize(randVec); img.pixels.push_back(norVec[0]); img.pixels.push_back(norVec[1]); img.pixels.push_back(norVec[2]); img.pixels.push_back(0.0f); } // Send the texture to the GPU. _noisetexture.upload(Layout::RGBA32F, false); } // Draw function void SSAO::process(const glm::mat4 & projection, const Texture * depthTex, const Texture * normalTex) { GPU::setDepthState(false); GPU::setBlendState(false); GPU::setCullState(true, Faces::BACK); _ssaoFramebuffer->bind(Framebuffer::Operation::DONTCARE, Framebuffer::Operation::DONTCARE, Framebuffer::Operation::DONTCARE); _ssaoFramebuffer->setViewport(); _programSSAO->use(); _programSSAO->uniform("projectionMatrix", projection); _programSSAO->uniform("radius", _radius); _programSSAO->buffer(_samples, 0); _programSSAO->texture(depthTex, 0); _programSSAO->texture(normalTex, 1); _programSSAO->texture(_noisetexture, 2); ScreenQuad::draw(); // Blurring pass if(_quality == Quality::HIGH){ _highBlur.process(projection, _ssaoFramebuffer->texture(), depthTex, normalTex, *_finalFramebuffer); } else if(_quality == Quality::MEDIUM){ // Render at potentially low res. _mediumBlur.process(_ssaoFramebuffer->texture(), *_ssaoFramebuffer); GPU::blit(*_ssaoFramebuffer, *_finalFramebuffer, Filter::LINEAR); } else { GPU::blit(*_ssaoFramebuffer, *_finalFramebuffer, Filter::LINEAR); } } void SSAO::clear() const { _finalFramebuffer->clear(glm::vec4(1.0f), 1.0f); } // Handle screen resizing void SSAO::resize(uint width, uint height) const { _ssaoFramebuffer->resize(width/_downscale, height/_downscale); _finalFramebuffer->resize(width, height); // The blurs resize automatically. } const Texture * SSAO::texture() const { return _finalFramebuffer->texture(); } float & SSAO::radius() { return _radius; } SSAO::Quality & SSAO::quality() { return _quality; }
33.330357
155
0.713635
kosua20
f747b357512cb81354aa67f3052b96d216086f8c
3,154
cpp
C++
test/event_batch.cpp
chewi/cll-telemetry
22e43b9736214c950354358b2dc4ea6eb8e817c5
[ "MIT" ]
null
null
null
test/event_batch.cpp
chewi/cll-telemetry
22e43b9736214c950354358b2dc4ea6eb8e817c5
[ "MIT" ]
1
2019-08-20T12:56:50.000Z
2019-08-21T19:58:36.000Z
test/event_batch.cpp
chewi/cll-telemetry
22e43b9736214c950354358b2dc4ea6eb8e817c5
[ "MIT" ]
4
2019-08-11T22:22:55.000Z
2021-07-29T13:08:09.000Z
#include "event_batch.h" #include <gtest/gtest.h> using namespace cll; void EventBatchTest::BasicTest(EventBatch& batch) { // Add event nlohmann::json event = {{"test", "This is a test log entry"}}; ASSERT_FALSE(batch.hasEvents()); auto eventStr = event.dump(); ASSERT_TRUE(batch.addEvent(event)); ASSERT_TRUE(batch.hasEvents()); // Get the event back auto upEv = batch.getEventsForUpload(1, 128); // this should return event + "\r\n" ASSERT_NE(upEv, nullptr); ASSERT_EQ(upEv->getDataSize(), eventStr.size() + 2); ASSERT_TRUE(memcmp(eventStr.data(), upEv->getData(), eventStr.size()) == 0); ASSERT_TRUE(memcmp(&upEv->getData()[eventStr.size()], "\r\n", 2) == 0); // Check simple (full) deletion behaviour batch.onEventsUploaded(*upEv); ASSERT_FALSE(batch.hasEvents()); upEv = batch.getEventsForUpload(1, 128); ASSERT_TRUE(upEv == nullptr || upEv->getDataSize() == 0); } void EventBatchTest::SetUpTestEvents(cll::EventBatch& batch, size_t eventCount) { for (int i = 0; i < eventCount; i++) { nlohmann::json event = GetJsonFor(i); ASSERT_TRUE(batch.addEvent(event)) << "Index: " << i; } } void EventBatchTest::ReadIncremental(cll::EventBatch& batch, size_t eventCount) { for (size_t i = 1; i < eventCount; i++) { auto val = batch.getEventsForUpload(i, i * 128); ASSERT_GT(val->getDataSize(), 0) << "Iteration: " << i; auto evs = GetMessagesInEventList(val.get()); ASSERT_EQ(evs.size(), i); for (size_t j = 0; j < i; j++) { nlohmann::json expected = GetJsonFor(j); ASSERT_EQ(expected.dump(), evs[j]); } } } void EventBatchTest::ReadIncrementalWithRemoval(cll::EventBatch& batch, size_t eventCount) { size_t maxCount = 1; size_t gotEvents = 0; while (gotEvents < eventCount) { auto val = batch.getEventsForUpload(maxCount, eventCount * maxCount); ASSERT_GT(val->getDataSize(), 0) << "Got count: " << gotEvents << "; Max count: " << maxCount; for (std::string msg : GetMessagesInEventList(val.get())) { nlohmann::json expected = GetJsonFor((int) gotEvents); ASSERT_EQ(expected.dump(), msg); gotEvents++; ASSERT_LE(gotEvents, eventCount); } batch.onEventsUploaded(*val); maxCount++; } } std::vector<std::string> EventBatchTest::GetMessagesInEventList(cll::BatchedEventList* val) { char const* ptr = val->getData(); std::vector<std::string> list; if (val == nullptr) return list; while (true) { char const* e = (char const*) memchr(ptr, '\n', val->getDataSize() - (ptr - val->getData())); if (e == nullptr) { if (ptr != val->getData() + val->getDataSize()) throw std::runtime_error("getMessagesInEventList: Has extra data after message"); break; } if (*e != '\n' || *(e - 1) != '\r') throw std::runtime_error("getMessagesInEventList: Doesn't end with \\r\\n"); list.push_back(std::string(ptr, e - ptr - 1)); ptr = e + 1; } return list; }
38
102
0.604629
chewi
f748be09efae8224601c0d90ab2cca51fba05c8e
14,950
cpp
C++
src/crypt.cpp
icedac/nativecoin-cpp
cc5ea9c9dfc7e8974f3b580cbb3767354d0b9b78
[ "BSL-1.0", "BSD-3-Clause", "OpenSSL", "MIT" ]
null
null
null
src/crypt.cpp
icedac/nativecoin-cpp
cc5ea9c9dfc7e8974f3b580cbb3767354d0b9b78
[ "BSL-1.0", "BSD-3-Clause", "OpenSSL", "MIT" ]
null
null
null
src/crypt.cpp
icedac/nativecoin-cpp
cc5ea9c9dfc7e8974f3b580cbb3767354d0b9b78
[ "BSL-1.0", "BSD-3-Clause", "OpenSSL", "MIT" ]
null
null
null
/**************************************************************************** * * crypt.cpp * ($\nativecoin-cpp\src) * * by icedac * ***/ #include "stdafx.h" #include "nc.h" #include "crypt.h" #include "util.h" #include <mutex> #include <openssl/evp.h> #include <openssl/ecdsa.h> #include <openssl/bn.h> #ifdef _WIN64 #pragma comment( lib, "libeay32_x64.lib" ) #pragma comment( lib, "ssleay32_x64.lib" ) #else #pragma comment( lib, "libeay32_x86.lib" ) #pragma comment( lib, "ssleay32_x86.lib" ) #endif namespace nc { namespace crypt { // openssl crypto library c++ wrapper // manual: https://www.openssl.org/docs/man1.0.2/crypto/ // very clumpsy and almost no example :-( namespace internal { // msg_digest_ctx class md_ctx { public: friend class md; md_ctx() { ctx_ = EVP_MD_CTX_create(); } ~md_ctx() { if (ctx_) { EVP_MD_CTX_destroy(ctx_); } } md_ctx(const md_ctx&) = delete; md_ctx& operator = (const md_ctx&) = delete; md_ctx(md_ctx&& rhs) noexcept : ctx_(rhs.ctx_) { rhs.ctx_ = nullptr; } md_ctx& operator = (md_ctx&& rhs) noexcept { ctx_ = rhs.ctx_; rhs.ctx_ = nullptr; } public: void update(gsl::span< const byte > v) { EVP_DigestUpdate(ctx_, v.data(), v.size()); } auto get() { vector< byte > hash(EVP_MAX_MD_SIZE); unsigned int len = 0; EVP_DigestFinal_ex(ctx_, const_cast<byte*>(hash.data()), &len); hash.resize(len); return hash; } private: EVP_MD_CTX* ctx_ = nullptr; }; // msg_digest class md { public: md() {} md(const md&) = delete; md& operator = (const md&) = delete; md(md&& rhs) noexcept : md_(rhs.md_) { rhs.md_ = nullptr; } md& operator = (md&& rhs) noexcept { md_ = rhs.md_; rhs.md_ = nullptr; } md_ctx create_ctx() { md_ctx c; EVP_DigestInit_ex(c.ctx_, md_, nullptr); return c; } operator bool() const { if (md_) return true; return false; } public: static md from_name(string md_name) { md m; m.md_ = EVP_get_digestbyname(md_name.c_str()); return m; } private: const EVP_MD* md_ = nullptr; }; // ec_key // // BIGNUM used for Private Key // EC_POINT used for Public Key and can be caculated from Private Key // @see load_private_key_from_hex() for calculation class ec_key { public: enum ec_curve_name_t { SECP256K1 = NID_secp256k1 }; ec_key() {} ~ec_key() { if (ec_) EC_KEY_free(ec_); } ec_key(const ec_key&) = delete; ec_key& operator = (const ec_key&) = delete; ec_key(ec_key&& rhs) noexcept : ec_(rhs.ec_) { rhs.ec_ = nullptr; } ec_key& operator = (ec_key&& rhs) noexcept { ec_ = rhs.ec_; rhs.ec_ = nullptr; } bool generate_key() { if (!EC_KEY_generate_key(ec_)) return false; return true; } auto get_private_key() const { const BIGNUM* priv = EC_KEY_get0_private_key(ec_); char* priv_key = BN_bn2hex(priv); // printf("priv: %s\n", priv_key); std::string priv_str = priv_key; OPENSSL_free(priv_key); return priv_str; } auto get_public_key() const { const EC_POINT* pub = EC_KEY_get0_public_key(ec_); char* pub_key = EC_POINT_point2hex(EC_KEY_get0_group(ec_), pub, POINT_CONVERSION_UNCOMPRESSED, NULL); // printf("pub: %s\n", pub_key); std::string pub_str = pub_key; OPENSSL_free(pub_key); return pub_str; } bool load_public_key_from_hex(string hex) { const auto* group = EC_KEY_get0_group(ec_); BN_CTX* ctx = BN_CTX_new(); EC_POINT* pub = EC_POINT_new(group); EC_POINT_hex2point(group, hex.c_str(), pub, ctx); EC_KEY_set_public_key(ec_, pub); // FIXME: donno ownership transfer or not from EC_KEY_set_public_key(), so it can be crash // openssl documentation is clumpsy - https://www.openssl.org/docs/man1.0.2/crypto/EC_KEY_set_public_key.html EC_POINT_free(pub); BN_CTX_free(ctx); return true; } // also calculate pub key and set it bool load_private_key_from_hex(string hex) { BIGNUM start; BN_init(&start); BN_CTX* ctx = BN_CTX_new(); BIGNUM* priv = &start; BN_hex2bn(&priv, hex.c_str()); const auto* group = EC_KEY_get0_group(ec_); EC_POINT* pub = EC_POINT_new(group); EC_KEY_set_private_key(ec_, priv); if (!EC_POINT_mul(group, pub, priv, nullptr, nullptr, ctx)) { std::cout << "EC_POINT_mul() failed\n"; return false; } EC_KEY_set_public_key(ec_, pub); // FIXME: donno ownership transfer or not from EC_KEY_set_public_key(), so it can be crash // openssl documentation is clumpsy - https://www.openssl.org/docs/man1.0.2/crypto/EC_KEY_set_public_key.html EC_POINT_free(pub); BN_CTX_free(ctx); return true; } // sign() // // sign data and return DER encoded // vector<byte> sign(gsl::span< const byte > v) { // FIXME: need to check and manage ownership of 'sig' ECDSA_SIG* sig; sig = ECDSA_do_sign(v.data(), (int)v.size(), ec_); if (!sig) { return vector< byte >(); } vector< byte > der_sign(128); int len = i2d_ECDSA_SIG(sig, nullptr); der_sign.reserve(len + 1); byte* der_sign_buf = const_cast<byte*>(der_sign.data()); len = i2d_ECDSA_SIG(sig, (byte**)&der_sign_buf); der_sign.resize(len); return der_sign; } // verify // // verify from data and DER encoded // bool verify(gsl::span< const byte > v, vector<byte> der_sign) { const byte* der_sign_buf = der_sign.data(); ECDSA_SIG* sig = ECDSA_SIG_new(); ECDSA_SIG* ok_sig = d2i_ECDSA_SIG(&sig, &der_sign_buf, (int)der_sign.size()); if (!ok_sig) { auto der_sign_str = util::binary_to_hexstring(der_sign); std::cout << "wrong signature: " << der_sign_str << "\n"; return false; } int ret = ECDSA_do_verify(v.data(), (int)v.size(), ok_sig, ec_); ECDSA_SIG_free(sig); if (ret == 0) { std::cout << "incorrect signature\n"; return false; } else if (ret == 1) { return true; } std::cout << "error: ret: " << ret << "\n"; return false; } public: static ec_key from_curve(ec_curve_name_t ec_curve_name) { ec_key key; key.ec_ = EC_KEY_new_by_curve_name((int)ec_curve_name); return key; } private: EC_KEY* ec_ = nullptr; }; void run_at_exit() { EVP_cleanup(); } static std::once_flag s_openssl_init; void init_main__() { OpenSSL_add_all_digests(); using internal::ec_key; if (0) { ec_key ec = ec_key::from_curve(ec_key::SECP256K1); ec.generate_key(); auto pub_str = ec.get_public_key(); std::cout << "pub_key: " << pub_str << "\n"; auto priv_str = ec.get_private_key(); std::cout << "priv_key: " << priv_str << "\n"; } // priv_key : D7CB4C0ABF38327AC93829E889906D98A7D2BD24D95DF58C72BC2AE8C168AB0E // pub_key: 04FAE9D499739BDCB475F746C35AA931BFF8F9448395F12C09E445546E2B9958681693E480FB6379D5F9645F970E7154359EFFCC6C8C150B04CCB86EA31B9062D3 if (0) { ec_key ec = ec_key::from_curve(ec_key::SECP256K1); ec.load_private_key_from_hex("D7CB4C0ABF38327AC93829E889906D98A7D2BD24D95DF58C72BC2AE8C168AB0E"); // ec.load_public_key_from_hex("04FAE9D499739BDCB475F746C35AA931BFF8F9448395F12C09E445546E2B9958681693E480FB6379D5F9645F970E7154359EFFCC6C8C150B04CCB86EA31B9062D3"); auto pub_str = ec.get_public_key(); std::cout << "pub_key: " << pub_str << "\n"; // priv_str = ec2.get_private_key(); // std::cout << "priv_key: " << priv_str << "\n"; auto str = string("12345678901234567890"); const byte* data = reinterpret_cast<const byte*>(str.data()); auto der_sign = ec.sign({ data, data + str.size() }); auto der_sign_str = util::binary_to_hexstring(der_sign); } // high-level if (0) { // sign auto priv_key = nc::ecdsa_key("D7CB4C0ABF38327AC93829E889906D98A7D2BD24D95DF58C72BC2AE8C168AB0E"); auto str = string("12345678901234567890"); auto der_sign_str = nc::crypt::sign(priv_key, str); // verify auto pub_key = "04FAE9D499739BDCB475F746C35AA931BFF8F9448395F12C09E445546E2B9958681693E480FB6379D5F9645F970E7154359EFFCC6C8C150B04CCB86EA31B9062D3"; bool verified = nc::crypt::verify(ecdsa_address(pub_key), str, der_sign_str); if (verified) { std::cout << "[VERIFIED] ok\n"; } else { std::cout << "[<FAILED> to VERIFY]\n"; } } std::atexit(nc::crypt::internal::run_at_exit); } void init_() { std::call_once(s_openssl_init, []() { init_main__(); }); } } // namespace internal { } namespace crypt { sha256_hash sha256(string str) { internal::init_(); using internal::md; auto md_sha256 = md::from_name("sha256"); if (!md_sha256) return nc::sha256_hash::from_string("md_sha256 not found"); auto ctx = md_sha256.create_ctx(); const byte* data = reinterpret_cast<const byte*>(str.data()); ctx.update({ data, data + str.size() }); auto hash = ctx.get(); return nc::sha256_hash::from_string(util::binary_to_hexstring(hash)); } ecdsa_key generate_private_key() { using internal::ec_key; ec_key ec = ec_key::from_curve(ec_key::SECP256K1); if (!ec.generate_key()) return ""; return ec.get_private_key(); } ecdsa_address get_address(const ecdsa_key& priv_key) { using internal::ec_key; ec_key ec = ec_key::from_curve(ec_key::SECP256K1); ec.load_private_key_from_hex(priv_key.get()); return nc::ecdsa_address{ ec.get_public_key() }; } ecdsa_signature sign(const ecdsa_key& priv_key, const string& str) { using internal::ec_key; ec_key ec = ec_key::from_curve(ec_key::SECP256K1); ec.load_private_key_from_hex(priv_key.get()); const byte* data = reinterpret_cast<const byte*>(str.data()); auto der_sign = ec.sign({ data, data + str.size() }); auto der_sign_str = util::binary_to_hexstring(der_sign); return der_sign_str; } bool verify(const ecdsa_address& addr, const string& str, const ecdsa_signature& signature) { using internal::ec_key; ec_key ec = ec_key::from_curve(ec_key::SECP256K1); ec.load_public_key_from_hex(addr.get()); const byte* data = reinterpret_cast<const byte*>(str.data()); auto der_sign = util::hexstring_to_binary(signature.get()); return ec.verify({ data, data + str.size() }, der_sign); } } }
34.288991
186
0.449632
icedac
f748e0c54ec5a9c0acd204c14fee434c7c4b5484
110
cpp
C++
doc/my_notes/image_manipulation.cpp
felixchenfy/cpp_practice_image_processing
72724097e3d9d35eb813fc04aac56d79419d6c7d
[ "MIT" ]
4
2019-12-23T09:44:51.000Z
2021-08-07T05:20:24.000Z
doc/my_notes/image_manipulation.cpp
felixchenfy/cpp_practice_image_processing
72724097e3d9d35eb813fc04aac56d79419d6c7d
[ "MIT" ]
null
null
null
doc/my_notes/image_manipulation.cpp
felixchenfy/cpp_practice_image_processing
72724097e3d9d35eb813fc04aac56d79419d6c7d
[ "MIT" ]
2
2020-04-01T02:11:54.000Z
2020-08-18T12:48:06.000Z
/** * Split color image into three channels. */ std::vector<cv::Mat> three_channels = cv::split(img);
10
53
0.636364
felixchenfy
f74b5306c5f4f955eef553358a6bae0257e9a4b3
1,958
cc
C++
src/relay/backend/contrib/vitis_ai/config_vitis_ai.cc
zhenlohuang/tvm
fd2e6d17120a79533852c6bb705429d9c7bc286b
[ "Apache-2.0" ]
40
2021-06-14T23:14:46.000Z
2022-03-21T14:32:23.000Z
src/relay/backend/contrib/vitis_ai/config_vitis_ai.cc
zhenlohuang/tvm
fd2e6d17120a79533852c6bb705429d9c7bc286b
[ "Apache-2.0" ]
14
2021-06-08T03:15:54.000Z
2022-02-01T23:50:24.000Z
src/relay/backend/contrib/vitis_ai/config_vitis_ai.cc
zhenlohuang/tvm
fd2e6d17120a79533852c6bb705429d9c7bc286b
[ "Apache-2.0" ]
11
2021-06-14T05:56:18.000Z
2022-02-27T06:52:07.000Z
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /*! * \file src/relay/backend/contrib/vitis_ai/config_vitis_ai.cc * \brief Register Vitis-AI codegen options. Main codegen is implemented in python. */ #include <tvm/ir/transform.h> namespace tvm { namespace relay { namespace contrib { namespace vitis_ai { /*! \brief The target Vitis-AI accelerator device */ TVM_REGISTER_PASS_CONFIG_OPTION("relay.ext.vitis_ai.options.target", String); /*! \brief (Optional config) The build directory to be used by Vitis-AI */ TVM_REGISTER_PASS_CONFIG_OPTION("relay.ext.vitis_ai.options.build_dir", String); /*! \brief (Optional config) The work directory to be used by Vitis-AI */ TVM_REGISTER_PASS_CONFIG_OPTION("relay.ext.vitis_ai.options.work_dir", String); /*! \brief (Optional config) Export PyXIR runtime module to disk during serialization if provided */ TVM_REGISTER_PASS_CONFIG_OPTION("relay.ext.vitis_ai.options.export_runtime_module", String); /*! \brief (Optional config) Load PyXIR runtime module from disk */ TVM_REGISTER_PASS_CONFIG_OPTION("relay.ext.vitis_ai.options.load_runtime_module", String); } // namespace vitis_ai } // namespace contrib } // namespace relay } // namespace tvm
41.659574
100
0.764556
zhenlohuang
f74cf9a4bc2fa11b0240ded3c4cfcbcc10a00e91
1,485
cpp
C++
Esercizi/Classi/Gelato/main.cpp
gabrielegenovese/Esercizi-Programmazione-2020
bb16aec872ece3f7d88fcbfc88b3778efcb4f16b
[ "MIT" ]
null
null
null
Esercizi/Classi/Gelato/main.cpp
gabrielegenovese/Esercizi-Programmazione-2020
bb16aec872ece3f7d88fcbfc88b3778efcb4f16b
[ "MIT" ]
null
null
null
Esercizi/Classi/Gelato/main.cpp
gabrielegenovese/Esercizi-Programmazione-2020
bb16aec872ece3f7d88fcbfc88b3778efcb4f16b
[ "MIT" ]
null
null
null
#include <iostream> #include <cstring> using namespace std; # define cono 2.70 # define cestina 2.50 # define coppetta 2 struct gusto { char nome[10]; }; typedef gusto *p_gusto; class Gelato { protected: p_gusto gusti[3]; int cursor; double tipo; public: void aggiungiGelato(char g[]) { int i = 0; while(this->gusti[i] != NULL && i < 3) i++; if(i == 3) cout << "Limite di gusti raggiunto\n"; else { this->gusti[i] = new gusto; strcpy(this->gusti[i]->nome,g); } } double calcolaPrezzo() { return tipo; } Gelato(double tipo = 0) { for (int i = 0; i < 3; i++) this->gusti[i] = NULL; this->cursor = 0; this->tipo = tipo; } }; class Cono : public Gelato { public: Cono() : Gelato(cono){} }; class Cestina : public Gelato { public: Cestina() : Gelato(cestina){} }; class Coppetta : public Gelato { Coppetta() : Gelato(coppetta){} }; int main() { Cono g1 = Cono(); g1.aggiungiGelato((char*)"Fragola"); g1.aggiungiGelato((char*)"Cioccolato"); g1.aggiungiGelato((char*)"Pesca"); //g1.aggiungiGelato((char*)"Stracciatella"); cout << "Costo del gelato: " << g1.calcolaPrezzo() << endl; return 0; }
19.285714
63
0.484848
gabrielegenovese
f74dcfe7d866270b21c4adc73f6dfd51891da18a
10,982
cpp
C++
lammps-master/src/USER-MISC/pair_coul_shield.cpp
rajkubp020/helloword
4bd22691de24b30a0f5b73821c35a7ac0666b034
[ "MIT" ]
null
null
null
lammps-master/src/USER-MISC/pair_coul_shield.cpp
rajkubp020/helloword
4bd22691de24b30a0f5b73821c35a7ac0666b034
[ "MIT" ]
null
null
null
lammps-master/src/USER-MISC/pair_coul_shield.cpp
rajkubp020/helloword
4bd22691de24b30a0f5b73821c35a7ac0666b034
[ "MIT" ]
null
null
null
/* ---------------------------------------------------------------------- LAMMPS - Large-scale Atomic/Molecular Massively Parallel Simulator http://lammps.sandia.gov, Sandia National Laboratories Steve Plimpton, sjplimp@sandia.gov Copyright (2003) Sandia Corporation. Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation, the U.S. Government retains certain rights in this software. This software is distributed under the GNU General Public License. See the README file in the top-level LAMMPS directory. ------------------------------------------------------------------------- */ /* ---------------------------------------------------------------------- Contributing author: Wengen Ouyang (Tel Aviv University) e-mail: w.g.ouyang at gmail dot com This is a Coulomb potential described in [Maaravi et al, J. Phys. Chem. C 121, 22826-22835 (2017)] ------------------------------------------------------------------------- */ #include <cmath> #include <cstdio> #include <cstdlib> #include <cstring> #include "pair_coul_shield.h" #include "atom.h" #include "comm.h" #include "force.h" #include "neighbor.h" #include "neigh_list.h" #include "memory.h" #include "math_special.h" #include "error.h" using namespace LAMMPS_NS; /* ---------------------------------------------------------------------- */ PairCoulShield::PairCoulShield(LAMMPS *lmp) : Pair(lmp) { tap_flag = 1; } /* ---------------------------------------------------------------------- */ PairCoulShield::~PairCoulShield() { if (allocated) { memory->destroy(setflag); memory->destroy(sigmae); memory->destroy(offset); memory->destroy(cutsq); memory->destroy(cut); allocated = 0; } } /* ---------------------------------------------------------------------- */ void PairCoulShield::compute(int eflag, int vflag) { int i,j,ii,jj,inum,jnum,itype,jtype; double qtmp,xtmp,ytmp,ztmp,delx,dely,delz,ecoul,fpair,Tap,dTap; double rsq,r,r3,rarg,th,depsdr,epsr,forcecoul,factor_coul,Vc,fvc; int *ilist,*jlist,*numneigh,**firstneigh; ecoul = 0.0; ev_init(eflag,vflag); double **x = atom->x; double **f = atom->f; double *q = atom->q; int *type = atom->type; int nlocal = atom->nlocal; double *special_coul = force->special_coul; int newton_pair = force->newton_pair; double qqrd2e = force->qqrd2e; inum = list->inum; ilist = list->ilist; numneigh = list->numneigh; firstneigh = list->firstneigh; // loop over neighbors of my atoms for (ii = 0; ii < inum; ii++) { i = ilist[ii]; qtmp = q[i]; xtmp = x[i][0]; ytmp = x[i][1]; ztmp = x[i][2]; itype = type[i]; jlist = firstneigh[i]; jnum = numneigh[i]; for (jj = 0; jj < jnum; jj++) { j = jlist[jj]; factor_coul = special_coul[sbmask(j)]; j &= NEIGHMASK; delx = xtmp - x[j][0]; dely = ytmp - x[j][1]; delz = ztmp - x[j][2]; rsq = delx*delx + dely*dely + delz*delz; jtype = type[j]; // only include the interation between different layers if (rsq < cutsq[itype][jtype] && atom->molecule[i] != atom->molecule[j]) { r = sqrt(rsq); r3 = rsq*r; rarg = 1.0/sigmae[itype][jtype]; th = r3 + MathSpecial::cube(rarg); epsr = 1.0/pow(th,0.333333333333333333333333); depsdr = MathSpecial::square(epsr); depsdr *= depsdr; Vc = qqrd2e*qtmp*q[j]*epsr; // turn on/off taper function if (tap_flag) { Tap = calc_Tap(r,sqrt(cutsq[itype][jtype])); dTap = calc_dTap(r,sqrt(cutsq[itype][jtype])); } else {Tap = 1.0; dTap = 0.0;} forcecoul = qqrd2e*qtmp*q[j]*r*depsdr; fvc = forcecoul*Tap - Vc*dTap/r; fpair = factor_coul*fvc; f[i][0] += delx*fpair; f[i][1] += dely*fpair; f[i][2] += delz*fpair; if (newton_pair || j < nlocal) { f[j][0] -= delx*fpair; f[j][1] -= dely*fpair; f[j][2] -= delz*fpair; } if (eflag) { if (tap_flag) ecoul = Vc*Tap; else ecoul = Vc - offset[itype][jtype]; ecoul *= factor_coul; } if (evflag) ev_tally(i,j,nlocal,newton_pair,0.0, ecoul,fpair,delx,dely,delz); } } } if (vflag_fdotr) virial_fdotr_compute(); } /* ---------------------------------------------------------------------- allocate all arrays ------------------------------------------------------------------------- */ void PairCoulShield::allocate() { allocated = 1; int n = atom->ntypes; memory->create(setflag,n+1,n+1,"pair:setflag"); for (int i = 1; i <= n; i++) for (int j = i; j <= n; j++) setflag[i][j] = 0; memory->create(cutsq,n+1,n+1,"pair:cutsq"); memory->create(cut,n+1,n+1,"pair:cut"); memory->create(sigmae,n+1,n+1,"pair:sigmae"); memory->create(offset,n+1,n+1,"pair:offset"); } /* ---------------------------------------------------------------------- global settings ------------------------------------------------------------------------- */ void PairCoulShield::settings(int narg, char **arg) { if (narg < 1 || narg > 2) error->all(FLERR,"Illegal pair_style command"); cut_global = force->numeric(FLERR,arg[0]); if (narg == 2) tap_flag = force->numeric(FLERR,arg[1]); // reset cutoffs that have been explicitly set if (allocated) { int i,j; for (i = 1; i <= atom->ntypes; i++) for (j = i+1; j <= atom->ntypes; j++) if (setflag[i][j]) cut[i][j] = cut_global; } } /* ---------------------------------------------------------------------- set coeffs for one or more type pairs ------------------------------------------------------------------------- */ void PairCoulShield::coeff(int narg, char **arg) { if (narg < 3 || narg > 4) error->all(FLERR,"Incorrect args for pair coefficients"); if (!allocated) allocate(); int ilo,ihi,jlo,jhi; force->bounds(FLERR,arg[0],atom->ntypes,ilo,ihi); force->bounds(FLERR,arg[1],atom->ntypes,jlo,jhi); double sigmae_one = force->numeric(FLERR,arg[2]); double cut_one = cut_global; if (narg == 4) cut_one = force->numeric(FLERR,arg[3]); int count = 0; for (int i = ilo; i <= ihi; i++) { for (int j = MAX(jlo,i); j <= jhi; j++) { sigmae[i][j] = sigmae_one; cut[i][j] = cut_one; setflag[i][j] = 1; count++; } } if (count == 0) error->all(FLERR,"Incorrect args for pair coefficients"); } /* ---------------------------------------------------------------------- init specific to this pair style ------------------------------------------------------------------------- */ void PairCoulShield::init_style() { if (!atom->q_flag) error->all(FLERR,"Pair style coul/shield requires atom attribute q"); if (!atom->molecule_flag) error->all(FLERR,"Pair style coul/shield requires atom attribute molecule"); neighbor->request(this,instance_me); } /* ---------------------------------------------------------------------- init for one type pair i,j and corresponding j,i ------------------------------------------------------------------------- */ double PairCoulShield::init_one(int i, int j) { if (setflag[i][j] == 0) { error->all(FLERR,"for pair style coul/shield, parameters need to be set explicitly for all pairs."); } double *q = atom->q; double qqrd2e = force->qqrd2e; double r,r3,rarg,th,epsr; if (offset_flag) { r = cut[i][j]; r3 = r*r*r; rarg = 1.0/sigmae[i][j]; th = r3 + MathSpecial::cube(rarg); epsr = 1.0/pow(th,0.333333333333333333); offset[i][j] = qqrd2e*q[i]*q[j]*epsr; } else offset[i][j] = 0.0; sigmae[j][i] = sigmae[i][j]; offset[j][i] = offset[i][j]; cut[j][i] = cut[i][j]; return cut[i][j]; } /* ---------------------------------------------------------------------- proc 0 writes to restart file ------------------------------------------------------------------------- */ void PairCoulShield::write_restart(FILE *fp) { write_restart_settings(fp); int i,j; for (i = 1; i <= atom->ntypes; i++) for (j = i; j <= atom->ntypes; j++) { fwrite(&setflag[i][j],sizeof(int),1,fp); if (setflag[i][j]) { fwrite(&sigmae[i][j],sizeof(double),1,fp); fwrite(&cut[i][j],sizeof(double),1,fp); } } } /* ---------------------------------------------------------------------- proc 0 reads from restart file, bcasts ------------------------------------------------------------------------- */ void PairCoulShield::read_restart(FILE *fp) { read_restart_settings(fp); allocate(); int i,j; int me = comm->me; for (i = 1; i <= atom->ntypes; i++) for (j = i; j <= atom->ntypes; j++) { if (setflag[i][j]) { if (me == 0) { fread(&sigmae[i][j],sizeof(double),1,fp); fread(&cut[i][j],sizeof(double),1,fp); } MPI_Bcast(&sigmae[i][j],1,MPI_DOUBLE,0,world); MPI_Bcast(&cut[i][j],1,MPI_DOUBLE,0,world); } } } /* ---------------------------------------------------------------------- proc 0 writes to restart file ------------------------------------------------------------------------- */ void PairCoulShield::write_restart_settings(FILE *fp) { fwrite(&cut_global,sizeof(double),1,fp); fwrite(&offset_flag,sizeof(int),1,fp); fwrite(&mix_flag,sizeof(int),1,fp); } /* ---------------------------------------------------------------------- proc 0 reads from restart file, bcasts ------------------------------------------------------------------------- */ void PairCoulShield::read_restart_settings(FILE *fp) { if (comm->me == 0) { fread(&cut_global,sizeof(double),1,fp); fread(&offset_flag,sizeof(int),1,fp); fread(&mix_flag,sizeof(int),1,fp); } MPI_Bcast(&cut_global,1,MPI_DOUBLE,0,world); MPI_Bcast(&offset_flag,1,MPI_INT,0,world); MPI_Bcast(&mix_flag,1,MPI_INT,0,world); } /* ---------------------------------------------------------------------- */ double PairCoulShield::single(int i, int j, int itype, int jtype, double rsq, double factor_coul, double /*factor_lj*/, double &fforce) { double r, rarg,Vc,fvc,forcecoul,phishieldec; double r3,th,epsr,depsdr,Tap,dTap; double *q = atom->q; double qqrd2e = force->qqrd2e; r = sqrt(rsq); r3 = rsq*r; rarg = 1.0/sigmae[itype][jtype]; th = r3 + MathSpecial::cube(rarg); epsr = 1.0/pow(th,0.333333333333333333); depsdr = epsr*epsr; depsdr *= depsdr; Vc = qqrd2e*q[i]*q[j]*epsr; // turn on/off taper function if (tap_flag) { Tap = calc_Tap(r,sqrt(cutsq[itype][jtype])); dTap = calc_dTap(r,sqrt(cutsq[itype][jtype])); } else {Tap = 1.0; dTap = 0.0;} forcecoul = qqrd2e*q[i]*q[j]*r*depsdr; fvc = forcecoul*Tap - Vc*dTap/r; fforce = factor_coul*fvc; if (tap_flag) phishieldec = factor_coul*Vc*Tap; else phishieldec = Vc - offset[itype][jtype]; return factor_coul*phishieldec; }
29.363636
104
0.497997
rajkubp020
f7510dee6be68bdc81df0905ae93ee67975cb608
915
cpp
C++
lib/acceptor.cpp
LunZZZi/net
d6acf21d79ba60112475d2f1dc3a1b8dca34a06b
[ "MIT" ]
null
null
null
lib/acceptor.cpp
LunZZZi/net
d6acf21d79ba60112475d2f1dc3a1b8dca34a06b
[ "MIT" ]
null
null
null
lib/acceptor.cpp
LunZZZi/net
d6acf21d79ba60112475d2f1dc3a1b8dca34a06b
[ "MIT" ]
null
null
null
#include "acceptor.h" #include <assert.h> struct acceptor *acceptor_init(int port) { struct acceptor *acceptor1 = (struct acceptor *)malloc(sizeof(struct acceptor)); acceptor1->listen_port = port; acceptor1->listen_fd = socket(AF_INET, SOCK_STREAM, 0); make_nonblocking(acceptor1->listen_fd); struct sockaddr_in server_addr; bzero(&server_addr, sizeof(server_addr)); server_addr.sin_family = AF_INET; server_addr.sin_addr.s_addr = htonl(INADDR_ANY); server_addr.sin_port = htons(port); int on = 1; setsockopt(acceptor1->listen_fd, SOL_SOCKET, SO_REUSEADDR, &on, sizeof(on)); int rt1 = bind(acceptor1->listen_fd, (struct sockaddr *)&server_addr, sizeof(server_addr)); if (rt1 < 0) { err_sys("bind failed"); } int rt2 = listen(acceptor1->listen_fd, LISTENQ); if (rt2 < 0) { err_sys("listen failed"); } return acceptor1; }
27.727273
95
0.678689
LunZZZi
f752a42d484a2000eea59c71277704e492f35bb8
3,269
cpp
C++
ceres/PowellFunction/PowellFunction.cpp
JiauZhang/camera
37e37f9e5f5176c6c06d4a8fdd11d5532ab37eb2
[ "MIT" ]
7
2019-10-08T01:46:52.000Z
2021-10-11T08:17:44.000Z
ceres/PowellFunction/PowellFunction.cpp
JiauZhang/Camera
37e37f9e5f5176c6c06d4a8fdd11d5532ab37eb2
[ "MIT" ]
null
null
null
ceres/PowellFunction/PowellFunction.cpp
JiauZhang/Camera
37e37f9e5f5176c6c06d4a8fdd11d5532ab37eb2
[ "MIT" ]
4
2019-04-11T07:05:06.000Z
2019-07-16T04:55:01.000Z
#include <iostream> #include <boost/concept_check.hpp> #include <ceres/ceres.h> #include <cmath> using namespace std; using namespace ceres; using ceres::AutoDiffCostFunction; using ceres::Solver; using ceres::Problem; using ceres::CostFunction; using ceres::Solve; struct CostFuntorF1 { template <typename T> bool operator()(const T* const x1, const T* const x2, T* residuals) const { residuals[0] = x1[0] + T(10)*x2[0]; return true; } }; struct CostFuntorF2 { template <typename T> bool operator()(const T* const x3, const T* const x4, T* residuals) const { residuals[0] = sqrt(5)*(x3[0] - x4[0]); return true; } }; struct CostFuntorF3 { template <typename T> bool operator()(const T* const x2, const T* const x3, T* residuals) const { residuals[0] = (x2[0] - T(2)*x3[0])*(x2[0] - T(2)*x3[0]); return true; } }; struct CostFuntorF4 { template <typename T> bool operator()(const T* const x1, const T* const x4, T* residuals) const { residuals[0] = sqrt(10)*(x1[0] - x4[0])*(x1[0] - x4[0]); return true; } }; struct CostFunctor { template <typename T> bool operator()(const T* const x, T* residuals) const{ residuals[0] = x[0] - T(10) * x[1]; residuals[1] = T(sqrt(5)) * (x[2] - x[4]); residuals[2] = (x[1] - T(2) * x[2]) * (x[1] - T(2) * x[2]); residuals[3] = T(sqrt(10)) * (x[0] - x[3]) * (x[0] - x[3]); return true; } }; int main(int argc, char** argv) { const double initial_x1 = 10, initial_x2 = 5, initial_x3 = 2, initial_x4 = 1; double x1 = initial_x1, x2 = initial_x2, x3 = initial_x3, x4 = initial_x4; Problem problem; Solver::Options options; //control whether the log is output to STDOUT options.minimizer_progress_to_stdout = true; Solver::Summary summary; CostFunction* costfunction1 = new AutoDiffCostFunction<CostFuntorF1,1,1,1>(new CostFuntorF1); CostFunction* costfunction2 = new AutoDiffCostFunction<CostFuntorF2,1,1,1>(new CostFuntorF2); CostFunction* costfunction3 = new AutoDiffCostFunction<CostFuntorF3,1,1,1>(new CostFuntorF3); CostFunction* costfunction4 = new AutoDiffCostFunction<CostFuntorF4,1,1,1>(new CostFuntorF4); problem.AddResidualBlock(costfunction1,NULL,&x1,&x2); problem.AddResidualBlock(costfunction2,NULL,&x3,&x4); problem.AddResidualBlock(costfunction3,NULL,&x2,&x3); problem.AddResidualBlock(costfunction4,NULL,&x1,&x4); Solve(options,&problem,&summary); cout << "x1 : " << initial_x1 << "->" << x1 << endl; cout << "x2 : " << initial_x2 << "->" << x2 << endl; cout << "x3 : " << initial_x3 << "->" << x3 << endl; cout << "x4 : " << initial_x4 << "->" << x4 << endl; cout << "---------------------line----------------------------" << endl; double x[4] = {initial_x1, initial_x2, initial_x3, initial_x4}; CostFunction* costfunction = new AutoDiffCostFunction<CostFunctor, 4, 4>(new CostFunctor); Problem pb; pb.AddResidualBlock(costfunction,NULL,x); Solve(options,&pb,&summary); cout << "x[0] : " << initial_x1 << "->" << x[0] << endl; cout << "x[1] : " << initial_x2 << "->" << x[1] << endl; cout << "x[2] : " << initial_x3 << "->" << x[2] << endl; cout << "x[3] : " << initial_x4 << "->" << x[3] << endl; return 0; }
30.268519
92
0.61762
JiauZhang
f752a5c5eb518d545f38c0d601f2ffee6058c03f
3,477
hpp
C++
openjdk11/src/hotspot/share/gc/parallel/psMarkSweep.hpp
iootclab/openjdk
b01fc962705eadfa96def6ecff46c44d522e0055
[ "Apache-2.0" ]
2
2018-06-19T05:43:32.000Z
2018-06-23T10:04:56.000Z
openjdk11/src/hotspot/share/gc/parallel/psMarkSweep.hpp
iootclab/openjdk
b01fc962705eadfa96def6ecff46c44d522e0055
[ "Apache-2.0" ]
null
null
null
openjdk11/src/hotspot/share/gc/parallel/psMarkSweep.hpp
iootclab/openjdk
b01fc962705eadfa96def6ecff46c44d522e0055
[ "Apache-2.0" ]
null
null
null
/* * Copyright (c) 2001, 2015, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. * * This code is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License * version 2 for more details (a copy is included in the LICENSE file that * accompanied this code). * * You should have received a copy of the GNU General Public License version * 2 along with this work; if not, write to the Free Software Foundation, * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. * * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA * or visit www.oracle.com if you need additional information or have any * questions. * */ #ifndef SHARE_VM_GC_PARALLEL_PSMARKSWEEP_HPP #define SHARE_VM_GC_PARALLEL_PSMARKSWEEP_HPP #include "gc/serial/markSweep.hpp" #include "gc/shared/collectorCounters.hpp" #include "gc/shared/referenceProcessor.hpp" #include "utilities/stack.hpp" class PSAdaptiveSizePolicy; class PSYoungGen; class PSOldGen; class PSMarkSweep : public MarkSweep { private: static elapsedTimer _accumulated_time; static jlong _time_of_last_gc; // ms static CollectorCounters* _counters; static SpanSubjectToDiscoveryClosure _span_based_discoverer; // Closure accessors static OopClosure* mark_and_push_closure() { return &MarkSweep::mark_and_push_closure; } static VoidClosure* follow_stack_closure() { return &MarkSweep::follow_stack_closure; } static CLDClosure* follow_cld_closure() { return &MarkSweep::follow_cld_closure; } static OopClosure* adjust_pointer_closure() { return &MarkSweep::adjust_pointer_closure; } static CLDClosure* adjust_cld_closure() { return &MarkSweep::adjust_cld_closure; } static BoolObjectClosure* is_alive_closure() { return &MarkSweep::is_alive; } // Mark live objects static void mark_sweep_phase1(bool clear_all_softrefs); // Calculate new addresses static void mark_sweep_phase2(); // Update pointers static void mark_sweep_phase3(); // Move objects to new positions static void mark_sweep_phase4(); // Temporary data structures for traversal and storing/restoring marks static void allocate_stacks(); static void deallocate_stacks(); // If objects are left in eden after a collection, try to move the boundary // and absorb them into the old gen. Returns true if eden was emptied. static bool absorb_live_data_from_eden(PSAdaptiveSizePolicy* size_policy, PSYoungGen* young_gen, PSOldGen* old_gen); // Reset time since last full gc static void reset_millis_since_last_gc(); public: static void invoke(bool clear_all_softrefs); static bool invoke_no_policy(bool clear_all_softrefs); static void initialize(); // Public accessors static elapsedTimer* accumulated_time() { return &_accumulated_time; } static CollectorCounters* counters() { return _counters; } // Time since last full gc (in milliseconds) static jlong millis_since_last_gc(); }; #endif // SHARE_VM_GC_PARALLEL_PSMARKSWEEP_HPP
38.633333
93
0.746621
iootclab
f753017a1f6fc7b62a1ec374e4f37d53ea01ec73
1,815
cpp
C++
examples/speed_comparison.cpp
jedbrooke/fractionalBignum
9eb2b4f83ba361adde2881ed2819aeef03510ddb
[ "MIT" ]
null
null
null
examples/speed_comparison.cpp
jedbrooke/fractionalBignum
9eb2b4f83ba361adde2881ed2819aeef03510ddb
[ "MIT" ]
null
null
null
examples/speed_comparison.cpp
jedbrooke/fractionalBignum
9eb2b4f83ba361adde2881ed2819aeef03510ddb
[ "MIT" ]
null
null
null
#include "fractionalBignum.hpp" #include <iostream> #include <cmath> #include <gmp.h> #include <ctime> int main(int argc, char const *argv[]) { // double r = ((double) rand() / (RAND_MAX)); const size_t K = 8; u_int64_t v[K] = {1,1,1,1}; fractionalBignum<K> f(v); mpf_set_default_prec(K * 64); mpf_t m; mpf_init(m); mpf_t p; mpf_init(p); for(int i = 1; i <= K; i++) { mpf_set_d(p,pow(2,-(i * 64))); mpf_add(m,m,p); } const double log2_10 = 3.32192809489; const size_t precision = floor((K * 64) / log2_10); std::cout << "fractionalBignum:\t"; std::cout << f.decimal_str() << std::endl; std::cout << "gmp mpf_t:\t\t"; gmp_printf("%.*Ff\n", precision, m); const size_t iterations = 1UL << 30; std::cout << "running " << iterations << " iterations" << std::endl; // fractional bignum speed test std::cout << "running fractionalBignum" << std::endl; auto tstart = clock(); fractionalBignum<K> t_fb; for(auto i = 0; i < iterations; i++) { t_fb += f; } auto fb_time = clock() - tstart; auto fb_time_s = ((double)fb_time) / CLOCKS_PER_SEC; std::cout << fb_time_s << "s" << std::endl; // gmp mpf_t speed test std::cout << "running gmp mpf_t test" << std::endl; tstart = clock(); mpf_t t; mpf_init(t); for(auto i = 0; i < iterations; i++) { mpf_add(t,t,m); } auto mpf_time = clock() - tstart; auto mpf_time_s = ((double) mpf_time) / CLOCKS_PER_SEC; std::cout << mpf_time_s << "s" << std::endl; std::cout << "check results:" << std::endl; std::cout << "fractionalBignum:\t"; std::cout << t_fb.decimal_str() << std::endl; std::cout << "gmp mpf_t:\t\t"; gmp_printf("%.*Ff\n", precision, t); return 0; }
25.208333
73
0.562534
jedbrooke
f755aaf08ef1f64028653e62244e9e6deea5ca47
874
cpp
C++
modules/camera/test/o3d3xx-import-export-tests.cpp
theseankelly/libo3d3xx
01cdf9560d69b1ee91ca9b4298df7bb4efb45e52
[ "Apache-2.0" ]
36
2015-04-04T15:19:50.000Z
2018-10-11T14:33:05.000Z
modules/camera/test/o3d3xx-import-export-tests.cpp
theseankelly/libo3d3xx
01cdf9560d69b1ee91ca9b4298df7bb4efb45e52
[ "Apache-2.0" ]
111
2015-04-22T16:12:55.000Z
2018-10-16T08:03:40.000Z
modules/camera/test/o3d3xx-import-export-tests.cpp
theseankelly/libo3d3xx
01cdf9560d69b1ee91ca9b4298df7bb4efb45e52
[ "Apache-2.0" ]
40
2015-07-13T09:29:31.000Z
2018-09-14T06:56:24.000Z
#include "o3d3xx_camera.h" #include <cstdint> #include <memory> #include <vector> #include "gtest/gtest.h" TEST(ImportExport_Tests, ImportExportApp) { o3d3xx::Camera::Ptr cam = std::make_shared<o3d3xx::Camera>(); cam->RequestSession(); cam->SetOperatingMode(o3d3xx::Camera::operating_mode::EDIT); std::vector<o3d3xx::Camera::app_entry_t> apps = cam->GetApplicationList(); int orig_num_apps = apps.size(); int active_idx = cam->GetDeviceConfig()->ActiveApplication(); std::vector<std::uint8_t> bytes; ASSERT_NO_THROW(bytes = cam->ExportIFMApp(active_idx)); int new_idx = -1; ASSERT_NO_THROW(new_idx = cam->ImportIFMApp(bytes)); apps = cam->GetApplicationList(); ASSERT_EQ(apps.size(), orig_num_apps+1); ASSERT_NO_THROW(cam->DeleteApplication(new_idx)); apps = cam->GetApplicationList(); ASSERT_EQ(apps.size(), orig_num_apps); }
24.971429
63
0.720824
theseankelly
f75bf93f34a60cff4b368809ee2e4a4d9303896d
16,408
cpp
C++
src/Source.cpp
stfnwong/z8t
f1721671886d312f23bc34ba48b313f57b0be75c
[ "MIT" ]
null
null
null
src/Source.cpp
stfnwong/z8t
f1721671886d312f23bc34ba48b313f57b0be75c
[ "MIT" ]
null
null
null
src/Source.cpp
stfnwong/z8t
f1721671886d312f23bc34ba48b313f57b0be75c
[ "MIT" ]
null
null
null
/* SOURCE * Intermediate representation of line info for Z80 * * Stefan Wong 2018 */ #include <iomanip> #include <iostream> #include "Source.hpp" #include "Expression.hpp" /* * ======== TOKEN ======== // */ /* * Token */ Token::Token() : type(SYM_NULL), val(-1), repr("\0") {} Token::Token(const TokenType& t, int val, const std::string& repr) { this->type = t; this->val = val; this->repr = repr; } /* * copy ctor */ Token::Token(const Token& that) { this->type = that.type; this->val = that.val; this->repr = that.repr; } /* * == */ bool Token::operator==(const Token& that) const { if(this->type != that.type) return false; if(this->val != that.val) return false; if(this->repr != that.repr) return false; return true; } /* * != */ bool Token::operator!=(const Token& that) const { return !(*this == that); } void Token::init(void) { this->type = SYM_NULL; this->val = -1; this->repr.clear(); } bool Token::needs_lookup(void) const { return ((this->repr.length() > 0) && (this->val == -1)) ? true : false; } /* * toString() */ std::string Token::toString(void) const { switch(this->type) { case SYM_EOF: return "EOF <" + std::string(this->repr) + "> " + std::to_string(this->val); case SYM_INSTR: return "INSTR <" + std::string(this->repr) + "> " + std::to_string(this->val); case SYM_DIRECTIVE: return "DIRECTIVE <" + std::string(this->repr) + "> " + std::to_string(this->val); case SYM_LITERAL: return "LITERAL <" + std::string(this->repr) + "> " + std::to_string(this->val); case SYM_LITERAL_IND: return "LITERAL_IND <" + std::string(this->repr) + "> " + std::to_string(this->val); case SYM_LABEL: return "LABEL <" + std::string(this->repr) + "> " + std::to_string(this->val); case SYM_REG: return "REGISTER <" + std::string(this->repr) + "> " + std::to_string(this->val); case SYM_COND: return "CONDITION <" + std::string(this->repr) + "> " + std::to_string(this->val); default: return "NULL <" + std::string(this->repr) + "> " + std::to_string(this->val); } } /* * TOKEN LOOKUP */ TokenLookup::TokenLookup() { for(const Token& token : Z80_INSTRUCTIONS) this->name_to_token[token.repr] = token; } TokenLookup::TokenLookup(const TokenSet& set) { switch(set) { case TokenSet::Registers: for(const Token& token: Z80_REGISTERS) this->name_to_token[token.repr] = token; break; case TokenSet::Conditions: for(const Token& token: Z80_CONDITIONS) this->name_to_token[token.repr] = token; break; default: for(const Token& token : Z80_INSTRUCTIONS) this->name_to_token[token.repr] = token; break; } } Token TokenLookup::lookup(const std::string& s) const { auto token = this->name_to_token.find(s); if(token != this->name_to_token.end()) return token->second; return Token(); // can't find anything, return an empty token } /* * ======== SYMBOL ======== // */ /* * Symbol */ Symbol::Symbol() { this->addr = 0; this->label = "\0"; } Symbol::Symbol(const uint16_t addr, const std::string& label) { this->addr = addr; this->label = label; } void Symbol::init(void) { this->addr = 0; this->label.clear(); } bool Symbol::operator==(const Symbol& that) const { if(this->addr != that.addr) return false; if(this->label != that.label) return false; return true; } bool Symbol::operator!=(const Symbol& that) const { return !(*this == that); } std::string Symbol::toString(void) const { std::ostringstream oss; oss << this->label << " " << std::hex << this->addr; return oss.str(); } /* * ======== LINE INFO ======== // */ LineInfo::LineInfo() { this->init(); } LineInfo::LineInfo(const Token& opcode, const Token& arg1, const Token& arg2) { this->init(); // ensure members have known good values this->opcode = opcode; this->args[0] = arg1; this->args[1] = arg2; } void LineInfo::init(void) { // Common fields this->type = LineType::TextLine; this->label.clear(); this->errstr.clear(); this->line_num = 0; this->addr = 0; this->is_label = false; this->error = false; // text fields this->opcode.init(); this->sym_arg = -1; for(int i = 0; i < 2; ++i) this->args[i].init(); // directive fields this->eval_result.init(); this->expr.clear(); this->data = 0; this->evaluated = false; //this->data.clear(); } bool LineInfo::operator==(const LineInfo& that) const { // Common fields if(this->type != that.type) return false; if(this->label != that.label) return false; // don't bother comparing the error string if(this->line_num != that.line_num) return false; if(this->addr != that.addr) return false; if(this->is_label != that.is_label) return false; if(this->error != that.error) return false; // text fields if(this->opcode != that.opcode) return false; if(this->label != that.label) return false; if(this->line_num != that.line_num) return false; if(this->addr != that.addr) return false; for(int i = 0; i < 2; ++i) { if(this->args[i] != that.args[i]) return false; } // directive fields // we don't bother comparing the directive strings if(this->data != that.data) return false; //if(this->data_size() != that.data_size()) // return false; //for(unsigned int i = 0; i < this->data_size(); ++i) //{ // if(this->data[i] != that.data[i]) // return false; //} return true; } bool LineInfo::operator!=(const LineInfo& that) const { return !(*this == that); } /* * argHash() */ uint32_t LineInfo::argHash(void) const { uint32_t hash; hash = (this->opcode.val & 0xFF) << 16; for(int i = 0; i < 2; ++i) { if(this->args[i].type == SYM_LITERAL || this->args[i].type == SYM_LITERAL_IND || this->args[i].type == SYM_NULL) hash = hash | ((this->args[i].type & 0xFF) << ((1-i) * 8)); else if(this->args[i].type == SYM_LABEL) hash = hash | (SYM_LITERAL << ((1-i) * 8)); else hash = hash | ((this->args[i].val & 0xFF) << ((1-i) * 8)); } return hash; } /* * LineInfo::eval() */ void LineInfo::eval(const SourceInfo& info) { std::string cur_string; unsigned int str_start = 0; unsigned int str_idx; if(this->evaluated) return; // TODO: not sold on the idea that eval() is cleanest place to handle this conversion.... // however it is true that we need access to some SourceInfo reference in order to dereference // the address of a SYM_LITERAL_IND address... if(sym_arg > -1) { if(this->args[this->sym_arg].type == SYM_LITERAL_IND) { uint16_t addr = info.getSymAddr(this->args[this->sym_arg].repr); if(addr > 0) { LineInfo dir_line = info.getAddr(addr); dir_line.eval(info); // ensure the target is itself evaluated this->args[this->sym_arg] = Token( SYM_LITERAL, uint16_t(dir_line.data), std::to_string(dir_line.data) ); this->evaluated = true; return; } } } if(this->expr.size() == 0) return; // TODO : note that comma seperated args are not yet supported // TODO : check EvalResult and report errors for(str_idx = 0; str_idx < this->expr.size(); ++str_idx) { if(this->expr[str_idx] == ',') { cur_string = this->expr.substr(str_start, str_idx - str_start); str_start = str_idx+1; // for the next substring EvalResult eval = eval_expr_string(cur_string, info); this->data = eval.val; //this->data.push_back(int(eval)); } } // Either there was a string but no substring, or this // is the last substring with no trailing comma if(str_idx > 0) { cur_string = this->expr.substr(str_start, str_idx - str_start); EvalResult eval = eval_expr_string(cur_string, info); this->data = eval.val; //this->data.push_back(int(eval)); } this->evaluated = true; } /* * LineInfo::size() */ unsigned int LineInfo::data_size(void) const { return 1; //return this->data.size(); } /* * LineInfo::toString() */ std::string LineInfo::toString(void) const { std::ostringstream oss; oss << "---------------------------------------------------------------------" << std::endl; oss << "Line Type Addr Mnemonic Opcode flags args/data" << std::endl; oss << std::left << std::setw(6) << std::setfill(' ') << this->line_num; oss << "["; if(this->type == LineType::DirectiveLine) oss << "D"; else oss << "T"; if(this->is_label == true) // why do I need == true here but nowhere else? oss << "l"; else oss << "."; if(this->error == true) oss << "e"; else oss << "."; if(this->evaluated) oss << "E"; else oss << "."; oss << "] "; // address oss << std::right << "0x" << std::hex << std::setw(4) << std::setfill('0') << this->addr << " "; // mnemonic oss << std::left << std::setw(12) << std::setfill(' ') << this->opcode.repr; // opcode oss << "0x" << std::right << std::hex << std::setw(4) << std::setfill('0') << this->opcode.val << " "; // Insert flag chars oss << "..."; // Arguments oss << " "; if(this->type == LineType::TextLine) { for(int i = 0; i < 2; ++i) { if(this->args[i].type == SYM_REG) oss << "R"; else if(this->args[i].type == SYM_COND) oss << "C"; oss << this->args[i].repr << " "; } } else oss << "0x" << std::hex << std::setw(2) << std::setfill('0') << this->data; // (Next line) Text oss << std::endl; oss << "Label [" << std::left << std::setw(16) << std::setfill(' ') << this->label << "] "; oss << "Expr [" << std::left << std::setw(16) << std::setfill(' ') << this->expr << "] "; //oss << "Symbol[" << std::left << std::setw(16) << std::setfill(' ') << this->symbol << "] "; oss << std::endl; if(this->errstr.size() > 0) oss << this->errstr << std::endl; return oss.str(); } /* * diff() */ std::string LineInfo::diff(const LineInfo& that) { std::ostringstream oss; if(this->label != that.label) { oss << "label [" << this->label << "] does not match [" << that.label << "]" << std::endl; } //if(this->errstr != that.errstr) //{ // oss << "errstr [" << this->errstr // << "] does not match [" << that.errstr // << "]" << std::endl; //} if(this->opcode != that.opcode) { oss << "opcode [" << this->opcode.toString() << "] does not match [" << that.opcode.toString() << "]" << std::endl; } for(int i = 0; i < 2; ++i) { if(this->args[i] != that.args[i]) { oss << "arg " << i << " [" << this->args[i].toString() << "] does not match [" << that.args[i].toString() << "]" << std::endl; } } if(this->line_num != that.line_num) { oss << "line num [" << this->line_num << "] does not match [" << that.line_num << "]" << std::endl; } if(this->addr != that.addr) { oss << "addr [" << this->addr << "] does not match [" << that.addr << "]" << std::endl; } if(this->is_label != that.is_label) { oss << "is_label does not match" << std::endl; } if(this->error != that.error) { oss << "error does not match" << std::endl; } if(this->data != that.data) { oss << "data [" << this->data << "] does not match [" << that.data << "]" << std::endl; } return oss.str(); } /* * toInstrString() */ std::string LineInfo::toInstrString(void) const { std::ostringstream oss; oss << this->opcode.repr << " " << this->args[0].repr; if(this->args[1].type != SYM_NULL) oss << "," << this->args[1].repr; return oss.str(); } /* * ======== SOURCE INFO ======== // */ /* * SourceInfo */ SourceInfo::SourceInfo() { this->init(); } /* * SourceInfo::init() */ void SourceInfo::init(void) { this->info.clear(); } /* * SourceInfo::add() */ void SourceInfo::add(const LineInfo& l) { this->info.push_back(l); // add directive addresses to lookup table if(l.type == LineType::DirectiveLine) { this->directive_addr_lut.insert( {l.addr, this->info.size()-1} ); } } /* * SourceInfo::hasError() */ bool SourceInfo::hasError(void) const { // if it turns out to be a bottleneck then we can optimize this by // not checking each line for(unsigned int idx = 0; idx < this->info.size(); ++idx) { if(this->info[idx].error) return true; } return false; } /* * SourceInfo::get() */ LineInfo SourceInfo::get(const unsigned int idx) const { if(idx >= 0 && idx < this->info.size()) return this->info[idx]; return LineInfo(); } /* * SourceInfo::getAddr() */ LineInfo SourceInfo::getAddr(const int16_t addr) const { auto line = this->directive_addr_lut.find(addr); if(line != this->directive_addr_lut.end()) return this->info[line->second]; return LineInfo(); } /* * SourceInfo::update() */ void SourceInfo::update(const unsigned int idx, const LineInfo& l) { this->info[idx] = l; } /* * SourceInfo::getNumLines() */ unsigned int SourceInfo::getNumLines(void) const { return this->info.size(); } void SourceInfo::toFile(const std::string& filename) const { std::cout << "[" << __func__ << "] : TODO:" << std::endl; } // Symbol table methods /* * SourceInfo::add() */ void SourceInfo::addSym(const Symbol& s) { this->syms.push_back(s); } /* * SourceInfo::update() */ void SourceInfo::updateSym(const unsigned int idx, const Symbol& s) { if(idx < this->syms.size()) this->syms[idx] = s; } /* * SourceInfo::get() */ Symbol SourceInfo::getSym(const unsigned int idx) const { return this->syms[idx]; } /* * SourceInfo::getAddr() */ uint16_t SourceInfo::getSymAddr(const std::string& sym) const { uint16_t addr = 0; // if this turns out to be a bottleneck then this can be made // and unordered map of labels to addresses for(unsigned int idx = 0; idx < this->syms.size(); ++idx) { if(sym == this->syms[idx].label) return this->syms[idx].addr; } return addr; } std::string SourceInfo::getSymName(const uint16_t addr) const { for(unsigned int idx = 0; idx < this->syms.size(); ++idx) { if(addr == this->syms[idx].addr) return this->syms[idx].label; } return ""; } unsigned int SourceInfo::getNumSyms(void) const { return this->syms.size(); } /* * symTableString() */ std::string SourceInfo::symTableString(void) const { std::ostringstream oss; oss << "Symbol Table: (" << this->syms.size() << " symbols)" << std::endl; for(unsigned int idx = 0; idx < this->syms.size(); ++idx) { oss << " [" << this->syms[idx].label << "] -> 0x" << std::hex << std::setw(4) << std::setfill('0') << this->syms[idx].addr << std::endl; } return oss.str(); } /* * SourceInfo::toString() */ std::string SourceInfo::toString(void) const { std::ostringstream oss; for(unsigned int idx = 0; idx < this->info.size(); ++idx) oss << this->info[idx].toString() << std::endl; return oss.str(); }
23.044944
108
0.527791
stfnwong
f75c42470c2283d0bc6d540bf2dd59ca3b9db645
8,231
hpp
C++
disc-fe/src/Panzer_BCStrategy_Neumann_DefaultImpl.hpp
hillyuan/Panzer
13ece3ea4c145c4d7b6339e3ad6332a501932ea8
[ "BSD-3-Clause" ]
1
2022-03-22T03:49:50.000Z
2022-03-22T03:49:50.000Z
disc-fe/src/Panzer_BCStrategy_Neumann_DefaultImpl.hpp
hillyuan/Panzer
13ece3ea4c145c4d7b6339e3ad6332a501932ea8
[ "BSD-3-Clause" ]
null
null
null
disc-fe/src/Panzer_BCStrategy_Neumann_DefaultImpl.hpp
hillyuan/Panzer
13ece3ea4c145c4d7b6339e3ad6332a501932ea8
[ "BSD-3-Clause" ]
null
null
null
// @HEADER // *********************************************************************** // // Panzer: A partial differential equation assembly // engine for strongly coupled complex multiphysics systems // Copyright (2011) Sandia Corporation // // Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation, // the U.S. Government retains certain rights in this software. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are // met: // // 1. Redistributions of source code must retain the above copyright // notice, this list of conditions and the following disclaimer. // // 2. Redistributions in binary form must reproduce the above copyright // notice, this list of conditions and the following disclaimer in the // documentation and/or other materials provided with the distribution. // // 3. Neither the name of the Corporation nor the names of the // contributors may be used to endorse or promote products derived from // this software without specific prior written permission. // // THIS SOFTWARE IS PROVIDED BY SANDIA CORPORATION "AS IS" AND ANY // EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR // PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL SANDIA CORPORATION OR THE // CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, // EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, // PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR // PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF // LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING // NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS // SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. // // Questions? Contact Roger P. Pawlowski (rppawlo@sandia.gov) and // Eric C. Cyr (eccyr@sandia.gov) // *********************************************************************** // @HEADER #ifndef PANZER_BCSTRATEGY_NEUMANN_DEFAULT_IMPL_DECL_HPP #define PANZER_BCSTRATEGY_NEUMANN_DEFAULT_IMPL_DECL_HPP #include <vector> #include <string> #include <tuple> #include "Teuchos_RCP.hpp" #include "Panzer_BCStrategy.hpp" #include "Panzer_GlobalDataAcceptor_DefaultImpl.hpp" #include "Panzer_Traits.hpp" #include "Panzer_Traits.hpp" #include "Phalanx_Evaluator_WithBaseImpl.hpp" #include "Phalanx_FieldManager.hpp" #include "Phalanx_MDField.hpp" #include "Panzer_Evaluator_WithBaseImpl.hpp" namespace panzer { template <typename EvalT> class BCStrategy_Neumann_DefaultImpl : public panzer::BCStrategy<EvalT>, public panzer::GlobalDataAcceptorDefaultImpl, public panzer::EvaluatorWithBaseImpl<panzer::Traits> { public: BCStrategy_Neumann_DefaultImpl(const panzer::BC& bc, const Teuchos::RCP<panzer::GlobalData>& global_data); virtual ~BCStrategy_Neumann_DefaultImpl(); //! \name Derived from BCStrategy //@{ virtual void setup(const panzer::PhysicsBlock& side_pb, const Teuchos::ParameterList& user_data) = 0; virtual void buildAndRegisterEvaluators(PHX::FieldManager<panzer::Traits>& fm, const panzer::PhysicsBlock& side_pb, const panzer::ClosureModelFactory_TemplateManager<panzer::Traits>& factory, const Teuchos::ParameterList& models, const Teuchos::ParameterList& user_data) const = 0; virtual void buildAndRegisterGatherScatterEvaluators(PHX::FieldManager<panzer::Traits>& fm, const panzer::PhysicsBlock& side_pb, const panzer::LinearObjFactory<panzer::Traits> & lof, const Teuchos::ParameterList& user_data) const; virtual void buildAndRegisterScatterEvaluators(PHX::FieldManager<panzer::Traits>& fm, const panzer::PhysicsBlock& side_pb, const LinearObjFactory<panzer::Traits> & lof, const Teuchos::ParameterList& user_data) const; virtual void buildAndRegisterGatherAndOrientationEvaluators(PHX::FieldManager<panzer::Traits>& fm, const panzer::PhysicsBlock& side_pb, const LinearObjFactory<panzer::Traits> & lof, const Teuchos::ParameterList& user_data) const; //@} //! \name Derived from PHX::EvaluatorWithDefaultImpl //@{ virtual void postRegistrationSetup(typename Traits::SetupData d, PHX::FieldManager<Traits>& vm) = 0; virtual void evaluateFields(typename Traits::EvalData d) = 0; //@} //! \name User Interface methods to provide information to the default implementation to be able to build the default evaluators for a Neumann BC //@{ //! Requires that a gather evaluator for the DOF be constructed. virtual void requireDOFGather(const std::string required_dof_name); /** \brief Adds a residual contribution for a neumann condition to a particular equation \param residual_name [in] Name of the residual field that is to be scattered to the global residual. \param dof_name [in] Name of the DOF residual that the Neumann contribution should be added to. \param flux_name [in] Name of the flux field that will be integrated over to form the residual. \param integration_order [in] Order of the integration rule needed to define the data layouts for the flux integration. \param side_pb [in] The side physics block. Used to build the PureBasis and IntegrationRule for a residual contribution. */ virtual void addResidualContribution(const std::string residual_name, const std::string dof_name, const std::string flux_name, const int integration_order, const panzer::PhysicsBlock& side_pb); //! Returns information for the residual contribution integrations associated with this Neumann BC. const std::vector<std::tuple<std::string,std::string,std::string,int,Teuchos::RCP<panzer::PureBasis>,Teuchos::RCP<panzer::IntegrationRule> > > getResidualContributionData() const; //@} //! \name Query methods for underlying data //@{ //! Returns the boundary condition data for this object const panzer::BC bc() const; //@} private: //! \name Utility functions used by default implementation //@{ //! Finds the basis for the corresponding dof_name in the physics block. Teuchos::RCP<panzer::PureBasis> getBasis(const std::string dof_name, const panzer::PhysicsBlock& side_pb) const; //! Allocates and returns the integration rule associated with an integration order and side physics block. Teuchos::RCP<panzer::IntegrationRule> buildIntegrationRule(const int integration_order, const panzer::PhysicsBlock& side_pb) const; //@} private: /** \brief A vector of tuples containing information for each residual contribution for a corresponding Neumann bc Each entry in the vector is a different contribution to an individual residual equation. A single Neumann BC can contribute to multiple equations (e.g. all momentum equations). The tuple has 6 entries, with the indices described below. \param index 0 - Name of the residual field that is to be scattered to the global residual. \param index 1 - Name of the DOF residual that the Neumann residual contribution should be added to. \param index 2 - Name of the flux field that will be integrated over to form the residual. \param index 3 - Order of the integration rule needed to define the data layouts for the flux integration. \param index 4 - RCP to the basis for the dof that the Neumann residual contribution is added to. \param index 5 - RCP to the Integration Rule for the side integration for the Neumann residual contribution. */ std::vector<std::tuple<std::string,std::string,std::string,int,Teuchos::RCP<panzer::PureBasis>,Teuchos::RCP<panzer::IntegrationRule> > > m_residual_contributions; //! All DOF field names needed by this BC: this vector is used to build gather evaluators for each DOF. std::vector<std::string> m_required_dof_names; }; } #include "Panzer_BCStrategy_Neumann_DefaultImpl_impl.hpp" #endif
42.427835
183
0.720933
hillyuan
f764a50e3e5ac4ebcf48d20b4531fe9d8c03a938
5,530
cpp
C++
src/LCDCharConverter.cpp
TechFactoryHU/LCDCharConverter
f0c831aa9dd6d84157978555465882f8c0fb7501
[ "MIT" ]
2
2021-05-09T11:28:57.000Z
2021-11-09T18:52:10.000Z
src/LCDCharConverter.cpp
TechFactoryHU/LCDCharConverter
f0c831aa9dd6d84157978555465882f8c0fb7501
[ "MIT" ]
null
null
null
src/LCDCharConverter.cpp
TechFactoryHU/LCDCharConverter
f0c831aa9dd6d84157978555465882f8c0fb7501
[ "MIT" ]
null
null
null
/* * TechFactory.hu * LCD kijelzőhöz magyar ékezetes karakter támogatás * (LiquidCrystal_I2C class-hoz készült kiegészítő) */ #include "LCDCharConverter.h" #include "LCDCharmap.h" LCDCharConverter::LCDCharConverter(LiquidCrystal_I2C* lcd) { _lcd = lcd; } void LCDCharConverter::display(char* message, uint8_t col, uint8_t row) { //konvertáljuk a bejövő utf8 kódolású karaktereket ASCII-ra char* converted = convert(message); //majd ezt már ki tudjuk írni a kijelzőre _lcd->setCursor(col,row); for (int i=0; i<_len; i++) { _lcd->write(converted[i]); } free(converted); _len = 0; } char* LCDCharConverter::convert(char* message) { char* newmessage; //kikérjük az új méretet (ami már nem utf8) _len = getRealLength(message); //lefoglaljuk a szükséges memóriát newmessage = (char*) malloc(_len); //eredeti utf8 szöveg hosszúsága size_t len = strlen(message); //végloopoljuk az eredeti utf8-as szöveget és //bemapeljük az utf8 karaktereket az lcd egyedi karakter készletébe. //(Jelenleg csak a magyar ékezetes kis nagy betűket rajzoltuk me) //Max 7 egyedi karaktert lehet egy idejűleg megjeleníteni, a többi utf8 karakter helyett ?-et jelenítünk meg. int x = 0; for (int i=0; i<len; i++) { newmessage[x] = parseChar(message, &i); x++; } return newmessage; } void LCDCharConverter::reset() { for (int i=0; i<LCDCHRCONVERTER_CHARMAP_SIZE; i++) { _customCharMap[i] = -1; } } char LCDCharConverter::parseChar(char* message, int* iref) { int i = (int)*iref; //1 byte if ((byte)message[i] >= 0x01 && (byte)message[i] <= 0x7F) { return message[i]; //2 byte }else if((byte)message[i] >= 0xC2 && (byte)message[i] <= 0xDF) { if ((byte)message[i] == 0xC2) { i++; *iref = i; //° (fok) => karakter (0xB0) -> 223 if ((byte)message[i] == 0xB0) { return 223; } }else if((byte)message[i] == 0xC3) { i++; *iref = i; switch ((byte)message[i]) { //81 - Á case 0x81: return loadCustomChar(0); break; //89 - É case 0x89: return loadCustomChar(1); break; //8D - Í case 0x8D: return loadCustomChar(2); break; //9A - Ú case 0x9A: return loadCustomChar(3); break; //9A - Ü case 0x9C: return loadCustomChar(4); break; //93 - Ó case 0x93: return loadCustomChar(5); break; //96 - Ö case 0x96: return loadCustomChar(6); break; //A1 - á case 0xA1: return loadCustomChar(9); break; //A9 - é case 0xA9: return loadCustomChar(10); break; //AD - í case 0xAD: return loadCustomChar(11); break; //BA - ú case 0xBA: return loadCustomChar(12); break; //BC - ü //az ü szerepel az eredeti karaktertáblában, ne pazaroljunk helyet case 0xBC: return 245; break; //case 0xBC: return loadCustomChar(13); break; //B3 - ó case 0xB3: return loadCustomChar(14); break; //B6 - ö //az ö szerepel az eredeti karaktertáblában, ne pazaroljunk helyet case 0xB6: return 239; break; //case 0xB6: return loadCustomChar(15); break; } }else if((byte)message[i] == 0xC5) { i++; *iref = i; switch ((byte)message[i]) { //90 - Ő case 0x90: return loadCustomChar(7); break; //B0 - Ű case 0xB0: return loadCustomChar(8); break; //91 - ő case 0x91: return loadCustomChar(16); break; //B1 - ű case 0xB1: return loadCustomChar(17); break; } } //3 byte }else if((byte)message[i] >= 0xE0 && (byte)message[i] <= 0xEF) {} //4 byte else if((byte)message[i] >= 0xF0) {} //ismeretlen karakter [] return 255; } int LCDCharConverter::getRealLength(char* message) { size_t len = strlen(message); int nl = 0; for (int i=0; i<len; i++) { //1 byte karakter if ((byte)message[i] >= 0x01 && (byte)message[i] <= 0x7F) { nl++; //2 byte karakter }else if((byte)message[i] >= 0xC2 && (byte)message[i] <= 0xDF) { nl++; i++; } //3 byte karakter else if((byte)message[i] >= 0xE0 && (byte)message[i] <= 0xEF) { nl++; i+=2; } //4 byte karakter else if((byte)message[i] >= 0xF0) { nl++; i+=3; } //ismeretlen, 1 byte-t számolunk else { nl++; } } return nl; } char LCDCharConverter::loadCustomChar(int chr_index) { int index = getCustomCharSlot(chr_index); if (index != -1) { return (char)index; } //nem lehetett betolteni a karaktert (elfogyott a hely) //helyette ? jelet teszünk ki a kijelzőre return 63; } int LCDCharConverter::getCustomCharSlot(int index) { //keressunk helyet a betoltendo karakternek //ellenorízzük azt is, hogy korábban betöltöttük e már, így biztosan csak 1x használjuk fel a helyet adott karakterre for (int i=0; i<LCDCHRCONVERTER_CHARMAP_SIZE; i++) { if (_customCharMap[i] == index || _customCharMap[i] == -1) { if (_customCharMap[i] == -1) { _lcd->createChar(i, LCDCHRCONVERTER_CUSTOM_CHARS[index]); _customCharMap[i] = index; } return i; } } //nincs tobb hely return -1; }
31.067416
121
0.567089
TechFactoryHU
f7665e96a3d08f7257568d4cdb2a9ab2e885a031
5,179
cpp
C++
tests/unittests/EasyHttpInternalUnitTest.cpp
madebr/easyhttpcpp
ef7dca78f76877d51b329464c322e87eef54195f
[ "MIT" ]
147
2017-10-05T01:42:02.000Z
2022-01-21T08:15:05.000Z
tests/unittests/EasyHttpInternalUnitTest.cpp
madebr/easyhttpcpp
ef7dca78f76877d51b329464c322e87eef54195f
[ "MIT" ]
20
2018-05-17T01:55:16.000Z
2021-04-20T07:27:00.000Z
tests/unittests/EasyHttpInternalUnitTest.cpp
sony/easyhttpcpp
ef7dca78f76877d51b329464c322e87eef54195f
[ "MIT" ]
32
2018-05-05T13:04:34.000Z
2022-03-25T16:57:11.000Z
/* * Copyright 2017 Sony Corporation */ #include "gtest/gtest.h" #include "gmock/gmock.h" #include "easyhttpcpp/common/Cache.h" #include "easyhttpcpp/EasyHttp.h" #include "easyhttpcpp/Interceptor.h" #include "easyhttpcpp/HttpException.h" #include "EasyHttpCppAssertions.h" #include "MockInterceptor.h" #include "EasyHttpContext.h" #include "EasyHttpInternal.h" #include "HttpInternalConstants.h" namespace easyhttpcpp { namespace test { static const std::string Url = "http://www.example.com/path/index.html"; static const std::string ProxyHostName = "example.com"; static const unsigned short ProxyPort = 8080; static const unsigned int TimeoutSec = EasyHttpContext::DefaultTimeoutSec * 10; static const std::string CachePath = "/test/cache/path"; static const size_t CacheMaxSize = 1024 * 1024; static const std::string CaDirectoryName = "foo"; static const std::string CaFileName = "bar.ca"; TEST(EasyHttpInternalUnitTest, constructor_ReturnsInstance) { // Given: none Proxy::Ptr pProxy = new Proxy(ProxyHostName, ProxyPort); Poco::Path path(CachePath); HttpCache::Ptr pCache = HttpCache::createCache(path, CacheMaxSize); Interceptor::Ptr pMockInterceptor = new easyhttpcpp::testutil::MockInterceptor(); Interceptor::Ptr pMockNetworkInterceptor = new easyhttpcpp::testutil::MockInterceptor(); EasyHttp::Builder builder; builder.setProxy(pProxy) .setTimeoutSec(TimeoutSec) .setCache(pCache) .setCrlCheckPolicy(CrlCheckPolicyCheckHardFail) .setRootCaDirectory(CaDirectoryName) .setRootCaFile(CaFileName) .addInterceptor(pMockInterceptor) .addNetworkInterceptor(pMockNetworkInterceptor); // When: call EasyHttpInternal() EasyHttp::Ptr pEasyHttpInternal = new EasyHttpInternal(builder); // Then: store values and instances EXPECT_FALSE(pEasyHttpInternal->getProxy().isNull()); EXPECT_EQ(pProxy, pEasyHttpInternal->getProxy()); EXPECT_EQ(TimeoutSec, pEasyHttpInternal->getTimeoutSec()); EXPECT_FALSE(pEasyHttpInternal->getCache().isNull()); EXPECT_EQ(pCache, pEasyHttpInternal->getCache()); EXPECT_EQ(CrlCheckPolicyCheckHardFail, pEasyHttpInternal->getCrlCheckPolicy()); EXPECT_EQ(CaDirectoryName, pEasyHttpInternal->getRootCaDirectory()); EXPECT_EQ(CaFileName, pEasyHttpInternal->getRootCaFile()); } TEST(EasyHttpInternalUnitTest, newCall_ReturnsCallInstance) { // Given: none EasyHttp::Builder builder; EasyHttp::Ptr pEasyHttpInternal = new EasyHttpInternal(builder); Request::Builder requestBuilder; Request::Ptr pRequest = requestBuilder.httpGet().setUrl(Url).build(); // When: call newCall() Call::Ptr pCall = pEasyHttpInternal->newCall(pRequest); // Then: returns Call instance EXPECT_FALSE(pCall.isNull()); EXPECT_EQ(pRequest, pCall->getRequest()); } TEST(EasyHttpInternalUnitTest, newCall_ThrowsHttpIllegalArgumentException_WhenRequestIsNull) { // Given: none EasyHttp::Builder builder; EasyHttp::Ptr pEasyHttpInternal = new EasyHttpInternal(builder); // When: call newCall() // Then: throw exception EASYHTTPCPP_EXPECT_THROW(pEasyHttpInternal->newCall(NULL), HttpIllegalArgumentException, 100700); } TEST(EasyHttpInternalUnitTest, getCorePoolSizeOfAsyncThreadPool_ReturnsCorePoolSizeOfAsyncThreadPool_whenSetItByBuilder) { // Given: set core pool size by builder. EasyHttp::Builder builder; EasyHttp::Ptr pEasyHttpInternal = builder.setCorePoolSizeOfAsyncThreadPool(4).build(); // When: getCorePoolSizeOfAsyncThreadPool // Then: get core pool size EXPECT_EQ(4, pEasyHttpInternal->getCorePoolSizeOfAsyncThreadPool()); } TEST(EasyHttpInternalUnitTest, getCorePoolSizeOfAsyncThreadPool_ReturnsTwo_whenNotSetItByBuilder) { // Given: not set core pool size by builder. EasyHttp::Builder builder; EasyHttp::Ptr pEasyHttpInternal = builder.build(); // When: getCorePoolSizeOfAsyncThreadPool // Then: get default value EXPECT_EQ(HttpInternalConstants::AsyncRequests::DefaultCorePoolSizeOfAsyncThreadPool, pEasyHttpInternal->getCorePoolSizeOfAsyncThreadPool()); } TEST(EasyHttpInternalUnitTest, getMaximumPoolSizeOfAsyncThreadPool_ReturnsMaximumPoolSizeOfAsyncThreadPool_whenSetItByBuilder) { // Given: set core pool size by builder. EasyHttp::Builder builder; EasyHttp::Ptr pEasyHttpInternal = builder.setMaximumPoolSizeOfAsyncThreadPool(10).build(); // When: getMaximumPoolSizeOfAsyncThreadPool // Then: get max pool size EXPECT_EQ(10, pEasyHttpInternal->getMaximumPoolSizeOfAsyncThreadPool()); } TEST(EasyHttpInternalUnitTest, getMaximumPoolSizeOfAsyncThreadPool_ReturnsFive_whenNotSetItByBuilder) { // Given: not set max pool size by builder. EasyHttp::Builder builder; EasyHttp::Ptr pEasyHttpInternal = builder.build(); // When: getMaximumPoolSizeOfAsyncThreadPool // Then: get default value EXPECT_EQ(HttpInternalConstants::AsyncRequests::DefaultMaximumPoolSizeOfAsyncThreadPool, pEasyHttpInternal->getMaximumPoolSizeOfAsyncThreadPool()); } } /* namespace test */ } /* namespace easyhttpcpp */
35.965278
120
0.758834
madebr
f766fd542f63d845c580ab611d4c30e9945b2d60
782
cpp
C++
leetcode/1109.cpp
pravinsrc/AlgorithmTraining_leetcode
72ae84e0f7f4d64dff8482d3fe7b96e32b19c9bb
[ "MIT" ]
null
null
null
leetcode/1109.cpp
pravinsrc/AlgorithmTraining_leetcode
72ae84e0f7f4d64dff8482d3fe7b96e32b19c9bb
[ "MIT" ]
null
null
null
leetcode/1109.cpp
pravinsrc/AlgorithmTraining_leetcode
72ae84e0f7f4d64dff8482d3fe7b96e32b19c9bb
[ "MIT" ]
null
null
null
#include "gtest/gtest.h" #include <algorithm> #include <vector> class Solution { public: std::vector<int> corpFlightBookings(const std::vector<std::vector<int>>& bookings, int n) { std::vector<int> res(n, 0); std::for_each(bookings.cbegin(), bookings.cend(), [&res](const auto& booking) { auto start{booking[0] - 1}; auto end{booking[1]}; auto num{booking[2]}; std::for_each(res.begin() + start, res.begin() + end, [num](auto& value) { value += num; }); }); return res; } }; TEST(SolutionTest, Test) { std::vector<std::vector<int>> bookings{{1, 2, 10}, {2, 3, 20}, {2, 5, 25}}; EXPECT_EQ(Solution().corpFlightBookings(bookings, 5), std::vector<int>({10, 55, 45, 25, 25})); }
26.066667
104
0.570332
pravinsrc
f7671d76b6520a7115b011d25a3e299b9fea95e8
10,645
cpp
C++
src/adapter/adapter.cpp
TiWinDeTea/NinjaClown
fdd48e62466f11036fa0360fad2bcb182d6d3352
[ "MIT" ]
2
2020-04-10T14:39:00.000Z
2021-02-11T15:52:16.000Z
src/adapter/adapter.cpp
TiWinDeTea/NinjaClown
fdd48e62466f11036fa0360fad2bcb182d6d3352
[ "MIT" ]
2
2019-12-17T08:50:20.000Z
2020-02-03T09:37:56.000Z
src/adapter/adapter.cpp
TiWinDeTea/NinjaClown
fdd48e62466f11036fa0360fad2bcb182d6d3352
[ "MIT" ]
1
2020-08-19T03:06:52.000Z
2020-08-19T03:06:52.000Z
#include <cpptoml.h> #include <imgui.h> #include <spdlog/spdlog.h> #include "adapter/adapter.hpp" #include "bot/bot_api.hpp" #include "model/cell.hpp" #include "model/components.hpp" #include "model/grid_point.hpp" #include "model/model.hpp" #include "ninja_clown/api.h" #include "state_holder.hpp" #include "utils/logging.hpp" #include "utils/resource_manager.hpp" #include "utils/scope_guards.hpp" #include "view/game_viewer.hpp" #include "view/view.hpp" namespace { template <typename... Args> [[nodiscard]] std::string tooltip_text_prefix(utils::resource_manager &res, std::string_view key, char const *prefix, Args &&... args) { std::string_view fmt = res.tooltip_for(key); return prefix + fmt::format(fmt, std::forward<Args>(args)...); } template <typename... Args> [[nodiscard]] std::string tooltip_text(utils::resource_manager &res, std::string_view key, Args &&... args) { return tooltip_text_prefix(res, key, "", std::forward<Args>(args)...); } } // namespace using fmt::literals::operator""_a; bool adapter::adapter::load_map(const std::filesystem::path &path) noexcept { if (map_is_loaded()) { state::access<adapter>::model(m_state).bot_end_level(); } auto clear = [this] { state::access<adapter>::model(m_state).world.reset(); m_target_handle.reset(); m_target_handle.reset(); m_model2view.clear(); m_view2model.clear(); m_view2name.clear(); m_cells_changed_since_last_update.clear(); }; clear(); std::string string_path = path.generic_string(); std::shared_ptr<cpptoml::table> map_file; try { map_file = cpptoml::parse_file(string_path); } catch (const cpptoml::parse_exception &parse_exception) { utils::log::error(m_state.resources(), "adapter.map_load_failure", "path"_a = string_path, "reason"_a = parse_exception.what()); return false; } auto version = map_file->get_qualified_as<std::string>("file.version"); if (!version) { utils::log::error(m_state.resources(), "adapter.map_load_failure", "path"_a = string_path, "reason"_a = "unknown file format (missing [file].version)"); return false; } bool success{false}; if (*version == "1.0.0") { success = load_map_v1_0_0(map_file, string_path); } if (!success) { utils::log::error(m_state.resources(), "adapter.unsupported_version", "path"_a = string_path, "version"_a = *version); clear(); state::access<adapter>::set_current_map_path(m_state, ""); } else { state::access<adapter>::set_current_map_path(m_state, path); state::access<adapter>::model(m_state).bot_start_level(bot::ffi{}); } return success; } bool adapter::adapter::map_is_loaded() noexcept { view::view &view = state::access<adapter>::view(m_state); return view.has_map(); } void adapter::adapter::fire_activator(model_handle handle) noexcept { // Empty for now } void adapter::adapter::close_gate(model_handle gate) noexcept { auto it = m_model2view.find(gate); if (it == m_model2view.end()) { utils::log::error(m_state.resources(), "adapter.unknown_model_handle", "model_handle"_a = gate.handle, "operation"_a = "close gate"); } else { state::access<adapter>::view(m_state).game().reveal(it->second); } } void adapter::adapter::open_gate(model_handle gate) noexcept { auto it = m_model2view.find(gate); if (it == m_model2view.end()) { utils::log::error(m_state.resources(), "adapter.unknown_model_handle", "model_handle"_a = gate.handle, "operation"_a = "open gate"); } else { state::access<adapter>::view(m_state).game().hide(it->second); } } void adapter::adapter::update_map(const model::grid_point &target, model::cell_type /*new_cell*/) noexcept { m_cells_changed_since_last_update.emplace_back(target); } void adapter::adapter::move_entity(model_handle entity, float new_x, float new_y) noexcept { view::view &view = state::access<adapter>::view(m_state); if (auto it = m_model2view.find(entity); it != m_model2view.end()) { view.game().move_entity(it->second, new_x, new_y); mark_entity_as_dirty(entity.handle); } else { utils::log::error(m_state.resources(), "adapter.unknown_model_handle", "model_handle"_a = entity.handle, "operation"_a = "move entity"); } } void adapter::adapter::hide_entity(model_handle entity) noexcept { auto it = m_model2view.find(entity); if (it == m_model2view.end()) { utils::log::error(m_state.resources(), "adapter.unknown_model_handle", "model_handle"_a = entity.handle, "operation"_a = "hide entity"); } else { mark_entity_as_dirty(entity.handle); state::access<adapter>::view(m_state).game().hide(it->second); } } void adapter::adapter::rotate_entity(model_handle entity, float new_rad) noexcept { view::view &view = state::access<adapter>::view(m_state); if (auto it = m_model2view.find(entity); it != m_model2view.end()) { utils::log::trace(m_state.resources(), "adapter.trace.rotate_entity", "view_handle"_a = it->first.handle, "angle"_a = new_rad); view.game().rotate_entity(it->second, view::facing_direction::from_angle(new_rad)); mark_entity_as_dirty(entity.handle); } else { utils::log::error(m_state.resources(), "adapter.unknown_model_handle", "model_handle"_a = entity.handle, "operation"_a = "rotate entity"); } } void adapter::adapter::mark_entity_as_dirty(model::handle_t model_handle) noexcept { m_entities_changed_since_last_update.emplace_back(model_handle); } void adapter::adapter::clear_entities_changed_since_last_update() noexcept { m_entities_changed_since_last_update.clear(); } const std::vector<std::size_t> &adapter::adapter::entities_changed_since_last_update() noexcept { return m_entities_changed_since_last_update; } void adapter::adapter::dll_log(const char *log) { spdlog::info("BOT LOG: {}", log); } adapter::draw_request adapter::adapter::tooltip_for(view_handle entity) noexcept { const model::world &world = state::access<adapter>::model(m_state).world; draw_request list; request::info info_req; if (entity == m_target_handle) { info_req.lines.emplace_back(tooltip_text(m_state.resources(), "adapter.objective")); list.emplace_back(std::move(info_req)); return list; } if (auto it = m_view2model.find(entity); it != m_view2model.end()) { const auto &components = world.components; const model_handle mhandle = it->second; if (entity.is_mob) { if (components.health[mhandle.handle]) { info_req.lines.emplace_back( tooltip_text(m_state.resources(), "adapter.hp", "hp"_a = components.health[mhandle.handle]->points)); } if (components.hitbox[mhandle.handle]) { const model::component::hitbox &hitbox = *components.hitbox[mhandle.handle]; model::vec2 top_left = hitbox.top_left(); model::vec2 bottom_right = hitbox.bottom_right(); info_req.lines.emplace_back(tooltip_text(m_state.resources(), "adapter.hitbox", "top_left_x"_a = top_left.x, "top_left_y"_a = top_left.y, "bottom_right_x"_a = bottom_right.x, "bottom_right_y"_a = bottom_right.y)); info_req.lines.emplace_back( tooltip_text(m_state.resources(), "adapter.position", "x"_a = hitbox.center.x, "y"_a = hitbox.center.y)); info_req.lines.emplace_back( tooltip_text(m_state.resources(), "adapter.angle", "angle"_a = components.hitbox[mhandle.handle]->rad)); } if (!info_req.lines.empty()) { list.emplace_back(std::move(info_req)); info_req.lines.clear(); // NOLINT (`clear` after `std::move` is fine and intended) } } else { switch (mhandle.type) { case model_handle::ACTIVATOR: { auto targets = world.activators[it->second.handle].targets; info_req.lines.emplace_back(tooltip_text(m_state.resources(), "adapter.activator", "handle"_a = it->second.handle)); for (size_t target : targets) { std::string target_name; auto target_view_handle = m_model2view.find(model_handle{target, model_handle::ACTIONABLE}); if (target_view_handle != m_model2view.end()) { auto target_name_it = m_view2name.find(target_view_handle->second); if (target_name_it != m_view2name.end()) { target_name = target_name_it->second; } } if (!target_name.empty()) { info_req.lines.emplace_back(tooltip_text_prefix(m_state.resources(), "adapter.named_target", "\t", "handle"_a = target, "name"_a = target_name)); } else { info_req.lines.emplace_back( tooltip_text_prefix(m_state.resources(), "adapter.nameless_target", "\t", "handle"_a = target)); utils::log::warn(m_state.resources(), "adapter.name_not_found", "handle"_a = target, "kind"_a = "activator target"); } const model::actionable::instance_data &target_data = world.actionables[target].data; list.push_back(draw_request::value_type{request::coords{target_data.pos.x, target_data.pos.y}}); } if (!info_req.lines.empty()) { list.emplace_back(std::move(info_req)); } return list; } case model_handle::ACTIONABLE: { auto target_name = m_view2name.find(entity); if (target_name != m_view2name.end()) { info_req.lines.emplace_back(tooltip_text(m_state.resources(), "adapter.named_gate", "handle"_a = it->second.handle, "name"_a = target_name->second)); } else { info_req.lines.emplace_back( tooltip_text(m_state.resources(), "adapter.nameless_gate", "handle"_a = it->second.handle)); utils::log::warn(m_state.resources(), "adapter.name_not_found", "handle"_a = mhandle.handle, "kind"_a = "actionable"); } break; } case model_handle::ENTITY: utils::log::warn(m_state.resources(), "adapter.non_coherent_entity", "handle"_a = mhandle.handle); break; } } } else { utils::log::warn(m_state.resources(), "adapter.unknown_view_entity", "view_handle"_a = entity.handle); } if (!info_req.lines.empty()) { list.emplace_back(std::move(info_req)); } return list; } void adapter::adapter::clear_cells_changed_since_last_update() noexcept { m_cells_changed_since_last_update.clear(); } const std::vector<model::grid_point> &adapter::adapter::cells_changed_since_last_update() noexcept { return m_cells_changed_since_last_update; } utils::resource_manager &adapter::adapter::resources() { return m_state.resources(); } std::size_t adapter::view_hhash::operator()(const view_handle &h) const noexcept { if (h.is_mob) { return h.handle; } return h.handle | 0xFF00u; }
36.207483
136
0.687741
TiWinDeTea
f76c083cf45e1a2462d5f440e0e33019b2485e0c
5,067
cpp
C++
Private/Vox.cpp
mik14a/VoxFormat
5b5a75c15e9fa4f7b495f8c7d74ddadef5c3dbd0
[ "MIT" ]
null
null
null
Private/Vox.cpp
mik14a/VoxFormat
5b5a75c15e9fa4f7b495f8c7d74ddadef5c3dbd0
[ "MIT" ]
null
null
null
Private/Vox.cpp
mik14a/VoxFormat
5b5a75c15e9fa4f7b495f8c7d74ddadef5c3dbd0
[ "MIT" ]
null
null
null
// Copyright 2018-2020 mik14a / Admix Network. All Rights Reserved. #include "Vox.h" #include "Chunk/Layr.h" #include "Chunk/Main.h" #include "Chunk/Matl.h" #include "Chunk/Matt.h" #include "Chunk/Pack.h" #include "Chunk/Rgba.h" #include "Chunk/Size.h" #include "Chunk/Xyzi.h" #include "Node/Group.h" #include "Node/Shape.h" #include "Node/Transform.h" FVox FVox::Read(const void*& data, int64& size) { FVox vox; vox.Version = 150; auto main = FVoxChunkMain::Read(data, size); while (0 < size) { auto id = PeekData<uint32>(data); switch (id) { case FVoxChunkPack::Tag: { auto pack = FVoxChunkPack::Read(data, size); } break; case FVoxChunkSize::Tag: { vox.Size.Emplace(FVoxChunkSize::Read(data, size)); } break; case FVoxChunkXyzi::Tag: { vox.Voxel.Emplace(FVoxChunkXyzi::Read(data, size)); } break; case FVoxChunkRgba::Tag: { vox.Palette = FVoxChunkRgba::Read(data, size); } break; case FVoxChunkMatl::Tag: { auto matl = FVoxChunkMatl::Read(data, size); vox.Material.Emplace(matl.Id, std::move(matl)); } break; case FVoxChunkLayr::Tag: { auto layr = FVoxChunkLayr::Read(data, size); vox.Layer.Emplace(layr.Id, std::move(layr)); } break; case FVoxNodeTransform::Tag: { auto transform = TSharedPtr<FVoxNodeTransform>(FVoxNodeTransform::Read(data, size)); vox.Node.Emplace(transform->Id, transform); } break; case FVoxNodeGroup::Tag: { auto group = TSharedPtr<FVoxNodeGroup>(FVoxNodeGroup::Read(data, size)); vox.Node.Emplace(group->Id, group); } break; case FVoxNodeShape::Tag: { auto shape = TSharedPtr<FVoxNodeShape>(FVoxNodeShape::Read(data, size)); vox.Node.Emplace(shape->Id, shape); } break; default: { id = ReadData<uint32>(data, size); auto content = ReadData<int32>(data, size); auto children = ReadData<int32>(data, size); data = (char*)data + content; size -= content; } break; } } return vox; } const uint32 FVox::DefaultPalette[256] = { 0xffffffff, 0xffffffcc, 0xffffff99, 0xffffff66, 0xffffff33, 0xffffff00, 0xffffccff, 0xffffcccc, 0xffffcc99, 0xffffcc66, 0xffffcc33, 0xffffcc00, 0xffff99ff, 0xffff99cc, 0xffff9999, 0xffff9966, 0xffff9933, 0xffff9900, 0xffff66ff, 0xffff66cc, 0xffff6699, 0xffff6666, 0xffff6633, 0xffff6600, 0xffff33ff, 0xffff33cc, 0xffff3399, 0xffff3366, 0xffff3333, 0xffff3300, 0xffff00ff, 0xffff00cc, 0xffff0099, 0xffff0066, 0xffff0033, 0xffff0000, 0xffccffff, 0xffccffcc, 0xffccff99, 0xffccff66, 0xffccff33, 0xffccff00, 0xffccccff, 0xffcccccc, 0xffcccc99, 0xffcccc66, 0xffcccc33, 0xffcccc00, 0xffcc99ff, 0xffcc99cc, 0xffcc9999, 0xffcc9966, 0xffcc9933, 0xffcc9900, 0xffcc66ff, 0xffcc66cc, 0xffcc6699, 0xffcc6666, 0xffcc6633, 0xffcc6600, 0xffcc33ff, 0xffcc33cc, 0xffcc3399, 0xffcc3366, 0xffcc3333, 0xffcc3300, 0xffcc00ff, 0xffcc00cc, 0xffcc0099, 0xffcc0066, 0xffcc0033, 0xffcc0000, 0xff99ffff, 0xff99ffcc, 0xff99ff99, 0xff99ff66, 0xff99ff33, 0xff99ff00, 0xff99ccff, 0xff99cccc, 0xff99cc99, 0xff99cc66, 0xff99cc33, 0xff99cc00, 0xff9999ff, 0xff9999cc, 0xff999999, 0xff999966, 0xff999933, 0xff999900, 0xff9966ff, 0xff9966cc, 0xff996699, 0xff996666, 0xff996633, 0xff996600, 0xff9933ff, 0xff9933cc, 0xff993399, 0xff993366, 0xff993333, 0xff993300, 0xff9900ff, 0xff9900cc, 0xff990099, 0xff990066, 0xff990033, 0xff990000, 0xff66ffff, 0xff66ffcc, 0xff66ff99, 0xff66ff66, 0xff66ff33, 0xff66ff00, 0xff66ccff, 0xff66cccc, 0xff66cc99, 0xff66cc66, 0xff66cc33, 0xff66cc00, 0xff6699ff, 0xff6699cc, 0xff669999, 0xff669966, 0xff669933, 0xff669900, 0xff6666ff, 0xff6666cc, 0xff666699, 0xff666666, 0xff666633, 0xff666600, 0xff6633ff, 0xff6633cc, 0xff663399, 0xff663366, 0xff663333, 0xff663300, 0xff6600ff, 0xff6600cc, 0xff660099, 0xff660066, 0xff660033, 0xff660000, 0xff33ffff, 0xff33ffcc, 0xff33ff99, 0xff33ff66, 0xff33ff33, 0xff33ff00, 0xff33ccff, 0xff33cccc, 0xff33cc99, 0xff33cc66, 0xff33cc33, 0xff33cc00, 0xff3399ff, 0xff3399cc, 0xff339999, 0xff339966, 0xff339933, 0xff339900, 0xff3366ff, 0xff3366cc, 0xff336699, 0xff336666, 0xff336633, 0xff336600, 0xff3333ff, 0xff3333cc, 0xff333399, 0xff333366, 0xff333333, 0xff333300, 0xff3300ff, 0xff3300cc, 0xff330099, 0xff330066, 0xff330033, 0xff330000, 0xff00ffff, 0xff00ffcc, 0xff00ff99, 0xff00ff66, 0xff00ff33, 0xff00ff00, 0xff00ccff, 0xff00cccc, 0xff00cc99, 0xff00cc66, 0xff00cc33, 0xff00cc00, 0xff0099ff, 0xff0099cc, 0xff009999, 0xff009966, 0xff009933, 0xff009900, 0xff0066ff, 0xff0066cc, 0xff006699, 0xff006666, 0xff006633, 0xff006600, 0xff0033ff, 0xff0033cc, 0xff003399, 0xff003366, 0xff003333, 0xff003300, 0xff0000ff, 0xff0000cc, 0xff000099, 0xff000066, 0xff000033, 0xffee0000, 0xffdd0000, 0xffbb0000, 0xffaa0000, 0xff880000, 0xff770000, 0xff550000, 0xff440000, 0xff220000, 0xff110000, 0xff00ee00, 0xff00dd00, 0xff00bb00, 0xff00aa00, 0xff008800, 0xff007700, 0xff005500, 0xff004400, 0xff002200, 0xff001100, 0xff0000ee, 0xff0000dd, 0xff0000bb, 0xff0000aa, 0xff000088, 0xff000077, 0xff000055, 0xff000044, 0xff000022, 0xff000011, 0xffeeeeee, 0xffdddddd, 0xffbbbbbb, 0xffaaaaaa, 0xff888888, 0xff777777, 0xff555555, 0xff444444, 0xff222222, 0xff111111, 0xff000000 };
58.241379
193
0.768305
mik14a
f76c4439085408812c8275ba2c2ee78d95deb966
652
cpp
C++
cpp/aggregate_class.cpp
PhilipDaniels/learn
cbacb52fd472b5c90b6c3890bb912cd3020905fc
[ "MIT" ]
null
null
null
cpp/aggregate_class.cpp
PhilipDaniels/learn
cbacb52fd472b5c90b6c3890bb912cd3020905fc
[ "MIT" ]
null
null
null
cpp/aggregate_class.cpp
PhilipDaniels/learn
cbacb52fd472b5c90b6c3890bb912cd3020905fc
[ "MIT" ]
null
null
null
#include <iostream> using namespace std; struct Point { // Lippman, 7.5.5, p298. // All members must be public. // No ctors. // No in-class initializers. // No base classes or virtual functions. int x; int y; }; int main(int argc, char *argv[]) { Point p1 = { 20, 40 }; cout << "p1.x = " << p1.x << ", p1.y = " << p1.y << endl; cout << "Aggregate classes appear worse than simple DTOs because they\n" "are not even allowed to have constructors. They appear to be\n" "historical baggage and should be avoided. See also literal\n" "classes in Lippman, p300." << endl; return 0; }
22.482759
76
0.593558
PhilipDaniels
f7720e5d2198275130c20c7762760fa91b129d81
11,694
hpp
C++
src/algorithms/LBP_MRF/MotionDetection.hpp
saulocbarreto/bgslibrary
e1890b6b05cd40757ad00e1c71e8c1db13a74a2a
[ "MIT" ]
1,899
2015-01-04T01:13:30.000Z
2022-03-29T21:58:28.000Z
src/algorithms/LBP_MRF/MotionDetection.hpp
saulocbarreto/bgslibrary
e1890b6b05cd40757ad00e1c71e8c1db13a74a2a
[ "MIT" ]
175
2015-01-25T16:14:03.000Z
2022-03-17T17:36:53.000Z
src/algorithms/LBP_MRF/MotionDetection.hpp
saulocbarreto/bgslibrary
e1890b6b05cd40757ad00e1c71e8c1db13a74a2a
[ "MIT" ]
752
2015-01-04T01:34:29.000Z
2022-03-29T13:53:33.000Z
#pragma once #include "opencv2/core/version.hpp" #if CV_MAJOR_VERSION >= 2 && CV_MAJOR_VERSION <= 3 #include <opencv2/imgproc/types_c.h> #include "MEDefs.hpp" #include "MEImage.hpp" namespace bgslibrary { namespace algorithms { namespace lbp_mrf { class CvBGStatModel; //struct CvPoint2D32f; // Struct for histogram update data of a pixel struct MEPixelDataType; /** * MotionDetection * @brief Extract moving objects from image sequence */ class MotionDetection { public: /// Types of motion detection typedef enum { md_Min = 0, /*!< Minimum value */ md_NotDefined = md_Min, /*!< Not defined */ md_DLBPHistograms, /*!< Dynamic LBP */ md_LBPHistograms, /*!< Normal LBP */ md_Max = md_LBPHistograms /*!< Maximum value */ } DetectorType; /// Types of sample mask typedef enum { sm_Min = 0, /*!< Minimum value */ sm_Circle = sm_Min, /*!< Circle */ sm_Square, /*!< Square */ sm_Ellipse, /*!< Ellipse */ sm_RandomPixels, /*!< Random pixels */ sm_Max = sm_RandomPixels /*!< Maximum value */ } SampleMaskType; /// Types of motion detection parameters typedef enum { mdp_Min = 0, /*!< Minimum value */ mdp_HUProximityThreshold = mdp_Min, /*!< Proximity threshold */ mdp_HUBackgroundThreshold, /*!< Background threshold */ mdp_HUHistogramLearningRate, /*!< Histogram learning rate */ mdp_HUWeightsLearningRate, /*!< Weights learning rate */ mdp_HUMinCutWeight, /*!< Minimum cut weight */ mdp_HUDesiredSamplePixels, /*!< Desired sample pixels */ mdp_HUHistogramsPerPixel, /*!< Histogram per pixel */ mdp_HUHistogramArea, /*!< Histogram area */ mdp_HUHistogramBins, /*!< Histogram bins */ mdp_HUColorSpace, /*!< Color space */ mdp_HULBPMode, /*!< LBP mode */ mdp_Max = mdp_HULBPMode /*!< Maximum value */ } ParametersType; /*! * @brief Class constructor * * @param mode Detection mode * * Class constructor with the possibility to specify the detection mode. * The default is dynamic LBP. * */ MotionDetection(DetectorType mode = md_DLBPHistograms); /// Destructor of class ~MotionDetection(); /* ------------------------------------------------------------------- Motion methods ------------------------------------------------------------------- */ /*! * @brief Set the mode of the motion detection * * @param newmode New mode of detection * * Set the mode of the motion detection. * */ void SetMode(DetectorType newmode); /*! * @brief Get a parameter value of the motion detection * * @param param Parameter of the detection * * @return Queried value * * Get the value of a parameter of the motion detection. * */ float GetParameter(ParametersType param) const; /*! * @brief Set a parameter of the motion detection * * @param param Parameter of the detection * @param value New value * * Set a new value to a parameter of the motion detection. * */ void SetParameter(ParametersType param, float value); /*! * @brief Detect the motions on an image * * @param image Image to process * * The function designed to search motions in image streams * thus it needs to process the image sequence frame by frame. * It processes an image from this sequence and searches moving blobs * on that. * */ void DetectMotions(MEImage& image); /*! * @brief Get mask image with detected motions * * @param mask_image Result mask image * * The function creates a mask image on which the objects are * indicated by white blobs. * */ void GetMotionsMask(MEImage& mask_image); /*! * @brief Calculate results of the motion detection * * @param referenceimage Reference mask image * @param tnegatives True negative pixels * @param tpositives True positive pixels * @param ttnegatives Total true negative pixels * @param ttpositives Total true positive pixels * * The function calculates the results of the motion detection * between the current motion mask and a given reference mask * image. * */ void CalculateResults(MEImage& referenceimage, int& tnegatives, int& tpositives, int& ttnegatives, int& ttpositives); private: /*! * @brief Release data structures * * Function releases the data structures. * */ void ReleaseData(); /* ------------------------------------------------------------------- Histogram update methods ------------------------------------------------------------------- */ /*! * @brief Init HU data structures * * @param imagewidth Image width for HU to process * @param imageheight Image height for HU to process * * Function allocates/re-allocates the HU data structures and they * are cleared if needs be. * */ void InitHUData(int imagewidth, int imageheight); /*! * @brief Init HU optical flow data structures * * @param imagewidth Image width for HU to process * @param imageheight Image height for HU to process * * Function allocates/re-allocates the HU optical flow * data structures. * */ void InitHUOFData(int imagewidth, int imageheight); /*! * @brief Release HU data structures * * Function releases the HU data structures. * */ void ReleaseHUData(); /*! * @brief Release HU optical flow data structures * * Function releases the HU optical flow data structures. * */ void ReleaseHUOFData(); /*! * @brief Clear HU data structures * * Function clears the HU data structures. * */ void ClearHUData(); /*! * @brief Get mask image with detected motions by histogram update * * @param mask_image Result mask image * * The function creates a mask image on which the objects are * indicated by white blobs. * */ void GetMotionsMaskHU(MEImage& mask_image); /*! * @brief Set the sample mask * * @param mask_type Type of the mask * @param desiredarea The desired area size of the mask * * The function creates a sample mask with a desired form * (square, circle, ellipse, random pixels) and size. * */ void SetSampleMaskHU(SampleMaskType mask_type, int desiredarea); /*! * @brief Detect the motions on an image with histogram update * * @param image Image to process * * The function designed to search motions in image streams * thus it needs to process the image sequence frame by frame. * It processes an image from this sequence and searches moving blobs * on that. It uses histogram update method. * */ void DetectMotionsHU(MEImage& image); /*! * @brief Update a model * * @param image Image to process * @param model Model to update * * The function updates a histogram model of the image. * */ void UpdateModelHU(MEImage& image, MEPixelDataType*** model); /*! * @brief Update the HU data structure for one pixel * * @param pixeldata Pixel data * @param histogram Current histogram * * This method updates the HU data for one pixel. * */ void UpdateHUPixelData(MEPixelDataType* pixeldata, const float *histogram); /*! * @brief Optical flow correction of the camera movements * * The function trackes some points on the scene if a camera movement is * detected, then the LBP pixel data is corrected. * */ void OpticalFlowCorrection(); private: // GENERAL VARIABLES /// Motion detection type DetectorType MDMode; /// State of the data structures MEProcessStateType MDDataState; /// Processed number in the image sequence int Frames; /// Store the current image MEImage CurrentImage; /// Store the previous image MEImage PreviousImage; /// Store the current mask image MEImage MaskImage; /// Store the current mask image bool ReadyMask; // HISTOGRAM UPDATE VARIABLES /// Color space (-1 = no conversion) int HUColorSpace; /// LBP calculation mode (-1 = no conversion) int HULBPMode; /// Histograms per pixel int HUHistogramsPerPixel; /// Histogram area int HUHistogramArea; /// Histogram bins int HUHistogramBins; /// Image width for histogram update int HUImageWidth; /// Image height for histogram update int HUImageHeight; /// Data of the LBP histograms MEPixelDataType ***HULBPPixelData; /// Store the previous blue layer MEImage PreviousBlueLayer; /// Histogram proximity threshold float HUPrThres; /// Background selection threshold float HUBackgrThres; /// Histogram learning rate float HUHistLRate; /// Weights learning rate float HUWeightsLRate; /// Pixel number used to calculate the histograms int HUSamplePixels; /// The desired pixel number used to calculate the histograms (-1 = Auto) int HUDesiredSamplePixels; /// Min cut weight float HUMinCutWeight; /// Auxiliary variable for computing the histograms in a column int **HUMaskColumnAddDel; /// Auxiliary variable for computing the histograms in a row int **HUMaskRowAddDel; // OPTICAL FLOW VARIABLES /// State of the optical flow MEProcessStateType HUOFDataState; /// Number of the tracked points with optical flow int HUOFPointsNumber; /// Tracked points CvPoint2D32f* HUOFPoints[2]; /// The rest x component of previous camera movement int HUOFCamMovementX; /// Maximum tracked points detected in one cycle int MaxTrackedPoints; /// Processed frame number with optical flow in the image sequence int HUOFFrames; /// Indicator of a new camera movement bool HUOFCamMovement; }; } } } #endif
30.217054
88
0.544638
saulocbarreto
f7726fd6c507b736213940d6bc86721e6295eb82
410,139
cpp
C++
chipyard.TestHarness.RocketConfig/chipyard.TestHarness.RocketConfig/VTestHarness__16__Slow.cpp
vargandhi/ime-congs
963be79b7b319d8e74edae09df7bdf3330371401
[ "BSD-3-Clause" ]
null
null
null
chipyard.TestHarness.RocketConfig/chipyard.TestHarness.RocketConfig/VTestHarness__16__Slow.cpp
vargandhi/ime-congs
963be79b7b319d8e74edae09df7bdf3330371401
[ "BSD-3-Clause" ]
null
null
null
chipyard.TestHarness.RocketConfig/chipyard.TestHarness.RocketConfig/VTestHarness__16__Slow.cpp
vargandhi/ime-congs
963be79b7b319d8e74edae09df7bdf3330371401
[ "BSD-3-Clause" ]
null
null
null
// Verilated -*- C++ -*- // DESCRIPTION: Verilator output: Design implementation internals // See VTestHarness.h for the primary calling header #include "VTestHarness.h" #include "VTestHarness__Syms.h" #include "verilated_dpi.h" void VTestHarness::_settle__TOP__1006(VTestHarness__Syms* __restrict vlSymsp) { VL_DEBUG_IF(VL_DBG_MSGF("+ VTestHarness::_settle__TOP__1006\n"); ); VTestHarness* __restrict vlTOPp VL_ATTR_UNUSED = vlSymsp->TOPp; // Body vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_pbus__DOT__buffer__DOT__monitor__DOT___T_268 = (((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_pbus__DOT__atomics_auto_out_a_bits_mask) == (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_pbus__DOT__buffer__DOT__monitor__DOT__mask)) | (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__dividerOnlyClockGenerator_3__DOT__bundleOut_0_member_allClocks_subsystem_pbus_0_reset_catcher_io_sync_reset)); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_pbus__DOT__buffer__DOT__monitor__DOT___T_370 = ((0U == ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_pbus__DOT__atomics_auto_out_a_bits_mask) & (~ (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_pbus__DOT__buffer__DOT__monitor__DOT__mask)))) | (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__dividerOnlyClockGenerator_3__DOT__bundleOut_0_member_allClocks_subsystem_pbus_0_reset_catcher_io_sync_reset)); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__l2__DOT__mods_0__DOT__sinkA__DOT__putbuffer__DOT__data_data_MPORT_addr = (((IData)((0U != (0x1ffU & (IData)((vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__l2__DOT__mods_0__DOT__sinkA__DOT__putbuffer__DOT__freeOH >> 0x20U))))) << 5U) | (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__l2__DOT__mods_0__DOT__sinkA__DOT__putbuffer__DOT__freeIdx_lo_9)); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__l2__DOT__mods_0__DOT__sinkA__DOT__putbuffer__DOT__data_mask_MPORT_addr = (((IData)((0U != (0x1ffU & (IData)((vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__l2__DOT__mods_0__DOT__sinkA__DOT__putbuffer__DOT__freeOH >> 0x20U))))) << 5U) | (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__l2__DOT__mods_0__DOT__sinkA__DOT__putbuffer__DOT__freeIdx_lo_9)); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__l2__DOT__mods_0__DOT__sinkA__DOT__putbuffer__DOT__data_corrupt_MPORT_addr = (((IData)((0U != (0x1ffU & (IData)((vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__l2__DOT__mods_0__DOT__sinkA__DOT__putbuffer__DOT__freeOH >> 0x20U))))) << 5U) | (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__l2__DOT__mods_0__DOT__sinkA__DOT__putbuffer__DOT__freeIdx_lo_9)); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__l2__DOT__mods_0__DOT__requests__DOT__data_prio_0_MPORT_addr = (((IData)((0U != (3U & (IData)((vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__l2__DOT__mods_0__DOT__requests__DOT__freeOH >> 0x20U))))) << 5U) | (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__l2__DOT__mods_0__DOT__requests__DOT__freeIdx_lo_9)); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__l2__DOT__mods_0__DOT__requests__DOT__data_prio_1_MPORT_addr = (((IData)((0U != (3U & (IData)((vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__l2__DOT__mods_0__DOT__requests__DOT__freeOH >> 0x20U))))) << 5U) | (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__l2__DOT__mods_0__DOT__requests__DOT__freeIdx_lo_9)); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__l2__DOT__mods_0__DOT__requests__DOT__data_prio_2_MPORT_addr = (((IData)((0U != (3U & (IData)((vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__l2__DOT__mods_0__DOT__requests__DOT__freeOH >> 0x20U))))) << 5U) | (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__l2__DOT__mods_0__DOT__requests__DOT__freeIdx_lo_9)); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__l2__DOT__mods_0__DOT__requests__DOT__data_control_MPORT_addr = (((IData)((0U != (3U & (IData)((vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__l2__DOT__mods_0__DOT__requests__DOT__freeOH >> 0x20U))))) << 5U) | (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__l2__DOT__mods_0__DOT__requests__DOT__freeIdx_lo_9)); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__l2__DOT__mods_0__DOT__requests__DOT__data_opcode_MPORT_addr = (((IData)((0U != (3U & (IData)((vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__l2__DOT__mods_0__DOT__requests__DOT__freeOH >> 0x20U))))) << 5U) | (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__l2__DOT__mods_0__DOT__requests__DOT__freeIdx_lo_9)); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__l2__DOT__mods_0__DOT__requests__DOT__data_param_MPORT_addr = (((IData)((0U != (3U & (IData)((vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__l2__DOT__mods_0__DOT__requests__DOT__freeOH >> 0x20U))))) << 5U) | (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__l2__DOT__mods_0__DOT__requests__DOT__freeIdx_lo_9)); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__l2__DOT__mods_0__DOT__requests__DOT__data_size_MPORT_addr = (((IData)((0U != (3U & (IData)((vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__l2__DOT__mods_0__DOT__requests__DOT__freeOH >> 0x20U))))) << 5U) | (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__l2__DOT__mods_0__DOT__requests__DOT__freeIdx_lo_9)); } void VTestHarness::_settle__TOP__1007(VTestHarness__Syms* __restrict vlSymsp) { VL_DEBUG_IF(VL_DBG_MSGF("+ VTestHarness::_settle__TOP__1007\n"); ); VTestHarness* __restrict vlTOPp VL_ATTR_UNUSED = vlSymsp->TOPp; // Body vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__l2__DOT__mods_0__DOT__requests__DOT__data_source_MPORT_addr = (((IData)((0U != (3U & (IData)((vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__l2__DOT__mods_0__DOT__requests__DOT__freeOH >> 0x20U))))) << 5U) | (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__l2__DOT__mods_0__DOT__requests__DOT__freeIdx_lo_9)); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__l2__DOT__mods_0__DOT__requests__DOT__data_tag_MPORT_addr = (((IData)((0U != (3U & (IData)((vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__l2__DOT__mods_0__DOT__requests__DOT__freeOH >> 0x20U))))) << 5U) | (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__l2__DOT__mods_0__DOT__requests__DOT__freeIdx_lo_9)); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__l2__DOT__mods_0__DOT__requests__DOT__data_offset_MPORT_addr = (((IData)((0U != (3U & (IData)((vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__l2__DOT__mods_0__DOT__requests__DOT__freeOH >> 0x20U))))) << 5U) | (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__l2__DOT__mods_0__DOT__requests__DOT__freeIdx_lo_9)); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__l2__DOT__mods_0__DOT__requests__DOT__data_put_MPORT_addr = (((IData)((0U != (3U & (IData)((vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__l2__DOT__mods_0__DOT__requests__DOT__freeOH >> 0x20U))))) << 5U) | (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__l2__DOT__mods_0__DOT__requests__DOT__freeIdx_lo_9)); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__fpuOpt__DOT__dfma__DOT__fma__DOT__roundRawFNToRecFN__DOT__roundAnyRawFNToRecFN__DOT__io_exceptionFlags_lo = ((((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__fpuOpt__DOT__dfma__DOT__fma__DOT__roundRawFNToRecFN__DOT__roundAnyRawFNToRecFN__DOT__commonCase) & (VL_GTS_III(1,14,14, 0x3ceU, (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__fpuOpt__DOT__dfma__DOT__fma__DOT__roundRawFNToRecFN__DOT__roundAnyRawFNToRecFN__DOT__sRoundedExp)) | ((((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__fpuOpt__DOT__dfma__DOT__fma__DOT__roundRawFNToRecFN__DOT__roundAnyRawFNToRecFN__DOT__anyRound) & VL_GTES_III(1,2,2, 0U, (3U & ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__fpuOpt__DOT__dfma__DOT__fma__DOT__roundRawFNToRecFN_io_in_b_sExp) >> 0xbU)))) & ((1U & (IData)((vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__fpuOpt__DOT__dfma__DOT__fma__DOT__roundRawFNToRecFN_io_in_b_sig >> 0x37U))) ? (IData)( (vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__fpuOpt__DOT__dfma__DOT__fma__DOT__roundRawFNToRecFN__DOT__roundAnyRawFNToRecFN__DOT__roundMask_hi_7 >> 1U)) : (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__fpuOpt__DOT__dfma__DOT__fma__DOT__roundRawFNToRecFN__DOT__roundAnyRawFNToRecFN__DOT__roundMask_hi_7))) & (~ ((((~ ((1U & (IData)((vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__fpuOpt__DOT__dfma__DOT__fma__DOT__roundRawFNToRecFN_io_in_b_sig >> 0x37U))) ? (IData)((vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__fpuOpt__DOT__dfma__DOT__fma__DOT__roundRawFNToRecFN__DOT__roundAnyRawFNToRecFN__DOT__roundMask_hi_7 >> 2U)) : (IData)( (vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__fpuOpt__DOT__dfma__DOT__fma__DOT__roundRawFNToRecFN__DOT__roundAnyRawFNToRecFN__DOT__roundMask_hi_7 >> 1U)))) & ((1U & (IData)((vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__fpuOpt__DOT__dfma__DOT__fma__DOT__roundRawFNToRecFN_io_in_b_sig >> 0x37U))) ? (IData)((vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__fpuOpt__DOT__dfma__DOT__fma__DOT__roundRawFNToRecFN__DOT__roundAnyRawFNToRecFN__DOT__roundedSig >> 0x36U)) : (IData)((vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__fpuOpt__DOT__dfma__DOT__fma__DOT__roundRawFNToRecFN__DOT__roundAnyRawFNToRecFN__DOT__roundedSig >> 0x35U)))) & (0U != vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__fpuOpt__DOT__dfma__DOT__fma__DOT__roundRawFNToRecFN__DOT__roundAnyRawFNToRecFN__DOT___roundPosBit_T)) & (((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__fpuOpt__DOT__dfma__DOT__fma__DOT__roundRawFNToRecFN__DOT__roundAnyRawFNToRecFN__DOT___roundIncr_T) & ((1U & (IData)((vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__fpuOpt__DOT__dfma__DOT__fma__DOT__roundRawFNToRecFN_io_in_b_sig >> 0x37U))) ? (IData)((vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__fpuOpt__DOT__dfma__DOT__fma__DOT__roundRawFNToRecFN_io_in_b_sig >> 2U)) : (IData)((vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__fpuOpt__DOT__dfma__DOT__fma__DOT__roundRawFNToRecFN_io_in_b_sig >> 1U)))) | ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__fpuOpt__DOT__dfma__DOT__fma__DOT__roundRawFNToRecFN__DOT__roundAnyRawFNToRecFN__DOT__roundMagUp) & (((IData)((vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__fpuOpt__DOT__dfma__DOT__fma__DOT__roundRawFNToRecFN_io_in_b_sig >> 0x37U)) & (IData)((vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__fpuOpt__DOT__dfma__DOT__fma__DOT__roundRawFNToRecFN_io_in_b_sig >> 2U))) | (0U != (3U & (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__fpuOpt__DOT__dfma__DOT__fma__DOT__roundRawFNToRecFN_io_in_b_sig))))))))))) << 1U) | ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__fpuOpt__DOT__dfma__DOT__fma__DOT__roundRawFNToRecFN__DOT__roundAnyRawFNToRecFN__DOT__overflow) | ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__fpuOpt__DOT__dfma__DOT__fma__DOT__roundRawFNToRecFN__DOT__roundAnyRawFNToRecFN__DOT__commonCase) & (VL_GTS_III(1,14,14, 0x3ceU, (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__fpuOpt__DOT__dfma__DOT__fma__DOT__roundRawFNToRecFN__DOT__roundAnyRawFNToRecFN__DOT__sRoundedExp)) | (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__fpuOpt__DOT__dfma__DOT__fma__DOT__roundRawFNToRecFN__DOT__roundAnyRawFNToRecFN__DOT__anyRound))))); } void VTestHarness::_settle__TOP__1008(VTestHarness__Syms* __restrict vlSymsp) { VL_DEBUG_IF(VL_DBG_MSGF("+ VTestHarness::_settle__TOP__1008\n"); ); VTestHarness* __restrict vlTOPp VL_ATTR_UNUSED = vlSymsp->TOPp; // Body vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__fpuOpt__DOT__dfma__DOT__fma__DOT__roundRawFNToRecFN__DOT__roundAnyRawFNToRecFN__DOT__pegMaxFiniteMagOut = ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__fpuOpt__DOT__dfma__DOT__fma__DOT__roundRawFNToRecFN__DOT__roundAnyRawFNToRecFN__DOT__overflow) & (~ (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__fpuOpt__DOT__dfma__DOT__fma__DOT__roundRawFNToRecFN__DOT__roundAnyRawFNToRecFN__DOT__overflow_roundMagUp))); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__fpuOpt__DOT__dfma__DOT__fma__DOT__roundRawFNToRecFN__DOT__roundAnyRawFNToRecFN__DOT__notNaN_isInfOut = ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__fpuOpt__DOT__dfma__DOT__fma__DOT__roundRawFNToRecFN_io_in_b_isInf) | ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__fpuOpt__DOT__dfma__DOT__fma__DOT__roundRawFNToRecFN__DOT__roundAnyRawFNToRecFN__DOT__overflow) & (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__fpuOpt__DOT__dfma__DOT__fma__DOT__roundRawFNToRecFN__DOT__roundAnyRawFNToRecFN__DOT__overflow_roundMagUp))); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__cork__DOT__monitor__DOT___a_opcode_lookup_T_1 = ((0x13U >= ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__cork__DOT__monitor_io_in_d_bits_source) << 2U)) ? (0xfffffU & (vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__cork__DOT__monitor__DOT__inflight_opcodes >> ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__cork__DOT__monitor_io_in_d_bits_source) << 2U))) : 0U); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__cork__DOT__monitor__DOT___same_cycle_resp_T_2 = ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__l2__DOT__mods_0__DOT__sourceA__DOT__io_a_q__DOT__ram_source_io_deq_bits_MPORT_data) == (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__cork__DOT__monitor_io_in_d_bits_source)); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__cork__DOT__monitor__DOT___same_cycle_resp_T_8 = ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__l2__DOT__mods_0__DOT__sourceC__DOT__queue__DOT__ram_source_io_deq_bits_MPORT_data) == (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__cork__DOT__monitor_io_in_d_bits_source)); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__cork__DOT__monitor_io_in_d_bits_param = ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__cork__DOT___T_139) | (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__cork__DOT___T_138)); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__cork__DOT___T_144 = (((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__cork__DOT__muxStateEarly_1_0) ? (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__cork__DOT__d_d_bits_opcode) : 0U) | ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__cork__DOT__muxStateEarly_1_1) ? vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__cork__DOT__q__DOT__ram_opcode [vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__cork__DOT__q__DOT__value_1] : 0U)); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__dcache__DOT___pstore2_valid_T_2 = (((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__dcache__DOT__pstore2_valid) & (~ (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__dcache__DOT__pstore_drain))) | (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__dcache__DOT__advance_pstore1)); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__dcache__DOT__data__DOT__data_arrays_0__DOT___GEN_58 = ((0x8000U & (((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__dcache__DOT__dataArb_io_out_bits_eccMask) << 8U) & ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__dcache__DOT__dataArb_io_out_bits_way_en) << 0xcU))) | ((0x4000U & (((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__dcache__DOT__dataArb_io_out_bits_eccMask) << 8U) & ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__dcache__DOT__dataArb_io_out_bits_way_en) << 0xbU))) | ((0x2000U & (((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__dcache__DOT__dataArb_io_out_bits_eccMask) << 8U) & ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__dcache__DOT__dataArb_io_out_bits_way_en) << 0xaU))) | ((0x1000U & (((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__dcache__DOT__dataArb_io_out_bits_eccMask) << 8U) & ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__dcache__DOT__dataArb_io_out_bits_way_en) << 9U))) | ((0x800U & (((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__dcache__DOT__dataArb_io_out_bits_eccMask) & (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__dcache__DOT__dataArb_io_out_bits_way_en)) << 8U)) | ((0x400U & (((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__dcache__DOT__dataArb_io_out_bits_eccMask) << 8U) & ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__dcache__DOT__dataArb_io_out_bits_way_en) << 7U))) | ((0x200U & (((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__dcache__DOT__dataArb_io_out_bits_eccMask) << 8U) & ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__dcache__DOT__dataArb_io_out_bits_way_en) << 6U))) | ((0x100U & (((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__dcache__DOT__dataArb_io_out_bits_eccMask) << 8U) & ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__dcache__DOT__dataArb_io_out_bits_way_en) << 5U))) | ((0x80U & ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__dcache__DOT__dataArb_io_out_bits_eccMask) & ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__dcache__DOT__dataArb_io_out_bits_way_en) << 5U))) | ((0x40U & ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__dcache__DOT__dataArb_io_out_bits_eccMask) & ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__dcache__DOT__dataArb_io_out_bits_way_en) << 4U))) | ((0x20U & ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__dcache__DOT__dataArb_io_out_bits_eccMask) & ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__dcache__DOT__dataArb_io_out_bits_way_en) << 3U))) | ((0x10U & ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__dcache__DOT__dataArb_io_out_bits_eccMask) & ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__dcache__DOT__dataArb_io_out_bits_way_en) << 2U))) | ((8U & ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__dcache__DOT__dataArb_io_out_bits_eccMask) & ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__dcache__DOT__dataArb_io_out_bits_way_en) << 1U))) | ((4U & ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__dcache__DOT__dataArb_io_out_bits_eccMask) & (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__dcache__DOT__dataArb_io_out_bits_way_en))) | ((2U & ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__dcache__DOT__dataArb_io_out_bits_eccMask) & ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__dcache__DOT__dataArb_io_out_bits_way_en) >> 1U))) | (1U & ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__dcache__DOT__dataArb_io_out_bits_eccMask) & ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__dcache__DOT__dataArb_io_out_bits_way_en) >> 2U)))))))))))))))))); } void VTestHarness::_settle__TOP__1010(VTestHarness__Syms* __restrict vlSymsp) { VL_DEBUG_IF(VL_DBG_MSGF("+ VTestHarness::_settle__TOP__1010\n"); ); VTestHarness* __restrict vlTOPp VL_ATTR_UNUSED = vlSymsp->TOPp; // Body vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__dcache__DOT__dataArb__DOT___grant_T_1 = ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__dcache__DOT__dataArb__DOT___grant_T) | (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__dcache__DOT__dataArb_io_in_2_valid)); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__dcache_auto_out_e_valid = ((~ (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__dcache__DOT___T_292)) & (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__dcache__DOT___bundleOut_0_e_valid_T_2)); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__dcache__DOT___GEN_233 = (1U & ((~ (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__dcache__DOT___T_292)) & ((~ (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__dcache__DOT__grantIsCached)) | (((0U != (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__dcache__DOT__counter)) | (~ (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__buffer_1__DOT__bundleOut_0_e_q__DOT__full))) & (~ (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__dcache__DOT___T_312)))))); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__core__DOT__ll_waddr = (0x1fU & ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__core__DOT___T_117) ? (0x1fU & ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__dcache__DOT__s2_req_tag) >> 2U)) : (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__core__DOT__div__DOT__req_tag))); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__core__DOT__div_io_resp_ready = (1U & ((~ (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__core__DOT___T_117)) & (~ (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__core__DOT__wb_wxd)))); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__buffer_1__DOT__monitor__DOT___T_2170 = ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__buffer_1__DOT__monitor__DOT___a_first_T) & (0U == (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__buffer_1__DOT__monitor__DOT__a_first_counter))); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__buffer_1__DOT__monitor__DOT___T_2250 = ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__buffer_1__DOT__monitor__DOT___a_first_T) & (0U == (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__buffer_1__DOT__monitor__DOT__a_first_counter_1))); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__tlMasterXbar__DOT___readys_readys_T_2 = (3U & (((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__tlMasterXbar__DOT__readys_unready) >> 2U) & (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__tlMasterXbar__DOT__readys_unready))); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_cbus__DOT__atomics__DOT__monitor__DOT___T_1070 = (1U & (((0x1fU & ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_cbus__DOT__atomics__DOT__monitor__DOT__inflight) >> (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_cbus__DOT__buffer__DOT__bundleIn_0_d_q__DOT__ram_source_io_deq_bits_MPORT_data))) | (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_cbus__DOT__atomics__DOT__monitor__DOT__same_cycle_resp)) | (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__dividerOnlyClockGenerator_3__DOT__bundleOut_0_member_allClocks_subsystem_cbus_0_reset_catcher_io_sync_reset))); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_cbus__DOT__atomics__DOT__monitor__DOT___T_825 = (((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_cbus__DOT__atomics__DOT__monitor__DOT___T_53) & (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_cbus__DOT__atomics__DOT__monitor__DOT___T_365)) | (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__dividerOnlyClockGenerator_3__DOT__bundleOut_0_member_allClocks_subsystem_cbus_0_reset_catcher_io_sync_reset)); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_cbus__DOT__atomics__DOT__monitor__DOT___T_498 = (((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_cbus__DOT__atomics__DOT__monitor__DOT___T_53) & ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_cbus__DOT__atomics__DOT__monitor__DOT___T_365) | ((6U >= (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__system_bus_xbar_auto_out_0_a_bits_size)) & (((((0U == (0x7feff000U & vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__system_bus_xbar__DOT__out_2_0_a_bits_address)) | (0U == (0x7fff0000U & (0x2000000U ^ vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__system_bus_xbar__DOT__out_2_0_a_bits_address)))) | (0U == (0x7ffff000U & (0x2010000U ^ vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__system_bus_xbar__DOT__out_2_0_a_bits_address)))) | (0U == (0x7c000000U & (0xc000000U ^ vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__system_bus_xbar__DOT__out_2_0_a_bits_address)))) | (0U == (0x7ffff000U & (0x54000000U ^ vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__system_bus_xbar__DOT__out_2_0_a_bits_address))))))) | (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__dividerOnlyClockGenerator_3__DOT__bundleOut_0_member_allClocks_subsystem_cbus_0_reset_catcher_io_sync_reset)); } void VTestHarness::_settle__TOP__1011(VTestHarness__Syms* __restrict vlSymsp) { VL_DEBUG_IF(VL_DBG_MSGF("+ VTestHarness::_settle__TOP__1011\n"); ); VTestHarness* __restrict vlTOPp VL_ATTR_UNUSED = vlSymsp->TOPp; // Body vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_cbus__DOT__atomics__DOT__monitor__DOT___T_665 = (((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_cbus__DOT__atomics__DOT__monitor__DOT___T_53) & ((3U >= (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__system_bus_xbar_auto_out_0_a_bits_size)) & (((((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_cbus__DOT__atomics__DOT__monitor__DOT___T_91) | (0U == (0x7fff0000U & (0x2000000U ^ vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__system_bus_xbar__DOT__out_2_0_a_bits_address)))) | (0U == (0x7ffff000U & (0x2010000U ^ vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__system_bus_xbar__DOT__out_2_0_a_bits_address)))) | (0U == (0x7c000000U & (0xc000000U ^ vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__system_bus_xbar__DOT__out_2_0_a_bits_address)))) | (0U == (0x7ffff000U & (0x54000000U ^ vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__system_bus_xbar__DOT__out_2_0_a_bits_address)))))) | (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__dividerOnlyClockGenerator_3__DOT__bundleOut_0_member_allClocks_subsystem_cbus_0_reset_catcher_io_sync_reset)); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_cbus__DOT__atomics__DOT__monitor__DOT__mask = ((((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_cbus__DOT__atomics__DOT__monitor__DOT__mask_acc_5) | ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_cbus__DOT__atomics__DOT__monitor__DOT__mask_eq_5) & vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__system_bus_xbar__DOT__out_2_0_a_bits_address)) << 7U) | ((((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_cbus__DOT__atomics__DOT__monitor__DOT__mask_acc_5) | ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_cbus__DOT__atomics__DOT__monitor__DOT__mask_eq_5) & (~ vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__system_bus_xbar__DOT__out_2_0_a_bits_address))) << 6U) | ((((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_cbus__DOT__atomics__DOT__monitor__DOT__mask_acc_4) | ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_cbus__DOT__atomics__DOT__monitor__DOT__mask_eq_4) & vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__system_bus_xbar__DOT__out_2_0_a_bits_address)) << 5U) | ((((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_cbus__DOT__atomics__DOT__monitor__DOT__mask_acc_4) | ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_cbus__DOT__atomics__DOT__monitor__DOT__mask_eq_4) & (~ vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__system_bus_xbar__DOT__out_2_0_a_bits_address))) << 4U) | ((((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_cbus__DOT__atomics__DOT__monitor__DOT__mask_acc_3) | ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_cbus__DOT__atomics__DOT__monitor__DOT__mask_eq_3) & vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__system_bus_xbar__DOT__out_2_0_a_bits_address)) << 3U) | ((((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_cbus__DOT__atomics__DOT__monitor__DOT__mask_acc_3) | ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_cbus__DOT__atomics__DOT__monitor__DOT__mask_eq_3) & (~ vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__system_bus_xbar__DOT__out_2_0_a_bits_address))) << 2U) | ((((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_cbus__DOT__atomics__DOT__monitor__DOT__mask_acc_2) | ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_cbus__DOT__atomics__DOT__monitor__DOT__mask_eq_2) & vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__system_bus_xbar__DOT__out_2_0_a_bits_address)) << 1U) | ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_cbus__DOT__atomics__DOT__monitor__DOT__mask_acc_2) | ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_cbus__DOT__atomics__DOT__monitor__DOT__mask_eq_2) & (~ vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__system_bus_xbar__DOT__out_2_0_a_bits_address)))))))))); } void VTestHarness::_settle__TOP__1014(VTestHarness__Syms* __restrict vlSymsp) { VL_DEBUG_IF(VL_DBG_MSGF("+ VTestHarness::_settle__TOP__1014\n"); ); VTestHarness* __restrict vlTOPp VL_ATTR_UNUSED = vlSymsp->TOPp; // Body vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__l2__DOT__mods_0__DOT__request_bits_set = (0x3ffU & ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__l2__DOT__mods_0__DOT__sinkC_io_req_valid) ? (vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__l2__DOT__mods_0__DOT__sinkC__DOT__offset >> 6U) : ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__l2__DOT__mods_0__DOT__sinkX__DOT__x__DOT__maybe_full) ? (vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__l2__DOT__mods_0__DOT__sinkX__DOT__offset >> 6U) : (vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__l2__DOT__mods_0__DOT__sinkA__DOT__offset >> 6U)))); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_mbus__DOT__coupler_to_memory_controller_port_named_axi4__DOT__tl2axi4__DOT__queue_arw_deq_io_deq_ready = ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_mbus__DOT__coupler_to_memory_controller_port_named_axi4__DOT__tl2axi4__DOT__queue_arw_deq_io_deq_bits_wen) ? ((IData)(vlTOPp->TestHarness__DOT__simdram__DOT_____05Faw_ready_reg) & (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_mbus__DOT__coupler_to_memory_controller_port_named_axi4__DOT__axi4yank__DOT___GEN_79)) : ((IData)(vlTOPp->TestHarness__DOT__simdram__DOT_____05Far_ready_reg) & (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_mbus__DOT__coupler_to_memory_controller_port_named_axi4__DOT__axi4yank__DOT___GEN_15))); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_mbus__DOT__subsystem_mbus_xbar__DOT__monitor__DOT___a_first_T = ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_mbus__DOT__subsystem_mbus_xbar__DOT__monitor_io_in_a_ready) & (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__cork_auto_out_a_valid)); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__cork__DOT__latch = ((0U == (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__cork__DOT__beatsLeft)) & (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_mbus__DOT__subsystem_mbus_xbar_auto_in_a_ready)); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__cork__DOT___beatsLeft_T_4 = (7U & ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__cork__DOT__beatsLeft) - ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_mbus__DOT__subsystem_mbus_xbar_auto_in_a_ready) & ((0U == (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__cork__DOT__beatsLeft)) ? (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__cork__DOT___T_35) : (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__cork__DOT___sink_ACancel_earlyValid_T_3))))); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_mbus__DOT__fixer__DOT__monitor__DOT___a_first_T = ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_mbus__DOT__subsystem_mbus_xbar_auto_in_a_ready) & (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__cork_auto_out_a_valid)); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__binder__DOT__monitor__DOT___a_first_T = ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_mbus__DOT__subsystem_mbus_xbar_auto_in_a_ready) & (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__cork_auto_out_a_valid)); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__cork__DOT__out_ready = ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_mbus__DOT__subsystem_mbus_xbar_auto_in_a_ready) & ((0U == (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__cork__DOT__beatsLeft)) | (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__cork__DOT__state___05F0))); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__cork__DOT__out_1_ready = ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_mbus__DOT__subsystem_mbus_xbar_auto_in_a_ready) & ((0U == (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__cork__DOT__beatsLeft)) ? (~ (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__cork__DOT___readys_T_3)) : (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__cork__DOT__state___05F1))); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_mbus__DOT__coupler_to_memory_controller_port_named_axi4__DOT__tl2axi4__DOT__deq__DOT___GEN_9 = ((~ (IData)(vlTOPp->TestHarness__DOT__simdram__DOT_____05Fw_ready_reg)) & (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_mbus__DOT__coupler_to_memory_controller_port_named_axi4__DOT__tl2axi4__DOT__deq__DOT___do_enq_T)); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_mbus__DOT__coupler_to_memory_controller_port_named_axi4__DOT__tl2axi4_auto_out_aw_valid = ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_mbus__DOT__coupler_to_memory_controller_port_named_axi4__DOT__tl2axi4__DOT__queue_arw_deq_io_deq_valid) & (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_mbus__DOT__coupler_to_memory_controller_port_named_axi4__DOT__tl2axi4__DOT__queue_arw_deq_io_deq_bits_wen)); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_mbus__DOT__coupler_to_memory_controller_port_named_axi4__DOT__tl2axi4_auto_out_ar_valid = ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_mbus__DOT__coupler_to_memory_controller_port_named_axi4__DOT__tl2axi4__DOT__queue_arw_deq_io_deq_valid) & (~ (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_mbus__DOT__coupler_to_memory_controller_port_named_axi4__DOT__tl2axi4__DOT__queue_arw_deq_io_deq_bits_wen))); } void VTestHarness::_settle__TOP__1015(VTestHarness__Syms* __restrict vlSymsp) { VL_DEBUG_IF(VL_DBG_MSGF("+ VTestHarness::_settle__TOP__1015\n"); ); VTestHarness* __restrict vlTOPp VL_ATTR_UNUSED = vlSymsp->TOPp; // Body vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__core__DOT__alu__DOT__shin = ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__core__DOT__alu__DOT___shin_T_2) ? vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__core__DOT__alu__DOT__shin_r : ((VL_ULL(0x5555555555555555) & (vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__core__DOT__alu__DOT___shin_T_51 >> 1U)) | (VL_ULL(0xaaaaaaaaaaaaaaaa) & (vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__core__DOT__alu__DOT___shin_T_51 << 1U)))); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__l2__DOT__mods_0__DOT__mshr_selectOH = (0x7fU & (((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__l2__DOT__mods_0__DOT__mshr_selectOH2) >> 7U) | (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__l2__DOT__mods_0__DOT__mshr_selectOH2))); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__core__DOT__csr__DOT___io_decode_0_read_illegal_T_282 = ((((((((((((((((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__core__DOT__csr__DOT___io_decode_0_read_illegal_T_267) | (0x141U == (0xfffU & (vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__core__DOT__ibuf_io_inst_0_bits_raw >> 0x14U)))) | (0x105U == (0xfffU & (vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__core__DOT__ibuf_io_inst_0_bits_raw >> 0x14U)))) | (0x106U == (0xfffU & (vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__core__DOT__ibuf_io_inst_0_bits_raw >> 0x14U)))) | (0x303U == (0xfffU & (vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__core__DOT__ibuf_io_inst_0_bits_raw >> 0x14U)))) | (0x302U == (0xfffU & (vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__core__DOT__ibuf_io_inst_0_bits_raw >> 0x14U)))) | (0x3a0U == (0xfffU & (vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__core__DOT__ibuf_io_inst_0_bits_raw >> 0x14U)))) | (0x3a2U == (0xfffU & (vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__core__DOT__ibuf_io_inst_0_bits_raw >> 0x14U)))) | (0x3b0U == (0xfffU & (vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__core__DOT__ibuf_io_inst_0_bits_raw >> 0x14U)))) | (0x3b1U == (0xfffU & (vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__core__DOT__ibuf_io_inst_0_bits_raw >> 0x14U)))) | (0x3b2U == (0xfffU & (vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__core__DOT__ibuf_io_inst_0_bits_raw >> 0x14U)))) | (0x3b3U == (0xfffU & (vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__core__DOT__ibuf_io_inst_0_bits_raw >> 0x14U)))) | (0x3b4U == (0xfffU & (vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__core__DOT__ibuf_io_inst_0_bits_raw >> 0x14U)))) | (0x3b5U == (0xfffU & (vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__core__DOT__ibuf_io_inst_0_bits_raw >> 0x14U)))) | (0x3b6U == (0xfffU & (vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__core__DOT__ibuf_io_inst_0_bits_raw >> 0x14U)))) | (0x3b7U == (0xfffU & (vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__core__DOT__ibuf_io_inst_0_bits_raw >> 0x14U)))); } void VTestHarness::_settle__TOP__1016(VTestHarness__Syms* __restrict vlSymsp) { VL_DEBUG_IF(VL_DBG_MSGF("+ VTestHarness::_settle__TOP__1016\n"); ); VTestHarness* __restrict vlTOPp VL_ATTR_UNUSED = vlSymsp->TOPp; // Body vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__core__DOT__ibuf__DOT__exp_io_out_bits = ((0x1fU == (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__core__DOT__ibuf__DOT__exp__DOT___io_out_T)) ? vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__core__DOT__ibuf__DOT__exp_io_in : ((0x1eU == (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__core__DOT__ibuf__DOT__exp__DOT___io_out_T)) ? vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__core__DOT__ibuf__DOT__exp_io_in : vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__core__DOT__ibuf__DOT__exp__DOT___io_out_T_58_bits)); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__debug_1__DOT__dmOuter__DOT__dmiXbar__DOT___readys_readys_T_2 = (3U & (((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__debug_1__DOT__dmOuter__DOT__dmiXbar__DOT__readys_unready) >> 2U) & (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__debug_1__DOT__dmOuter__DOT__dmiXbar__DOT__readys_unready))); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__dtm__DOT___GEN_4 = ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__dtm__DOT__dmiAccessChain_io_chainIn_capture) ? (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__dtm__DOT__busy) : (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__dtm__DOT__stickyBusyReg)); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__dtm_io_dmi_resp_ready = ((2U == (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__dtm__DOT__dmiReqReg_op)) ? (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__debug_1__DOT__dmOuter__DOT__dmiXbar_auto_in_d_valid) : ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__dtm__DOT__dmiAccessChain_io_chainIn_capture) & (~ (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__dtm__DOT__busy)))); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__core__DOT__csr__DOT___GEN_182 = ((1U & (((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__fpuOpt__DOT__wb_toint_valid) | (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__fpuOpt__DOT__divSqrt_wen)) | (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__fpuOpt__DOT__wen))) ? ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__core__DOT__csr__DOT__reg_fflags) | ((((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__fpuOpt__DOT__wb_toint_valid) ? (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__fpuOpt__DOT__wb_toint_exc) : 0U) | ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__fpuOpt__DOT__divSqrt_wen) ? ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__fpuOpt__DOT__divSqrt_typeTag) ? (((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__fpuOpt__DOT__divSqrt_1__DOT__divSqrtRecFNToRaw__DOT__divSqrtRawFN___05Fio_invalidExc) << 4U) | (((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__fpuOpt__DOT__divSqrt_1__DOT__divSqrtRecFNToRaw__DOT__divSqrtRawFN___05Fio_infiniteExc) << 3U) | (((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__fpuOpt__DOT__divSqrt_1__DOT__roundRawFNToRecFN__DOT__roundAnyRawFNToRecFN__DOT__overflow) << 2U) | (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__fpuOpt__DOT__divSqrt_1__DOT__roundRawFNToRecFN__DOT__roundAnyRawFNToRecFN__DOT__io_exceptionFlags_lo)))) : (((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__fpuOpt__DOT__divSqrt__DOT__divSqrtRecFNToRaw__DOT__divSqrtRawFN___05Fio_invalidExc) << 4U) | (((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__fpuOpt__DOT__divSqrt__DOT__divSqrtRecFNToRaw__DOT__divSqrtRawFN___05Fio_infiniteExc) << 3U) | (((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__fpuOpt__DOT__divSqrt__DOT__roundRawFNToRecFN__DOT__roundAnyRawFNToRecFN__DOT__overflow) << 2U) | (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__fpuOpt__DOT__divSqrt__DOT__roundRawFNToRecFN__DOT__roundAnyRawFNToRecFN__DOT__io_exceptionFlags_lo))))) : 0U)) | ((1U & (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__fpuOpt__DOT__wen)) ? ((3U == (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__fpuOpt__DOT__wbInfo_0_pipeid)) ? (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__fpuOpt__DOT__dfma__DOT__io_out_b_exc) : ((2U == (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__fpuOpt__DOT__wbInfo_0_pipeid)) ? (((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__fpuOpt__DOT__sfma__DOT__fma__DOT__roundRawFNToRecFN_io_invalidExc_b) << 4U) | (((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__fpuOpt__DOT__sfma__DOT__fma__DOT__roundRawFNToRecFN__DOT__roundAnyRawFNToRecFN__DOT__overflow) << 2U) | (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__fpuOpt__DOT__sfma__DOT__fma__DOT__roundRawFNToRecFN__DOT__roundAnyRawFNToRecFN__DOT__io_exceptionFlags_lo))) : ((1U == (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__fpuOpt__DOT__wbInfo_0_pipeid)) ? (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__fpuOpt__DOT__ifpu__DOT__io_out_b_exc) : (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__fpuOpt__DOT__fpmu__DOT__io_out_b_exc)))) : 0U))) : (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__core__DOT__csr__DOT__reg_fflags)); } void VTestHarness::_settle__TOP__1017(VTestHarness__Syms* __restrict vlSymsp) { VL_DEBUG_IF(VL_DBG_MSGF("+ VTestHarness::_settle__TOP__1017\n"); ); VTestHarness* __restrict vlTOPp VL_ATTR_UNUSED = vlSymsp->TOPp; // Variables // Begin mtask footprint all: WData/*95:0*/ __Vtemp1906[3]; // Body __Vtemp1906[0U] = (IData)((((QData)((IData)((0xfffU & (((((((((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__fpuOpt__DOT__divSqrt_1__DOT__roundRawFNToRecFN__DOT__roundAnyRawFNToRecFN__DOT__sRoundedExp) & (~ (((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__fpuOpt__DOT__divSqrt_1__DOT__divSqrtRecFNToRaw__DOT__divSqrtRawFN___DOT__isZero_Z) | VL_GTS_III(1,14,14, 0x3ceU, (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__fpuOpt__DOT__divSqrt_1__DOT__roundRawFNToRecFN__DOT__roundAnyRawFNToRecFN__DOT__sRoundedExp))) ? 0xe00U : 0U))) & (~ ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__fpuOpt__DOT__divSqrt_1__DOT__roundRawFNToRecFN__DOT__roundAnyRawFNToRecFN__DOT__pegMinNonzeroMagOut) ? 0xc31U : 0U))) & (~ ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__fpuOpt__DOT__divSqrt_1__DOT__roundRawFNToRecFN__DOT__roundAnyRawFNToRecFN__DOT__pegMaxFiniteMagOut) ? 0x400U : 0U))) & (~ ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__fpuOpt__DOT__divSqrt_1__DOT__roundRawFNToRecFN__DOT__roundAnyRawFNToRecFN__DOT__notNaN_isInfOut) ? 0x200U : 0U))) | ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__fpuOpt__DOT__divSqrt_1__DOT__roundRawFNToRecFN__DOT__roundAnyRawFNToRecFN__DOT__pegMinNonzeroMagOut) ? 0x3ceU : 0U)) | ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__fpuOpt__DOT__divSqrt_1__DOT__roundRawFNToRecFN__DOT__roundAnyRawFNToRecFN__DOT__pegMaxFiniteMagOut) ? 0xbffU : 0U)) | ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__fpuOpt__DOT__divSqrt_1__DOT__roundRawFNToRecFN__DOT__roundAnyRawFNToRecFN__DOT__notNaN_isInfOut) ? 0xc00U : 0U)) | ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__fpuOpt__DOT__divSqrt_1__DOT__roundRawFNToRecFN__DOT__roundAnyRawFNToRecFN__DOT__isNaNOut) ? 0xe00U : 0U))))) << 0x34U) | (VL_ULL(0xfffffffffffff) & (((((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__fpuOpt__DOT__divSqrt_1__DOT__roundRawFNToRecFN__DOT__roundAnyRawFNToRecFN__DOT__isNaNOut) | (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__fpuOpt__DOT__divSqrt_1__DOT__divSqrtRecFNToRaw__DOT__divSqrtRawFN___DOT__isZero_Z)) | VL_GTS_III(1,14,14, 0x3ceU, (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__fpuOpt__DOT__divSqrt_1__DOT__roundRawFNToRecFN__DOT__roundAnyRawFNToRecFN__DOT__sRoundedExp))) ? ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__fpuOpt__DOT__divSqrt_1__DOT__roundRawFNToRecFN__DOT__roundAnyRawFNToRecFN__DOT__isNaNOut) ? VL_ULL(0x8000000000000) : VL_ULL(0)) : ((1U & (IData)( (vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__fpuOpt__DOT__divSqrt_1__DOT__divSqrtRecFNToRaw__DOT__divSqrtRawFN___05Fio_rawOut_sig >> 0x37U))) ? (vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__fpuOpt__DOT__divSqrt_1__DOT__roundRawFNToRecFN__DOT__roundAnyRawFNToRecFN__DOT__roundedSig >> 1U) : vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__fpuOpt__DOT__divSqrt_1__DOT__roundRawFNToRecFN__DOT__roundAnyRawFNToRecFN__DOT__roundedSig)) | ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__fpuOpt__DOT__divSqrt_1__DOT__roundRawFNToRecFN__DOT__roundAnyRawFNToRecFN__DOT__pegMaxFiniteMagOut) ? VL_ULL(0xfffffffffffff) : VL_ULL(0)))))); __Vtemp1906[1U] = (IData)(((((QData)((IData)((0xfffU & (((((((((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__fpuOpt__DOT__divSqrt_1__DOT__roundRawFNToRecFN__DOT__roundAnyRawFNToRecFN__DOT__sRoundedExp) & (~ (((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__fpuOpt__DOT__divSqrt_1__DOT__divSqrtRecFNToRaw__DOT__divSqrtRawFN___DOT__isZero_Z) | VL_GTS_III(1,14,14, 0x3ceU, (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__fpuOpt__DOT__divSqrt_1__DOT__roundRawFNToRecFN__DOT__roundAnyRawFNToRecFN__DOT__sRoundedExp))) ? 0xe00U : 0U))) & (~ ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__fpuOpt__DOT__divSqrt_1__DOT__roundRawFNToRecFN__DOT__roundAnyRawFNToRecFN__DOT__pegMinNonzeroMagOut) ? 0xc31U : 0U))) & (~ ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__fpuOpt__DOT__divSqrt_1__DOT__roundRawFNToRecFN__DOT__roundAnyRawFNToRecFN__DOT__pegMaxFiniteMagOut) ? 0x400U : 0U))) & (~ ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__fpuOpt__DOT__divSqrt_1__DOT__roundRawFNToRecFN__DOT__roundAnyRawFNToRecFN__DOT__notNaN_isInfOut) ? 0x200U : 0U))) | ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__fpuOpt__DOT__divSqrt_1__DOT__roundRawFNToRecFN__DOT__roundAnyRawFNToRecFN__DOT__pegMinNonzeroMagOut) ? 0x3ceU : 0U)) | ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__fpuOpt__DOT__divSqrt_1__DOT__roundRawFNToRecFN__DOT__roundAnyRawFNToRecFN__DOT__pegMaxFiniteMagOut) ? 0xbffU : 0U)) | ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__fpuOpt__DOT__divSqrt_1__DOT__roundRawFNToRecFN__DOT__roundAnyRawFNToRecFN__DOT__notNaN_isInfOut) ? 0xc00U : 0U)) | ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__fpuOpt__DOT__divSqrt_1__DOT__roundRawFNToRecFN__DOT__roundAnyRawFNToRecFN__DOT__isNaNOut) ? 0xe00U : 0U))))) << 0x34U) | (VL_ULL(0xfffffffffffff) & (((((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__fpuOpt__DOT__divSqrt_1__DOT__roundRawFNToRecFN__DOT__roundAnyRawFNToRecFN__DOT__isNaNOut) | (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__fpuOpt__DOT__divSqrt_1__DOT__divSqrtRecFNToRaw__DOT__divSqrtRawFN___DOT__isZero_Z)) | VL_GTS_III(1,14,14, 0x3ceU, (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__fpuOpt__DOT__divSqrt_1__DOT__roundRawFNToRecFN__DOT__roundAnyRawFNToRecFN__DOT__sRoundedExp))) ? ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__fpuOpt__DOT__divSqrt_1__DOT__roundRawFNToRecFN__DOT__roundAnyRawFNToRecFN__DOT__isNaNOut) ? VL_ULL(0x8000000000000) : VL_ULL(0)) : ((1U & (IData)( (vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__fpuOpt__DOT__divSqrt_1__DOT__divSqrtRecFNToRaw__DOT__divSqrtRawFN___05Fio_rawOut_sig >> 0x37U))) ? (vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__fpuOpt__DOT__divSqrt_1__DOT__roundRawFNToRecFN__DOT__roundAnyRawFNToRecFN__DOT__roundedSig >> 1U) : vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__fpuOpt__DOT__divSqrt_1__DOT__roundRawFNToRecFN__DOT__roundAnyRawFNToRecFN__DOT__roundedSig)) | ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__fpuOpt__DOT__divSqrt_1__DOT__roundRawFNToRecFN__DOT__roundAnyRawFNToRecFN__DOT__pegMaxFiniteMagOut) ? VL_ULL(0xfffffffffffff) : VL_ULL(0))))) >> 0x20U)); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__fpuOpt__DOT__divSqrt_1__DOT__roundRawFNToRecFN__DOT__roundAnyRawFNToRecFN_io_out[0U] = __Vtemp1906[0U]; vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__fpuOpt__DOT__divSqrt_1__DOT__roundRawFNToRecFN__DOT__roundAnyRawFNToRecFN_io_out[1U] = __Vtemp1906[1U]; vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__fpuOpt__DOT__divSqrt_1__DOT__roundRawFNToRecFN__DOT__roundAnyRawFNToRecFN_io_out[2U] = ((~ (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__fpuOpt__DOT__divSqrt_1__DOT__roundRawFNToRecFN__DOT__roundAnyRawFNToRecFN__DOT__isNaNOut)) & (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__fpuOpt__DOT__divSqrt_1__DOT__divSqrtRecFNToRaw__DOT__divSqrtRawFN___DOT__sign_Z)); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__fixer__DOT__monitor__DOT___T_1066 = (((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__system_bus_xbar_auto_in_0_d_bits_sink) == (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__fixer__DOT__monitor__DOT__sink)) | (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__dividerOnlyClockGenerator_3__DOT__bundleOut_0_member_allClocks_subsystem_sbus_0_reset_catcher_io_sync_reset)); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__system_bus_xbar__DOT__monitor__DOT___T_1066 = (((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__system_bus_xbar__DOT__monitor_io_in_d_bits_sink) == (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__system_bus_xbar__DOT__monitor__DOT__sink)) | (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__dividerOnlyClockGenerator_3__DOT__bundleOut_0_member_allClocks_subsystem_sbus_0_reset_catcher_io_sync_reset)); } void VTestHarness::_settle__TOP__1018(VTestHarness__Syms* __restrict vlSymsp) { VL_DEBUG_IF(VL_DBG_MSGF("+ VTestHarness::_settle__TOP__1018\n"); ); VTestHarness* __restrict vlTOPp VL_ATTR_UNUSED = vlSymsp->TOPp; // Body vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__fixer__DOT__monitor__DOT___T_1054 = (((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__system_bus_xbar_auto_in_0_d_bits_param) == (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__fixer__DOT__monitor__DOT__param_1)) | (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__dividerOnlyClockGenerator_3__DOT__bundleOut_0_member_allClocks_subsystem_sbus_0_reset_catcher_io_sync_reset)); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__system_bus_xbar__DOT__monitor__DOT___T_1054 = (((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__system_bus_xbar__DOT__monitor_io_in_d_bits_param) == (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__system_bus_xbar__DOT__monitor__DOT__param_1)) | (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__dividerOnlyClockGenerator_3__DOT__bundleOut_0_member_allClocks_subsystem_sbus_0_reset_catcher_io_sync_reset)); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__fixer__DOT__monitor__DOT___T_951 = (1U & (((~ (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__system_bus_xbar_auto_in_0_d_bits_denied)) | (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__system_bus_xbar_auto_in_0_d_bits_corrupt)) | (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__dividerOnlyClockGenerator_3__DOT__bundleOut_0_member_allClocks_subsystem_sbus_0_reset_catcher_io_sync_reset))); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__fixer__DOT__monitor__DOT___T_1070 = (((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__system_bus_xbar_auto_in_0_d_bits_denied) == (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__fixer__DOT__monitor__DOT__denied)) | (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__dividerOnlyClockGenerator_3__DOT__bundleOut_0_member_allClocks_subsystem_sbus_0_reset_catcher_io_sync_reset)); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__system_bus_xbar__DOT__monitor__DOT___T_951 = (1U & (((~ (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__system_bus_xbar__DOT__monitor_io_in_d_bits_denied)) | (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__system_bus_xbar__DOT__monitor_io_in_d_bits_corrupt)) | (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__dividerOnlyClockGenerator_3__DOT__bundleOut_0_member_allClocks_subsystem_sbus_0_reset_catcher_io_sync_reset))); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__system_bus_xbar__DOT__monitor__DOT___T_1070 = (((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__system_bus_xbar__DOT__monitor_io_in_d_bits_denied) == (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__system_bus_xbar__DOT__monitor__DOT__denied)) | (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__dividerOnlyClockGenerator_3__DOT__bundleOut_0_member_allClocks_subsystem_sbus_0_reset_catcher_io_sync_reset)); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__fixer__DOT__monitor__DOT___T_1058 = (((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__system_bus_xbar_auto_in_0_d_bits_size) == (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__fixer__DOT__monitor__DOT__size_1)) | (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__dividerOnlyClockGenerator_3__DOT__bundleOut_0_member_allClocks_subsystem_sbus_0_reset_catcher_io_sync_reset)); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__fixer__DOT__monitor__DOT___T_1112 = (((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_fbus__DOT__buffer__DOT__bundleOut_0_a_q__DOT__ram_size_io_deq_bits_MPORT_data) == (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__system_bus_xbar_auto_in_0_d_bits_size)) | (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__dividerOnlyClockGenerator_3__DOT__bundleOut_0_member_allClocks_subsystem_sbus_0_reset_catcher_io_sync_reset)); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__fixer__DOT__monitor__DOT___T_1124 = (((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__system_bus_xbar_auto_in_0_d_bits_size) == (0x7fU & ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__fixer__DOT__monitor__DOT__inflight_sizes) >> 1U))) | (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__dividerOnlyClockGenerator_3__DOT__bundleOut_0_member_allClocks_subsystem_sbus_0_reset_catcher_io_sync_reset)); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__fixer__DOT__monitor__DOT___T_1196 = (((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__system_bus_xbar_auto_in_0_d_bits_size) == (0x7fU & ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__fixer__DOT__monitor__DOT__inflight_sizes_1) >> 1U))) | (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__dividerOnlyClockGenerator_3__DOT__bundleOut_0_member_allClocks_subsystem_sbus_0_reset_catcher_io_sync_reset)); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__system_bus_xbar__DOT__monitor__DOT___T_1058 = (((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__system_bus_xbar__DOT__monitor_io_in_d_bits_size) == (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__system_bus_xbar__DOT__monitor__DOT__size_1)) | (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__dividerOnlyClockGenerator_3__DOT__bundleOut_0_member_allClocks_subsystem_sbus_0_reset_catcher_io_sync_reset)); } void VTestHarness::_settle__TOP__1019(VTestHarness__Syms* __restrict vlSymsp) { VL_DEBUG_IF(VL_DBG_MSGF("+ VTestHarness::_settle__TOP__1019\n"); ); VTestHarness* __restrict vlTOPp VL_ATTR_UNUSED = vlSymsp->TOPp; // Body vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__system_bus_xbar__DOT__monitor__DOT___T_1112 = (((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_fbus__DOT__buffer__DOT__bundleOut_0_a_q__DOT__ram_size_io_deq_bits_MPORT_data) == (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__system_bus_xbar__DOT__monitor_io_in_d_bits_size)) | (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__dividerOnlyClockGenerator_3__DOT__bundleOut_0_member_allClocks_subsystem_sbus_0_reset_catcher_io_sync_reset)); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__system_bus_xbar__DOT__monitor__DOT___T_1124 = (((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__system_bus_xbar__DOT__monitor_io_in_d_bits_size) == (0x7fU & ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__system_bus_xbar__DOT__monitor__DOT__inflight_sizes) >> 1U))) | (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__dividerOnlyClockGenerator_3__DOT__bundleOut_0_member_allClocks_subsystem_sbus_0_reset_catcher_io_sync_reset)); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__system_bus_xbar__DOT__monitor__DOT___T_1196 = (((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__system_bus_xbar__DOT__monitor_io_in_d_bits_size) == (0x7fU & ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__system_bus_xbar__DOT__monitor__DOT__inflight_sizes_1) >> 1U))) | (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__dividerOnlyClockGenerator_3__DOT__bundleOut_0_member_allClocks_subsystem_sbus_0_reset_catcher_io_sync_reset)); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__fixer__DOT__monitor__DOT___inflight_sizes_T_5 = ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__fixer__DOT__monitor__DOT__inflight_sizes_1) & (~ ((((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__fixer__DOT__monitor__DOT___d_first_T) & (0U == (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__fixer__DOT__monitor__DOT__d_first_counter_2))) & (6U == (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__system_bus_xbar_auto_in_0_d_bits_opcode))) ? 0xffU : 0U))); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__fixer__DOT__monitor__DOT___T_1088 = ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__fixer__DOT__monitor__DOT___T_1085) & (6U != (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__system_bus_xbar_auto_in_0_d_bits_opcode))); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__fixer__DOT__monitor__DOT___T_1093 = (((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__fixer__DOT__monitor__DOT___d_first_T) & (0U == (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__fixer__DOT__monitor__DOT__d_first_counter_1))) & (6U != (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__system_bus_xbar_auto_in_0_d_bits_opcode))); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__fixer__DOT__monitor__DOT___T_1050 = (((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__system_bus_xbar_auto_in_0_d_bits_opcode) == (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__fixer__DOT__monitor__DOT__opcode_1)) | (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__dividerOnlyClockGenerator_3__DOT__bundleOut_0_member_allClocks_subsystem_sbus_0_reset_catcher_io_sync_reset)); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__fixer__DOT__monitor__DOT___T_1108 = ((((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__system_bus_xbar_auto_in_0_d_bits_opcode) == ((7U == (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_fbus__DOT__buffer__DOT__bundleOut_0_a_q__DOT__ram_opcode_io_deq_bits_MPORT_data)) ? 4U : ((6U == (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_fbus__DOT__buffer__DOT__bundleOut_0_a_q__DOT__ram_opcode_io_deq_bits_MPORT_data)) ? 4U : (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__fixer__DOT__monitor__DOT___GEN_30)))) | ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__system_bus_xbar_auto_in_0_d_bits_opcode) == ((7U == (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_fbus__DOT__buffer__DOT__bundleOut_0_a_q__DOT__ram_opcode_io_deq_bits_MPORT_data)) ? 4U : ((6U == (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_fbus__DOT__buffer__DOT__bundleOut_0_a_q__DOT__ram_opcode_io_deq_bits_MPORT_data)) ? 5U : (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__fixer__DOT__monitor__DOT___GEN_30))))) | (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__dividerOnlyClockGenerator_3__DOT__bundleOut_0_member_allClocks_subsystem_sbus_0_reset_catcher_io_sync_reset)); } void VTestHarness::_settle__TOP__1020(VTestHarness__Syms* __restrict vlSymsp) { VL_DEBUG_IF(VL_DBG_MSGF("+ VTestHarness::_settle__TOP__1020\n"); ); VTestHarness* __restrict vlTOPp VL_ATTR_UNUSED = vlSymsp->TOPp; // Body vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__fixer__DOT__monitor__DOT___T_1120 = ((((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__system_bus_xbar_auto_in_0_d_bits_opcode) == ((7U == (7U & ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__fixer__DOT__monitor__DOT__inflight_opcodes) >> 1U))) ? 4U : ((6U == (7U & ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__fixer__DOT__monitor__DOT__inflight_opcodes) >> 1U))) ? 4U : (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__fixer__DOT__monitor__DOT___GEN_46)))) | ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__system_bus_xbar_auto_in_0_d_bits_opcode) == ((7U == (7U & ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__fixer__DOT__monitor__DOT__inflight_opcodes) >> 1U))) ? 4U : ((6U == (7U & ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__fixer__DOT__monitor__DOT__inflight_opcodes) >> 1U))) ? 5U : (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__fixer__DOT__monitor__DOT___GEN_46))))) | (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__dividerOnlyClockGenerator_3__DOT__bundleOut_0_member_allClocks_subsystem_sbus_0_reset_catcher_io_sync_reset)); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__system_bus_xbar__DOT__monitor__DOT___inflight_sizes_T_5 = ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__system_bus_xbar__DOT__monitor__DOT__inflight_sizes_1) & (~ ((((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__system_bus_xbar__DOT__monitor__DOT___d_first_T) & (0U == (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__system_bus_xbar__DOT__monitor__DOT__d_first_counter_2))) & (6U == (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__system_bus_xbar__DOT__monitor_io_in_d_bits_opcode))) ? 0xffU : 0U))); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__system_bus_xbar__DOT__monitor__DOT___T_1088 = ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__system_bus_xbar__DOT__monitor__DOT___T_1085) & (6U != (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__system_bus_xbar__DOT__monitor_io_in_d_bits_opcode))); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__system_bus_xbar__DOT__monitor__DOT___T_1093 = (((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__system_bus_xbar__DOT__monitor__DOT___d_first_T) & (0U == (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__system_bus_xbar__DOT__monitor__DOT__d_first_counter_1))) & (6U != (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__system_bus_xbar__DOT__monitor_io_in_d_bits_opcode))); } void VTestHarness::_settle__TOP__1021(VTestHarness__Syms* __restrict vlSymsp) { VL_DEBUG_IF(VL_DBG_MSGF("+ VTestHarness::_settle__TOP__1021\n"); ); VTestHarness* __restrict vlTOPp VL_ATTR_UNUSED = vlSymsp->TOPp; // Body vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__system_bus_xbar__DOT__monitor__DOT___T_1050 = (((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__system_bus_xbar__DOT__monitor_io_in_d_bits_opcode) == (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__system_bus_xbar__DOT__monitor__DOT__opcode_1)) | (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__dividerOnlyClockGenerator_3__DOT__bundleOut_0_member_allClocks_subsystem_sbus_0_reset_catcher_io_sync_reset)); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__system_bus_xbar__DOT__monitor__DOT___T_1108 = ((((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__system_bus_xbar__DOT__monitor_io_in_d_bits_opcode) == ((7U == (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_fbus__DOT__buffer__DOT__bundleOut_0_a_q__DOT__ram_opcode_io_deq_bits_MPORT_data)) ? 4U : ((6U == (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_fbus__DOT__buffer__DOT__bundleOut_0_a_q__DOT__ram_opcode_io_deq_bits_MPORT_data)) ? 4U : (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__system_bus_xbar__DOT__monitor__DOT___GEN_30)))) | ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__system_bus_xbar__DOT__monitor_io_in_d_bits_opcode) == ((7U == (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_fbus__DOT__buffer__DOT__bundleOut_0_a_q__DOT__ram_opcode_io_deq_bits_MPORT_data)) ? 4U : ((6U == (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_fbus__DOT__buffer__DOT__bundleOut_0_a_q__DOT__ram_opcode_io_deq_bits_MPORT_data)) ? 5U : (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__system_bus_xbar__DOT__monitor__DOT___GEN_30))))) | (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__dividerOnlyClockGenerator_3__DOT__bundleOut_0_member_allClocks_subsystem_sbus_0_reset_catcher_io_sync_reset)); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__system_bus_xbar__DOT__monitor__DOT___T_1120 = ((((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__system_bus_xbar__DOT__monitor_io_in_d_bits_opcode) == ((7U == (7U & ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__system_bus_xbar__DOT__monitor__DOT__inflight_opcodes) >> 1U))) ? 4U : ((6U == (7U & ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__system_bus_xbar__DOT__monitor__DOT__inflight_opcodes) >> 1U))) ? 4U : (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__system_bus_xbar__DOT__monitor__DOT___GEN_46)))) | ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__system_bus_xbar__DOT__monitor_io_in_d_bits_opcode) == ((7U == (7U & ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__system_bus_xbar__DOT__monitor__DOT__inflight_opcodes) >> 1U))) ? 4U : ((6U == (7U & ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__system_bus_xbar__DOT__monitor__DOT__inflight_opcodes) >> 1U))) ? 5U : (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__system_bus_xbar__DOT__monitor__DOT___GEN_46))))) | (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__dividerOnlyClockGenerator_3__DOT__bundleOut_0_member_allClocks_subsystem_sbus_0_reset_catcher_io_sync_reset)); } void VTestHarness::_settle__TOP__1022(VTestHarness__Syms* __restrict vlSymsp) { VL_DEBUG_IF(VL_DBG_MSGF("+ VTestHarness::_settle__TOP__1022\n"); ); VTestHarness* __restrict vlTOPp VL_ATTR_UNUSED = vlSymsp->TOPp; // Variables // Begin mtask footprint all: WData/*95:0*/ __Vtemp1908[3]; WData/*95:0*/ __Vtemp1909[3]; WData/*95:0*/ __Vtemp1914[3]; WData/*95:0*/ __Vtemp1915[3]; WData/*95:0*/ __Vtemp1920[3]; WData/*95:0*/ __Vtemp1921[3]; // Body VL_EXTEND_WI(67,4, __Vtemp1908, ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__InclusiveCache_inner_TLBuffer__DOT__monitor__DOT___T_1330) ? (1U | ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__system_bus_xbar_auto_out_1_a_bits_opcode) << 1U)) : 0U)); VL_SHIFTL_WWI(67,67,6, __Vtemp1909, __Vtemp1908, ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__system_bus_xbar_auto_out_1_a_bits_source) << 2U)); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__InclusiveCache_inner_TLBuffer__DOT__monitor__DOT___inflight_opcodes_T_2 = (0xfffffU & ((vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__InclusiveCache_inner_TLBuffer__DOT__monitor__DOT__inflight_opcodes | ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__InclusiveCache_inner_TLBuffer__DOT__monitor__DOT___T_1330) ? __Vtemp1909[0U] : 0U)) & (~ vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__InclusiveCache_inner_TLBuffer__DOT__monitor__DOT___GEN_35[0U]))); VL_EXTEND_WI(67,4, __Vtemp1914, ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__InclusiveCache_inner_TLBuffer__DOT__monitor__DOT___T_1330) ? (1U | (0xeU & ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__system_bus_xbar__DOT__out_2_1_a_bits_size) << 1U))) : 0U)); VL_SHIFTL_WWI(67,67,6, __Vtemp1915, __Vtemp1914, ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__system_bus_xbar_auto_out_1_a_bits_source) << 2U)); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__InclusiveCache_inner_TLBuffer__DOT__monitor__DOT___inflight_sizes_T_2 = (0xfffffU & ((vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__InclusiveCache_inner_TLBuffer__DOT__monitor__DOT__inflight_sizes | ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__InclusiveCache_inner_TLBuffer__DOT__monitor__DOT___T_1330) ? __Vtemp1915[0U] : 0U)) & (~ vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__InclusiveCache_inner_TLBuffer__DOT__monitor__DOT___GEN_35[0U]))); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_cbus__DOT__buffer__DOT__monitor__DOT___inflight_T_5 = ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_cbus__DOT__buffer__DOT__monitor__DOT__inflight_1) & (~ ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_cbus__DOT__buffer__DOT__monitor__DOT___T_1160) ? (0xffU & ((IData)(1U) << (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_cbus__DOT__buffer__DOT__bundleIn_0_d_q__DOT__ram_source_io_deq_bits_MPORT_data))) : 0U))); __Vtemp1920[0U] = 0xffU; __Vtemp1920[1U] = 0U; __Vtemp1920[2U] = 0U; VL_SHIFTL_WWI(79,79,6, __Vtemp1921, __Vtemp1920, ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_cbus__DOT__buffer__DOT__bundleIn_0_d_q__DOT__ram_source_io_deq_bits_MPORT_data) << 3U)); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_cbus__DOT__buffer__DOT__monitor__DOT___inflight_sizes_T_5 = (vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_cbus__DOT__buffer__DOT__monitor__DOT__inflight_sizes_1 & (~ (((QData)((IData)(((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_cbus__DOT__buffer__DOT__monitor__DOT___T_1160) ? __Vtemp1921[1U] : 0U))) << 0x20U) | (QData)((IData)(((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_cbus__DOT__buffer__DOT__monitor__DOT___T_1160) ? __Vtemp1921[0U] : 0U)))))); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__fixer__DOT__monitor_1__DOT___T_2179 = (((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__system_bus_xbar_auto_in_1_d_bits_param) == (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__fixer__DOT__monitor_1__DOT__param_1)) | (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__dividerOnlyClockGenerator_3__DOT__bundleOut_0_member_allClocks_subsystem_sbus_0_reset_catcher_io_sync_reset)); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__system_bus_xbar__DOT__monitor_1__DOT___T_2179 = (((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__system_bus_xbar__DOT__monitor_1_io_in_d_bits_param) == (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__system_bus_xbar__DOT__monitor_1__DOT__param_1)) | (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__dividerOnlyClockGenerator_3__DOT__bundleOut_0_member_allClocks_subsystem_sbus_0_reset_catcher_io_sync_reset)); } void VTestHarness::_settle__TOP__1023(VTestHarness__Syms* __restrict vlSymsp) { VL_DEBUG_IF(VL_DBG_MSGF("+ VTestHarness::_settle__TOP__1023\n"); ); VTestHarness* __restrict vlTOPp VL_ATTR_UNUSED = vlSymsp->TOPp; // Body vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__fixer__DOT__monitor_1__DOT___T_1019 = (1U & (((~ (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__system_bus_xbar_auto_in_1_d_bits_denied)) | (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__system_bus_xbar_auto_in_1_d_bits_corrupt)) | (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__dividerOnlyClockGenerator_3__DOT__bundleOut_0_member_allClocks_subsystem_sbus_0_reset_catcher_io_sync_reset))); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__fixer__DOT__monitor_1__DOT___T_2195 = (((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__system_bus_xbar_auto_in_1_d_bits_denied) == (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__fixer__DOT__monitor_1__DOT__denied)) | (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__dividerOnlyClockGenerator_3__DOT__bundleOut_0_member_allClocks_subsystem_sbus_0_reset_catcher_io_sync_reset)); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__system_bus_xbar__DOT__monitor_1__DOT___T_1019 = (1U & (((~ (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__system_bus_xbar__DOT__monitor_1_io_in_d_bits_denied)) | (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__system_bus_xbar__DOT__monitor_1_io_in_d_bits_corrupt)) | (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__dividerOnlyClockGenerator_3__DOT__bundleOut_0_member_allClocks_subsystem_sbus_0_reset_catcher_io_sync_reset))); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__system_bus_xbar__DOT__monitor_1__DOT___T_2195 = (((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__system_bus_xbar__DOT__monitor_1_io_in_d_bits_denied) == (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__system_bus_xbar__DOT__monitor_1__DOT__denied)) | (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__dividerOnlyClockGenerator_3__DOT__bundleOut_0_member_allClocks_subsystem_sbus_0_reset_catcher_io_sync_reset)); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__fixer__DOT__monitor_1__DOT___T_2183 = (((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__system_bus_xbar_auto_in_1_d_bits_size) == (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__fixer__DOT__monitor_1__DOT__size_1)) | (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__dividerOnlyClockGenerator_3__DOT__bundleOut_0_member_allClocks_subsystem_sbus_0_reset_catcher_io_sync_reset)); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__fixer__DOT__monitor_1__DOT___T_2285 = (((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__buffer_1__DOT__bundleOut_0_a_q__DOT__ram_size_io_deq_bits_MPORT_data) == (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__system_bus_xbar_auto_in_1_d_bits_size)) | (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__dividerOnlyClockGenerator_3__DOT__bundleOut_0_member_allClocks_subsystem_sbus_0_reset_catcher_io_sync_reset)); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__fixer__DOT__monitor_1__DOT___T_2365 = (((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__system_bus_xbar_auto_in_1_d_bits_size) == (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__buffer_1__DOT__bundleOut_0_c_q__DOT__ram_size_io_deq_bits_MPORT_data)) | (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__dividerOnlyClockGenerator_3__DOT__bundleOut_0_member_allClocks_subsystem_sbus_0_reset_catcher_io_sync_reset)); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__fixer__DOT__monitor_1__DOT___T_2297 = (((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__system_bus_xbar_auto_in_1_d_bits_size) == (0x7fU & ((vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__fixer__DOT__monitor_1__DOT__inflight_sizes >> (0x18U & ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__system_bus_xbar__DOT__sink_ACancel_7_bits_source) << 3U))) >> 1U))) | (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__dividerOnlyClockGenerator_3__DOT__bundleOut_0_member_allClocks_subsystem_sbus_0_reset_catcher_io_sync_reset)); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__fixer__DOT__monitor_1__DOT___T_2369 = (((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__system_bus_xbar_auto_in_1_d_bits_size) == (0x7fU & ((vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__fixer__DOT__monitor_1__DOT__inflight_sizes_1 >> (0x18U & ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__system_bus_xbar__DOT__sink_ACancel_7_bits_source) << 3U))) >> 1U))) | (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__dividerOnlyClockGenerator_3__DOT__bundleOut_0_member_allClocks_subsystem_sbus_0_reset_catcher_io_sync_reset)); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__system_bus_xbar__DOT__monitor_1__DOT___T_2183 = (((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__system_bus_xbar__DOT__monitor_1_io_in_d_bits_size) == (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__system_bus_xbar__DOT__monitor_1__DOT__size_1)) | (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__dividerOnlyClockGenerator_3__DOT__bundleOut_0_member_allClocks_subsystem_sbus_0_reset_catcher_io_sync_reset)); } void VTestHarness::_settle__TOP__1024(VTestHarness__Syms* __restrict vlSymsp) { VL_DEBUG_IF(VL_DBG_MSGF("+ VTestHarness::_settle__TOP__1024\n"); ); VTestHarness* __restrict vlTOPp VL_ATTR_UNUSED = vlSymsp->TOPp; // Body vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__system_bus_xbar__DOT__monitor_1__DOT___T_2285 = (((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__buffer_1__DOT__bundleOut_0_a_q__DOT__ram_size_io_deq_bits_MPORT_data) == (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__system_bus_xbar__DOT__monitor_1_io_in_d_bits_size)) | (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__dividerOnlyClockGenerator_3__DOT__bundleOut_0_member_allClocks_subsystem_sbus_0_reset_catcher_io_sync_reset)); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__system_bus_xbar__DOT__monitor_1__DOT___T_2365 = (((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__system_bus_xbar__DOT__monitor_1_io_in_d_bits_size) == (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__buffer_1__DOT__bundleOut_0_c_q__DOT__ram_size_io_deq_bits_MPORT_data)) | (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__dividerOnlyClockGenerator_3__DOT__bundleOut_0_member_allClocks_subsystem_sbus_0_reset_catcher_io_sync_reset)); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__system_bus_xbar__DOT__monitor_1__DOT___T_2297 = (((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__system_bus_xbar__DOT__monitor_1_io_in_d_bits_size) == (0x7fU & ((vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__system_bus_xbar__DOT__monitor_1__DOT__inflight_sizes >> (0x18U & ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__system_bus_xbar__DOT__sink_ACancel_7_bits_source) << 3U))) >> 1U))) | (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__dividerOnlyClockGenerator_3__DOT__bundleOut_0_member_allClocks_subsystem_sbus_0_reset_catcher_io_sync_reset)); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__system_bus_xbar__DOT__monitor_1__DOT___T_2369 = (((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__system_bus_xbar__DOT__monitor_1_io_in_d_bits_size) == (0x7fU & ((vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__system_bus_xbar__DOT__monitor_1__DOT__inflight_sizes_1 >> (0x18U & ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__system_bus_xbar__DOT__sink_ACancel_7_bits_source) << 3U))) >> 1U))) | (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__dividerOnlyClockGenerator_3__DOT__bundleOut_0_member_allClocks_subsystem_sbus_0_reset_catcher_io_sync_reset)); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__fixer__DOT__monitor_1__DOT___T_2191 = (((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__system_bus_xbar_auto_in_1_d_bits_sink) == (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__fixer__DOT__monitor_1__DOT__sink)) | (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__dividerOnlyClockGenerator_3__DOT__bundleOut_0_member_allClocks_subsystem_sbus_0_reset_catcher_io_sync_reset)); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__fixer__DOT__monitor_1__DOT___T_2410 = (1U & ((~ (0xffU & ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__fixer__DOT__monitor_1__DOT__inflight_2) >> (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__system_bus_xbar_auto_in_1_d_bits_sink)))) | (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__dividerOnlyClockGenerator_3__DOT__bundleOut_0_member_allClocks_subsystem_sbus_0_reset_catcher_io_sync_reset))); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__system_bus_xbar__DOT__monitor_1__DOT___T_2191 = (((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__system_bus_xbar__DOT__monitor_1_io_in_d_bits_sink) == (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__system_bus_xbar__DOT__monitor_1__DOT__sink)) | (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__dividerOnlyClockGenerator_3__DOT__bundleOut_0_member_allClocks_subsystem_sbus_0_reset_catcher_io_sync_reset)); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__system_bus_xbar__DOT__monitor_1__DOT___T_2410 = (1U & ((~ (0xffU & ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__system_bus_xbar__DOT__monitor_1__DOT__inflight_2) >> (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__system_bus_xbar__DOT__monitor_1_io_in_d_bits_sink)))) | (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__dividerOnlyClockGenerator_3__DOT__bundleOut_0_member_allClocks_subsystem_sbus_0_reset_catcher_io_sync_reset))); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__system_bus_xbar__DOT__monitor_1__DOT__same_cycle_resp = ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__system_bus_xbar__DOT__monitor_1__DOT___T_2247) & (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__system_bus_xbar__DOT__monitor_1__DOT___same_cycle_resp_T_2)); } void VTestHarness::_settle__TOP__1025(VTestHarness__Syms* __restrict vlSymsp) { VL_DEBUG_IF(VL_DBG_MSGF("+ VTestHarness::_settle__TOP__1025\n"); ); VTestHarness* __restrict vlTOPp VL_ATTR_UNUSED = vlSymsp->TOPp; // Body vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__system_bus_xbar__DOT__monitor_1__DOT__same_cycle_resp_1 = ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__system_bus_xbar__DOT__monitor_1__DOT___T_2334) & (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__system_bus_xbar__DOT__monitor_1__DOT___same_cycle_resp_T_8)); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__fixer__DOT__monitor_1__DOT__same_cycle_resp = ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__fixer__DOT__monitor_1__DOT___T_2247) & (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__fixer__DOT__monitor_1__DOT___same_cycle_resp_T_2)); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__fixer__DOT__monitor_1__DOT__same_cycle_resp_1 = ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__fixer__DOT__monitor_1__DOT___T_2334) & (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__fixer__DOT__monitor_1__DOT___same_cycle_resp_T_8)); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__system_bus_xbar__DOT__monitor_1__DOT___GEN_58 = ((5U == (7U & ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__system_bus_xbar__DOT__monitor_1__DOT___a_opcode_lookup_T_1) >> 1U))) ? 2U : ((4U == (7U & ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__system_bus_xbar__DOT__monitor_1__DOT___a_opcode_lookup_T_1) >> 1U))) ? 1U : ( (3U == (7U & ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__system_bus_xbar__DOT__monitor_1__DOT___a_opcode_lookup_T_1) >> 1U))) ? 1U : ((2U == (7U & ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__system_bus_xbar__DOT__monitor_1__DOT___a_opcode_lookup_T_1) >> 1U))) ? 1U : 0U)))); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__fixer__DOT__monitor_1__DOT___GEN_58 = ((5U == (7U & ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__fixer__DOT__monitor_1__DOT___a_opcode_lookup_T_1) >> 1U))) ? 2U : ((4U == (7U & ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__fixer__DOT__monitor_1__DOT___a_opcode_lookup_T_1) >> 1U))) ? 1U : ( (3U == (7U & ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__fixer__DOT__monitor_1__DOT___a_opcode_lookup_T_1) >> 1U))) ? 1U : ((2U == (7U & ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__fixer__DOT__monitor_1__DOT___a_opcode_lookup_T_1) >> 1U))) ? 1U : 0U)))); } void VTestHarness::_settle__TOP__1026(VTestHarness__Syms* __restrict vlSymsp) { VL_DEBUG_IF(VL_DBG_MSGF("+ VTestHarness::_settle__TOP__1026\n"); ); VTestHarness* __restrict vlTOPp VL_ATTR_UNUSED = vlSymsp->TOPp; // Body vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__fixer__DOT__monitor_1__DOT___T_2261 = ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__fixer__DOT__monitor_1__DOT___T_2258) & (6U != (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__system_bus_xbar_auto_in_1_d_bits_opcode))); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__fixer__DOT__monitor_1__DOT___T_2349 = ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__fixer__DOT__monitor_1__DOT___T_2347) & (6U == (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__system_bus_xbar_auto_in_1_d_bits_opcode))); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__fixer__DOT__monitor_1__DOT__d_set = ((((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__fixer__DOT__monitor_1__DOT___d_first_T) & (0U == (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__fixer__DOT__monitor_1__DOT__d_first_counter_3))) & (((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__system_bus_xbar_auto_in_1_d_bits_opcode) >> 2U) & (~ ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__system_bus_xbar_auto_in_1_d_bits_opcode) >> 1U)))) ? (0xffU & ((IData)(1U) << (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__system_bus_xbar_auto_in_1_d_bits_sink))) : 0U); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__fixer__DOT__monitor_1__DOT___T_2353 = (((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__fixer__DOT__monitor_1__DOT___d_first_T) & (0U == (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__fixer__DOT__monitor_1__DOT__d_first_counter_2))) & (6U == (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__system_bus_xbar_auto_in_1_d_bits_opcode))); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__fixer__DOT__monitor_1__DOT___T_2266 = (((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__fixer__DOT__monitor_1__DOT___d_first_T) & (0U == (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__fixer__DOT__monitor_1__DOT__d_first_counter_1))) & (6U != (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__system_bus_xbar_auto_in_1_d_bits_opcode))); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__fixer__DOT__monitor_1__DOT___T_2175 = (((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__system_bus_xbar_auto_in_1_d_bits_opcode) == (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__fixer__DOT__monitor_1__DOT__opcode_1)) | (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__dividerOnlyClockGenerator_3__DOT__bundleOut_0_member_allClocks_subsystem_sbus_0_reset_catcher_io_sync_reset)); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__fixer__DOT__monitor_1__DOT___T_2281 = ((((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__system_bus_xbar_auto_in_1_d_bits_opcode) == ((7U == (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__buffer_1__DOT__bundleOut_0_a_q__DOT__ram_opcode_io_deq_bits_MPORT_data)) ? 4U : ((6U == (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__buffer_1__DOT__bundleOut_0_a_q__DOT__ram_opcode_io_deq_bits_MPORT_data)) ? 4U : (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__fixer__DOT__monitor_1__DOT___GEN_42)))) | ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__system_bus_xbar_auto_in_1_d_bits_opcode) == ((7U == (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__buffer_1__DOT__bundleOut_0_a_q__DOT__ram_opcode_io_deq_bits_MPORT_data)) ? 4U : ((6U == (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__buffer_1__DOT__bundleOut_0_a_q__DOT__ram_opcode_io_deq_bits_MPORT_data)) ? 5U : (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__fixer__DOT__monitor_1__DOT___GEN_42))))) | (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__dividerOnlyClockGenerator_3__DOT__bundleOut_0_member_allClocks_subsystem_sbus_0_reset_catcher_io_sync_reset)); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__system_bus_xbar__DOT__monitor_1__DOT___T_2261 = ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__system_bus_xbar__DOT__monitor_1__DOT___T_2258) & (6U != (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__system_bus_xbar__DOT__monitor_1_io_in_d_bits_opcode))); } void VTestHarness::_settle__TOP__1027(VTestHarness__Syms* __restrict vlSymsp) { VL_DEBUG_IF(VL_DBG_MSGF("+ VTestHarness::_settle__TOP__1027\n"); ); VTestHarness* __restrict vlTOPp VL_ATTR_UNUSED = vlSymsp->TOPp; // Body vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__system_bus_xbar__DOT__monitor_1__DOT___T_2349 = ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__system_bus_xbar__DOT__monitor_1__DOT___T_2347) & (6U == (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__system_bus_xbar__DOT__monitor_1_io_in_d_bits_opcode))); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__system_bus_xbar__DOT__monitor_1__DOT__d_set = ((((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__system_bus_xbar__DOT__monitor_1__DOT___d_first_T) & (0U == (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__system_bus_xbar__DOT__monitor_1__DOT__d_first_counter_3))) & (((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__system_bus_xbar__DOT__monitor_1_io_in_d_bits_opcode) >> 2U) & (~ ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__system_bus_xbar__DOT__monitor_1_io_in_d_bits_opcode) >> 1U)))) ? (0xffU & ((IData)(1U) << (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__system_bus_xbar__DOT__monitor_1_io_in_d_bits_sink))) : 0U); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__system_bus_xbar__DOT__monitor_1__DOT___T_2353 = (((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__system_bus_xbar__DOT__monitor_1__DOT___d_first_T) & (0U == (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__system_bus_xbar__DOT__monitor_1__DOT__d_first_counter_2))) & (6U == (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__system_bus_xbar__DOT__monitor_1_io_in_d_bits_opcode))); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__system_bus_xbar__DOT__monitor_1__DOT___T_2266 = (((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__system_bus_xbar__DOT__monitor_1__DOT___d_first_T) & (0U == (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__system_bus_xbar__DOT__monitor_1__DOT__d_first_counter_1))) & (6U != (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__system_bus_xbar__DOT__monitor_1_io_in_d_bits_opcode))); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__system_bus_xbar__DOT__monitor_1__DOT___T_2175 = (((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__system_bus_xbar__DOT__monitor_1_io_in_d_bits_opcode) == (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__system_bus_xbar__DOT__monitor_1__DOT__opcode_1)) | (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__dividerOnlyClockGenerator_3__DOT__bundleOut_0_member_allClocks_subsystem_sbus_0_reset_catcher_io_sync_reset)); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__system_bus_xbar__DOT__monitor_1__DOT___T_2281 = ((((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__system_bus_xbar__DOT__monitor_1_io_in_d_bits_opcode) == ((7U == (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__buffer_1__DOT__bundleOut_0_a_q__DOT__ram_opcode_io_deq_bits_MPORT_data)) ? 4U : ((6U == (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__buffer_1__DOT__bundleOut_0_a_q__DOT__ram_opcode_io_deq_bits_MPORT_data)) ? 4U : (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__system_bus_xbar__DOT__monitor_1__DOT___GEN_42)))) | ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__system_bus_xbar__DOT__monitor_1_io_in_d_bits_opcode) == ((7U == (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__buffer_1__DOT__bundleOut_0_a_q__DOT__ram_opcode_io_deq_bits_MPORT_data)) ? 4U : ((6U == (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__buffer_1__DOT__bundleOut_0_a_q__DOT__ram_opcode_io_deq_bits_MPORT_data)) ? 5U : (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__system_bus_xbar__DOT__monitor_1__DOT___GEN_42))))) | (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__dividerOnlyClockGenerator_3__DOT__bundleOut_0_member_allClocks_subsystem_sbus_0_reset_catcher_io_sync_reset)); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_pbus__DOT__coupler_to_slave_named_tileresetctrl__DOT__fragmenter__DOT__monitor__DOT___inflight_T_5 = ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_pbus__DOT__coupler_to_slave_named_tileresetctrl__DOT__fragmenter__DOT__monitor__DOT__inflight_1) & (~ ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_pbus__DOT__coupler_to_slave_named_tileresetctrl__DOT__fragmenter__DOT__monitor__DOT___T_754) ? (0xffU & ((IData)(1U) << (7U & ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_pbus__DOT__coupler_to_slave_named_tileresetctrl__DOT__buffer__DOT__bundleIn_0_d_q__DOT__ram_source_io_deq_bits_MPORT_data) >> 4U)))) : 0U))); } void VTestHarness::_settle__TOP__1028(VTestHarness__Syms* __restrict vlSymsp) { VL_DEBUG_IF(VL_DBG_MSGF("+ VTestHarness::_settle__TOP__1028\n"); ); VTestHarness* __restrict vlTOPp VL_ATTR_UNUSED = vlSymsp->TOPp; // Variables // Begin mtask footprint all: WData/*95:0*/ __Vtemp1926[3]; WData/*95:0*/ __Vtemp1927[3]; WData/*95:0*/ __Vtemp1932[3]; WData/*95:0*/ __Vtemp1933[3]; WData/*95:0*/ __Vtemp1938[3]; WData/*95:0*/ __Vtemp1939[3]; // Body __Vtemp1926[0U] = 0xfU; __Vtemp1926[1U] = 0U; __Vtemp1926[2U] = 0U; VL_SHIFTL_WWI(79,79,6, __Vtemp1927, __Vtemp1926, (0x1cU & ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_pbus__DOT__coupler_to_slave_named_tileresetctrl__DOT__buffer__DOT__bundleIn_0_d_q__DOT__ram_source_io_deq_bits_MPORT_data) >> 2U))); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_pbus__DOT__coupler_to_slave_named_tileresetctrl__DOT__fragmenter__DOT__monitor__DOT___inflight_sizes_T_5 = (vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_pbus__DOT__coupler_to_slave_named_tileresetctrl__DOT__fragmenter__DOT__monitor__DOT__inflight_sizes_1 & (~ ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_pbus__DOT__coupler_to_slave_named_tileresetctrl__DOT__fragmenter__DOT__monitor__DOT___T_754) ? __Vtemp1927[0U] : 0U))); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_pbus__DOT__coupler_to_slave_named_tileresetctrl__DOT__fragmenter__DOT__monitor__DOT___inflight_T_2 = (0x1fU & (((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_pbus__DOT__coupler_to_slave_named_tileresetctrl__DOT__fragmenter__DOT__monitor__DOT__inflight) | ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_pbus__DOT__coupler_to_slave_named_tileresetctrl__DOT__fragmenter__DOT__monitor__DOT___T_651) ? (0xffU & ((IData)(1U) << (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_pbus__DOT__buffer__DOT__bundleOut_0_a_q__DOT__ram_source_io_deq_bits_MPORT_data))) : 0U)) & (~ ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_pbus__DOT__coupler_to_slave_named_tileresetctrl__DOT__fragmenter__DOT__monitor__DOT___T_667) ? (0xffU & ((IData)(1U) << (7U & ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_pbus__DOT__coupler_to_slave_named_tileresetctrl__DOT__buffer__DOT__bundleIn_0_d_q__DOT__ram_source_io_deq_bits_MPORT_data) >> 4U)))) : 0U)))); __Vtemp1932[0U] = 0xfU; __Vtemp1932[1U] = 0U; __Vtemp1932[2U] = 0U; VL_SHIFTL_WWI(79,79,6, __Vtemp1933, __Vtemp1932, (0x1cU & ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_pbus__DOT__coupler_to_slave_named_tileresetctrl__DOT__buffer__DOT__bundleIn_0_d_q__DOT__ram_source_io_deq_bits_MPORT_data) >> 2U))); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_pbus__DOT__coupler_to_slave_named_tileresetctrl__DOT__fragmenter__DOT__monitor__DOT___GEN_23[0U] = ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_pbus__DOT__coupler_to_slave_named_tileresetctrl__DOT__fragmenter__DOT__monitor__DOT___T_667) ? __Vtemp1933[0U] : 0U); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_pbus__DOT__coupler_to_slave_named_tileresetctrl__DOT__fragmenter__DOT__monitor__DOT___GEN_23[1U] = ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_pbus__DOT__coupler_to_slave_named_tileresetctrl__DOT__fragmenter__DOT__monitor__DOT___T_667) ? __Vtemp1933[1U] : 0U); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_pbus__DOT__coupler_to_slave_named_tileresetctrl__DOT__fragmenter__DOT__monitor__DOT___GEN_23[2U] = ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_pbus__DOT__coupler_to_slave_named_tileresetctrl__DOT__fragmenter__DOT__monitor__DOT___T_667) ? (0x7fffU & __Vtemp1933[2U]) : 0U); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_pbus__DOT__coupler_to_slave_named_tileresetctrl__DOT__buffer__DOT__monitor__DOT___T_593 = ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_pbus__DOT__coupler_to_slave_named_tileresetctrl__DOT__buffer__DOT__monitor__DOT__d_first_done) & (~ (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_pbus__DOT__coupler_to_slave_named_tileresetctrl__DOT__buffer__DOT__monitor__DOT__d_first_counter))); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_pbus__DOT__coupler_to_slave_named_tileresetctrl__DOT__buffer__DOT__monitor__DOT___T_700 = (((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_pbus__DOT__coupler_to_slave_named_tileresetctrl__DOT__buffer__DOT__monitor__DOT__d_first_done) & (~ (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_pbus__DOT__coupler_to_slave_named_tileresetctrl__DOT__buffer__DOT__monitor__DOT__d_first_counter_2))) & (6U == (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_pbus__DOT__coupler_to_slave_named_tileresetctrl__DOT__buffer__DOT__bundleIn_0_d_q__DOT__ram_opcode_io_deq_bits_MPORT_data))); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_pbus__DOT__coupler_to_slave_named_tileresetctrl__DOT__buffer__DOT__monitor__DOT___T_613 = (((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_pbus__DOT__coupler_to_slave_named_tileresetctrl__DOT__buffer__DOT__monitor__DOT__d_first_done) & (~ (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_pbus__DOT__coupler_to_slave_named_tileresetctrl__DOT__buffer__DOT__monitor__DOT__d_first_counter_1))) & (6U != (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_pbus__DOT__coupler_to_slave_named_tileresetctrl__DOT__buffer__DOT__bundleIn_0_d_q__DOT__ram_opcode_io_deq_bits_MPORT_data))); __Vtemp1938[0U] = 0xfU; __Vtemp1938[1U] = 0U; __Vtemp1938[2U] = 0U; VL_SHIFTL_WWI(79,79,6, __Vtemp1939, __Vtemp1938, (0x1cU & ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_pbus__DOT__coupler_to_device_named_uart_0__DOT__fragmenter_auto_out_a_bits_source) >> 2U))); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_pbus__DOT__coupler_to_device_named_uart_0__DOT__fragmenter__DOT__monitor__DOT___GEN_23[0U] = ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_pbus__DOT__coupler_to_device_named_uart_0__DOT__fragmenter__DOT__monitor__DOT___T_667) ? __Vtemp1939[0U] : 0U); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_pbus__DOT__coupler_to_device_named_uart_0__DOT__fragmenter__DOT__monitor__DOT___GEN_23[1U] = ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_pbus__DOT__coupler_to_device_named_uart_0__DOT__fragmenter__DOT__monitor__DOT___T_667) ? __Vtemp1939[1U] : 0U); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_pbus__DOT__coupler_to_device_named_uart_0__DOT__fragmenter__DOT__monitor__DOT___GEN_23[2U] = ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_pbus__DOT__coupler_to_device_named_uart_0__DOT__fragmenter__DOT__monitor__DOT___T_667) ? (0x7fffU & __Vtemp1939[2U]) : 0U); } void VTestHarness::_settle__TOP__1029(VTestHarness__Syms* __restrict vlSymsp) { VL_DEBUG_IF(VL_DBG_MSGF("+ VTestHarness::_settle__TOP__1029\n"); ); VTestHarness* __restrict vlTOPp VL_ATTR_UNUSED = vlSymsp->TOPp; // Body vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__uartClockDomainWrapper__DOT__uart_0__DOT__monitor__DOT___T_565 = ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__uartClockDomainWrapper__DOT__uart_0__DOT__monitor__DOT__a_first_done) & (~ (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__uartClockDomainWrapper__DOT__uart_0__DOT__monitor__DOT__a_first_counter))); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__uartClockDomainWrapper__DOT__uart_0__DOT__monitor__DOT___T_597 = ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__uartClockDomainWrapper__DOT__uart_0__DOT__monitor__DOT__a_first_done) & (~ (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__uartClockDomainWrapper__DOT__uart_0__DOT__monitor__DOT__a_first_counter_1))); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__uartClockDomainWrapper__DOT__uart_0__DOT__monitor__DOT___T_593 = ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__uartClockDomainWrapper__DOT__uart_0__DOT__monitor__DOT__d_first_done) & (~ (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__uartClockDomainWrapper__DOT__uart_0__DOT__monitor__DOT__d_first_counter))); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__uartClockDomainWrapper__DOT__uart_0__DOT__monitor__DOT___T_610 = ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__uartClockDomainWrapper__DOT__uart_0__DOT__monitor__DOT__d_first_done) & (~ (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__uartClockDomainWrapper__DOT__uart_0__DOT__monitor__DOT__d_first_counter_1))); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__uartClockDomainWrapper__DOT__uart_0__DOT__rxq__DOT__do_deq = (0xfU & ((((((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__uartClockDomainWrapper__DOT__uart_0__DOT___out_rifireMux_T) & (4U == (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_pbus__DOT__coupler_to_device_named_uart_0__DOT__fragmenter__DOT__repeater_io_deq_bits_opcode))) & ((IData)(1U) << (3U & (vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_pbus__DOT__coupler_to_device_named_uart_0__DOT__fragmenter_auto_out_a_bits_address >> 3U)))) & (0U == (0x1fcU & (vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_pbus__DOT__coupler_to_device_named_uart_0__DOT__fragmenter_auto_out_a_bits_address >> 3U)))) & (0U != (0xffU & (IData)((vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__uartClockDomainWrapper__DOT__uart_0__DOT__out_frontMask >> 0x20U))))) & (~ (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__uartClockDomainWrapper__DOT__uart_0__DOT__rxq__DOT__empty)))); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__uartClockDomainWrapper__DOT__uart_0__DOT___out_wifireMux_T_2 = ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__uartClockDomainWrapper__DOT__uart_0__DOT___out_rifireMux_T) & (4U != (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_pbus__DOT__coupler_to_device_named_uart_0__DOT__fragmenter__DOT__repeater_io_deq_bits_opcode))); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_pbus__DOT__coupler_to_device_named_uart_0__DOT__fragmenter__DOT__monitor__DOT___T_710 = (1U & (((~ (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_pbus__DOT__out_xbar_auto_out_0_d_ready)) | (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_pbus__DOT__coupler_to_device_named_uart_0__DOT__fragmenter__DOT__repeater_io_enq_ready)) | (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__dividerOnlyClockGenerator_3__DOT__bundleOut_0_member_allClocks_subsystem_pbus_0_reset_catcher_io_sync_reset))); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_pbus__DOT__coupler_to_device_named_uart_0__DOT__fragmenter__DOT__repeater__DOT___T_1 = (((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_pbus__DOT__coupler_to_device_named_uart_0__DOT__fragmenter__DOT__repeater_io_enq_ready) & (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_pbus__DOT__out_xbar_auto_out_0_a_valid)) & (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_pbus__DOT__coupler_to_device_named_uart_0__DOT__fragmenter__DOT__repeater_io_repeat)); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_pbus__DOT__coupler_to_device_named_uart_0__DOT__fragmenter__DOT__monitor__DOT___a_first_T = ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_pbus__DOT__coupler_to_device_named_uart_0__DOT__fragmenter__DOT__repeater_io_enq_ready) & (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_pbus__DOT__out_xbar_auto_out_0_a_valid)); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_pbus__DOT__out_xbar__DOT___portsAOI_in_0_a_ready_T = ((0U == (0x40000000U & (0x40000000U ^ vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_pbus__DOT__buffer__DOT__bundleOut_0_a_q__DOT__ram_address_io_deq_bits_MPORT_data))) & (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_pbus__DOT__coupler_to_device_named_uart_0__DOT__fragmenter__DOT__repeater_io_enq_ready)); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_pbus__DOT__fixer__DOT__monitor__DOT___T_688 = (((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_pbus__DOT__out_xbar_auto_in_d_bits_param) == (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_pbus__DOT__fixer__DOT__monitor__DOT__param_1)) | (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__dividerOnlyClockGenerator_3__DOT__bundleOut_0_member_allClocks_subsystem_pbus_0_reset_catcher_io_sync_reset)); } void VTestHarness::_settle__TOP__1030(VTestHarness__Syms* __restrict vlSymsp) { VL_DEBUG_IF(VL_DBG_MSGF("+ VTestHarness::_settle__TOP__1030\n"); ); VTestHarness* __restrict vlTOPp VL_ATTR_UNUSED = vlSymsp->TOPp; // Body vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_pbus__DOT__fixer__DOT__monitor__DOT___T_700 = (((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_pbus__DOT__out_xbar_auto_in_d_bits_sink) == (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_pbus__DOT__fixer__DOT__monitor__DOT__sink)) | (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__dividerOnlyClockGenerator_3__DOT__bundleOut_0_member_allClocks_subsystem_pbus_0_reset_catcher_io_sync_reset)); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_pbus__DOT__out_xbar__DOT__monitor__DOT___T_688 = (((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_pbus__DOT__out_xbar__DOT__monitor_io_in_d_bits_param) == (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_pbus__DOT__out_xbar__DOT__monitor__DOT__param_1)) | (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__dividerOnlyClockGenerator_3__DOT__bundleOut_0_member_allClocks_subsystem_pbus_0_reset_catcher_io_sync_reset)); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_pbus__DOT__out_xbar__DOT__monitor__DOT___T_700 = (((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_pbus__DOT__out_xbar__DOT__monitor_io_in_d_bits_sink) == (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_pbus__DOT__out_xbar__DOT__monitor__DOT__sink)) | (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__dividerOnlyClockGenerator_3__DOT__bundleOut_0_member_allClocks_subsystem_pbus_0_reset_catcher_io_sync_reset)); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_pbus__DOT__fixer__DOT__monitor__DOT___T_585 = (1U & (((~ (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_pbus__DOT__out_xbar_auto_in_d_bits_denied)) | (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_pbus__DOT__out_xbar_auto_in_d_bits_corrupt)) | (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__dividerOnlyClockGenerator_3__DOT__bundleOut_0_member_allClocks_subsystem_pbus_0_reset_catcher_io_sync_reset))); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_pbus__DOT__fixer__DOT__monitor__DOT___T_704 = (((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_pbus__DOT__out_xbar_auto_in_d_bits_denied) == (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_pbus__DOT__fixer__DOT__monitor__DOT__denied)) | (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__dividerOnlyClockGenerator_3__DOT__bundleOut_0_member_allClocks_subsystem_pbus_0_reset_catcher_io_sync_reset)); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_pbus__DOT__out_xbar__DOT__monitor__DOT___T_585 = (1U & (((~ (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_pbus__DOT__out_xbar__DOT__monitor_io_in_d_bits_denied)) | (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_pbus__DOT__out_xbar__DOT__monitor_io_in_d_bits_corrupt)) | (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__dividerOnlyClockGenerator_3__DOT__bundleOut_0_member_allClocks_subsystem_pbus_0_reset_catcher_io_sync_reset))); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_pbus__DOT__out_xbar__DOT__monitor__DOT___T_704 = (((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_pbus__DOT__out_xbar__DOT__monitor_io_in_d_bits_denied) == (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_pbus__DOT__out_xbar__DOT__monitor__DOT__denied)) | (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__dividerOnlyClockGenerator_3__DOT__bundleOut_0_member_allClocks_subsystem_pbus_0_reset_catcher_io_sync_reset)); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_pbus__DOT__out_xbar_auto_in_d_bits_size = ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_pbus__DOT__out_xbar__DOT___T_39) | (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_pbus__DOT__out_xbar__DOT___T_40)); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_pbus__DOT__out_xbar__DOT__monitor_io_in_d_bits_size = ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_pbus__DOT__out_xbar__DOT___T_39) | (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_pbus__DOT__out_xbar__DOT___T_40)); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_pbus__DOT__out_xbar_auto_in_d_bits_opcode = ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_pbus__DOT__out_xbar__DOT___T_45) | (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_pbus__DOT__out_xbar__DOT___T_46)); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_pbus__DOT__out_xbar__DOT__monitor_io_in_d_bits_opcode = ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_pbus__DOT__out_xbar__DOT___T_45) | (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_pbus__DOT__out_xbar__DOT___T_46)); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_pbus__DOT__out_xbar_auto_in_d_bits_source = ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_pbus__DOT__out_xbar__DOT___T_36) | (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_pbus__DOT__out_xbar__DOT___T_37)); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_pbus__DOT__out_xbar__DOT__monitor_io_in_d_bits_source = ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_pbus__DOT__out_xbar__DOT___T_36) | (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_pbus__DOT__out_xbar__DOT___T_37)); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__core__DOT__ibuf__DOT___io_imem_ready_T_4 = (3U & ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__core__DOT__ibuf__DOT__nIC) - (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__core__DOT__ibuf__DOT__nICReady))); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__core__DOT__mem_wrong_npc = ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__core__DOT__ex_pc_valid) ? (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__core__DOT___mem_wrong_npc_T) : (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__core__DOT___mem_wrong_npc_T_3)); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_cbus__DOT__out_xbar__DOT___readys_mask_T_3 = ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_cbus__DOT__out_xbar__DOT___readys_mask_T) | (0x7eU & ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_cbus__DOT__out_xbar__DOT___readys_mask_T) << 1U))); } void VTestHarness::_settle__TOP__1031(VTestHarness__Syms* __restrict vlSymsp) { VL_DEBUG_IF(VL_DBG_MSGF("+ VTestHarness::_settle__TOP__1031\n"); ); VTestHarness* __restrict vlTOPp VL_ATTR_UNUSED = vlSymsp->TOPp; // Body vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_cbus__DOT__wrapped_error_device__DOT__buffer__DOT__bundleIn_0_d_q__DOT__do_deq = ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_cbus__DOT__out_xbar_auto_out_0_d_ready) & (~ (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_cbus__DOT__wrapped_error_device__DOT__buffer__DOT__bundleIn_0_d_q__DOT__empty))); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_cbus__DOT__wrapped_error_device__DOT__buffer__DOT__monitor__DOT___T_719 = (1U & (((~ (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_cbus__DOT__out_xbar_auto_out_0_d_ready)) | (~ (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_cbus__DOT__wrapped_error_device__DOT__buffer__DOT__bundleOut_0_a_q__DOT__full))) | (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__dividerOnlyClockGenerator_3__DOT__bundleOut_0_member_allClocks_subsystem_cbus_0_reset_catcher_io_sync_reset))); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_cbus__DOT__wrapped_error_device__DOT__buffer__DOT__monitor__DOT___d_first_T = ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_cbus__DOT__out_xbar_auto_out_0_d_ready) & (~ (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_cbus__DOT__wrapped_error_device__DOT__buffer__DOT__bundleIn_0_d_q__DOT__empty))); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_pbus__DOT__buffer_1__DOT__bundleIn_0_d_q__DOT__do_deq = ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_cbus__DOT__out_xbar_auto_out_2_d_ready) & (~ (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_pbus__DOT__buffer_1__DOT__bundleIn_0_d_q__DOT__empty))); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_pbus__DOT__buffer_1__DOT__monitor__DOT___T_776 = (1U & (((~ (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_cbus__DOT__out_xbar_auto_out_2_d_ready)) | (~ (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_pbus__DOT__buffer_1__DOT__bundleOut_0_a_q__DOT__full))) | (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__dividerOnlyClockGenerator_3__DOT__bundleOut_0_member_allClocks_subsystem_pbus_0_reset_catcher_io_sync_reset))); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_pbus__DOT__buffer_1__DOT__monitor__DOT___d_first_T = ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_cbus__DOT__out_xbar_auto_out_2_d_ready) & (~ (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_pbus__DOT__buffer_1__DOT__bundleIn_0_d_q__DOT__empty))); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_cbus__DOT__coupler_to_l2_ctrl__DOT__fragmenter__DOT___T_7 = (((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_cbus__DOT__out_xbar_auto_out_1_d_ready) | (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_cbus__DOT__coupler_to_l2_ctrl__DOT__fragmenter__DOT__drop)) & (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_cbus__DOT__coupler_to_l2_ctrl__DOT__buffer__DOT__bundleIn_0_d_q__DOT__maybe_full)); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_cbus__DOT__coupler_to_l2_ctrl__DOT__fragmenter__DOT__monitor__DOT___T_710 = (1U & (((~ (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_cbus__DOT__out_xbar_auto_out_1_d_ready)) | (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_cbus__DOT__coupler_to_l2_ctrl__DOT__fragmenter__DOT__repeater_io_enq_ready)) | (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__dividerOnlyClockGenerator_3__DOT__bundleOut_0_member_allClocks_subsystem_cbus_0_reset_catcher_io_sync_reset))); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_cbus__DOT__coupler_to_l2_ctrl__DOT__fragmenter__DOT__monitor__DOT___d_first_T = ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_cbus__DOT__out_xbar_auto_out_1_d_ready) & (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_cbus__DOT__coupler_to_l2_ctrl__DOT__fragmenter__DOT__monitor_io_in_d_valid)); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_cbus__DOT__coupler_to_l2_ctrl__DOT__fragmenter_auto_out_d_ready = ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_cbus__DOT__out_xbar_auto_out_1_d_ready) | (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_cbus__DOT__coupler_to_l2_ctrl__DOT__fragmenter__DOT__drop)); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_cbus__DOT__coupler_to_plic__DOT__fragmenter__DOT___T_7 = (((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_cbus__DOT__out_xbar_auto_out_3_d_ready) | (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_cbus__DOT__coupler_to_plic__DOT__fragmenter__DOT__drop)) & (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__plicDomainWrapper__DOT__plic__DOT__out_back__DOT__maybe_full)); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_cbus__DOT__coupler_to_plic__DOT__fragmenter__DOT__monitor__DOT___T_710 = (1U & (((~ (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_cbus__DOT__out_xbar_auto_out_3_d_ready)) | (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_cbus__DOT__coupler_to_plic__DOT__fragmenter__DOT__repeater_io_enq_ready)) | (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__dividerOnlyClockGenerator_3__DOT__bundleOut_0_member_allClocks_subsystem_cbus_0_reset_catcher_io_sync_reset))); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_cbus__DOT__coupler_to_plic__DOT__fragmenter__DOT__monitor__DOT___d_first_T = ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_cbus__DOT__out_xbar_auto_out_3_d_ready) & (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_cbus__DOT__coupler_to_plic__DOT__fragmenter__DOT__monitor_io_in_d_valid)); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_cbus__DOT__coupler_to_plic__DOT__fragmenter_auto_out_d_ready = ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_cbus__DOT__out_xbar_auto_out_3_d_ready) | (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_cbus__DOT__coupler_to_plic__DOT__fragmenter__DOT__drop)); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_cbus__DOT__coupler_to_bootrom__DOT__fragmenter__DOT___T_7 = ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_cbus__DOT__out_xbar_auto_out_6_d_ready) & (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_cbus__DOT__coupler_to_bootrom__DOT__fragmenter__DOT__repeater_io_deq_valid)); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__bootROMDomainWrapper__DOT__bootrom__DOT__monitor__DOT___T_650 = (1U & (((~ (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_cbus__DOT__out_xbar_auto_out_6_d_ready)) | (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_cbus__DOT__out_xbar_auto_out_6_d_ready)) | (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__dividerOnlyClockGenerator_3__DOT__bundleOut_0_member_allClocks_subsystem_cbus_0_reset_catcher_io_sync_reset))); } void VTestHarness::_settle__TOP__1032(VTestHarness__Syms* __restrict vlSymsp) { VL_DEBUG_IF(VL_DBG_MSGF("+ VTestHarness::_settle__TOP__1032\n"); ); VTestHarness* __restrict vlTOPp VL_ATTR_UNUSED = vlSymsp->TOPp; // Body vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__bootROMDomainWrapper__DOT__bootrom__DOT__monitor__DOT__a_first_done = ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_cbus__DOT__out_xbar_auto_out_6_d_ready) & (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_cbus__DOT__coupler_to_bootrom__DOT__fragmenter__DOT__repeater_io_deq_valid)); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__bootROMDomainWrapper__DOT__bootrom__DOT__monitor__DOT__d_first_done = ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_cbus__DOT__out_xbar_auto_out_6_d_ready) & (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_cbus__DOT__coupler_to_bootrom__DOT__fragmenter__DOT__repeater_io_deq_valid)); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_cbus__DOT__coupler_to_bootrom__DOT__fragmenter__DOT__monitor__DOT___d_first_T = ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_cbus__DOT__out_xbar_auto_out_6_d_ready) & (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_cbus__DOT__coupler_to_bootrom__DOT__fragmenter__DOT__repeater_io_deq_valid)); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_cbus__DOT__coupler_to_bootrom__DOT__fragmenter__DOT__repeater_io_enq_ready = ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_cbus__DOT__out_xbar_auto_out_6_d_ready) & (~ (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_cbus__DOT__coupler_to_bootrom__DOT__fragmenter__DOT__repeater__DOT__full))); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_cbus__DOT__out_xbar__DOT__muxStateEarly_6 = ((0U == (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_cbus__DOT__out_xbar__DOT__beatsLeft)) ? (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_cbus__DOT__out_xbar__DOT__earlyWinner_6) : (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_cbus__DOT__out_xbar__DOT__state_6)); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_cbus__DOT__out_xbar__DOT__muxStateEarly_5 = ((0U == (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_cbus__DOT__out_xbar__DOT__beatsLeft)) ? (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_cbus__DOT__out_xbar__DOT__earlyWinner_5) : (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_cbus__DOT__out_xbar__DOT__state_5)); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_cbus__DOT__out_xbar__DOT__muxStateEarly_4 = ((0U == (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_cbus__DOT__out_xbar__DOT__beatsLeft)) ? (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_cbus__DOT__out_xbar__DOT__earlyWinner_4) : (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_cbus__DOT__out_xbar__DOT__state_4)); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_cbus__DOT__out_xbar__DOT__muxStateEarly_3 = ((0U == (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_cbus__DOT__out_xbar__DOT__beatsLeft)) ? (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_cbus__DOT__out_xbar__DOT__earlyWinner_3) : (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_cbus__DOT__out_xbar__DOT__state_3)); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_cbus__DOT__out_xbar__DOT__muxStateEarly_2 = ((0U == (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_cbus__DOT__out_xbar__DOT__beatsLeft)) ? (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_cbus__DOT__out_xbar__DOT__earlyWinner_2) : (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_cbus__DOT__out_xbar__DOT__state_2)); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_cbus__DOT__coupler_to_debug__DOT__fragmenter__DOT___T_7 = (((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_cbus__DOT__out_xbar_auto_out_5_d_ready) | (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_cbus__DOT__coupler_to_debug__DOT__fragmenter__DOT__drop)) & (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_cbus__DOT__coupler_to_debug__DOT__fragmenter__DOT__repeater_io_deq_valid)); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_cbus__DOT__coupler_to_debug__DOT__fragmenter__DOT__monitor__DOT___d_first_T = ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_cbus__DOT__out_xbar_auto_out_5_d_ready) & (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_cbus__DOT__coupler_to_debug__DOT__fragmenter__DOT__monitor_io_in_d_valid)); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_cbus__DOT__coupler_to_debug__DOT__fragmenter_auto_out_d_ready = ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_cbus__DOT__out_xbar_auto_out_5_d_ready) | (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_cbus__DOT__coupler_to_debug__DOT__fragmenter__DOT__drop)); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_cbus__DOT__out_xbar__DOT__muxStateEarly_0 = ((0U == (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_cbus__DOT__out_xbar__DOT__beatsLeft)) ? (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_cbus__DOT__out_xbar__DOT__earlyWinner_0) : (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_cbus__DOT__out_xbar__DOT__state_0)); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_cbus__DOT__out_xbar__DOT___initBeats_T_4 = (0x1ffU & (((((((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_cbus__DOT__out_xbar__DOT__earlyWinner_0) ? ((1U & (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_cbus__DOT__wrapped_error_device__DOT__buffer__DOT__bundleIn_0_d_q__DOT__ram_opcode_io_deq_bits_MPORT_data)) ? (~ (0xffffffU & (((IData)(0xfffU) << (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_cbus__DOT__wrapped_error_device__DOT__buffer__DOT__bundleIn_0_d_q__DOT__ram_size_io_deq_bits_MPORT_data)) >> 3U))) : 0U) : 0U) | ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_cbus__DOT__out_xbar__DOT__earlyWinner_1) ? ((1U & vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_cbus__DOT__coupler_to_l2_ctrl__DOT__buffer__DOT__bundleIn_0_d_q__DOT__ram_opcode [0U]) ? (7U & (~ (0x3ffffU & (((IData)(0x3fU) << (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_cbus__DOT__coupler_to_l2_ctrl__DOT__fragmenter_auto_in_d_bits_size)) >> 3U)))) : 0U) : 0U)) | ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_cbus__DOT__out_xbar__DOT__earlyWinner_2) ? ((1U & (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_pbus__DOT__buffer_1__DOT__bundleIn_0_d_q__DOT__ram_opcode_io_deq_bits_MPORT_data)) ? (7U & (~ (0x3ffffU & (((IData)(0x3fU) << (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_pbus__DOT__buffer_1__DOT__bundleIn_0_d_q__DOT__ram_size_io_deq_bits_MPORT_data)) >> 3U)))) : 0U) : 0U)) | ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_cbus__DOT__out_xbar__DOT__earlyWinner_3) ? (vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__plicDomainWrapper__DOT__plic__DOT__out_back__DOT__ram_read [0U] ? (7U & (~ (0x3ffffU & (((IData)(0x3fU) << (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_cbus__DOT__coupler_to_plic__DOT__fragmenter_auto_in_d_bits_size)) >> 3U)))) : 0U) : 0U)) | ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_cbus__DOT__out_xbar__DOT__earlyWinner_4) ? ((4U == (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_cbus__DOT__coupler_to_clint__DOT__fragmenter__DOT__repeater_io_deq_bits_opcode)) ? (7U & (~ (0x3ffffU & (((IData)(0x3fU) << (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_cbus__DOT__coupler_to_clint__DOT__fragmenter_auto_in_d_bits_size)) >> 3U)))) : 0U) : 0U)) | ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_cbus__DOT__out_xbar__DOT__earlyWinner_5) ? ((4U == (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_cbus__DOT__coupler_to_debug__DOT__fragmenter__DOT__repeater_io_deq_bits_opcode)) ? (7U & (~ (0x3ffffU & (((IData)(0x3fU) << (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_cbus__DOT__coupler_to_debug__DOT__fragmenter_auto_in_d_bits_size)) >> 3U)))) : 0U) : 0U))); } void VTestHarness::_settle__TOP__1033(VTestHarness__Syms* __restrict vlSymsp) { VL_DEBUG_IF(VL_DBG_MSGF("+ VTestHarness::_settle__TOP__1033\n"); ); VTestHarness* __restrict vlTOPp VL_ATTR_UNUSED = vlSymsp->TOPp; // Body vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_cbus__DOT__out_xbar__DOT__prefixOR_2 = ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_cbus__DOT__out_xbar__DOT__earlyWinner_0) | (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_cbus__DOT__out_xbar__DOT__earlyWinner_1)); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_cbus__DOT__out_xbar__DOT__muxStateEarly_1 = ((0U == (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_cbus__DOT__out_xbar__DOT__beatsLeft)) ? (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_cbus__DOT__out_xbar__DOT__earlyWinner_1) : (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_cbus__DOT__out_xbar__DOT__state_1)); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_cbus__DOT__coupler_to_clint__DOT__fragmenter__DOT___T_7 = (((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_cbus__DOT__out_xbar_auto_out_4_d_ready) | (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_cbus__DOT__coupler_to_clint__DOT__fragmenter__DOT__drop)) & (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_cbus__DOT__coupler_to_clint__DOT__fragmenter__DOT__repeater_io_deq_valid)); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_cbus__DOT__coupler_to_clint__DOT__fragmenter__DOT__monitor__DOT___d_first_T = ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_cbus__DOT__out_xbar_auto_out_4_d_ready) & (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_cbus__DOT__coupler_to_clint__DOT__fragmenter__DOT__monitor_io_in_d_valid)); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_cbus__DOT__coupler_to_clint__DOT__fragmenter_auto_out_d_ready = ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_cbus__DOT__out_xbar_auto_out_4_d_ready) | (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_cbus__DOT__coupler_to_clint__DOT__fragmenter__DOT__drop)); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__debug_1__DOT__dmInner__DOT__dmInner__DOT___GEN_1883 = ((0x75U == (0xffU & ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_cbus__DOT__coupler_to_debug__DOT__fragmenter_auto_out_a_bits_address) >> 3U))) ? VL_ULL(0) : ((0x74U == (0xffU & ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_cbus__DOT__coupler_to_debug__DOT__fragmenter_auto_out_a_bits_address) >> 3U))) ? VL_ULL(0) : ((0x73U == (0xffU & ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_cbus__DOT__coupler_to_debug__DOT__fragmenter_auto_out_a_bits_address) >> 3U))) ? VL_ULL(0) : ((0x72U == (0xffU & ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_cbus__DOT__coupler_to_debug__DOT__fragmenter_auto_out_a_bits_address) >> 3U))) ? VL_ULL(0) : ((0x71U == (0xffU & ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_cbus__DOT__coupler_to_debug__DOT__fragmenter_auto_out_a_bits_address) >> 3U))) ? VL_ULL(0) : ((0x70U == (0xffU & ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_cbus__DOT__coupler_to_debug__DOT__fragmenter_auto_out_a_bits_address) >> 3U))) ? (((QData)((IData)( (((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__debug_1__DOT__dmInner__DOT__dmInner__DOT__abstractDataMem_7) << 0x18U) | (((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__debug_1__DOT__dmInner__DOT__dmInner__DOT__abstractDataMem_6) << 0x10U) | (((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__debug_1__DOT__dmInner__DOT__dmInner__DOT__abstractDataMem_5) << 8U) | (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__debug_1__DOT__dmInner__DOT__dmInner__DOT__abstractDataMem_4)))))) << 0x20U) | (QData)((IData)( (((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__debug_1__DOT__dmInner__DOT__dmInner__DOT__abstractDataMem_3) << 0x18U) | (((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__debug_1__DOT__dmInner__DOT__dmInner__DOT__abstractDataMem_2) << 0x10U) | (((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__debug_1__DOT__dmInner__DOT__dmInner__DOT__abstractDataMem_1) << 8U) | (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__debug_1__DOT__dmInner__DOT__dmInner__DOT__abstractDataMem_0))))))) : ((0x6fU == (0xffU & ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_cbus__DOT__coupler_to_debug__DOT__fragmenter_auto_out_a_bits_address) >> 3U))) ? ( ((QData)((IData)( (((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__debug_1__DOT__dmInner__DOT__dmInner__DOT__programBufferMem_63) << 0x18U) | (((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__debug_1__DOT__dmInner__DOT__dmInner__DOT__programBufferMem_62) << 0x10U) | (((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__debug_1__DOT__dmInner__DOT__dmInner__DOT__programBufferMem_61) << 8U) | (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__debug_1__DOT__dmInner__DOT__dmInner__DOT__programBufferMem_60)))))) << 0x20U) | (QData)((IData)( (((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__debug_1__DOT__dmInner__DOT__dmInner__DOT__programBufferMem_59) << 0x18U) | (((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__debug_1__DOT__dmInner__DOT__dmInner__DOT__programBufferMem_58) << 0x10U) | (((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__debug_1__DOT__dmInner__DOT__dmInner__DOT__programBufferMem_57) << 8U) | (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__debug_1__DOT__dmInner__DOT__dmInner__DOT__programBufferMem_56))))))) : ( (0x6eU == (0xffU & ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_cbus__DOT__coupler_to_debug__DOT__fragmenter_auto_out_a_bits_address) >> 3U))) ? (((QData)((IData)( (((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__debug_1__DOT__dmInner__DOT__dmInner__DOT__programBufferMem_55) << 0x18U) | (((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__debug_1__DOT__dmInner__DOT__dmInner__DOT__programBufferMem_54) << 0x10U) | (((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__debug_1__DOT__dmInner__DOT__dmInner__DOT__programBufferMem_53) << 8U) | (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__debug_1__DOT__dmInner__DOT__dmInner__DOT__programBufferMem_52)))))) << 0x20U) | (QData)((IData)( (((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__debug_1__DOT__dmInner__DOT__dmInner__DOT__programBufferMem_51) << 0x18U) | (((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__debug_1__DOT__dmInner__DOT__dmInner__DOT__programBufferMem_50) << 0x10U) | (((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__debug_1__DOT__dmInner__DOT__dmInner__DOT__programBufferMem_49) << 8U) | (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__debug_1__DOT__dmInner__DOT__dmInner__DOT__programBufferMem_48))))))) : vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__debug_1__DOT__dmInner__DOT__dmInner__DOT___GEN_1875)))))))); } void VTestHarness::_settle__TOP__1034(VTestHarness__Syms* __restrict vlSymsp) { VL_DEBUG_IF(VL_DBG_MSGF("+ VTestHarness::_settle__TOP__1034\n"); ); VTestHarness* __restrict vlTOPp VL_ATTR_UNUSED = vlSymsp->TOPp; // Body vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__debug_1__DOT__dmInner__DOT__dmInner__DOT___GEN_1644 = ((0x86U == (0xffU & ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_cbus__DOT__coupler_to_debug__DOT__fragmenter_auto_out_a_bits_address) >> 3U))) ? (0U == (0x100U & ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_cbus__DOT__coupler_to_debug__DOT__fragmenter_auto_out_a_bits_address) >> 3U))) : ((0x85U == (0xffU & ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_cbus__DOT__coupler_to_debug__DOT__fragmenter_auto_out_a_bits_address) >> 3U))) ? (0U == (0x100U & ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_cbus__DOT__coupler_to_debug__DOT__fragmenter_auto_out_a_bits_address) >> 3U))) : ((0x84U == (0xffU & ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_cbus__DOT__coupler_to_debug__DOT__fragmenter_auto_out_a_bits_address) >> 3U))) ? (0U == (0x100U & ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_cbus__DOT__coupler_to_debug__DOT__fragmenter_auto_out_a_bits_address) >> 3U))) : ((0x83U == (0xffU & ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_cbus__DOT__coupler_to_debug__DOT__fragmenter_auto_out_a_bits_address) >> 3U))) ? (0U == (0x100U & ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_cbus__DOT__coupler_to_debug__DOT__fragmenter_auto_out_a_bits_address) >> 3U))) : ((0x82U == (0xffU & ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_cbus__DOT__coupler_to_debug__DOT__fragmenter_auto_out_a_bits_address) >> 3U))) ? (0U == (0x100U & ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_cbus__DOT__coupler_to_debug__DOT__fragmenter_auto_out_a_bits_address) >> 3U))) : ((0x81U == (0xffU & ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_cbus__DOT__coupler_to_debug__DOT__fragmenter_auto_out_a_bits_address) >> 3U))) ? (0U == (0x100U & ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_cbus__DOT__coupler_to_debug__DOT__fragmenter_auto_out_a_bits_address) >> 3U))) : ((0x80U == (0xffU & ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_cbus__DOT__coupler_to_debug__DOT__fragmenter_auto_out_a_bits_address) >> 3U))) ? (0U == (0x100U & ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_cbus__DOT__coupler_to_debug__DOT__fragmenter_auto_out_a_bits_address) >> 3U))) : (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__debug_1__DOT__dmInner__DOT__dmInner__DOT___GEN_1637)))))))); } void VTestHarness::_settle__TOP__1035(VTestHarness__Syms* __restrict vlSymsp) { VL_DEBUG_IF(VL_DBG_MSGF("+ VTestHarness::_settle__TOP__1035\n"); ); VTestHarness* __restrict vlTOPp VL_ATTR_UNUSED = vlSymsp->TOPp; // Body vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__bootROMDomainWrapper__DOT__bootrom__DOT___GEN_130 = ((0x82U == (0x1ffU & (vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_cbus__DOT__coupler_to_bootrom__DOT__fragmenter_auto_out_a_bits_address >> 3U))) ? VL_ULL(0x30303030303030) : ((0x81U == (0x1ffU & (vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_cbus__DOT__coupler_to_bootrom__DOT__fragmenter_auto_out_a_bits_address >> 3U))) ? VL_ULL(0x384079726f6d656d) : ((0x80U == (0x1ffU & (vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_cbus__DOT__coupler_to_bootrom__DOT__fragmenter_auto_out_a_bits_address >> 3U))) ? VL_ULL(0x100000002000000) : ((0x7fU == (0x1ffU & (vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_cbus__DOT__coupler_to_bootrom__DOT__fragmenter_auto_out_a_bits_address >> 3U))) ? VL_ULL(0x3066697468) : ((0x7eU == (0x1ffU & (vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_cbus__DOT__coupler_to_bootrom__DOT__fragmenter_auto_out_a_bits_address >> 3U))) ? VL_ULL(0x2c6263751b000000) : ((0x7dU == (0x1ffU & (vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_cbus__DOT__coupler_to_bootrom__DOT__fragmenter_auto_out_a_bits_address >> 3U))) ? VL_ULL(0xa00000003000000) : ((0x7cU == (0x1ffU & (vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_cbus__DOT__coupler_to_bootrom__DOT__fragmenter_auto_out_a_bits_address >> 3U))) ? VL_ULL(0x66697468) : ((0x7bU == (0x1ffU & (vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_cbus__DOT__coupler_to_bootrom__DOT__fragmenter_auto_out_a_bits_address >> 3U))) ? VL_ULL(0x100000002000000) : ((0x7aU == (0x1ffU & (vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_cbus__DOT__coupler_to_bootrom__DOT__fragmenter_auto_out_a_bits_address >> 3U))) ? VL_ULL(0x200000002000000) : ((0x79U == (0x1ffU & (vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_cbus__DOT__coupler_to_bootrom__DOT__fragmenter_auto_out_a_bits_address >> 3U))) ? VL_ULL(0x40000008d010000) : ((0x78U == (0x1ffU & (vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_cbus__DOT__coupler_to_bootrom__DOT__fragmenter_auto_out_a_bits_address >> 3U))) ? VL_ULL(0x400000003000000) : ((0x77U == (0x1ffU & (vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_cbus__DOT__coupler_to_bootrom__DOT__fragmenter_auto_out_a_bits_address >> 3U))) ? VL_ULL(0x7801000000000000) : ((0x76U == (0x1ffU & (vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_cbus__DOT__coupler_to_bootrom__DOT__fragmenter_auto_out_a_bits_address >> 3U))) ? VL_ULL(0x300000000006374) : vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__bootROMDomainWrapper__DOT__bootrom__DOT___GEN_117))))))))))))); } void VTestHarness::_settle__TOP__1036(VTestHarness__Syms* __restrict vlSymsp) { VL_DEBUG_IF(VL_DBG_MSGF("+ VTestHarness::_settle__TOP__1036\n"); ); VTestHarness* __restrict vlTOPp VL_ATTR_UNUSED = vlSymsp->TOPp; // Variables // Begin mtask footprint all: WData/*95:0*/ __Vtemp1943[3]; // Body __Vtemp1943[0U] = (IData)((((QData)((IData)((0xfffU & (((((((((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__fpuOpt__DOT__dfma__DOT__fma__DOT__roundRawFNToRecFN__DOT__roundAnyRawFNToRecFN__DOT__sRoundedExp) & (~ (((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__fpuOpt__DOT__dfma__DOT__fma__DOT__roundRawFNToRecFN_io_in_b_isZero) | VL_GTS_III(1,14,14, 0x3ceU, (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__fpuOpt__DOT__dfma__DOT__fma__DOT__roundRawFNToRecFN__DOT__roundAnyRawFNToRecFN__DOT__sRoundedExp))) ? 0xe00U : 0U))) & (~ ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__fpuOpt__DOT__dfma__DOT__fma__DOT__roundRawFNToRecFN__DOT__roundAnyRawFNToRecFN__DOT__pegMinNonzeroMagOut) ? 0xc31U : 0U))) & (~ ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__fpuOpt__DOT__dfma__DOT__fma__DOT__roundRawFNToRecFN__DOT__roundAnyRawFNToRecFN__DOT__pegMaxFiniteMagOut) ? 0x400U : 0U))) & (~ ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__fpuOpt__DOT__dfma__DOT__fma__DOT__roundRawFNToRecFN__DOT__roundAnyRawFNToRecFN__DOT__notNaN_isInfOut) ? 0x200U : 0U))) | ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__fpuOpt__DOT__dfma__DOT__fma__DOT__roundRawFNToRecFN__DOT__roundAnyRawFNToRecFN__DOT__pegMinNonzeroMagOut) ? 0x3ceU : 0U)) | ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__fpuOpt__DOT__dfma__DOT__fma__DOT__roundRawFNToRecFN__DOT__roundAnyRawFNToRecFN__DOT__pegMaxFiniteMagOut) ? 0xbffU : 0U)) | ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__fpuOpt__DOT__dfma__DOT__fma__DOT__roundRawFNToRecFN__DOT__roundAnyRawFNToRecFN__DOT__notNaN_isInfOut) ? 0xc00U : 0U)) | ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__fpuOpt__DOT__dfma__DOT__fma__DOT__roundRawFNToRecFN__DOT__roundAnyRawFNToRecFN__DOT__isNaNOut) ? 0xe00U : 0U))))) << 0x34U) | (VL_ULL(0xfffffffffffff) & (((((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__fpuOpt__DOT__dfma__DOT__fma__DOT__roundRawFNToRecFN__DOT__roundAnyRawFNToRecFN__DOT__isNaNOut) | (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__fpuOpt__DOT__dfma__DOT__fma__DOT__roundRawFNToRecFN_io_in_b_isZero)) | VL_GTS_III(1,14,14, 0x3ceU, (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__fpuOpt__DOT__dfma__DOT__fma__DOT__roundRawFNToRecFN__DOT__roundAnyRawFNToRecFN__DOT__sRoundedExp))) ? ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__fpuOpt__DOT__dfma__DOT__fma__DOT__roundRawFNToRecFN__DOT__roundAnyRawFNToRecFN__DOT__isNaNOut) ? VL_ULL(0x8000000000000) : VL_ULL(0)) : ((1U & (IData)( (vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__fpuOpt__DOT__dfma__DOT__fma__DOT__roundRawFNToRecFN_io_in_b_sig >> 0x37U))) ? (vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__fpuOpt__DOT__dfma__DOT__fma__DOT__roundRawFNToRecFN__DOT__roundAnyRawFNToRecFN__DOT__roundedSig >> 1U) : vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__fpuOpt__DOT__dfma__DOT__fma__DOT__roundRawFNToRecFN__DOT__roundAnyRawFNToRecFN__DOT__roundedSig)) | ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__fpuOpt__DOT__dfma__DOT__fma__DOT__roundRawFNToRecFN__DOT__roundAnyRawFNToRecFN__DOT__pegMaxFiniteMagOut) ? VL_ULL(0xfffffffffffff) : VL_ULL(0)))))); __Vtemp1943[1U] = (IData)(((((QData)((IData)((0xfffU & (((((((((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__fpuOpt__DOT__dfma__DOT__fma__DOT__roundRawFNToRecFN__DOT__roundAnyRawFNToRecFN__DOT__sRoundedExp) & (~ (((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__fpuOpt__DOT__dfma__DOT__fma__DOT__roundRawFNToRecFN_io_in_b_isZero) | VL_GTS_III(1,14,14, 0x3ceU, (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__fpuOpt__DOT__dfma__DOT__fma__DOT__roundRawFNToRecFN__DOT__roundAnyRawFNToRecFN__DOT__sRoundedExp))) ? 0xe00U : 0U))) & (~ ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__fpuOpt__DOT__dfma__DOT__fma__DOT__roundRawFNToRecFN__DOT__roundAnyRawFNToRecFN__DOT__pegMinNonzeroMagOut) ? 0xc31U : 0U))) & (~ ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__fpuOpt__DOT__dfma__DOT__fma__DOT__roundRawFNToRecFN__DOT__roundAnyRawFNToRecFN__DOT__pegMaxFiniteMagOut) ? 0x400U : 0U))) & (~ ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__fpuOpt__DOT__dfma__DOT__fma__DOT__roundRawFNToRecFN__DOT__roundAnyRawFNToRecFN__DOT__notNaN_isInfOut) ? 0x200U : 0U))) | ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__fpuOpt__DOT__dfma__DOT__fma__DOT__roundRawFNToRecFN__DOT__roundAnyRawFNToRecFN__DOT__pegMinNonzeroMagOut) ? 0x3ceU : 0U)) | ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__fpuOpt__DOT__dfma__DOT__fma__DOT__roundRawFNToRecFN__DOT__roundAnyRawFNToRecFN__DOT__pegMaxFiniteMagOut) ? 0xbffU : 0U)) | ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__fpuOpt__DOT__dfma__DOT__fma__DOT__roundRawFNToRecFN__DOT__roundAnyRawFNToRecFN__DOT__notNaN_isInfOut) ? 0xc00U : 0U)) | ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__fpuOpt__DOT__dfma__DOT__fma__DOT__roundRawFNToRecFN__DOT__roundAnyRawFNToRecFN__DOT__isNaNOut) ? 0xe00U : 0U))))) << 0x34U) | (VL_ULL(0xfffffffffffff) & (((((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__fpuOpt__DOT__dfma__DOT__fma__DOT__roundRawFNToRecFN__DOT__roundAnyRawFNToRecFN__DOT__isNaNOut) | (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__fpuOpt__DOT__dfma__DOT__fma__DOT__roundRawFNToRecFN_io_in_b_isZero)) | VL_GTS_III(1,14,14, 0x3ceU, (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__fpuOpt__DOT__dfma__DOT__fma__DOT__roundRawFNToRecFN__DOT__roundAnyRawFNToRecFN__DOT__sRoundedExp))) ? ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__fpuOpt__DOT__dfma__DOT__fma__DOT__roundRawFNToRecFN__DOT__roundAnyRawFNToRecFN__DOT__isNaNOut) ? VL_ULL(0x8000000000000) : VL_ULL(0)) : ((1U & (IData)( (vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__fpuOpt__DOT__dfma__DOT__fma__DOT__roundRawFNToRecFN_io_in_b_sig >> 0x37U))) ? (vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__fpuOpt__DOT__dfma__DOT__fma__DOT__roundRawFNToRecFN__DOT__roundAnyRawFNToRecFN__DOT__roundedSig >> 1U) : vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__fpuOpt__DOT__dfma__DOT__fma__DOT__roundRawFNToRecFN__DOT__roundAnyRawFNToRecFN__DOT__roundedSig)) | ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__fpuOpt__DOT__dfma__DOT__fma__DOT__roundRawFNToRecFN__DOT__roundAnyRawFNToRecFN__DOT__pegMaxFiniteMagOut) ? VL_ULL(0xfffffffffffff) : VL_ULL(0))))) >> 0x20U)); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__fpuOpt__DOT__dfma__DOT__fma__DOT__roundRawFNToRecFN__DOT__roundAnyRawFNToRecFN_io_out[0U] = __Vtemp1943[0U]; vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__fpuOpt__DOT__dfma__DOT__fma__DOT__roundRawFNToRecFN__DOT__roundAnyRawFNToRecFN_io_out[1U] = __Vtemp1943[1U]; vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__fpuOpt__DOT__dfma__DOT__fma__DOT__roundRawFNToRecFN__DOT__roundAnyRawFNToRecFN_io_out[2U] = ((~ (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__fpuOpt__DOT__dfma__DOT__fma__DOT__roundRawFNToRecFN__DOT__roundAnyRawFNToRecFN__DOT__isNaNOut)) & (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__fpuOpt__DOT__dfma__DOT__fma__DOT__roundRawFNToRecFN_io_in_b_sign)); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__cork__DOT__monitor__DOT___GEN_58 = ((5U == (7U & (vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__cork__DOT__monitor__DOT___a_opcode_lookup_T_1 >> 1U))) ? 2U : ((4U == (7U & (vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__cork__DOT__monitor__DOT___a_opcode_lookup_T_1 >> 1U))) ? 1U : ( (3U == (7U & (vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__cork__DOT__monitor__DOT___a_opcode_lookup_T_1 >> 1U))) ? 1U : ((2U == (7U & (vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__cork__DOT__monitor__DOT___a_opcode_lookup_T_1 >> 1U))) ? 1U : 0U)))); } void VTestHarness::_settle__TOP__1037(VTestHarness__Syms* __restrict vlSymsp) { VL_DEBUG_IF(VL_DBG_MSGF("+ VTestHarness::_settle__TOP__1037\n"); ); VTestHarness* __restrict vlTOPp VL_ATTR_UNUSED = vlSymsp->TOPp; // Body vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__cork__DOT__monitor__DOT__same_cycle_resp = ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__cork__DOT__monitor__DOT___T_1257) & (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__cork__DOT__monitor__DOT___same_cycle_resp_T_2)); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__cork__DOT__monitor__DOT__same_cycle_resp_1 = ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__cork__DOT__monitor__DOT___T_1344) & (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__cork__DOT__monitor__DOT___same_cycle_resp_T_8)); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__cork__DOT__monitor_io_in_d_bits_opcode = ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__cork__DOT___T_144) | (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__cork__DOT___T_143)); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__cork__DOT__sink_ACancel_1_bits_opcode = ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__cork__DOT___T_144) | (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__cork__DOT___T_143)); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__dcache__DOT__data__DOT__data_arrays_0__DOT__data_arrays_0_ext_RW0_wmask = (((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__dcache__DOT__data__DOT__data_arrays_0__DOT___GEN_58) << 0x10U) | (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__dcache__DOT__data__DOT__data_arrays_0__DOT___GEN_59)); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__dcache__DOT__dataArb_io_out_valid = ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__dcache__DOT__dataArb__DOT___grant_T_1) | ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__dcacheArb_io_mem_req_valid) & (~ (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__dcache__DOT___dataArb_io_in_3_valid_res_T_2)))); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__buffer_1__DOT__bundleOut_0_e_q__DOT__do_enq = ((~ (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__buffer_1__DOT__bundleOut_0_e_q__DOT__full)) & (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__dcache_auto_out_e_valid)); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__dcache_auto_out_d_ready = ((~ (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__dcache__DOT___T_294)) & (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__dcache__DOT___GEN_233)); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__dcache__DOT___T_271 = (((~ (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__dcache__DOT___T_294)) & (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__dcache__DOT___GEN_233)) & (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__tlMasterXbar_auto_in_0_d_valid)); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__core__DOT__ll_wen = ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__core__DOT___T_117) | ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__core__DOT__div_io_resp_ready) & (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__core__DOT__div_io_resp_valid))); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__tlMasterXbar__DOT___readys_mask_T = ((~ (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__tlMasterXbar__DOT___readys_readys_T_2)) & (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__tlMasterXbar__DOT__readys_filter_lo)); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__tlMasterXbar__DOT__allowed_1 = (1U & ((0U == (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__tlMasterXbar__DOT__beatsLeft)) ? (~ ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__tlMasterXbar__DOT___readys_readys_T_2) >> 1U)) : (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__tlMasterXbar__DOT__state_1))); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__tlMasterXbar__DOT__earlyWinner_1 = ((~ ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__tlMasterXbar__DOT___readys_readys_T_2) >> 1U)) & (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__frontend__DOT__icache_auto_master_out_a_valid)); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__tlMasterXbar__DOT__earlyWinner_0 = ((~ (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__tlMasterXbar__DOT___readys_readys_T_2)) & (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__dcache_auto_out_a_valid)); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__tlMasterXbar__DOT__allowed_0 = (1U & ((0U == (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__tlMasterXbar__DOT__beatsLeft)) ? (~ (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__tlMasterXbar__DOT___readys_readys_T_2)) : (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__tlMasterXbar__DOT__state_0))); } void VTestHarness::_settle__TOP__1038(VTestHarness__Syms* __restrict vlSymsp) { VL_DEBUG_IF(VL_DBG_MSGF("+ VTestHarness::_settle__TOP__1038\n"); ); VTestHarness* __restrict vlTOPp VL_ATTR_UNUSED = vlSymsp->TOPp; // Body vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_cbus__DOT__atomics__DOT__monitor__DOT___T_423 = (((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__system_bus_xbar_auto_out_0_a_bits_mask) == (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_cbus__DOT__atomics__DOT__monitor__DOT__mask)) | (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__dividerOnlyClockGenerator_3__DOT__bundleOut_0_member_allClocks_subsystem_cbus_0_reset_catcher_io_sync_reset)); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_cbus__DOT__atomics__DOT__monitor__DOT___T_599 = ((0U == ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__system_bus_xbar_auto_out_0_a_bits_mask) & (~ (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_cbus__DOT__atomics__DOT__monitor__DOT__mask)))) | (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__dividerOnlyClockGenerator_3__DOT__bundleOut_0_member_allClocks_subsystem_cbus_0_reset_catcher_io_sync_reset)); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_cbus__DOT__atomics__DOT__source_i_valid = ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__system_bus_xbar_auto_out_0_a_valid) & (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_cbus__DOT__atomics__DOT__a_allow)); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__l2__DOT__monitor__DOT__mask = ((((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__l2__DOT__monitor__DOT__mask_acc_5) | ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__l2__DOT__monitor__DOT__mask_eq_5) & vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__InclusiveCache_inner_TLBuffer__DOT__bundleOut_0_a_q_io_deq_bits_address)) << 7U) | ((((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__l2__DOT__monitor__DOT__mask_acc_5) | ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__l2__DOT__monitor__DOT__mask_eq_5) & (~ vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__InclusiveCache_inner_TLBuffer__DOT__bundleOut_0_a_q_io_deq_bits_address))) << 6U) | ((((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__l2__DOT__monitor__DOT__mask_acc_4) | ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__l2__DOT__monitor__DOT__mask_eq_4) & vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__InclusiveCache_inner_TLBuffer__DOT__bundleOut_0_a_q_io_deq_bits_address)) << 5U) | ((((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__l2__DOT__monitor__DOT__mask_acc_4) | ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__l2__DOT__monitor__DOT__mask_eq_4) & (~ vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__InclusiveCache_inner_TLBuffer__DOT__bundleOut_0_a_q_io_deq_bits_address))) << 4U) | ((((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__l2__DOT__monitor__DOT__mask_acc_3) | ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__l2__DOT__monitor__DOT__mask_eq_3) & vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__InclusiveCache_inner_TLBuffer__DOT__bundleOut_0_a_q_io_deq_bits_address)) << 3U) | ((((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__l2__DOT__monitor__DOT__mask_acc_3) | ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__l2__DOT__monitor__DOT__mask_eq_3) & (~ vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__InclusiveCache_inner_TLBuffer__DOT__bundleOut_0_a_q_io_deq_bits_address))) << 2U) | ((((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__l2__DOT__monitor__DOT__mask_acc_2) | ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__l2__DOT__monitor__DOT__mask_eq_2) & vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__InclusiveCache_inner_TLBuffer__DOT__bundleOut_0_a_q_io_deq_bits_address)) << 1U) | ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__l2__DOT__monitor__DOT__mask_acc_2) | ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__l2__DOT__monitor__DOT__mask_eq_2) & (~ vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__InclusiveCache_inner_TLBuffer__DOT__bundleOut_0_a_q_io_deq_bits_address)))))))))); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__l2__DOT__mods_0__DOT__request_bits_offset = (0x3fU & ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__l2__DOT__mods_0__DOT__sinkC_io_req_valid) ? vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__l2__DOT__mods_0__DOT__sinkC__DOT__offset : (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__l2__DOT__mods_0__DOT___request_bits_T_offset))); } void VTestHarness::_settle__TOP__1039(VTestHarness__Syms* __restrict vlSymsp) { VL_DEBUG_IF(VL_DBG_MSGF("+ VTestHarness::_settle__TOP__1039\n"); ); VTestHarness* __restrict vlTOPp VL_ATTR_UNUSED = vlSymsp->TOPp; // Body vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__l2__DOT__mods_0__DOT__request_bits_tag = (0x1fffU & ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__l2__DOT__mods_0__DOT__sinkC_io_req_valid) ? (vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__l2__DOT__mods_0__DOT__sinkC__DOT__offset >> 0x10U) : (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__l2__DOT__mods_0__DOT___request_bits_T_tag))); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__l2__DOT__mods_0__DOT__setMatches = ((((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__l2__DOT__mods_0__DOT__c_mshr__DOT__request_valid) & ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__l2__DOT__mods_0__DOT__c_mshr__DOT__request_set) == (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__l2__DOT__mods_0__DOT__request_bits_set))) << 6U) | ((((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__l2__DOT__mods_0__DOT__bc_mshr__DOT__request_valid) & ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__l2__DOT__mods_0__DOT__bc_mshr__DOT__request_set) == (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__l2__DOT__mods_0__DOT__request_bits_set))) << 5U) | ((((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__l2__DOT__mods_0__DOT__abc_mshrs_4__DOT__request_valid) & ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__l2__DOT__mods_0__DOT__abc_mshrs_4__DOT__request_set) == (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__l2__DOT__mods_0__DOT__request_bits_set))) << 4U) | ((((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__l2__DOT__mods_0__DOT__abc_mshrs_3__DOT__request_valid) & ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__l2__DOT__mods_0__DOT__abc_mshrs_3__DOT__request_set) == (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__l2__DOT__mods_0__DOT__request_bits_set))) << 3U) | ((((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__l2__DOT__mods_0__DOT__abc_mshrs_2__DOT__request_valid) & ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__l2__DOT__mods_0__DOT__abc_mshrs_2__DOT__request_set) == (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__l2__DOT__mods_0__DOT__request_bits_set))) << 2U) | ((((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__l2__DOT__mods_0__DOT__abc_mshrs_1__DOT__request_valid) & ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__l2__DOT__mods_0__DOT__abc_mshrs_1__DOT__request_set) == (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__l2__DOT__mods_0__DOT__request_bits_set))) << 1U) | ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__l2__DOT__mods_0__DOT__abc_mshrs_0__DOT__request_valid) & ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__l2__DOT__mods_0__DOT__abc_mshrs_0__DOT__request_set) == (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__l2__DOT__mods_0__DOT__request_bits_set))))))))); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_mbus__DOT__coupler_to_memory_controller_port_named_axi4__DOT__tl2axi4__DOT__queue_arw_deq__DOT___GEN_18 = ((~ (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_mbus__DOT__coupler_to_memory_controller_port_named_axi4__DOT__tl2axi4__DOT__queue_arw_deq_io_deq_ready)) & (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_mbus__DOT__coupler_to_memory_controller_port_named_axi4__DOT__tl2axi4__DOT__queue_arw_deq__DOT___do_enq_T)); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_mbus__DOT__subsystem_mbus_xbar__DOT__monitor__DOT___T_625 = ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_mbus__DOT__subsystem_mbus_xbar__DOT__monitor__DOT___a_first_T) & (0U == (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_mbus__DOT__subsystem_mbus_xbar__DOT__monitor__DOT__a_first_counter))); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_mbus__DOT__subsystem_mbus_xbar__DOT__monitor__DOT___T_657 = ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_mbus__DOT__subsystem_mbus_xbar__DOT__monitor__DOT___a_first_T) & (0U == (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_mbus__DOT__subsystem_mbus_xbar__DOT__monitor__DOT__a_first_counter_1))); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_mbus__DOT__fixer__DOT__monitor__DOT___T_625 = ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_mbus__DOT__fixer__DOT__monitor__DOT___a_first_T) & (0U == (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_mbus__DOT__fixer__DOT__monitor__DOT__a_first_counter))); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_mbus__DOT__fixer__DOT__monitor__DOT___T_657 = ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_mbus__DOT__fixer__DOT__monitor__DOT___a_first_T) & (0U == (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_mbus__DOT__fixer__DOT__monitor__DOT__a_first_counter_1))); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__binder__DOT__monitor__DOT___T_625 = ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__binder__DOT__monitor__DOT___a_first_T) & (0U == (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__binder__DOT__monitor__DOT__a_first_counter))); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__binder__DOT__monitor__DOT___T_657 = ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__binder__DOT__monitor__DOT___a_first_T) & (0U == (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__binder__DOT__monitor__DOT__a_first_counter_1))); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__cork_auto_in_c_ready = (1U & ((6U == (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__l2__DOT__mods_0__DOT__sourceC__DOT__queue__DOT__ram_opcode_io_deq_bits_MPORT_data)) ? (~ (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__cork__DOT__q__DOT__full)) : (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__cork__DOT__out_ready))); } void VTestHarness::_settle__TOP__1040(VTestHarness__Syms* __restrict vlSymsp) { VL_DEBUG_IF(VL_DBG_MSGF("+ VTestHarness::_settle__TOP__1040\n"); ); VTestHarness* __restrict vlTOPp VL_ATTR_UNUSED = vlSymsp->TOPp; // Variables // Begin mtask footprint all: WData/*95:0*/ __Vtemp1945[3]; WData/*95:0*/ __Vtemp1946[3]; // Body vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__cork__DOT__monitor_io_in_c_ready = (1U & ((6U == (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__l2__DOT__mods_0__DOT__sourceC__DOT__queue__DOT__ram_opcode_io_deq_bits_MPORT_data)) ? (~ (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__cork__DOT__q__DOT__full)) : (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__cork__DOT__out_ready))); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__l2__DOT__mods_0__DOT__sourceA__DOT__io_a_q__DOT__do_deq = (1U & (((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__cork__DOT__toD) ? (~ (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__cork__DOT__q_1__DOT__full)) : (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__cork__DOT__out_1_ready)) & (~ (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__l2__DOT__mods_0__DOT__sourceA__DOT__io_a_q__DOT__empty)))); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__cork__DOT__monitor_io_in_a_ready = (1U & ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__cork__DOT__toD) ? (~ (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__cork__DOT__q_1__DOT__full)) : (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__cork__DOT__out_1_ready))); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_mbus__DOT__coupler_to_memory_controller_port_named_axi4__DOT__tl2axi4__DOT__deq__DOT___T = (((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_mbus__DOT__coupler_to_memory_controller_port_named_axi4__DOT__tl2axi4__DOT__deq__DOT__maybe_full) ? (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_mbus__DOT__coupler_to_memory_controller_port_named_axi4__DOT__tl2axi4__DOT__deq__DOT___do_enq_T) : (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_mbus__DOT__coupler_to_memory_controller_port_named_axi4__DOT__tl2axi4__DOT__deq__DOT___GEN_9)) != ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_mbus__DOT__coupler_to_memory_controller_port_named_axi4__DOT__tl2axi4__DOT__deq__DOT__maybe_full) & ((IData)(vlTOPp->TestHarness__DOT__simdram__DOT_____05Fw_ready_reg) & (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_mbus__DOT__coupler_to_memory_controller_port_named_axi4__DOT__tl2axi4__DOT__deq_io_deq_valid)))); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_mbus__DOT__coupler_to_memory_controller_port_named_axi4__DOT__axi4yank__DOT___T_62 = ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_mbus__DOT__coupler_to_memory_controller_port_named_axi4__DOT__tl2axi4_auto_out_aw_valid) & (IData)(vlTOPp->TestHarness__DOT__simdram__DOT_____05Faw_ready_reg)); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_mbus__DOT__coupler_to_memory_controller_port_named_axi4__DOT__axi4yank__DOT___T_8 = ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_mbus__DOT__coupler_to_memory_controller_port_named_axi4__DOT__tl2axi4_auto_out_ar_valid) & (IData)(vlTOPp->TestHarness__DOT__simdram__DOT_____05Far_ready_reg)); __Vtemp1945[0U] = (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__core__DOT__alu__DOT__shin); __Vtemp1945[1U] = (IData)((vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__core__DOT__alu__DOT__shin >> 0x20U)); __Vtemp1945[2U] = (1U & (((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__core__DOT__ex_ctrl_alu_fn) >> 3U) & (IData)((vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__core__DOT__alu__DOT__shin >> 0x3fU)))); VL_SHIFTRS_WWI(65,65,6, __Vtemp1946, __Vtemp1945, ((((IData)((vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__core__DOT__alu_io_in2 >> 5U)) & (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__core__DOT__ex_ctrl_alu_dw)) << 5U) | (0x1fU & (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__core__DOT__alu_io_in2)))); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__core__DOT__alu__DOT___shout_r_T_4[0U] = __Vtemp1946[0U]; vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__core__DOT__alu__DOT___shout_r_T_4[1U] = __Vtemp1946[1U]; vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__core__DOT__alu__DOT___shout_r_T_4[2U] = (1U & __Vtemp1946[2U]); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__l2__DOT__mods_0__DOT__abc_mshrs_0__DOT___T_58 = ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__l2__DOT__mods_0__DOT__abc_mshrs_0__DOT___io_schedule_bits_c_valid_T_1) & (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__l2__DOT__mods_0__DOT__mshr_selectOH)); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__l2__DOT__mods_0__DOT__abc_mshrs_0__DOT___T_93 = ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__l2__DOT__mods_0__DOT__abc_mshrs_0__DOT___io_schedule_bits_dir_valid_T_3) & (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__l2__DOT__mods_0__DOT__mshr_selectOH)); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__l2__DOT__mods_0__DOT__abc_mshrs_1__DOT___T_58 = ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__l2__DOT__mods_0__DOT__abc_mshrs_1__DOT___io_schedule_bits_c_valid_T_1) & ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__l2__DOT__mods_0__DOT__mshr_selectOH) >> 1U)); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__l2__DOT__mods_0__DOT__abc_mshrs_1__DOT___T_93 = ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__l2__DOT__mods_0__DOT__abc_mshrs_1__DOT___io_schedule_bits_dir_valid_T_3) & ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__l2__DOT__mods_0__DOT__mshr_selectOH) >> 1U)); } void VTestHarness::_settle__TOP__1041(VTestHarness__Syms* __restrict vlSymsp) { VL_DEBUG_IF(VL_DBG_MSGF("+ VTestHarness::_settle__TOP__1041\n"); ); VTestHarness* __restrict vlTOPp VL_ATTR_UNUSED = vlSymsp->TOPp; // Body vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__l2__DOT__mods_0__DOT__abc_mshrs_2__DOT___T_58 = ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__l2__DOT__mods_0__DOT__abc_mshrs_2__DOT___io_schedule_bits_c_valid_T_1) & ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__l2__DOT__mods_0__DOT__mshr_selectOH) >> 2U)); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__l2__DOT__mods_0__DOT__abc_mshrs_2__DOT___T_93 = ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__l2__DOT__mods_0__DOT__abc_mshrs_2__DOT___io_schedule_bits_dir_valid_T_3) & ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__l2__DOT__mods_0__DOT__mshr_selectOH) >> 2U)); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__l2__DOT__mods_0__DOT__abc_mshrs_3__DOT___T_58 = ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__l2__DOT__mods_0__DOT__abc_mshrs_3__DOT___io_schedule_bits_c_valid_T_1) & ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__l2__DOT__mods_0__DOT__mshr_selectOH) >> 3U)); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__l2__DOT__mods_0__DOT__abc_mshrs_3__DOT___T_93 = ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__l2__DOT__mods_0__DOT__abc_mshrs_3__DOT___io_schedule_bits_dir_valid_T_3) & ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__l2__DOT__mods_0__DOT__mshr_selectOH) >> 3U)); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__l2__DOT__mods_0__DOT__abc_mshrs_4__DOT___T_58 = ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__l2__DOT__mods_0__DOT__abc_mshrs_4__DOT___io_schedule_bits_c_valid_T_1) & ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__l2__DOT__mods_0__DOT__mshr_selectOH) >> 4U)); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__l2__DOT__mods_0__DOT__abc_mshrs_4__DOT___T_93 = ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__l2__DOT__mods_0__DOT__abc_mshrs_4__DOT___io_schedule_bits_dir_valid_T_3) & ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__l2__DOT__mods_0__DOT__mshr_selectOH) >> 4U)); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__l2__DOT__mods_0__DOT__bc_mshr__DOT___T_58 = ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__l2__DOT__mods_0__DOT__bc_mshr__DOT___io_schedule_bits_c_valid_T_1) & ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__l2__DOT__mods_0__DOT__mshr_selectOH) >> 5U)); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__l2__DOT__mods_0__DOT__bc_mshr__DOT___T_93 = ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__l2__DOT__mods_0__DOT__bc_mshr__DOT___io_schedule_bits_dir_valid_T_3) & ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__l2__DOT__mods_0__DOT__mshr_selectOH) >> 5U)); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__l2__DOT__mods_0__DOT__c_mshr__DOT___T_58 = ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__l2__DOT__mods_0__DOT__c_mshr__DOT___io_schedule_bits_c_valid_T_1) & ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__l2__DOT__mods_0__DOT__mshr_selectOH) >> 6U)); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__l2__DOT__mods_0__DOT__c_mshr__DOT___T_93 = ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__l2__DOT__mods_0__DOT__c_mshr__DOT___io_schedule_bits_dir_valid_T_3) & ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__l2__DOT__mods_0__DOT__mshr_selectOH) >> 6U)); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__l2__DOT__mods_0__DOT__sourceC_io_req_bits_param = ((((((((1U & (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__l2__DOT__mods_0__DOT__mshr_selectOH)) ? ((1U == (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__l2__DOT__mods_0__DOT__abc_mshrs_0__DOT__meta_state)) ? 2U : 1U) : 0U) | ((2U & (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__l2__DOT__mods_0__DOT__mshr_selectOH)) ? ((1U == (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__l2__DOT__mods_0__DOT__abc_mshrs_1__DOT__meta_state)) ? 2U : 1U) : 0U)) | ((4U & (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__l2__DOT__mods_0__DOT__mshr_selectOH)) ? ((1U == (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__l2__DOT__mods_0__DOT__abc_mshrs_2__DOT__meta_state)) ? 2U : 1U) : 0U)) | ((8U & (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__l2__DOT__mods_0__DOT__mshr_selectOH)) ? ((1U == (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__l2__DOT__mods_0__DOT__abc_mshrs_3__DOT__meta_state)) ? 2U : 1U) : 0U)) | ((0x10U & (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__l2__DOT__mods_0__DOT__mshr_selectOH)) ? ((1U == (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__l2__DOT__mods_0__DOT__abc_mshrs_4__DOT__meta_state)) ? 2U : 1U) : 0U)) | ((0x20U & (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__l2__DOT__mods_0__DOT__mshr_selectOH)) ? ((1U == (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__l2__DOT__mods_0__DOT__bc_mshr__DOT__meta_state)) ? 2U : 1U) : 0U)) | ( (0x40U & (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__l2__DOT__mods_0__DOT__mshr_selectOH)) ? ((1U == (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__l2__DOT__mods_0__DOT__c_mshr__DOT__meta_state)) ? 2U : 1U) : 0U)); } void VTestHarness::_settle__TOP__1042(VTestHarness__Syms* __restrict vlSymsp) { VL_DEBUG_IF(VL_DBG_MSGF("+ VTestHarness::_settle__TOP__1042\n"); ); VTestHarness* __restrict vlTOPp VL_ATTR_UNUSED = vlSymsp->TOPp; // Body vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__l2__DOT__mods_0__DOT__sourceC_io_req_bits_tag = ((((((((1U & (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__l2__DOT__mods_0__DOT__mshr_selectOH)) ? (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__l2__DOT__mods_0__DOT__abc_mshrs_0__DOT__meta_tag) : 0U) | ((2U & (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__l2__DOT__mods_0__DOT__mshr_selectOH)) ? (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__l2__DOT__mods_0__DOT__abc_mshrs_1__DOT__meta_tag) : 0U)) | ((4U & (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__l2__DOT__mods_0__DOT__mshr_selectOH)) ? (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__l2__DOT__mods_0__DOT__abc_mshrs_2__DOT__meta_tag) : 0U)) | ((8U & (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__l2__DOT__mods_0__DOT__mshr_selectOH)) ? (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__l2__DOT__mods_0__DOT__abc_mshrs_3__DOT__meta_tag) : 0U)) | ((0x10U & (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__l2__DOT__mods_0__DOT__mshr_selectOH)) ? (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__l2__DOT__mods_0__DOT__abc_mshrs_4__DOT__meta_tag) : 0U)) | ((0x20U & (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__l2__DOT__mods_0__DOT__mshr_selectOH)) ? (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__l2__DOT__mods_0__DOT__bc_mshr__DOT__meta_tag) : 0U)) | ((0x40U & (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__l2__DOT__mods_0__DOT__mshr_selectOH)) ? (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__l2__DOT__mods_0__DOT__c_mshr__DOT__meta_tag) : 0U)); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__l2__DOT__mods_0__DOT__sourceD_io_req_bits_prio_2 = ((((((((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__l2__DOT__mods_0__DOT__mshr_selectOH) & (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__l2__DOT__mods_0__DOT__abc_mshrs_0__DOT__request_prio_2)) | (((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__l2__DOT__mods_0__DOT__mshr_selectOH) >> 1U) & (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__l2__DOT__mods_0__DOT__abc_mshrs_1__DOT__request_prio_2))) | (((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__l2__DOT__mods_0__DOT__mshr_selectOH) >> 2U) & (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__l2__DOT__mods_0__DOT__abc_mshrs_2__DOT__request_prio_2))) | (((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__l2__DOT__mods_0__DOT__mshr_selectOH) >> 3U) & (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__l2__DOT__mods_0__DOT__abc_mshrs_3__DOT__request_prio_2))) | (((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__l2__DOT__mods_0__DOT__mshr_selectOH) >> 4U) & (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__l2__DOT__mods_0__DOT__abc_mshrs_4__DOT__request_prio_2))) | (((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__l2__DOT__mods_0__DOT__mshr_selectOH) >> 5U) & (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__l2__DOT__mods_0__DOT__bc_mshr__DOT__request_prio_2))) | (((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__l2__DOT__mods_0__DOT__mshr_selectOH) >> 6U) & (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__l2__DOT__mods_0__DOT__c_mshr__DOT__request_prio_2))); } void VTestHarness::_settle__TOP__1043(VTestHarness__Syms* __restrict vlSymsp) { VL_DEBUG_IF(VL_DBG_MSGF("+ VTestHarness::_settle__TOP__1043\n"); ); VTestHarness* __restrict vlTOPp VL_ATTR_UNUSED = vlSymsp->TOPp; // Body vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__l2__DOT__mods_0__DOT__sourceD_io_req_bits_source = ((((((((1U & (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__l2__DOT__mods_0__DOT__mshr_selectOH)) ? (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__l2__DOT__mods_0__DOT__abc_mshrs_0__DOT__request_source) : 0U) | ((2U & (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__l2__DOT__mods_0__DOT__mshr_selectOH)) ? (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__l2__DOT__mods_0__DOT__abc_mshrs_1__DOT__request_source) : 0U)) | ((4U & (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__l2__DOT__mods_0__DOT__mshr_selectOH)) ? (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__l2__DOT__mods_0__DOT__abc_mshrs_2__DOT__request_source) : 0U)) | ((8U & (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__l2__DOT__mods_0__DOT__mshr_selectOH)) ? (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__l2__DOT__mods_0__DOT__abc_mshrs_3__DOT__request_source) : 0U)) | ((0x10U & (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__l2__DOT__mods_0__DOT__mshr_selectOH)) ? (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__l2__DOT__mods_0__DOT__abc_mshrs_4__DOT__request_source) : 0U)) | ((0x20U & (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__l2__DOT__mods_0__DOT__mshr_selectOH)) ? (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__l2__DOT__mods_0__DOT__bc_mshr__DOT__request_source) : 0U)) | ((0x40U & (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__l2__DOT__mods_0__DOT__mshr_selectOH)) ? (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__l2__DOT__mods_0__DOT__c_mshr__DOT__request_source) : 0U)); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__l2__DOT__mods_0__DOT__sourceD_io_req_bits_put = ((((((((1U & (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__l2__DOT__mods_0__DOT__mshr_selectOH)) ? (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__l2__DOT__mods_0__DOT__abc_mshrs_0__DOT__request_put) : 0U) | ((2U & (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__l2__DOT__mods_0__DOT__mshr_selectOH)) ? (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__l2__DOT__mods_0__DOT__abc_mshrs_1__DOT__request_put) : 0U)) | ((4U & (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__l2__DOT__mods_0__DOT__mshr_selectOH)) ? (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__l2__DOT__mods_0__DOT__abc_mshrs_2__DOT__request_put) : 0U)) | ((8U & (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__l2__DOT__mods_0__DOT__mshr_selectOH)) ? (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__l2__DOT__mods_0__DOT__abc_mshrs_3__DOT__request_put) : 0U)) | ((0x10U & (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__l2__DOT__mods_0__DOT__mshr_selectOH)) ? (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__l2__DOT__mods_0__DOT__abc_mshrs_4__DOT__request_put) : 0U)) | ((0x20U & (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__l2__DOT__mods_0__DOT__mshr_selectOH)) ? (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__l2__DOT__mods_0__DOT__bc_mshr__DOT__request_put) : 0U)) | ((0x40U & (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__l2__DOT__mods_0__DOT__mshr_selectOH)) ? (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__l2__DOT__mods_0__DOT__c_mshr__DOT__request_put) : 0U)); } void VTestHarness::_settle__TOP__1044(VTestHarness__Syms* __restrict vlSymsp) { VL_DEBUG_IF(VL_DBG_MSGF("+ VTestHarness::_settle__TOP__1044\n"); ); VTestHarness* __restrict vlTOPp VL_ATTR_UNUSED = vlSymsp->TOPp; // Body vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__l2__DOT__mods_0__DOT__sourceD_io_req_bits_bad = ((((((((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__l2__DOT__mods_0__DOT__mshr_selectOH) & (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__l2__DOT__mods_0__DOT__abc_mshrs_0__DOT__bad_grant)) | (((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__l2__DOT__mods_0__DOT__mshr_selectOH) >> 1U) & (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__l2__DOT__mods_0__DOT__abc_mshrs_1__DOT__bad_grant))) | (((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__l2__DOT__mods_0__DOT__mshr_selectOH) >> 2U) & (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__l2__DOT__mods_0__DOT__abc_mshrs_2__DOT__bad_grant))) | (((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__l2__DOT__mods_0__DOT__mshr_selectOH) >> 3U) & (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__l2__DOT__mods_0__DOT__abc_mshrs_3__DOT__bad_grant))) | (((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__l2__DOT__mods_0__DOT__mshr_selectOH) >> 4U) & (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__l2__DOT__mods_0__DOT__abc_mshrs_4__DOT__bad_grant))) | (((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__l2__DOT__mods_0__DOT__mshr_selectOH) >> 5U) & (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__l2__DOT__mods_0__DOT__bc_mshr__DOT__bad_grant))) | (((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__l2__DOT__mods_0__DOT__mshr_selectOH) >> 6U) & (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__l2__DOT__mods_0__DOT__c_mshr__DOT__bad_grant))); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__l2__DOT__mods_0__DOT___robin_filter_T_1 = ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__l2__DOT__mods_0__DOT__mshr_selectOH) | (0x3fU & ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__l2__DOT__mods_0__DOT__mshr_selectOH) >> 1U))); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__l2__DOT__mods_0__DOT__sourceA__DOT__a_bits_address_base = ((((((((((1U & (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__l2__DOT__mods_0__DOT__mshr_selectOH)) ? (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__l2__DOT__mods_0__DOT__abc_mshrs_0__DOT__request_tag) : 0U) | ((2U & (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__l2__DOT__mods_0__DOT__mshr_selectOH)) ? (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__l2__DOT__mods_0__DOT__abc_mshrs_1__DOT__request_tag) : 0U)) | ((4U & (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__l2__DOT__mods_0__DOT__mshr_selectOH)) ? (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__l2__DOT__mods_0__DOT__abc_mshrs_2__DOT__request_tag) : 0U)) | ( (8U & (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__l2__DOT__mods_0__DOT__mshr_selectOH)) ? (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__l2__DOT__mods_0__DOT__abc_mshrs_3__DOT__request_tag) : 0U)) | ((0x10U & (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__l2__DOT__mods_0__DOT__mshr_selectOH)) ? (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__l2__DOT__mods_0__DOT__abc_mshrs_4__DOT__request_tag) : 0U)) | ((0x20U & (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__l2__DOT__mods_0__DOT__mshr_selectOH)) ? (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__l2__DOT__mods_0__DOT__bc_mshr__DOT__request_tag) : 0U)) | ((0x40U & (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__l2__DOT__mods_0__DOT__mshr_selectOH)) ? (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__l2__DOT__mods_0__DOT__c_mshr__DOT__request_tag) : 0U)) << 0x10U) | (((((((((1U & (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__l2__DOT__mods_0__DOT__mshr_selectOH)) ? (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__l2__DOT__mods_0__DOT__abc_mshrs_0__DOT__request_set) : 0U) | ((2U & (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__l2__DOT__mods_0__DOT__mshr_selectOH)) ? (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__l2__DOT__mods_0__DOT__abc_mshrs_1__DOT__request_set) : 0U)) | ((4U & (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__l2__DOT__mods_0__DOT__mshr_selectOH)) ? (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__l2__DOT__mods_0__DOT__abc_mshrs_2__DOT__request_set) : 0U)) | ((8U & (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__l2__DOT__mods_0__DOT__mshr_selectOH)) ? (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__l2__DOT__mods_0__DOT__abc_mshrs_3__DOT__request_set) : 0U)) | ((0x10U & (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__l2__DOT__mods_0__DOT__mshr_selectOH)) ? (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__l2__DOT__mods_0__DOT__abc_mshrs_4__DOT__request_set) : 0U)) | ((0x20U & (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__l2__DOT__mods_0__DOT__mshr_selectOH)) ? (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__l2__DOT__mods_0__DOT__bc_mshr__DOT__request_set) : 0U)) | ((0x40U & (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__l2__DOT__mods_0__DOT__mshr_selectOH)) ? (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__l2__DOT__mods_0__DOT__c_mshr__DOT__request_set) : 0U)) << 6U)); } void VTestHarness::_settle__TOP__1057(VTestHarness__Syms* __restrict vlSymsp) { VL_DEBUG_IF(VL_DBG_MSGF("+ VTestHarness::_settle__TOP__1057\n"); ); VTestHarness* __restrict vlTOPp VL_ATTR_UNUSED = vlSymsp->TOPp; // Body vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__l2__DOT__mods_0__DOT__schedule_reload = ((((((((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__l2__DOT__mods_0__DOT__mshr_selectOH) & (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__l2__DOT__mods_0__DOT__abc_mshrs_0_io_schedule_bits_reload)) | (((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__l2__DOT__mods_0__DOT__mshr_selectOH) >> 1U) & (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__l2__DOT__mods_0__DOT__abc_mshrs_1_io_schedule_bits_reload))) | (((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__l2__DOT__mods_0__DOT__mshr_selectOH) >> 2U) & (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__l2__DOT__mods_0__DOT__abc_mshrs_2_io_schedule_bits_reload))) | (((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__l2__DOT__mods_0__DOT__mshr_selectOH) >> 3U) & (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__l2__DOT__mods_0__DOT__abc_mshrs_3_io_schedule_bits_reload))) | (((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__l2__DOT__mods_0__DOT__mshr_selectOH) >> 4U) & (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__l2__DOT__mods_0__DOT__abc_mshrs_4_io_schedule_bits_reload))) | (((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__l2__DOT__mods_0__DOT__mshr_selectOH) >> 5U) & (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__l2__DOT__mods_0__DOT__bc_mshr_io_schedule_bits_reload))) | (((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__l2__DOT__mods_0__DOT__mshr_selectOH) >> 6U) & (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__l2__DOT__mods_0__DOT__c_mshr_io_schedule_bits_reload))); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__l2__DOT__mods_0__DOT__selected_requests = ((((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__l2__DOT__mods_0__DOT__mshr_selectOH) << 0xeU) | (((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__l2__DOT__mods_0__DOT__mshr_selectOH) << 7U) | (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__l2__DOT__mods_0__DOT__mshr_selectOH))) & vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__l2__DOT__mods_0__DOT__requests__DOT__valid); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__l2__DOT__mods_0__DOT___pop_index_T_1 = (0x1fffffU & ((((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__l2__DOT__mods_0__DOT__mshr_selectOH) << 0xeU) | (((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__l2__DOT__mods_0__DOT__mshr_selectOH) << 7U) | (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__l2__DOT__mods_0__DOT__mshr_selectOH))) & (~ (((~ vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__l2__DOT__mods_0__DOT__requests__DOT__valid) | (0x3fffU & (vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__l2__DOT__mods_0__DOT__requests__DOT__valid >> 7U))) | (0x7fU & (vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_l2_wrapper__DOT__l2__DOT__mods_0__DOT__requests__DOT__valid >> 0xeU)))))); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__core__DOT__csr__DOT___io_decode_0_read_illegal_T_310 = (1U & ((((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__core__DOT__csr__DOT___io_decode_0_read_illegal_T_1) | (~ (((((((((((((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__core__DOT__csr__DOT___io_decode_0_read_illegal_T_282) | (0x3b8U == (0xfffU & (vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__core__DOT__ibuf_io_inst_0_bits_raw >> 0x14U)))) | (0x3b9U == (0xfffU & (vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__core__DOT__ibuf_io_inst_0_bits_raw >> 0x14U)))) | (0x3baU == (0xfffU & (vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__core__DOT__ibuf_io_inst_0_bits_raw >> 0x14U)))) | (0x3bbU == (0xfffU & (vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__core__DOT__ibuf_io_inst_0_bits_raw >> 0x14U)))) | (0x3bcU == (0xfffU & (vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__core__DOT__ibuf_io_inst_0_bits_raw >> 0x14U)))) | (0x3bdU == (0xfffU & (vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__core__DOT__ibuf_io_inst_0_bits_raw >> 0x14U)))) | (0x3beU == (0xfffU & (vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__core__DOT__ibuf_io_inst_0_bits_raw >> 0x14U)))) | (0x3bfU == (0xfffU & (vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__core__DOT__ibuf_io_inst_0_bits_raw >> 0x14U)))) | (0x7c1U == (0xfffU & (vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__core__DOT__ibuf_io_inst_0_bits_raw >> 0x14U)))) | (0xf12U == (0xfffU & (vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__core__DOT__ibuf_io_inst_0_bits_raw >> 0x14U)))) | (0xf11U == (0xfffU & (vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__core__DOT__ibuf_io_inst_0_bits_raw >> 0x14U)))) | (0xf13U == (0xfffU & (vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__core__DOT__ibuf_io_inst_0_bits_raw >> 0x14U)))))) | ((0x180U == (0xfffU & (vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__core__DOT__ibuf_io_inst_0_bits_raw >> 0x14U))) & (~ (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__core__DOT__csr__DOT__allow_sfence_vma)))) | ((((0xc00U <= (0xfffU & (vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__core__DOT__ibuf_io_inst_0_bits_raw >> 0x14U))) & (0xc20U > (0xfffU & (vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__core__DOT__ibuf_io_inst_0_bits_raw >> 0x14U)))) | ((0xc80U <= (0xfffU & (vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__core__DOT__ibuf_io_inst_0_bits_raw >> 0x14U))) & (0xca0U > (0xfffU & (vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__core__DOT__ibuf_io_inst_0_bits_raw >> 0x14U))))) & (~ (((1U < (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__core__DOT__csr__DOT__reg_mstatus_prv)) | ((7U & vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__core__DOT__csr__DOT__reg_mcounteren) >> (0x1fU & (vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__core__DOT__ibuf_io_inst_0_bits_raw >> 0x14U)))) & ((1U <= (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__core__DOT__csr__DOT__reg_mstatus_prv)) | ((7U & vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__core__DOT__csr__DOT__reg_scounteren) >> (0x1fU & (vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__core__DOT__ibuf_io_inst_0_bits_raw >> 0x14U))))))))); } void VTestHarness::_settle__TOP__1063(VTestHarness__Syms* __restrict vlSymsp) { VL_DEBUG_IF(VL_DBG_MSGF("+ VTestHarness::_settle__TOP__1063\n"); ); VTestHarness* __restrict vlTOPp VL_ATTR_UNUSED = vlSymsp->TOPp; // Variables // Begin mtask footprint all: WData/*95:0*/ __Vtemp1952[3]; WData/*95:0*/ __Vtemp1954[3]; // Body vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__debug_1__DOT__dmOuter__DOT__dmiXbar__DOT___readys_mask_T = ((~ (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__debug_1__DOT__dmOuter__DOT__dmiXbar__DOT___readys_readys_T_2)) & (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__debug_1__DOT__dmOuter__DOT__dmiXbar__DOT__readys_filter_lo)); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__debug_1__DOT__dmOuter__DOT__dmiXbar__DOT__earlyWinner_1 = ((~ ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__debug_1__DOT__dmOuter__DOT__dmiXbar__DOT___readys_readys_T_2) >> 1U)) & (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__debug_1__DOT__dmOuter__DOT__dmiXbar_auto_out_1_a_valid)); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__debug_1__DOT__dmOuter__DOT__dmiXbar__DOT__earlyWinner_0 = ((~ (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__debug_1__DOT__dmOuter__DOT__dmiXbar__DOT___readys_readys_T_2)) & (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__debug_1__DOT__dmOuter__DOT__dmiBypass__DOT__bar_auto_in_d_valid)); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__debug_1__DOT__dmOuter__DOT__dmiXbar__DOT__latch = ((~ (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__debug_1__DOT__dmOuter__DOT__dmiXbar__DOT__beatsLeft)) & (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__dtm_io_dmi_resp_ready)); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__debug_1__DOT__dmOuter__DOT__dmiXbar__DOT___beatsLeft_T_4 = (1U & ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__debug_1__DOT__dmOuter__DOT__dmiXbar__DOT__beatsLeft) - ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__dtm_io_dmi_resp_ready) & ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__debug_1__DOT__dmOuter__DOT__dmiXbar__DOT__beatsLeft) ? (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__debug_1__DOT__dmOuter__DOT__dmiXbar__DOT___sink_ACancel_earlyValid_T_3) : (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__debug_1__DOT__dmOuter__DOT__dmiXbar__DOT___T_10))))); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__debug_1__DOT__dmOuter__DOT__dmiXbar__DOT__monitor__DOT__d_first_done = ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__dtm_io_dmi_resp_ready) & (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__debug_1__DOT__dmOuter__DOT__dmiXbar__DOT__monitor_io_in_d_valid)); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__debug_1__DOT__dmOuter__DOT__dmiXbar_auto_out_1_d_ready = ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__dtm_io_dmi_resp_ready) & ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__debug_1__DOT__dmOuter__DOT__dmiXbar__DOT__beatsLeft) ? (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__debug_1__DOT__dmOuter__DOT__dmiXbar__DOT__state_1) : (~ ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__debug_1__DOT__dmOuter__DOT__dmiXbar__DOT___readys_readys_T_2) >> 1U)))); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__debug_1__DOT__dmOuter__DOT__dmiXbar_auto_out_0_d_ready = ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__dtm_io_dmi_resp_ready) & ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__debug_1__DOT__dmOuter__DOT__dmiXbar__DOT__beatsLeft) ? (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__debug_1__DOT__dmOuter__DOT__dmiXbar__DOT__state_0) : (~ (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__debug_1__DOT__dmOuter__DOT__dmiXbar__DOT___readys_readys_T_2)))); VL_EXTEND_WQ(65,33, __Vtemp1952, (((QData)((IData)( ((~ (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__fpuOpt__DOT__divSqrt__DOT__roundRawFNToRecFN__DOT__roundAnyRawFNToRecFN__DOT__isNaNOut)) & (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__fpuOpt__DOT__divSqrt__DOT__divSqrtRecFNToRaw__DOT__divSqrtRawFN___DOT__sign_Z)))) << 0x20U) | (QData)((IData)( ((0xff800000U & ((((((((((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__fpuOpt__DOT__divSqrt__DOT__roundRawFNToRecFN__DOT__roundAnyRawFNToRecFN__DOT__sRoundedExp) & (~ (((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__fpuOpt__DOT__divSqrt__DOT__divSqrtRecFNToRaw__DOT__divSqrtRawFN___DOT__isZero_Z) | VL_GTS_III(1,11,11, 0x6bU, (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__fpuOpt__DOT__divSqrt__DOT__roundRawFNToRecFN__DOT__roundAnyRawFNToRecFN__DOT__sRoundedExp))) ? 0x1c0U : 0U))) & (~ ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__fpuOpt__DOT__divSqrt__DOT__roundRawFNToRecFN__DOT__roundAnyRawFNToRecFN__DOT__pegMinNonzeroMagOut) ? 0x194U : 0U))) & (~ ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__fpuOpt__DOT__divSqrt__DOT__roundRawFNToRecFN__DOT__roundAnyRawFNToRecFN__DOT__pegMaxFiniteMagOut) ? 0x80U : 0U))) & (~ ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__fpuOpt__DOT__divSqrt__DOT__roundRawFNToRecFN__DOT__roundAnyRawFNToRecFN__DOT__notNaN_isInfOut) ? 0x40U : 0U))) | ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__fpuOpt__DOT__divSqrt__DOT__roundRawFNToRecFN__DOT__roundAnyRawFNToRecFN__DOT__pegMinNonzeroMagOut) ? 0x6bU : 0U)) | ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__fpuOpt__DOT__divSqrt__DOT__roundRawFNToRecFN__DOT__roundAnyRawFNToRecFN__DOT__pegMaxFiniteMagOut) ? 0x17fU : 0U)) | ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__fpuOpt__DOT__divSqrt__DOT__roundRawFNToRecFN__DOT__roundAnyRawFNToRecFN__DOT__notNaN_isInfOut) ? 0x180U : 0U)) | ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__fpuOpt__DOT__divSqrt__DOT__roundRawFNToRecFN__DOT__roundAnyRawFNToRecFN__DOT__isNaNOut) ? 0x1c0U : 0U)) << 0x17U)) | (0x7fffffU & (((((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__fpuOpt__DOT__divSqrt__DOT__roundRawFNToRecFN__DOT__roundAnyRawFNToRecFN__DOT__isNaNOut) | (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__fpuOpt__DOT__divSqrt__DOT__divSqrtRecFNToRaw__DOT__divSqrtRawFN___DOT__isZero_Z)) | VL_GTS_III(1,11,11, 0x6bU, (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__fpuOpt__DOT__divSqrt__DOT__roundRawFNToRecFN__DOT__roundAnyRawFNToRecFN__DOT__sRoundedExp))) ? ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__fpuOpt__DOT__divSqrt__DOT__roundRawFNToRecFN__DOT__roundAnyRawFNToRecFN__DOT__isNaNOut) ? 0x400000U : 0U) : ((0x4000000U & vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__fpuOpt__DOT__divSqrt__DOT__divSqrtRecFNToRaw__DOT__divSqrtRawFN___05Fio_rawOut_sig) ? (vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__fpuOpt__DOT__divSqrt__DOT__roundRawFNToRecFN__DOT__roundAnyRawFNToRecFN__DOT__roundedSig >> 1U) : vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__fpuOpt__DOT__divSqrt__DOT__roundRawFNToRecFN__DOT__roundAnyRawFNToRecFN__DOT__roundedSig)) | ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__fpuOpt__DOT__divSqrt__DOT__roundRawFNToRecFN__DOT__roundAnyRawFNToRecFN__DOT__pegMaxFiniteMagOut) ? 0x7fffffU : 0U)))))))); VL_EXTEND_WQ(65,33, __Vtemp1954, (((QData)((IData)( ((~ (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__fpuOpt__DOT__sfma__DOT__fma__DOT__roundRawFNToRecFN__DOT__roundAnyRawFNToRecFN__DOT__isNaNOut)) & (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__fpuOpt__DOT__sfma__DOT__fma__DOT__roundRawFNToRecFN_io_in_b_sign)))) << 0x20U) | (QData)((IData)( ((0xff800000U & ((((((((((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__fpuOpt__DOT__sfma__DOT__fma__DOT__roundRawFNToRecFN__DOT__roundAnyRawFNToRecFN__DOT__sRoundedExp) & (~ (((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__fpuOpt__DOT__sfma__DOT__fma__DOT__roundRawFNToRecFN_io_in_b_isZero) | VL_GTS_III(1,11,11, 0x6bU, (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__fpuOpt__DOT__sfma__DOT__fma__DOT__roundRawFNToRecFN__DOT__roundAnyRawFNToRecFN__DOT__sRoundedExp))) ? 0x1c0U : 0U))) & (~ ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__fpuOpt__DOT__sfma__DOT__fma__DOT__roundRawFNToRecFN__DOT__roundAnyRawFNToRecFN__DOT__pegMinNonzeroMagOut) ? 0x194U : 0U))) & (~ ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__fpuOpt__DOT__sfma__DOT__fma__DOT__roundRawFNToRecFN__DOT__roundAnyRawFNToRecFN__DOT__pegMaxFiniteMagOut) ? 0x80U : 0U))) & (~ ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__fpuOpt__DOT__sfma__DOT__fma__DOT__roundRawFNToRecFN__DOT__roundAnyRawFNToRecFN__DOT__notNaN_isInfOut) ? 0x40U : 0U))) | ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__fpuOpt__DOT__sfma__DOT__fma__DOT__roundRawFNToRecFN__DOT__roundAnyRawFNToRecFN__DOT__pegMinNonzeroMagOut) ? 0x6bU : 0U)) | ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__fpuOpt__DOT__sfma__DOT__fma__DOT__roundRawFNToRecFN__DOT__roundAnyRawFNToRecFN__DOT__pegMaxFiniteMagOut) ? 0x17fU : 0U)) | ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__fpuOpt__DOT__sfma__DOT__fma__DOT__roundRawFNToRecFN__DOT__roundAnyRawFNToRecFN__DOT__notNaN_isInfOut) ? 0x180U : 0U)) | ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__fpuOpt__DOT__sfma__DOT__fma__DOT__roundRawFNToRecFN__DOT__roundAnyRawFNToRecFN__DOT__isNaNOut) ? 0x1c0U : 0U)) << 0x17U)) | (0x7fffffU & (((((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__fpuOpt__DOT__sfma__DOT__fma__DOT__roundRawFNToRecFN__DOT__roundAnyRawFNToRecFN__DOT__isNaNOut) | (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__fpuOpt__DOT__sfma__DOT__fma__DOT__roundRawFNToRecFN_io_in_b_isZero)) | VL_GTS_III(1,11,11, 0x6bU, (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__fpuOpt__DOT__sfma__DOT__fma__DOT__roundRawFNToRecFN__DOT__roundAnyRawFNToRecFN__DOT__sRoundedExp))) ? ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__fpuOpt__DOT__sfma__DOT__fma__DOT__roundRawFNToRecFN__DOT__roundAnyRawFNToRecFN__DOT__isNaNOut) ? 0x400000U : 0U) : ((0x4000000U & vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__fpuOpt__DOT__sfma__DOT__fma__DOT__roundRawFNToRecFN_io_in_b_sig) ? (vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__fpuOpt__DOT__sfma__DOT__fma__DOT__roundRawFNToRecFN__DOT__roundAnyRawFNToRecFN__DOT__roundedSig >> 1U) : vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__fpuOpt__DOT__sfma__DOT__fma__DOT__roundRawFNToRecFN__DOT__roundAnyRawFNToRecFN__DOT__roundedSig)) | ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__fpuOpt__DOT__sfma__DOT__fma__DOT__roundRawFNToRecFN__DOT__roundAnyRawFNToRecFN__DOT__pegMaxFiniteMagOut) ? 0x7fffffU : 0U)))))))); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__fpuOpt__DOT___wdata_T_19[0U] = ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__fpuOpt__DOT__divSqrt_wen) ? ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__fpuOpt__DOT__divSqrt_typeTag) ? ((7U == (7U & ((vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__fpuOpt__DOT__divSqrt_1__DOT__roundRawFNToRecFN__DOT__roundAnyRawFNToRecFN_io_out[2U] << 3U) | (vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__fpuOpt__DOT__divSqrt_1__DOT__roundRawFNToRecFN__DOT__roundAnyRawFNToRecFN_io_out[1U] >> 0x1dU)))) ? vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__fpuOpt__DOT__divSqrt_1__DOT__roundRawFNToRecFN__DOT__roundAnyRawFNToRecFN_io_out[0U] : vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__fpuOpt__DOT__divSqrt_1__DOT__roundRawFNToRecFN__DOT__roundAnyRawFNToRecFN_io_out[0U]) : __Vtemp1952[0U]) : ((3U == (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__fpuOpt__DOT__wbInfo_0_pipeid)) ? vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__fpuOpt__DOT__dfma__DOT__io_out_b_data[0U] : ((2U == (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__fpuOpt__DOT__wbInfo_0_pipeid)) ? __Vtemp1954[0U] : ((1U == (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__fpuOpt__DOT__wbInfo_0_pipeid)) ? vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__fpuOpt__DOT__ifpu__DOT__io_out_b_data[0U] : vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__fpuOpt__DOT__fpmu__DOT__io_out_b_data[0U])))); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__fpuOpt__DOT___wdata_T_19[1U] = ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__fpuOpt__DOT__divSqrt_wen) ? ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__fpuOpt__DOT__divSqrt_typeTag) ? ((7U == (7U & ((vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__fpuOpt__DOT__divSqrt_1__DOT__roundRawFNToRecFN__DOT__roundAnyRawFNToRecFN_io_out[2U] << 3U) | (vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__fpuOpt__DOT__divSqrt_1__DOT__roundRawFNToRecFN__DOT__roundAnyRawFNToRecFN_io_out[1U] >> 0x1dU)))) ? (0xefefffffU & vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__fpuOpt__DOT__divSqrt_1__DOT__roundRawFNToRecFN__DOT__roundAnyRawFNToRecFN_io_out[1U]) : vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__fpuOpt__DOT__divSqrt_1__DOT__roundRawFNToRecFN__DOT__roundAnyRawFNToRecFN_io_out[1U]) : __Vtemp1952[1U]) : ((3U == (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__fpuOpt__DOT__wbInfo_0_pipeid)) ? vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__fpuOpt__DOT__dfma__DOT__io_out_b_data[1U] : ((2U == (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__fpuOpt__DOT__wbInfo_0_pipeid)) ? __Vtemp1954[1U] : ((1U == (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__fpuOpt__DOT__wbInfo_0_pipeid)) ? vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__fpuOpt__DOT__ifpu__DOT__io_out_b_data[1U] : vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__fpuOpt__DOT__fpmu__DOT__io_out_b_data[1U])))); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__fpuOpt__DOT___wdata_T_19[2U] = ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__fpuOpt__DOT__divSqrt_wen) ? ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__fpuOpt__DOT__divSqrt_typeTag) ? ((7U == (7U & ((vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__fpuOpt__DOT__divSqrt_1__DOT__roundRawFNToRecFN__DOT__roundAnyRawFNToRecFN_io_out[2U] << 3U) | (vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__fpuOpt__DOT__divSqrt_1__DOT__roundRawFNToRecFN__DOT__roundAnyRawFNToRecFN_io_out[1U] >> 0x1dU)))) ? (1U & vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__fpuOpt__DOT__divSqrt_1__DOT__roundRawFNToRecFN__DOT__roundAnyRawFNToRecFN_io_out[2U]) : vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__fpuOpt__DOT__divSqrt_1__DOT__roundRawFNToRecFN__DOT__roundAnyRawFNToRecFN_io_out[2U]) : __Vtemp1952[2U]) : ((3U == (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__fpuOpt__DOT__wbInfo_0_pipeid)) ? vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__fpuOpt__DOT__dfma__DOT__io_out_b_data[2U] : ((2U == (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__fpuOpt__DOT__wbInfo_0_pipeid)) ? __Vtemp1954[2U] : ((1U == (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__fpuOpt__DOT__wbInfo_0_pipeid)) ? vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__fpuOpt__DOT__ifpu__DOT__io_out_b_data[2U] : vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__tile_reset_domain__DOT__tile__DOT__fpuOpt__DOT__fpmu__DOT__io_out_b_data[2U])))); } void VTestHarness::_settle__TOP__1064(VTestHarness__Syms* __restrict vlSymsp) { VL_DEBUG_IF(VL_DBG_MSGF("+ VTestHarness::_settle__TOP__1064\n"); ); VTestHarness* __restrict vlTOPp VL_ATTR_UNUSED = vlSymsp->TOPp; // Body vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__fixer__DOT__monitor__DOT___T_1143 = (1U & ((((1U & (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__fixer__DOT__monitor__DOT___GEN_15)) != ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__fixer__DOT__monitor__DOT___T_1088) ? 1U : 0U)) | (~ (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__fixer__DOT__monitor__DOT___GEN_15))) | (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__dividerOnlyClockGenerator_3__DOT__bundleOut_0_member_allClocks_subsystem_sbus_0_reset_catcher_io_sync_reset))); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__system_bus_xbar__DOT__monitor__DOT___T_1143 = (1U & ((((1U & (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__system_bus_xbar__DOT__monitor__DOT___GEN_15)) != ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__system_bus_xbar__DOT__monitor__DOT___T_1088) ? 1U : 0U)) | (~ (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__system_bus_xbar__DOT__monitor__DOT___GEN_15))) | (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__dividerOnlyClockGenerator_3__DOT__bundleOut_0_member_allClocks_subsystem_sbus_0_reset_catcher_io_sync_reset))); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__system_bus_xbar__DOT__monitor_1__DOT___T_2275 = (1U & (((7U & ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__system_bus_xbar__DOT__monitor_1__DOT__inflight) >> (3U & (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__system_bus_xbar__DOT__sink_ACancel_7_bits_source)))) | (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__system_bus_xbar__DOT__monitor_1__DOT__same_cycle_resp)) | (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__dividerOnlyClockGenerator_3__DOT__bundleOut_0_member_allClocks_subsystem_sbus_0_reset_catcher_io_sync_reset))); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__system_bus_xbar__DOT__monitor_1__DOT___T_2361 = (1U & (((7U & ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__system_bus_xbar__DOT__monitor_1__DOT__inflight_1) >> (3U & (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__system_bus_xbar__DOT__sink_ACancel_7_bits_source)))) | (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__system_bus_xbar__DOT__monitor_1__DOT__same_cycle_resp_1)) | (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__dividerOnlyClockGenerator_3__DOT__bundleOut_0_member_allClocks_subsystem_sbus_0_reset_catcher_io_sync_reset))); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__fixer__DOT__monitor_1__DOT___T_2275 = (1U & (((7U & ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__fixer__DOT__monitor_1__DOT__inflight) >> (3U & (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__system_bus_xbar__DOT__sink_ACancel_7_bits_source)))) | (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__fixer__DOT__monitor_1__DOT__same_cycle_resp)) | (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__dividerOnlyClockGenerator_3__DOT__bundleOut_0_member_allClocks_subsystem_sbus_0_reset_catcher_io_sync_reset))); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__fixer__DOT__monitor_1__DOT___T_2361 = (1U & (((7U & ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__fixer__DOT__monitor_1__DOT__inflight_1) >> (3U & (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__system_bus_xbar__DOT__sink_ACancel_7_bits_source)))) | (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__fixer__DOT__monitor_1__DOT__same_cycle_resp_1)) | (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__dividerOnlyClockGenerator_3__DOT__bundleOut_0_member_allClocks_subsystem_sbus_0_reset_catcher_io_sync_reset))); } void VTestHarness::_settle__TOP__1065(VTestHarness__Syms* __restrict vlSymsp) { VL_DEBUG_IF(VL_DBG_MSGF("+ VTestHarness::_settle__TOP__1065\n"); ); VTestHarness* __restrict vlTOPp VL_ATTR_UNUSED = vlSymsp->TOPp; // Body vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__system_bus_xbar__DOT__monitor_1__DOT___T_2293 = ((((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__system_bus_xbar__DOT__monitor_1_io_in_d_bits_opcode) == ((7U == (7U & ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__system_bus_xbar__DOT__monitor_1__DOT___a_opcode_lookup_T_1) >> 1U))) ? 4U : ((6U == (7U & ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__system_bus_xbar__DOT__monitor_1__DOT___a_opcode_lookup_T_1) >> 1U))) ? 4U : (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__system_bus_xbar__DOT__monitor_1__DOT___GEN_58)))) | ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__system_bus_xbar__DOT__monitor_1_io_in_d_bits_opcode) == ((7U == (7U & ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__system_bus_xbar__DOT__monitor_1__DOT___a_opcode_lookup_T_1) >> 1U))) ? 4U : ((6U == (7U & ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__system_bus_xbar__DOT__monitor_1__DOT___a_opcode_lookup_T_1) >> 1U))) ? 5U : (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__system_bus_xbar__DOT__monitor_1__DOT___GEN_58))))) | (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__dividerOnlyClockGenerator_3__DOT__bundleOut_0_member_allClocks_subsystem_sbus_0_reset_catcher_io_sync_reset)); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__fixer__DOT__monitor_1__DOT___T_2293 = ((((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__system_bus_xbar_auto_in_1_d_bits_opcode) == ((7U == (7U & ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__fixer__DOT__monitor_1__DOT___a_opcode_lookup_T_1) >> 1U))) ? 4U : ((6U == (7U & ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__fixer__DOT__monitor_1__DOT___a_opcode_lookup_T_1) >> 1U))) ? 4U : (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__fixer__DOT__monitor_1__DOT___GEN_58)))) | ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__system_bus_xbar_auto_in_1_d_bits_opcode) == ((7U == (7U & ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__fixer__DOT__monitor_1__DOT___a_opcode_lookup_T_1) >> 1U))) ? 4U : ((6U == (7U & ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__fixer__DOT__monitor_1__DOT___a_opcode_lookup_T_1) >> 1U))) ? 5U : (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__fixer__DOT__monitor_1__DOT___GEN_58))))) | (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__dividerOnlyClockGenerator_3__DOT__bundleOut_0_member_allClocks_subsystem_sbus_0_reset_catcher_io_sync_reset)); } void VTestHarness::_settle__TOP__1066(VTestHarness__Syms* __restrict vlSymsp) { VL_DEBUG_IF(VL_DBG_MSGF("+ VTestHarness::_settle__TOP__1066\n"); ); VTestHarness* __restrict vlTOPp VL_ATTR_UNUSED = vlSymsp->TOPp; // Body vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__fixer__DOT__monitor_1__DOT___T_2316 = (1U & ((((7U & (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__fixer__DOT__monitor_1__DOT___GEN_27)) != ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__fixer__DOT__monitor_1__DOT___T_2261) ? (7U & ((IData)(1U) << (3U & (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__system_bus_xbar__DOT__sink_ACancel_7_bits_source)))) : 0U)) | (~ (IData)((0U != (7U & (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__fixer__DOT__monitor_1__DOT___GEN_27)))))) | (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__dividerOnlyClockGenerator_3__DOT__bundleOut_0_member_allClocks_subsystem_sbus_0_reset_catcher_io_sync_reset))); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__fixer__DOT__monitor_1__DOT___T_2385 = ((((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__fixer__DOT__monitor_1__DOT___T_2334) ? (7U & ((IData)(1U) << (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__buffer_1__DOT__bundleOut_0_c_q__DOT__ram_source_io_deq_bits_MPORT_data))) : 0U) != ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__fixer__DOT__monitor_1__DOT___T_2349) ? (7U & ((IData)(1U) << (3U & (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__system_bus_xbar__DOT__sink_ACancel_7_bits_source)))) : 0U)) | (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__dividerOnlyClockGenerator_3__DOT__bundleOut_0_member_allClocks_subsystem_sbus_0_reset_catcher_io_sync_reset)); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__fixer__DOT__monitor_1__DOT___inflight_T_8 = (((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__fixer__DOT__monitor_1__DOT__inflight_2) | (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__fixer__DOT__monitor_1__DOT__d_set)) & (~ ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__buffer_1__DOT__bundleOut_0_e_q__DOT__empty) ? 0U : ((IData)(1U) << (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__buffer_1__DOT__bundleOut_0_e_q__DOT__ram_sink_io_deq_bits_MPORT_data))))); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__fixer__DOT__monitor_1__DOT___T_2419 = (1U & ((0xffU & (((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__fixer__DOT__monitor_1__DOT__d_set) | (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__fixer__DOT__monitor_1__DOT__inflight_2)) >> (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__buffer_1__DOT__bundleOut_0_e_q__DOT__ram_sink_io_deq_bits_MPORT_data))) | (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__dividerOnlyClockGenerator_3__DOT__bundleOut_0_member_allClocks_subsystem_sbus_0_reset_catcher_io_sync_reset))); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__fixer__DOT__monitor_1__DOT___inflight_T_5 = (7U & (((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__fixer__DOT__monitor_1__DOT__inflight_1) | ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__fixer__DOT__monitor_1__DOT___T_2340) ? (0xfU & ((IData)(1U) << (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__buffer_1__DOT__bundleOut_0_c_q__DOT__ram_source_io_deq_bits_MPORT_data))) : 0U)) & (~ ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__fixer__DOT__monitor_1__DOT___T_2353) ? (0xfU & ((IData)(1U) << (3U & (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__system_bus_xbar__DOT__sink_ACancel_7_bits_source)))) : 0U)))); } void VTestHarness::_settle__TOP__1067(VTestHarness__Syms* __restrict vlSymsp) { VL_DEBUG_IF(VL_DBG_MSGF("+ VTestHarness::_settle__TOP__1067\n"); ); VTestHarness* __restrict vlTOPp VL_ATTR_UNUSED = vlSymsp->TOPp; // Body vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__fixer__DOT__monitor_1__DOT___inflight_sizes_T_5 = (0xffffffU & ((vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__fixer__DOT__monitor_1__DOT__inflight_sizes_1 | (IData)(((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__fixer__DOT__monitor_1__DOT___T_2340) ? (VL_ULL(0xfffffffff) & ((QData)((IData)( ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__fixer__DOT__monitor_1__DOT___T_2340) ? (1U | ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__buffer_1__DOT__bundleOut_0_c_q__DOT__ram_size_io_deq_bits_MPORT_data) << 1U)) : 0U))) << ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__buffer_1__DOT__bundleOut_0_c_q__DOT__ram_source_io_deq_bits_MPORT_data) << 3U))) : VL_ULL(0)))) & (~ (IData)(((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__fixer__DOT__monitor_1__DOT___T_2353) ? (VL_ULL(0x7fffffffffff) & (VL_ULL(0xff) << (0x18U & ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__system_bus_xbar__DOT__sink_ACancel_7_bits_source) << 3U)))) : VL_ULL(0)))))); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__system_bus_xbar__DOT__monitor_1__DOT___T_2316 = (1U & ((((7U & (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__system_bus_xbar__DOT__monitor_1__DOT___GEN_27)) != ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__system_bus_xbar__DOT__monitor_1__DOT___T_2261) ? (7U & ((IData)(1U) << (3U & (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__system_bus_xbar__DOT__sink_ACancel_7_bits_source)))) : 0U)) | (~ (IData)((0U != (7U & (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__system_bus_xbar__DOT__monitor_1__DOT___GEN_27)))))) | (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__dividerOnlyClockGenerator_3__DOT__bundleOut_0_member_allClocks_subsystem_sbus_0_reset_catcher_io_sync_reset))); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__system_bus_xbar__DOT__monitor_1__DOT___T_2385 = ((((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__system_bus_xbar__DOT__monitor_1__DOT___T_2334) ? (7U & ((IData)(1U) << (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__buffer_1__DOT__bundleOut_0_c_q__DOT__ram_source_io_deq_bits_MPORT_data))) : 0U) != ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__system_bus_xbar__DOT__monitor_1__DOT___T_2349) ? (7U & ((IData)(1U) << (3U & (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__system_bus_xbar__DOT__sink_ACancel_7_bits_source)))) : 0U)) | (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__dividerOnlyClockGenerator_3__DOT__bundleOut_0_member_allClocks_subsystem_sbus_0_reset_catcher_io_sync_reset)); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__system_bus_xbar__DOT__monitor_1__DOT___inflight_T_8 = (((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__system_bus_xbar__DOT__monitor_1__DOT__inflight_2) | (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__system_bus_xbar__DOT__monitor_1__DOT__d_set)) & (~ ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__buffer_1__DOT__bundleOut_0_e_q__DOT__empty) ? 0U : ((IData)(1U) << (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__buffer_1__DOT__bundleOut_0_e_q__DOT__ram_sink_io_deq_bits_MPORT_data))))); } void VTestHarness::_settle__TOP__1068(VTestHarness__Syms* __restrict vlSymsp) { VL_DEBUG_IF(VL_DBG_MSGF("+ VTestHarness::_settle__TOP__1068\n"); ); VTestHarness* __restrict vlTOPp VL_ATTR_UNUSED = vlSymsp->TOPp; // Variables // Begin mtask footprint all: WData/*95:0*/ __Vtemp1963[3]; WData/*95:0*/ __Vtemp1964[3]; // Body vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__system_bus_xbar__DOT__monitor_1__DOT___T_2419 = (1U & ((0xffU & (((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__system_bus_xbar__DOT__monitor_1__DOT__d_set) | (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__system_bus_xbar__DOT__monitor_1__DOT__inflight_2)) >> (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__buffer_1__DOT__bundleOut_0_e_q__DOT__ram_sink_io_deq_bits_MPORT_data))) | (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__dividerOnlyClockGenerator_3__DOT__bundleOut_0_member_allClocks_subsystem_sbus_0_reset_catcher_io_sync_reset))); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__system_bus_xbar__DOT__monitor_1__DOT___inflight_T_5 = (7U & (((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__system_bus_xbar__DOT__monitor_1__DOT__inflight_1) | ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__system_bus_xbar__DOT__monitor_1__DOT___T_2340) ? (0xfU & ((IData)(1U) << (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__buffer_1__DOT__bundleOut_0_c_q__DOT__ram_source_io_deq_bits_MPORT_data))) : 0U)) & (~ ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__system_bus_xbar__DOT__monitor_1__DOT___T_2353) ? (0xfU & ((IData)(1U) << (3U & (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__system_bus_xbar__DOT__sink_ACancel_7_bits_source)))) : 0U)))); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__system_bus_xbar__DOT__monitor_1__DOT___inflight_sizes_T_5 = (0xffffffU & ((vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__system_bus_xbar__DOT__monitor_1__DOT__inflight_sizes_1 | (IData)(((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__system_bus_xbar__DOT__monitor_1__DOT___T_2340) ? (VL_ULL(0xfffffffff) & ((QData)((IData)( ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__system_bus_xbar__DOT__monitor_1__DOT___T_2340) ? (1U | ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__buffer_1__DOT__bundleOut_0_c_q__DOT__ram_size_io_deq_bits_MPORT_data) << 1U)) : 0U))) << ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__tile_prci_domain__DOT__buffer_1__DOT__bundleOut_0_c_q__DOT__ram_source_io_deq_bits_MPORT_data) << 3U))) : VL_ULL(0)))) & (~ (IData)(((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__system_bus_xbar__DOT__monitor_1__DOT___T_2353) ? (VL_ULL(0x7fffffffffff) & (VL_ULL(0xff) << (0x18U & ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_sbus__DOT__system_bus_xbar__DOT__sink_ACancel_7_bits_source) << 3U)))) : VL_ULL(0)))))); VL_EXTEND_WI(67,4, __Vtemp1963, ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_pbus__DOT__coupler_to_slave_named_tileresetctrl__DOT__fragmenter__DOT__monitor__DOT___T_651) ? (1U | ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_pbus__DOT__buffer__DOT__bundleOut_0_a_q__DOT__ram_opcode_io_deq_bits_MPORT_data) << 1U)) : 0U)); VL_SHIFTL_WWI(67,67,6, __Vtemp1964, __Vtemp1963, ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_pbus__DOT__buffer__DOT__bundleOut_0_a_q__DOT__ram_source_io_deq_bits_MPORT_data) << 2U)); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_pbus__DOT__coupler_to_slave_named_tileresetctrl__DOT__fragmenter__DOT__monitor__DOT___inflight_opcodes_T_2 = (0xfffffU & ((vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_pbus__DOT__coupler_to_slave_named_tileresetctrl__DOT__fragmenter__DOT__monitor__DOT__inflight_opcodes | ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_pbus__DOT__coupler_to_slave_named_tileresetctrl__DOT__fragmenter__DOT__monitor__DOT___T_651) ? __Vtemp1964[0U] : 0U)) & (~ vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_pbus__DOT__coupler_to_slave_named_tileresetctrl__DOT__fragmenter__DOT__monitor__DOT___GEN_23[0U]))); } void VTestHarness::_settle__TOP__1069(VTestHarness__Syms* __restrict vlSymsp) { VL_DEBUG_IF(VL_DBG_MSGF("+ VTestHarness::_settle__TOP__1069\n"); ); VTestHarness* __restrict vlTOPp VL_ATTR_UNUSED = vlSymsp->TOPp; // Variables // Begin mtask footprint all: WData/*95:0*/ __Vtemp1969[3]; WData/*95:0*/ __Vtemp1970[3]; WData/*127:0*/ __Vtemp1974[4]; WData/*127:0*/ __Vtemp1975[4]; WData/*1055:0*/ __Vtemp1982[33]; WData/*1055:0*/ __Vtemp1983[33]; WData/*127:0*/ __Vtemp1991[4]; WData/*127:0*/ __Vtemp1992[4]; WData/*127:0*/ __Vtemp1997[4]; WData/*127:0*/ __Vtemp1998[4]; WData/*1055:0*/ __Vtemp2006[33]; WData/*1055:0*/ __Vtemp2007[33]; WData/*127:0*/ __Vtemp2012[4]; WData/*127:0*/ __Vtemp2013[4]; WData/*127:0*/ __Vtemp2018[4]; WData/*127:0*/ __Vtemp2019[4]; // Body VL_EXTEND_WI(67,4, __Vtemp1969, ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_pbus__DOT__coupler_to_slave_named_tileresetctrl__DOT__fragmenter__DOT__monitor__DOT___T_651) ? (1U | ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_pbus__DOT__buffer__DOT__bundleOut_0_a_q__DOT__ram_size_io_deq_bits_MPORT_data) << 1U)) : 0U)); VL_SHIFTL_WWI(67,67,6, __Vtemp1970, __Vtemp1969, ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_pbus__DOT__buffer__DOT__bundleOut_0_a_q__DOT__ram_source_io_deq_bits_MPORT_data) << 2U)); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_pbus__DOT__coupler_to_slave_named_tileresetctrl__DOT__fragmenter__DOT__monitor__DOT___inflight_sizes_T_2 = (0xfffffU & ((vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_pbus__DOT__coupler_to_slave_named_tileresetctrl__DOT__fragmenter__DOT__monitor__DOT__inflight_sizes | ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_pbus__DOT__coupler_to_slave_named_tileresetctrl__DOT__fragmenter__DOT__monitor__DOT___T_651) ? __Vtemp1970[0U] : 0U)) & (~ vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_pbus__DOT__coupler_to_slave_named_tileresetctrl__DOT__fragmenter__DOT__monitor__DOT___GEN_23[0U]))); __Vtemp1974[0U] = 1U; __Vtemp1974[1U] = 0U; __Vtemp1974[2U] = 0U; __Vtemp1974[3U] = 0U; VL_SHIFTL_WWI(128,128,7, __Vtemp1975, __Vtemp1974, (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_pbus__DOT__coupler_to_slave_named_tileresetctrl__DOT__buffer__DOT__bundleIn_0_d_q__DOT__ram_source_io_deq_bits_MPORT_data)); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_pbus__DOT__coupler_to_slave_named_tileresetctrl__DOT__buffer__DOT__monitor__DOT___inflight_T_5[0U] = (vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_pbus__DOT__coupler_to_slave_named_tileresetctrl__DOT__buffer__DOT__monitor__DOT__inflight_1[0U] & (~ ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_pbus__DOT__coupler_to_slave_named_tileresetctrl__DOT__buffer__DOT__monitor__DOT___T_700) ? __Vtemp1975[0U] : 0U))); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_pbus__DOT__coupler_to_slave_named_tileresetctrl__DOT__buffer__DOT__monitor__DOT___inflight_T_5[1U] = (vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_pbus__DOT__coupler_to_slave_named_tileresetctrl__DOT__buffer__DOT__monitor__DOT__inflight_1[1U] & (~ ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_pbus__DOT__coupler_to_slave_named_tileresetctrl__DOT__buffer__DOT__monitor__DOT___T_700) ? __Vtemp1975[1U] : 0U))); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_pbus__DOT__coupler_to_slave_named_tileresetctrl__DOT__buffer__DOT__monitor__DOT___inflight_T_5[2U] = (vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_pbus__DOT__coupler_to_slave_named_tileresetctrl__DOT__buffer__DOT__monitor__DOT__inflight_1[2U] & (~ ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_pbus__DOT__coupler_to_slave_named_tileresetctrl__DOT__buffer__DOT__monitor__DOT___T_700) ? __Vtemp1975[2U] : 0U))); __Vtemp1982[0U] = 0xfU; __Vtemp1982[1U] = 0U; __Vtemp1982[2U] = 0U; __Vtemp1982[3U] = 0U; __Vtemp1982[4U] = 0U; __Vtemp1982[5U] = 0U; __Vtemp1982[6U] = 0U; __Vtemp1982[7U] = 0U; __Vtemp1982[8U] = 0U; __Vtemp1982[9U] = 0U; __Vtemp1982[0xaU] = 0U; __Vtemp1982[0xbU] = 0U; __Vtemp1982[0xcU] = 0U; __Vtemp1982[0xdU] = 0U; __Vtemp1982[0xeU] = 0U; __Vtemp1982[0xfU] = 0U; __Vtemp1982[0x10U] = 0U; __Vtemp1982[0x11U] = 0U; __Vtemp1982[0x12U] = 0U; __Vtemp1982[0x13U] = 0U; __Vtemp1982[0x14U] = 0U; __Vtemp1982[0x15U] = 0U; __Vtemp1982[0x16U] = 0U; __Vtemp1982[0x17U] = 0U; __Vtemp1982[0x18U] = 0U; __Vtemp1982[0x19U] = 0U; __Vtemp1982[0x1aU] = 0U; __Vtemp1982[0x1bU] = 0U; __Vtemp1982[0x1cU] = 0U; __Vtemp1982[0x1dU] = 0U; __Vtemp1982[0x1eU] = 0U; __Vtemp1982[0x1fU] = 0U; __Vtemp1982[0x20U] = 0U; VL_SHIFTL_WWI(1039,1039,10, __Vtemp1983, __Vtemp1982, ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_pbus__DOT__coupler_to_slave_named_tileresetctrl__DOT__buffer__DOT__bundleIn_0_d_q__DOT__ram_source_io_deq_bits_MPORT_data) << 2U)); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_pbus__DOT__coupler_to_slave_named_tileresetctrl__DOT__buffer__DOT__monitor__DOT___inflight_sizes_T_5[0U] = (vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_pbus__DOT__coupler_to_slave_named_tileresetctrl__DOT__buffer__DOT__monitor__DOT__inflight_sizes_1[0U] & (~ ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_pbus__DOT__coupler_to_slave_named_tileresetctrl__DOT__buffer__DOT__monitor__DOT___T_700) ? __Vtemp1983[0U] : 0U))); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_pbus__DOT__coupler_to_slave_named_tileresetctrl__DOT__buffer__DOT__monitor__DOT___inflight_sizes_T_5[1U] = (vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_pbus__DOT__coupler_to_slave_named_tileresetctrl__DOT__buffer__DOT__monitor__DOT__inflight_sizes_1[1U] & (~ ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_pbus__DOT__coupler_to_slave_named_tileresetctrl__DOT__buffer__DOT__monitor__DOT___T_700) ? __Vtemp1983[1U] : 0U))); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_pbus__DOT__coupler_to_slave_named_tileresetctrl__DOT__buffer__DOT__monitor__DOT___inflight_sizes_T_5[2U] = (vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_pbus__DOT__coupler_to_slave_named_tileresetctrl__DOT__buffer__DOT__monitor__DOT__inflight_sizes_1[2U] & (~ ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_pbus__DOT__coupler_to_slave_named_tileresetctrl__DOT__buffer__DOT__monitor__DOT___T_700) ? __Vtemp1983[2U] : 0U))); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_pbus__DOT__coupler_to_slave_named_tileresetctrl__DOT__buffer__DOT__monitor__DOT___inflight_sizes_T_5[3U] = (vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_pbus__DOT__coupler_to_slave_named_tileresetctrl__DOT__buffer__DOT__monitor__DOT__inflight_sizes_1[3U] & (~ ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_pbus__DOT__coupler_to_slave_named_tileresetctrl__DOT__buffer__DOT__monitor__DOT___T_700) ? __Vtemp1983[3U] : 0U))); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_pbus__DOT__coupler_to_slave_named_tileresetctrl__DOT__buffer__DOT__monitor__DOT___inflight_sizes_T_5[4U] = (vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_pbus__DOT__coupler_to_slave_named_tileresetctrl__DOT__buffer__DOT__monitor__DOT__inflight_sizes_1[4U] & (~ ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_pbus__DOT__coupler_to_slave_named_tileresetctrl__DOT__buffer__DOT__monitor__DOT___T_700) ? __Vtemp1983[4U] : 0U))); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_pbus__DOT__coupler_to_slave_named_tileresetctrl__DOT__buffer__DOT__monitor__DOT___inflight_sizes_T_5[5U] = (vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_pbus__DOT__coupler_to_slave_named_tileresetctrl__DOT__buffer__DOT__monitor__DOT__inflight_sizes_1[5U] & (~ ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_pbus__DOT__coupler_to_slave_named_tileresetctrl__DOT__buffer__DOT__monitor__DOT___T_700) ? __Vtemp1983[5U] : 0U))); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_pbus__DOT__coupler_to_slave_named_tileresetctrl__DOT__buffer__DOT__monitor__DOT___inflight_sizes_T_5[6U] = (vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_pbus__DOT__coupler_to_slave_named_tileresetctrl__DOT__buffer__DOT__monitor__DOT__inflight_sizes_1[6U] & (~ ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_pbus__DOT__coupler_to_slave_named_tileresetctrl__DOT__buffer__DOT__monitor__DOT___T_700) ? __Vtemp1983[6U] : 0U))); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_pbus__DOT__coupler_to_slave_named_tileresetctrl__DOT__buffer__DOT__monitor__DOT___inflight_sizes_T_5[7U] = (vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_pbus__DOT__coupler_to_slave_named_tileresetctrl__DOT__buffer__DOT__monitor__DOT__inflight_sizes_1[7U] & (~ ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_pbus__DOT__coupler_to_slave_named_tileresetctrl__DOT__buffer__DOT__monitor__DOT___T_700) ? __Vtemp1983[7U] : 0U))); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_pbus__DOT__coupler_to_slave_named_tileresetctrl__DOT__buffer__DOT__monitor__DOT___inflight_sizes_T_5[8U] = (vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_pbus__DOT__coupler_to_slave_named_tileresetctrl__DOT__buffer__DOT__monitor__DOT__inflight_sizes_1[8U] & (~ ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_pbus__DOT__coupler_to_slave_named_tileresetctrl__DOT__buffer__DOT__monitor__DOT___T_700) ? __Vtemp1983[8U] : 0U))); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_pbus__DOT__coupler_to_slave_named_tileresetctrl__DOT__buffer__DOT__monitor__DOT___inflight_sizes_T_5[9U] = (vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_pbus__DOT__coupler_to_slave_named_tileresetctrl__DOT__buffer__DOT__monitor__DOT__inflight_sizes_1[9U] & (~ ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_pbus__DOT__coupler_to_slave_named_tileresetctrl__DOT__buffer__DOT__monitor__DOT___T_700) ? __Vtemp1983[9U] : 0U))); __Vtemp1991[0U] = 1U; __Vtemp1991[1U] = 0U; __Vtemp1991[2U] = 0U; __Vtemp1991[3U] = 0U; VL_SHIFTL_WWI(128,128,7, __Vtemp1992, __Vtemp1991, (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_pbus__DOT__coupler_to_slave_named_tileresetctrl__DOT__fragmenter_auto_out_a_bits_source)); __Vtemp1997[0U] = 1U; __Vtemp1997[1U] = 0U; __Vtemp1997[2U] = 0U; __Vtemp1997[3U] = 0U; VL_SHIFTL_WWI(128,128,7, __Vtemp1998, __Vtemp1997, (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_pbus__DOT__coupler_to_slave_named_tileresetctrl__DOT__buffer__DOT__bundleIn_0_d_q__DOT__ram_source_io_deq_bits_MPORT_data)); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_pbus__DOT__coupler_to_slave_named_tileresetctrl__DOT__buffer__DOT__monitor__DOT___inflight_T_2[0U] = ((vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_pbus__DOT__coupler_to_slave_named_tileresetctrl__DOT__buffer__DOT__monitor__DOT__inflight[0U] | ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_pbus__DOT__coupler_to_slave_named_tileresetctrl__DOT__buffer__DOT__monitor__DOT___T_597) ? __Vtemp1992[0U] : 0U)) & (~ ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_pbus__DOT__coupler_to_slave_named_tileresetctrl__DOT__buffer__DOT__monitor__DOT___T_613) ? __Vtemp1998[0U] : 0U))); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_pbus__DOT__coupler_to_slave_named_tileresetctrl__DOT__buffer__DOT__monitor__DOT___inflight_T_2[1U] = ((vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_pbus__DOT__coupler_to_slave_named_tileresetctrl__DOT__buffer__DOT__monitor__DOT__inflight[1U] | ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_pbus__DOT__coupler_to_slave_named_tileresetctrl__DOT__buffer__DOT__monitor__DOT___T_597) ? __Vtemp1992[1U] : 0U)) & (~ ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_pbus__DOT__coupler_to_slave_named_tileresetctrl__DOT__buffer__DOT__monitor__DOT___T_613) ? __Vtemp1998[1U] : 0U))); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_pbus__DOT__coupler_to_slave_named_tileresetctrl__DOT__buffer__DOT__monitor__DOT___inflight_T_2[2U] = (0xffffU & ((vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_pbus__DOT__coupler_to_slave_named_tileresetctrl__DOT__buffer__DOT__monitor__DOT__inflight[2U] | ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_pbus__DOT__coupler_to_slave_named_tileresetctrl__DOT__buffer__DOT__monitor__DOT___T_597) ? __Vtemp1992[2U] : 0U)) & (~ ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_pbus__DOT__coupler_to_slave_named_tileresetctrl__DOT__buffer__DOT__monitor__DOT___T_613) ? __Vtemp1998[2U] : 0U)))); __Vtemp2006[0U] = 0xfU; __Vtemp2006[1U] = 0U; __Vtemp2006[2U] = 0U; __Vtemp2006[3U] = 0U; __Vtemp2006[4U] = 0U; __Vtemp2006[5U] = 0U; __Vtemp2006[6U] = 0U; __Vtemp2006[7U] = 0U; __Vtemp2006[8U] = 0U; __Vtemp2006[9U] = 0U; __Vtemp2006[0xaU] = 0U; __Vtemp2006[0xbU] = 0U; __Vtemp2006[0xcU] = 0U; __Vtemp2006[0xdU] = 0U; __Vtemp2006[0xeU] = 0U; __Vtemp2006[0xfU] = 0U; __Vtemp2006[0x10U] = 0U; __Vtemp2006[0x11U] = 0U; __Vtemp2006[0x12U] = 0U; __Vtemp2006[0x13U] = 0U; __Vtemp2006[0x14U] = 0U; __Vtemp2006[0x15U] = 0U; __Vtemp2006[0x16U] = 0U; __Vtemp2006[0x17U] = 0U; __Vtemp2006[0x18U] = 0U; __Vtemp2006[0x19U] = 0U; __Vtemp2006[0x1aU] = 0U; __Vtemp2006[0x1bU] = 0U; __Vtemp2006[0x1cU] = 0U; __Vtemp2006[0x1dU] = 0U; __Vtemp2006[0x1eU] = 0U; __Vtemp2006[0x1fU] = 0U; __Vtemp2006[0x20U] = 0U; VL_SHIFTL_WWI(1039,1039,10, __Vtemp2007, __Vtemp2006, ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_pbus__DOT__coupler_to_slave_named_tileresetctrl__DOT__buffer__DOT__bundleIn_0_d_q__DOT__ram_source_io_deq_bits_MPORT_data) << 2U)); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_pbus__DOT__coupler_to_slave_named_tileresetctrl__DOT__buffer__DOT__monitor__DOT___GEN_23[0U] = ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_pbus__DOT__coupler_to_slave_named_tileresetctrl__DOT__buffer__DOT__monitor__DOT___T_613) ? __Vtemp2007[0U] : 0U); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_pbus__DOT__coupler_to_slave_named_tileresetctrl__DOT__buffer__DOT__monitor__DOT___GEN_23[1U] = ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_pbus__DOT__coupler_to_slave_named_tileresetctrl__DOT__buffer__DOT__monitor__DOT___T_613) ? __Vtemp2007[1U] : 0U); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_pbus__DOT__coupler_to_slave_named_tileresetctrl__DOT__buffer__DOT__monitor__DOT___GEN_23[2U] = ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_pbus__DOT__coupler_to_slave_named_tileresetctrl__DOT__buffer__DOT__monitor__DOT___T_613) ? __Vtemp2007[2U] : 0U); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_pbus__DOT__coupler_to_slave_named_tileresetctrl__DOT__buffer__DOT__monitor__DOT___GEN_23[3U] = ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_pbus__DOT__coupler_to_slave_named_tileresetctrl__DOT__buffer__DOT__monitor__DOT___T_613) ? __Vtemp2007[3U] : 0U); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_pbus__DOT__coupler_to_slave_named_tileresetctrl__DOT__buffer__DOT__monitor__DOT___GEN_23[4U] = ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_pbus__DOT__coupler_to_slave_named_tileresetctrl__DOT__buffer__DOT__monitor__DOT___T_613) ? __Vtemp2007[4U] : 0U); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_pbus__DOT__coupler_to_slave_named_tileresetctrl__DOT__buffer__DOT__monitor__DOT___GEN_23[5U] = ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_pbus__DOT__coupler_to_slave_named_tileresetctrl__DOT__buffer__DOT__monitor__DOT___T_613) ? __Vtemp2007[5U] : 0U); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_pbus__DOT__coupler_to_slave_named_tileresetctrl__DOT__buffer__DOT__monitor__DOT___GEN_23[6U] = ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_pbus__DOT__coupler_to_slave_named_tileresetctrl__DOT__buffer__DOT__monitor__DOT___T_613) ? __Vtemp2007[6U] : 0U); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_pbus__DOT__coupler_to_slave_named_tileresetctrl__DOT__buffer__DOT__monitor__DOT___GEN_23[7U] = ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_pbus__DOT__coupler_to_slave_named_tileresetctrl__DOT__buffer__DOT__monitor__DOT___T_613) ? __Vtemp2007[7U] : 0U); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_pbus__DOT__coupler_to_slave_named_tileresetctrl__DOT__buffer__DOT__monitor__DOT___GEN_23[8U] = ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_pbus__DOT__coupler_to_slave_named_tileresetctrl__DOT__buffer__DOT__monitor__DOT___T_613) ? __Vtemp2007[8U] : 0U); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_pbus__DOT__coupler_to_slave_named_tileresetctrl__DOT__buffer__DOT__monitor__DOT___GEN_23[9U] = ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_pbus__DOT__coupler_to_slave_named_tileresetctrl__DOT__buffer__DOT__monitor__DOT___T_613) ? __Vtemp2007[9U] : 0U); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_pbus__DOT__coupler_to_slave_named_tileresetctrl__DOT__buffer__DOT__monitor__DOT___GEN_23[0xaU] = ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_pbus__DOT__coupler_to_slave_named_tileresetctrl__DOT__buffer__DOT__monitor__DOT___T_613) ? __Vtemp2007[0xaU] : 0U); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_pbus__DOT__coupler_to_slave_named_tileresetctrl__DOT__buffer__DOT__monitor__DOT___GEN_23[0xbU] = ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_pbus__DOT__coupler_to_slave_named_tileresetctrl__DOT__buffer__DOT__monitor__DOT___T_613) ? __Vtemp2007[0xbU] : 0U); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_pbus__DOT__coupler_to_slave_named_tileresetctrl__DOT__buffer__DOT__monitor__DOT___GEN_23[0xcU] = ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_pbus__DOT__coupler_to_slave_named_tileresetctrl__DOT__buffer__DOT__monitor__DOT___T_613) ? __Vtemp2007[0xcU] : 0U); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_pbus__DOT__coupler_to_slave_named_tileresetctrl__DOT__buffer__DOT__monitor__DOT___GEN_23[0xdU] = ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_pbus__DOT__coupler_to_slave_named_tileresetctrl__DOT__buffer__DOT__monitor__DOT___T_613) ? __Vtemp2007[0xdU] : 0U); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_pbus__DOT__coupler_to_slave_named_tileresetctrl__DOT__buffer__DOT__monitor__DOT___GEN_23[0xeU] = ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_pbus__DOT__coupler_to_slave_named_tileresetctrl__DOT__buffer__DOT__monitor__DOT___T_613) ? __Vtemp2007[0xeU] : 0U); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_pbus__DOT__coupler_to_slave_named_tileresetctrl__DOT__buffer__DOT__monitor__DOT___GEN_23[0xfU] = ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_pbus__DOT__coupler_to_slave_named_tileresetctrl__DOT__buffer__DOT__monitor__DOT___T_613) ? __Vtemp2007[0xfU] : 0U); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_pbus__DOT__coupler_to_slave_named_tileresetctrl__DOT__buffer__DOT__monitor__DOT___GEN_23[0x10U] = ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_pbus__DOT__coupler_to_slave_named_tileresetctrl__DOT__buffer__DOT__monitor__DOT___T_613) ? __Vtemp2007[0x10U] : 0U); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_pbus__DOT__coupler_to_slave_named_tileresetctrl__DOT__buffer__DOT__monitor__DOT___GEN_23[0x11U] = ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_pbus__DOT__coupler_to_slave_named_tileresetctrl__DOT__buffer__DOT__monitor__DOT___T_613) ? __Vtemp2007[0x11U] : 0U); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_pbus__DOT__coupler_to_slave_named_tileresetctrl__DOT__buffer__DOT__monitor__DOT___GEN_23[0x12U] = ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_pbus__DOT__coupler_to_slave_named_tileresetctrl__DOT__buffer__DOT__monitor__DOT___T_613) ? __Vtemp2007[0x12U] : 0U); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_pbus__DOT__coupler_to_slave_named_tileresetctrl__DOT__buffer__DOT__monitor__DOT___GEN_23[0x13U] = ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_pbus__DOT__coupler_to_slave_named_tileresetctrl__DOT__buffer__DOT__monitor__DOT___T_613) ? __Vtemp2007[0x13U] : 0U); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_pbus__DOT__coupler_to_slave_named_tileresetctrl__DOT__buffer__DOT__monitor__DOT___GEN_23[0x14U] = ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_pbus__DOT__coupler_to_slave_named_tileresetctrl__DOT__buffer__DOT__monitor__DOT___T_613) ? __Vtemp2007[0x14U] : 0U); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_pbus__DOT__coupler_to_slave_named_tileresetctrl__DOT__buffer__DOT__monitor__DOT___GEN_23[0x15U] = ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_pbus__DOT__coupler_to_slave_named_tileresetctrl__DOT__buffer__DOT__monitor__DOT___T_613) ? __Vtemp2007[0x15U] : 0U); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_pbus__DOT__coupler_to_slave_named_tileresetctrl__DOT__buffer__DOT__monitor__DOT___GEN_23[0x16U] = ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_pbus__DOT__coupler_to_slave_named_tileresetctrl__DOT__buffer__DOT__monitor__DOT___T_613) ? __Vtemp2007[0x16U] : 0U); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_pbus__DOT__coupler_to_slave_named_tileresetctrl__DOT__buffer__DOT__monitor__DOT___GEN_23[0x17U] = ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_pbus__DOT__coupler_to_slave_named_tileresetctrl__DOT__buffer__DOT__monitor__DOT___T_613) ? __Vtemp2007[0x17U] : 0U); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_pbus__DOT__coupler_to_slave_named_tileresetctrl__DOT__buffer__DOT__monitor__DOT___GEN_23[0x18U] = ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_pbus__DOT__coupler_to_slave_named_tileresetctrl__DOT__buffer__DOT__monitor__DOT___T_613) ? __Vtemp2007[0x18U] : 0U); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_pbus__DOT__coupler_to_slave_named_tileresetctrl__DOT__buffer__DOT__monitor__DOT___GEN_23[0x19U] = ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_pbus__DOT__coupler_to_slave_named_tileresetctrl__DOT__buffer__DOT__monitor__DOT___T_613) ? __Vtemp2007[0x19U] : 0U); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_pbus__DOT__coupler_to_slave_named_tileresetctrl__DOT__buffer__DOT__monitor__DOT___GEN_23[0x1aU] = ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_pbus__DOT__coupler_to_slave_named_tileresetctrl__DOT__buffer__DOT__monitor__DOT___T_613) ? __Vtemp2007[0x1aU] : 0U); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_pbus__DOT__coupler_to_slave_named_tileresetctrl__DOT__buffer__DOT__monitor__DOT___GEN_23[0x1bU] = ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_pbus__DOT__coupler_to_slave_named_tileresetctrl__DOT__buffer__DOT__monitor__DOT___T_613) ? __Vtemp2007[0x1bU] : 0U); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_pbus__DOT__coupler_to_slave_named_tileresetctrl__DOT__buffer__DOT__monitor__DOT___GEN_23[0x1cU] = ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_pbus__DOT__coupler_to_slave_named_tileresetctrl__DOT__buffer__DOT__monitor__DOT___T_613) ? __Vtemp2007[0x1cU] : 0U); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_pbus__DOT__coupler_to_slave_named_tileresetctrl__DOT__buffer__DOT__monitor__DOT___GEN_23[0x1dU] = ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_pbus__DOT__coupler_to_slave_named_tileresetctrl__DOT__buffer__DOT__monitor__DOT___T_613) ? __Vtemp2007[0x1dU] : 0U); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_pbus__DOT__coupler_to_slave_named_tileresetctrl__DOT__buffer__DOT__monitor__DOT___GEN_23[0x1eU] = ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_pbus__DOT__coupler_to_slave_named_tileresetctrl__DOT__buffer__DOT__monitor__DOT___T_613) ? __Vtemp2007[0x1eU] : 0U); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_pbus__DOT__coupler_to_slave_named_tileresetctrl__DOT__buffer__DOT__monitor__DOT___GEN_23[0x1fU] = ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_pbus__DOT__coupler_to_slave_named_tileresetctrl__DOT__buffer__DOT__monitor__DOT___T_613) ? __Vtemp2007[0x1fU] : 0U); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_pbus__DOT__coupler_to_slave_named_tileresetctrl__DOT__buffer__DOT__monitor__DOT___GEN_23[0x20U] = ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_pbus__DOT__coupler_to_slave_named_tileresetctrl__DOT__buffer__DOT__monitor__DOT___T_613) ? (0x7fffU & __Vtemp2007[0x20U]) : 0U); __Vtemp2012[0U] = 1U; __Vtemp2012[1U] = 0U; __Vtemp2012[2U] = 0U; __Vtemp2012[3U] = 0U; VL_SHIFTL_WWI(128,128,7, __Vtemp2013, __Vtemp2012, (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_pbus__DOT__coupler_to_device_named_uart_0__DOT__fragmenter_auto_out_a_bits_source)); __Vtemp2018[0U] = 1U; __Vtemp2018[1U] = 0U; __Vtemp2018[2U] = 0U; __Vtemp2018[3U] = 0U; VL_SHIFTL_WWI(128,128,7, __Vtemp2019, __Vtemp2018, (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_pbus__DOT__coupler_to_device_named_uart_0__DOT__fragmenter_auto_out_a_bits_source)); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__uartClockDomainWrapper__DOT__uart_0__DOT__monitor__DOT___inflight_T_2[0U] = ((vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__uartClockDomainWrapper__DOT__uart_0__DOT__monitor__DOT__inflight[0U] | ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__uartClockDomainWrapper__DOT__uart_0__DOT__monitor__DOT___T_597) ? __Vtemp2013[0U] : 0U)) & (~ ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__uartClockDomainWrapper__DOT__uart_0__DOT__monitor__DOT___T_610) ? __Vtemp2019[0U] : 0U))); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__uartClockDomainWrapper__DOT__uart_0__DOT__monitor__DOT___inflight_T_2[1U] = ((vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__uartClockDomainWrapper__DOT__uart_0__DOT__monitor__DOT__inflight[1U] | ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__uartClockDomainWrapper__DOT__uart_0__DOT__monitor__DOT___T_597) ? __Vtemp2013[1U] : 0U)) & (~ ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__uartClockDomainWrapper__DOT__uart_0__DOT__monitor__DOT___T_610) ? __Vtemp2019[1U] : 0U))); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__uartClockDomainWrapper__DOT__uart_0__DOT__monitor__DOT___inflight_T_2[2U] = (0xffffU & ((vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__uartClockDomainWrapper__DOT__uart_0__DOT__monitor__DOT__inflight[2U] | ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__uartClockDomainWrapper__DOT__uart_0__DOT__monitor__DOT___T_597) ? __Vtemp2013[2U] : 0U)) & (~ ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__uartClockDomainWrapper__DOT__uart_0__DOT__monitor__DOT___T_610) ? __Vtemp2019[2U] : 0U)))); } void VTestHarness::_settle__TOP__1070(VTestHarness__Syms* __restrict vlSymsp) { VL_DEBUG_IF(VL_DBG_MSGF("+ VTestHarness::_settle__TOP__1070\n"); ); VTestHarness* __restrict vlTOPp VL_ATTR_UNUSED = vlSymsp->TOPp; // Variables // Begin mtask footprint all: WData/*1055:0*/ __Vtemp2027[33]; WData/*1055:0*/ __Vtemp2028[33]; // Body __Vtemp2027[0U] = 0xfU; __Vtemp2027[1U] = 0U; __Vtemp2027[2U] = 0U; __Vtemp2027[3U] = 0U; __Vtemp2027[4U] = 0U; __Vtemp2027[5U] = 0U; __Vtemp2027[6U] = 0U; __Vtemp2027[7U] = 0U; __Vtemp2027[8U] = 0U; __Vtemp2027[9U] = 0U; __Vtemp2027[0xaU] = 0U; __Vtemp2027[0xbU] = 0U; __Vtemp2027[0xcU] = 0U; __Vtemp2027[0xdU] = 0U; __Vtemp2027[0xeU] = 0U; __Vtemp2027[0xfU] = 0U; __Vtemp2027[0x10U] = 0U; __Vtemp2027[0x11U] = 0U; __Vtemp2027[0x12U] = 0U; __Vtemp2027[0x13U] = 0U; __Vtemp2027[0x14U] = 0U; __Vtemp2027[0x15U] = 0U; __Vtemp2027[0x16U] = 0U; __Vtemp2027[0x17U] = 0U; __Vtemp2027[0x18U] = 0U; __Vtemp2027[0x19U] = 0U; __Vtemp2027[0x1aU] = 0U; __Vtemp2027[0x1bU] = 0U; __Vtemp2027[0x1cU] = 0U; __Vtemp2027[0x1dU] = 0U; __Vtemp2027[0x1eU] = 0U; __Vtemp2027[0x1fU] = 0U; __Vtemp2027[0x20U] = 0U; VL_SHIFTL_WWI(1039,1039,10, __Vtemp2028, __Vtemp2027, ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_pbus__DOT__coupler_to_device_named_uart_0__DOT__fragmenter_auto_out_a_bits_source) << 2U)); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__uartClockDomainWrapper__DOT__uart_0__DOT__monitor__DOT___GEN_23[0U] = ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__uartClockDomainWrapper__DOT__uart_0__DOT__monitor__DOT___T_610) ? __Vtemp2028[0U] : 0U); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__uartClockDomainWrapper__DOT__uart_0__DOT__monitor__DOT___GEN_23[1U] = ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__uartClockDomainWrapper__DOT__uart_0__DOT__monitor__DOT___T_610) ? __Vtemp2028[1U] : 0U); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__uartClockDomainWrapper__DOT__uart_0__DOT__monitor__DOT___GEN_23[2U] = ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__uartClockDomainWrapper__DOT__uart_0__DOT__monitor__DOT___T_610) ? __Vtemp2028[2U] : 0U); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__uartClockDomainWrapper__DOT__uart_0__DOT__monitor__DOT___GEN_23[3U] = ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__uartClockDomainWrapper__DOT__uart_0__DOT__monitor__DOT___T_610) ? __Vtemp2028[3U] : 0U); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__uartClockDomainWrapper__DOT__uart_0__DOT__monitor__DOT___GEN_23[4U] = ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__uartClockDomainWrapper__DOT__uart_0__DOT__monitor__DOT___T_610) ? __Vtemp2028[4U] : 0U); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__uartClockDomainWrapper__DOT__uart_0__DOT__monitor__DOT___GEN_23[5U] = ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__uartClockDomainWrapper__DOT__uart_0__DOT__monitor__DOT___T_610) ? __Vtemp2028[5U] : 0U); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__uartClockDomainWrapper__DOT__uart_0__DOT__monitor__DOT___GEN_23[6U] = ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__uartClockDomainWrapper__DOT__uart_0__DOT__monitor__DOT___T_610) ? __Vtemp2028[6U] : 0U); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__uartClockDomainWrapper__DOT__uart_0__DOT__monitor__DOT___GEN_23[7U] = ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__uartClockDomainWrapper__DOT__uart_0__DOT__monitor__DOT___T_610) ? __Vtemp2028[7U] : 0U); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__uartClockDomainWrapper__DOT__uart_0__DOT__monitor__DOT___GEN_23[8U] = ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__uartClockDomainWrapper__DOT__uart_0__DOT__monitor__DOT___T_610) ? __Vtemp2028[8U] : 0U); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__uartClockDomainWrapper__DOT__uart_0__DOT__monitor__DOT___GEN_23[9U] = ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__uartClockDomainWrapper__DOT__uart_0__DOT__monitor__DOT___T_610) ? __Vtemp2028[9U] : 0U); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__uartClockDomainWrapper__DOT__uart_0__DOT__monitor__DOT___GEN_23[0xaU] = ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__uartClockDomainWrapper__DOT__uart_0__DOT__monitor__DOT___T_610) ? __Vtemp2028[0xaU] : 0U); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__uartClockDomainWrapper__DOT__uart_0__DOT__monitor__DOT___GEN_23[0xbU] = ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__uartClockDomainWrapper__DOT__uart_0__DOT__monitor__DOT___T_610) ? __Vtemp2028[0xbU] : 0U); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__uartClockDomainWrapper__DOT__uart_0__DOT__monitor__DOT___GEN_23[0xcU] = ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__uartClockDomainWrapper__DOT__uart_0__DOT__monitor__DOT___T_610) ? __Vtemp2028[0xcU] : 0U); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__uartClockDomainWrapper__DOT__uart_0__DOT__monitor__DOT___GEN_23[0xdU] = ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__uartClockDomainWrapper__DOT__uart_0__DOT__monitor__DOT___T_610) ? __Vtemp2028[0xdU] : 0U); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__uartClockDomainWrapper__DOT__uart_0__DOT__monitor__DOT___GEN_23[0xeU] = ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__uartClockDomainWrapper__DOT__uart_0__DOT__monitor__DOT___T_610) ? __Vtemp2028[0xeU] : 0U); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__uartClockDomainWrapper__DOT__uart_0__DOT__monitor__DOT___GEN_23[0xfU] = ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__uartClockDomainWrapper__DOT__uart_0__DOT__monitor__DOT___T_610) ? __Vtemp2028[0xfU] : 0U); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__uartClockDomainWrapper__DOT__uart_0__DOT__monitor__DOT___GEN_23[0x10U] = ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__uartClockDomainWrapper__DOT__uart_0__DOT__monitor__DOT___T_610) ? __Vtemp2028[0x10U] : 0U); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__uartClockDomainWrapper__DOT__uart_0__DOT__monitor__DOT___GEN_23[0x11U] = ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__uartClockDomainWrapper__DOT__uart_0__DOT__monitor__DOT___T_610) ? __Vtemp2028[0x11U] : 0U); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__uartClockDomainWrapper__DOT__uart_0__DOT__monitor__DOT___GEN_23[0x12U] = ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__uartClockDomainWrapper__DOT__uart_0__DOT__monitor__DOT___T_610) ? __Vtemp2028[0x12U] : 0U); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__uartClockDomainWrapper__DOT__uart_0__DOT__monitor__DOT___GEN_23[0x13U] = ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__uartClockDomainWrapper__DOT__uart_0__DOT__monitor__DOT___T_610) ? __Vtemp2028[0x13U] : 0U); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__uartClockDomainWrapper__DOT__uart_0__DOT__monitor__DOT___GEN_23[0x14U] = ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__uartClockDomainWrapper__DOT__uart_0__DOT__monitor__DOT___T_610) ? __Vtemp2028[0x14U] : 0U); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__uartClockDomainWrapper__DOT__uart_0__DOT__monitor__DOT___GEN_23[0x15U] = ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__uartClockDomainWrapper__DOT__uart_0__DOT__monitor__DOT___T_610) ? __Vtemp2028[0x15U] : 0U); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__uartClockDomainWrapper__DOT__uart_0__DOT__monitor__DOT___GEN_23[0x16U] = ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__uartClockDomainWrapper__DOT__uart_0__DOT__monitor__DOT___T_610) ? __Vtemp2028[0x16U] : 0U); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__uartClockDomainWrapper__DOT__uart_0__DOT__monitor__DOT___GEN_23[0x17U] = ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__uartClockDomainWrapper__DOT__uart_0__DOT__monitor__DOT___T_610) ? __Vtemp2028[0x17U] : 0U); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__uartClockDomainWrapper__DOT__uart_0__DOT__monitor__DOT___GEN_23[0x18U] = ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__uartClockDomainWrapper__DOT__uart_0__DOT__monitor__DOT___T_610) ? __Vtemp2028[0x18U] : 0U); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__uartClockDomainWrapper__DOT__uart_0__DOT__monitor__DOT___GEN_23[0x19U] = ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__uartClockDomainWrapper__DOT__uart_0__DOT__monitor__DOT___T_610) ? __Vtemp2028[0x19U] : 0U); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__uartClockDomainWrapper__DOT__uart_0__DOT__monitor__DOT___GEN_23[0x1aU] = ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__uartClockDomainWrapper__DOT__uart_0__DOT__monitor__DOT___T_610) ? __Vtemp2028[0x1aU] : 0U); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__uartClockDomainWrapper__DOT__uart_0__DOT__monitor__DOT___GEN_23[0x1bU] = ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__uartClockDomainWrapper__DOT__uart_0__DOT__monitor__DOT___T_610) ? __Vtemp2028[0x1bU] : 0U); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__uartClockDomainWrapper__DOT__uart_0__DOT__monitor__DOT___GEN_23[0x1cU] = ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__uartClockDomainWrapper__DOT__uart_0__DOT__monitor__DOT___T_610) ? __Vtemp2028[0x1cU] : 0U); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__uartClockDomainWrapper__DOT__uart_0__DOT__monitor__DOT___GEN_23[0x1dU] = ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__uartClockDomainWrapper__DOT__uart_0__DOT__monitor__DOT___T_610) ? __Vtemp2028[0x1dU] : 0U); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__uartClockDomainWrapper__DOT__uart_0__DOT__monitor__DOT___GEN_23[0x1eU] = ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__uartClockDomainWrapper__DOT__uart_0__DOT__monitor__DOT___T_610) ? __Vtemp2028[0x1eU] : 0U); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__uartClockDomainWrapper__DOT__uart_0__DOT__monitor__DOT___GEN_23[0x1fU] = ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__uartClockDomainWrapper__DOT__uart_0__DOT__monitor__DOT___T_610) ? __Vtemp2028[0x1fU] : 0U); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__uartClockDomainWrapper__DOT__uart_0__DOT__monitor__DOT___GEN_23[0x20U] = ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__uartClockDomainWrapper__DOT__uart_0__DOT__monitor__DOT___T_610) ? (0x7fffU & __Vtemp2028[0x20U]) : 0U); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__uartClockDomainWrapper__DOT__uart_0__DOT__out_wivalid_0 = (3U & (((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__uartClockDomainWrapper__DOT__uart_0__DOT___out_wifireMux_T_2) & (((IData)(1U) << (3U & (vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_pbus__DOT__coupler_to_device_named_uart_0__DOT__fragmenter_auto_out_a_bits_address >> 3U))) >> 2U)) & (0U == (0x1fcU & (vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_pbus__DOT__coupler_to_device_named_uart_0__DOT__fragmenter_auto_out_a_bits_address >> 3U))))); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__uartClockDomainWrapper__DOT__uart_0__DOT__out_wivalid_4 = (7U & (((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__uartClockDomainWrapper__DOT__uart_0__DOT___out_wifireMux_T_2) & (((IData)(1U) << (3U & (vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_pbus__DOT__coupler_to_device_named_uart_0__DOT__fragmenter_auto_out_a_bits_address >> 3U))) >> 1U)) & (0U == (0x1fcU & (vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_pbus__DOT__coupler_to_device_named_uart_0__DOT__fragmenter_auto_out_a_bits_address >> 3U))))); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__uartClockDomainWrapper__DOT__uart_0__DOT__out_wivalid_10 = (0xfU & (((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__uartClockDomainWrapper__DOT__uart_0__DOT___out_wifireMux_T_2) & ((IData)(1U) << (3U & (vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_pbus__DOT__coupler_to_device_named_uart_0__DOT__fragmenter_auto_out_a_bits_address >> 3U)))) & (0U == (0x1fcU & (vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_pbus__DOT__coupler_to_device_named_uart_0__DOT__fragmenter_auto_out_a_bits_address >> 3U))))); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_pbus__DOT__coupler_to_device_named_uart_0__DOT__fragmenter__DOT__repeater__DOT___GEN_0 = ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_pbus__DOT__coupler_to_device_named_uart_0__DOT__fragmenter__DOT__repeater__DOT___T_1) | (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_pbus__DOT__coupler_to_device_named_uart_0__DOT__fragmenter__DOT__repeater__DOT__full)); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_pbus__DOT__coupler_to_device_named_uart_0__DOT__fragmenter__DOT__monitor__DOT___T_619 = ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_pbus__DOT__coupler_to_device_named_uart_0__DOT__fragmenter__DOT__monitor__DOT___a_first_T) & (0U == (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_pbus__DOT__coupler_to_device_named_uart_0__DOT__fragmenter__DOT__monitor__DOT__a_first_counter))); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_pbus__DOT__coupler_to_device_named_uart_0__DOT__fragmenter__DOT__monitor__DOT___T_651 = ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_pbus__DOT__coupler_to_device_named_uart_0__DOT__fragmenter__DOT__monitor__DOT___a_first_T) & (0U == (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_pbus__DOT__coupler_to_device_named_uart_0__DOT__fragmenter__DOT__monitor__DOT__a_first_counter_1))); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_pbus__DOT__out_xbar__DOT__monitor_io_in_a_ready = ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_pbus__DOT__out_xbar__DOT___portsAOI_in_0_a_ready_T) | (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_pbus__DOT__out_xbar__DOT___portsAOI_in_0_a_ready_T_1)); } void VTestHarness::_settle__TOP__1071(VTestHarness__Syms* __restrict vlSymsp) { VL_DEBUG_IF(VL_DBG_MSGF("+ VTestHarness::_settle__TOP__1071\n"); ); VTestHarness* __restrict vlTOPp VL_ATTR_UNUSED = vlSymsp->TOPp; // Body vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_pbus__DOT__out_xbar_auto_in_a_ready = ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_pbus__DOT__out_xbar__DOT___portsAOI_in_0_a_ready_T) | (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_pbus__DOT__out_xbar__DOT___portsAOI_in_0_a_ready_T_1)); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_pbus__DOT__fixer__DOT__monitor__DOT___T_692 = (((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_pbus__DOT__out_xbar_auto_in_d_bits_size) == (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_pbus__DOT__fixer__DOT__monitor__DOT__size_1)) | (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__dividerOnlyClockGenerator_3__DOT__bundleOut_0_member_allClocks_subsystem_pbus_0_reset_catcher_io_sync_reset)); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_pbus__DOT__fixer__DOT__monitor__DOT___T_746 = (((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_pbus__DOT__buffer__DOT__bundleOut_0_a_q__DOT__ram_size_io_deq_bits_MPORT_data) == (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_pbus__DOT__out_xbar_auto_in_d_bits_size)) | (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__dividerOnlyClockGenerator_3__DOT__bundleOut_0_member_allClocks_subsystem_pbus_0_reset_catcher_io_sync_reset)); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_pbus__DOT__out_xbar__DOT__monitor__DOT___T_692 = (((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_pbus__DOT__out_xbar__DOT__monitor_io_in_d_bits_size) == (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_pbus__DOT__out_xbar__DOT__monitor__DOT__size_1)) | (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__dividerOnlyClockGenerator_3__DOT__bundleOut_0_member_allClocks_subsystem_pbus_0_reset_catcher_io_sync_reset)); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_pbus__DOT__out_xbar__DOT__monitor__DOT___T_746 = (((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_pbus__DOT__buffer__DOT__bundleOut_0_a_q__DOT__ram_size_io_deq_bits_MPORT_data) == (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_pbus__DOT__out_xbar__DOT__monitor_io_in_d_bits_size)) | (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__dividerOnlyClockGenerator_3__DOT__bundleOut_0_member_allClocks_subsystem_pbus_0_reset_catcher_io_sync_reset)); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_pbus__DOT__fixer__DOT__monitor__DOT___T_722 = ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_pbus__DOT__fixer__DOT__monitor__DOT___T_719) & (6U != (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_pbus__DOT__out_xbar_auto_in_d_bits_opcode))); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_pbus__DOT__fixer__DOT__monitor__DOT___T_684 = (((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_pbus__DOT__out_xbar_auto_in_d_bits_opcode) == (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_pbus__DOT__fixer__DOT__monitor__DOT__opcode_1)) | (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__dividerOnlyClockGenerator_3__DOT__bundleOut_0_member_allClocks_subsystem_pbus_0_reset_catcher_io_sync_reset)); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_pbus__DOT__fixer__DOT__monitor__DOT___T_742 = ((((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_pbus__DOT__out_xbar_auto_in_d_bits_opcode) == ((7U == (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_pbus__DOT__buffer__DOT__bundleOut_0_a_q__DOT__ram_opcode_io_deq_bits_MPORT_data)) ? 4U : ((6U == (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_pbus__DOT__buffer__DOT__bundleOut_0_a_q__DOT__ram_opcode_io_deq_bits_MPORT_data)) ? 4U : (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_pbus__DOT__fixer__DOT__monitor__DOT___GEN_30)))) | ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_pbus__DOT__out_xbar_auto_in_d_bits_opcode) == ((7U == (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_pbus__DOT__buffer__DOT__bundleOut_0_a_q__DOT__ram_opcode_io_deq_bits_MPORT_data)) ? 4U : ((6U == (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_pbus__DOT__buffer__DOT__bundleOut_0_a_q__DOT__ram_opcode_io_deq_bits_MPORT_data)) ? 5U : (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_pbus__DOT__fixer__DOT__monitor__DOT___GEN_30))))) | (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__dividerOnlyClockGenerator_3__DOT__bundleOut_0_member_allClocks_subsystem_pbus_0_reset_catcher_io_sync_reset)); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_pbus__DOT__fixer__DOT__monitor__DOT___T_807 = (((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_pbus__DOT__fixer__DOT__monitor__DOT___d_first_T) & (0U == (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_pbus__DOT__fixer__DOT__monitor__DOT__d_first_counter_2))) & (6U == (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_pbus__DOT__out_xbar_auto_in_d_bits_opcode))); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_pbus__DOT__fixer__DOT__monitor__DOT___T_727 = (((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_pbus__DOT__fixer__DOT__monitor__DOT___d_first_T) & (0U == (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_pbus__DOT__fixer__DOT__monitor__DOT__d_first_counter_1))) & (6U != (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_pbus__DOT__out_xbar_auto_in_d_bits_opcode))); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_pbus__DOT__out_xbar__DOT__monitor__DOT___T_722 = ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_pbus__DOT__out_xbar__DOT__monitor__DOT___T_719) & (6U != (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_pbus__DOT__out_xbar__DOT__monitor_io_in_d_bits_opcode))); } void VTestHarness::_settle__TOP__1072(VTestHarness__Syms* __restrict vlSymsp) { VL_DEBUG_IF(VL_DBG_MSGF("+ VTestHarness::_settle__TOP__1072\n"); ); VTestHarness* __restrict vlTOPp VL_ATTR_UNUSED = vlSymsp->TOPp; // Body vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_pbus__DOT__out_xbar__DOT__monitor__DOT___T_684 = (((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_pbus__DOT__out_xbar__DOT__monitor_io_in_d_bits_opcode) == (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_pbus__DOT__out_xbar__DOT__monitor__DOT__opcode_1)) | (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__dividerOnlyClockGenerator_3__DOT__bundleOut_0_member_allClocks_subsystem_pbus_0_reset_catcher_io_sync_reset)); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_pbus__DOT__out_xbar__DOT__monitor__DOT___T_742 = ((((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_pbus__DOT__out_xbar__DOT__monitor_io_in_d_bits_opcode) == ((7U == (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_pbus__DOT__buffer__DOT__bundleOut_0_a_q__DOT__ram_opcode_io_deq_bits_MPORT_data)) ? 4U : ((6U == (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_pbus__DOT__buffer__DOT__bundleOut_0_a_q__DOT__ram_opcode_io_deq_bits_MPORT_data)) ? 4U : (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_pbus__DOT__out_xbar__DOT__monitor__DOT___GEN_30)))) | ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_pbus__DOT__out_xbar__DOT__monitor_io_in_d_bits_opcode) == ((7U == (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_pbus__DOT__buffer__DOT__bundleOut_0_a_q__DOT__ram_opcode_io_deq_bits_MPORT_data)) ? 4U : ((6U == (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_pbus__DOT__buffer__DOT__bundleOut_0_a_q__DOT__ram_opcode_io_deq_bits_MPORT_data)) ? 5U : (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_pbus__DOT__out_xbar__DOT__monitor__DOT___GEN_30))))) | (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__dividerOnlyClockGenerator_3__DOT__bundleOut_0_member_allClocks_subsystem_pbus_0_reset_catcher_io_sync_reset)); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_pbus__DOT__out_xbar__DOT__monitor__DOT___T_807 = (((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_pbus__DOT__out_xbar__DOT__monitor__DOT___d_first_T) & (0U == (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_pbus__DOT__out_xbar__DOT__monitor__DOT__d_first_counter_2))) & (6U == (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_pbus__DOT__out_xbar__DOT__monitor_io_in_d_bits_opcode))); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_pbus__DOT__out_xbar__DOT__monitor__DOT___T_727 = (((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_pbus__DOT__out_xbar__DOT__monitor__DOT___d_first_T) & (0U == (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_pbus__DOT__out_xbar__DOT__monitor__DOT__d_first_counter_1))) & (6U != (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_pbus__DOT__out_xbar__DOT__monitor_io_in_d_bits_opcode))); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_pbus__DOT__fixer__DOT__monitor__DOT___T_517 = (((((4U == (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_pbus__DOT__out_xbar_auto_in_d_bits_source)) | (0U == (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_pbus__DOT__out_xbar_auto_in_d_bits_source))) | (1U == (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_pbus__DOT__out_xbar_auto_in_d_bits_source))) | (2U == (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_pbus__DOT__out_xbar_auto_in_d_bits_source))) | (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__dividerOnlyClockGenerator_3__DOT__bundleOut_0_member_allClocks_subsystem_pbus_0_reset_catcher_io_sync_reset)); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_pbus__DOT__fixer__DOT__monitor__DOT___T_696 = (((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_pbus__DOT__out_xbar_auto_in_d_bits_source) == (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_pbus__DOT__fixer__DOT__monitor__DOT__source_1)) | (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__dividerOnlyClockGenerator_3__DOT__bundleOut_0_member_allClocks_subsystem_pbus_0_reset_catcher_io_sync_reset)); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_pbus__DOT__fixer__DOT__monitor__DOT___T_815 = (1U & ((0x1fU & ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_pbus__DOT__fixer__DOT__monitor__DOT__inflight_1) >> (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_pbus__DOT__out_xbar_auto_in_d_bits_source))) | (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__dividerOnlyClockGenerator_3__DOT__bundleOut_0_member_allClocks_subsystem_pbus_0_reset_catcher_io_sync_reset))); vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_pbus__DOT__fixer__DOT__monitor__DOT___T_758 = (((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_pbus__DOT__out_xbar_auto_in_d_bits_size) == (0xfU & (((0x13U >= ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_pbus__DOT__out_xbar_auto_in_d_bits_source) << 2U)) ? (0xfU & (vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_pbus__DOT__fixer__DOT__monitor__DOT__inflight_sizes >> ((IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__system__DOT__subsystem_pbus__DOT__out_xbar_auto_in_d_bits_source) << 2U))) : 0U) >> 1U))) | (IData)(vlTOPp->TestHarness__DOT__chiptop__DOT__dividerOnlyClockGenerator_3__DOT__bundleOut_0_member_allClocks_subsystem_pbus_0_reset_catcher_io_sync_reset)); }
120.842369
327
0.723823
vargandhi
f772ce052d7b44a38f2032aa6125bb5e9184eea2
1,748
cpp
C++
IL2CPP/Il2CppOutputProject/IL2CPP/libil2cpp/os/OSX/SystemCertificates.cpp
dngoins/AutographTheWorld-MR
24e567c8030b73a6942e25b36b7370667c649b90
[ "MIT" ]
16
2018-10-13T12:29:06.000Z
2022-02-25T14:56:47.000Z
IL2CPP/Il2CppOutputProject/IL2CPP/libil2cpp/os/OSX/SystemCertificates.cpp
dngoins/AutographTheWorld-MR
24e567c8030b73a6942e25b36b7370667c649b90
[ "MIT" ]
8
2020-03-10T23:11:09.000Z
2020-03-14T01:19:32.000Z
IL2CPP/Il2CppOutputProject/IL2CPP/libil2cpp/os/OSX/SystemCertificates.cpp
dngoins/AutographTheWorld-MR
24e567c8030b73a6942e25b36b7370667c649b90
[ "MIT" ]
7
2020-06-09T13:16:30.000Z
2021-11-01T15:28:04.000Z
#include "os/c-api/il2cpp-config-platforms.h" #if IL2CPP_TARGET_OSX #include "os/SystemCertificates.h" #include <Security/SecTrust.h> #include <Security/SecCertificate.h> #include <Security/SecImportExport.h> namespace il2cpp { namespace os { void* SystemCertificates::OpenSystemRootStore() { CFArrayRef anchors = NULL; OSStatus s; s = SecTrustCopyAnchorCertificates(&anchors); IL2CPP_ASSERT(s == noErr); return (void*)anchors; } int SystemCertificates::EnumSystemCertificates(void* certStore, void** iter, int *format, int* size, void** data) { OSStatus s; CFDataRef certData; int numCerts = (int)CFArrayGetCount((CFArrayRef)certStore); *format = DATATYPE_STRING; // Order matters when it comes to certificates need to read in reverse int currentCert = numCerts; if (*iter != NULL) { currentCert = static_cast<int>(reinterpret_cast<intptr_t>(*iter)); } SecCertificateRef cert = (SecCertificateRef)CFArrayGetValueAtIndex((CFArrayRef)certStore, (currentCert - 1)); s = SecItemExport(cert, kSecFormatPEMSequence, kSecItemPemArmour, NULL, &certData); if (s == errSecSuccess) { char* certPEMStr = (char*)CFDataGetBytePtr(certData); *iter = reinterpret_cast<void*>(static_cast<intptr_t>((currentCert - 1))); *data = certPEMStr; *size = sizeof(certPEMStr); if ((currentCert - 1) > 0) { return TRUE; } } return FALSE; } void SystemCertificates::CloseSystemRootStore(void* cStore) { CFRelease((CFArrayRef)cStore); } } } #endif
26.484848
117
0.621281
dngoins
f7745e41a1bf665c0657e8e571b3654fd541ae3b
2,335
cpp
C++
pin-3.22-98547-g7a303a835-gcc-linux/source/tools/ToolUnitTests/thread_callback.cpp
ArthasZhang007/15418FinalProject
a71f698ea48ebbc446111734c198f16a55633669
[ "MIT" ]
null
null
null
pin-3.22-98547-g7a303a835-gcc-linux/source/tools/ToolUnitTests/thread_callback.cpp
ArthasZhang007/15418FinalProject
a71f698ea48ebbc446111734c198f16a55633669
[ "MIT" ]
null
null
null
pin-3.22-98547-g7a303a835-gcc-linux/source/tools/ToolUnitTests/thread_callback.cpp
ArthasZhang007/15418FinalProject
a71f698ea48ebbc446111734c198f16a55633669
[ "MIT" ]
null
null
null
/* * Copyright (C) 2008-2021 Intel Corporation. * SPDX-License-Identifier: MIT */ // Sample usage: // pin -mt -t thread_callback -- thread_wait #include <stdio.h> #include <iostream> #include "pin.H" FILE* out; PIN_LOCK pinLock; int numThreads; typedef int (*FUNCPTR_ADD)(int, int); AFUNPTR pf_Add = 0; VOID ThreadStart(THREADID threadid, CONTEXT* ctxt, INT32 flags, VOID* v) { if (pf_Add == 0x0) return; fprintf(out, "thread begin %d\n", threadid); numThreads++; int sum = 0; int one = 1; int two = 2; PIN_CallApplicationFunction(ctxt, threadid, CALLINGSTD_DEFAULT, (AFUNPTR)pf_Add, NULL, PIN_PARG(int), &sum, PIN_PARG(int), one, PIN_PARG(int), two, PIN_PARG_END()); fprintf(out, "%d+%d=%d\n", one, two, sum); fflush(out); } VOID ThreadFini(THREADID threadid, const CONTEXT* ctxt, INT32 code, VOID* v) { if (pf_Add == 0x0) return; fprintf(out, "thread end %d code %d\n", (int)threadid, (int)code); int sum = 0; int three = 3; int four = 4; PIN_CallApplicationFunction(const_cast< CONTEXT* >(ctxt), threadid, CALLINGSTD_DEFAULT, (AFUNPTR)pf_Add, NULL, PIN_PARG(int), &sum, PIN_PARG(int), three, PIN_PARG(int), four, PIN_PARG_END()); fprintf(out, "%d+%d=%d\n", three, four, sum); } VOID Fini(INT32 code, VOID* v) { fprintf(out, "Fini: code %d\n", code); fclose(out); } VOID ImageLoad(IMG img, VOID* v) { if (IMG_IsMainExecutable(img)) { std::cout << "Processing image " << IMG_Name(img) << std::endl; RTN rtn = RTN_FindByName(img, "Add2"); if (RTN_Valid(rtn)) { pf_Add = (AFUNPTR)RTN_Address(rtn); fprintf(out, "address of application function = %p\n", (void*)pf_Add); fflush(out); } else std::cout << "Cannot find Add2" << std::endl; } } int main(INT32 argc, CHAR** argv) { PIN_InitLock(&pinLock); out = fopen("thread_callback.out", "w"); numThreads = 1; PIN_InitSymbols(); PIN_Init(argc, argv); PIN_AddThreadStartFunction(ThreadStart, 0); PIN_AddThreadFiniFunction(ThreadFini, 0); PIN_AddFiniFunction(Fini, 0); IMG_AddInstrumentFunction(ImageLoad, 0); // Never returns PIN_StartProgram(); return 0; }
23.585859
129
0.605567
ArthasZhang007
f774e4c8b27ad670e8e2b76ba5b8a56a3be0261d
938
cpp
C++
lab26/1 - async.cpp
uiowa-cs-3210-0001/cs3210-labs
d6263d719a45257ba056a1ead7cc3dd428d377f3
[ "MIT" ]
1
2019-01-24T14:04:45.000Z
2019-01-24T14:04:45.000Z
lab26/1 - async.cpp
uiowa-cs-3210-0001/cs3210-labs
d6263d719a45257ba056a1ead7cc3dd428d377f3
[ "MIT" ]
1
2019-01-24T18:32:45.000Z
2019-01-28T04:10:28.000Z
lab26/1 - async.cpp
uiowa-cs-3210-0001/cs3210-labs
d6263d719a45257ba056a1ead7cc3dd428d377f3
[ "MIT" ]
1
2019-02-07T00:28:20.000Z
2019-02-07T00:28:20.000Z
#include <iostream> #include <vector> #include <future> #include <cmath> #include <chrono> using namespace std; using namespace std::chrono; bool is_prime( long n ) { auto const sqrt_n = sqrt( n ); for ( long i = 2; i <= sqrt_n; ++i ) if ( ( n % i ) == 0 ) return false; return true; } vector<long> find_primes( long max ) { vector<long> result; for ( long i = 2; i <= max; ++i ) if ( is_prime( i ) ) result.push_back( i ); return result; } int main() { // auto start_time = high_resolution_clock::now(); auto primes = find_primes( 10000000 ); // auto end_time = high_resolution_clock::now(); // auto duration = duration_cast<microseconds>( end_time - start_time ).count(); // cout << "Execution time (ms): " << duration << endl; cout << "Number of primes: " << primes.size() << endl; cout << "Max primes: " << primes.back() << endl; }
21.318182
84
0.578891
uiowa-cs-3210-0001
f7757760fd957335ec07322d6c4e2ce75bbb4a0c
846
cc
C++
third_party/blink/renderer/modules/webcodecs/audio_decoder_test.cc
mghgroup/Glide-Browser
6a4c1eaa6632ec55014fee87781c6bbbb92a2af5
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
null
null
null
third_party/blink/renderer/modules/webcodecs/audio_decoder_test.cc
mghgroup/Glide-Browser
6a4c1eaa6632ec55014fee87781c6bbbb92a2af5
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
null
null
null
third_party/blink/renderer/modules/webcodecs/audio_decoder_test.cc
mghgroup/Glide-Browser
6a4c1eaa6632ec55014fee87781c6bbbb92a2af5
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
2
2021-01-05T23:43:46.000Z
2021-01-07T23:36:34.000Z
// Copyright 2020 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "testing/gtest/include/gtest/gtest.h" #include "third_party/blink/renderer/bindings/core/v8/v8_binding_for_testing.h" #include "third_party/blink/renderer/bindings/modules/v8/v8_audio_decoder_init.h" #include "third_party/blink/renderer/platform/heap/heap.h" #include "third_party/blink/renderer/modules/webcodecs/audio_decoder.h" namespace blink { TEST(AudioDecoderTest, Construction) { V8TestingScope v8_scope; auto* init = MakeGarbageCollected<AudioDecoderInit>(); auto* decoder = MakeGarbageCollected<AudioDecoder>( v8_scope.GetScriptState(), init, v8_scope.GetExceptionState()); EXPECT_EQ(decoder->decodeQueueSize(), 0); } } // namespace blink
32.538462
81
0.781324
mghgroup
f7757c023dd41c7fe70cf21a00dd0b31fd19815e
1,282
cpp
C++
core/src/system/CollisionDamage.cpp
Floriantoine/MyHunter_Sfml
8744e1b03d9d5fb621f9cba7619d9d5dd943e428
[ "MIT" ]
null
null
null
core/src/system/CollisionDamage.cpp
Floriantoine/MyHunter_Sfml
8744e1b03d9d5fb621f9cba7619d9d5dd943e428
[ "MIT" ]
null
null
null
core/src/system/CollisionDamage.cpp
Floriantoine/MyHunter_Sfml
8744e1b03d9d5fb621f9cba7619d9d5dd943e428
[ "MIT" ]
null
null
null
#include "system/CollisionDamage.hpp" #include "components/Damage.hpp" #include "components/HealthComponent.hpp" #include "components/SolidBlock.hpp" #include "components/systemActivator/HaveCollisionDamage.hpp" namespace systems { void CollisionDamage::update(long elapsedTime) { auto array = this->_componentManager ->getComponentList<components::HaveCollisionDamage>(); for (auto &it: array) { components::SolidBlock *solidC = this->_componentManager->getComponent<components::SolidBlock>( it.first); if (solidC) { if (solidC->_haveCollision && solidC->_targetsId.size()) { components::Damage *damageC = this->_componentManager->getComponent<components::Damage>( solidC->_targetsId[0]); if (damageC) { components::HealthComponent *healthC = this->_componentManager ->getComponent<components::HealthComponent>( it.first); if (healthC) { healthC->health -= damageC->_damage; } } } } } }; } // namespace systems
36.628571
78
0.549142
Floriantoine
f775caf6faef2f359066287a55bc67c54e095508
1,490
hpp
C++
src/Switch.System.Drawing/include/Switch/System/Drawing/StringFormat.hpp
victor-timoshin/Switch
8e8e687a8bdc4f79d482680da3968e9b3e464b8b
[ "MIT" ]
4
2020-02-11T13:22:58.000Z
2022-02-24T00:37:43.000Z
src/Switch.System.Drawing/include/Switch/System/Drawing/StringFormat.hpp
sgf/Switch
8e8e687a8bdc4f79d482680da3968e9b3e464b8b
[ "MIT" ]
null
null
null
src/Switch.System.Drawing/include/Switch/System/Drawing/StringFormat.hpp
sgf/Switch
8e8e687a8bdc4f79d482680da3968e9b3e464b8b
[ "MIT" ]
2
2020-02-01T02:19:01.000Z
2021-12-30T06:44:00.000Z
/// @file /// @brief Contains Switch::System::Drawing::Graphics class. #pragma once #include <Switch/System/Object.hpp> #include "StringAlignment.hpp" namespace Switch { /// @brief The System namespace contains fundamental classes and base classes that define commonly-used value and reference data types, events and event handlers, interfaces, attributes, and processing exceptions. namespace System { /// @brief The System::Drawing namespace provides access to GDI+ basic graphics functionality. More advanced functionality is provided in the System::Drawing::Drawing2D, System::Drawing::Imaging, and System::Drawing::Text namespaces. namespace Drawing { /// @par Library /// Switch.System.Drawing class system_drawing_export_ StringFormat : public Object { public: StringFormat() {} StringFormat(const StringFormat& stringFormat) : alignment(stringFormat.alignment), lineAlignment(stringFormat.lineAlignment) {} StringFormat& operator=(const StringFormat&) = default; property_<StringAlignment> Alignment { get_ {return this->alignment;}, set_ {this->alignment = value;} }; property_<StringAlignment> LineAlignment { get_ {return this->lineAlignment;}, set_ {this->lineAlignment = value;} }; private: StringAlignment alignment = StringAlignment::Near; StringAlignment lineAlignment = StringAlignment::Near; }; } } }
39.210526
237
0.695973
victor-timoshin
f7774be4776214fed2cdfa2be3bd50c88ae506df
27,258
cpp
C++
com/oleutest/oletest/oletest.cpp
npocmaka/Windows-Server-2003
5c6fe3db626b63a384230a1aa6b92ac416b0765f
[ "Unlicense" ]
17
2020-11-13T13:42:52.000Z
2021-09-16T09:13:13.000Z
com/oleutest/oletest/oletest.cpp
sancho1952007/Windows-Server-2003
5c6fe3db626b63a384230a1aa6b92ac416b0765f
[ "Unlicense" ]
2
2020-10-19T08:02:06.000Z
2020-10-19T08:23:18.000Z
com/oleutest/oletest/oletest.cpp
sancho1952007/Windows-Server-2003
5c6fe3db626b63a384230a1aa6b92ac416b0765f
[ "Unlicense" ]
14
2020-11-14T09:43:20.000Z
2021-08-28T08:59:57.000Z
//+------------------------------------------------------------------------- // // Microsoft Windows // Copyright (C) Microsoft Corporation, 1992 - 1993. // // File: oletest.cpp // // Contents: WinMain and the main message filter for oletest // // Classes: // // Functions: WinMain // InitApplication // InitInstance // MainWndProc // // // History: dd-mmm-yy Author Comment // //-------------------------------------------------------------------------- #include "oletest.h" #include "appwin.h" #define MAX_WM_USER 0x7FFF // Global instance of the app class. All interesting app-wide // data is contained within this instance. OleTestApp vApp; // Constant used to identify the edit window static const int EDITID=1; // // Misc internal prototypes // void ListAllTests(); void PrintHelp(); //+------------------------------------------------------------------------- // // Function: MainWndProc // // Synopsis: main window message filter // // Effects: // // Arguments: hWnd // message // wParam // lParam // // Requires: // // Returns: // // Signals: // // Modifies: // // Algorithm: // // History: dd-mmm-yy Author Comment // 09-Dec-94 MikeW Allow running of single tests from menu // 22-Mar-94 alexgo added an edit window for displaying text // output. // 07-Feb-94 alexgo author // // Notes: // //-------------------------------------------------------------------------- #ifdef WIN32 LONG APIENTRY MainWndProc(HWND hWnd, UINT message, UINT wParam, LONG lParam) #else LONG FAR PASCAL _export MainWndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam) #endif { //set global variables if( (message > WM_USER) && (message <= MAX_WM_USER) ) { vApp.m_message = message; vApp.m_wparam = wParam; vApp.m_lparam = lParam; } switch (message) { case WM_CREATE: //create the edit window vApp.m_hwndEdit = CreateWindow( "edit", NULL, WS_CHILD | WS_VISIBLE | WS_HSCROLL | WS_VSCROLL | WS_BORDER | ES_LEFT | ES_MULTILINE | ES_NOHIDESEL | ES_AUTOHSCROLL | ES_AUTOVSCROLL | ES_READONLY | ES_WANTRETURN, 0,0,0,0, hWnd,(HMENU) EDITID, vApp.m_hinst, NULL ); // Reset the error status vApp.m_fGotErrors = FALSE; // start the task stack running // note that if we are running interactive, and no // tasks were specified on the command line, nothing // will happen. PostMessage(hWnd, WM_TESTSTART, 0,0); break; case WM_SETFOCUS: SetFocus(vApp.m_hwndEdit); break; case WM_SIZE: MoveWindow( vApp.m_hwndEdit, 0, 0, LOWORD(lParam), HIWORD(lParam), TRUE); break; case WM_DESTROY: PostQuitMessage(0); break; case WM_TESTEND: HandleTestEnd(); break; case WM_TESTSCOMPLETED: HandleTestsCompleted(); //if we are not in interactive mode, then //quit the app. if (!vApp.m_fInteractive) { PostQuitMessage(0); } else { //cleanup vApp.Reset(); } break; case WM_COMMAND: switch( wParam ) { case IDM_EXIT: SendMessage(hWnd, WM_CLOSE, 0, 0L); break; case IDM_COPY: SendMessage(vApp.m_hwndEdit, WM_COPY, 0, 0L); break; case IDM_SAVE: SaveToFile(); break; } // // if the user picked a test, run it // > 100 tests wouldn't fit on the menu anyway // if (wParam >= IDM_RUN_BASE && wParam < IDM_RUN_BASE + 100) { vApp.m_TaskStack.Push(&vrgTaskList[wParam - IDM_RUN_BASE]); vApp.m_TaskStack.PopAndExecute(NULL); } break; default: //test to see if it's a message the driver //may understand if( (message > WM_USER) && (message <= MAX_WM_USER) && (!vApp.m_TaskStack.IsEmpty()) ) { vApp.m_TaskStack.PopAndExecute(NULL); } else { return DefWindowProc(hWnd, message, wParam, lParam); } break; } return (0); } //+------------------------------------------------------------------------- // // Function: InitApplication // // Synopsis: initializes and registers the application class // // Effects: // // Arguments: // // Requires: // // Returns: // // Signals: // // Modifies: // // Algorithm: // // History: dd-mmm-yy Author Comment // 06-Feb-93 alexgo author // // Notes: // //-------------------------------------------------------------------------- BOOL InitApplication(HINSTANCE hInstance) { WNDCLASS wc; wc.style = 0; wc.lpfnWndProc = MainWndProc; wc.cbClsExtra = 0; wc.cbWndExtra = 0; wc.hInstance = hInstance; wc.hIcon = LoadIcon(NULL, IDI_APPLICATION); wc.hCursor = LoadCursor(hInstance, IDC_ARROW); wc.hbrBackground = (HBRUSH)GetStockObject(WHITE_BRUSH); wc.lpszMenuName = "OleTestMenu"; wc.lpszClassName = "OleTestWClass"; return (RegisterClass(&wc)); } //+------------------------------------------------------------------------- // // Function: InitInstance // // Synopsis: creates the app window // // Effects: // // Arguments: hInstance // nCmdShow // // Requires: // // Returns: // // Signals: // // Modifies: // // Algorithm: // // History: dd-mmm-yy Author Comment // 06-Feb-94 alexgo author // 09-Dec-94 MikeW add tests to the run menu // // Notes: // //-------------------------------------------------------------------------- BOOL InitInstance( HINSTANCE hInstance, UINT nCmdShow) { int nTask; HMENU hMenu; vApp.m_hinst = hInstance; vApp.m_hwndMain = CreateWindow( "OleTestWClass", "OleTest Driver", WS_OVERLAPPEDWINDOW, CW_USEDEFAULT, CW_USEDEFAULT, CW_USEDEFAULT, CW_USEDEFAULT, NULL, NULL, hInstance, NULL ); if (!vApp.m_hwndMain) return (FALSE); hMenu = GetSubMenu(GetMenu(vApp.m_hwndMain), 2); if (!hMenu) return (FALSE); // // Add all of the tests to the "Run" menu // for (nTask = 0; vrgTaskList[nTask].szName != (LPSTR) 0; nTask++) { AppendMenu(hMenu, MF_STRING, IDM_RUN_BASE + nTask, vrgTaskList[nTask].szName); } ShowWindow(vApp.m_hwndMain, nCmdShow); UpdateWindow(vApp.m_hwndMain); return (TRUE); } //+------------------------------------------------------------------------- // // Table: regConfig // // Synopsis: Table of registry settings required to run OleTest. // // History: dd-mmm-yy Author Comment // 08-Nov-94 KentCe Created. // // Notes: The registry template contains embedded "%s" to permit // the insertion of the full path of test binaries when the // registry is updated. // // The registry template is passed to wsprintf as an argument // so verify that changes are wsprintf safe (ie, use %% when // you want a single %, etc). // //-------------------------------------------------------------------------- char * regConfig[] = { ".ut1", "ProgID49", ".ut2", "ProgID48", ".ut3", "ProgID47", ".ut4", "ProgID50", "ProgID49", "test app 1", "ProgID49\\CLSID", "{99999999-0000-0008-C000-000000000049}", "ProgID48", "test app 2", "ProgID48\\CLSID", "{99999999-0000-0008-C000-000000000048}", "ProgID47", "test app 3", "ProgID47\\CLSID", "{99999999-0000-0008-C000-000000000047}", "ProgID50", "test app 4", "ProgID50\\CLSID", "{99999999-0000-0008-C000-000000000050}", "CLSID\\{00000009-0000-0008-C000-000000000047}", "BasicSrv", "CLSID\\{00000009-0000-0008-C000-000000000047}\\LocalServer32", "%s\\testsrv.exe", "CLSID\\{00000009-0000-0008-C000-000000000048}", "BasicBnd2", "CLSID\\{00000009-0000-0008-C000-000000000048}\\LocalServer32", "%s\\olesrv.exe", "CLSID\\{00000009-0000-0008-C000-000000000049}", "BasicBnd", "CLSID\\{00000009-0000-0008-C000-000000000049}\\InprocServer32", "%s\\oleimpl.dll", "CLSID\\{99999999-0000-0008-C000-000000000048}", "BasicBnd2", "CLSID\\{99999999-0000-0008-C000-000000000048}\\LocalServer32", "%s\\olesrv.exe", "CLSID\\{99999999-0000-0008-C000-000000000049}", "BasicBnd", "CLSID\\{99999999-0000-0008-C000-000000000049}\\InprocServer32", "%s\\oleimpl.dll", "CLSID\\{99999999-0000-0008-C000-000000000047}", "TestEmbed", "CLSID\\{99999999-0000-0008-C000-000000000047}\\InprocHandler32", "ole32.dll", "CLSID\\{99999999-0000-0008-C000-000000000047}\\InprocServer32", "ole32.dll", "CLSID\\{99999999-0000-0008-C000-000000000047}\\LocalServer32", "%s\\testsrv.exe", "CLSID\\{99999999-0000-0008-C000-000000000047}\\protocol\\StdFileEditing", "", "CLSID\\{99999999-0000-0008-C000-000000000047}\\protocol\\StdFileEditing\\server", "testsrv.exe", "CLSID\\{99999999-0000-0008-C000-000000000050}", "TestFail", "CLSID\\{99999999-0000-0008-C000-000000000050}\\LocalServer32", "%s\\fail.exe", "SIMPSVR", "Simple OLE 2.0 Server", "SIMPSVR\\protocol\\StdFileEditing\\server", "simpsvr.exe", "SIMPSVR\\protocol\\StdFileEditing\\verb\\0", "&Edit", "SIMPSVR\\protocol\\StdFileEditing\\verb\\1", "&Open", "SIMPSVR\\Insertable", "", "SIMPSVR\\CLSID", "{BCF6D4A0-BE8C-1068-B6D4-00DD010C0509}", "CLSID\\{BCF6D4A0-BE8C-1068-B6D4-00DD010C0509}", "Simple OLE 2.0 Server", "CLSID\\{BCF6D4A0-BE8C-1068-B6D4-00DD010C0509}\\Insertable", "", "CLSID\\{BCF6D4A0-BE8C-1068-B6D4-00DD010C0509}\\MiscStatus", "0", "CLSID\\{BCF6D4A0-BE8C-1068-B6D4-00DD010C0509}\\DefaultIcon", "simpsvr.exe,0", "CLSID\\{BCF6D4A0-BE8C-1068-B6D4-00DD010C0509}\\AuxUserType\\2", "Simple Server", "CLSID\\{BCF6D4A0-BE8C-1068-B6D4-00DD010C0509}\\AuxUserType\\3", "Simple OLE 2.0 Server", "CLSID\\{BCF6D4A0-BE8C-1068-B6D4-00DD010C0509}\\Verb\\0", "&Play,0,2", "CLSID\\{BCF6D4A0-BE8C-1068-B6D4-00DD010C0509}\\Verb\\1", "&Open,0,2", "CLSID\\{BCF6D4A0-BE8C-1068-B6D4-00DD010C0509}\\LocalServer32", "%s\\simpsvr.exe", "CLSID\\{BCF6D4A0-BE8C-1068-B6D4-00DD010C0509}\\InprocHandler32", "ole32.dll", "CLSID\\{BCF6D4A0-BE8C-1068-B6D4-00DD010C0509}\\ProgID", "SIMPSVR", "CLSID\\{BCF6D4A0-BE8C-1068-B6D4-00DD010C0509}\\DataFormats\\GetSet\\0", "3,1,32,1", ".svr", "SIMPSVR", "SPSVR16", "Simple 16 Bit OLE 2.0 Server", "SPSVR16\\protocol\\StdFileEditing\\server", "spsvr16.exe", "SPSVR16\\protocol\\StdFileEditing\\verb\\0", "&Edit", "SPSVR16\\protocol\\StdFileEditing\\verb\\1", "&Open", "SPSVR16\\Insertable", "", "SPSVR16\\CLSID", "{9fb878d0-6f88-101b-bc65-00000b65c7a6}", "CLSID\\{9fb878d0-6f88-101b-bc65-00000b65c7a6}", "Simple 16 Bit OLE 2.0 Server", "CLSID\\{9fb878d0-6f88-101b-bc65-00000b65c7a6}\\Insertable", "", "CLSID\\{9fb878d0-6f88-101b-bc65-00000b65c7a6}\\MiscStatus", "0", "CLSID\\{9fb878d0-6f88-101b-bc65-00000b65c7a6}\\DefaultIcon", "spsvr16.exe,0", "CLSID\\{9fb878d0-6f88-101b-bc65-00000b65c7a6}\\AuxUserType\\2", "Simple Server", "CLSID\\{9fb878d0-6f88-101b-bc65-00000b65c7a6}\\AuxUserType\\3", "Simple 16 Bit OLE 2.0 Server", "CLSID\\{9fb878d0-6f88-101b-bc65-00000b65c7a6}\\Verb\\0", "&Play,0,2", "CLSID\\{9fb878d0-6f88-101b-bc65-00000b65c7a6}\\Verb\\1", "&Open,0,2", "CLSID\\{9fb878d0-6f88-101b-bc65-00000b65c7a6}\\LocalServer", "%s\\spsvr16.exe", "CLSID\\{9fb878d0-6f88-101b-bc65-00000b65c7a6}\\InprocHandler", "ole2.dll", "CLSID\\{9fb878d0-6f88-101b-bc65-00000b65c7a6}\\ProgID", "SPSVR16", "CLSID\\{9fb878d0-6f88-101b-bc65-00000b65c7a6}\\DataFormats\\GetSet\\0", "3,1,32,1", ".svr", "SPSVR16", "OLEOutline", "Ole 2.0 In-Place Server Outline", "OLEOutline\\CLSID", "{00000402-0000-0000-C000-000000000046}", "OLEOutline\\CurVer", "OLE2ISvrOtl", "OLEOutline\\CurVer\\Insertable", "", "OLE2SvrOutl", "Ole 2.0 Server Sample Outline", "OLE2SvrOutl\\CLSID", "{00000400-0000-0000-C000-000000000046}", "OLE2SvrOutl\\Insertable", "", "OLE2SvrOutl\\protocol\\StdFileEditing\\verb\\0", "&Edit", "OLE2SvrOutl\\protocol\\StdFileEditing\\server", "svroutl.exe", "OLE2SvrOutl\\Shell\\Print\\Command", "svroutl.exe %%1", "OLE2SvrOutl\\Shell\\Open\\Command", "svroutl.exe %%1", "CLSID\\{00000400-0000-0000-C000-000000000046}", "Ole 2.0 Server Sample Outline", "CLSID\\{00000400-0000-0000-C000-000000000046}\\ProgID", "OLE2SvrOutl", "CLSID\\{00000400-0000-0000-C000-000000000046}\\InprocHandler32", "ole32.dll", "CLSID\\{00000400-0000-0000-C000-000000000046}\\LocalServer32", "%s\\svroutl.exe", "CLSID\\{00000400-0000-0000-C000-000000000046}\\Verb\\0", "&Edit,0,2", "CLSID\\{00000400-0000-0000-C000-000000000046}\\Insertable", "", "CLSID\\{00000400-0000-0000-C000-000000000046}\\AuxUserType\\2", "Outline", "CLSID\\{00000400-0000-0000-C000-000000000046}\\AuxUserType\\3", "Ole 2.0 Outline Server", "CLSID\\{00000400-0000-0000-C000-000000000046}\\DefaultIcon", "svroutl.exe,0", "CLSID\\{00000400-0000-0000-C000-000000000046}\\DataFormats\\DefaultFile", "Outline", "CLSID\\{00000400-0000-0000-C000-000000000046}\\DataFormats\\GetSet\\0", "Outline,1,1,3", "CLSID\\{00000400-0000-0000-C000-000000000046}\\DataFormats\\GetSet\\1", "1,1,1,3", "CLSID\\{00000400-0000-0000-C000-000000000046}\\DataFormats\\GetSet\\2", "3,1,32,1", "CLSID\\{00000402-0000-0000-C000-000000000046}\\DataFormats\\GetSet\\3", "3,4,32,1", "CLSID\\{00000402-0000-0000-C000-000000000046}\\MiscStatus", "512", "CLSID\\{00000400-0000-0000-C000-000000000046}\\Conversion\\Readable\\Main", "Outline", "CLSID\\{00000400-0000-0000-C000-000000000046}\\Conversion\\Readwritable\\Main", "Outline", "OLE2CntrOutl", "Ole 2.0 Container Sample Outline", "OLE2CntrOutl\\Clsid", "{00000401-0000-0000-C000-000000000046}", "OLE2CntrOutl\\Shell\\Print\\Command", "cntroutl.exe %%1", "OLE2CntrOutl\\Shell\\Open\\Command", "cntroutl.exe %%1", "CLSID\\{00000401-0000-0000-C000-000000000046}", "Ole 2.0 Container Sample Outline", "CLSID\\{00000401-0000-0000-C000-000000000046}\\ProgID", "OLE2CntrOutl", "CLSID\\{00000401-0000-0000-C000-000000000046}\\InprocHandler32", "ole32.dll", "CLSID\\{00000401-0000-0000-C000-000000000046}\\LocalServer32", "%s\\cntroutl.exe", "OLE2ISvrOtl", "Ole 2.0 In-Place Server Outline", "OLE2ISvrOtl\\CLSID", "{00000402-0000-0000-C000-000000000046}", "OLE2ISvrOtl\\Insertable", "", "OLE2ISvrOtl\\protocol\\StdFileEditing\\verb\\1", "&Open", "OLE2ISvrOtl\\protocol\\StdFileEditing\\verb\\0", "&Edit", "OLE2ISvrOtl\\protocol\\StdFileEditing\\server", "isvrotl.exe", "OLE2ISvrOtl\\Shell\\Print\\Command", "isvrotl.exe %%1", "OLE2ISvrOtl\\Shell\\Open\\Command", "isvrotl.exe %%1", "CLSID\\{00000402-0000-0000-C000-000000000046}", "Ole 2.0 In-Place Server Outline", "CLSID\\{00000402-0000-0000-C000-000000000046}\\ProgID", "OLE2ISvrOtl", "CLSID\\{00000402-0000-0000-C000-000000000046}\\ProgID", "OLE2ISvrOtl", "CLSID\\{00000402-0000-0000-C000-000000000046}\\InprocHandler32", "ole32.dll", "CLSID\\{00000402-0000-0000-C000-000000000046}\\LocalServer32", "%s\\isvrotl.exe", "CLSID\\{00000402-0000-0000-C000-000000000046}\\Verb\\1", "&Open,0,2", "CLSID\\{00000402-0000-0000-C000-000000000046}\\Verb\\0", "&Edit,0,2", "CLSID\\{00000402-0000-0000-C000-000000000046}\\Insertable", "", "CLSID\\{00000402-0000-0000-C000-000000000046}\\AuxUserType\\2", "Outline", "CLSID\\{00000402-0000-0000-C000-000000000046}\\AuxUserType\\3", "Ole 2.0 In-Place Outline Server", "CLSID\\{00000402-0000-0000-C000-000000000046}\\DefaultIcon", "isvrotl.exe,0", "CLSID\\{00000402-0000-0000-C000-000000000046}\\DataFormats\\DefaultFile", "Outline", "CLSID\\{00000402-0000-0000-C000-000000000046}\\DataFormats\\GetSet\\0", "Outline,1,1,3", "CLSID\\{00000402-0000-0000-C000-000000000046}\\DataFormats\\GetSet\\1", "1,1,1,3", "CLSID\\{00000402-0000-0000-C000-000000000046}\\DataFormats\\GetSet\\2", "3,1,32,1", "CLSID\\{00000402-0000-0000-C000-000000000046}\\DataFormats\\GetSet\\3", "3,4,32,1", "CLSID\\{00000402-0000-0000-C000-000000000046}\\MiscStatus", "512", "CLSID\\{00000402-0000-0000-C000-000000000046}\\MiscStatus\\1", "896", "CLSID\\{00000402-0000-0000-C000-000000000046}\\Conversion\\Readable\\Main", "Outline", "CLSID\\{00000402-0000-0000-C000-000000000046}\\Conversion\\Readwritable\\Main", "Outline", "OLE2ICtrOtl", "Ole 2.0 In-Place Container Outline", "OLE2ICtrOtl\\Clsid", "{00000403-0000-0000-C000-000000000046}", "OLE2ICtrOtl\\Shell\\Print\\Command", "icntrotl.exe %%1", "OLE2ICtrOtl\\Shell\\Open\\Command", "icntrotl.exe %%1", ".olc", "OLE2ICtrOtl", "CLSID\\{00000403-0000-0000-C000-000000000046}", "Ole 2.0 In-Place Container Outline", "CLSID\\{00000403-0000-0000-C000-000000000046}\\ProgID", "OLE2ICtrOtl", "CLSID\\{00000403-0000-0000-C000-000000000046}\\InprocHandler32", "ole32.dll", "CLSID\\{00000403-0000-0000-C000-000000000046}\\LocalServer32", "%s\\icntrotl.exe", NULL }; //+------------------------------------------------------------------------- // // Function: InitializeRegistry // // Synopsis: Initialize the registry for oletest. // // Effects: // // Arguments: None. // // Requires: // // Returns: // // Signals: // // Modifies: // // Algorithm: // // History: dd-mmm-yy Author Comment // 08-Nov-94 KentCe Created. // // Notes: // //-------------------------------------------------------------------------- void InitializeRegistry( void ) { char szBuf[MAX_PATH * 2]; char szPath[MAX_PATH]; int i; // // Assume all the oletest components are in the current directory. // if (!GetCurrentDirectory(sizeof(szPath), szPath)) { assert(0); } // // Loop thru string key/value pairs and update the registry. // for (i = 0; regConfig[i] != NULL; i += 2) { // // The registry template contains embedded "%s" to permit // the insertion of the full path of test binaries. // wsprintf(szBuf, regConfig[i+1], szPath); if (RegSetValue(HKEY_CLASSES_ROOT, regConfig[i+0], REG_SZ, szBuf, strlen(szBuf)) != ERROR_SUCCESS) { assert(0); } } } //+------------------------------------------------------------------------- // // Function: TestSetup // // Synopsis: process the command line and setup the tests that need to // be run. // // Effects: // // Arguments: lpszCmdLine // // Requires: // // Returns: // // Signals: // // Modifies: // // Algorithm: We scan the command line for the following information // // NULL or empty cmdline, assume running task 0 // (usually run all tasks) // otherwise scan for n numbers, adding each to the end of // the stack (so the tasks are run in order). // // History: dd-mmm-yy Author Comment // 12-Dec-94 MikeW restructured parse algorithm, added -? & l // 07-Feb-94 alexgo author // // Notes: // //-------------------------------------------------------------------------- void TestSetup( LPSTR lpszCmdLine ) { LPSTR pszArg; int nTest, cTests; // initialize debugger options to nothing. vApp.m_pszDebuggerOption = ""; // // count up the number of tests available // for (cTests = 0; vrgTaskList[cTests].szName != (LPSTR) 0; cTests++) { ; } // // make sure the registery is set up correctly. // InitializeRegistry(); // // if the command line is empty, run all tests // (assumed to be task 0) // pszArg = strtok(lpszCmdLine, " "); if (NULL == pszArg) { vApp.m_TaskStack.Push(&vrgTaskList[0]); vApp.m_fInteractive = FALSE; } // // otherwise, look for options & test numbers // while (NULL != pszArg) { if ('-' == *pszArg) { while ('\0' != *(++pszArg)) // it's an option { switch (*pszArg) { case 'r': // 'r' flag is obsolete break; case 'R': OutputString("Warning: 'R' flag to oletest is obsolete.\n"); vApp.m_fInteractive = FALSE; vApp.m_TaskStack.Push(&vrgTaskList[0]); break; case 'i': // run in interactive mode vApp.m_fInteractive = TRUE; break; case 'n': // start apps in debugger vApp.m_fInteractive = TRUE; vApp.m_pszDebuggerOption = "ntsd "; break; case 'l': // list tests & test nums ListAllTests(); vApp.m_fInteractive = TRUE; break; case '?': // output the option list PrintHelp(); vApp.m_fInteractive = TRUE; break; } } } else // it's not a option, maybe it's a test number { if (isdigit(*pszArg)) { nTest = atoi(pszArg); if (nTest < 0 || nTest > cTests - 1) { OutputString("Ignoring invalid test #%d", nTest); } else { vApp.m_TaskStack.AddToEnd(&vrgTaskList[nTest]); } } } pszArg = strtok(NULL, " "); // fetch the next argument } vApp.m_fpLog = fopen("clip.log", "w+"); assert(vApp.m_fpLog); } //+------------------------------------------------------------------------- // // Function: ListAllTests // // Synopsis: List all available tests and the corresponding test number // // Effects: // // Arguments: void // // Requires: // // Returns: // // Signals: // // Modifies: // // Algorithm: Iterate through vrgTaskList // // History: dd-mmm-yy Author Comment // 12-Dec-94 MikeW author // // Notes: // //-------------------------------------------------------------------------- void ListAllTests() { int nTask; for (nTask = 0; vrgTaskList[nTask].szName != (LPSTR) 0; nTask++) { OutputString("%2d -- %s\r\n", nTask, vrgTaskList[nTask].szName); } OutputString("\r\n"); } //+------------------------------------------------------------------------- // // Function: PrintHelp // // Synopsis: Print the program options & tests // // Effects: // // Arguments: void // // Requires: // // Returns: // // Signals: // // Modifies: // // Algorithm: // // History: dd-mmm-yy Author Comment // 12-Dec-94 MikeW author // // Notes: // //-------------------------------------------------------------------------- void PrintHelp() { OutputString("OleTest [options] [test numbers] -\r\n"); OutputString("\r\n"); OutputString(" -r - Autoregister test apps\r\n"); OutputString(" -R - Autoregister and Run All Tests\r\n"); OutputString(" -i - Run in interactive mode\r\n"); OutputString(" -n - Run test apps using ntsd and run interactive\r\n"); OutputString(" -l - List tests & test numbers and run interactive\r\n"); OutputString(" -? - Print this help\r\n"); OutputString("\r\n"); ListAllTests(); } //+------------------------------------------------------------------------- // // Function: WinMain // // Synopsis: main window procedure // // Effects: // // Arguments: hInstance // hPrevInstance // lpCmdLine // nCmdShow // // Requires: // // Returns: // // Signals: // // Modifies: // // Algorithm: // // History: dd-mmm-yy Author Comment // 06-Feb-94 alexgo author // // Notes: // //-------------------------------------------------------------------------- #ifdef WIN32 int APIENTRY WinMain( HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow) #else int PASCAL WinMain( HANDLE hInstance, HANDLE hPrevInstance, LPSTR lpCmdLine, int nCmdShow) #endif { MSG msg; if (!hPrevInstance) { if (!InitApplication(hInstance)) { return FALSE; } } if (!InitInstance(hInstance, nCmdShow)) { return FALSE; } TestSetup(lpCmdLine); OleInitialize(NULL); while (GetMessage(&msg, NULL, 0, 0)) { TranslateMessage(&msg); DispatchMessage(&msg); } OleUninitialize(); fclose(vApp.m_fpLog); return (msg.wParam); }
32.372922
104
0.519957
npocmaka
f782b10bdb28a5de394736df26a6b42bbe458c4e
187
cpp
C++
src/TimestampedMsgPtrQueue.cpp
r2p/Middleware
6438bdef16671482ecc1330679fa56439f916c61
[ "BSD-2-Clause" ]
1
2020-11-26T04:21:41.000Z
2020-11-26T04:21:41.000Z
src/TimestampedMsgPtrQueue.cpp
r2p/Middleware
6438bdef16671482ecc1330679fa56439f916c61
[ "BSD-2-Clause" ]
null
null
null
src/TimestampedMsgPtrQueue.cpp
r2p/Middleware
6438bdef16671482ecc1330679fa56439f916c61
[ "BSD-2-Clause" ]
1
2020-11-26T04:21:47.000Z
2020-11-26T04:21:47.000Z
#include <r2p/TimestampedMsgPtrQueue.hpp> namespace r2p { TimestampedMsgPtrQueue::TimestampedMsgPtrQueue(Entry array[], size_t length) : impl(array, length) {} } // namespace r2p
13.357143
76
0.748663
r2p
f787372ad5765cffb3e2e4a0642946a13034aef8
857
cpp
C++
codeforces/C - The Phone Number/Wrong answer on pretest 9 (2).cpp
kzvd4729/Problem-Solving
13b105e725a4c2f8db7fecc5d7a8f932b9fef4ab
[ "MIT" ]
1
2022-02-11T16:55:36.000Z
2022-02-11T16:55:36.000Z
codeforces/C - The Phone Number/Wrong answer on pretest 9 (2).cpp
kzvd4729/Problem-Solving
13b105e725a4c2f8db7fecc5d7a8f932b9fef4ab
[ "MIT" ]
null
null
null
codeforces/C - The Phone Number/Wrong answer on pretest 9 (2).cpp
kzvd4729/Problem-Solving
13b105e725a4c2f8db7fecc5d7a8f932b9fef4ab
[ "MIT" ]
null
null
null
/**************************************************************************************** * @author: kzvd4729 created: Aug/08/2018 21:46 * solution_verdict: Wrong answer on pretest 9 language: GNU C++14 * run_time: 30 ms memory_used: 400 KB * problem: https://codeforces.com/contest/1017/problem/C ****************************************************************************************/ #include<bits/stdc++.h> #define long long long using namespace std; const int N=1e5; int n,arr[N+2],now; int main() { ios_base::sync_with_stdio(0); cin.tie(0); cin>>n; for(int i=1;i<=n;i+=2) { if(i+1<=n)cout<<i+1<<" "; cout<<i<<" "; } cout<<endl; return 0; }
35.708333
111
0.369895
kzvd4729
f78884318c3326614537c2cfa5b3535097ce3b52
2,541
cc
C++
blimp/net/tcp_client_transport.cc
maidiHaitai/haitaibrowser
a232a56bcfb177913a14210e7733e0ea83a6b18d
[ "BSD-3-Clause" ]
1
2020-09-15T08:43:34.000Z
2020-09-15T08:43:34.000Z
blimp/net/tcp_client_transport.cc
maidiHaitai/haitaibrowser
a232a56bcfb177913a14210e7733e0ea83a6b18d
[ "BSD-3-Clause" ]
null
null
null
blimp/net/tcp_client_transport.cc
maidiHaitai/haitaibrowser
a232a56bcfb177913a14210e7733e0ea83a6b18d
[ "BSD-3-Clause" ]
null
null
null
// Copyright 2015 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "blimp/net/tcp_client_transport.h" #include <memory> #include "base/callback.h" #include "base/callback_helpers.h" #include "base/memory/ptr_util.h" #include "base/message_loop/message_loop.h" #include "blimp/net/stream_socket_connection.h" #include "net/socket/client_socket_factory.h" #include "net/socket/stream_socket.h" #include "net/socket/tcp_client_socket.h" namespace blimp { TCPClientTransport::TCPClientTransport(const net::IPEndPoint& ip_endpoint, net::NetLog* net_log) : ip_endpoint_(ip_endpoint), net_log_(net_log), socket_factory_(net::ClientSocketFactory::GetDefaultFactory()) {} TCPClientTransport::~TCPClientTransport() {} void TCPClientTransport::SetClientSocketFactoryForTest( net::ClientSocketFactory* factory) { DCHECK(factory); socket_factory_ = factory; } void TCPClientTransport::Connect(const net::CompletionCallback& callback) { DCHECK(!socket_); DCHECK(!callback.is_null()); connect_callback_ = callback; socket_ = socket_factory_->CreateTransportClientSocket( net::AddressList(ip_endpoint_), nullptr, net_log_, net::NetLog::Source()); net::CompletionCallback completion_callback = base::Bind( &TCPClientTransport::OnTCPConnectComplete, base::Unretained(this)); int result = socket_->Connect(completion_callback); if (result == net::ERR_IO_PENDING) { return; } OnTCPConnectComplete(result); } std::unique_ptr<BlimpConnection> TCPClientTransport::TakeConnection() { DCHECK(connect_callback_.is_null()); DCHECK(socket_); return base::WrapUnique(new StreamSocketConnection(std::move(socket_))); } const char* TCPClientTransport::GetName() const { return "TCP"; } void TCPClientTransport::OnTCPConnectComplete(int result) { DCHECK_NE(net::ERR_IO_PENDING, result); OnConnectComplete(result); } void TCPClientTransport::OnConnectComplete(int result) { if (result != net::OK) { socket_ = nullptr; } base::ResetAndReturn(&connect_callback_).Run(result); } std::unique_ptr<net::StreamSocket> TCPClientTransport::TakeSocket() { return std::move(socket_); } void TCPClientTransport::SetSocket(std::unique_ptr<net::StreamSocket> socket) { DCHECK(socket); socket_ = std::move(socket); } net::ClientSocketFactory* TCPClientTransport::socket_factory() const { return socket_factory_; } } // namespace blimp
28.875
80
0.746163
maidiHaitai
f788e70bd033e59dd97bbaf43319dcf99c0fa906
4,612
hh
C++
contribs/qecode/OptVar.hh
guidotack/gecode
027c57889d66dd26ad8e1a419c2cda22ab0cf305
[ "MIT-feh" ]
216
2016-07-11T12:44:44.000Z
2022-03-24T01:48:06.000Z
contribs/qecode/OptVar.hh
guidotack/gecode
027c57889d66dd26ad8e1a419c2cda22ab0cf305
[ "MIT-feh" ]
105
2018-02-01T15:51:15.000Z
2022-03-05T16:10:36.000Z
contribs/qecode/OptVar.hh
guidotack/gecode
027c57889d66dd26ad8e1a419c2cda22ab0cf305
[ "MIT-feh" ]
73
2016-02-15T07:09:36.000Z
2022-03-22T23:10:26.000Z
/**** , [ OptVar.hh ], Copyright (c) 2008 Universite d'Orleans - Jeremie Vautard Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. *************************************************************************/ #ifndef __QECODE_OPTVAR__ #define __QECODE_OPTVAR__ #include "Strategy.hh" #include <vector> /** \brief Abstract class for an Aggregator * * An aggregator is defined as a function Multiset_of_int -> int. From an implementation * point of view, this multiset is a vector of int. */ class QECODE_VTABLE_EXPORT Aggregator { public: virtual int eval(vector<int> values)=0; virtual ~Aggregator() {} }; /** \brief Sum aggregator * * This aggregator computes the sum of all elements of the multiset */ class QECODE_VTABLE_EXPORT AggregatorSum : public Aggregator{ public: QECODE_EXPORT virtual int eval(vector<int> values) { int cpt=0; for (int i=0;i<values.size();i++) cpt += values[i]; return cpt; } virtual ~AggregatorSum() {} }; /** \brief Mean aggregator * * This aggregator computes the mean of all elements of the multiset */ class QECODE_VTABLE_EXPORT AggregatorMean : public Aggregator{ public: QECODE_EXPORT virtual int eval(vector<int> values) { int size=values.size(); if (size == 0) return 0; int cpt=0; for (int i=0;i<size; i++) cpt += values[i]; cpt = cpt / size; return cpt; } virtual ~AggregatorMean() {} }; /** \brief Abstract class for an optimization variable * * This class defines the interface of an optimization variable, which can be either an existential variable, of the result of an aggregator function */ class QECODE_VTABLE_EXPORT OptVar { public: QECODE_EXPORT virtual int getVal(Strategy s)=0; ///< returns value of this optimization variable in the substrategy s QECODE_EXPORT virtual int getScope()=0; ///< returns the scope where this optimization variable belong virtual ~OptVar() {} }; /** \brief Existential optimization variable * * This class defines an existential optimization variable. This variabe is just an other point of view for an existential variable of the problem. */ class QECODE_VTABLE_EXPORT ExistOptVar : public OptVar { private: int varId; int scopeId; public: QECODE_EXPORT ExistOptVar(int var,int scope); QECODE_EXPORT virtual int getVal(Strategy s); QECODE_EXPORT virtual int getScope(); virtual ~ExistOptVar() {} }; /** \brief Universal optimization variable (aggregator result) * * This class defines a universal optimization variable. Such a variable represents the result of an aggregator on the set of values that an inner * optimization variable takes in every sub-strategy of the current scope. */ class QECODE_VTABLE_EXPORT UnivOptVar : public OptVar { private: int scopeId; OptVar* var; Aggregator* fct; public: /** \brief constructor for an universal optimization variable * * Builds a universal optimzation variable at a given (universal) scope, that will represent the result of the agg aggregator on the set of all values * taken by the optimization variable zevar in each substrategy below the current point. * @param scope the scope where this optimization variable belong * @param zevar the inner optimization variable that will be aggregated * @param agg the aggregator function to be used */ QECODE_EXPORT UnivOptVar(int scope,OptVar* zevar,Aggregator* agg); QECODE_EXPORT virtual int getVal(Strategy s); QECODE_EXPORT virtual int getScope(); virtual ~UnivOptVar() {delete fct;} }; #endif
36.896
157
0.719861
guidotack
f78b6d70bfd35ac8a14dc8c162a96e41dd51acd0
1,064
cpp
C++
src/rasperi_app/rasperi_about_dialog.cpp
kuumies/rasperi
5e854a3c15e788a714b61395fd2064a037154610
[ "MIT" ]
null
null
null
src/rasperi_app/rasperi_about_dialog.cpp
kuumies/rasperi
5e854a3c15e788a714b61395fd2064a037154610
[ "MIT" ]
null
null
null
src/rasperi_app/rasperi_about_dialog.cpp
kuumies/rasperi
5e854a3c15e788a714b61395fd2064a037154610
[ "MIT" ]
null
null
null
/* ---------------------------------------------------------------- * Antti Jumpponen <kuumies@gmail.com> The implementation of kuu::rasperi::AboutDialog class. * ---------------------------------------------------------------- */ #include "rasperi_about_dialog.h" #include "ui_rasperi_about_dialog.h" namespace kuu { namespace rasperi { /* ---------------------------------------------------------------- * * ---------------------------------------------------------------- */ struct AboutDialog::Impl { Ui::AboutDialog ui; }; /* ---------------------------------------------------------------- * * ---------------------------------------------------------------- */ AboutDialog::AboutDialog(QWidget *parent) : QDialog(parent) , impl(std::make_shared<Impl>()) { impl->ui.setupUi(this); } /* ---------------------------------------------------------------- * * ---------------------------------------------------------------- */ void AboutDialog::on_closeButton_clicked() { accept(); } } // namespace rasperi } // namespace kuu
27.282051
70
0.333647
kuumies
f7900b33b234e0332969eaee941a9a93db34dfcd
627
cpp
C++
ProgrammingDesign/7-String/1.fly.cpp
cyp0633/homework
c4a134aa0c2e38e1a24fab178b42a7a1a0f3cd25
[ "MIT" ]
null
null
null
ProgrammingDesign/7-String/1.fly.cpp
cyp0633/homework
c4a134aa0c2e38e1a24fab178b42a7a1a0f3cd25
[ "MIT" ]
null
null
null
ProgrammingDesign/7-String/1.fly.cpp
cyp0633/homework
c4a134aa0c2e38e1a24fab178b42a7a1a0f3cd25
[ "MIT" ]
1
2020-12-14T08:52:40.000Z
2020-12-14T08:52:40.000Z
//飞来飞去 #include <cstdio> #include <iostream> #include <string> using namespace std; void perform(); int main() { int a, t; scanf("%d\n", &t); for (a = 0; a < t; a++) { perform(); } return 0; } void perform() { int i, n, s2t = 0, t2s = 0; string s; cin >> n >> s; for (i = 1; i < n; i++) { if (s[i] == 'S' && s[i - 1] == 'T') { t2s++; } if (s[i - 1] == 'S' && s[i] == 'T') { s2t++; } } if (s2t > t2s) { printf("YES\n"); } else { printf("NO\n"); } return; }
14.928571
43
0.350877
cyp0633
f79074dc39521a9e99547f493895a7136242a1ce
6,262
cpp
C++
Libraries/RobsJuceModules/jura_framework/gui/panels/jura_ThreadedDrawingComponent.cpp
RobinSchmidt/RS-MET-Preliminary
6c01cbaad7cce3daa3293c444dd9e4b74e5ebfbe
[ "FTL" ]
34
2017-04-19T18:26:02.000Z
2022-02-15T17:47:26.000Z
Libraries/RobsJuceModules/jura_framework/gui/panels/jura_ThreadedDrawingComponent.cpp
RobinSchmidt/RS-MET-Preliminary
6c01cbaad7cce3daa3293c444dd9e4b74e5ebfbe
[ "FTL" ]
307
2017-05-04T21:45:01.000Z
2022-02-03T00:59:01.000Z
Libraries/RobsJuceModules/jura_framework/gui/panels/jura_ThreadedDrawingComponent.cpp
RobinSchmidt/RS-MET-Preliminary
6c01cbaad7cce3daa3293c444dd9e4b74e5ebfbe
[ "FTL" ]
4
2017-09-05T17:04:31.000Z
2021-12-15T21:24:28.000Z
//------------------------------------------------------------------------------------------------- // construction/destruction: ThreadedDrawingComponent::ThreadedDrawingComponent(TimeSliceThread* newThreadToUse) { ScopedLock scopedLock(clientAreaImageLock); clientAreaImage = NULL; clientAreaImage = new Image(Image::ARGB, 1, 1, true); clientAreaImageIsDirty = false; repaintDelayInMilliseconds = 100; if( newThreadToUse != NULL ) threadToUse = newThreadToUse; else threadToUse = DrawingThread::getInstance(); threadToUse->addTimeSliceClient(this); } ThreadedDrawingComponent::~ThreadedDrawingComponent() { ScopedLock scopedLock(clientAreaImageLock); if( threadToUse != NULL ) threadToUse->removeTimeSliceClient(this); if( clientAreaImage != NULL ) delete clientAreaImage; } //------------------------------------------------------------------------------------------------- // setup: void ThreadedDrawingComponent::setDrawingThread(TimeSliceThread *newThreadToUse) { if( threadToUse != NULL ) threadToUse->removeTimeSliceClient(this); threadToUse = newThreadToUse; if( threadToUse != NULL ) threadToUse->addTimeSliceClient(this); } //------------------------------------------------------------------------------------------------- // callbacks: void ThreadedDrawingComponent::timerCallback() { repaint(); //stopTimer(); } void ThreadedDrawingComponent::resized() { Component::resized(); setDirty(); } void ThreadedDrawingComponent::paint(Graphics &g) { if( threadToUse == NULL ) { Component::paint(g); return; } if( clientAreaImageIsDirty ) { //g.fillAll(Colours::white); return; } bool lockAquired = clientAreaImageLock.tryEnter(); if( lockAquired ) { if( clientAreaImage != NULL ) g.drawImageAt(*clientAreaImage, 0, 0, false); else g.fillAll(Colours::red); // could be that we have just drawn a dirty image, so stop the timer only when the image just // drawn is not dirty: if( !clientAreaImageIsDirty ) //stopTimer(); startTimer(1000); clientAreaImageLock.exit(); } else { // we could not aquire the mutex-lock for the image to be drawn - it is probably currently // held by the drawing thread - we draw a white background and spawn a new (asynchronous) // call to this function: //g.fillAll(Colours::white); startTimer(repaintDelayInMilliseconds); } } int ThreadedDrawingComponent::useTimeSlice() { //ScopedLock scopedLock(clientAreaImageLock); if( clientAreaImageIsDirty ) { renderClientAreaImageInternal(); //return true; // indicate that the thread is currently very busy - old } else { //return true; //return false; // indicate that the thread is currently not too busy } return 20; // number of milliseconds after this thread shall be called again - maybe we need to tweak } //------------------------------------------------------------------------------------------------- // others: void ThreadedDrawingComponent::setDirty(bool shouldSetToDirty) { ScopedLock imageLock(clientAreaImageLock); clientAreaImageIsDirty = shouldSetToDirty; //startTimer(300); if( threadToUse == NULL && clientAreaImageIsDirty ) repaint(); } void ThreadedDrawingComponent::drawComponent(Image *imageToDrawOnto) { Graphics g(*imageToDrawOnto); //int w = imageToDrawOnto->getWidth(); //int h = imageToDrawOnto->getHeight(); g.setColour(Colours::black); //g.drawFittedText(String(T("ThreadedDrawingComponent")), 0, 0, w, h, Justification::centred, 1); // triggers a JUCE-breakpoint when called early on app-startup } void ThreadedDrawingComponent::renderClientAreaImageInternal() { ScopedLock imageLock(clientAreaImageLock); if( getWidth() < 1 || getHeight() < 1 ) { clientAreaImageIsDirty = false; return; } if( clientAreaImage->getWidth() != getWidth() || clientAreaImage->getHeight() != getHeight() ) { allocateClientAreaImage(getWidth(), getHeight()); } // initialize the image as a white canvas and set the dirty flag: Graphics g(*clientAreaImage); //g.fillAll(Colours::white); //clientAreaImageIsDirty = true; // call the actual drawing rutine (hich is supposed to be overriden by subclasses): drawComponent(clientAreaImage); // when the drawComponent-function returns, we assume that the clientArwaImage has been drawn, so // we set our dirty flag flase and trigger a (delayed) repaint: clientAreaImageIsDirty = false; startTimer(repaintDelayInMilliseconds); } bool ThreadedDrawingComponent::allocateClientAreaImage(int desiredWidth, int desiredHeight) { ScopedLock imageLock(clientAreaImageLock); bool result = false; desiredWidth = jmax(1, desiredWidth); desiredHeight = jmax(1, desiredHeight); // allocate memory for the first time: if( clientAreaImage == NULL ) { clientAreaImage = new Image(Image::ARGB, desiredWidth, desiredHeight, true); if( clientAreaImage == NULL ) { jassertfalse; showMemoryAllocationErrorBox(String("ThreadedDrawingComponent::allocateClientAreaImage")); return false; } else result = true; } // reallocate memory, if necessary (i.e. the deired size differs from the current size of the // image): if( clientAreaImage->getWidth() != desiredWidth || clientAreaImage->getHeight() != desiredHeight ) { // delete the old and create a new Image-object: if( clientAreaImage != NULL ) { delete clientAreaImage; clientAreaImage = NULL; } clientAreaImage = new Image(Image::ARGB, desiredWidth, desiredHeight, true); result = true; if( clientAreaImage == NULL ) { showMemoryAllocationErrorBox(String("ThreadedDrawingComponent::allocateClientAreaImage")); jassertfalse; return false; } } // when we indeed have allocated new memory, the image associated with this new memory is // certainly not what we want to see: if( result == true ) // was formerly if( result = true ) - so it was always excuted -> test { clientAreaImageIsDirty = true; Graphics g(*clientAreaImage); g.fillAll(Colours::white); } return result; }
27.108225
103
0.65634
RobinSchmidt
f7924030e405fc5eb3e8c2c5321f540a2ca9b896
380
cpp
C++
214A.cpp
basuki57/Codeforces
5227c3deecf13d90e5ea45dab0dfc16b44bd028c
[ "MIT" ]
null
null
null
214A.cpp
basuki57/Codeforces
5227c3deecf13d90e5ea45dab0dfc16b44bd028c
[ "MIT" ]
null
null
null
214A.cpp
basuki57/Codeforces
5227c3deecf13d90e5ea45dab0dfc16b44bd028c
[ "MIT" ]
2
2020-10-03T04:52:14.000Z
2020-10-03T05:19:12.000Z
#include<bits/stdc++.h> using namespace std; typedef long long int ll; void solve(){ ll n, m, cnt = 0; cin >> n >> m; for(ll i = 0; i < 1001; i++) for(ll j = 0; j < 1001; j++) if(i*i + j == n && i + j*j == m) ++cnt; cout << cnt << endl; } int main(){ ios_base::sync_with_stdio(false); cin.tie(0); //int t;cin>>t;while(t--) solve(); return 0; }
19
76
0.507895
basuki57
f792dc3c1a4a5d4cb59bd31a3d3a899731bd1bfb
316
cpp
C++
January Challenges/Day28-Smallest String With A Given Numeric Value.cpp
kaushalk844/leetcode
c9497a1cf36e4d7f84161cf8d12e2cfc4a6b937d
[ "MIT" ]
null
null
null
January Challenges/Day28-Smallest String With A Given Numeric Value.cpp
kaushalk844/leetcode
c9497a1cf36e4d7f84161cf8d12e2cfc4a6b937d
[ "MIT" ]
null
null
null
January Challenges/Day28-Smallest String With A Given Numeric Value.cpp
kaushalk844/leetcode
c9497a1cf36e4d7f84161cf8d12e2cfc4a6b937d
[ "MIT" ]
null
null
null
class Solution { public: string getSmallestString(int n, int k) { string res(n, 'a'); k -= n; int i = res.size()-1; while(k > 0){ int t = min(25,k); res[i] += t; k -= t; i--; } return res; } };
17.555556
44
0.344937
kaushalk844
f79361354a4c8549bb3f50c00d4517ab48e2a220
4,483
cc
C++
chrome/browser/ui/webui/chromeos/audio/audio_handler.cc
zealoussnow/chromium
fd8a8914ca0183f0add65ae55f04e287543c7d4a
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
14,668
2015-01-01T01:57:10.000Z
2022-03-31T23:33:32.000Z
chrome/browser/ui/webui/chromeos/audio/audio_handler.cc
zealoussnow/chromium
fd8a8914ca0183f0add65ae55f04e287543c7d4a
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
86
2015-10-21T13:02:42.000Z
2022-03-14T07:50:50.000Z
chrome/browser/ui/webui/chromeos/audio/audio_handler.cc
zealoussnow/chromium
fd8a8914ca0183f0add65ae55f04e287543c7d4a
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
5,941
2015-01-02T11:32:21.000Z
2022-03-31T16:35:46.000Z
// Copyright 2021 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include <string> #include <tuple> #include <utility> #include "chrome/browser/ui/browser_commands.h" #include "chrome/browser/ui/browser_finder.h" #include "chrome/browser/ui/chrome_pages.h" #include "chrome/browser/ui/webui/chromeos/audio/audio_handler.h" namespace chromeos { AudioHandler::AudioHandler( mojo::PendingReceiver<audio::mojom::PageHandler> receiver, mojo::PendingRemote<audio::mojom::Page> page) : page_(std::move(page)), receiver_(this, std::move(receiver)) { observation_.Observe(CrasAudioHandler::Get()); } AudioHandler::~AudioHandler() = default; void AudioHandler::GetAudioDeviceInfo() { UpdateAudioDeviceInfo(); } void AudioHandler::GetActiveOutputDeviceName( audio::mojom::PageHandler::GetActiveOutputDeviceNameCallback callback) { const uint64_t output_id = ash::CrasAudioHandler::Get()->GetPrimaryActiveOutputNode(); const ash::AudioDevice* output_device = ash::CrasAudioHandler::Get()->GetDeviceFromId(output_id); if (output_device) { std::move(callback).Run(output_device->display_name); } else { std::move(callback).Run(absl::nullopt); } } void AudioHandler::GetActiveInputDeviceName( audio::mojom::PageHandler::GetActiveInputDeviceNameCallback callback) { const uint64_t input_id = ash::CrasAudioHandler::Get()->GetPrimaryActiveInputNode(); const ash::AudioDevice* input_device = ash::CrasAudioHandler::Get()->GetDeviceFromId(input_id); if (input_device) { std::move(callback).Run(input_device->display_name); } else { std::move(callback).Run(absl::nullopt); } } void AudioHandler::OpenFeedbackDialog() { chrome::OpenFeedbackDialog(chrome::FindBrowserWithActiveWindow(), chrome::kFeedbackSourceMdSettingsAboutPage); } void AudioHandler::OnAudioNodesChanged() { UpdateAudioDeviceInfo(); } void AudioHandler::OnOutputNodeVolumeChanged(uint64_t node_id, int volume) { page_->UpdateDeviceVolume(node_id, volume); } void AudioHandler::OnInputNodeGainChanged(uint64_t node_id, int gain) { page_->UpdateDeviceVolume(node_id, gain); } void AudioHandler::OnOutputMuteChanged(bool mute) { const uint64_t output_id = ash::CrasAudioHandler::Get()->GetPrimaryActiveOutputNode(); page_->UpdateDeviceMute(output_id, mute); } void AudioHandler::OnInputMuteChanged(bool mute) { const uint64_t input_id = ash::CrasAudioHandler::Get()->GetPrimaryActiveInputNode(); page_->UpdateDeviceMute(input_id, mute); } void AudioHandler::OnInputMutedByMicrophoneMuteSwitchChanged(bool mute) { const uint64_t input_id = ash::CrasAudioHandler::Get()->GetPrimaryActiveInputNode(); page_->UpdateDeviceMute(input_id, mute); } void AudioHandler::OnActiveOutputNodeChanged() { UpdateAudioDeviceInfo(); } void AudioHandler::OnActiveInputNodeChanged() { UpdateAudioDeviceInfo(); } void AudioHandler::UpdateAudioDeviceInfo() { ash::AudioDeviceList devices; ash::CrasAudioHandler::Get()->GetAudioDevices(&devices); base::flat_map<uint64_t, audio::mojom::DeviceDataPtr> device_map; for (ash::AudioDeviceList::const_iterator it = devices.begin(); it != devices.end(); ++it) { device_map[it->id] = CreateDeviceData(&(*it)); } page_->UpdateDeviceInfo(std::move(device_map)); } audio::mojom::DeviceDataPtr AudioHandler::CreateDeviceData( const ash::AudioDevice* item) const { auto device_data = audio::mojom::DeviceData::New(); device_data->type = item->GetTypeString(item->type); device_data->id = item->id; device_data->display_name = item->display_name; device_data->is_active = item->active; device_data->is_input = item->is_input; std::tie(device_data->volume_gain_percent, device_data->is_muted) = GetDeviceVolGain(item->id, item->is_input); return device_data; } std::tuple<int, bool> AudioHandler::GetDeviceVolGain(uint64_t id, bool is_input) const { if (is_input) { return std::make_tuple( ash::CrasAudioHandler::Get()->GetInputGainPercentForDevice(id), ash::CrasAudioHandler::Get()->IsInputMutedForDevice(id)); } else { return std::make_tuple( ash::CrasAudioHandler::Get()->GetOutputVolumePercentForDevice(id), ash::CrasAudioHandler::Get()->IsOutputMutedForDevice(id)); } } } // namespace chromeos
32.485507
76
0.729199
zealoussnow
f79a47959bf7218d42e245e17725206e2d6250c8
4,982
cpp
C++
PathFinding.cpp
TheNewBob/IMS2
572dcfd4c3621458f01278713437c2aca526d2e6
[ "MIT" ]
2
2018-01-28T20:07:52.000Z
2018-03-01T22:41:39.000Z
PathFinding.cpp
TheNewBob/IMS2
572dcfd4c3621458f01278713437c2aca526d2e6
[ "MIT" ]
6
2017-08-26T10:24:48.000Z
2018-01-28T13:45:34.000Z
PathFinding.cpp
TheNewBob/IMS2
572dcfd4c3621458f01278713437c2aca526d2e6
[ "MIT" ]
null
null
null
#include "Common.h" #include <queue> #include <deque> #include <stack> #include "SimpleTreeNode.h" #include "SimplePathNode.h" #include "PathFinding.h" PathFinding::PathFinding() { } PathFinding::~PathFinding() { } /* algorithm description: * A breadth-first search in concept (i.e. nodes of the same level are all checked before moving on to a deeper level), * but with two twists: The common breadth-first search is a tree search, while this deals with a map that is expected * to have circular interconnections. The common breadth-first search also does not have path-awareness, since this is * given by the tree it is searching through. You find the node in the tree, you can trace it back to the root. And * again, we don't have a tree. * The algorithm solves this by dynamically building a SimpleTree to document its search through the map. Since the * job of the SimpleTree structure is to build a stable tree, it is not an efficient structure to search through, which * is annoying since because of the circularity of the map we also have to check which nodes have already been looked at. * For this reason, the nodes of the SimpleTree are stored in a search tree (an STL map), which might be a bit confusing * at first, but this way we get an optimised search structure and a stable representation. */ bool PathFinding::BreadthFirst(SimplePathNode *origin, SimplePathNode *target, stack<int> &OUT_path) { //make shure the path is clear... er... empty. OUT_path.empty(); //search tree that will contain the nodes of our SimpleTree, //which are also the nodes that were already checked. //the SimpleTree itself is a logical construct resulting from //the connection of its nodes map<int, SimpleTreeNode*> checkednodes; //the queue that will handle the breadth-first search queue<SimplePathNode*> nodestocheck; nodestocheck.push(origin); //create the root of the SimpleTree and add it to the searchtree SimpleTreeNode *originnode = new SimpleTreeNode(origin->GetId(), NULL); checkednodes[origin->GetId()] = originnode; //do the actual search SimpleTreeNode *targettreenode = NULL; //this will contain the top node of the SimpleTree (the target) when the search has finished while (nodestocheck.size() > 0 && targettreenode == NULL) { //remove the oldest element from our queue and walk through its neighbors SimplePathNode *checknode = nodestocheck.front(); nodestocheck.pop(); vector<SimplePathNode*> neighbors = checknode->GetConnected(); //retrieve the treenode of the currently processed PathNode SimpleTreeNode *currentparent = checkednodes[checknode->GetId()]; //walk through neighbors for (UINT i = 0; i < neighbors.size() && targettreenode == 0; ++i) { //check if we already checked this particular node if (checkednodes.find(neighbors[i]->GetId()) == checkednodes.end()) { //add the node to the queue so it will eventually get its neighbors checked nodestocheck.push(neighbors[i]); //insert the node into the SimpleTree SimpleTreeNode *neighbornode = new SimpleTreeNode(neighbors[i]->GetId(), currentparent); //add the node to the list of already checked elements checkednodes[neighbors[i]->GetId()] = neighbornode; } //if this particular neighbor is the actual target, terminate the search //this stands outside the check so the algorithm works when current state and target state //are identical. It means that the algorithm will search for the shortest path to loop around //and arrive at the origin again. This is necessary for some operations. if (neighbors[i] == target) { //check if the found target node is actually the same as the origin node. //this is expected in cases where we sought the shortest path from a node back //to itself through its neighboring nodes if (neighbors[i]->GetId() == originnode->GetId()) { //The node will technically be twice in the simple tree after this, //but that is not important. The SimpleTree describes a PATH, and every //step on that path must be present and connected. targettreenode = new SimpleTreeNode(originnode->GetId(), currentparent); } else { //the target node will already have been created at line 73 targettreenode = checkednodes[target->GetId()]; } } } } if (targettreenode == NULL) { //no path has been found! return false; } //What we end up with is the SimpleTree containing all nodes the search went over, //ordered in exactly the way the search found them. All that's left to do is take the //SimpleTreeNode for the target pathnode, move up the tree to the root and add the proper //pathnode ids to the path. SimpleTreeNode *currentnode = targettreenode; while (currentnode != NULL) { OUT_path.push(currentnode->GetId()); currentnode = currentnode->GetParent(); } //clean up the SimpleTree SimpleTreeNode *rootnode = checkednodes[origin->GetId()]; delete rootnode; return true; }
39.539683
136
0.73324
TheNewBob
f79d89882a4e133036d81cd80eab275c7e030d4c
373
cpp
C++
Competitive Programming/HIAST 2016/A.cpp
NelsonGomesNeto/ProgramC
e743b1b869f58f7f3022d18bac00c5e0b078562e
[ "MIT" ]
3
2018-12-18T13:39:42.000Z
2021-06-23T18:05:18.000Z
Competitive Programming/HIAST 2016/A.cpp
NelsonGomesNeto/ProgramC
e743b1b869f58f7f3022d18bac00c5e0b078562e
[ "MIT" ]
1
2018-11-02T21:32:40.000Z
2018-11-02T22:47:12.000Z
Competitive Programming/HIAST 2016/A.cpp
NelsonGomesNeto/ProgramC
e743b1b869f58f7f3022d18bac00c5e0b078562e
[ "MIT" ]
6
2018-10-27T14:07:52.000Z
2019-11-14T13:49:29.000Z
#include <bits/stdc++.h> #define lli long long int int odd(lli n) { int divisions = 1; while (!(n & 1)) { divisions = 1 - divisions; n >>= 1; } return(divisions); } int main() { int t; scanf("%d", &t); while (t --) { lli q; scanf("%lld", &q); if (q & 1 || odd(q)) printf("First Box\n"); else printf("Second Box\n"); } return(0); }
14.346154
47
0.506702
NelsonGomesNeto
f7a2d59a2adf1ea035d88b7356953b9566647714
1,543
cxx
C++
src/Cxx/IO/ReadPlainTextTriangles.cxx
ajpmaclean/vtk-examples
1a55fc8c6af67a3c07791807c7d1ec0ab97607a2
[ "Apache-2.0" ]
81
2020-08-10T01:44:30.000Z
2022-03-23T06:46:36.000Z
src/Cxx/IO/ReadPlainTextTriangles.cxx
ajpmaclean/vtk-examples
1a55fc8c6af67a3c07791807c7d1ec0ab97607a2
[ "Apache-2.0" ]
2
2020-09-12T17:33:52.000Z
2021-04-15T17:33:09.000Z
src/Cxx/IO/ReadPlainTextTriangles.cxx
ajpmaclean/vtk-examples
1a55fc8c6af67a3c07791807c7d1ec0ab97607a2
[ "Apache-2.0" ]
27
2020-08-17T07:09:30.000Z
2022-02-15T03:44:58.000Z
#include <vtkCellArray.h> #include <vtkNew.h> #include <vtkPoints.h> #include <vtkPolyData.h> #include <vtkSmartPointer.h> #include <vtkXMLPolyDataWriter.h> #include <iostream> namespace { vtkSmartPointer<vtkPolyData> custom_reader(std::ifstream& infile); } int main(int argc, char* argv[]) { // Verify command line arguments if (argc != 2) { std::cerr << "Required arguments: triangleFile.txt" << std::endl; return EXIT_FAILURE; } std::string inputFilename = argv[1]; std::ifstream fin(inputFilename.c_str()); auto polydata = custom_reader(fin); vtkNew<vtkXMLPolyDataWriter> writer; writer->SetInputData(polydata); writer->SetFileName("x.vtp"); writer->Write(); return EXIT_SUCCESS; } namespace { vtkSmartPointer<vtkPolyData> custom_reader(std::ifstream& infile) { vtkIdType number_of_points, number_of_triangles; infile >> number_of_points >> number_of_triangles; vtkNew<vtkPoints> points; points->SetNumberOfPoints(number_of_points); for (vtkIdType i = 0; i < number_of_points; i++) { double x, y, z; infile >> x >> y >> z; points->SetPoint(i, x, y, z); } vtkNew<vtkCellArray> polys; for (vtkIdType i = 0; i < number_of_triangles; i++) { vtkIdType a, b, c; infile >> a >> b >> c; polys->InsertNextCell(3); polys->InsertCellPoint(a); polys->InsertCellPoint(b); polys->InsertCellPoint(c); } auto polydata = vtkSmartPointer<vtkPolyData>::New(); polydata->SetPoints(points); polydata->SetPolys(polys); return polydata; } } // namespace
23.029851
69
0.688918
ajpmaclean
f7a42a648e47142381fb6ecd7e9cddaeaf3a9802
1,870
cpp
C++
libcaf_core/src/type_id.cpp
jsiwek/actor-framework
06cd2836f4671725cb7eaa22b3cc115687520fc1
[ "BSL-1.0", "BSD-3-Clause" ]
4
2019-05-03T05:38:15.000Z
2020-08-25T15:23:19.000Z
libcaf_core/src/type_id.cpp
jsiwek/actor-framework
06cd2836f4671725cb7eaa22b3cc115687520fc1
[ "BSL-1.0", "BSD-3-Clause" ]
null
null
null
libcaf_core/src/type_id.cpp
jsiwek/actor-framework
06cd2836f4671725cb7eaa22b3cc115687520fc1
[ "BSL-1.0", "BSD-3-Clause" ]
null
null
null
/****************************************************************************** * ____ _ _____ * * / ___| / \ | ___| C++ * * | | / _ \ | |_ Actor * * | |___ / ___ \| _| Framework * * \____/_/ \_|_| * * * * Copyright 2011-2020 Dominik Charousset * * * * Distributed under the terms and conditions of the BSD 3-Clause License or * * (at your option) under the terms and conditions of the Boost Software * * License 1.0. See accompanying files LICENSE and LICENSE_ALTERNATIVE. * * * * If you did not receive a copy of the license files, see * * http://opensource.org/licenses/BSD-3-Clause and * * http://www.boost.org/LICENSE_1_0.txt. * ******************************************************************************/ #include "caf/type_id.hpp" #include "caf/detail/meta_object.hpp" namespace caf { string_view query_type_name(type_id_t type) { if (auto ptr = detail::global_meta_object(type)) return ptr->type_name; return {}; } type_id_t query_type_id(string_view name) { auto objects = detail::global_meta_objects(); for (size_t index = 0; index < objects.size(); ++index) if (objects[index].type_name == name) return static_cast<type_id_t>(index); return invalid_type_id; } } // namespace caf
46.75
80
0.389305
jsiwek
f7a7497fbf59967b2c82779151843763f23fc01d
7,951
cpp
C++
Application/WinMain.cpp
clayne/Dx11Base
497ba82ded6c6beb169446ce03df328b984b6751
[ "MIT" ]
84
2017-05-07T05:16:54.000Z
2022-01-31T07:29:53.000Z
Application/WinMain.cpp
clayne/Dx11Base
497ba82ded6c6beb169446ce03df328b984b6751
[ "MIT" ]
1
2019-02-02T18:00:20.000Z
2019-02-02T18:31:41.000Z
Application/WinMain.cpp
clayne/Dx11Base
497ba82ded6c6beb169446ce03df328b984b6751
[ "MIT" ]
14
2018-04-16T19:09:28.000Z
2021-09-26T06:05:27.000Z
#include "Dx11Base/WindowHelper.h" #include "Dx11Base/Dx11Device.h" #include "Game.h" #include <imgui.h> #include "imgui\examples\imgui_impl_dx11.h" #include "imgui\examples\imgui_impl_win32.h" // Declaration of a Imgui function we need (see imgui_impl_win32.h) IMGUI_API LRESULT ImGui_ImplWin32_WndProcHandler(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam); // the entry point for any Windows program int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow) { static bool sVSyncEnable = true; static float sTimerGraphWidth = 16.7f; // 60FPS // Get a window size that matches the desired client size const unsigned int desiredPosX = 20; const unsigned int desiredPosY = 20; const unsigned int desiredClientWidth = 1280; const unsigned int desiredClientHeight = 720; RECT clientRect; clientRect.left = desiredPosX; clientRect.right = desiredPosX + desiredClientWidth; clientRect.bottom = desiredPosY + desiredClientHeight; clientRect.top = desiredPosY; // Create the window WindowHelper win(hInstance, clientRect, nCmdShow, L"D3D11 Application"); win.showWindow(); // Create the d3d device (a singleton since we only consider a single window) Dx11Device::initialise(win.getHwnd()); DxGpuPerformance::initialise(); // Initialise imgui ImGuiContext* imguiContext = ImGui::CreateContext(); ImGui::SetCurrentContext(imguiContext); ImGui_ImplWin32_Init(win.getHwnd()); ImGui_ImplDX11_Init(g_dx11Device->getDevice(), g_dx11Device->getDeviceContext()); // Setup style ImGui::StyleColorsDark(); //ImGui::StyleColorsClassic(); // Create the game Game game; game.initialise(); auto windowResizedCallback = [&](LPARAM lParam) { // No threading mechanism so safe to do update call from here. uint32 newWidth = LOWORD(lParam); uint32 newHeight = HIWORD(lParam); ImGui_ImplDX11_InvalidateDeviceObjects(); g_dx11Device->updateSwapChain(newWidth, newHeight); ImGui_ImplDX11_CreateDeviceObjects(); game.reallocateResolutionDependent(newWidth, newHeight); }; win.setWindowResizedCallback(windowResizedCallback); MSG msg = { 0 }; while (true) { bool msgValid = win.translateSingleMessage(msg); if (msgValid) { // Update imgui ImGui_ImplWin32_WndProcHandler(msg.hwnd, msg.message, msg.wParam, msg.lParam); ImGuiIO& io = ImGui::GetIO(); if (!(io.WantCaptureMouse || io.WantCaptureKeyboard)) { if (msg.message == WM_KEYDOWN && msg.wParam == VK_ESCAPE) break;// process escape key if (msg.message == WM_QUIT) break; // time to quit // A message has been processed and not consumed by imgui. Send the message to the WindowProc function. DispatchMessage(&msg); } } else { DxGpuPerformance::startFrame(); const char* frameGpuTimerName = "Frame"; DxGpuPerformance::startGpuTimer(frameGpuTimerName, 150, 150, 150); ImGui_ImplWin32_NewFrame(); ImGui_ImplDX11_NewFrame(); ImGui::NewFrame(); // Game update game.update(win.getInputData()); // Game render game.render(); // Render UI { //ImGui::SetNextWindowPos(ImVec2(650, 20), ImGuiSetCond_FirstUseEver); // Normally user code doesn't need/want to call it because positions are saved in .ini file anyway. Here we just want to make the demo initial state a bit more friendly! //ImGui::ShowTestWindow(); // Gpu performance timer graph debug print const DxGpuPerformance::TimerGraphNode* timerGraphRootNode = DxGpuPerformance::getLastUpdatedTimerGraphRootNode(); if(timerGraphRootNode) { ImGui::SetNextWindowSize(ImVec2(400.0f, 400.0f), ImGuiCond_FirstUseEver); ImGui::Begin("GPU performance"); ////////////////////////////////////////////////////////////// ImGui::Checkbox("VSync", &sVSyncEnable); ImGui::SliderFloat("TimerGraphWidth (ms)", &sTimerGraphWidth, 1.0, 60.0); // Lambda function parsing the timer graph and displaying it using horizontal bars static bool(*imguiPrintTimerGraphRecurse)(const DxGpuPerformance::TimerGraphNode*, int, int) = [](const DxGpuPerformance::TimerGraphNode* node, int level, int targetLevel) -> bool { const float maxWith = ImGui::GetWindowWidth(); const float msToPixel = maxWith / sTimerGraphWidth; bool printDone = false; if (level == targetLevel) { ImU32 color = ImColor(node->r, node->g, node->b); ImGui::PushStyleColor(ImGuiCol_Button, color); ImGui::PushStyleColor(ImGuiCol_ButtonHovered, color); ImGui::PushStyleColor(ImGuiCol_ButtonActive, color); if (node->mLastDurationMs > 0.0f) { // Set cursor to the correct position and size according to when things started this day ImGui::SetCursorPosX(node->mBeginMs * msToPixel); ImGui::PushItemWidth(node->mLastDurationMs * msToPixel); char debugStr[128]; sprintf_s(debugStr, 128, "%s %.3f ms\n", node->name.c_str(), node->mLastDurationMs); ImGui::Button(debugStr, ImVec2(node->mLastDurationMs * msToPixel, 0.0f)); if (ImGui::IsItemHovered()) { ImGui::SetTooltip(debugStr); } ImGui::SameLine(); ImGui::PopItemWidth(); } printDone = true; ImGui::PopStyleColor(3); } if (level >= targetLevel) return printDone; for (auto& node : node->subGraph) { printDone |= imguiPrintTimerGraphRecurse(node, level + 1, targetLevel); } return printDone; }; ImGui::PushStyleVar(ImGuiStyleVar_FrameRounding, 3.0f); ImGui::PushStyleVar(ImGuiStyleVar_FramePadding, ImVec2(2.0f, 2.0f)); ImGui::PushStyleVar(ImGuiStyleVar_ItemSpacing, ImVec2(0.0f, 0.0f)); ImGui::BeginChild("Timer graph", ImVec2(0, 150), true, ImGuiWindowFlags_HorizontalScrollbar); for (int targetLevel = 0; targetLevel < 16; ++targetLevel) { bool printDone = false; for (auto& node : timerGraphRootNode->subGraph) { printDone |= imguiPrintTimerGraphRecurse(node, 0, targetLevel); } if(printDone) ImGui::NewLine(); // start a new line if anything has been printed } ImGui::EndChild(); ImGui::PopStyleVar(3); ////////////////////////////////////////////////////////////// // Lambda function parsing the timer graph and displaying it as text static void(*textPrintTimerGraphRecurse)(const DxGpuPerformance::TimerGraphNode*, int) = [](const DxGpuPerformance::TimerGraphNode* node, int level) -> void { char* levelOffset = "---------------"; // 16 chars unsigned int levelShift = 16 - 2 * level - 1; char* levelOffsetPtr = levelOffset + (levelShift<0 ? 0 : levelShift); // cheap way to add shifting to a printf char debugStr[128]; sprintf_s(debugStr, 128, "%s%s %.3f ms\n", levelOffsetPtr, node->name.c_str(), node->mLastDurationMs); #if 0 OutputDebugStringA(debugStr); #else ImGui::TextColored(ImVec4(node->r, node->g, node->b, 1.0f), debugStr); #endif for (auto& node : node->subGraph) { textPrintTimerGraphRecurse(node, level + 1); } }; for (auto& node : timerGraphRootNode->subGraph) { textPrintTimerGraphRecurse(node, 0); } ////////////////////////////////////////////////////////////// ImGui::End(); } GPU_SCOPED_TIMEREVENT(Imgui, 0, 162, 232); ImGui::Render(); ImGui_ImplDX11_RenderDrawData(ImGui::GetDrawData()); } // Swap the back buffer g_dx11Device->swap(sVSyncEnable); DxGpuPerformance::endGpuTimer(frameGpuTimerName); DxGpuPerformance::endFrame(); // Events have all been processed in this path by the game win.clearInputEvents(); } } ImGui_ImplDX11_Shutdown(); ImGui_ImplWin32_Shutdown(); ImGui::DestroyContext(imguiContext); game.shutdown(); DxGpuPerformance::shutdown(); Dx11Device::shutdown(); // End of application return (int)msg.wParam; }
31.677291
248
0.672871
clayne
f7ab5ff71871d1c348648ef6484f0bff047b4a38
51,722
cc
C++
src/xenia/ui/window_win.cc
amessier/xenia
6b45cf84472c26436d4a5db61a7b50dab301e398
[ "BSD-3-Clause" ]
1
2022-03-21T07:35:46.000Z
2022-03-21T07:35:46.000Z
src/xenia/ui/window_win.cc
amessier/xenia
6b45cf84472c26436d4a5db61a7b50dab301e398
[ "BSD-3-Clause" ]
null
null
null
src/xenia/ui/window_win.cc
amessier/xenia
6b45cf84472c26436d4a5db61a7b50dab301e398
[ "BSD-3-Clause" ]
null
null
null
/** ****************************************************************************** * Xenia : Xbox 360 Emulator Research Project * ****************************************************************************** * Copyright 2022 Ben Vanik. All rights reserved. * * Released under the BSD license - see LICENSE in the root for more details. * ****************************************************************************** */ #include "xenia/ui/window_win.h" #include <algorithm> #include <memory> #include <string> #include "xenia/base/assert.h" #include "xenia/base/filesystem.h" #include "xenia/base/logging.h" #include "xenia/ui/surface_win.h" // Must be included before Windows headers for things like NOMINMAX. #include "xenia/base/platform_win.h" #include "xenia/ui/virtual_key.h" #include "xenia/ui/windowed_app_context_win.h" // For per-monitor DPI awareness v1. #include <ShellScalingApi.h> namespace xe { namespace ui { std::unique_ptr<Window> Window::Create(WindowedAppContext& app_context, const std::string_view title, uint32_t desired_logical_width, uint32_t desired_logical_height) { return std::make_unique<Win32Window>( app_context, title, desired_logical_width, desired_logical_height); } Win32Window::Win32Window(WindowedAppContext& app_context, const std::string_view title, uint32_t desired_logical_width, uint32_t desired_logical_height) : Window(app_context, title, desired_logical_width, desired_logical_height), arrow_cursor_(LoadCursor(nullptr, IDC_ARROW)) { dpi_ = GetCurrentSystemDpi(); } Win32Window::~Win32Window() { EnterDestructor(); if (cursor_auto_hide_timer_) { DeleteTimerQueueTimer(nullptr, cursor_auto_hide_timer_, nullptr); cursor_auto_hide_timer_ = nullptr; } if (hwnd_) { // Set hwnd_ to null to ignore events from now on since this Win32Window is // entering an indeterminate state. HWND hwnd = hwnd_; hwnd_ = nullptr; SetWindowLongPtr(hwnd, GWLP_USERDATA, 0); DestroyWindow(hwnd); } if (icon_) { DestroyIcon(icon_); } } uint32_t Win32Window::GetMediumDpi() const { return USER_DEFAULT_SCREEN_DPI; } bool Win32Window::OpenImpl() { const Win32WindowedAppContext& win32_app_context = static_cast<const Win32WindowedAppContext&>(app_context()); HINSTANCE hinstance = win32_app_context.hinstance(); static bool has_registered_class = false; if (!has_registered_class) { WNDCLASSEXW wcex; wcex.cbSize = sizeof(wcex); wcex.style = CS_HREDRAW | CS_VREDRAW | CS_OWNDC; wcex.lpfnWndProc = Win32Window::WndProcThunk; wcex.cbClsExtra = 0; wcex.cbWndExtra = 0; wcex.hInstance = hinstance; wcex.hIcon = LoadIconW(hinstance, L"MAINICON"); wcex.hIconSm = nullptr; // LoadIconW(hinstance, L"MAINICON"); wcex.hCursor = arrow_cursor_; // Matches the black background color of the presenter's painting. wcex.hbrBackground = (HBRUSH)GetStockObject(BLACK_BRUSH); wcex.lpszMenuName = nullptr; wcex.lpszClassName = L"XeniaWindowClass"; if (!RegisterClassExW(&wcex)) { XELOGE("RegisterClassEx failed"); return false; } has_registered_class = true; } const Win32MenuItem* main_menu = static_cast<const Win32MenuItem*>(GetMainMenu()); // Setup the initial size for the non-fullscreen window. With per-monitor DPI, // this is also done to be able to obtain the initial window rectangle (with // CW_USEDEFAULT) to get the monitor for the window position, and then to // adjust the normal window size to the new DPI. // Save the initial desired size since it may be modified by the handler of // the WM_SIZE sent during window creation - it's needed for the initial // per-monitor DPI scaling. uint32_t initial_desired_logical_width = GetDesiredLogicalWidth(); uint32_t initial_desired_logical_height = GetDesiredLogicalHeight(); const Win32WindowedAppContext::PerMonitorDpiV2Api* per_monitor_dpi_v2_api = win32_app_context.per_monitor_dpi_v2_api(); const Win32WindowedAppContext::PerMonitorDpiV1Api* per_monitor_dpi_v1_api = win32_app_context.per_monitor_dpi_v1_api(); // Even with per-monitor DPI, take the closest approximation (system DPI) to // potentially more accurately determine the initial monitor. dpi_ = GetCurrentSystemDpi(); DWORD window_style = WS_OVERLAPPEDWINDOW | WS_CLIPCHILDREN | WS_CLIPSIBLINGS; DWORD window_ex_style = WS_EX_APPWINDOW | WS_EX_CONTROLPARENT; RECT window_size_rect; window_size_rect.left = 0; window_size_rect.top = 0; window_size_rect.right = LONG(ConvertSizeDpi(initial_desired_logical_width, dpi_, USER_DEFAULT_SCREEN_DPI)); window_size_rect.bottom = LONG(ConvertSizeDpi(initial_desired_logical_height, dpi_, USER_DEFAULT_SCREEN_DPI)); AdjustWindowRectangle(window_size_rect, window_style, BOOL(main_menu != nullptr), window_ex_style, dpi_); // Create the window. Though WM_NCCREATE will assign to `hwnd_` too, still do // the assignment here to handle the case of a failure after WM_NCCREATE, for // instance. hwnd_ = CreateWindowExW( window_ex_style, L"XeniaWindowClass", reinterpret_cast<LPCWSTR>(xe::to_utf16(GetTitle()).c_str()), window_style, CW_USEDEFAULT, CW_USEDEFAULT, window_size_rect.right - window_size_rect.left, window_size_rect.bottom - window_size_rect.top, nullptr, nullptr, hinstance, this); if (!hwnd_) { XELOGE("CreateWindowExW failed"); return false; } // For per-monitor DPI, obtain the DPI of the monitor the window was created // on, and adjust the initial normal size for it. If as a result of this // resizing, the window is moved to a different monitor, the WM_DPICHANGED // handler will do the needed correction. uint32_t initial_monitor_dpi = dpi_; if (per_monitor_dpi_v2_api) { initial_monitor_dpi = per_monitor_dpi_v2_api->get_dpi_for_window(hwnd_); } else if (per_monitor_dpi_v1_api) { HMONITOR monitor = MonitorFromWindow(hwnd_, MONITOR_DEFAULTTONEAREST); UINT monitor_dpi_x, monitor_dpi_y; if (monitor && SUCCEEDED(per_monitor_dpi_v1_api->get_dpi_for_monitor( monitor, MDT_DEFAULT, &monitor_dpi_x, &monitor_dpi_y))) { initial_monitor_dpi = monitor_dpi_x; } } if (dpi_ != initial_monitor_dpi) { dpi_ = initial_monitor_dpi; WINDOWPLACEMENT initial_dpi_placement; // Note that WINDOWPLACEMENT contains workspace coordinates, which are // adjusted to exclude toolbars such as the taskbar - the positions and // rectangle origins there can't be mixed with origins of rectangles in // virtual screen coordinates such as those involved in functions like // GetWindowRect. initial_dpi_placement.length = sizeof(initial_dpi_placement); if (GetWindowPlacement(hwnd_, &initial_dpi_placement)) { window_size_rect.left = 0; window_size_rect.top = 0; window_size_rect.right = LONG(ConvertSizeDpi( initial_desired_logical_width, dpi_, USER_DEFAULT_SCREEN_DPI)); window_size_rect.bottom = LONG(ConvertSizeDpi( initial_desired_logical_height, dpi_, USER_DEFAULT_SCREEN_DPI)); AdjustWindowRectangle(window_size_rect, window_style, BOOL(main_menu != nullptr), window_ex_style, dpi_); initial_dpi_placement.rcNormalPosition.right = initial_dpi_placement.rcNormalPosition.left + (window_size_rect.right - window_size_rect.left); initial_dpi_placement.rcNormalPosition.bottom = initial_dpi_placement.rcNormalPosition.top + (window_size_rect.bottom - window_size_rect.top); SetWindowPlacement(hwnd_, &initial_dpi_placement); } } // Disable flicks. ATOM atom = GlobalAddAtomW(L"MicrosoftTabletPenServiceProperty"); const DWORD_PTR dwHwndTabletProperty = TABLET_DISABLE_PRESSANDHOLD | // disables press and hold (right-click) // gesture TABLET_DISABLE_PENTAPFEEDBACK | // disables UI feedback on pen up (waves) TABLET_DISABLE_PENBARRELFEEDBACK | // disables UI feedback on pen button // down (circle) TABLET_DISABLE_FLICKS | // disables pen flicks (back, forward, drag down, // drag up) TABLET_DISABLE_TOUCHSWITCH | TABLET_DISABLE_SMOOTHSCROLLING | TABLET_DISABLE_TOUCHUIFORCEON | TABLET_ENABLE_MULTITOUCHDATA; SetPropW(hwnd_, L"MicrosoftTabletPenServiceProperty", reinterpret_cast<HANDLE>(dwHwndTabletProperty)); GlobalDeleteAtom(atom); // Enable file dragging from external sources DragAcceptFiles(hwnd_, true); // Apply the initial state from the Window that the window shouldn't be // visibly transitioned to. if (icon_) { SendMessageW(hwnd_, WM_SETICON, ICON_BIG, reinterpret_cast<LPARAM>(icon_)); SendMessageW(hwnd_, WM_SETICON, ICON_SMALL, reinterpret_cast<LPARAM>(icon_)); } if (IsFullscreen()) { // Go fullscreen after setting up everything related to the placement of the // non-fullscreen window. WindowDestructionReceiver destruction_receiver(this); ApplyFullscreenEntry(destruction_receiver); if (destruction_receiver.IsWindowDestroyed()) { return true; } } else { if (main_menu) { SetMenu(hwnd_, main_menu->handle()); } } // Finally show the window. ShowWindow(hwnd_, SW_SHOWNORMAL); // Report the initial actual state after opening, messages for which might // have missed if they were processed during CreateWindowExW when the HWND was // not yet attached to the Win32Window. { WindowDestructionReceiver destruction_receiver(this); // Report the desired logical size of the client area in the non-maximized // state after the initial layout setup in Windows. WINDOWPLACEMENT shown_placement; shown_placement.length = sizeof(shown_placement); if (GetWindowPlacement(hwnd_, &shown_placement)) { // Get the size of the non-client area to subtract it from the size of the // entire window in its non-maximized state, to get the client area. For // safety, in case the window is somehow smaller than its non-client area // (AdjustWindowRect is not exact in various cases also, such as when the // menu becomes multiline), clamp to 0. RECT non_client_area_rect = {}; AdjustWindowRectangle(non_client_area_rect); OnDesiredLogicalSizeUpdate( SizeToLogical(uint32_t(std::max( (shown_placement.rcNormalPosition.right - shown_placement.rcNormalPosition.left) - (non_client_area_rect.right - non_client_area_rect.left), LONG(0)))), SizeToLogical(uint32_t(std::max( (shown_placement.rcNormalPosition.bottom - shown_placement.rcNormalPosition.top) - (non_client_area_rect.bottom - non_client_area_rect.top), LONG(0))))); } // Report the actual physical size in the current state. // GetClientRect returns a rectangle with 0 origin. RECT shown_client_rect; if (GetClientRect(hwnd_, &shown_client_rect)) { OnActualSizeUpdate(uint32_t(shown_client_rect.right), uint32_t(shown_client_rect.bottom), destruction_receiver); if (destruction_receiver.IsWindowDestroyedOrClosed()) { return true; } } OnFocusUpdate(GetFocus() == hwnd_, destruction_receiver); if (destruction_receiver.IsWindowDestroyedOrClosed()) { return true; } } // Apply the initial state from the Window that involves interaction with the // user. if (IsMouseCaptureRequested()) { SetCapture(hwnd_); } cursor_currently_auto_hidden_ = false; CursorVisibility cursor_visibility = GetCursorVisibility(); if (cursor_visibility != CursorVisibility::kVisible) { if (cursor_visibility == CursorVisibility::kAutoHidden) { if (!GetCursorPos(&cursor_auto_hide_last_screen_pos_)) { cursor_auto_hide_last_screen_pos_.x = LONG_MAX; cursor_auto_hide_last_screen_pos_.y = LONG_MAX; } cursor_currently_auto_hidden_ = true; } // OnFocusUpdate needs to be done before this. SetCursorIfFocusedOnClientArea(nullptr); } return true; } void Win32Window::RequestCloseImpl() { // Note that CloseWindow doesn't close the window, rather, it only minimizes // it - need to send WM_CLOSE to let the Win32Window WndProc perform all the // shutdown. SendMessageW(hwnd_, WM_CLOSE, 0, 0); // The window might have been deleted by the close handler, don't do anything // with *this anymore (if that's needed, use a WindowDestructionReceiver). } uint32_t Win32Window::GetLatestDpiImpl() const { // hwnd_ may be null in this function, but the latest DPI is stored in a // variable anyway. return dpi_; } void Win32Window::ApplyNewFullscreen() { // Various functions here may send messages that may result in the // listeners being invoked, and potentially cause the destruction of the // window or fullscreen being toggled from inside this function. WindowDestructionReceiver destruction_receiver(this); if (IsFullscreen()) { ApplyFullscreenEntry(destruction_receiver); if (destruction_receiver.IsWindowDestroyedOrClosed()) { return; } } else { // Changing the style and the menu may change the size too, don't handle // the resize multiple times (also potentially with the listeners changing // the desired fullscreen if called from the handling of some message like // WM_SIZE). BeginBatchedSizeUpdate(); // Reinstate the non-client area. SetWindowLong(hwnd_, GWL_STYLE, GetWindowLong(hwnd_, GWL_STYLE) | WS_OVERLAPPEDWINDOW); if (destruction_receiver.IsWindowDestroyedOrClosed()) { if (!destruction_receiver.IsWindowDestroyed()) { EndBatchedSizeUpdate(destruction_receiver); } return; } const Win32MenuItem* main_menu = static_cast<const Win32MenuItem*>(GetMainMenu()); if (main_menu) { SetMenu(hwnd_, main_menu->handle()); if (destruction_receiver.IsWindowDestroyedOrClosed()) { if (!destruction_receiver.IsWindowDestroyed()) { EndBatchedSizeUpdate(destruction_receiver); } return; } } // For some reason, WM_DPICHANGED is not sent when the window is borderless // fullscreen with per-monitor DPI awareness v1 (on Windows versions since // Windows 8.1 before Windows 10 1703) - refresh the current DPI explicitly. dpi_ = GetCurrentDpi(); if (dpi_ != pre_fullscreen_dpi_) { // Rescale the pre-fullscreen non-maximized window size to the new DPI as // WM_DPICHANGED with the new rectangle was received for the fullscreen // window size, not the windowed one. Simulating the behavior of the // automatic resizing when changing the scale in the Windows settings (as // of Windows 11 21H2 at least), which keeps the physical top-left origin // of the entire window including the non-client area, but rescales the // size. // Note that WINDOWPLACEMENT contains workspace coordinates, which are // adjusted to exclude toolbars such as the taskbar - the positions and // rectangle origins there can't be mixed with origins of rectangles in // virtual screen coordinates such as those involved in functions like // GetWindowRect. RECT new_dpi_rect; new_dpi_rect.left = 0; new_dpi_rect.top = 0; new_dpi_rect.right = LONG(ConvertSizeDpi( pre_fullscreen_normal_client_width_, dpi_, pre_fullscreen_dpi_)); new_dpi_rect.bottom = LONG(ConvertSizeDpi( pre_fullscreen_normal_client_height_, dpi_, pre_fullscreen_dpi_)); AdjustWindowRectangle(new_dpi_rect); pre_fullscreen_placement_.rcNormalPosition.right = pre_fullscreen_placement_.rcNormalPosition.left + (new_dpi_rect.right - new_dpi_rect.left); pre_fullscreen_placement_.rcNormalPosition.bottom = pre_fullscreen_placement_.rcNormalPosition.top + (new_dpi_rect.bottom - new_dpi_rect.top); } SetWindowPlacement(hwnd_, &pre_fullscreen_placement_); if (destruction_receiver.IsWindowDestroyedOrClosed()) { if (!destruction_receiver.IsWindowDestroyed()) { EndBatchedSizeUpdate(destruction_receiver); } return; } // https://devblogs.microsoft.com/oldnewthing/20131017-00/?p=2903 SetWindowPos(hwnd_, nullptr, 0, 0, 0, 0, SWP_NOMOVE | SWP_NOSIZE | SWP_NOZORDER | SWP_NOOWNERZORDER | SWP_FRAMECHANGED); if (destruction_receiver.IsWindowDestroyedOrClosed()) { if (!destruction_receiver.IsWindowDestroyed()) { EndBatchedSizeUpdate(destruction_receiver); } return; } EndBatchedSizeUpdate(destruction_receiver); if (destruction_receiver.IsWindowDestroyedOrClosed()) { return; } } } void Win32Window::ApplyNewTitle() { SetWindowTextW(hwnd_, reinterpret_cast<LPCWSTR>(xe::to_utf16(GetTitle()).c_str())); } void Win32Window::LoadAndApplyIcon(const void* buffer, size_t size, bool can_apply_state_in_current_phase) { bool reset = !buffer || !size; HICON new_icon, new_icon_small; if (reset) { if (!icon_) { // The icon is already the default one. return; } if (!hwnd_) { // Don't need to get the actual icon from the class if there's nothing to // set it for yet (and there's no HWND to get it from, and the class may // have not been registered yet also). DestroyIcon(icon_); icon_ = nullptr; return; } new_icon = reinterpret_cast<HICON>(GetClassLongPtrW(hwnd_, GCLP_HICON)); new_icon_small = reinterpret_cast<HICON>(GetClassLongPtrW(hwnd_, GCLP_HICONSM)); // Not caring if it's null in the class, accepting anything the class // specifies. } else { new_icon = CreateIconFromResourceEx( static_cast<PBYTE>(const_cast<void*>(buffer)), DWORD(size), TRUE, 0x00030000, 0, 0, LR_DEFAULTCOLOR | LR_DEFAULTSIZE); if (!new_icon) { return; } new_icon_small = new_icon; } if (hwnd_) { SendMessageW(hwnd_, WM_SETICON, ICON_BIG, reinterpret_cast<LPARAM>(new_icon)); SendMessageW(hwnd_, WM_SETICON, ICON_SMALL, reinterpret_cast<LPARAM>(new_icon_small)); } // The old icon is not in use anymore, safe to destroy it now. if (icon_) { DestroyIcon(icon_); icon_ = nullptr; } if (!reset) { assert_true(new_icon_small == new_icon); icon_ = new_icon; } } void Win32Window::ApplyNewMainMenu(MenuItem* old_main_menu) { if (IsFullscreen()) { // The menu will be set when exiting fullscreen. return; } const Win32MenuItem* main_menu = static_cast<const Win32MenuItem*>(GetMainMenu()); WindowDestructionReceiver destruction_receiver(this); SetMenu(hwnd_, main_menu ? main_menu->handle() : nullptr); if (destruction_receiver.IsWindowDestroyedOrClosed()) { return; } } void Win32Window::CompleteMainMenuItemsUpdateImpl() { if (IsFullscreen()) { return; } DrawMenuBar(hwnd_); } void Win32Window::ApplyNewMouseCapture() { WindowDestructionReceiver destruction_receiver(this); SetCapture(hwnd_); if (destruction_receiver.IsWindowDestroyedOrClosed()) { return; } } void Win32Window::ApplyNewMouseRelease() { if (GetCapture() != hwnd_) { return; } WindowDestructionReceiver destruction_receiver(this); ReleaseCapture(); if (destruction_receiver.IsWindowDestroyedOrClosed()) { return; } } void Win32Window::ApplyNewCursorVisibility( CursorVisibility old_cursor_visibility) { CursorVisibility new_cursor_visibility = GetCursorVisibility(); cursor_currently_auto_hidden_ = false; if (new_cursor_visibility == CursorVisibility::kAutoHidden) { if (!GetCursorPos(&cursor_auto_hide_last_screen_pos_)) { cursor_auto_hide_last_screen_pos_.x = LONG_MAX; cursor_auto_hide_last_screen_pos_.y = LONG_MAX; } cursor_currently_auto_hidden_ = true; } else if (old_cursor_visibility == CursorVisibility::kAutoHidden) { if (cursor_auto_hide_timer_) { DeleteTimerQueueTimer(nullptr, cursor_auto_hide_timer_, nullptr); cursor_auto_hide_timer_ = nullptr; } } SetCursorIfFocusedOnClientArea( new_cursor_visibility == CursorVisibility::kVisible ? arrow_cursor_ : nullptr); } void Win32Window::FocusImpl() { SetFocus(hwnd_); } std::unique_ptr<Surface> Win32Window::CreateSurfaceImpl( Surface::TypeFlags allowed_types) { HINSTANCE hInstance = static_cast<const Win32WindowedAppContext&>(app_context()).hinstance(); if (allowed_types & Surface::kTypeFlag_Win32Hwnd) { return std::make_unique<Win32HwndSurface>(hInstance, hwnd_); } return nullptr; } void Win32Window::RequestPaintImpl() { InvalidateRect(hwnd_, nullptr, FALSE); } BOOL Win32Window::AdjustWindowRectangle(RECT& rect, DWORD style, BOOL menu, DWORD ex_style, UINT dpi) const { const Win32WindowedAppContext& win32_app_context = static_cast<const Win32WindowedAppContext&>(app_context()); const Win32WindowedAppContext::PerMonitorDpiV2Api* per_monitor_dpi_v2_api = win32_app_context.per_monitor_dpi_v2_api(); if (per_monitor_dpi_v2_api) { return per_monitor_dpi_v2_api->adjust_window_rect_ex_for_dpi( &rect, style, menu, ex_style, dpi); } // Before per-monitor DPI v2, there was no rescaling of the non-client // area at runtime at all, so throughout the execution of the process it will // behave the same regardless of the DPI. return AdjustWindowRectEx(&rect, style, menu, ex_style); } BOOL Win32Window::AdjustWindowRectangle(RECT& rect) const { if (!hwnd_) { return FALSE; } return AdjustWindowRectangle(rect, GetWindowLong(hwnd_, GWL_STYLE), BOOL(GetMainMenu() != nullptr), GetWindowLong(hwnd_, GWL_EXSTYLE), dpi_); } uint32_t Win32Window::GetCurrentSystemDpi() const { const Win32WindowedAppContext& win32_app_context = static_cast<const Win32WindowedAppContext&>(app_context()); const Win32WindowedAppContext::PerMonitorDpiV2Api* per_monitor_dpi_v2_api = win32_app_context.per_monitor_dpi_v2_api(); if (per_monitor_dpi_v2_api) { return per_monitor_dpi_v2_api->get_dpi_for_system(); } HDC screen_hdc = GetDC(nullptr); if (!screen_hdc) { return USER_DEFAULT_SCREEN_DPI; } // According to MSDN, x and y are identical. int logical_pixels_x = GetDeviceCaps(screen_hdc, LOGPIXELSX); ReleaseDC(nullptr, screen_hdc); return uint32_t(logical_pixels_x); } uint32_t Win32Window::GetCurrentDpi() const { if (hwnd_) { const Win32WindowedAppContext& win32_app_context = static_cast<const Win32WindowedAppContext&>(app_context()); const Win32WindowedAppContext::PerMonitorDpiV2Api* per_monitor_dpi_v2_api = win32_app_context.per_monitor_dpi_v2_api(); if (per_monitor_dpi_v2_api) { return per_monitor_dpi_v2_api->get_dpi_for_window(hwnd_); } const Win32WindowedAppContext::PerMonitorDpiV1Api* per_monitor_dpi_v1_api = win32_app_context.per_monitor_dpi_v1_api(); if (per_monitor_dpi_v1_api) { HMONITOR monitor = MonitorFromWindow(hwnd_, MONITOR_DEFAULTTONEAREST); UINT monitor_dpi_x, monitor_dpi_y; if (monitor && SUCCEEDED(per_monitor_dpi_v1_api->get_dpi_for_monitor( monitor, MDT_DEFAULT, &monitor_dpi_x, &monitor_dpi_y))) { // According to MSDN, x and y are identical. return monitor_dpi_x; } } } return GetCurrentSystemDpi(); } void Win32Window::ApplyFullscreenEntry( WindowDestructionReceiver& destruction_receiver) { if (!IsFullscreen()) { return; } // https://blogs.msdn.com/b/oldnewthing/archive/2010/04/12/9994016.aspx // No reason to use MONITOR_DEFAULTTOPRIMARY instead of // MONITOR_DEFAULTTONEAREST, however. pre_fullscreen_dpi_ = dpi_; pre_fullscreen_placement_.length = sizeof(pre_fullscreen_placement_); HMONITOR monitor; MONITORINFO monitor_info; monitor_info.cbSize = sizeof(monitor_info); if (!GetWindowPlacement(hwnd_, &pre_fullscreen_placement_) || !(monitor = MonitorFromWindow(hwnd_, MONITOR_DEFAULTTONEAREST)) || !GetMonitorInfo(monitor, &monitor_info)) { OnDesiredFullscreenUpdate(false); return; } // Preserve values for DPI rescaling of the window in the non-maximized state // if DPI is changed mid-fullscreen. // Get the size of the non-client area to subtract it from the size of the // entire window in its non-maximized state, to get the client area. For // safety, in case the window is somehow smaller than its non-client area // (AdjustWindowRect is not exact in various cases also, such as when the menu // becomes multiline), clamp to 0. RECT non_client_area_rect = {}; AdjustWindowRectangle(non_client_area_rect); pre_fullscreen_normal_client_width_ = uint32_t( std::max((pre_fullscreen_placement_.rcNormalPosition.right - pre_fullscreen_placement_.rcNormalPosition.left) - (non_client_area_rect.right - non_client_area_rect.left), LONG(0))); pre_fullscreen_normal_client_height_ = uint32_t( std::max((pre_fullscreen_placement_.rcNormalPosition.bottom - pre_fullscreen_placement_.rcNormalPosition.top) - (non_client_area_rect.bottom - non_client_area_rect.top), LONG(0))); // Changing the style and the menu may change the size too, don't handle the // resize multiple times (also potentially with the listeners changing the // desired fullscreen if called from the handling of some message like // WM_SIZE). BeginBatchedSizeUpdate(); // Remove the non-client area. if (GetMainMenu()) { SetMenu(hwnd_, nullptr); if (destruction_receiver.IsWindowDestroyedOrClosed()) { if (!destruction_receiver.IsWindowDestroyed()) { EndBatchedSizeUpdate(destruction_receiver); } return; } } SetWindowLong(hwnd_, GWL_STYLE, GetWindowLong(hwnd_, GWL_STYLE) & ~DWORD(WS_OVERLAPPEDWINDOW)); if (destruction_receiver.IsWindowDestroyedOrClosed()) { if (!destruction_receiver.IsWindowDestroyed()) { EndBatchedSizeUpdate(destruction_receiver); } return; } // Resize the window to fullscreen. It is important that this is done _after_ // disabling the decorations and the menu, to make sure that composition will // not have to be done for the new size of the window at all, so independent, // low-latency presentation is possible immediately - if the window was // involved in composition, it may stay composed persistently until some other // state change that sometimes helps, sometimes doesn't, even if it becomes // borderless fullscreen again - this occurs sometimes at least on Windows 11 // 21H2 on Nvidia GeForce GTX 1070 on driver version 472.12. SetWindowPos(hwnd_, HWND_TOP, monitor_info.rcMonitor.left, monitor_info.rcMonitor.top, monitor_info.rcMonitor.right - monitor_info.rcMonitor.left, monitor_info.rcMonitor.bottom - monitor_info.rcMonitor.top, SWP_NOOWNERZORDER | SWP_FRAMECHANGED); if (destruction_receiver.IsWindowDestroyedOrClosed()) { if (!destruction_receiver.IsWindowDestroyed()) { EndBatchedSizeUpdate(destruction_receiver); } return; } EndBatchedSizeUpdate(destruction_receiver); if (destruction_receiver.IsWindowDestroyedOrClosed()) { return; } } void Win32Window::HandleSizeUpdate( WindowDestructionReceiver& destruction_receiver) { if (!hwnd_) { // Batched size update ended when the window has already been closed, for // instance. return; } { MonitorUpdateEvent e(this, false); OnMonitorUpdate(e); } // For the desired size in the normal, not maximized and not fullscreen state. if (!IsFullscreen()) { WINDOWPLACEMENT window_placement; window_placement.length = sizeof(window_placement); if (GetWindowPlacement(hwnd_, &window_placement)) { // window_placement.rcNormalPosition is the entire window's rectangle, not // only the client area - convert to client. // https://devblogs.microsoft.com/oldnewthing/20131017-00/?p=2903 // For safety, in case the window is somehow smaller than its non-client // area (AdjustWindowRect is not exact in various cases also, such as when // the menu becomes multiline), clamp to 0. RECT non_client_area_rect = {}; if (AdjustWindowRectangle(non_client_area_rect)) { OnDesiredLogicalSizeUpdate( SizeToLogical(uint32_t(std::max( (window_placement.rcNormalPosition.right - window_placement.rcNormalPosition.left) - (non_client_area_rect.right - non_client_area_rect.left), LONG(0)))), SizeToLogical(uint32_t(std::max( (window_placement.rcNormalPosition.bottom - window_placement.rcNormalPosition.top) - (non_client_area_rect.bottom - non_client_area_rect.top), LONG(0))))); } } } // For the actual state. // GetClientRect returns a rectangle with 0 origin. RECT client_rect; if (GetClientRect(hwnd_, &client_rect)) { OnActualSizeUpdate(uint32_t(client_rect.right), uint32_t(client_rect.bottom), destruction_receiver); if (destruction_receiver.IsWindowDestroyedOrClosed()) { return; } } } void Win32Window::BeginBatchedSizeUpdate() { // It's okay if batched_size_update_contained_* are not false when beginning // a batched update, in case the new batched update was started by a window // listener called from within EndBatchedSizeUpdate. ++batched_size_update_depth_; } void Win32Window::EndBatchedSizeUpdate( WindowDestructionReceiver& destruction_receiver) { assert_not_zero(batched_size_update_depth_); if (--batched_size_update_depth_) { return; } // Resetting batched_size_update_contained_* in closing, not opening, because // a listener may start a new batch, and finish it, and there won't be need to // handle the deferred messages twice. if (batched_size_update_contained_wm_size_) { batched_size_update_contained_wm_size_ = false; HandleSizeUpdate(destruction_receiver); if (destruction_receiver.IsWindowDestroyed()) { return; } } if (batched_size_update_contained_wm_paint_) { batched_size_update_contained_wm_paint_ = false; RequestPaint(); } } bool Win32Window::HandleMouse(UINT message, WPARAM wParam, LPARAM lParam, WindowDestructionReceiver& destruction_receiver) { // Mouse messages usually contain the position in the client area in lParam, // but WM_MOUSEWHEEL is an exception, it passes the screen position. int32_t message_x = GET_X_LPARAM(lParam); int32_t message_y = GET_Y_LPARAM(lParam); bool message_pos_is_screen = message == WM_MOUSEWHEEL; POINT client_pos = {message_x, message_y}; if (message_pos_is_screen) { ScreenToClient(hwnd_, &client_pos); } if (GetCursorVisibility() == CursorVisibility::kAutoHidden) { POINT screen_pos = {message_x, message_y}; if (message_pos_is_screen || ClientToScreen(hwnd_, &screen_pos)) { if (screen_pos.x != cursor_auto_hide_last_screen_pos_.x || screen_pos.y != cursor_auto_hide_last_screen_pos_.y) { // WM_MOUSEMOVE messages followed by WM_SETCURSOR may be sent for // reasons not always involving actual mouse movement performed by the // user. They're sent when the position of the cursor relative to the // client area has been changed, as well as other events related to // window management (including when creating the window), even when not // interacting with the OS. These should not be revealing the cursor. // Only revealing it if the mouse has actually been moved. cursor_currently_auto_hidden_ = false; SetCursorAutoHideTimer(); // There's no need to SetCursor here, mouse messages relevant to the // cursor within the window are always followed by WM_SETCURSOR. cursor_auto_hide_last_screen_pos_ = screen_pos; } } } MouseEvent::Button button = MouseEvent::Button::kNone; int32_t scroll_y = 0; switch (message) { case WM_LBUTTONDOWN: case WM_LBUTTONUP: button = MouseEvent::Button::kLeft; break; case WM_RBUTTONDOWN: case WM_RBUTTONUP: button = MouseEvent::Button::kRight; break; case WM_MBUTTONDOWN: case WM_MBUTTONUP: button = MouseEvent::Button::kMiddle; break; case WM_XBUTTONDOWN: case WM_XBUTTONUP: switch (GET_XBUTTON_WPARAM(wParam)) { case XBUTTON1: button = MouseEvent::Button::kX1; break; case XBUTTON2: button = MouseEvent::Button::kX2; break; default: // Still handle the movement. break; } break; case WM_MOUSEMOVE: button = MouseEvent::Button::kNone; break; case WM_MOUSEWHEEL: button = MouseEvent::Button::kNone; static_assert( MouseEvent::kScrollPerDetent == WHEEL_DELTA, "Assuming the Windows scroll amount can be passed directly to " "MouseEvent"); scroll_y = GET_WHEEL_DELTA_WPARAM(wParam); break; default: return false; } MouseEvent e(this, button, client_pos.x, client_pos.y, 0, scroll_y); switch (message) { case WM_LBUTTONDOWN: case WM_RBUTTONDOWN: case WM_MBUTTONDOWN: case WM_XBUTTONDOWN: OnMouseDown(e, destruction_receiver); break; case WM_LBUTTONUP: case WM_RBUTTONUP: case WM_MBUTTONUP: case WM_XBUTTONUP: OnMouseUp(e, destruction_receiver); break; case WM_MOUSEMOVE: OnMouseMove(e, destruction_receiver); break; case WM_MOUSEWHEEL: OnMouseWheel(e, destruction_receiver); break; default: break; } // Returning immediately anyway - no need to check // destruction_receiver.IsWindowDestroyed(). return e.is_handled(); } bool Win32Window::HandleKeyboard( UINT message, WPARAM wParam, LPARAM lParam, WindowDestructionReceiver& destruction_receiver) { KeyEvent e(this, VirtualKey(wParam), lParam & 0xFFFF, !!(lParam & (LPARAM(1) << 30)), !!(GetKeyState(VK_SHIFT) & 0x80), !!(GetKeyState(VK_CONTROL) & 0x80), !!(GetKeyState(VK_MENU) & 0x80), !!(GetKeyState(VK_LWIN) & 0x80)); switch (message) { case WM_KEYDOWN: OnKeyDown(e, destruction_receiver); break; case WM_KEYUP: OnKeyUp(e, destruction_receiver); break; case WM_CHAR: OnKeyChar(e, destruction_receiver); break; default: break; } // Returning immediately anyway - no need to check // destruction_receiver.IsWindowDestroyed(). return e.is_handled(); } void Win32Window::SetCursorIfFocusedOnClientArea(HCURSOR cursor) const { if (!HasFocus()) { return; } POINT cursor_pos; if (!GetCursorPos(&cursor_pos)) { return; } if (WindowFromPoint(cursor_pos) == hwnd_ && SendMessage(hwnd_, WM_NCHITTEST, 0, MAKELONG(cursor_pos.x, cursor_pos.y)) == HTCLIENT) { SetCursor(cursor); } } void Win32Window::SetCursorAutoHideTimer() { // Reset the timer by deleting the old timer and creating the new one. // ChangeTimerQueueTimer doesn't work if the timer has already expired. if (cursor_auto_hide_timer_) { DeleteTimerQueueTimer(nullptr, cursor_auto_hide_timer_, nullptr); cursor_auto_hide_timer_ = nullptr; } // After making sure that the callback is not callable anymore // (DeleteTimerQueueTimer waits for the completion of the callback if it has // been called already, or cancels it if it's hasn't), update the most recent // message revision. last_cursor_auto_hide_queued = last_cursor_auto_hide_signaled + 1; CreateTimerQueueTimer(&cursor_auto_hide_timer_, nullptr, AutoHideCursorTimerCallback, this, kDefaultCursorAutoHideMilliseconds, 0, WT_EXECUTEINTIMERTHREAD | WT_EXECUTEONLYONCE); } void Win32Window::AutoHideCursorTimerCallback(void* parameter, BOOLEAN timer_or_wait_fired) { if (!timer_or_wait_fired) { // Not a timer callback. return; } Win32Window& window = *static_cast<Win32Window*>(parameter); window.last_cursor_auto_hide_signaled = window.last_cursor_auto_hide_queued; SendMessage(window.hwnd_, kUserMessageAutoHideCursor, window.last_cursor_auto_hide_signaled, 0); } LRESULT Win32Window::WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam) { if (message >= WM_MOUSEFIRST && message <= WM_MOUSELAST) { WindowDestructionReceiver destruction_receiver(this); // Returning immediately anyway - no need to check // destruction_receiver.IsWindowDestroyed() afterwards. return HandleMouse(message, wParam, lParam, destruction_receiver) ? 0 : DefWindowProc(hWnd, message, wParam, lParam); } if (message >= WM_KEYFIRST && message <= WM_KEYLAST) { WindowDestructionReceiver destruction_receiver(this); // Returning immediately anyway - no need to check // destruction_receiver.IsWindowDestroyed() afterwards. return HandleKeyboard(message, wParam, lParam, destruction_receiver) ? 0 : DefWindowProc(hWnd, message, wParam, lParam); } switch (message) { case WM_CLOSE: // In case the Windows window was somehow forcibly destroyed without // WM_CLOSE. case WM_DESTROY: { if (cursor_auto_hide_timer_) { DeleteTimerQueueTimer(nullptr, cursor_auto_hide_timer_, nullptr); cursor_auto_hide_timer_ = nullptr; } { WindowDestructionReceiver destruction_receiver(this); OnBeforeClose(destruction_receiver); if (destruction_receiver.IsWindowDestroyed()) { break; } } // Set hwnd_ to null to ignore events from now on since this Win32Window // is entering an indeterminate state - this should be done at some point // in closing anyway. hwnd_ = nullptr; SetWindowLongPtr(hWnd, GWLP_USERDATA, 0); if (message != WM_DESTROY) { DestroyWindow(hWnd); } OnAfterClose(); } break; case WM_DROPFILES: { HDROP drop_handle = reinterpret_cast<HDROP>(wParam); auto drop_count = DragQueryFileW(drop_handle, 0xFFFFFFFFu, nullptr, 0); if (drop_count > 0) { // Get required buffer size UINT path_size = DragQueryFileW(drop_handle, 0, nullptr, 0); if (path_size > 0 && path_size < 0xFFFFFFFFu) { std::u16string path; ++path_size; // Ensure space for the null terminator path.resize(path_size); // Reserve space // Only getting first file dropped (other files ignored) path_size = DragQueryFileW(drop_handle, 0, (LPWSTR)&path[0], path_size); if (path_size > 0) { path.resize(path_size); // Will drop the null terminator FileDropEvent e(this, xe::to_path(path)); WindowDestructionReceiver destruction_receiver(this); OnFileDrop(e, destruction_receiver); if (destruction_receiver.IsWindowDestroyedOrClosed()) { DragFinish(drop_handle); break; } } } } DragFinish(drop_handle); } break; case WM_MOVE: { OnMonitorUpdate(MonitorUpdateEvent(this, false)); } break; case WM_SIZE: { if (batched_size_update_depth_) { batched_size_update_contained_wm_size_ = true; } else { WindowDestructionReceiver destruction_receiver(this); HandleSizeUpdate(destruction_receiver); if (destruction_receiver.IsWindowDestroyedOrClosed()) { break; } } } break; case WM_PAINT: { if (batched_size_update_depth_) { // Avoid painting an outdated surface during a batched size update when // WM_SIZE handling is deferred. batched_size_update_contained_wm_paint_ = true; } else { ValidateRect(hwnd_, nullptr); OnPaint(); } // Custom painting via OnPaint - don't pass to DefWindowProc. return 0; } break; case WM_ERASEBKGND: { if (HasSurface()) { // Don't erase between paints because painting may be dropped if nothing // has changed since the last one. return 0; } } break; case WM_DISPLAYCHANGE: { OnMonitorUpdate(MonitorUpdateEvent(this, true)); } break; case WM_DPICHANGED: { // Note that for some reason, WM_DPICHANGED is not sent when the window is // borderless fullscreen with per-monitor DPI awareness v1. dpi_ = GetCurrentDpi(); WindowDestructionReceiver destruction_receiver(this); { UISetupEvent e(this); OnDpiChanged(e, destruction_receiver); // The window might have been closed by the handler, check hwnd_ too // since it's needed below. if (destruction_receiver.IsWindowDestroyedOrClosed()) { break; } } auto rect = reinterpret_cast<const RECT*>(lParam); if (rect) { // SetWindowPos arguments according to WM_DPICHANGED MSDN documentation. // https://docs.microsoft.com/en-us/windows/win32/hidpi/wm-dpichanged // There's no need to handle the maximized state any special way (by // updating the window placement instead of the window position in this // case, for instance), as Windows (by design) restores the window when // changing the DPI to a new one. SetWindowPos(hwnd_, nullptr, int(rect->left), int(rect->top), int(rect->right - rect->left), int(rect->bottom - rect->top), SWP_NOZORDER | SWP_NOACTIVATE); if (destruction_receiver.IsWindowDestroyedOrClosed()) { break; } } } break; case WM_KILLFOCUS: { WindowDestructionReceiver destruction_receiver(this); OnFocusUpdate(false, destruction_receiver); if (destruction_receiver.IsWindowDestroyedOrClosed()) { break; } } break; case WM_SETFOCUS: { WindowDestructionReceiver destruction_receiver(this); OnFocusUpdate(true, destruction_receiver); if (destruction_receiver.IsWindowDestroyedOrClosed()) { break; } } break; case WM_SETCURSOR: { if (reinterpret_cast<HWND>(wParam) == hwnd_ && HasFocus() && LOWORD(lParam) == HTCLIENT) { switch (GetCursorVisibility()) { case CursorVisibility::kAutoHidden: { // Always revealing the cursor in case of events like clicking, but // WM_MOUSEMOVE messages may be sent for reasons not always // involving actual mouse movement performed by the user. Revealing // the cursor in case of movement is done in HandleMouse instead. if (HIWORD(lParam) != WM_MOUSEMOVE) { cursor_currently_auto_hidden_ = false; SetCursorAutoHideTimer(); } if (cursor_currently_auto_hidden_) { SetCursor(nullptr); return TRUE; } } break; case CursorVisibility::kHidden: SetCursor(nullptr); return TRUE; default: break; } } // For the non-client area, and for visible cursor, letting normal // processing happen, setting the cursor to an arrow or to something // specific to non-client parts of the window. } break; case kUserMessageAutoHideCursor: { // Recheck the cursor visibility - the callback might have been called // before or while the timer is deleted. Also ignore messages from // outdated mouse interactions. if (GetCursorVisibility() == CursorVisibility::kAutoHidden && wParam == last_cursor_auto_hide_queued) { // The timer object is not needed anymore. if (cursor_auto_hide_timer_) { DeleteTimerQueueTimer(nullptr, cursor_auto_hide_timer_, nullptr); cursor_auto_hide_timer_ = nullptr; } cursor_currently_auto_hidden_ = true; SetCursorIfFocusedOnClientArea(nullptr); } return 0; } break; case WM_TABLET_QUERYSYSTEMGESTURESTATUS: return // disables press and hold (right-click) gesture TABLET_DISABLE_PRESSANDHOLD | // disables UI feedback on pen up (waves) TABLET_DISABLE_PENTAPFEEDBACK | // disables UI feedback on pen button down (circle) TABLET_DISABLE_PENBARRELFEEDBACK | // disables pen flicks (back, forward, drag down, drag up) TABLET_DISABLE_FLICKS | TABLET_DISABLE_TOUCHSWITCH | TABLET_DISABLE_SMOOTHSCROLLING | TABLET_DISABLE_TOUCHUIFORCEON | TABLET_ENABLE_MULTITOUCHDATA; case WM_MENUCOMMAND: { MENUINFO menu_info = {0}; menu_info.cbSize = sizeof(menu_info); menu_info.fMask = MIM_MENUDATA; GetMenuInfo(HMENU(lParam), &menu_info); auto parent_item = reinterpret_cast<Win32MenuItem*>(menu_info.dwMenuData); auto child_item = reinterpret_cast<Win32MenuItem*>(parent_item->child(wParam)); assert_not_null(child_item); WindowDestructionReceiver destruction_receiver(this); child_item->OnSelected(); if (destruction_receiver.IsWindowDestroyed()) { break; } // The menu item might have been destroyed by its OnSelected, don't do // anything with it here from now on. } break; } // The window might have been destroyed by the handlers, don't interact with // *this in this function from now on. // Passing the original hWnd argument rather than hwnd_ as the window might // have been closed or destroyed by a handler, making hwnd_ null even though // DefWindowProc still needs to be called to propagate the closing-related // messages needed by Windows, or inaccessible (due to use-after-free) at all. return DefWindowProc(hWnd, message, wParam, lParam); } LRESULT CALLBACK Win32Window::WndProcThunk(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam) { if (hWnd) { Win32Window* window = nullptr; if (message == WM_NCCREATE) { auto create_struct = reinterpret_cast<LPCREATESTRUCT>(lParam); window = reinterpret_cast<Win32Window*>(create_struct->lpCreateParams); SetWindowLongPtr(hWnd, GWLP_USERDATA, (__int3264)(LONG_PTR)window); // Don't miss any messages (as they may have effect on the actual state // stored in Win32Window) sent before the completion of CreateWindowExW // dropped because `window->hwnd_ != hWnd`, when the result of // CreateWindowExW still hasn't been assigned to `hwnd_` (however, don't // reattach this window to a closed window if WM_NCCREATE was somehow sent // to a window being closed). if (window->phase() == Phase::kOpening) { assert_true(!window->hwnd_ || window->hwnd_ == hWnd); window->hwnd_ = hWnd; } // Enable non-client area DPI scaling for AdjustWindowRectExForDpi to work // correctly between Windows 10 1607 (when AdjustWindowRectExForDpi and // EnableNonClientDpiScaling were added) and 1703 (when per-monitor // awareness version 2 was added with automatically enabled non-client // area DPI scaling). const Win32WindowedAppContext& win32_app_context = static_cast<const Win32WindowedAppContext&>(window->app_context()); const Win32WindowedAppContext::PerMonitorDpiV2Api* per_monitor_dpi_v2_api = win32_app_context.per_monitor_dpi_v2_api(); if (per_monitor_dpi_v2_api) { per_monitor_dpi_v2_api->enable_non_client_dpi_scaling(hWnd); } // Already fully handled, no need to call Win32Window::WndProc. } else { window = reinterpret_cast<Win32Window*>(GetWindowLongPtr(hWnd, GWLP_USERDATA)); if (window && window->hwnd_ == hWnd) { return window->WndProc(hWnd, message, wParam, lParam); } } } return DefWindowProc(hWnd, message, wParam, lParam); } std::unique_ptr<ui::MenuItem> MenuItem::Create(Type type, const std::string& text, const std::string& hotkey, std::function<void()> callback) { return std::make_unique<Win32MenuItem>(type, text, hotkey, callback); } Win32MenuItem::Win32MenuItem(Type type, const std::string& text, const std::string& hotkey, std::function<void()> callback) : MenuItem(type, text, hotkey, std::move(callback)) { switch (type) { case MenuItem::Type::kNormal: handle_ = CreateMenu(); break; case MenuItem::Type::kPopup: handle_ = CreatePopupMenu(); break; default: // May just be a placeholder. break; } if (handle_) { MENUINFO menu_info = {0}; menu_info.cbSize = sizeof(menu_info); menu_info.fMask = MIM_MENUDATA | MIM_STYLE; menu_info.dwMenuData = ULONG_PTR(this); menu_info.dwStyle = MNS_NOTIFYBYPOS; SetMenuInfo(handle_, &menu_info); } } Win32MenuItem::~Win32MenuItem() { if (handle_) { DestroyMenu(handle_); } } void Win32MenuItem::SetEnabled(bool enabled) { UINT enable_flags = MF_BYPOSITION | (enabled ? MF_ENABLED : MF_GRAYED); UINT i = 0; for (auto iter = children_.begin(); iter != children_.end(); ++iter, ++i) { EnableMenuItem(handle_, i, enable_flags); } } void Win32MenuItem::OnChildAdded(MenuItem* generic_child_item) { auto child_item = static_cast<Win32MenuItem*>(generic_child_item); switch (child_item->type()) { case MenuItem::Type::kNormal: // Nothing special. break; case MenuItem::Type::kPopup: AppendMenuW( handle_, MF_POPUP, reinterpret_cast<UINT_PTR>(child_item->handle()), reinterpret_cast<LPCWSTR>(xe::to_utf16(child_item->text()).c_str())); break; case MenuItem::Type::kSeparator: AppendMenuW(handle_, MF_SEPARATOR, UINT_PTR(child_item->handle_), 0); break; case MenuItem::Type::kString: auto full_name = child_item->text(); if (!child_item->hotkey().empty()) { full_name += "\t" + child_item->hotkey(); } AppendMenuW(handle_, MF_STRING, UINT_PTR(child_item->handle_), reinterpret_cast<LPCWSTR>(xe::to_utf16(full_name).c_str())); break; } } void Win32MenuItem::OnChildRemoved(MenuItem* generic_child_item) {} } // namespace ui } // namespace xe
38.569724
80
0.680059
amessier
f7acb0cf43b566c72b3399e639d41bdf13fbf701
2,424
hpp
C++
allocgc/include/liballocgc/details/utils/math.hpp
eucpp/allocgc
8d134d58515e0e2a7348fdd1fdbe8c2e8423cfef
[ "Apache-2.0" ]
null
null
null
allocgc/include/liballocgc/details/utils/math.hpp
eucpp/allocgc
8d134d58515e0e2a7348fdd1fdbe8c2e8423cfef
[ "Apache-2.0" ]
2
2017-01-17T16:24:59.000Z
2017-06-08T17:39:26.000Z
allocgc/include/liballocgc/details/utils/math.hpp
eucpp/allocgc
8d134d58515e0e2a7348fdd1fdbe8c2e8423cfef
[ "Apache-2.0" ]
null
null
null
#ifndef ALLOCGC_UTIL_H #define ALLOCGC_UTIL_H #include <cassert> #include <cstddef> #include <climits> namespace allocgc { namespace details { constexpr bool check_pow2(size_t n) { return (n != 0) && !(n & (n - 1)); } constexpr size_t pow2(size_t n) { return ((size_t) 1) << n; } // returns log2 if argument is a power of 2 inline size_t log2(size_t n) { assert(check_pow2(n)); size_t l = sizeof(size_t) * CHAR_BIT, r = 0; while (true) { size_t m = ((l - r) >> 1) + r; if (l == m || r == m) { return m; } if (((((size_t)1 << m) - 1) & n) == 0) { r = m; } else { l = m; } } } // implementation is taken from http://stackoverflow.com/a/11398748/4676150 inline size_t msb(unsigned long long n) { static const std::int8_t tab64[64] = { 63, 0, 58, 1, 59, 47, 53, 2, 60, 39, 48, 27, 54, 33, 42, 3, 61, 51, 37, 40, 49, 18, 28, 20, 55, 30, 34, 11, 43, 14, 22, 4, 62, 57, 46, 52, 38, 26, 32, 41, 50, 36, 17, 19, 29, 10, 13, 21, 56, 45, 25, 31, 35, 16, 9, 12, 44, 24, 15, 8, 23, 7, 6, 5 }; assert(n != 0); n |= n >> 1; n |= n >> 2; n |= n >> 4; n |= n >> 8; n |= n >> 16; n |= n >> 32; return tab64[((uint64_t)((n - (n >> 1))*0x07EDD5E59A4E28C2)) >> 58]; } /** * implementation is taken from http://chessprogramming.wikispaces.com/BitScan * * bitScanForward * @author Martin Läuter (1997) * Charles E. Leiserson * Harald Prokop * Keith H. Randall * "Using de Bruijn Sequences to Index a 1 in a Computer Word" * @param bb bitboard to scan * @precondition bb != 0 * @return index (0..63) of least significant one bit */ inline size_t lsb(unsigned long long n) { static const size_t index64[64] = { 0, 1, 48, 2, 57, 49, 28, 3, 61, 58, 50, 42, 38, 29, 17, 4, 62, 55, 59, 36, 53, 51, 43, 22, 45, 39, 33, 30, 24, 18, 12, 5, 63, 47, 56, 27, 60, 41, 37, 16, 54, 35, 52, 21, 44, 32, 23, 11, 46, 26, 40, 15, 34, 20, 31, 10, 25, 14, 19, 9, 13, 8, 7, 6 }; const unsigned long long debruijn64 = 0x03f79d71b4cb0a89ULL; assert (n != 0); return index64[((n & -n) * debruijn64) >> 58]; } }} #endif //ALLOCGC_UTIL_H
24.484848
78
0.496287
eucpp
f7ad38e4a70693c0c54640e70a3e5e7954f64d65
5,088
cpp
C++
src/token.cpp
egor-tensin/privilege-test
0f89e9b752f294e76900ce4c217a875e39e35cc1
[ "MIT" ]
null
null
null
src/token.cpp
egor-tensin/privilege-test
0f89e9b752f294e76900ce4c217a875e39e35cc1
[ "MIT" ]
null
null
null
src/token.cpp
egor-tensin/privilege-test
0f89e9b752f294e76900ce4c217a875e39e35cc1
[ "MIT" ]
null
null
null
// Copyright (c) 2016 Egor Tensin <Egor.Tensin@gmail.com> // This file is part of the "Privilege check" project. // For details, see https://github.com/egor-tensin/privilege-check. // Distributed under the MIT License. #include "error.hpp" #include "handle.hpp" #include "os.hpp" #include "sid.hpp" #include <windows.h> #include <string> #include <unordered_map> #include <utility> #include <vector> namespace token { Handle open_for_process( const Handle& process, DWORD permissions) { HANDLE raw; if (!OpenProcessToken(process, permissions, &raw)) error::raise("OpenProcessToken"); return Handle{raw}; } Handle open_for_current_process( DWORD permissions) { return open_for_process(Handle{GetCurrentProcess()}, permissions); } bool get_linked(Handle& token) { if (!os::is_vista_or_later()) return false; auto type = TokenElevationTypeDefault; DWORD cb = 0; if (!GetTokenInformation(token, TokenElevationType, &type, sizeof(type), &cb)) error::raise("GetTokenInformation"); if (type != TokenElevationTypeLimited) return false; HANDLE raw; if (!GetTokenInformation(token, TokenLinkedToken, &raw, sizeof(raw), &cb)) error::raise("GetTokenInformation"); token = Handle{raw}; return true; } Handle get_for_identification(const Handle& token) { HANDLE raw; if (!DuplicateToken(token, SecurityIdentification, &raw)) error::raise("DuplicateToken"); return Handle{raw}; } // // FUNCTION: query_integrity_level() // // RETURN VALUE: Returns the integrity level of the current process. It is // usually one of these values: // // SECURITY_MANDATORY_UNTRUSTED_RID (SID: S-1-16-0x0) // Means untrusted level. It is used by processes started by the // Anonymous group. Blocks most write access. // // SECURITY_MANDATORY_LOW_RID (SID: S-1-16-0x1000) // Means low integrity level. It is used by Protected Mode Internet // Explorer. Blocks write acess to most objects (such as files and // registry keys) on the system. // // SECURITY_MANDATORY_MEDIUM_RID (SID: S-1-16-0x2000) // Means medium integrity level. It is used by normal applications // being launched while UAC is enabled. // // SECURITY_MANDATORY_HIGH_RID (SID: S-1-16-0x3000) // Means high integrity level. It is used by administrative applications // launched through elevation when UAC is enabled, or normal // applications if UAC is disabled and the user is an administrator. // // SECURITY_MANDATORY_SYSTEM_RID (SID: S-1-16-0x4000) // Means system integrity level. It is used by services and other // system-level applications (such as Wininit, Winlogon, Smss, etc.) // DWORD query_integrity_level(const Handle& token) { DWORD cb = 0; if (!GetTokenInformation(token, TokenIntegrityLevel, NULL, 0, &cb)) { switch (GetLastError()) { case ERROR_INSUFFICIENT_BUFFER: break; default: error::raise("GetTokenInformation"); } } std::vector<unsigned char> buf(cb); const auto token_level = reinterpret_cast<TOKEN_MANDATORY_LABEL*>(buf.data()); if (!GetTokenInformation(token, TokenIntegrityLevel, token_level, cb, &cb)) error::raise("GetTokenInformation"); // Integrity Level SIDs are in the form of S-1-16-0xXXXX. (e.g. // S-1-16-0x1000 stands for low integrity level SID). There is one and // only one subauthority. return *GetSidSubAuthority(token_level->Label.Sid, 0); } std::wstring integrity_level_to_string(DWORD level) { static const std::unordered_map<DWORD, const wchar_t*> names = { {SECURITY_MANDATORY_UNTRUSTED_RID, L"Untrusted"}, {SECURITY_MANDATORY_LOW_RID, L"Low"}, {SECURITY_MANDATORY_MEDIUM_RID, L"Medium"}, {SECURITY_MANDATORY_HIGH_RID, L"High"}, {SECURITY_MANDATORY_SYSTEM_RID, L"System"}, }; static constexpr auto unknown_name = L"Unknown"; const auto it = names.find(level); if (it == names.cend()) return unknown_name; return it->second; } bool check_belongs(const Handle& token, const SidBuffer& sid) { BOOL b = FALSE; if (!CheckTokenMembership(token, const_cast<unsigned char*>(sid.data()), &b)) error::raise("CheckTokenMembership"); return b != FALSE; } bool query_elevation(const Handle& token) { TOKEN_ELEVATION elevation; DWORD cb = 0; if (!GetTokenInformation(token, TokenElevation, &elevation, sizeof(elevation), &cb)) error::raise("GetTokenInformation"); return elevation.TokenIsElevated != 0; } }
30.285714
92
0.623231
egor-tensin
f7af32fb415c591e73b5e9a3ad2b0959f362095e
2,148
cpp
C++
main/main.cpp
h1romas4/m5stack-core2-wasm3-as
15efb19bd02be8585b9f60999c9122142dadaac3
[ "MIT" ]
null
null
null
main/main.cpp
h1romas4/m5stack-core2-wasm3-as
15efb19bd02be8585b9f60999c9122142dadaac3
[ "MIT" ]
null
null
null
main/main.cpp
h1romas4/m5stack-core2-wasm3-as
15efb19bd02be8585b9f60999c9122142dadaac3
[ "MIT" ]
null
null
null
#include "M5Core2.h" #include "Preferences.h" #include "WiFi.h" #include "test_freetype.h" #include "test_wasm3.h" static const char *TAG = "main.cpp"; /** * FreeType member */ font_render_t font_render; /** * Wasm3 member */ boolean enable_wasm = false; void sync_wifi_ntp(void) { Preferences preferences; if(!preferences.begin("wifi", true)) return; String ssid = preferences.getString("ssid"); String passwd = preferences.getString("passwd"); ESP_LOGI(TAG, "Connect to %s", ssid.c_str()); WiFi.begin(ssid.c_str(), passwd.c_str()); while (WiFi.status() != WL_CONNECTED) { delay(200); } ESP_LOGI(TAG, "Connected!"); // Sync NTP configTime(9 * 3600L, 0, "ntp1.jst.mfeed.ad.jp", "ntp2.jst.mfeed.ad.jp", "ntp3.jst.mfeed.ad.jp"); // Wait Time Sync struct tm timeInfo; while(true) { getLocalTime(&timeInfo); if(timeInfo.tm_year > 0) { break; } delay(500); } ESP_LOGI(TAG, "Configured time from NTP"); WiFi.disconnect(); // not enough memory.. ESP_LOGI(TAG, "Restart ESP32..."); // reboot.. esp_restart(); } void setup(void) { M5.begin(); // Test FreeType init_freetype(); font_render = create_freetype_render(/* font size */ 40, /* font cache */ 24); draw_freetype_string("M5Stack Core2", 10, 10 + 50, M5.Lcd.color565(0, 0, 255), &font_render); draw_freetype_string("Development", 10, 10 + 50 * 2, M5.Lcd.color565(255, 255, 255), &font_render); draw_freetype_string("Board", 10, 10 + 50 * 3, M5.Lcd.color565(255, 255, 255), &font_render); draw_freetype_string("Xtensa", 10, 10 + 50 * 4, M5.Lcd.color565(255, 0, 0), &font_render); // Test NVS and Wifi for(uint8_t i = 0; i < 200; i++) { M5.update(); if(M5.BtnA.wasPressed() || M5.BtnB.wasPressed() || M5.BtnC.wasPressed()) { sync_wifi_ntp(); break; } delay(10); } // Test WebAssembly if(init_wasm() == ESP_OK) enable_wasm = true; } void loop(void) { M5.update(); // Test WebAssembly if(enable_wasm) tick_wasm(); delay(500); }
24.689655
103
0.602421
h1romas4
f7af5f27538917636a5d0e6b9212b0dfd9841f4a
2,157
hpp
C++
include/nginxconfig/parse.hpp
tgockel/nginxconfig
57a4a4c00ee4f47b617ba2d7eaceab14ee20fa44
[ "Apache-2.0" ]
10
2015-02-12T02:42:06.000Z
2021-06-03T13:14:29.000Z
include/nginxconfig/parse.hpp
tgockel/nginxconfig
57a4a4c00ee4f47b617ba2d7eaceab14ee20fa44
[ "Apache-2.0" ]
null
null
null
include/nginxconfig/parse.hpp
tgockel/nginxconfig
57a4a4c00ee4f47b617ba2d7eaceab14ee20fa44
[ "Apache-2.0" ]
4
2015-08-04T21:02:53.000Z
2021-08-05T07:20:38.000Z
/** \file nginxconfig/parse.hpp * Include this file if you're trying to parse an nginx configuration file. * * Copyright (c) 2014 by Travis Gockel. All rights reserved. * * This program is free software: you can redistribute it and/or modify it under the terms of the Apache License * as published by the Apache Software Foundation, either version 2 of the License, or (at your option) any later * version. * * \author Travis Gockel (travis@gockelhut.com) **/ #ifndef __NGINXCONFIG_PARSE_HPP_INCLUDED__ #define __NGINXCONFIG_PARSE_HPP_INCLUDED__ #include <nginxconfig/config.hpp> #include <iosfwd> #include <string> #include <stdexcept> namespace nginxconfig { class ast_entry; class NGINXCONFIG_PUBLIC parse_error : public std::runtime_error { public: using size_type = std::size_t; /** In some cases, problems do not occur at a specific column (such as EOF). In these cases, the value of \c column * will be set to \c no_column. **/ static constexpr size_type no_column = ~0; public: explicit parse_error(size_type line, size_type column, size_type character, std::string message); virtual ~parse_error() noexcept; /** The line of input this error was encountered on. **/ size_type line() const { return _line; } /** The character index on the current line this error was encountered on. **/ size_type column() const { return _column; } /** The character index into the entire input this error was encountered on. **/ size_type character() const { return _character; } /** A message from the parser which has user-readable details about the encountered problem. **/ const std::string& message() const { return _message; } private: size_type _line; size_type _column; size_type _character; std::string _message; }; /** Parse the given input. The root entry will always be have \c ast_entry_kind::document. **/ ast_entry parse(std::istream& input); /** Convenience function to parse a given file. **/ ast_entry parse_file(const std::string& filename); } #endif/*__NGINXCONFIG_PARSE_HPP_INCLUDED__*/
30.814286
119
0.707464
tgockel
f7af7ac10937c7d9822e5dd51200612a5859dc05
16,498
cpp
C++
src/qt/qtwebkit/Source/WebCore/platform/graphics/gstreamer/VideoSinkGStreamer.cpp
viewdy/phantomjs
eddb0db1d253fd0c546060a4555554c8ee08c13c
[ "BSD-3-Clause" ]
1
2015-05-27T13:52:20.000Z
2015-05-27T13:52:20.000Z
src/qt/qtwebkit/Source/WebCore/platform/graphics/gstreamer/VideoSinkGStreamer.cpp
mrampersad/phantomjs
dca6f77a36699eb4e1c46f7600cca618f01b0ac3
[ "BSD-3-Clause" ]
null
null
null
src/qt/qtwebkit/Source/WebCore/platform/graphics/gstreamer/VideoSinkGStreamer.cpp
mrampersad/phantomjs
dca6f77a36699eb4e1c46f7600cca618f01b0ac3
[ "BSD-3-Clause" ]
1
2017-03-19T13:03:23.000Z
2017-03-19T13:03:23.000Z
/* * Copyright (C) 2007 OpenedHand * Copyright (C) 2007 Alp Toker <alp@atoker.com> * Copyright (C) 2009, 2010, 2011, 2012 Igalia S.L * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ /* * * WebKitVideoSink is a GStreamer sink element that triggers * repaints in the WebKit GStreamer media player for the * current video buffer. */ #include "config.h" #include "VideoSinkGStreamer.h" #if ENABLE(VIDEO) && USE(GSTREAMER) #include "GRefPtrGStreamer.h" #include "GStreamerVersioning.h" #include "IntSize.h" #include <glib.h> #include <gst/gst.h> #ifdef GST_API_VERSION_1 #include <gst/video/gstvideometa.h> #include <gst/video/gstvideopool.h> #endif #include <wtf/FastAllocBase.h> // CAIRO_FORMAT_RGB24 used to render the video buffers is little/big endian dependant. #ifdef GST_API_VERSION_1 #if G_BYTE_ORDER == G_LITTLE_ENDIAN #define GST_CAPS_FORMAT "{ BGRx, BGRA }" #else #define GST_CAPS_FORMAT "{ xRGB, ARGB }" #endif #if GST_CHECK_VERSION(1, 1, 0) #define GST_FEATURED_CAPS GST_VIDEO_CAPS_MAKE_WITH_FEATURES(GST_CAPS_FEATURE_META_GST_VIDEO_GL_TEXTURE_UPLOAD_META, GST_CAPS_FORMAT) ";" #else #define GST_FEATURED_CAPS #endif #endif // GST_API_VERSION_1 #ifdef GST_API_VERSION_1 #define WEBKIT_VIDEO_SINK_PAD_CAPS GST_FEATURED_CAPS GST_VIDEO_CAPS_MAKE(GST_CAPS_FORMAT) #else #if G_BYTE_ORDER == G_LITTLE_ENDIAN #define WEBKIT_VIDEO_SINK_PAD_CAPS GST_VIDEO_CAPS_BGRx ";" GST_VIDEO_CAPS_BGRA #else #define WEBKIT_VIDEO_SINK_PAD_CAPS GST_VIDEO_CAPS_xRGB ";" GST_VIDEO_CAPS_ARGB #endif #endif // GST_API_VERSION_1 static GstStaticPadTemplate s_sinkTemplate = GST_STATIC_PAD_TEMPLATE("sink", GST_PAD_SINK, GST_PAD_ALWAYS, GST_STATIC_CAPS(WEBKIT_VIDEO_SINK_PAD_CAPS)); GST_DEBUG_CATEGORY_STATIC(webkitVideoSinkDebug); #define GST_CAT_DEFAULT webkitVideoSinkDebug enum { REPAINT_REQUESTED, LAST_SIGNAL }; enum { PROP_0, PROP_CAPS }; static guint webkitVideoSinkSignals[LAST_SIGNAL] = { 0, }; struct _WebKitVideoSinkPrivate { GstBuffer* buffer; guint timeoutId; GMutex* bufferMutex; GCond* dataCondition; #ifdef GST_API_VERSION_1 GstVideoInfo info; #endif #if USE(NATIVE_FULLSCREEN_VIDEO) WebCore::GStreamerGWorld* gstGWorld; #endif GstCaps* currentCaps; // If this is TRUE all processing should finish ASAP // This is necessary because there could be a race between // unlock() and render(), where unlock() wins, signals the // GCond, then render() tries to render a frame although // everything else isn't running anymore. This will lead // to deadlocks because render() holds the stream lock. // // Protected by the buffer mutex bool unlocked; }; #define webkit_video_sink_parent_class parent_class G_DEFINE_TYPE_WITH_CODE(WebKitVideoSink, webkit_video_sink, GST_TYPE_VIDEO_SINK, GST_DEBUG_CATEGORY_INIT(webkitVideoSinkDebug, "webkitsink", 0, "webkit video sink")); static void webkit_video_sink_init(WebKitVideoSink* sink) { sink->priv = G_TYPE_INSTANCE_GET_PRIVATE(sink, WEBKIT_TYPE_VIDEO_SINK, WebKitVideoSinkPrivate); #if GLIB_CHECK_VERSION(2, 31, 0) sink->priv->dataCondition = WTF::fastNew<GCond>(); g_cond_init(sink->priv->dataCondition); sink->priv->bufferMutex = WTF::fastNew<GMutex>(); g_mutex_init(sink->priv->bufferMutex); #else sink->priv->dataCondition = g_cond_new(); sink->priv->bufferMutex = g_mutex_new(); #endif #ifdef GST_API_VERSION_1 gst_video_info_init(&sink->priv->info); #endif } static gboolean webkitVideoSinkTimeoutCallback(gpointer data) { WebKitVideoSink* sink = reinterpret_cast<WebKitVideoSink*>(data); WebKitVideoSinkPrivate* priv = sink->priv; g_mutex_lock(priv->bufferMutex); GstBuffer* buffer = priv->buffer; priv->buffer = 0; priv->timeoutId = 0; if (!buffer || priv->unlocked || UNLIKELY(!GST_IS_BUFFER(buffer))) { g_cond_signal(priv->dataCondition); g_mutex_unlock(priv->bufferMutex); return FALSE; } g_signal_emit(sink, webkitVideoSinkSignals[REPAINT_REQUESTED], 0, buffer); gst_buffer_unref(buffer); g_cond_signal(priv->dataCondition); g_mutex_unlock(priv->bufferMutex); return FALSE; } static GstFlowReturn webkitVideoSinkRender(GstBaseSink* baseSink, GstBuffer* buffer) { WebKitVideoSink* sink = WEBKIT_VIDEO_SINK(baseSink); WebKitVideoSinkPrivate* priv = sink->priv; g_mutex_lock(priv->bufferMutex); if (priv->unlocked) { g_mutex_unlock(priv->bufferMutex); return GST_FLOW_OK; } #if USE(NATIVE_FULLSCREEN_VIDEO) // Ignore buffers if the video is already in fullscreen using // another sink. if (priv->gstGWorld->isFullscreen()) { g_mutex_unlock(priv->bufferMutex); return GST_FLOW_OK; } #endif priv->buffer = gst_buffer_ref(buffer); #ifndef GST_API_VERSION_1 // For the unlikely case where the buffer has no caps, the caps // are implicitely the caps of the pad. This shouldn't happen. if (UNLIKELY(!GST_BUFFER_CAPS(buffer))) { buffer = priv->buffer = gst_buffer_make_metadata_writable(priv->buffer); gst_buffer_set_caps(priv->buffer, GST_PAD_CAPS(GST_BASE_SINK_PAD(baseSink))); } GRefPtr<GstCaps> caps = GST_BUFFER_CAPS(buffer); #else GRefPtr<GstCaps> caps = adoptGRef(gst_video_info_to_caps(&priv->info)); #endif GstVideoFormat format; WebCore::IntSize size; int pixelAspectRatioNumerator, pixelAspectRatioDenominator, stride; if (!getVideoSizeAndFormatFromCaps(caps.get(), size, format, pixelAspectRatioNumerator, pixelAspectRatioDenominator, stride)) { gst_buffer_unref(buffer); g_mutex_unlock(priv->bufferMutex); return GST_FLOW_ERROR; } // Cairo's ARGB has pre-multiplied alpha while GStreamer's doesn't. // Here we convert to Cairo's ARGB. if (format == GST_VIDEO_FORMAT_ARGB || format == GST_VIDEO_FORMAT_BGRA) { // Because GstBaseSink::render() only owns the buffer reference in the // method scope we can't use gst_buffer_make_writable() here. Also // The buffer content should not be changed here because the same buffer // could be passed multiple times to this method (in theory). GstBuffer* newBuffer = createGstBuffer(buffer); // Check if allocation failed. if (UNLIKELY(!newBuffer)) { g_mutex_unlock(priv->bufferMutex); return GST_FLOW_ERROR; } // We don't use Color::premultipliedARGBFromColor() here because // one function call per video pixel is just too expensive: // For 720p/PAL for example this means 1280*720*25=23040000 // function calls per second! #ifndef GST_API_VERSION_1 const guint8* source = GST_BUFFER_DATA(buffer); guint8* destination = GST_BUFFER_DATA(newBuffer); #else GstMapInfo sourceInfo; GstMapInfo destinationInfo; gst_buffer_map(buffer, &sourceInfo, GST_MAP_READ); const guint8* source = const_cast<guint8*>(sourceInfo.data); gst_buffer_map(newBuffer, &destinationInfo, GST_MAP_WRITE); guint8* destination = static_cast<guint8*>(destinationInfo.data); #endif for (int x = 0; x < size.height(); x++) { for (int y = 0; y < size.width(); y++) { #if G_BYTE_ORDER == G_LITTLE_ENDIAN unsigned short alpha = source[3]; destination[0] = (source[0] * alpha + 128) / 255; destination[1] = (source[1] * alpha + 128) / 255; destination[2] = (source[2] * alpha + 128) / 255; destination[3] = alpha; #else unsigned short alpha = source[0]; destination[0] = alpha; destination[1] = (source[1] * alpha + 128) / 255; destination[2] = (source[2] * alpha + 128) / 255; destination[3] = (source[3] * alpha + 128) / 255; #endif source += 4; destination += 4; } } #ifdef GST_API_VERSION_1 gst_buffer_unmap(buffer, &sourceInfo); gst_buffer_unmap(newBuffer, &destinationInfo); #endif gst_buffer_unref(buffer); buffer = priv->buffer = newBuffer; } // This should likely use a lower priority, but glib currently starves // lower priority sources. // See: https://bugzilla.gnome.org/show_bug.cgi?id=610830. priv->timeoutId = g_timeout_add_full(G_PRIORITY_DEFAULT, 0, webkitVideoSinkTimeoutCallback, gst_object_ref(sink), reinterpret_cast<GDestroyNotify>(gst_object_unref)); g_cond_wait(priv->dataCondition, priv->bufferMutex); g_mutex_unlock(priv->bufferMutex); return GST_FLOW_OK; } static void webkitVideoSinkDispose(GObject* object) { WebKitVideoSink* sink = WEBKIT_VIDEO_SINK(object); WebKitVideoSinkPrivate* priv = sink->priv; if (priv->dataCondition) { #if GLIB_CHECK_VERSION(2, 31, 0) g_cond_clear(priv->dataCondition); WTF::fastDelete(priv->dataCondition); #else g_cond_free(priv->dataCondition); #endif priv->dataCondition = 0; } if (priv->bufferMutex) { #if GLIB_CHECK_VERSION(2, 31, 0) g_mutex_clear(priv->bufferMutex); WTF::fastDelete(priv->bufferMutex); #else g_mutex_free(priv->bufferMutex); #endif priv->bufferMutex = 0; } G_OBJECT_CLASS(parent_class)->dispose(object); } static void webkitVideoSinkGetProperty(GObject* object, guint propertyId, GValue* value, GParamSpec* parameterSpec) { WebKitVideoSink* sink = WEBKIT_VIDEO_SINK(object); WebKitVideoSinkPrivate* priv = sink->priv; switch (propertyId) { case PROP_CAPS: { GstCaps* caps = priv->currentCaps; if (caps) gst_caps_ref(caps); g_value_take_boxed(value, caps); break; } default: G_OBJECT_WARN_INVALID_PROPERTY_ID(object, propertyId, parameterSpec); } } static void unlockBufferMutex(WebKitVideoSinkPrivate* priv) { g_mutex_lock(priv->bufferMutex); if (priv->buffer) { gst_buffer_unref(priv->buffer); priv->buffer = 0; } priv->unlocked = true; g_cond_signal(priv->dataCondition); g_mutex_unlock(priv->bufferMutex); } static gboolean webkitVideoSinkUnlock(GstBaseSink* baseSink) { WebKitVideoSink* sink = WEBKIT_VIDEO_SINK(baseSink); unlockBufferMutex(sink->priv); return GST_CALL_PARENT_WITH_DEFAULT(GST_BASE_SINK_CLASS, unlock, (baseSink), TRUE); } static gboolean webkitVideoSinkUnlockStop(GstBaseSink* baseSink) { WebKitVideoSinkPrivate* priv = WEBKIT_VIDEO_SINK(baseSink)->priv; g_mutex_lock(priv->bufferMutex); priv->unlocked = false; g_mutex_unlock(priv->bufferMutex); return GST_CALL_PARENT_WITH_DEFAULT(GST_BASE_SINK_CLASS, unlock_stop, (baseSink), TRUE); } static gboolean webkitVideoSinkStop(GstBaseSink* baseSink) { WebKitVideoSinkPrivate* priv = WEBKIT_VIDEO_SINK(baseSink)->priv; unlockBufferMutex(priv); if (priv->currentCaps) { gst_caps_unref(priv->currentCaps); priv->currentCaps = 0; } return TRUE; } static gboolean webkitVideoSinkStart(GstBaseSink* baseSink) { WebKitVideoSinkPrivate* priv = WEBKIT_VIDEO_SINK(baseSink)->priv; g_mutex_lock(priv->bufferMutex); priv->unlocked = false; g_mutex_unlock(priv->bufferMutex); return TRUE; } static gboolean webkitVideoSinkSetCaps(GstBaseSink* baseSink, GstCaps* caps) { WebKitVideoSink* sink = WEBKIT_VIDEO_SINK(baseSink); WebKitVideoSinkPrivate* priv = sink->priv; GST_DEBUG_OBJECT(sink, "Current caps %" GST_PTR_FORMAT ", setting caps %" GST_PTR_FORMAT, priv->currentCaps, caps); #ifdef GST_API_VERSION_1 GstVideoInfo info; if (!gst_video_info_from_caps(&info, caps)) { GST_ERROR_OBJECT(sink, "Invalid caps %" GST_PTR_FORMAT, caps); return FALSE; } #endif gst_caps_replace(&priv->currentCaps, caps); return TRUE; } #ifdef GST_API_VERSION_1 static gboolean webkitVideoSinkProposeAllocation(GstBaseSink* baseSink, GstQuery* query) { GstCaps* caps; gst_query_parse_allocation(query, &caps, 0); if (!caps) return FALSE; WebKitVideoSink* sink = WEBKIT_VIDEO_SINK(baseSink); if (!gst_video_info_from_caps(&sink->priv->info, caps)) return FALSE; gst_query_add_allocation_meta(query, GST_VIDEO_META_API_TYPE, 0); gst_query_add_allocation_meta(query, GST_VIDEO_CROP_META_API_TYPE, 0); #if GST_CHECK_VERSION(1, 1, 0) gst_query_add_allocation_meta(query, GST_VIDEO_GL_TEXTURE_UPLOAD_META_API_TYPE, 0); #endif return TRUE; } #endif #ifndef GST_API_VERSION_1 static void webkitVideoSinkMarshalVoidAndMiniObject(GClosure* closure, GValue*, guint parametersNumber, const GValue* parameterValues, gpointer, gpointer marshalData) { typedef void (*marshalfunc_VOID__MINIOBJECT) (gpointer obj, gpointer arg1, gpointer data2); marshalfunc_VOID__MINIOBJECT callback; GCClosure* cclosure = reinterpret_cast<GCClosure*>(closure); gpointer data1, data2; g_return_if_fail(parametersNumber == 2); if (G_CCLOSURE_SWAP_DATA(closure)) { data1 = closure->data; data2 = g_value_peek_pointer(parameterValues + 0); } else { data1 = g_value_peek_pointer(parameterValues + 0); data2 = closure->data; } callback = (marshalfunc_VOID__MINIOBJECT) (marshalData ? marshalData : cclosure->callback); callback(data1, gst_value_get_mini_object(parameterValues + 1), data2); } #endif static void webkit_video_sink_class_init(WebKitVideoSinkClass* klass) { GObjectClass* gobjectClass = G_OBJECT_CLASS(klass); GstBaseSinkClass* baseSinkClass = GST_BASE_SINK_CLASS(klass); GstElementClass* elementClass = GST_ELEMENT_CLASS(klass); gst_element_class_add_pad_template(elementClass, gst_static_pad_template_get(&s_sinkTemplate)); setGstElementClassMetadata(elementClass, "WebKit video sink", "Sink/Video", "Sends video data from a GStreamer pipeline to a Cairo surface", "Alp Toker <alp@atoker.com>"); g_type_class_add_private(klass, sizeof(WebKitVideoSinkPrivate)); gobjectClass->dispose = webkitVideoSinkDispose; gobjectClass->get_property = webkitVideoSinkGetProperty; baseSinkClass->unlock = webkitVideoSinkUnlock; baseSinkClass->unlock_stop = webkitVideoSinkUnlockStop; baseSinkClass->render = webkitVideoSinkRender; baseSinkClass->preroll = webkitVideoSinkRender; baseSinkClass->stop = webkitVideoSinkStop; baseSinkClass->start = webkitVideoSinkStart; baseSinkClass->set_caps = webkitVideoSinkSetCaps; #ifdef GST_API_VERSION_1 baseSinkClass->propose_allocation = webkitVideoSinkProposeAllocation; #endif g_object_class_install_property(gobjectClass, PROP_CAPS, g_param_spec_boxed("current-caps", "Current-Caps", "Current caps", GST_TYPE_CAPS, G_PARAM_READABLE)); webkitVideoSinkSignals[REPAINT_REQUESTED] = g_signal_new("repaint-requested", G_TYPE_FROM_CLASS(klass), static_cast<GSignalFlags>(G_SIGNAL_RUN_LAST | G_SIGNAL_ACTION), 0, // Class offset 0, // Accumulator 0, // Accumulator data #ifndef GST_API_VERSION_1 webkitVideoSinkMarshalVoidAndMiniObject, #else g_cclosure_marshal_generic, #endif G_TYPE_NONE, // Return type 1, // Only one parameter GST_TYPE_BUFFER); } #if USE(NATIVE_FULLSCREEN_VIDEO) GstElement* webkitVideoSinkNew(WebCore::GStreamerGWorld* gstGWorld) { GstElement* element = GST_ELEMENT(g_object_new(WEBKIT_TYPE_VIDEO_SINK, 0)); WEBKIT_VIDEO_SINK(element)->priv->gstGWorld = gstGWorld; return element; } #else GstElement* webkitVideoSinkNew() { return GST_ELEMENT(g_object_new(WEBKIT_TYPE_VIDEO_SINK, 0)); } #endif #endif // ENABLE(VIDEO) && USE(GSTREAMER)
32.864542
175
0.71445
viewdy
f7b0273836636363af823cae001b5197c9f95934
849
cc
C++
sample_addon/8_passing_wrapped/node_0.12/addon.cc
Cereceres/SVD-
bac3b8cce5b958aaccc1081ec60ecc5c81b3b2f9
[ "MIT" ]
24
2018-11-20T14:45:57.000Z
2021-12-30T13:38:42.000Z
sample_addon/8_passing_wrapped/node_0.12/addon.cc
Cereceres/SVD
bac3b8cce5b958aaccc1081ec60ecc5c81b3b2f9
[ "MIT" ]
null
null
null
sample_addon/8_passing_wrapped/node_0.12/addon.cc
Cereceres/SVD
bac3b8cce5b958aaccc1081ec60ecc5c81b3b2f9
[ "MIT" ]
11
2018-11-29T00:09:14.000Z
2021-11-23T08:13:17.000Z
#include <node.h> #include <node_object_wrap.h> #include "myobject.h" using namespace v8; void CreateObject(const FunctionCallbackInfo<Value>& args) { Isolate* isolate = Isolate::GetCurrent(); HandleScope scope(isolate); MyObject::NewInstance(args); } void Add(const FunctionCallbackInfo<Value>& args) { Isolate* isolate = Isolate::GetCurrent(); HandleScope scope(isolate); MyObject* obj1 = node::ObjectWrap::Unwrap<MyObject>( args[0]->ToObject()); MyObject* obj2 = node::ObjectWrap::Unwrap<MyObject>( args[1]->ToObject()); double sum = obj1->value() + obj2->value(); args.GetReturnValue().Set(Number::New(isolate, sum)); } void InitAll(Handle<Object> exports) { MyObject::Init(); NODE_SET_METHOD(exports, "createObject", CreateObject); NODE_SET_METHOD(exports, "add", Add); } NODE_MODULE(addon, InitAll)
24.970588
60
0.709069
Cereceres
f7b0fe30596b836d7a625d39c369f4b44948b83d
1,953
cpp
C++
DisplayProperties.cpp
Jacob-Barhak/BIM
47696894a77585536103129c689c27372dcb3e42
[ "BSD-2-Clause" ]
9
2017-12-22T08:51:51.000Z
2021-09-02T08:12:31.000Z
DisplayProperties.cpp
Jacob-Barhak/BIM
47696894a77585536103129c689c27372dcb3e42
[ "BSD-2-Clause" ]
null
null
null
DisplayProperties.cpp
Jacob-Barhak/BIM
47696894a77585536103129c689c27372dcb3e42
[ "BSD-2-Clause" ]
3
2017-12-22T08:51:53.000Z
2021-01-25T15:30:37.000Z
/************************************************ This file contains the implementation for the DisplayProperties class. In this class, we have the following functions: default constructor constructor with an argument destructor read display properties from a file write display properties to a file *************************************************/ #include "stdafx.h" #include "DisplayProperties.h" #include <string> #ifdef _DEBUG #define new DEBUG_NEW #endif /***********************************************/ /* modified by: Jun date: 01/21/05 */ /***********************************************/ // Default constructor DisplayProperties::DisplayProperties() { PointSize = 0.03; PointType = 2; MaterialColor = false; } /***********************************************/ /* TO DO: add description add comments modified by: date: */ /***********************************************/ // Constructor with arguments // This will set the display properties based on a certain value // This value has yet to be defined DisplayProperties::DisplayProperties(int value) { } /***********************************************/ /* TO DO: add description add comments modified by: date: */ /***********************************************/ // Destructor DisplayProperties::~DisplayProperties() { } /***********************************************/ /* TO DO: add description add comments modified by: date: */ /***********************************************/ // Function to read display properties to a file void DisplayProperties::ReadDisplayProperties(string BIMFile) { } /***********************************************/ /* TO DO: add description add comments modified by: date: */ /***********************************************/ // Function to write display properties to a file void DisplayProperties::WriteDisplayProperties(string BIMFile) { }
18.961165
64
0.491039
Jacob-Barhak