Line data Source code
1 : /**
2 : * Copyright (c) 2025 Huawei Technologies Co., Ltd.
3 : * This program is free software, you can redistribute it and/or modify it under the terms and conditions of
4 : * CANN Open Software License Agreement Version 2.0 (the "License").
5 : * Please refer to the License for details. You may not use this file except in compliance with the License.
6 : * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER EXPRESS OR IMPLIED,
7 : * INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY, OR FITNESS FOR A PARTICULAR PURPOSE.
8 : * See LICENSE in the root of the software repository for the full text of the License.
9 : */
10 :
11 : #include "ccu_rep_v1.h"
12 : #include "ccu_interface_assist_v1.h"
13 :
14 : #include "string_util.h"
15 : #include "exception_util.h"
16 : #include "ccu_api_exception.h"
17 :
18 : namespace hcomm {
19 : namespace CcuRep {
20 :
21 0 : Repeat::Repeat(CcuRepContext* context, [[maybe_unused]] CcuRelationalOperator<Variable, uint64_t> rel)
22 0 : : context(context)
23 : {
24 0 : std::string label = "Repeat";
25 0 : }
26 :
27 0 : Repeat::~Repeat() {}
28 :
29 0 : void Repeat::Break() {}
30 :
31 0 : bool Repeat::Check() const { return !isExecuted; }
32 :
33 0 : void Repeat::Run() { isExecuted = true; }
34 :
35 : }; // namespace CcuRep
36 : }; // namespace hcomm
|