about summary refs log tree commit diff homepage
path: root/lib/Core/Differentiator.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Core/Differentiator.h')
-rw-r--r--lib/Core/Differentiator.h10
1 files changed, 7 insertions, 3 deletions
diff --git a/lib/Core/Differentiator.h b/lib/Core/Differentiator.h
index 54a12ac7..1f9c7766 100644
--- a/lib/Core/Differentiator.h
+++ b/lib/Core/Differentiator.h
@@ -30,10 +30,14 @@ bool isSymArg(std::string);
 bool isSymOut(std::string);
 
 struct Differentiator {
-  uint64_t revA, revB;
-  std::map<uint8_t, std::string> args;
+  std::uint64_t revA, revB;
+  // arg_k => v
+  std::map<std::uint8_t, std::string> args;
+  // k => (out!k!a, out!k!b)
   std::map<std::string, std::pair<std::string, std::string>> outputs;
-  Differentiator(uint64_t a, uint64_t b) : revA{a}, revB{b} {}
+  // rev => stdout
+  std::map<std::uint64_t, std::string> stdouts;
+  Differentiator(std::uint64_t a, std::uint64_t b) : revA{a}, revB{b} {}
 };
 
 /// Write convenient representation for debugging