val lvalue_expression_among_global_variables (vs: list var_id_t) (e: expression_t) : GTot bool
val lvalue_expression_among_global_variables (vs: list var_id_t) (e: expression_t) : GTot bool
let rec lvalue_expression_among_global_variables
  (vs: list var_id_t)
  (e: expression_t)
  : GTot bool =
  match e with
  | ExpressionGlobalVariable _ var_id -> list_contains var_id vs
  | ExpressionFieldOf _ obj _ -> lvalue_expression_among_global_variables vs obj
  | _ -> false
module Strategies.GlobalVars.VarIntro

open Armada.Base
open Armada.Computation
open Armada.Expression
open Armada.Pointer
open Armada.State
open Armada.Statement
open Armada.Thread
open Armada.Transition
open Armada.Type
open FStar.Sequence.Base
open Spec.List
open Spec.Ubool
open Strategies.ArmadaInvariant.PositionsValid
open Strategies.ArmadaInvariant.RootsMatch
open Strategies.ArmadaInvariant.UnstartedThreads
open Strategies.GlobalVars
open Strategies.GlobalVars.Types
open Strategies.PCRelation
open Util.List

let rec pointer_among_global_variables (vs: list var_id_t) (ptr: Armada.Pointer.t) : GTot bool =
  match ptr with
  | PointerUninitialized -> false
  | PointerNull -> false
  | PointerRoot root_id -> not (global_variables_unmentioned_in_root_id vs root_id)
  | PointerField struct_ptr _ -> pointer_among_global_variables vs struct_ptr
  | PointerIndex array_ptr _ -> pointer_among_global_variables vs array_ptr
/
Util.List.fst.checked Strategies.PCRelation.fst.checked Strategies.GlobalVars.Types.fst.checked Strategies.GlobalVars.fst.checked Strategies.ArmadaInvariant.UnstartedThreads.fsti.checked Strategies.ArmadaInvariant.RootsMatch.fst.checked Strategies.ArmadaInvariant.PositionsValid.fsti.checked Spec.Ubool.fst.checked Spec.List.fst.checked prims.fst.checked FStar.Sequence.Base.fsti.checked FStar.Pervasives.Native.fst.checked FStar.Pervasives.fsti.checked Armada.Type.fst.checked Armada.Transition.fst.checked Armada.Thread.fst.checked Armada.Statement.fst.checked Armada.State.fst.checked Armada.Pointer.fst.checked Armada.Expression.fst.checked Armada.Computation.fst.checked Armada.Base.fst.checked
Strategies.GlobalVars.VarIntro.fsti
vs: Prims.list Armada.Base.var_id_t -> e: Armada.Expression.expression_t -> Prims.GTot Prims.bool
Prims.list Armada.Base.var_id_t Armada.Expression.expression_t Armada.Type.object_td_t Spec.List.list_contains Prims.nat Strategies.GlobalVars.VarIntro.lvalue_expression_among_global_variables Prims.bool
let rec lvalue_expression_among_global_variables (vs: list var_id_t) (e: expression_t) : GTot bool =
  
match e with
| ExpressionGlobalVariable _ var_id -> list_contains var_id vs
| ExpressionFieldOf _ obj _ -> lvalue_expression_among_global_variables vs obj
| _ -> false