Skip to content

Commit b0346c4

Browse files
Fix trailing whitespace
1 parent ff2f248 commit b0346c4

File tree

4 files changed

+15
-15
lines changed

4 files changed

+15
-15
lines changed

Strata/DL/Call/CallCapable.lean

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -20,43 +20,43 @@ languages that support calls.
2020
class CallCapable (Stmt : Type) where
2121
-- Create a simple function call (no return value)
2222
simpleCall : String → List Heap.HExpr → Stmt
23-
23+
2424
-- Create a function call with return values
2525
call : List String → String → List Heap.HExpr → Stmt
26-
26+
2727
-- Inspection methods for analyses
2828
getCallInfo : Stmt → Option (List String × String × List Heap.HExpr) -- (lhs, funcName, args)
29-
29+
3030
-- Check if this statement is a call
3131
isCall : Stmt → Bool
32-
32+
3333
-- Extract the underlying imperative statement if possible
3434
asImperativeStmt : Stmt → Option (Imperative.Stmt (Imperative.Cmd Heap.HExpr))
3535

3636
-- Default implementation for Call dialect statements
3737
instance : CallCapable (CallStatement Heap.HExpr) where
38-
simpleCall funcName args :=
38+
simpleCall funcName args :=
3939
CallStatement.simpleCall funcName args
40-
41-
call lhs funcName args :=
40+
41+
call lhs funcName args :=
4242
CallStatement.call lhs funcName args
43-
43+
4444
getCallInfo stmt := match stmt with
4545
| .cmd (.directCall lhs funcName args) => some (lhs, funcName, args)
4646
| _ => none
47-
47+
4848
isCall stmt := match stmt with
4949
| .cmd (.directCall _ _ _) => true
5050
| _ => false
51-
51+
5252
asImperativeStmt stmt := match stmt with
5353
| .cmd (.imperativeCmd cmd) => some (.cmd cmd)
54-
| .ite cond thenb elseb =>
54+
| .ite cond thenb elseb =>
5555
-- Convert blocks by filtering out calls (for now)
5656
let thenStmts := thenb.ss.filterMap (fun s => match s with
5757
| .cmd (.imperativeCmd cmd) => some (.cmd cmd)
5858
| _ => none)
59-
let elseStmts := elseb.ss.filterMap (fun s => match s with
59+
let elseStmts := elseb.ss.filterMap (fun s => match s with
6060
| .cmd (.imperativeCmd cmd) => some (.cmd cmd)
6161
| _ => none)
6262
some (.ite cond ⟨thenStmts⟩ ⟨elseStmts⟩)

Strata/DL/Call/CallEval.lean

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ specific dialect that uses Call (e.g., Heap dialect).
1919
class CallEvaluator (State : Type) (P : Imperative.PureExpr) where
2020
-- Evaluate a direct function call
2121
evalDirectCall : (lhs : List String) → (funcName : String) → (args : List P.Expr) → State → State
22-
22+
2323
-- Evaluate an imperative command (delegate to the base dialect)
2424
evalImperativeCmd : Imperative.Cmd P → State → State
2525

Strata/DL/DataFlow.lean

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ namespace DataFlow
1818
-- DataLocation abstracts storage locations across different dialects
1919
inductive DataLocation where
2020
| variable : String → DataLocation -- Variable: x
21-
| heapField : String → Nat → DataLocation -- Heap field: obj[5]
21+
| heapField : String → Nat → DataLocation -- Heap field: obj[5]
2222
| dynamicField : String → String → DataLocation -- Dynamic field: obj[key]
2323
| functionParam : String → Nat → DataLocation -- Function parameter: func.param[0]
2424
| functionResult : String → DataLocation -- Function return value: func.result

Strata/DL/Generic/TranslationContext.lean

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ def TranslationContext.addFunction {S T : Type} (ctx : TranslationContext S T) (
5858
{ ctx with functions := func :: ctx.functions }
5959

6060
-- Empty context
61-
def TranslationContext.empty {S T : Type} : TranslationContext S T :=
61+
def TranslationContext.empty {S T : Type} : TranslationContext S T :=
6262
{ functions := [] }
6363

6464
end Generic

0 commit comments

Comments
 (0)