aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/scheme/tests/fuzz_ops/lib/fuzz_ops.cpp
diff options
context:
space:
mode:
authorRuslan Kovalev <ruslan.a.kovalev@gmail.com>2022-02-10 16:46:45 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:46:45 +0300
commit9123176b341b6f2658cff5132482b8237c1416c8 (patch)
tree49e222ea1c5804306084bb3ae065bb702625360f /library/cpp/scheme/tests/fuzz_ops/lib/fuzz_ops.cpp
parent59e19371de37995fcb36beb16cd6ec030af960bc (diff)
downloadydb-9123176b341b6f2658cff5132482b8237c1416c8.tar.gz
Restoring authorship annotation for Ruslan Kovalev <ruslan.a.kovalev@gmail.com>. Commit 2 of 2.
Diffstat (limited to 'library/cpp/scheme/tests/fuzz_ops/lib/fuzz_ops.cpp')
-rw-r--r--library/cpp/scheme/tests/fuzz_ops/lib/fuzz_ops.cpp62
1 files changed, 31 insertions, 31 deletions
diff --git a/library/cpp/scheme/tests/fuzz_ops/lib/fuzz_ops.cpp b/library/cpp/scheme/tests/fuzz_ops/lib/fuzz_ops.cpp
index 30f6a3a619..8a7facba24 100644
--- a/library/cpp/scheme/tests/fuzz_ops/lib/fuzz_ops.cpp
+++ b/library/cpp/scheme/tests/fuzz_ops/lib/fuzz_ops.cpp
@@ -1,37 +1,37 @@
-#include "fuzz_ops.h"
-#include "vm_apply.h"
-#include "vm_defs.h"
-#include "vm_parse.h"
-
+#include "fuzz_ops.h"
+#include "vm_apply.h"
+#include "vm_defs.h"
+#include "vm_parse.h"
+
#include <library/cpp/bit_io/bitinput.h>
-
+
#include <library/cpp/scheme/scheme.h>
#include <library/cpp/scheme/scimpl_private.h>
-
-#include <util/generic/maybe.h>
-
-namespace NSc::NUt {
-
- void FuzzOps(TStringBuf wire, bool log) {
- if (log) {
- NImpl::GetTlsInstance<NImpl::TSelfLoopContext>().ReportingMode = NImpl::TSelfLoopContext::EMode::Stderr;
- }
-
- // We start with a single TValue node
- TVMState st {wire, 1, 0};
-
- while (auto act = ParseNextAction(st)) {
- if (log) {
- Cerr << " STATE: " << st.ToString() << Endl;
- Cerr << "ACTION: " << (act ? act->ToString() : TString("(empty)")) << Endl;
- }
-
- if (!ApplyNextAction(st, *act)) {
- break;
- }
+
+#include <util/generic/maybe.h>
+
+namespace NSc::NUt {
+
+ void FuzzOps(TStringBuf wire, bool log) {
+ if (log) {
+ NImpl::GetTlsInstance<NImpl::TSelfLoopContext>().ReportingMode = NImpl::TSelfLoopContext::EMode::Stderr;
+ }
+
+ // We start with a single TValue node
+ TVMState st {wire, 1, 0};
+
+ while (auto act = ParseNextAction(st)) {
+ if (log) {
+ Cerr << " STATE: " << st.ToString() << Endl;
+ Cerr << "ACTION: " << (act ? act->ToString() : TString("(empty)")) << Endl;
+ }
+
+ if (!ApplyNextAction(st, *act)) {
+ break;
+ }
if (!NSc::TValue::DefaultValue().IsNull()) {
std::terminate();
}
- }
- }
-}
+ }
+ }
+}